.newbi-bigdata {
  height: 100%;
  background-color: #fff;
  overflow: hidden;

  .top-panel {
    box-sizing: border-box;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #ccc;
    padding-right: 5px;
    display: flex;

    .ret {
      padding-left: 10px;
      padding-right: 20px;
      font-size: 14px;
      cursor: pointer;
      color: #666;
      transition: all .2s;

      &:hover {
        color: #409eff;
      }
    }

    .left {
      display: flex;
      align-items: center;

      .group {
        font-size: 14px;
        width: 70px;
        text-align: center;
        cursor: pointer;
        transition: all .1s;

        .el-icon {
          margin-right: 3px;
          font-size: 12px;
        }

        &:hover {
          color: #409eff;
        }
      }
    }

    .right {
      display: flex;
      align-items: center;

      .el-icon {
        cursor: pointer;
        font-size: 24px;
        color: #ccc;

        &.active {
          color: #409eff;
        }
      }
    }
  }

  .main-panel {
    height: calc(100% - 40px);
    display: flex;
    width: 100%;
    overflow: hidden;

    .center-panel {
      flex: 1;
      box-sizing: border-box;
      overflow: auto;
      background-color: #2a2e33;
      background-image: url("https://img.alicdn.com/tfs/TB184VLcPfguuRjSspkXXXchpXa-14-14.png");
      position: relative;

      &::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, .5);
      }

      .ref-line {
        background-color: #4af;
      }

      .center {
        position: relative;
      }

      #my-canvas {
        position: absolute;
        transform-origin: 0 0;
        left: 50px;
        top: 50px;
        background-position: center center;
        background-size: cover;
      }
    }

    .left-panel,
    .right-panel {
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      width: 0;
      position: relative;
      background-color: #fff;

      .toggle {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        background-color: #ccc;
        cursor: pointer;
        box-sizing: border-box;
        z-index: 1;
        width: 8px;
        height: 80px;
        top: 30%;

        &.left-toggle {
          right: -8px;
          border-radius: 0 8px 8px 0;
        }

        &.right-toggle {
          left: -8px;
          border-radius: 8px 0 0 8px;
        }

        .el-icon {
          font-size: 12px;
          color: #888888;
        }
      }

      .tabs {
        flex: 0 0 40px;
        line-height: 40px;
        width: 100%;
        display: flex;
        border-bottom: 1px solid #ccc;

        .tab {
          text-align: center;
          flex: 1;
          font-size: 14px;
          color: #999;
          cursor: pointer;

          &.active {
            color: #409eff;
          }
        }
      }

      .slide-panel {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        box-sizing: border-box;
        background-color: #fff;

      }

      .setting-title {
        height: 40px;
        line-height: 40px;
        text-indent: 20px;
        font-size: 14px;
        font-weight: 600;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        border-top: 1px solid #ccc;

        .el-icon-arrow-right,
        .el-icon-arrow-down {
          margin-right: 10px;
          font-size: 14px;
          font-weight: 600;
        }

        &::before {
          content: '';
          position: absolute;
          left: 5px;
          top: 16px;
          bottom: 16px;
          width: 8px;
          background-color: rgba(0, 0, 0, .3);
          // background: linear-gradient(to right, #409eff, transparent);
        }
      }
    }

    .left-panel {
      border-right: 1px solid #ccc;

      .tabs {
        width: 200px;
      }

      .slide-panel {
        width: 200px;
      }

      &.active {
        width: 200px;
      }

      .chart-libs .item {
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        margin: 10px 0;
        border: 1px solid #ccc;
        font-size: 14px;
        padding: 0 10px;
      }

      .chart-list .item {
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        margin: 10px 0;
        border: 1px solid #ccc;
        color: #999;
        font-size: 14px;
        padding: 0 10px;

        &.active {
          color: #409eff;
        }
      }
    }

    .right-panel {
      border-left: 1px solid #ccc;

      .tabs {
        min-width: 300px;
      }

      .slide-panel {
        min-width: 300px;
      }

      &.active {
        width: 300px;

        &.high {
          width: 510px;
        }
      }
    }

    .slide-style-panel {
      .el-form-item {
        margin: 10px 0;
      }
    }
  }

  .vue-contextmenu-listWrapper {
    padding: 0;
  }
}

.bigdata-chart-list {
  max-width: 415px;
  min-width: 150px;
  float: left;
  padding: 10px;

  .chart {
    display: inline-block;
    width: 110px;
    margin: 10px;
    cursor: pointer;
    box-sizing: border-box;
    transition: all .1s;
    border: 1px solid #fff;
    padding: 5px;
    height: 100px;

    &:hover {
      border: 1px solid #409eff;
      border-radius: 5px;
    }

    img {
      width: 100%;
      z-index: -1;
    }

    .name {
      font-size: 14px;
      height: 20px;
      text-align: center;
    }
  }

}

.bigdata-set-panel {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 10px;

  .setting-title {
    margin: 0 10px 10px;
  }

  .settings {
    padding: 0 10px;
    flex: 1;
    overflow-y: auto;
  }

  .form {
    padding: 30px 10px;
    border-top: 1px solid #ccc;
    margin-top: 10px;

    .el-button {
      width: 120px;
      display: block;
      margin: 0 auto;
    }
  }
}
