.agent-diagram {
  position: relative;
  z-index: auto;

  svg.diagram {
    position: absolute;
    z-index: 1;
  }

  .overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: auto;

    .overlay {
      position: relative;
      z-index: auto;
      width: 100%;
      height: 100%;

      .badge {
        position: absolute;
        display: none;
        color: white !important;
        z-index: 2;
      }
    }
  }
}

.agent-diagram {
  position: relative;
  z-index: auto;

  svg.diagram {
    position: absolute;
    z-index: 1;
  }

  .overlay-container {
    z-index: auto;

    .overlay {
      z-index: auto;
      width: 100%;
      height: 100%;

      .badge {
        position: absolute;
        display: none;
        color: white !important;
        z-index: 2;
      }
    }
  }
}

Remove superfluous CSS position specifiers
Remove superfluous CSS position specifiers
