.m-0 {
    margin: 0 !important;
}

.mt-0,
.my-0 {
    margin-top: 0 !important;
}

.mr-0,
.mx-0 {
    margin-right: 0 !important;
}

.mb-0,
.my-0 {
    margin-bottom: 0 !important;
}

.ml-0,
.mx-0 {
    margin-left: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.mt-1,
.my-1 {
    margin-top: 0.25rem !important;
}

.mr-1,
.mx-1 {
    margin-right: 0.25rem !important;
}

.mb-1,
.my-1 {
    margin-bottom: 0.25rem !important;
}

.ml-1,
.mx-1 {
    margin-left: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.mt-2,
.my-2 {
    margin-top: 0.5rem !important;
}

.mr-2,
.mx-2 {
    margin-right: 0.5rem !important;
}

.mb-2,
.my-2 {
    margin-bottom: 0.5rem !important;
}

.ml-2,
.mx-2 {
    margin-left: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.mt-3,
.my-3 {
    margin-top: 1rem !important;
}

.mr-3,
.mx-3 {
    margin-right: 1rem !important;
}

.mb-3,
.my-3 {
    margin-bottom: 1rem !important;
}

.ml-3,
.mx-3 {
    margin-left: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.mt-4,
.my-4 {
    margin-top: 1.5rem !important;
}

.mr-4,
.mx-4 {
    margin-right: 1.5rem !important;
}

.mb-4,
.my-4 {
    margin-bottom: 1.5rem !important;
}

.ml-4,
.mx-4 {
    margin-left: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.mt-5,
.my-5 {
    margin-top: 3rem !important;
}

.mr-5,
.mx-5 {
    margin-right: 3rem !important;
}

.mb-5,
.my-5 {
    margin-bottom: 3rem !important;
}

.ml-5,
.mx-5 {
    margin-left: 3rem !important;
}

.p-0 {
    padding: 0 !important;
}

.pt-0,
.py-0 {
    padding-top: 0 !important;
}

.pr-0,
.px-0 {
    padding-right: 0 !important;
}

.pb-0,
.py-0 {
    padding-bottom: 0 !important;
}

.pl-0,
.px-0 {
    padding-left: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.pt-1,
.py-1 {
    padding-top: 0.25rem !important;
}

.pr-1,
.px-1 {
    padding-right: 0.25rem !important;
}

.pb-1,
.py-1 {
    padding-bottom: 0.25rem !important;
}

.pl-1,
.px-1 {
    padding-left: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.pt-2,
.py-2 {
    padding-top: 0.5rem !important;
}

.pr-2,
.px-2 {
    padding-right: 0.5rem !important;
}

.pb-2,
.py-2 {
    padding-bottom: 0.5rem !important;
}

.pl-2,
.px-2 {
    padding-left: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.pt-3,
.py-3 {
    padding-top: 1rem !important;
}

.pr-3,
.px-3 {
    padding-right: 1rem !important;
}

.pb-3,
.py-3 {
    padding-bottom: 1rem !important;
}

.pl-3,
.px-3 {
    padding-left: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.pt-4,
.py-4 {
    padding-top: 1.5rem !important;
}

.pr-4,
.px-4 {
    padding-right: 1.5rem !important;
}

.pb-4,
.py-4 {
    padding-bottom: 1.5rem !important;
}

.pl-4,
.px-4 {
    padding-left: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-5,
.py-5 {
    padding-top: 3rem !important;
}

.pr-5,
.px-5 {
    padding-right: 3rem !important;
}

.pb-5,
.py-5 {
    padding-bottom: 3rem !important;
}

.pl-5,
.px-5 {
    padding-left: 3rem !important;
}

.chat {
    display: block;
    clear: both;
    content: "";
}

.chat-item-row {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: right;
}
.chat-item {
    display: inline-block;
    max-width: 60%;
    border-radius: 10px;
    border: 1px solid #367fa9;
    background: #3c8dbc;
    color: #fff;
    padding: 5px 10px;
    text-align: left;
}

.chat-item-info {
    font-size: 80%;
    text-align: right;
    opacity: 0.5;
}

.chat-item:hover .chat-item-info {
    opacity: 1;
}

.chat-item-row__other {
    text-align: left;
}

.chat-item-row__other .chat-item {
    background: #f3f2f2;
    border-color: #d2d6de;
    color: #444;
}

.chat-item-row__waiting .chat-item {
    background: rgba(60, 141, 188, 0.8);
    border-color: rgba(54, 127, 169, 0.8);
}

.chat-item-row__waiting .chat-item-info {
    opacity: 1;
}

.chat-send-form .input-group-btn {
    vertical-align: top;
}

.alert ul {
    margin: 0;
    list-style-type: none;
    padding-inline-start: 0;
}

.reply-node {
    position: relative;
    height: 28px;
    border: 1px solid #ffd3a4;
    border-radius: 0;
    background: #ffeecf;
    color: black;
}

.reply-node-key {
    position: absolute;
    top: 0;
    left: 7px;
    font-size: 80%;
    opacity: 0.9;
}

.reply-node-text {
    position: absolute;
    top: 8px;
    left: 7px;
    width: calc(100% - 14px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.message-node {
    position: relative;
    height: 64px;
    border: 1px solid #8f8f8f;
    color: black;
    background: white;
}

.message-node.first-node {
    background: #00ff5e;
}
.new-node {
    border-style: dashed;
    /*opacity: 0.8;*/
    background: #ecff01;
}
.message-node.highlight-node {
    /*border: 2px solid #001eff;*/
    background: #fdc9a3;
}


.message-node-text {
    position: absolute;
    top: 10px;
    left: 7px;
    width: calc(100% - 14px);
    height: 40px;
    overflow: hidden;
    /*white-space: nowrap;*/
    /*text-overflow: ellipsis;*/
    /*text-align: center;*/
}

.node-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 3px;
    visibility: hidden;
}

.node:hover .node-toolbar {
    visibility: visible;
}

.node-toolbar-button {
    background: black;
    padding: 2px;
    border-radius: 4px;
    color: white;
    width: 24px;
    height: 24px;
    text-align: center;
    border: none;
    outline: none;

}

.minimap{
    position: fixed;
    bottom: 51px;
    left: 240px;
}

@media (max-width: 767px) {

    .minimap {
        left: 20px;
    }

    .sidebar-open .minimap {
        bottom: 0;
    }
}

.custom-html {
    height: 60px;
}

.content-wrapper {
    position: relative;
}

.diagram-wrapper {
    position: absolute;
    top: 0;
    bottom: 0px;
    width: 100%;
}

.diagram-header {
    position: absolute;
    top: 0;
}

.diagram {
    position: absolute;
    top: 45px;
    bottom: 15px;
    overflow: hidden;
    left: 15px;
    right: 15px;
}

.diagram-modal {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    box-shadow: -3px 0 3px #ccc;
    transition: 200ms;overflow: auto;

    transform: translate(100%, 0);
}
.diagram-modal.show {
    transform: translate(0, 0);
}

.diagram-modal-close {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: none;
    font-size: 24px;
    line-height: 24px;
    width: 24px;
    height: 24px;
    text-align: center;
    color: #ccc;

    position: absolute;
    top: 10px;
    right: 10px;
}

.diagram-modal-close:hover {
    color: #333;
}

.diagram-add-node {
    position: absolute;
    bottom: 20px;
    right: 20px;
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 10px;
    width: 60px;
    height: 60px;
    background: #3c8dbc;
    color: #fff;
    font-size: 69px;
    line-height: 37px;
    opacity: .5;
    transition: opacity 200ms;
}

.diagram-add-node:hover {
    opacity: 1;
}

.list-group {
    margin-bottom: 0;
}

.list-group-item {
    border: 1px solid #ffd3a4;
    background: #ffeecf;
    height: 42px;
    cursor: grab;
}
.list-group-item .node-key {
    position: absolute;
    top: 0;
    left: 7px;
    font-size: 80%;
    opacity: 0.9;
}

.list-group-item .node-text {
    position: absolute;
    top: 8px;
    left: 7px;
    width: calc(100% - 14px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.list-group-add {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px 15px;
    background: #fff;
    outline: none;
    font-size: 18px;
    line-height: 18px;
}
.menu-label {
    font-weight: 700;
    margin-bottom: 5px;
}


.x6-widget-selection-box {
    border: 2px dashed #239edd;
}

.message-preview {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #eee;
    background-image: none;
    border: 1px solid #ccc;
    font-family: "Courier New";
}

.message-preview span {
    color: #0b93d5;
    font-weight: bold;
}

.navbar-nav>.user-menu .user-initials {
    float: left;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: -2px;
    display: none;
    background-color: #367fa9;
}

@media (max-width: 767px) {
    .navbar-nav > .user-menu .user-initials {
        float: none;
        margin-right: 0;
        margin-top: -8px;
        line-height: 10px;
        display: inline;
        padding: 5px;
    }
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-lang {
    color: #3c8dbc;
}

.login-page, .register-page {
    height: auto;
}

.auth-lang-switcher {
    text-align: center;
}

.loader-square {
    width: 64px;
    height: 64px;
    position: relative;
    background-image:
        linear-gradient(#d3d3d3 16px, transparent 0) ,
        linear-gradient(#3a3a3a 16px, transparent 0) ,
        linear-gradient(#3a3a3a 16px, transparent 0) ,
        linear-gradient(#d3d3d3 16px, transparent 0);
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: left top , left bottom , right top , right bottom;
    animation: rotate 1s linear infinite;
    margin: 0 auto;
}
@keyframes rotate {
    0% {
        width: 64px;
        height: 64px;
        transform: rotate(0deg)
    }
    50% {
        width: 30px;
        height: 30px;
        transform: rotate(180deg)
    }
    100% {
        width: 64px;
        height: 64px;
        transform: rotate(360deg)
    }
}

.loader-circle {
    width: 48px;
    height: 48px;
    border: 24px solid;
    border-color: rgba(100, 100, 100, 0.15) rgba(100, 100, 100, 0.25) rgba(100, 100, 100, 0.35) rgba(100, 100, 100, 0.5);
    border-radius: 50%;
    /*display: inline-block;*/
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
    margin: 0 auto;
}

@keyframes animloader {
    0% {
        border-color: rgba(100, 100, 100, 0.15) rgba(100, 100, 100, 0.25) rgba(100, 100, 100, 0.35) rgba(100, 100, 100, 0.75);
    }
    33% {
        border-color: rgba(100, 100, 100, 0.75) rgba(100, 100, 100, 0.15) rgba(100, 100, 100, 0.25) rgba(100, 100, 100, 0.35);
    }
    66% {
        border-color: rgba(100, 100, 100, 0.35) rgba(100, 100, 100, 0.75) rgba(100, 100, 100, 0.15) rgba(100, 100, 100, 0.25);
    }
    100% {
        border-color: rgba(100, 100, 100, 0.25) rgba(100, 100, 100, 0.35) rgba(100, 100, 100, 0.75) rgba(100, 100, 100, 0.15);
    }
}

.loader-dots, .loader-dots:before, .loader-dots:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader-dots {
    color: #999;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
    margin: 0 auto;
}
.loader-dots:before,
.loader-dots:after {
    content: '';
    position: absolute;
    top: 0;
}
.loader-dots:before {
    left: -3.5em;
    animation-delay: -0.32s;
}
.loader-dots:after {
    left: 3.5em;
}

@keyframes bblFadInOut {
    0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
    40% { box-shadow: 0 2.5em 0 0 }
}

