.tooltip .tooltiptext {
    visibility: hidden;
    font-size: 12px;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    bottom: 50%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.diagram-container {
    background: transparent;
    width: 1000px;
    height: 100%;
    margin: auto;
    /* zoom: 125%; */
}
.diagram-container .node {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.diagram-container path {
    stroke-width: 2px !important;
}
.diagram-container .node > div:first-child {
    font-weight: bold;
    font-size: 11px;
    width: 100%;
    border: unset;
}
.diagram-container .node > div:first-child > div:first-child {
    background: unset;
    width: 100%;
}
.diagram-container .node > div:first-child > div:first-child > div {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.diagram-container .node > div:first-child > div:last-child {
    background-image: unset;
    padding: 0px 0px 2px 0px;
    width: 100%;
}
.diagram-container .node > div:first-child > div:last-child > div:first-child {
    text-align: left;
}
.diagram-container
    .node
    > div:first-child
    > div:last-child
    > div:first-child
    > div
    > div:last-child {
    visibility: hidden;
}
.diagram-container .node > div:first-child > div:last-child > div:last-child {
    text-align: right;
}
.diagram-container
    .node
    > div:first-child
    > div:last-child
    > div:last-child
    > div
    > div:first-child {
    visibility: hidden;
}
.circle-port {
    width: 12px;
    height: 12px;
    margin: 2px;
    border-radius: 4px;
    background: darkgray;
    cursor: pointer;
}

.circle-port:hover {
    background: mediumpurple;
}
