:root {
  --line: #4a6fa5;
  --exec-bg: #d6e4f7;
  --exec-border: #4a6fa5;
  --dept-bg: #fde8d0;
  --dept-border: #e07b39;
  --team-bg: #dff0d8;
  --team-border: #5a9e6f;
  --task-bg: #f9f9f9;
  --task-border: #bbb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

#sub-ogrchart{
    
}

/* ── 차트 컨테이너 ── */
.chart {
  position: relative;
  font-size:1.125rem;
}

svg#lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.nodes { position: relative; z-index: 2; }

/* ── 경영진 ── */
.exec-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.node {
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  white-space: nowrap;
}

.exec-node {
  background: var(--exec-bg);
  border: 2px solid var(--exec-border);
  color: #1a3a5c;
  padding: 10px 28px;
  width:100%;
  max-width: 220px;
}

.exec-gap  { height: 32px; }
.exec-tail { height: 70px; }

/* ── 본부 행: 기본 가로 배치 ── */
.dept-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── 본부 컬럼 ── */
.dept-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 360px;
  padding: 0 8px;
  /* 본부 그룹이 세로 전환될 때 margin-top을 JS가 동적 설정 */
}

.dept-node {
  background: var(--dept-bg);
  border: 2px solid var(--dept-border);
  color: #7a3b10;
  padding: 10px 20px;
  width: 100%;
  max-width: 200px;  
}

/* ── 팀 묶음 ── */
/* 기본: 가로 배치 */
.teams-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

/* 세로 전환 클래스 (JS가 부착) */
.teams-row.vertical {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

/* ── 팀 ── */
.team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-node {
  background: var(--team-bg);
  border: 2px solid var(--team-border);
  color: #2d6a40;
  padding: 8px 10px;
  min-width: 102px;
  font-size:0.9em;
}

.task-box {
  background: var(--task-bg);
  border: 1px solid var(--task-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  font-weight: 400;
  color: #444;
  font-size:0.85em;
  line-height: 1.9;
  text-align: center;
  min-width: 90px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.07);
}


/*반응형------------------------------------------------------------------------------------------------------------------ */
@media screen and (max-width:1280px){

}

@media screen and (max-width:1024px){

}

@media screen and (max-width:768px){

}

@media screen and (max-width:576px){

}