.my-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.flowMsgPopover {
  display: none;
}

.tipBox {
  width: 180px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  padding: 12px;

  p {
    line-height: 28px;
    margin: 0;
    padding: 0;
  }
}

.cell-item {
  display: flex;
  align-items: center;
}

// bpmn 画布 logo
//.bjs-powered-by {
//  display: none;
//}
.view-mode {
  .ant-layout-header, 
  .ant-layout-sider, 
  .djs-palette, 
  .bjs-powered-by {
    display: none;
  }

  .ant-spin-nested-loading {
    background-color: initial;
  }

  .ant-spin-text {
    display: none;
  }
}

.containers {
  width: 100%;
  height: 100%;

  .canvas {
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImEiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTTAgMTBoNDBNMTAgMHY0ME0wIDIwaDQwTTIwIDB2NDBNMCAzMGg0ME0zMCAwdjQwIiBmaWxsPSJub25lIiBzdHJva2U9IiNlMGUwZTAiIG9wYWNpdHk9Ii4yIi8+PHBhdGggZD0iTTQwIDBIMHY0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+")
  }

  .panel {
    position: absolute;
    right: 0;
    top: 50px;
    width: 300px;
  }

  .load {
    margin-right: 10px;
  }

  .djs-palette {
    left: 0px !important;
    top: 0px;
    border-top: none;
  }

  .djs-container svg {
    min-height: 650px;
  }

  .overlays-div {
    font-size: 10px;
    color: red;
    width: 100px;
    top: -20px !important;
  }

  .flow-viewer {
    position: relative;
    padding: 0;
  }

  .flow-viewer .ant-btn-group {
    display: flex;
    position: absolute;
    width: auto;
    height: auto;
    top: 10px;
    right: 10px;
    z-index: 10;
  }

  // 流程线
  .highlight.djs-shape .djs-visual > :nth-child(1) {
    fill: #52c41a !important;
    stroke: #52c41a !important;
    fill-opacity: 0.2 !important;
  }

  .highlight.djs-shape .djs-visual > :nth-child(2) {
    fill: #52c41a !important;
  }

  .highlight.djs-shape .djs-visual > path {
    fill: #52c41a !important;
    fill-opacity: 0.2 !important;
    stroke: #52c41a !important;
  }

  .highlight.djs-connection > .djs-visual > path {
    stroke: #52c41a !important;
  }

  .highlight-todo.djs-connection > .djs-visual > path {
    stroke: #faad14 !important;
    stroke-dasharray: 4px !important;
    fill-opacity: 0.2 !important;
  }

  .highlight-todo.djs-shape .djs-visual > :nth-child(1) {
    stroke-dasharray: 5, 5;
    stroke-dashoffset: 500;
    stroke: #faad14 !important;
    fill: rgba(250, 173, 20, 0.2) !important;
  }

  @keyframes draw {
    100% {
      stroke-dashoffset: 0;
    }
  }

  .process-status {
    position: absolute;
    width: auto;
    height: auto;

    display: flex;
    float: right;
    top: 10px;
    left: 10px;
    font-size: 12px;
    z-index: 10;

    .intro {
      color: #262626;
      margin-top: 5px;
      margin-right: 8px;
    }

    .finish,
    .processing,
    .todo {
      padding: 4px 8px;
      border-radius: 3px;
      margin-right: 8px;
      display: flex;
      align-items: center;
      
      &::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 4px;
      }
    }

    .finish {
      background-color: #f6ffed;
      border: 1px solid #b7eb8f;
      color: #52c41a;
      
      &::before {
        background-color: #52c41a;
      }
    }

    .processing {
      background-color: #fffbe6;
      border: 1px solid #ffe58f;
      color: #faad14;
      
      &::before {
        background-color: #faad14;
      }
    }

    .todo {
      background: #f5f5f5;
      border: 1px solid #d9d9d9;
      color: #8c8c8c;
      
      &::before {
        background-color: #8c8c8c;
      }
    }
  }
}

// 适配Ant Design的全局样式调整
.ant-btn-group {
  .ant-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.ant-spin-container {
  height: 100%;
}

