﻿

.card-state {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 300px;
    text-align: center;
    height: 85px;
}

.card-state:hover {
    box-shadow: 0 6px 15px 0 rgba(0,0,0,0.5);
    transition: 0.1s;
/*    width: 300px;
    text-align: center;
    height: 85px;*/
}


.icon-po-top {
    position: absolute;
    right: 0;
    top: 55px;
    padding: 5px 5px 5px 5px;

}



.icon-po-top {
    position: absolute;
    right: 0;
    top: 55px;
    padding: 5px 5px 5px 5px;
}


.number-frame {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 5px 1px 1px 1px;
    background: #fff;
    border: 1px solid #d4d4d4;
    color: #666;
    text-align: center;
    /*font: 32px Arial, sans-serif;*/
    position: absolute;
    right: 0;
}

.number-dimon-frame {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 5px 1px 1px 1px;
    background: #fff;
    border: 2px solid #666;
    color: #666;
    text-align: center;
    /*font: 32px Arial, sans-serif;*/
    position: absolute;
}


/*Stop */

.p-ncon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;
}


.p-diamond-ncon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;
}


/*
    0
2       3
    1

*/

/*.card-node .a-top {*/ /*0*/
    /*position: absolute;
    top: -10px;
    left: 140px
}

.card-node .a-bottom {*/ /*1*/
    /*position: absolute;
    bottom: -10px;
    left: 140px;
}

.card-node .a-left {*/ /*2*/
    /*position: absolute;
    left: -10px;
    top: 32px;
}

.card-node .a-right {*/ /*3*/
    /*position: absolute;
    right: -10px;
    top: 32px;
}*/


.diagram-select {
    margin: 0px !important;
}


.diagram-top {
    margin-top: 35px;
}


.box-container {
    position: relative;
    height: auto;
    /*    width: 200px;*/
    text-align: center;
    /*    margin: 50px;*/ /* Delete for debugging purposes*/
    cursor: pointer;
}


.box-container-abs {
    position: absolute;
    height: auto;
    /*    width: 200px;*/
    text-align: center;
    /*    margin: 50px;*/ /* Delete for debugging purposes*/
    cursor: pointer;
}


    .box-container span {
        margin-top: -6px;
        margin-left: 38px;
        font-size: 90%;
        background-color: #fb5100;
        color: white;
        position: absolute;
    }



    .box-title {
        height: auto;
        width: max-content;
        margin-left: 50%;
        transform: translateX(-50%);
        max-width: 200px;
        padding: 5px;
        border: black solid 1px;
        border-radius: 10px;
        background-color: white;
        overflow: hidden;
        cursor: pointer;
        text-align:center;
    }

    .box-container .box-body {
        width: 100px;
        height: 100px;
        margin-left: 50px;
        margin-right: 50px;
        margin-top: 25px;
        margin-bottom: 1px;
        /*       background-color: rgb(10 23 118);*/
        border-radius: 10px;
        /* box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5);*/
        cursor: move;
    }

    .box-body:hover {
        box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5);
    }


.diamond-container-abs {
    position: absolute;
    height: auto;
    /*width: 200px;*/
    text-align: center;
    /*margin: 50px;*/ /* Delete for debugging purposes*/
    /*  cursor: pointer;*/
}

/* New Dimon */
.diamond-container {
    position: relative;
    height: auto;
    /*width: 200px;*/
    text-align: center;
    /*margin: 50px;*/ /* Delete for debugging purposes*/
    /*  cursor: pointer;*/
}

    .diamond-container .box-title {
        height: auto;
        width: max-content;
        margin-left: 50%;
        transform: translateX(-50%);
        max-width: 200px;
        padding: 5px;
        border: black solid 1px;
        border-radius: 10px;
        background-color: white;
        overflow: hidden;
        cursor: pointer;
        margin-bottom: 30px;
    }


/*.diamondTitle{
    height:auto;
    width: max-content;
    margin-left: 50%;
    transform: translateX(-50%);
    max-width: 200px;
    padding: 5px;
    border: black solid 1px;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
}*/

.diamond-body {
    width: 85px;
    height: 85px;
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 25px;
    margin-bottom: 1px;
    background-color: rgb(10 23 118);
    border-radius: 10px;
    /* box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5);*/
    transform: rotate(45deg);
    cursor: move;
}


    .diamond-body:hover {
        box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5);
    }


    .diamond-body:active,
    .box-body:active {
        box-shadow: none;
    }

.diamond-container .a-top { /*0*/
    position: absolute;
    bottom: 100px;
    left: 82px;
}

.diamond-container .a-bottom { /*1*/
    position: absolute;
    bottom: -5px;
    left: 82px;
}

.diamond-container .a-left { /*2*/
    position: absolute;
    bottom: 47px;
    left: 29px;
}

.diamond-container .a-right { /*3*/
    position: absolute;
    bottom: 47px;
    left: 135px;
}

.diamond-container .arrow-p-down { /*0*/
    position: absolute;
    bottom: 104px;
    left: 77px;
}

.diamond-container .arrow-p-up { /*1*/
    position: absolute;
    bottom: -2px;
    left: 77px;
}

.diamond-container .arrow-p-left { /*2*/
    position: absolute;
    bottom: 43px;
    left: 32px;
}

.diamond-container .arrow-p-right { /*3*/
    position: absolute;
    bottom: 43px;
    left: 136px;
}


/*.diamond-container .port {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;*/
      /* visibility: hidden;*/
/*}*/


.diamond-container span {
    position: absolute;
    bottom: 77px;
    left: 53px;
    font-size: 90%;
    background-color: #fb5100;
    color: white;
    z-index: 1;
}

.diamond-thash-p {
    right: 52px;
    bottom: 5px;
}

.diamond-container-size {
    width: 185px;
    height: 100px;
    margin-top: 33px;
}

.box-start {
    background-color: #6bb983;
}

.box-state {
    background-color: rgb(10 23 118);
}

.box-end {
    background-color: #b34b41;
}




.box-container .a-top { /*0*/
    position: absolute;
    bottom: 90px;
    left: 92px
}

.box-container .a-bottom { /*1*/
    position: absolute;
    bottom: -10px;
    left: 92px;
}

.box-container .a-left { /*2*/
    position: absolute;
    bottom: 40px;
    left: 40px
}

.box-container .a-right { /*3*/
    position: absolute;
    bottom: 40px;
    left: 140px
}

/*.box-container .port {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;*/
    /*    visibility: hidden;*/
/*}*/


.box-container .arrow-p-down { /*0*/
    position: absolute;
    bottom: 90px;
    left: 86px
}

.box-container .arrow-p-up { /*1*/
    position: absolute;
    bottom: -10px;
    left: 87px;
}

.box-container .arrow-p-left { /*2*/
    position: absolute;
    bottom: 35px;
    left: 40px
}

.box-container .arrow-p-right { /*3*/
    position: absolute;
    bottom: 35px;
    left: 140px
}


/*.card-node .arrow-p-down {*/ /*0*/
    /*position: absolute;
    top: -10px;
    left: 136px;
}

.card-node .arrow-p-up {*/ /*1*/
    /*position: absolute;
    bottom: -10px;
    left: 136px;
}

.arrow-p-left {*/ /*2*/
    /*position: absolute;
    left: -10px;
    top: 28px;
}

.card-node .arrow-p-right {*/ /*3*/
    /*position: absolute;
    right: -10px;
    top: 28px;
}*/

/*  */

.arrow-up {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid black;
    position: absolute;
    visibility: visible;
    /*  position: relative; */
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid black;
    position: absolute;
    visibility: visible;
    /* position: relative; */
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid black;
    position: absolute;
    visibility: visible;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid black;
    position: absolute;
    visibility: visible;
}


/* Red arrow traget for delete */
.arrow-up-delete {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid red;
    position: absolute;
    visibility: visible;
}

.arrow-down-delete {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid red;
    position: absolute;
    visibility: visible;
}

.arrow-right-delete {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid red;
    position: absolute;
    visibility: visible;
}

.arrow-left-delete {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid red;
    position: absolute;
    visibility: visible;
}


.p-ncon.has-links {
    visibility: visible;
    background-color: black;
    border: 1px solid black;
}


.p-ncon-delete {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #d4d4d4;
    cursor: pointer;
    visibility: visible;
    background-color: red;
    border: 1px solid red;
}


/*.has-links {
    visibility: visible;
}
*/

.proc {
    visibility: hidden;
}

    .proc.has-links {
        visibility: visible;
    }

/* 
.itemhide {
    transition: all 0.2s ease;
    opacity: 1;
}

    .itemhide.hide {
        opacity: 0;
    }

*/

/*https://cssanimation.rocks/list-items/*/

.itemhide {
    transition: all 0.4s ease-out;
    opacity: 1;
}

    .itemhide.hide {
        transition: all 0.4s ease-out;
        opacity: 0;
    }

/* 
table-hidden tr {
    display: block;
}
*/

.form-border .card-box{
    border-radius: 10px;
    margin-bottom: 5px;
}


