i.arrow {
    border: solid black;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 5px;
    position: absolute;
}

i.arrow.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

i.arrow.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

i.arrow.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

i.arrow.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.wf_node div.dominance,
.wf_node div.wf_node_stats {
    font-family: consolas, monospace;
    background-color: #c3e9fb;
    border-radius: 50px;
    border: 1px solid #24AEF2;
    color: #1d83b5;
    display: inline-block;
    font-size: 10px;
    height: 14px;
    line-height: 0.95rem;
    margin-left: 0;
    margin-top: 3px;
    min-width: 0.7rem;
    padding: 0 4px;
    position: absolute;
    text-align: center;
    width: auto;
}

#workflowFormEditor {
    border-bottom: 1px solid #eeeeee;
}

div.dominance {
    left: 6px;
    float: left;
    position: relative !important;
}

.wf_node div.wf_node_stats {
    right: 6px;
}

.wf_node.multiple div.wf_node_stats {
    display: none !important;
}

.wf_node.abtest div.wf_node_stats {
    display: none !important;
}

.wf_node.split div.wf_node_stats {
    display: none !important;
}

.wf_node.a26 div.wf_node_stats {
    margin-left: 0 !important;
    margin-top: -29px;
    display: none !important;
}

.wf_node.a29 div.wf_node_stats {
    margin-left: -2px !important;
    margin-top: -29px;
    display: none !important;
}

#wf_popup {
    display: none;
    position: fixed;
    width: auto;
    height: auto;
    top: 92px;
    margin-top: 0;
    overflow: auto;
    left: 300px !important;
    right: 0px;
    bottom: 0px;
    margin: 0px !important;
    padding: 30px;
    z-index: 600;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -moz-box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0px;
    border-top: 1px solid #f6f9ff;
}

#workflowNodeForm
{
    background: none !important;
}

#wf_popup h4 {
    padding-top: 0 !important;
}

#wf_black {
    display: none;
    position: fixed;
    z-index: 490;
    left: 0;
    right: 0;
    top: 0px;
    bottom: 0;
    width: auto;
    height: auto;
    cursor:pointer;
}

.wf_area {
    padding-top: 30px;
    padding-bottom: 30px;
    border-radius: 0;
    height: auto;
    position: absolute;
    z-index: 3;
    width: max-content;
    left: 230px;
    right: 30px;
    margin-top: 0;
    margin-bottom: 230px;
}

.wf_area.paste-mode .wf_node {
    transition: margin-top .12s ease, margin-bottom .12s ease;
}

.wf_row_td {
    min-width: 250px;
}

.wf_node {
    --wf-log-icon-color: #2f4059;
    display: block;
    width: 230px;
    padding: 0;
    color: #2f4059;
    border: 1px dashed #859bba;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 70px;
    text-shadow: none;
    font-size: 13px;
    cursor: default;
    min-height: 18px;
    word-wrap: break-word;
    -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.container {
    width: 230px;
}

.container.split,
.container.multiple,
.container.abtest {
    width: 30px;
}

.wf_node .header {
    padding: 3px 3px 3px 0;
    font-weight: bold !important;
    border-bottom: 1px solid #859bba;
    color: #2f4059;
    background-color: transparent;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

/* Show move cursor only in debug mode when nodes are actually movable */
.debug-mode .wf_node .header {
    cursor: move;
}

.wf_node .a {
    padding: 15px;
    cursor: pointer;
}

.wf_node_end {
    color: #33455f;
    border: 0 solid #859bba;
    border-top: 5px solid #859bba;
    background-color: transparent;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-top: 10px;
    border-radius: 18px;
    position:absolute;
    transform: translateX(80px);
}

.wf_node.action {
    --wf-log-icon-color: #1d83b5;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #24AEF2;
}

.wf_node.action .header {
    border-bottom: 1px solid #24AEF2;
    color: #1d83b5;
    background-color: #c3e9fb;
}

.wf_node.action div.dominance,
.wf_node.action div.wf_node_stats {
    border: 1px solid #24AEF2;
    color: #1d83b5;
    background-color: #c3e9fb;
}

.wf_node.action.a26 .header,
.wf_node.action.a29 .header {
    display: none;
}

.wf_node.action i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.action.a26,
.wf_node.action.a29 {
    width: 180px;
    margin-left: 129px;
    margin-top: -7px;
    margin-bottom: 55px;
    border: 1px solid #24AEF2;
    color: #1d83b5;
    background-color: #c3e9fb;
}

.wf_node.action.a29 {
    margin-left: -206px;
}

.wf_node.action.a26 .a {
    text-align: center;
    padding: 5px;
}

.wf_node.action.a29 .a {
    text-align: center;
    padding: 5px;
}

.wf_node.action.a26 i.arrow,
.wf_node.action.a29 i.arrow {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    border: solid #859bba;
    border-width: 0 1px 1px 0;
    background-color: #c3e9fb;
    margin-left: -95px;
    margin-top: -17px;
    padding: 3px;
}

.wf_node.action.a29 i.arrow {
    background-color: #c3e9fb;
    border: solid #859bba;
    border-width: 0 1px 1px 0;
    margin-left: 88px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.wf_node.action.a26 i.dot {
    background: #24AEF2;
    display: inline-block;
    position: absolute;
    border-radius: 20px;
    width: 7px;
    height: 7px;
    margin-left: -107px;
    margin-top: -17px;
}

.wf_node.action.a29 i.dot {
    background: #24AEF2;
    display: inline-block;
    position: absolute;
    border-radius: 20px;
    width: 7px;
    height: 7px;
    margin-left: 100px;
    margin-top: -17px;
}

.wf_node.empty {
    --wf-log-icon-color: #cccccc;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid #cccccc;
}

.wf_node.empty .header {
    border-bottom: 1px solid #cccccc;
    color: #cccccc;
    background-color: rgba(255, 255, 255, 1);
}

.wf_node.empty div.dominance,
.wf_node.empty div.wf_node_stats {
    border: 1px solid #cccccc;
    color: #859bba;
    background-color: #ffffff;
}

.wf_node.empty i.arrow {
    border: solid #cccccc;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.trigger {
    --wf-log-icon-color: #4b7720;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #8ac84d;
}

.wf_node.trigger .header {
    border-bottom: 1px solid #8ac84d;
    color: #4b7720;
    background-color: #e6ffce;
}

.wf_node.trigger div.dominance,
.wf_node.trigger div.wf_node_stats {
    border: 1px solid #8ac84d;
    color: #4b7720;
    background-color: #e6ffce;
}

.wf_node.trigger i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.delay {
    --wf-log-icon-color: #de213c;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #fe2342;
}

.wf_node.delay .header {
    border-bottom: 1px solid #fe2342;
    color: #de213c;
    background-color: #ffe3e7;
}

.wf_node.delay div.dominance,
.wf_node.delay div.wf_node_stats {
    border: 1px solid #fe2342;
    color: #de213c;
    background-color: #ffe3e7;
}

.wf_node.delay i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.decision {
    --wf-log-icon-color: #a78d10;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #FFDA24;
}

.wf_node.decision .header {
    border-bottom: 1px solid #FFDA24;
    color: #a78d10;
    background-color: #fff6cc;
}

.wf_node.decision div.dominance,
.wf_node.decision div.wf_node_stats {
    border: 1px solid #FFDA24;
    color: #a78d10;
    background-color: #fff6cc;
}

.wf_node.decision i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.multiple {
    --wf-log-icon-color: #a71c9f;
    color: #000000;
    background-color: #a71c9f;
    border: 0 solid #a71c9f;
    height: 30px;
    width: 30px;
    border-radius: 200px;
    margin-bottom: 30px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node.multiple .header {
    position: absolute;
    height: 30px;
    width: 30px;
    border: 0;
}

.wf_node.multiple div.icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../images/icons/split_icon.png);
    background-size: 100%;
    background-repeat: no-repeat;
    margin-left: 10px;
    margin-top: 10px;
}

.wf_node.multiple i.arrow {
    display: none;
}

.wf_node.multiple_output {
    --wf-log-icon-color: #a71c9f;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #a71c9f;
}

.wf_node.multiple_output .header {
    border-bottom: 1px solid #a71c9f;
    color: #a71c9f;
    background-color: #fef5fd;
}

.wf_node.multiple_output div.dominance,
.wf_node.multiple_output div.wf_node_stats {
    border: 1px solid #a71c9f;
    color: #a71c9f;
    background-color: #fef5fd;
}

.wf_node.multiple_output i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.abtest {
    --wf-log-icon-color: #916e2b;
    color: #000000;
    background-color: #f1e7d5;
    border: 0 solid #916e2b;
    height: 30px;
    width: 30px;
    border-radius: 200px;
    margin-bottom: 30px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node.abtest .header {
    position: absolute;
    height: 30px;
    width: 30px;
    border: 0;
}

.wf_node.abtest div.icon {
    display: block;
    width: 20px;
    height: 20px;
    background-image: none;
    background-size: 100%;
    background-repeat: no-repeat;
    margin-left: 10px;
    margin-top: 10px;
}

.wf_node.abtest i.arrow {
    display: none;
}

.wf_node.abtest_output {
    --wf-log-icon-color: #916e2b;
    color: #000000;
    background-color: #ffffff;
    border: 0 solid #a71c9f;
}

.wf_node.abtest_output .header {
    color: #916e2b;
    background-color: #f1e7d5;
    border-bottom: 1px solid #916e2b;
}

.wf_node.abtest_output div.dominance,
.wf_node.abtest_output div.wf_node_stats {
    border: 1px solid #916e2b;
    color: #916e2b;
    background-color: #f1e7d5;
}

.wf_node.abtest_output i.arrow {
    border: solid #dddddd;
    border-width: 0 1px 1px 0;
    background-color: #ffffff;
    margin-left: -5px;
    margin-top: -5px;
}

.wf_node.split {
    --wf-log-icon-color: #859bba;
    color: #000000;
    background-color: #c1d3e6;
    border: 0 solid #859bba;
    width: 30px;
    height: 30px;
    border-radius: 200px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node.split .header {
    position: absolute;
    height: 40px;
    width: 40px;
    border: 0;
}

.wf_node.split i.arrow {
    display: none;
}

.wf_node.hidden {
    color: #000000;
    background-color: transparent;
    border: 0 solid #aaaaaa;
    min-height: 0;
    margin-bottom: 43px;
}

.wf_node.hidden .header {
    display: none;
}

.wf_node.hidden i.arrow {
    display: none;
}

.wf_node.hidden .a {
    padding: 0;
}

.wf_node:hover {
    -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

/* Don't apply node-hover styling while hovering its add-node button */
.wf_node.wf_node_add_hovering:hover {
    -moz-box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.wf_node.wf_node_add_hovering:hover .wf_node_delete {
    display: none !important;
}

.wf_node.split .a:hover {
    width: auto;
    height: 30px;
    border-radius: 200px;
    margin-bottom: -13px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node.end {
    margin-top: 100px;
}

.wf_node.end .a:hover {
    cursor: default;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node.hidden .a:hover {
    cursor: default;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.wf_node_add {
    display: none;
    position: absolute;
    background-color: transparent;
    color: #859bb9;
    cursor: pointer;
    margin-top: 17px;
    width: 24px;
    height: 24px;
}

.wf_node_add:hover {
    background-color: transparent;
}

.wf_node_add .wf_plus_icon {
    box-sizing: border-box;
    background: #ffffff;
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 999px;
    position: absolute;
    top: 0;
    left: 0;
}

.wf_node_add .wf_plus_icon_filled {
    display: none;
}

.wf_node_add:hover .wf_plus_icon_outline {
    display: none;
}

.wf_node_add:hover .wf_plus_icon_filled {
    display: block;
}

.wf_node_add.right {
    background-color: #e6ffce;
    border: 1px solid #4b7720;
    border-radius: 999px;
    color: #4b7720;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: normal;
    line-height: 18px;
    padding: 6px 10px;
    position: absolute;
    right: 6px;
    left: auto;
    top: -70px;
    opacity: 0.55;
    text-align: center;
    text-shadow: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    width: auto;
    z-index: 6;
}

.wf_node_add.right .wf_add_trigger_btn {
    display: inline-block;
    font-size: 13px;
    font-weight: normal;
    line-height: 18px;
}

.wf_node_add.right .wf_add_trigger_btn:before {
    content: '+';
    display: inline-block;
    margin-right: 8px;
}

.wf_node_add.right table tr td:hover {
    background-color: #f6f9ff;
    color: #859bba !important;
    border-color: #859bba !important;
}

.wf_node_add.right:hover {
    background-color: #e6ffce;
    color: #4b7720;
    border-color: #4b7720;
    opacity: 0.95;
    transform: translateY(-1px);
}

.wf_node_add.right:active {
    transform: translateY(0px);
}

.wf_node_add.right table {
    height: 20px;
    width: 20px;
    margin-top: 0px;
}

.wf_node_add.right table tr td {
    font-size: 40px !important;
    color: #cccccc !important;
    border: 1px solid #cccccc !important;
    border-radius: 100%;
    padding: 10px 10px;
    height: 50px;
    width: 50px;
    display: block;
    box-sizing: border-box;
    transition: all .3s ease;
}

.wf_node_add.split {
    display: none;
    position: absolute;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, serif;
    border-radius: 20px;
    height: 18px;
    width: 18px;
    text-align: center;
    padding-top: 1px;
    padding-left: 1px;
    text-shadow: none;
    cursor: pointer;
    margin-left: 40px;
    margin-top: 6px;
    z-index: 10;
}

.wf_node_add.multiple {
    display: none;
    position: absolute;
    height: 18px;
    width: 18px;
    text-align: center;
    padding-top: 1px;
    padding-left: 1px;
    cursor: pointer;
    margin-left: 47px;
    margin-top: 9px;
}

.wf_node_add.abtest {
    display: none;
    position: absolute;
    height: 18px;
    width: 18px;
    text-align: center;
    padding-top: 1px;
    padding-left: 1px;
    cursor: pointer;
    margin-left: 42px;
    margin-top: 6px;
}

.wf_node.start .wf_node_add.bottom {
    margin-left: 80px;
}

.wf_node.split .wf_node_add.bottom {
    margin-top: 18px;
    margin-left: 20px;
}

.wf_node.hidden .wf_node_add.bottom {
    margin-top: 0;
}

.wf_node.a26 .wf_node_add.bottom {
    margin-top: 15px;
    margin-left: -24px;
}

.wf_node.a29 .wf_node_add.bottom {
    margin-top: 15px;
    margin-left: 184px;
}

.wf_node_add.bottom {
    margin-left: 103px;
}

.wf_node_delete {
    display: none;
}

.wf_node:hover .wf_node_delete {
    display: block;
    position: absolute;
    background-color: #fe2342;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    font-family: Arial, serif;
    line-height: 0;
    border-radius: 20px;
    height: 18px;
    width: 18px;
    text-align: center;
    padding-top: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    cursor: pointer;
    margin-top: -7px;
    margin-left: -8px;
    opacity: 1;
    z-index: 10;
}

.wf_node:hover .wf_node_delete svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    display: block;
    margin: 0;
}

.wf_node:hover .wf_node_delete.wf_node_action {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    background-color: #ffffff;
    color: #859bba;
    border: 1px solid #859bba;
    box-sizing: border-box;
    gap: 0;
}

.wf_node:hover .wf_node_delete.wf_node_action.wf-move {
    color: #6c757d;
    border-color: #6c757d;
}

.wf_node:hover .wf_node_delete.wf_node_action svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    display: block;
    margin: 0;
}

.wf_node:hover .wf_node_delete:hover {
    opacity: 1;
}

.wf-node-log-button {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wf-log-icon-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    opacity: 1;
    transition: color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
    z-index: 9;
}

.wf-node-log-button:hover,
.wf-node-log-button.active {
    color: var(--wf-log-icon-color);
    background: rgba(255, 255, 255, 0.28);
}

.wf-node-log-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.wf_node.wf-log-open {
    box-shadow: 0 0 0 4px rgba(51, 142, 198, 0.18);
}

.wf_node.decision div.yes {
    display: block;
    position: absolute;
    margin-left: 70px;
    margin-top: 5px;
    background-color: #8ac84d;
    color: #ffffff;
    padding: 1px 2px 2px;
    font-size: 11px;
    border-radius: 7px;
    width: 30px;
}

.wf_node.decision div.no {
    display: block;
    position: absolute;
    margin-left: 128px;
    margin-top: 5px;
    background-color: #fe2342;
    color: #ffffff;
    padding: 2px;
    font-size: 10px;
    border-radius: 7px;
    width: 30px;
}

.wf_node.decision div.yes.inverted {
	margin-left: 128px;
}

.wf_node.decision div.no.inverted {
	margin-left: 70px;
}

#svgContainer {
    position: absolute;
    z-index: 2;
}

.legend {
    display: block;
    border-radius: 20px;
    height: 14px;
    width: 14px;
    float: left;
    margin-right: 10px;
}

div.addnode {
    padding: 15px;
    border-radius: 7px;
    text-shadow: none;
    font-size: 14px;
    border: 1px solid #eeeeee;
    margin-bottom: 4px;
    cursor: pointer;
}

div.addnode:hover {
    -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}

.formatted_table .legend,
div.addnode .legend {
    border-radius: 80px;
    height: 32px;
    width: 32px;
}

.legend.trigger {
    background-color: #e6ffce;
    border: 1px solid #8ac84d;
}

.legend.action {
    background-color: #c3e9fb;
    border: 1px solid #24AEF2;
}

.legend.multiple {
    background-color: #fef5fd;
    border: 1px solid #a71c9f;
}

.legend.abtest {
    background-color: #f1e7d5;
    border: 1px solid #916e2b;
}

.legend.empty {
    background-color: #ffffff;
    border: 1px dashed #aaaaaa;
}

.legend.split {
    background-color: #fafafa;
    border: 1px solid #aaaaaa;
}

.legend.decision {
    background-color: #fff6cc;
    border: 1px solid #FFDA24;
}

.legend.delay {
    background-color: #ffe3e7;
    border: 1px solid #fe2342;
}

.legend.inactive {
    margin-left: 10px;
    background-color: #ffe3e7;
    border: 1px solid #fe2342;
    height: 14px;
    width: 14px;
}

.legend.debug {
    margin-left: 10px;
    margin-top: -7px;
    background-color: #fde9c0;
    border: 1px solid #ffaa00;
    height: 4px;
    width: 4px;
}

.legend.active {
    margin-left: 10px;
    background-color: #e6ffce;
    border: 1px solid #8ac84d;
    height: 14px;
    width: 14px;
}

.log {
    display: none !important;
}

.log div.entry {
    padding-top: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid #eeeeee;
}

.wf_node.split div.log {
    display: none !important;
}

.debug {
    line-height: 18px;
    text-align: left;
    background-color: transparent;
    position: absolute;
    display: block;
    width: 300px;
    height: auto;
    border-radius: 7px;
    padding: 5px;
    margin-left: 240px;
    margin-top: 0;
    color: #aaaaaa;
    font-size: 10px;
}

.mailstats {
    text-align: left;
    padding: 3px 3px 3px 0;
    border-top: 1px dotted #24AEF2;
    color: #1d83b5;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
}

.mailstats table tr {
    height: 18px !important;
}

.mailstats table thead tr td {
    font-size: 13px;
    font-weight: bold;
}

.mailstats table tbody tr td {
    font-size: 11px;
}

.mailstats table tr td {
    text-align: center;
}

.dashed-line {
    stroke-dasharray: 5;
}

@keyframes dash-animation {
    to {
        stroke-dashoffset: -1000;
    }
}

.dash-move {
    animation: dash-animation 30s infinite linear;
}

ul.split_sub_menu, div.split_sub_menu
{
	background-color:#f6f9ff;
}
ul.split_sub_menu li a 
{
	background-color:#f6f9ff;
}

/* Keyboard shortcut keycap styling */
.split_sub_menu kbd,
.wf_area kbd {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
    font-family: inherit;
    color: #2f4059;
    background-color: #ffffff;
    border: 1px solid #859bba;
    border-bottom-width: 2px;
    border-radius: 4px;
    white-space: nowrap;
    margin: 0 2px 0 0;
}

.wf-hotkey-keys {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Mouse icon keycap in hotkey list */
.wf-hotkey-keys kbd.kbd-icon {
    padding: 2px;
}

.wf-hotkey-keys kbd.kbd-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: black;
}

.wf-hotkey-desc {
	margin-left: 6px;
}

.wf-hotkey-cursor {
    width: 15px;
    height: 15px;
    margin-left: 4px;
    vertical-align: -2px;
}
/* Multi-select styles */
.selection-box {
	position: absolute;
	border: 2px dashed #007acc;
	background-color: rgba(0, 122, 204, 0.1);
	pointer-events: none;
	z-index: 1000;
	display: none;
}

.wf_node.selected {
	box-shadow: 0 0 0 3px #007acc !important;
	border-color: #007acc !important;
}

.wf_node.selected .a {
	background-color: rgba(0, 122, 204, 0.1) !important;
}

.selection-mode .wf_node {
	cursor: pointer;
}

/* Paste-mode (copy/move destination selection) */
.wf_area.paste-mode .wf_node {
    cursor: pointer;
}

/* Hide the add-node plus buttons under nodes while choosing a paste/move destination */
.wf_area.paste-mode .wf_node_add.bottom {
    display: none !important;
}

/* Also hide any + buttons inside the cursor-following ghost preview */
#wf-paste-ghost .wf_node_add {
    display: none !important;
}

/* Paste ghost (cursor-following preview) */
#wf-paste-ghost {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: .55;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    transform: translate(16px, 16px);
    transition: opacity .12s ease;
}

#wf-paste-ghost.snapped {
    transform: translate(0, 0);
}

#wf-paste-ghost.hidden {
    opacity: 0;
}

#wf-paste-ghost .wf-paste-ghost-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#wf-paste-ghost .wf-paste-ghost-badge {
    font-size: 12px;
    line-height: 16px;
    opacity: .9;
}

/* Marching-ants border for move/paste ghost */
#wf-paste-ghost .wf-paste-ghost-node {
    position: relative;
}

#wf-paste-ghost .wf-paste-ghost-node:before {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    border-radius: inherit;
    background:
        repeating-linear-gradient(90deg, rgba(0, 122, 204, .85) 0 6px, rgba(0, 0, 0, 0) 6px 12px) top/24px 2px repeat-x,
        repeating-linear-gradient(0deg,  rgba(0, 122, 204, .85) 0 6px, rgba(0, 0, 0, 0) 6px 12px) right/2px 24px repeat-y,
        repeating-linear-gradient(90deg, rgba(0, 122, 204, .85) 0 6px, rgba(0, 0, 0, 0) 6px 12px) bottom/24px 2px repeat-x,
        repeating-linear-gradient(0deg,  rgba(0, 122, 204, .85) 0 6px, rgba(0, 0, 0, 0) 6px 12px) left/2px 24px repeat-y;
    background-position: 0 0, 100% 0, 0 100%, 0 0;
    animation: wfPasteGhostMarch .7s linear infinite;
}

@keyframes wfPasteGhostMarch {
    to {
        background-position: 24px 0, 100% 24px, -24px 100%, 0 -24px;
    }
}

.wf_area.paste-mode .wf_node:hover {
    box-shadow: 0 0 0 3px #859bba !important;
}

/* Place the paste toolbar a bit above the selection toolbar if both are visible */
#paste-toolbar {
    right: 20px;
    top: calc(50% - 140px);
}

/* Multi-select toolbar */
.multi-select-toolbar {
	position: fixed;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 12px;
	z-index: 1002;
	display: none;
	min-width: 200px;
	transition: all 0.3s ease;
	animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateY(-50%) translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateY(-50%) translateX(0);
	}
}

.multi-select-toolbar .toolbar-header {
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	font-size: 13px;
	border-bottom: 1px solid #eee;
	padding-bottom: 6px;
}

.multi-select-toolbar .toolbar-button {
	display: block;
	width: 100%;
	margin-bottom: 6px;
	padding: 8px 12px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	text-align: left;
	transition: all 0.2s;
}

.multi-select-toolbar .toolbar-button:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	transform: translateY(-1px);
}

.multi-select-toolbar .toolbar-button.danger {
	background: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}

.multi-select-toolbar .toolbar-button.danger:hover {
	background: #f1b0b7;
	border-color: #f1b0b7;
}

.multi-select-toolbar .toolbar-button:last-child {
	margin-bottom: 0;
}

.multi-select-toolbar .toolbar-button-square {
	width: 32px !important;
	height: 32px !important;
	padding: 6px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: 4px;
	margin-bottom: 6px;
	float: left;
}

.multi-select-toolbar .toolbar-button-square svg {
	flex-shrink: 0;
}

.multi-select-toolbar .toolbar-button:not(.toolbar-button-square) svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
}

.multi-select-toolbar .toolbar-button:disabled {
	background: #f8f9fa !important;
	border-color: #dee2e6 !important;
	color: #6c757d !important;
	cursor: not-allowed !important;
	opacity: 0.5 !important;
}

.multi-select-toolbar .toolbar-button:disabled:hover {
	background: #f8f9fa !important;
	border-color: #dee2e6 !important;
	transform: none !important;
}

.multi-select-toolbar .selection-count {
	font-size: 11px;
	color: #6c757d;
	margin-bottom: 8px;
	font-style: italic;
}

/* Prevent text selection in workflow interface areas */
.split_sub_menu,
.split_sub_menu *,
.wf_area,
.wf_area * {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* Re-enable text selection for log elements */
.wf_area .log,
.wf_area .log * {
	user-select: text !important;
	-webkit-user-select: text !important;
	-moz-user-select: text !important;
	-ms-user-select: text !important;
}

/* Multi-drag visual feedback */
.wf_node.selected.ui-draggable-dragging {
	z-index: 1001 !important;
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(0, 122, 204, 0.4) !important;
}

.wf_node.selected:not(.ui-draggable-dragging) {
	transition: transform 0.2s ease;
}

/* Ensure nodes maintain proper positioning during multi-drag */
.wf_node {
	position: absolute;
}

.multi-drag-mode .wf_node.selected:not(.ui-draggable-dragging) {
	transition: none !important;
}
.multi-drag-mode .wf_node.selected {
	animation: pulse-selected 2s infinite;
}

@keyframes pulse-selected {
	0% { 
		box-shadow: 0 0 0 3px #007acc !important;
		border-color: #007acc !important;
	}
	50% { 
		box-shadow: 0 0 0 6px rgba(0, 122, 204, 0.5) !important;
		border-color: rgba(0, 122, 204, 0.7) !important;
	}
	100% { 
		box-shadow: 0 0 0 3px #007acc !important;
		border-color: #007acc !important;
	}
}

/* Notes panel */
#notes-header { padding:0 12px; display:flex; align-items:center; justify-content:space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
#workflow-notes { position:fixed; right:0; bottom:30vh; width:360px; height:40vh; z-index:4; background:#fff; box-shadow:0 8px 30px rgba(0,0,0,0.12); transition: width 0.18s ease, height 0.18s ease; border-bottom-left-radius: 15px; border-top-left-radius: 15px; }
#workflow-notes.collapsed { width:44px; height:44px; overflow:visible; }
#workflow-notes #notes-header, #workflow-notes .notes-controls { display:flex; align-items:center; }
#workflow-notes .notes-controls { gap: 8px; }
#workflow-notes.collapsed #notes-body, #workflow-notes.collapsed #notes-header strong, #workflow-notes.collapsed .notes-controls { display:none !important; }
#notes-body { height: calc(100% - 47px); overflow-y: auto; overflow-x: hidden; padding: 0 10px 10px 10px; }
#notes-icon { position:absolute; right:6px; top:6px; width:32px; height:32px; display:none; align-items:center; justify-content:center; padding:0; border:0; background:transparent; color:inherit; cursor:pointer; }
#workflow-notes.collapsed #notes-icon { display:flex; }
#notes-icon svg { width:18px; height:18px; }
#notes-icon.has-notes::after { content:''; position:absolute; right:3px; top:3px; width:6px; height:6px; border-radius:50%; background:#687992; }
#notes-preview { padding: 0 8px 8px 8px; display:none; }

/* Notes panel button styles */
#notes-toggle-preview, #notes-collapse, #notes-save {
    border-radius: 6px;
    padding: 6px 6px 4px 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}

#notes-toggle-preview:hover, #notes-collapse:hover, #notes-save:hover {
    background-color: rgba(0,0,0,0.1);
}

#workflow-log-panel {
    position: fixed;
    top: 91px;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
    border: 1px solid rgba(133, 155, 186, 0.22);
    border-right: 0;
    border-radius: 24px 0 0 24px;
    box-shadow: 0 24px 60px rgba(31, 55, 79, 0.16);
    overflow: hidden;
    z-index: 60;
    transform: translateX(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    display: flex;
    flex-direction: column;
}

#workflow-log-panel.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#workflow-log-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px 20px;
    border-bottom: 1px solid rgba(133, 155, 186, 0.18);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.workflow-log-panel-heading {
    min-width: 0;
}

.workflow-log-panel-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7192b5;
    margin-bottom: 6px;
}

#workflow-log-panel-title {
    display: block;
    color: #23384d;
    font-size: 20px;
    line-height: 1.2;
}

#workflow-log-panel-subtitle {
    margin-top: 6px;
    color: #6d8299;
    font-size: 13px;
    line-height: 1.45;
}

.workflow-log-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#workflow-log-panel-refresh,
#workflow-log-panel-manual-trigger-toggle,
#workflow-log-panel-close {
    height: 36px;
    width: 36px;
    border: 1px solid rgba(133, 155, 186, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #587596;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#workflow-log-panel-manual-trigger-toggle[hidden],
#workflow-log-panel-manual-trigger[hidden] {
    display: none !important;
}

#workflow-log-panel-refresh:hover,
#workflow-log-panel-manual-trigger-toggle:hover,
#workflow-log-panel-manual-trigger-toggle.active,
#workflow-log-panel-close:hover {
    background: #ffffff;
    color: #1a6d9c;
    transform: translateY(-1px);
}

#workflow-log-panel-manual-trigger {
    padding: 14px 16px 16px;
    border-bottom: 1px solid rgba(133, 155, 186, 0.14);
    background: rgba(243, 249, 253, 0.88);
}

#workflow-log-panel-manual-trigger-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#workflow-log-panel-manual-trigger-form label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6c88a5;
}

.workflow-log-panel-manual-trigger-row {
    display: flex;
    gap: 8px;
}

#workflow-log-panel-manual-trigger-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 1px solid rgba(133, 155, 186, 0.3);
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
    color: #23384d;
    font-size: 14px;
}

#workflow-log-panel-manual-trigger-input:focus {
    outline: none;
    border-color: rgba(46, 131, 182, 0.45);
    box-shadow: 0 0 0 3px rgba(46, 131, 182, 0.12);
}

#workflow-log-panel-manual-trigger-submit {
    flex: 0 0 auto;
    height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 14px;
    background: #1a6d9c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

#workflow-log-panel-manual-trigger-submit:hover {
    background: #12567e;
    transform: translateY(-1px);
}

#workflow-log-panel-manual-trigger-submit:disabled,
#workflow-log-panel-manual-trigger-input:disabled {
    cursor: wait;
    opacity: 0.7;
}

.workflow-log-panel-manual-trigger-status {
    min-height: 18px;
    font-size: 12px;
    font-weight: 700;
    color: #6d8299;
}

.workflow-log-panel-manual-trigger-status.is-success {
    color: #2c7a43;
}

.workflow-log-panel-manual-trigger-status.is-error {
    color: #a63d3d;
}

#workflow-log-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding: 16px;
}

.workflow-log-panel-placeholder,
.workflow-log-panel-status {
    min-height: 220px;
    border: 1px dashed rgba(112, 143, 173, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    color: #607890;
}

.workflow-log-panel-placeholder-icon {
    height: 56px;
    width: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ebf5fb 0%, #dceaf5 100%);
    color: #2b739f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.workflow-log-panel-placeholder-title,
.workflow-log-panel-status-text {
    font-size: 16px;
    font-weight: 700;
    color: #2d465f;
    margin-bottom: 8px;
}

.workflow-log-panel-placeholder-text {
    font-size: 13px;
    line-height: 1.6;
    max-width: 280px;
}

.workflow-log-panel-spinner {
    height: 34px;
    width: 34px;
    border-radius: 999px;
    border: 3px solid rgba(66, 128, 170, 0.18);
    border-top-color: #2e83b6;
    animation: workflow-log-spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes workflow-log-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wf-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-log-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px 6px;
    color: #6d8299;
    font-size: 12px;
    font-weight: 700;
}

.wf-log-load-more-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(66, 128, 170, 0.16);
    border-top-color: #2e83b6;
    animation: workflow-log-spin 0.8s linear infinite;
}

.wf-log-toolbar {
    display: flex;
    justify-content: flex-end;
}

.wf-log-toolbar-link {
    color: #1a6d9c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.wf-log-entry {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(133, 155, 186, 0.18);
    box-shadow: 0 10px 24px rgba(37, 60, 82, 0.08);
}

.wf-log-entry.wf-log-entry-skeleton {
    pointer-events: none;
}

.wf-log-entry-skeleton .wf-log-skel-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(133, 155, 186, 0.18);
}

.wf-log-entry-skeleton .wf-log-skel-line--lg {
    width: 66%;
    margin-bottom: 10px;
}

.wf-log-entry-skeleton .wf-log-skel-line--sm {
    width: 42%;
    margin-bottom: 14px;
}

.wf-log-entry-skeleton .wf-log-skel-block {
    height: 64px;
    border-radius: 14px;
    background: rgba(133, 155, 186, 0.12);
}

.wf-log-entry.wf-log-entry-unknown {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.wf-log-entry-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.wf-log-entry-meta {
    min-width: 0;
}

.wf-log-entry-time {
    font-size: 14px;
    font-weight: 700;
    color: #24384c;
}

.wf-log-entry-id {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #8195aa;
}

.wf-log-entry-email {
    font-size: 14px;
    color: #1f5f88;
    font-weight: 700;
    word-break: break-word;
}

.wf-log-entry-email.is-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a6d9c;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
}

.wf-log-entry-email.is-link:hover {
    text-decoration: underline;
}

.wf-log-entry-email.is-link:after {
    --external-link-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17l10 -10'/%3E%3Cpath d='M8 7l9 0l0 9'/%3E%3C/svg%3E");
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: currentColor;
    opacity: 0.45;
    -webkit-mask: var(--external-link-icon) center / contain no-repeat;
    mask: var(--external-link-icon) center / contain no-repeat;
}

.wf-log-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.wf-log-action-button {
    border: none;
    border-radius: 10px;
    background: #1a6d9c;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.wf-log-action-button.secondary {
    background: rgba(26, 109, 156, 0.1);
    color: #1a6d9c;
}

.wf-log-payload {
    margin-top: 14px;
    border-top: 1px solid rgba(133, 155, 186, 0.18);
    padding-top: 12px;
}

.wf-log-payload summary {
    cursor: pointer;
    color: #536b84;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
}

.wf-log-payload summary::-webkit-details-marker {
    display: none;
}

.wf-log-payload pre {
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 14px;
    background: #eff5f9;
    color: #24384c;
    font-size: 12px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.wf-log-empty-state {
    padding: 36px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: #607890;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 1540px) {
    #workflow-log-panel {
        right: 0;
        width: min(420px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }
}

@media (max-width: 920px) {
    #workflow-log-panel {
        top: 70px;
        bottom: 16px;
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

#workflowNodeForm .select2-container--default{
    width: -webkit-fill-available !important;
}
