.flowchart-card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:28px}.flow-svg-wrap{display:grid;place-items:center;min-height:540px;border-radius:24px;background:linear-gradient(135deg,#f8fbff,#eef6ff);border:1px solid #dbeafe;overflow:hidden}.flow-svg-wrap svg{width:min(100%,900px);height:auto}.flow-title{font:900 34px Inter,Arial,sans-serif;fill:#062b5f}.flow-label{font:850 18px Inter,Arial,sans-serif;fill:#102033}.flow-small{font:700 14px Inter,Arial,sans-serif;fill:#667085}.flow-node{fill:#fff;stroke:#dbe5f3;stroke-width:2}.flow-blue{fill:#0b4aa2}.flow-green{fill:#1f9d55}.flow-orange{fill:#f97316}.flow-purple{fill:#6d5bd0}.flow-line{stroke:#0b4aa2;stroke-width:5;stroke-linecap:round;fill:none;marker-end:url(#arrow)}@media print{.flowchart-card{box-shadow:none}.flow-svg-wrap{min-height:auto}}

/* Flowchart tecnici evoluti */
.flowchart-card.technical-flow{padding:28px}.technical-flow .flow-svg-wrap{min-height:650px;background:linear-gradient(135deg,#f8fbff,#ffffff 62%,#eef6ff);align-items:start;padding:10px}.flow-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.flow-legend div{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px;color:#34465d;font-weight:750;line-height:1.35}.flow-legend strong{display:block;color:var(--blue);font-size:12px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.flow-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.flow-notes article{border:1px solid var(--line);background:#fbfdff;border-radius:18px;padding:14px}.flow-notes h2{margin:0 0 6px;color:var(--navy);font-size:18px}.flow-notes p{margin:0;color:#475569;font-weight:700;line-height:1.45}.lane-label{font:900 13px Inter,Arial,sans-serif;fill:#0b4aa2;letter-spacing:.04em}.flow-decision{fill:#fff7ed;stroke:#fed7aa;stroke-width:2}.flow-output{fill:#ecfdf3;stroke:#bbf7d0;stroke-width:2}.flow-control{fill:#fcfbff;stroke:#d7d1ff;stroke-width:2}.flow-muted-line{stroke:#94a3b8;stroke-width:3;stroke-dasharray:7 8;fill:none;marker-end:url(#arrowMuted)}@media(max-width:900px){.flow-legend,.flow-notes{grid-template-columns:1fr}.technical-flow .flow-svg-wrap{min-height:420px;padding:0}}@media print{.flow-legend{grid-template-columns:repeat(4,1fr)}.flow-notes{grid-template-columns:repeat(3,1fr)}.flow-legend div,.flow-notes article{break-inside:avoid}}


/* Flowchart renderer tecnico v2 */
.flowchart-card.flow-v2{padding:28px;background:linear-gradient(180deg,#fff,#f8fbff);border-color:#cfe0f5}.flow-v2 .flow-svg-wrap{min-height:780px;padding:12px;background:linear-gradient(135deg,#f8fbff 0%,#fff 52%,#eef6ff 100%);border-color:#cfe0f5}.flow-v2 .flow-svg-wrap svg{width:min(100%,1180px)}.flow-method{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.flow-method div{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px;box-shadow:0 6px 16px rgba(15,45,85,.04)}.flow-method strong{display:block;color:var(--blue);font-size:12px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.flow-method span{display:block;color:#34465d;font-weight:750;line-height:1.35}.flow-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.flow-rules article{border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px}.flow-rules h2{margin:0 0 6px;color:var(--navy);font-size:18px}.flow-rules p{margin:0;color:#475569;font-weight:700;line-height:1.45}.bpmn-title{font:900 32px Inter,Arial,sans-serif;fill:#062b5f}.bpmn-small{font:750 13px Inter,Arial,sans-serif;fill:#475569}.bpmn-label{font:850 15px Inter,Arial,sans-serif;fill:#102033}.bpmn-white{fill:#fff}.bpmn-lane{fill:#f8fbff;stroke:#dbe5f3;stroke-width:2}.bpmn-task{fill:#fff;stroke:#0b4aa2;stroke-width:2}.bpmn-task-soft{fill:#fff;stroke:#dbe5f3;stroke-width:2}.bpmn-output{fill:#ecfdf3;stroke:#1f9d55;stroke-width:2}.bpmn-risk{fill:#fff7ed;stroke:#f97316;stroke-width:2}.bpmn-control{fill:#fcfbff;stroke:#6d5bd0;stroke-width:2}.bpmn-line{stroke:#0b4aa2;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;fill:none;marker-end:url(#arrow)}.bpmn-line-muted{stroke:#64748b;stroke-width:3;stroke-dasharray:8 8;fill:none;marker-end:url(#arrowMuted)}.bpmn-line-risk{stroke:#f97316;stroke-width:3.2;stroke-dasharray:8 8;fill:none;marker-end:url(#arrowRisk)}.bpmn-lane-name{font:900 12px Inter,Arial,sans-serif;fill:#0b4aa2;letter-spacing:.06em}.bpmn-gateway{fill:#fff7ed;stroke:#f97316;stroke-width:2.5}.bpmn-start{fill:#dcfce7;stroke:#1f9d55;stroke-width:3}.bpmn-end{fill:#fee2e2;stroke:#ef4444;stroke-width:3}.bpmn-data{fill:#eef6ff;stroke:#93c5fd;stroke-width:2}.bpmn-timer{fill:#fff;stroke:#f59e0b;stroke-width:3}.bpmn-note{fill:#ffffff;stroke:#cbd5e1;stroke-width:1.8;stroke-dasharray:7 7}@media(max-width:980px){.flow-method,.flow-rules{grid-template-columns:1fr}.flow-v2 .flow-svg-wrap{min-height:520px;padding:0}.bpmn-title{font-size:25px}.bpmn-label{font-size:13px}.bpmn-small{font-size:11px}}@media print{.flow-method{grid-template-columns:repeat(5,1fr)}.flow-rules{grid-template-columns:repeat(3,1fr)}.flow-method div,.flow-rules article{box-shadow:none;break-inside:avoid}.flow-v2 .flow-svg-wrap{min-height:auto}}
