graph LR
%% ============ GESTÃO ADMINISTRATIVA ============
subgraph gestao_admin["Gestão Administrativa"]
direction TB
A1["Gestão de Escolas"]
A2["Gestão Financeira\ne Orçamentária"]
A3["Processos Institucionais\n(RH, contratos, licitações)"]
A4["Comunicação Oficial\n(SME → Escolas)"]
A1 --> A2
A2 --> A3
A3 --> A4
A1 --> DB[(Banco de Dados)]
A2 --> DB
A3 --> DB
A4 --> NOTIF["Notificações\nInternas"]
end
%% ============ GESTÃO ESCOLAR ============
subgraph gestao_escolar["Gestão Escolar"]
direction TB
E1["Dossiê do Aluno\n(Registro Centralizado)"]
P1["Processo: Cadastro do Aluno"]
P2["Processo: Matrícula"]
P3["Processo: Transferência"]
P4["Processo: Frequência Irregular"]
P5["Processo: Desempenho Acadêmico"]
P6["Processo: Reclamação Escolar"]
P7["Processo: Comunicação com Responsável"]
P8["Processo: Apoio Pedagógico"]
E1 --> P1
E1 --> P2
E1 --> P3
E1 --> P4
E1 --> P5
E1 --> P6
E1 --> P7
E1 --> P8
MOD1["Gestão de Alunos"] -->|Cria| E1
MOD2["Gestão Acadêmica"] -->|Gera| P2 & P4 & P5
MOD3["Gestão de Processos"] -->|Abre| P6
MOD4["Comunicação"] -->|Registra| P7
MOD5["Apoio Pedagógico"] -->|Inicia| P8
end
%% ============ CONEXÕES GLOBAIS ============
DB --> E1
A1 -->|Fornece dados de escola| E1
P1 --> DB
P2 --> DB
P3 --> DB
P4 --> DB
P5 --> DB
P6 --> DB
P7 --> DB
P8 --> DB
NOTIF --> A4
MOD3 --> DB
MOD4 --> Email["Envio de E-mail"]
Email --> Responsavel[(Responsável)]
%% ============ ESTILOS ============
style gestao_admin fill:#ffebee,stroke:#c62828,stroke-width:2px,fill-opacity:0.1
style gestao_escolar fill:#e8f5e8,stroke:#2e7d32,stroke-width:2px,fill-opacity:0.1
style A1 fill:#c62828,stroke:#8b0000,color:white
style A2 fill:#c62828,stroke:#8b0000,color:white
style A3 fill:#c62828,stroke:#8b0000,color:white
style A4 fill:#c62828,stroke:#8b0000,color:white
style E1 fill:#2e7d32,stroke:#1b5e20,color:white
style P1 fill:#4527a0,stroke:#311b92,color:white
style P2 fill:#4527a0,stroke:#311b92,color:white
style P3 fill:#4527a0,stroke:#311b92,color:white
style P4 fill:#4527a0,stroke:#311b92,color:white
style P5 fill:#4527a0,stroke:#311b92,color:white
style P6 fill:#4527a0,stroke:#311b92,color:white
style P7 fill:#4527a0,stroke:#311b92,color:white
style P8 fill:#4527a0,stroke:#311b92,color:white
style MOD1 fill:#1e88e5,stroke:#0d47a1,color:white
style MOD2 fill:#1e88e5,stroke:#0d47a1,color:white
style MOD3 fill:#1e88e5,stroke:#0d47a1,color:white
style MOD4 fill:#1e88e5,stroke:#0d47a1,color:white
style MOD5 fill:#1e88e5,stroke:#0d47a1,color:white
style DB fill:#7b1fa2,stroke:#4a148c,color:white
style Email fill:#fb8c00,stroke:#ef6c00,color:white
style Responsavel fill:#5d4037,stroke:#3e2723,color:white
style NOTIF fill:#546e7a,stroke:#37474f,color:white