.orga-chart span {
	display: block;
	text-align: center;
	background-color: white;
	border: 4px solid var(--bs-primary);
	color: var(--bs-gray-900);
	font-size: 1rem;
	padding: 0.75rem 0.375rem;
	margin-bottom: 0;
	hyphens: auto;
}
.orga-chart a {
	color: var(--bs-gray-900);
}
.orga-chart a:hover {
	text-decoration: none;
}
.orga-chart .row:not(:first-child) .col {
	position: relative;
	padding-top: 20px;
	padding-bottom: 20px;
}
.orga-chart .row:not(:first-child) .col::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 0;
	height: 100%;
	width: 2px;
	background-color: var(--bs-primary);
	z-index: -1;
}

.orga-chart .row:not(:first-child) .col.has-children {
	padding-bottom: 0;
}

.orga-chart .row:not(:first-child) .col.has-children::after {
	height: 30px;
}

.orga-chart > .row:last-child .last-element::after {
	height: 30px;
}

/* ends */
.orga-chart .ends > .row > .col::after {
	height: 30px;
}
.orga-chart .ends::after {
	height: 30px !important;
}

.orga-chart .has-border > .col > .row > .col::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: var(--bs-primary);
	z-index: -1;
}

.orga-chart .has-border > .col > .row > .col:first-child::before {
	width: 100%;
	left: 50%;
}

.orga-chart .has-border > .col > .row > .col:last-child::before {
	width: 50%;
	left: 0;
}

/* Has rows */
.orga-chart .row:not(:first-child) .has-rows .col {
	flex: none;
	padding-bottom: 0;
	width: 100% !important;
}

/* Single Node */
.orga-chart .bold > .col span {
	font-weight: bold;
}

.orga-chart .italic > .col span {
	font-style: italic;
}

.orga-chart .second-color > .col span {
	background-color: #666;
	color: #FFF;
	border: 4px solid #666;
}

/* is Children */
.orga-chart .bold > .row > .col span {
	font-weight: bold;
}

.orga-chart .italic > .row > .col span {
	font-style: italic;
}

.orga-chart .second-color > .row > .col span {
	background-color: #666;
	color: #FFF;
	border: 4px solid #666;
}

/* Image mode */
.orga-chart-link-shape {
	display: block;
	margin-bottom: 0;
	hyphens: auto;
	background-color: rgba(255, 0, 0, 0);
	transition: all 0.3s ease;
	border: 2px solid #CCC;
}
.orga-chart-link:hover {
	cursor: pointer;
}
.orga-chart-link:hover > div > .orga-chart-link-shape {
	background-color: rgba(255, 0, 0, 0.5);
}
