/* Mapa do fluxo: diagrama das etapas do projeto */
.fm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.6rem; margin: 0.4rem 0 0.8rem; }
.fm-head h3 { margin: 0; font-size: 1.05rem; }
.fm-head span { font-size: 0.8rem; color: var(--text-muted); }
.fm-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.75rem; color: var(--text-muted); }
.fm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.fm-d-entry { background: var(--accent-primary); } .fm-d-has { background: #6366f1; opacity: 0.55; } .fm-d-late { background: #dc2626; } .fm-d-done { background: #16a34a; }
.fm-scroll { overflow: auto; padding: 0.5rem 0.2rem 2rem; }
.fm-canvas { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.4rem; min-width: max-content; color: var(--text-muted); padding: 0.5rem 1rem; }
.fm-svg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: visible; }
.fm-elabel { fill: var(--accent-primary); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--bg-surface); stroke-width: 4px; }
.fm-layer { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: 1.6rem; }
.fm-node { width: 220px; border: 1px solid var(--border-color); border-left: 4px solid var(--border-color); border-radius: 12px; background: var(--bg-surface); padding: 0.55rem 0.7rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--text-primary); }
.fm-node.has-tasks { border-left-color: #6366f1; background: color-mix(in srgb, #6366f1 6%, var(--bg-surface)); }
.fm-node.is-entry { border-left-color: var(--accent-primary); }
.fm-node.is-done { border-left-color: #16a34a; background: color-mix(in srgb, #16a34a 8%, var(--bg-surface)); }
.fm-node-h { display: flex; align-items: center; gap: 0.35rem; }
.fm-node-name { flex: 1; font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-badge { font-size: 0.7rem; font-weight: 700; padding: 0 0.4rem; border-radius: 999px; background: var(--bg-surface-elevated, #eee); color: var(--text-muted); min-width: 1.1rem; text-align: center; }
.fm-badge.fm-has { background: #6366f1; color: #fff; }
.fm-badge.fm-late { background: #dc2626; color: #fff; }
.fm-badge.fm-ok { background: #16a34a; color: #fff; }
.fm-who { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-tasks { list-style: none; margin: 0.45rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; max-height: 220px; overflow-y: auto; }
.fm-tasks button { width: 100%; text-align: left; border: 0; background: transparent; padding: 0.1rem 0.25rem; border-radius: 6px; font: inherit; font-size: 0.78rem; color: var(--text-primary); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-tasks button:hover { background: var(--bg-surface-elevated, rgba(0,0,0,.05)); }
.fm-tasks button.is-late { color: #b91c1c; }
.fm-tasks .fm-more { color: var(--accent-primary); }
.fm-empty { max-width: 460px; margin: 3rem auto; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.fm-empty h3 { margin: 0; color: var(--text-primary); }
@media (max-width: 720px) { .fm-node { width: 180px; } .fm-layer { gap: 0.8rem; } }
