﻿:root {
    --linethick: 3px;
    --linewidth: 1.8em;
    --lineheigt: 2px;
    --linecolor: #bdbdbd;
}

ol {
    padding: 2rem 0;
    /*margin-top: 1rem;*/
}

li {
    margin: 0 !important;
}

.process_diagram ol {
    list-style: none;
    padding: 0;
}

.process_diagram ul {
    list-style: none;
    padding: 0;
}

.process_diagram {
    position: relative;
    z-index: 0;
}

    .process_diagram > li:first-child > div:before,
    .process_diagram > li:first-child > ul:before,
    .process_diagram > li:first-child > ul > li:before,
    .process_diagram > li:first-child > ul > li > div:first-child:before,
    .process_diagram > li:first-child > ul > li > ol > li:first-child > div:before,
    .process_diagram > li:last-child > div:after,
    .process_diagram > li:last-child > ul:after {
        border: 0;
        z-index: 10;
    }

    .process_diagram > li:first-child > div {
        /*    margin-top: 0 !important;
background-color: rgb(163, 163, 163);
color: white;
width: 70px;
height: 70px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: black;
color: white;
border: none;
cursor: pointer;*/
        border-radius: 50px;
    }

    .process_diagram > li:last-child > div {
        /*margin-bottom: 0 !important;
background-color: rgb(163, 163, 163);
color: white;*/
        /*border-radius: 50px;*/
    }

/*    .process_diagram li > div {
        position: relative;
        margin: 0 var(--linewidth);
        padding: 4px;
        border-width: var(--linethick);
    }

    .process_diagram li > div {
        background-color: #fff;
        color: #212529;
        border: 2px solid #bdbdbd;
        text-align: center;
        width: 300px;
        border-radius: 8px;
        height: 59px;
    }*/

.task {
    position: relative;
    margin: 0 var(--linewidth);
    padding: 4px;
    border-width: var(--linethick);
    background-color: #fff;
    color: #212529;
    border: 2px solid #bdbdbd;
    text-align: center;
    width: 260px;
    border-radius: 8px;
    height: 57px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

/*ul {
    display: flex;
}
*/
/*li {
    display: flex;
    justify-content: center;
}
*/
.process_diagram li {
    position: relative;
    display: flex;
    justify-content: center;
}

.process_diagram ul {
    position: relative;
    padding: 0 var(--linewidth);
    display: flex;
    justify-content: center;
}


    /*ul {
    display: flex;
    justify-content: center;
}*/

    .process_diagram ul > li:first-child::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 50%;
        height: var(--lineheigt);
        right: 0;
        display: block;
        background-color: var(--linecolor);
    }

    .process_diagram ul > li:last-child::before {
        content: "";
        position: absolute;
        z-index: 0;
        right: 50%;
        height: var(--lineheigt);
        left: 0;
        display: block;
        background-color: var(--linecolor);
    }

    .process_diagram ul > li::before {
        content: "";
        position: absolute;
        z-index: -1;
        right: 0%;
        height: var(--lineheigt);
        left: 0;
        display: block;
        background-color: var(--linecolor);
    }

    .process_diagram ul > li:first-child::after {
        content: "";
        position: absolute;
        z-index: -1;
        left: 50%;
        height: var(--lineheigt);
        right: 0;
        display: block;
        background-color: var(--linecolor);
        bottom: -2px;
    }

    .process_diagram ul > li:last-child::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 50%;
        height: var(--lineheigt);
        left: 0;
        display: block;
        background-color: var(--linecolor);
        bottom: -2px;
    }

    .process_diagram ul > li::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 0%;
        height: var(--lineheigt);
        left: 0;
        display: block;
        background-color: var(--linecolor);
        bottom: -2px;
    }
/*    .process_diagram ul > li::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 0%;
        height: var(--lineheigt);
        left: 0;
        bottom: -4px;
        display: block;
        background-color: rgb(21, 255, 0);
    }*/

/*div {
    position: relative;
}*/

.ol-fork::after {
    content: none !important;
}

.ol-fork > ol::after {
    content: "";
    position: absolute;
    border-left: var(--lineheigt) solid var(--linecolor);
    /* height: 42px; */
    left: 50%;
    top: 0px;
    /*bottom: 0;*/
    /*bottom: -2px;*/
    height: 30px;
    z-index: -1;
}

.process_diagram .task::before {
    content: "";
    position: absolute;
    border-left: var(--lineheigt) solid var(--linecolor);
    height: 25px;
    left: 50%;
    top: -27px;
}

.process_diagram .task::after {
    content: "";
    position: absolute;
    border-left: var(--lineheigt) solid var(--linecolor);
    height: 28px;
    left: 50%;
    top: 54px;
}

.process_diagram .task {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-left: 10px;
}

ul > li > ol::after {
    content: "";
    position: absolute;
    border-left: var(--lineheigt) solid var(--linecolor);
    /* height: 42px; */
    left: 50%;
    top: 0px;
    /*bottom: 0;*/
    bottom: -2px;
    z-index: -1;
}


/*Styling*/
.task-activ {
    border: 2px solid #FFB30F !important;
    background-color: #FFF4D3 !important;
}

.task-decision {
    /*    background-color: #ffc4c4 !important;*/
    border-radius: 0px 20px;
}

.task-completed {
    background-color: #d1f7cf !important;
}

.task-current {
    background-color: #ffedc6 !important;
}

.task-error {
    background-color: #ffcbc6 !important;
}
/*  FlowChat 2  */
ol .process_diagram > li > ul > li > ol > ul > li::after {
    content: "";
    position: absolute;
    border-left: var(--lineheigt) solid var(--linecolor);
    /* height: 42px; */
    left: 50%;
    top: 0px;
    bottom: 0;
    z-index: -1;
}

.text-truncat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 160px;
}

.zoom {
    position: absolute;
    top: 39px;
    left: 20px;
    background-color: white;
    /*padding: 10px;*/
    border-radius: 8px;
    border: 1px solid #e6e3e3;
    box-shadow: 0px 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 1;
}

.zoom div {
    cursor: pointer;
    height: 36px;
    padding: 7px;
}

.zoom div i {
    margin: 6px 10px;
    display: inline-block;
    font-size: 1rem;
}

.zoom div:first-child {
    border-bottom: 1px solid #e6e3e3;
}

.zoom div:last-child {
    border-top: 1px solid #e6e3e3;
}

.bi-plus-circle::before {
    background-color: #FCFCFD;
    color: #acacac;
}