/* Visual workflow editor, isolated from WordPress and the ERP shell. */
.wf-root{--wf-yellow:#ffdf00;--wf-ink:#202224;--wf-muted:#68716d;--wf-line:#e2e6e3;--wf-paper:#fff;--wf-green:#247553;color:var(--wf-ink);font:400 14px/1.55 Manrope,Arial,sans-serif;min-width:0}.wf-root *{box-sizing:border-box}.wf-root button,.wf-root input,.wf-root select,.wf-root textarea{font:inherit;font-size:14px}.wf-root h1,.wf-root h2,.wf-root h3,.wf-root p{margin:0}.wf-root h1{font-size:32px;font-weight:800;line-height:1.25;letter-spacing:-1px}.wf-root h2{font-size:20px;font-weight:800;line-height:1.4}.wf-root h3{font-size:16px;font-weight:800;line-height:1.5}.wf-root button{cursor:pointer}.wf-root button:disabled{cursor:not-allowed;opacity:.45}.wf-root button:focus-visible,.wf-root input:focus-visible,.wf-root select:focus-visible,.wf-root textarea:focus-visible,.wf-node:focus-visible,.wf-root summary:focus-visible{outline:3px solid #247553;outline-offset:3px}.wf-root svg{width:20px;height:20px;flex-shrink:0}.wf-root .wf-edges{width:6000px;height:5000px}.wf-root input,.wf-root select,.wf-root textarea{width:100%;border:1px solid #d6ddd8;border-radius:8px;padding:10px 11px;background:#fff;color:var(--wf-ink);min-height:43px}.wf-root textarea{resize:vertical;line-height:1.6}.wf-root select{padding-right:26px}.wf-btn{border:1px solid #dce2dd;background:#fff;min-height:42px;padding:9px 15px;border-radius:8px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;color:var(--wf-ink);transition:background .15s,border-color .15s,box-shadow .15s}.wf-btn:hover:not(:disabled){background:#f3f5f2;border-color:#b8c3bc}.wf-btn.wf-primary{background:var(--wf-yellow);border-color:var(--wf-yellow);color:#171a16}.wf-btn.wf-primary:hover:not(:disabled){background:#efd000;border-color:#efd000}.wf-btn.wf-square{width:42px;min-width:42px;padding:8px;font-size:20px;line-height:1}.wf-btn.wf-danger{color:#a83025;background:#fff;border-color:#eed2ce}.wf-btn.wf-danger:hover:not(:disabled){background:#fff2f0}.wf-text-btn{border:0;background:none;padding:4px;color:inherit;font-weight:700;text-align:left}.wf-text-btn:hover{text-decoration:underline}.wf-muted,.wf-help{color:var(--wf-muted)}.wf-help{font-size:14px;line-height:1.65}.wf-eyebrow{font-size:14px;font-weight:700;color:var(--wf-muted);letter-spacing:1.2px}.wf-page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:25px}.wf-page-heading h1{margin:6px 0 8px}.wf-page-heading p{color:var(--wf-muted);font-size:16px}.wf-overview{display:flex;align-items:center;gap:23px;padding:28px 30px;background:#202725;color:white;border-radius:13px;margin:26px 0 35px}.wf-overview-icon{height:68px;width:68px;min-width:68px;border-radius:13px;background:#ffdf00;color:#202725;display:grid;place-items:center}.wf-overview-icon svg{width:34px;height:34px}.wf-overview p{color:#c5cfc9;max-width:620px;margin-top:7px}.wf-overview-number{margin-left:auto;min-width:170px;padding-left:24px;border-left:1px solid #49534c}.wf-overview-number strong{font-size:36px;line-height:1.2;font-weight:800;display:block;color:#ffdf00}.wf-overview-number span{color:#c5cfc9;font-size:14px}.wf-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:31px 0 17px}.wf-section-heading h2{display:flex;align-items:center;gap:10px}.wf-section-heading p{margin-top:4px;color:var(--wf-muted)}.wf-count{padding:2px 9px;font-size:14px;font-weight:700;border-radius:6px;background:#e9ede8;color:#60685f}.wf-search{width:280px;max-width:100%}.wf-table-wrap{border:1px solid var(--wf-line);background:white;border-radius:11px;overflow:auto}.wf-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}.wf-table th{text-align:left;padding:15px 20px;background:#f8faf7;color:#6a746c;font-size:14px;font-weight:600;border-bottom:1px solid var(--wf-line)}.wf-table td{padding:19px 20px;border-bottom:1px solid #edf0eb;vertical-align:middle}.wf-table tr:last-child td{border-bottom:0}.wf-table tr:hover td{background:#fdfefb}.wf-row-name{font-size:16px!important;font-weight:800;padding:0;white-space:normal;max-width:420px}.wf-row-caption{display:block;color:var(--wf-muted);font-size:14px;margin-top:5px}.wf-badge{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:4px 9px;font-size:14px;font-weight:600;line-height:1.4;background:#f0f2ef;color:#6a736e;white-space:nowrap}.wf-badge:before{content:"";width:6px;height:6px;display:inline-block;flex-shrink:0;border-radius:50%;background:currentColor}.wf-badge.is-published{background:#e8f4eb;color:#287650}.wf-empty{text-align:center;padding:40px 22px}.wf-empty>div{width:52px;height:52px;border-radius:13px;background:#fff5b4;display:grid;place-items:center;margin:0 auto 14px}.wf-empty svg{width:27px;height:27px}.wf-empty p{color:var(--wf-muted);margin-top:6px}.wf-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.wf-template{border:1px solid #dfe5df;border-radius:11px;background:white;padding:22px;display:flex;align-items:flex-start;flex-direction:column;position:relative;min-height:280px}.wf-template-icon{background:#f3f6f0;border-radius:9px;width:43px;height:43px;display:grid;place-items:center;margin-bottom:20px}.wf-template-icon svg{width:23px;height:23px}.wf-template .wf-eyebrow{position:absolute;right:22px;top:31px;letter-spacing:.6px;font-size:14px}.wf-template h3{margin-bottom:8px;font-size:18px}.wf-template p{color:var(--wf-muted);margin-bottom:25px}.wf-template .wf-btn{margin-top:auto;width:100%;font-size:14px;background:#f8faf5}.wf-notice{border:1px solid #cfdfd0;background:#edf6ed;border-radius:8px;color:#275d3d;padding:12px 16px;margin:12px 0;font-size:14px}.wf-notice.wf-error{background:#fff0ed;color:#a43125;border-color:#efc9c1}.wf-loading{padding:50px;color:var(--wf-muted);text-align:center}.wf-editor{margin:0;min-width:0}.wf-editor-heading{display:flex;align-items:center;gap:14px;margin-bottom:19px;flex-wrap:wrap}.wf-editor-title{min-width:210px;flex:1}.wf-editor-title>input{font-weight:800;font-size:22px;border:1px solid transparent;border-radius:5px;background:transparent;padding:2px 0;min-height:34px;max-width:520px;letter-spacing:-.4px}.wf-editor-title>input:hover,.wf-editor-title>input:focus{border-color:var(--wf-line);background:#fff;padding-left:6px}.wf-editor-title>div{display:flex;align-items:center;gap:10px;margin-top:5px;flex-wrap:wrap}.wf-save-status{font-size:14px;color:var(--wf-muted)}.wf-save-status.is-dirty{color:#946b00}.wf-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.wf-workspace{display:grid;grid-template-columns:218px minmax(260px,1fr) 295px;border:1px solid #dce3dd;border-radius:11px;background:#fff;overflow:hidden;min-height:650px;max-height:850px;height:calc(100vh - 265px)}.wf-palette,.wf-inspector{overflow:auto;background:#fff}.wf-palette{border-right:1px solid var(--wf-line);padding-bottom:20px}.wf-inspector{border-left:1px solid var(--wf-line)}.wf-panel-heading{padding:20px 17px 17px;border-bottom:1px solid #edf0ea;background:#fff}.wf-panel-heading h2{font-size:16px;font-weight:800}.wf-panel-heading p{font-size:14px;color:var(--wf-muted);margin-top:5px}.wf-panel-heading .wf-eyebrow{font-size:14px;letter-spacing:0;margin-bottom:6px;display:block}.wf-palette-group{padding:17px 12px 0}.wf-palette-group h3{font-size:14px;color:#778179;font-weight:700;padding:0 7px;margin-bottom:9px}.wf-palette-item{display:flex;align-items:center;text-align:left;border:1px solid transparent;border-radius:7px;background:transparent;padding:8px 6px;gap:9px;width:100%;line-height:1.4;color:#343d36;margin-bottom:3px;min-height:48px}.wf-palette-item:hover:not(:disabled){border-color:#dce5d9;background:#f7f9f5}.wf-palette-item:disabled{opacity:.52}.wf-palette-icon{height:30px;width:30px;min-width:30px;border-radius:7px;background:#f1f4ee;display:grid;place-items:center}.wf-palette-icon svg{height:17px;width:17px}.wf-palette-icon.is-trigger{background:#fff3a5}.wf-palette-plus{margin-left:auto;color:#899589;font-size:18px}.wf-board-wrap{position:relative;overflow:hidden;min-width:0;background:#f5f7f3;isolation:isolate}.wf-board{position:absolute;inset:0;background-image:radial-gradient(#cfd7cd 1px,transparent 1px);background-size:20px 20px;overflow:hidden;cursor:grab;outline:none;touch-action:none}.wf-board.is-dragging{cursor:grabbing}.wf-world{position:absolute;left:0;top:0;transform-origin:0 0;width:6000px;height:5000px;will-change:transform}.wf-edges{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}.wf-edge-hit{fill:none;stroke:transparent;stroke-width:18;cursor:pointer;pointer-events:stroke}.wf-edge-line{fill:none;stroke:#a4afa7;stroke-width:2;pointer-events:none}.wf-edge:hover .wf-edge-line,.wf-edge.is-selected .wf-edge-line{stroke:#24825c;stroke-width:3}.wf-edge-hit:focus{outline:none;stroke:#ffdf0055;stroke-width:15}.wf-node{position:absolute;width:262px;height:132px;border:1px solid #cdd8cc;border-radius:10px;background:#fff;box-shadow:0 3px 9px #172b1810;padding:13px 15px;cursor:grab;user-select:none;touch-action:none}.wf-node:hover{box-shadow:0 4px 14px #172b1820;border-color:#9cae9b}.wf-node.is-selected{border-color:#4b8260;box-shadow:0 0 0 2px #4b826033,0 4px 15px #172b1814}.wf-node.is-trigger{border-color:#d4bc3b;background:#fffef7}.wf-node.is-trigger.is-selected{border-color:#c4a916;box-shadow:0 0 0 2px #f3d6224d}.wf-node.is-condition{border-color:#b8becd}.wf-node.test-completed:after{content:"✓";position:absolute;right:-9px;top:-9px;color:white;background:#287f52;width:25px;height:25px;border-radius:50%;border:2px solid #f5f7f3;text-align:center;font-size:14px;font-weight:800;line-height:21px}.wf-node.test-skipped{opacity:.6}.wf-node-type{display:flex;align-items:center;gap:7px;margin-bottom:6px;color:#697467;font-size:14px}.wf-node-icon{display:flex;color:#51664b}.wf-node-icon svg{width:17px;height:17px}.wf-node-grip{margin-left:auto;font-size:20px;line-height:1;color:#9eaa9b}.wf-node>strong{font-size:15px;font-weight:800;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.45}.wf-node>p{font-size:14px;line-height:1.4;color:#74806f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.wf-port{width:13px;height:13px;border:2px solid #8fa18b;background:white;border-radius:50%;position:absolute;padding:0;cursor:crosshair}.wf-port-in{left:50%;top:-7px;transform:translateX(-50%)}.wf-port:hover,.wf-port:focus-visible{border-color:#247553;background:#ffdf00}.wf-branches{position:absolute;left:0;right:0;bottom:0;height:22px;border-top:1px solid #edf1e8}.wf-port-out{position:absolute;bottom:-7px;transform:translateX(-50%);min-width:50px;padding:0 3px;border:0;background:transparent;display:flex;align-items:center;flex-direction:column;color:#76806f;font-size:14px;line-height:17px;cursor:crosshair}.wf-port-out span{background:#fff;padding:0 4px}.wf-node.is-trigger .wf-port-out span{background:#fffef7}.wf-port-out i{display:block;width:13px;height:13px;border:2px solid #8fa18b;border-radius:50%;background:white;transition:background .15s}.wf-port-out:hover i,.wf-port-out.is-connecting i{background:#ffdf00;border-color:#747019;box-shadow:0 0 0 5px #ffdf0040}.wf-node.is-condition .wf-port-out[data-handle=yes]{color:#287650}.wf-node.is-condition .wf-port-out[data-handle=no]{color:#a15139}.wf-node.is-condition .wf-port-out[data-handle=yes] i{border-color:#438864}.wf-node.is-condition .wf-port-out[data-handle=no] i{border-color:#bd795d}.wf-board-hint{position:absolute;top:17px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);background:#ffffffed;border:1px solid #e2e8dd;padding:7px 11px;border-radius:7px;box-shadow:0 2px 5px #15241405;font-size:14px;color:#6f7b69;text-align:center;pointer-events:none}.wf-board-hint.is-connecting{background:#fff7ba;border-color:#dbc54b;color:#635815}.wf-board-controls{position:absolute;bottom:17px;left:17px;display:flex;align-items:center;gap:3px;padding:5px;border:1px solid #dae2d4;border-radius:9px;background:#fff;box-shadow:0 3px 10px #25302409}.wf-board-controls .wf-btn{border:0;min-height:34px;height:34px;padding:5px 8px;font-size:14px}.wf-board-controls .wf-square{width:32px;min-width:32px;font-size:20px}.wf-board-controls [data-zoom]{min-width:47px;text-align:center;font-size:14px;color:#65725f}.wf-controls-divider{height:21px;border-left:1px solid #e2e7de;margin:0 4px}.wf-inspector-body{padding:19px 17px 20px}.wf-field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}.wf-field>span,.wf-field>label{font-size:14px;font-weight:700;color:#52604f}.wf-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wf-field-pair input,.wf-field-pair select{padding-left:8px}.wf-branch-legend{padding:12px 11px;background:#f7f9f4;border-radius:7px;margin:4px 0 18px;display:grid;gap:5px;color:#53704d}.wf-branch-legend span:last-child{color:#9a634d}.wf-connections{margin-top:24px;border-top:1px solid var(--wf-line);padding-top:19px}.wf-connections>h3{font-size:14px;margin-bottom:13px}.wf-connection-group{margin-top:13px}.wf-connection-group>label{display:block;font-size:14px;color:#75816c;font-weight:700;margin:0 0 6px}.wf-connection-item{display:flex;align-items:center;gap:7px;background:#f3f7ef;border:1px solid #e2e9dc;padding:5px 8px;border-radius:6px;margin-bottom:7px;font-size:14px}.wf-connection-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.wf-connection-item button{font-size:20px;line-height:1;color:#a25f44}.wf-connection-add{display:flex;gap:5px}.wf-connection-add select{min-width:0}.wf-inspector-delete{padding-top:24px;margin-top:24px;border-top:1px solid var(--wf-line)}.wf-inspector-delete .wf-btn{width:100%}.wf-variables{font-size:14px;background:#f8faf5;border-radius:7px;padding:10px;margin:16px 0}.wf-variables summary{cursor:pointer;color:#607451;font-weight:700}.wf-variables p{margin:10px 0}.wf-variables code{display:block;padding:4px 0;font-size:14px;user-select:all;overflow-wrap:anywhere}.wf-help code{font-size:14px;color:#43513b;overflow-wrap:anywhere}.wf-header-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 22px;gap:5px;align-items:center}.wf-header-row input{font-size:14px;padding:8px 6px;min-width:0}.wf-header-row button{font-size:20px}.wf-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;font-size:14px;color:#7b8575}.wf-editor-bottom>span:first-child{display:flex;align-items:center;gap:8px;white-space:nowrap}.wf-editor-bottom>span:nth-child(2){text-align:center}.wf-editor-bottom .wf-btn{background:transparent;font-size:14px;min-height:37px}.wf-modal-shade{position:fixed;inset:0;background:#17241dcc;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}.wf-modal{width:760px;max-width:100%;max-height:90vh;background:white;border:1px solid #d8e1d1;border-radius:13px;box-shadow:0 16px 80px #0004;padding:25px;overflow:auto;overscroll-behavior:contain}.wf-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.wf-modal-heading h2{font-size:23px}.wf-modal-heading .wf-btn{background:#f6f8f2;border:0}.wf-modal>p{color:#65715e;margin-bottom:20px}.wf-modal>.wf-field{margin-top:20px}.wf-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:25px}.wf-modal h3{margin:26px 0 13px}.wf-modal pre{white-space:pre-wrap;word-break:break-word;background:#f5f7f0;border:1px solid #e4eadf;padding:10px;border-radius:5px;font:14px/1.6 monospace}.wf-test-results{margin:20px 0}.wf-test-result{display:flex;gap:15px;padding:16px 0;border-bottom:1px solid #e4eadf;align-items:flex-start}.wf-test-result>div{min-width:0;flex:1}.wf-test-result strong{font-size:16px}.wf-test-result p{margin-top:5px;color:#76806f}.wf-test-result details{margin-top:10px;color:#657859}.wf-test-result summary{cursor:pointer}.wf-history-list>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e4eadf}.wf-history-list small{display:block;color:#77816e;font-size:14px;margin-top:4px}.wf-runs details{margin:10px 0;border:1px solid #e1e8dc;border-radius:8px;padding:13px}.wf-runs summary{display:flex;align-items:center;gap:12px;justify-content:space-between;cursor:pointer;font-size:14px;flex-wrap:wrap}.wf-run-node{display:grid;gap:4px;padding:10px 0;border-top:1px solid #edf1e8;margin-top:10px}.wf-run-node>span{color:#75816b}.wf-run-node>p{color:#a04835}.wf-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1700px){.wf-workspace{grid-template-columns:235px minmax(450px,1fr) 320px;min-height:720px}.wf-node{box-shadow:0 4px 14px #172b1810}}
@media(max-width:1250px){.wf-workspace{grid-template-columns:190px minmax(200px,1fr) 265px}.wf-palette-item{gap:6px;padding:7px 3px}.wf-palette-plus{display:none}.wf-panel-heading,.wf-inspector-body{padding-left:13px;padding-right:13px}.wf-editor-actions{margin-left:auto}.wf-editor-actions .wf-btn{padding:8px 11px}.wf-editor-bottom>span:nth-child(2){display:none}.wf-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.wf-workspace{grid-template-columns:165px minmax(180px,1fr) 245px}.wf-palette-group{padding-left:7px;padding-right:7px}.wf-palette-icon{display:none}.wf-palette-item{padding:7px 5px}.wf-board-controls{bottom:12px;left:9px;gap:0}.wf-board-controls [data-action=fit]{padding:5px}.wf-controls-divider{margin:0 2px}.wf-overview-number{min-width:130px;padding-left:16px}.wf-overview{padding:23px;gap:17px}.wf-overview-icon{width:55px;height:55px;min-width:55px}}
@media(max-width:850px){.wf-workspace{grid-template-columns:155px minmax(250px,1fr);height:auto;max-height:none;min-height:0;overflow:visible}.wf-palette{height:630px;border-top-left-radius:10px}.wf-board-wrap{height:630px;border-top-right-radius:10px}.wf-inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--wf-line);border-radius:0 0 10px 10px;max-height:580px}.wf-inspector-body{display:block;max-width:650px}.wf-editor-heading{gap:10px}.wf-editor-actions{width:100%;justify-content:flex-end}.wf-editor-title{min-width:150px}.wf-page-heading h1{font-size:28px}.wf-overview-number{display:none}.wf-template-grid{gap:13px}.wf-template{padding:19px}.wf-template .wf-eyebrow{right:19px}.wf-table th,.wf-table td{padding-left:14px;padding-right:14px}}
@media(max-width:560px){.wf-page-heading{align-items:flex-start;flex-direction:column;gap:18px}.wf-page-heading>.wf-btn{width:100%}.wf-overview{padding:19px;align-items:flex-start}.wf-overview-icon{display:none}.wf-overview h2{font-size:18px}.wf-template-grid{grid-template-columns:1fr}.wf-template{min-height:255px}.wf-section-heading{flex-direction:column;align-items:stretch;gap:12px}.wf-search{width:100%}.wf-workspace{display:flex;flex-direction:column}.wf-palette{height:auto;max-height:245px;border-right:0;border-bottom:1px solid var(--wf-line);border-radius:10px 10px 0 0}.wf-palette>.wf-panel-heading{padding:12px 14px}.wf-palette>.wf-panel-heading p{display:none}.wf-palette-group{padding:12px 10px 0;display:flex;flex-wrap:wrap;gap:5px}.wf-palette-group h3{width:100%;margin:0}.wf-palette-item{width:auto;background:#f6f8f2;border-color:#e3e9df;padding:7px 9px;min-height:36px;font-size:14px!important;margin:0}.wf-board-wrap{height:540px;border-radius:0}.wf-board-hint{font-size:14px;line-height:1.4}.wf-board-controls{max-width:calc(100% - 18px)}.wf-editor-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.wf-editor-actions>.wf-btn{width:100%}.wf-editor-title>input{font-size:20px}.wf-editor-title>div{gap:6px}.wf-editor-bottom{align-items:flex-start;flex-wrap:wrap}.wf-editor-bottom>.wf-btn{margin-left:auto}.wf-modal-shade{padding:12px}.wf-modal{padding:19px;max-height:94vh}.wf-modal-heading h2{font-size:20px}.wf-modal-actions .wf-btn{flex:1}.wf-test-result{gap:10px;flex-direction:column}.wf-runs summary{gap:8px}.wf-history-list>div{gap:12px}}
@media(prefers-reduced-motion:reduce){.wf-root *{transition:none!important;scroll-behavior:auto!important}}
