.text-node {
    width: 120px;
    height: 45px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #cbcbcb;
    -webkit-box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12);
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0,0,0,.12);
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-top: 10px;
}

.text-node.selected {
    border: 1px solid #6e9fd4;
}

.diagram-container {
    width: 100%;
    height: calc(100% - 52px);
}

.floating.alert {
    position: absolute;
    top: 62px;
    right: 8px;
    max-width: 400px;
}

.custom-node.selected, .custom-node.selected .port {
    border: 1px solid #6e9fd4;
}

.custom-node:hover .port {
    visibility: visible;
}

.custom-node .port {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;
    visibility: hidden;
}

    .custom-node .port:hover, .node > .card .port.has-links {
        visibility: visible;
        background-color: black;
    }

    .custom-node .port.bottom {
        position: absolute;
        bottom: -10px;
        left: 115px;
    }

    .custom-node .port.top {
        position: absolute;
        top: -10px;
        left: 115px;
    }

.diagram-canvas.grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgb(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(0, 0, 0, 0.05) 1px, transparent 1px);
}

.colored-node {
    border: 2px solid black;
    text-align: center;
}

    .colored-node.selected {
        border-color: blue;
    }

    .colored-node .port {
        width: 30px;
        height: 30px;
    }

        .colored-node .port.blue {
            background-color: blue;
        }

        .colored-node .port.red {
            background-color: red;
        }

.bg-primary {
    background: #40babd !important;
}

.group.custom {
    outline: 2px solid black;
    background-color: #6fbb6e;
}

    .group.custom > span.title {
        padding: 20px;
        position: absolute;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #eee;
        border: 2px solid black;
        border-radius: 50%;
        background-color: #6fbb6e;
        font-weight: bold;
        text-transform: uppercase;
    }
