.cognitive-simple-graph {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  overflow: hidden;

  .view-common() {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 16px;
    margin-right: 24px;
  }
  .view-start-result {
    margin-top: 25px;
    .view-start-circle {
      .view-common();
      background: #126ee3;
    }
    .view-result-circle {
      .view-common();
      background: #f5222d;
    }
    .view-common-circle {
      .view-common();
      background: linear-gradient(90deg, #126ee3, #126ee3 50%, #f5222d 50%);
    }
  }

  .hide {
    display: none;
  }

  .view-tool {
    position: absolute;
    z-index: 1;
    bottom: 20px;
    right: 20px;

    .tool-item {
      width: 28px;
      height: 28px;
      line-height: 28px;
      text-align: center;
      background: #fff;
      border: 1px solid #d9d9d9;
      user-select: none;
      cursor: pointer;
    }

    .move-wrap {
      margin-bottom: 8px;
      border-radius: 2px;
      font-size: 18px;
    }

    .add-icon {
      border-bottom: none;
      border-radius: 2px 2px 0 0;
      font-size: 24px;
      color: var(--kw-text-color-secondary);
    }

    .reduce-icon {
      border-radius: 0 0 2px 2px;
      font-size: 24px;
      line-height: 24px;
      color: var(--kw-text-color-secondary);
    }
  }

  .switch-box {
    position: absolute;
    z-index: 1;
    left: -9999px;
    top: -9999px;
    padding: 12px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);

    .switch-row {
      height: 30px;
      line-height: 30px;
      text-align: right;
      white-space: nowrap;

      .row-text {
        display: inline-block;
        vertical-align: middle;
        color: var(--kw-heading-color);
      }

      .ant-switch {
        margin-left: 12px;
      }
    }
  }

  .g6-tooltip {
    max-width: 250px;
    padding: 4px;
    height: auto;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 6px 16px 0px rgba(0, 0, 0, 0.08),
      0px 3px 6px -4px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: #fff;
    word-wrap: break-word;
    user-select: none;
  }
}
