﻿/* .diagram-host {
        position: relative;
        width: 100%;
        height: 72vh;
        overflow: hidden;
    } */
.diagram-host {
    position: relative;
    width: 100%;
    /* height: 72vh; */
    overflow: auto; /* ← native scrollbars */
    background: #fafbfd;
    cursor: grab;
}

    .diagram-host.dragging {
        cursor: grabbing;
    }

.lxn-diagram {
    display: block;
    user-select: none;
    /*     width: 100%;
        height: 100%;
        background: #fafbfd; */
}

text {
    pointer-events: none;
}

/* Main cards pop a bit */
.node-main .node-box {
    fill: var(--background-color);
    stroke: var(--border-color);
}

/* Soft layered shadow for main cards */
.node-main {
    /* works on SVG in modern browsers */
    filter: drop-shadow(0 1px 1px rgba(16,24,40,.06)) drop-shadow(0 3px 8px rgba(16,24,40,.08));
    transition: filter .15s ease, transform .15s ease;
}
    /* Hover state: bolder border + stronger shadow */
    .node-main:hover .node-box {
        stroke: var(--primary-color);
        stroke-width: 2;
    }

    .node-main:hover {
        filter: drop-shadow(0 6px 10px rgba(16,24,40,.10)) drop-shadow(0 12px 24px rgba(16,24,40,.16));
    }

.node .icon,
.node-icon {
    color: var(--primary-color);
    fill: var(--primary-color);
    paint-order: stroke;
}

.node-title {
    fill: var(--primary-color);
    font-weight: 500;
    font-size: 19px;
}

.node-sub {
    fill: var(--primary-color);
    font-weight: 400;
    font-size: 14px;
}

.node-connecting-type {
    fill: var(--primary-color);
    font-weight: 400;
    font-size: 12px;
}

.node-connecting-id {
    fill: var(--primary-color);
    font-weight: 400;
    font-size: 10px;
}
/* Selected state: persist the bold look */
.node.selected .node-box {
    stroke: var(--primary-color);
    stroke-width: 2;
}

.node.selected {
    filter: drop-shadow(0 8px 16px rgba(16,24,40,.16)) drop-shadow(0 16px 32px rgba(16,24,40,.22));
}

.node-box {
    fill: #fff;
    stroke: #cfe3f7;
    stroke-width: 2;
}

.node-label {
    font: 600 14px/1.2 system-ui, sans-serif;
    fill: var(--primary-color);
}

.node.clickable {
    cursor: pointer;
}

.edge {
    fill: none;
    stroke: #8aaecf; /* or your green via .edge.green. */
    stroke-width: 2;
    stroke-linecap: round; /* Rounded ends for nicer elbows. */
    stroke-linejoin: round; /* Smooths orthogonal turns. */
    pointer-events: none;
}

    .edge.green {
        stroke: rgb(165, 187, 92);
    }


.group, .group .group-box {
    pointer-events: none;
}

.groups-hidden .group {
    display: none;
}

.group-box {
    fill: #f6fbff;
    fill-opacity: .6;
    stroke: #bcd7f1;
    stroke-dasharray: 4 4;
}

.group-label {
    font: 700 12px system-ui;
    fill: #6e8199;
}

.diagram-toolbar {
    position: absolute;
    top: 8px;
    right: 5px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

    .diagram-toolbar button {
        padding: 6px 10px;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        background: #fff;
    }

.lxn-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    pointer-events: none;
}

    .lxn-tooltip .header {
        font: 600 12px system-ui;
        color: #334155;
        margin-bottom: 2px;
    }

    .lxn-tooltip .body {
        font: 12px system-ui;
        color: #475569;
    }


.node-pill {
    fill: #fff;
    stroke: #cfe3f7;
    stroke-width: 2;
}

.node-geom {
    pointer-events: none;
}

.node-schedule .icon,
.node-prompt .icon,
.node-playmessage .icon { /* ← add this line */
    color: #2b6fad;
    fill: var(--primary-color);
}

/* Circular dial keys. */
.node-key .key-bg {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.node-key .key-label {
    fill: var(--background-color);
    font-size: 24px;
}

.node-addconnectingaction .icon {
    fill: #1fa971;
    color: #1fa971;
}

.node.node-root .icon {
    fill: var(--success-color);
}

.node-metric, .node-time {
    fill: #fff;
    stroke: #cfe3f7;
    stroke-width: 2;
    rx: 14;
    ry: 14
}

    .node-metric text {
        fill: var(--primary-color);
        font: 100 46px 'Roboto', sans-serif;
        stroke: var(--primary-color);
        stroke-width: 1;
        fill-opacity: 1;
    }

    .node-time text {
        fill: var(--primary-color);
        font: 100 20px 'Roboto', sans-serif;
        letter-spacing: .5px;
        stroke: var(--primary-color);
        stroke-width: 0;
        fill-opacity: 1;
    }



.metric-text {
    fill: var(--primary-color);
    font: 600 20px 'Roboto', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.time-bg {
    stroke: var(--primary-color);
    stroke-width: 2;
    fill: #fff;
}

.time-text {
    fill: var(--primary-color);
    font: 700 18px 'Roboto', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

.time-arc {
    stroke: var(--primary-color);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

    .time-arc.inner {
        stroke-width: 2.5;
        opacity: .95;
    }


.node-footer .footer-icon {
    fill: var(--primary-color);
    color: var(--primary-color);
}

.node-footer .footer-badge {
    fill: #fff;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.node-footer .footer-badge-text {
    fill: var(--primary-color);
    font: 700 11px 'Roboto', system-ui, sans-serif;
}

.node-footer .footer-metric {
    fill: var(--primary-color);
    /*font: 700 18px 'Roboto', system-ui, sans-serif;*/
    font-weight: 500;
    letter-spacing: .3px;
}

.lxn-diagram.no-groups {
    background: none !important;
}

    .lxn-diagram.no-groups g.group {
        display: none !important;
    }



.node-email {
    fill: var(--primary-color);
    font-weight: 400;
    font-size: 12px;
    opacity: .9;
}

.node-foot-label {
    fill: var(--primary-color);
    font-weight: 400;
    font-size: 12px;
    opacity: .85;
}

.node-phone {
    fill: var(--primary-color);
    font: 600 14px/1.2 system-ui, sans-serif;
}

.presence-dot {
    stroke: #fff;
    stroke-width: 2;
}

    .presence-dot.online {
        fill: #19c37d;
    }

    .presence-dot.away {
        fill: #f6c444;
    }

    .presence-dot.busy {
        fill: #ef4444;
    }

    .presence-dot.dnd {
        fill: #a21caf;
    }

    .presence-dot.offline {
        fill: #94a3b8;
    }


.node-pill .pill-bg {
    fill: var(--background-color, #eaf2ff);
    stroke: var(--border-color, #cbdafe);
}

.node-pill .pill-text {
    stroke: var(--primary-color);
    fill: var(--primary-color);
    font-weight: 100;
    stroke-width: 1;
}