graph LR
classDef card fill:#fff,stroke:#333,stroke-width:1px,rx:5,ry:5,color:#333,font-family:Arial,font-size:12px;
classDef hub fill:#f9f,stroke:#m0m,stroke-width:2px,rx:5,ry:5,color:#333,font-weight:bold;
classDef terminal fill:#eee,stroke:#999,stroke-width:1px,stroke-dasharray: 5 5,rx:5,ry:5,color:#777;
subgraph Dept_A [ ]
direction TB
style Dept_A fill:#e3f2fd,stroke:none;
A_Title[Отдел A]:::labelA ~~~ 1.1(1.1):::card ~~~ 2.1(2.1):::card ~~~ 2.2(2.2):::card ~~~ 4.1(4.1):::card
end
classDef labelA fill:none,stroke:none,color:#1565c0,font-size:14px;
subgraph Dept_B [ ]
direction TB
style Dept_B fill:#e8f5e9,stroke:none;
B_Title[Отдел B]:::labelB ~~~ 1.2(1.2):::card ~~~ 2.3(2.3):::card ~~~ 3.1(3.1):::card ~~~ 4.2(4.2):::card ~~~ 5.1(5.1):::terminal
end
classDef labelB fill:none,stroke:none,color:#2e7d32,font-size:14px;
subgraph Dept_C [ ]
direction TB
style Dept_C fill:#fff3e0,stroke:none;
C_Title[Отдел C]:::labelC ~~~ 2.4(2.4):::card ~~~ 3.4(3.4):::hub ~~~ 3.5(3.5):::card ~~~ 3.2(3.2):::card ~~~ 3.3(3.3):::card ~~~ 4.4(4.4):::card ~~~ 4.3(4.3):::card ~~~ 5.2(5.2):::terminal
end
classDef labelC fill:none,stroke:none,color:#ef6c00,font-size:14px;
subgraph Dept_E [ ]
direction TB
style Dept_E fill:#f3e5f5,stroke:none;
E_Title[Отдел E]:::labelE ~~~ 2.6(2.6):::card ~~~ 3.6(3.6):::card ~~~ 4.6(4.6):::card ~~~ 5.4(5.4):::terminal
end
classDef labelE fill:none,stroke:none,color:#7b1fa2,font-size:14px;
subgraph Dept_F [ ]
direction TB
style Dept_F fill:#fce4ec,stroke:none;
F_Title[Отдел F]:::labelF ~~~ 1.4(1.4):::card ~~~ 2.7(2.7):::card ~~~ 3.7(3.7):::hub ~~~ 4.7(4.7):::card ~~~ 5.5(5.5):::terminal
end
classDef labelF fill:none,stroke:none,color:#c2185b,font-size:14px;
subgraph Dept_G [ ]
direction TB
style Dept_G fill:#efebe9,stroke:none;
G_Title[Отдел G]:::labelG ~~~ 3.9(3.9):::hub ~~~ 3.8(3.8):::card ~~~ 4.8(4.8):::terminal
end
classDef labelG fill:none,stroke:none,color:#4e342e,font-size:14px;
subgraph Dept_D [ ]
direction TB
style Dept_D fill:#e0f2f1,stroke:none;
D_Title[Отдел D]:::labelD ~~~ 1.3(1.3):::card ~~~ 2.5(2.5):::hub ~~~ 4.5(4.5):::card ~~~ 5.3(5.3):::terminal
end
classDef labelD fill:none,stroke:none,color:#00695c,font-size:14px;
subgraph Dept_H [ ]
direction TB
style Dept_H fill:#eceff1,stroke:none;
H_Title[Отдел H]:::labelH ~~~ 1.5(1.5):::card ~~~ 1.6(1.6):::card ~~~ 1.7(1.7):::card ~~~ 2.8(2.8):::card ~~~ 3.10(3.10):::card ~~~ 4.9(4.9):::card ~~~ 4.10(4.10):::terminal ~~~ 5.6(5.6):::terminal
end
classDef labelH fill:none,stroke:none,color:#37474f,font-size:14px;
1.1 ~~~ 1.2 ~~~ 1.4 ~~~ 1.3 ~~~ 1.5 ~~~ 1.6 ~~~ 1.7
2.1 ~~~ 2.2 ~~~ 2.3 ~~~ 2.4 ~~~ 2.6 ~~~ 2.7 ~~~ 2.5 ~~~ 2.8
3.1 ~~~ 3.4 ~~~ 3.5 ~~~ 3.2 ~~~ 3.3 ~~~ 3.6 ~~~ 3.7 ~~~ 3.9 ~~~ 3.8 ~~~ 3.10
4.1 ~~~ 4.2 ~~~ 4.4 ~~~ 4.3 ~~~ 4.6 ~~~ 4.7 ~~~ 4.8 ~~~ 4.5 ~~~ 4.9 ~~~ 4.10
5.1 ~~~ 5.2 ~~~ 5.4 ~~~ 5.5 ~~~ 5.3 ~~~ 5.6
1.1 ~~~ 2.1 ~~~ 3.1 ~~~ 4.1 ~~~ 5.1
1.7 ~~~ 2.8 ~~~ 3.10 ~~~ 4.10 ~~~ 5.6
linkStyle default stroke:#bbb,stroke-width:1px,fill:none;
linkStyle 0,1,3,10,11,12,13,14,15,22,23,24,25,27,28,45,46,47,48,51,53,54,55,56,66,67,68,70,72,73,74,75 stroke:green,stroke-width:2px;
linkStyle 2,4,8,9,16,19,20,26,29,30,49,50,52,57,71 stroke:blue,stroke-width:1.5px;
linkStyle 5,6,7,21,31,32,33,34,35,36,37,38,39,40,41,42,43,44,58,59,60,61,62,63,64,65,69,76,77,78,79,80 stroke:red,stroke-width:1.5px,stroke-dasharray: 3 3;
1.1 --> 2.1
2.1 --> 2.5
1.1 --> 2.5
1.1 -.-> 3.4
1.1 -.-> 3.5
1.1 -.-> 4.1
2.1 --> 3.4
2.2 --> 2.4
2.2 --> 2.7
2.2 --> 4.4
4.1 --> 4.3
1.2 --> 2.3
2.3 --> 3.1
3.1 --> 4.2
4.2 --> 5.1
2.3 -.-> 3.8
2.3 -.-> 3.9
3.1 -.-> 3.8
3.1 -.-> 3.9
3.1 --> 4.4
2.4 --> 2.3
2.4 --> 3.2
2.4 --> 3.3
2.4 -.-> 3.7
3.2 -.-> 3.7
3.2 --> 4.3
3.3 --> 4.3
3.3 -.-> 3.9
3.3 -.-> 3.8
3.3 -.-> 3.7
3.4 -.-> 2.1
3.4 --> 2.4
3.4 --> 3.1
3.4 -.-> 2.5
3.4 -.-> 2.7
3.4 -.-> 3.7
3.4 --> 4.4
3.5 --> 2.4
3.5 --> 4.4
4.3 --> 5.2
4.4 --> 4.3
2.6 --> 2.3
2.6 --> 2.7
2.6 --> 3.5
2.6 --> 3.6
2.6 -.-> 3.7
2.6 --> 4.6
3.6 --> 4.5
3.6 --> 4.6
4.6 --> 5.4
1.4 --> 2.7
2.7 --> 2.8
2.7 --> 3.7
2.7 -.-> 3.8
2.7 -.-> 3.9
3.7 -.-> 2.8
3.7 -.-> 3.9
3.7 -.-> 3.10
3.7 --> 4.7
3.7 --> 4.5
4.7 --> 5.3
4.7 --> 5.5
3.8 -.-> 2.7
3.8 -.-> 3.7
3.8 -.-> 4.3
3.8 --> 4.8
3.9 -.-> 2.3
3.9 -.-> 2.7
3.9 -.-> 3.1
3.9 -.-> 3.7
3.9 --> 4.8
1.3 --> 2.5
2.5 -.-> 2.3
2.5 -.-> 2.4
2.5 -.-> 3.1
2.5 -.-> 3.5
2.5 -.-> 3.8
2.5 -.-> 3.9
2.5 -.-> 3.7
2.5 -.-> 4.4
2.5 --> 4.5
4.5 --> 5.3
1.5 --> 2.8
1.6 --> 2.8
1.7 --> 2.8
2.8 --> 3.10
3.10 --> 4.9
3.10 --> 4.10
4.9 --> 5.6