/* Estilo geral */
.organograma-conteiner {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  /* margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; */
}
:root {
    --line-color: #000;
    --hover-color: #2196F3;
}
.container_orgonograma {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blocos */
.node_orgonograma {
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border: 1px solid #999;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Geral */
.node_orgonograma:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    border-color: var(--hover-color);
    background: #e3f2fd !important;
}

/* Estilos Específicos */
.main-dir { background: linear-gradient(#ffb74d, #ffa726); width: 260px; border-radius: 15px; height: 90px; }
.side-node_orgonograma { background: linear-gradient(to right, #ffcc80, #ffb74d); border-radius: 20px; width: 200px; font-size: 12px; }
.dept {
  color: #fff;
  width: 320px;
  height: 70px;
  border-radius: 50px;
}
.dept-green { background-color: #2ecc71; }
.dept-blue { background-color: #5c6bc0; }
.section_orgonograma { width: 50%; height: 80px; border-radius: 20px; font-size: 12px; }
.sec-green { background-color: #aed581; }
.sec-blue { background-color: #4fc3f7; }

/* --- Estrutura da Grid Superior (A chave do problema) --- */
.upper-grid {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    align-items: center;
    width: 500px;
}

.line-center { background-color: var(--line-color); width: 2px; height: 100%; margin: 0 auto; position: relative; }

.grid-item-left { justify-self: end; margin-right: 15px; position: relative; }
.grid-item-right { justify-self: start; margin-left: 15px; position: relative; }

/* Linhas horizontais curtas ligando à linha central */
.grid-item-left::after { content: ""; position: absolute; right: -15px; top: 50%; width: 15px; height: 2px; background: var(--line-color); }
.grid-item-right::after { content: ""; position: absolute; left: -15px; top: 50%; width: 15px; height: 2px; background: var(--line-color); }

/* --- Estrutura Inferior --- */
.horizontal-line-container_orgonograma {
    width: 650px;
    height: 40px;
    border-top: 2px solid var(--line-color);
    border-left: 2px solid var(--line-color);
    border-right: 2px solid var(--line-color);
    display: flex;
    justify-content: space-between;
}

.dept-row { display: flex; gap: 40px; margin-top: -2px; }
.dept-column { display: flex; flex-direction: column; align-items: center; }

.sub-row { display: flex; gap: 15px; margin-top: 0px; position: relative; }
/* .sub-row::before { content: ""; position: absolute; top: -20px; left: 50%; width: 2px; height: 20px; background: var(--line-color); } */

/* Linha ligando as duas seções */
.sec-bridge { width: 60%; height: 2px; background: var(--line-color); margin-bottom: 0; }
.sec-connectors { display: flex; justify-content: space-between; width: 60%; }
.mini-line { width: 2px; height: 25px; background: var(--line-color); }
