.mod-bpmn-editor {
  position: relative;
  height: 100%;
  min-height: 100px;
  background: #f4f9ff;
  background-image: radial-gradient(#ddd 1px, transparent 0);
  background-size: 20px 20px;
  background-position: -21px -21px;

  .djs-container {
    --color-blue-205-100-45: #3061f2;
    --color-blue-205-100-50: #3061f2;
  }
  .bpmn-replace {
    min-width: 248px;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #d2d2d2;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    .djs-popup-header {
      border-bottom: none;
    }
    .djs-popup-body {
      .entry {
        height: 40px;
        line-height: 40px;
        padding: 0px 8px;
        cursor: pointer;
        border-radius: 2px;
      }
      .entry:hover {
        background-color: #eff1f4;
      }
    }
  }

  .djs-palette {
    width: 68px !important;
    padding: 16px !important;
    border-radius: 4px !important;
    border-color: #dadada !important;
    background: #fff !important;
    top: 90px !important;
    .entry {
      width: 36px !important;
      height: 36px !important;
      line-height: 36px !important;
      color: #696d72 !important;
      margin-bottom: 8px;
    }
    .entry:hover {
      background: #f2f6ff;
      border-radius: 2px;
      color: rgba(50, 105, 219, 1) !important;
    }
    .entry:before {
      vertical-align: baseline !important;
      font-size: 24px !important;
    }
    .separator {
      padding-top: 16px !important;
      margin-bottom: 16px !important;
    }
  }
  &__diagram {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  &__properties {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 300px;
    z-index: 2;
    background: #ffffff;
    border-radius: 4px 0 0 4px;
    .bpp-properties-tab-bar {
      display: none;
    }
    .bpp-properties-header {
      display: none;
    }
    .group-toggle {
      display: none;
    }
    .group-header {
      height: 50px !important;
      padding: 0 20px !important;
      border-bottom: 1px solid #eaeaea;
      .group-label {
        line-height: 50px !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        color: #16191c !important;
      }
    }
    .bpp-properties-panel [contenteditable] {
      min-height: 28px !important;
    }
    .bpp-properties-entry {
      padding: 20px 20px 0 20px;
      margin-bottom: 0px;
    }
    &--folded {
      display: none;
    }

    &-handler {
      position: absolute !important;
      width: 40px !important;
      height: 40px !important;
      border-radius: 50% !important;
      bottom: 30px;
      right: 280px;
      z-index: 3;

      &--unfold {
        right: 0;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
      }
    }

    .bpp-properties-panel {
      background: #fff;
    }

    // hide property tab head if only one
    .bpp-properties-tab-link:only-child {
      display: none;
    }
  }

  &__toolbar {
    position: absolute;
    top: 20px;
    right: 350px;
    height: 36px;
    display: flex;
    align-items: center;
    .tool-group {
      background-color: #ffffff;
      box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      height: 36px;
      $tool-color: #56595b;
      display: flex;
      align-items: center;
      color: $tool-color;
      margin-left: 8px;
      button {
        color: $tool-color;
      }
      .tool-group-percent {
        text-align: center;
      }

      &:last-child {
        border-right: none;
      }
    }
    .tool-item {
      margin-left: 16px;
      &:last-child {
        margin-right: 16px;
      }
    }
  }
  .djs-hit-all {
    stroke: transparent;
  }
  // .djs-connection {
  //   .djs-visual {
  //     path {
  //       stroke: #9e9e9e !important;
  //       marker-end: url(#sequenceflow-arrow-normal) !important;
  //     }
  //   }
  // }
  .djs-snap-line {
    stroke: #3061f2 !important;
    stroke-dasharray: 3 3;
    stroke-width: 1px;
  }
  .djs-crosshair {
    stroke: #3061f2 !important;
    stroke-dasharray: 3 3;
    stroke-width: 1px;
  }
  // .djs-shape {
  //   .djs-visual {
  //     path {
  //       stroke: #3061f2 !important;
  //     }
  //   }
  // }
  .djs-direct-editing-parent {
    border-radius: 4px;
    border-color: #3061f2;
    border-width: 2px;
  }
  .djs-overlay-context-pad {
    width: 114px;
    .djs-context-pad {
      background: #3061f2;
      padding: 12px 0;
      border-radius: 4px;
      .entry {
        width: 30px;
        height: 30px;
        background-color: transparent;
        color: #fff;
        padding: 4px;
        margin: 0;
        margin-bottom: 4px;
        box-shadow: none;
        cursor: pointer;
      }
      .entry:hover {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 4px;
      }
      .group[data-group="model"] {
        padding: 0 12px 4px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }
      .group[data-group="edit"] {
        padding: 4px 12px 0px;
        .entry {
          color: #0028a0;
        }
      }
      .group[data-group="connect"] {
        padding: 0 12px;
        .entry {
          color: #0028a0;
        }
      }
    }
  }
}

// hide logo
.bjs-powered-by {
  display: none;
}
