/*
 * FVDF - Organograma visual (2026-08-09)
 * Ver assets/fvdf-organograma.js para a explicação completa.
 */

.fvdf-org-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 4px 14px;
  margin: 12px 0 20px;
}

.fvdf-org-chart,
.fvdf-org-chart ul,
.fvdf-org-chart li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fvdf-org-chart {
  display: inline-block;
  min-width: 100%;
  text-align: center;
  font-family: inherit;
}

.fvdf-org-chart ul {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  position: relative;
}

.fvdf-org-chart li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 12px 0;
  position: relative;
}

/* linha vertical do topo do <li> até a linha horizontal dos irmãos */
.fvdf-org-chart li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 30px;
  border-left: 2px solid #c7cede;
}

/* linha horizontal ligando irmãos, na altura do topo de cada <li> */
.fvdf-org-chart li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px solid #c7cede;
}

.fvdf-org-chart li:first-child::after { left: 50%; }
.fvdf-org-chart li:last-child::after { right: 50%; }
.fvdf-org-chart li:only-child::before,
.fvdf-org-chart li:only-child::after { display: none; }

/* raiz (Assembleia Geral) não tem linha vindo de cima */
.fvdf-org-chart > li::before,
.fvdf-org-chart > li::after { display: none; }

/* tronco: linha vertical descendo do próprio box do pai até a linha
   horizontal dos filhos */
.fvdf-org-chart li > ul::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 0;
  height: 30px;
  border-left: 2px solid #c7cede;
}

.fvdf-org-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(15, 23, 66, 0.12);
  overflow: hidden;
  min-width: 160px;
}

.fvdf-org-box-barra { height: 5px; }

.fvdf-org-box-corpo {
  padding: 11px 16px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.fvdf-org-raiz .fvdf-org-box-barra { background: #21266E; }
.fvdf-org-raiz .fvdf-org-box-corpo { background: #21266E; color: #fff; font-size: 13.5px; }

.fvdf-org-ramo .fvdf-org-box-barra { background: #E7D303; }
.fvdf-org-ramo .fvdf-org-box-corpo { color: #21266E; background: #FFFDF0; }

.fvdf-org-ramo-roxo .fvdf-org-box-barra { background: #7C3AED; }
.fvdf-org-ramo-roxo .fvdf-org-box-corpo { color: #4c1d95; background: #FAF7FF; white-space: normal; max-width: 180px; }

.fvdf-org-card { text-align: left; width: 225px; }
.fvdf-org-card.cor-navy .fvdf-org-box-barra { background: #21266E; }
.fvdf-org-card.cor-azul .fvdf-org-box-barra { background: #2F6FED; }
.fvdf-org-card.cor-verde .fvdf-org-box-barra { background: #2A9540; }

.fvdf-org-card-titulo {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6B7280;
  padding: 9px 14px 3px;
}
.fvdf-org-card-titulo.com-divisor { border-top: 1px dashed #e5e7eb; margin-top: 4px; }
.cor-azul .fvdf-org-card-titulo { color: #2F6FED; }
.cor-verde .fvdf-org-card-titulo { color: #2A9540; }

.fvdf-org-pessoa { padding: 4px 14px; border-top: 1px dashed #e5e7eb; }
.fvdf-org-pessoa:first-of-type,
.fvdf-org-card-titulo + .fvdf-org-pessoa { border-top: none; }
.fvdf-org-pessoa-nome { font-weight: 700; font-size: 13px; color: #111827; }
.fvdf-org-pessoa-cargo { font-size: 11px; color: #6B7280; }
.fvdf-org-card-rodape { height: 8px; }

.fvdf-org-disclaimer {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  color: #6B7280;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 20px;
}

@media (max-width: 600px) {
  .fvdf-org-card { width: 200px; }
}
