﻿:root {
	--color-background: #fff;
	--color-border: black;
	--color-link: #406ABA;
	--color-text-secondary: grey;
	--color-path: #2ecc71;
	--color-hover-bg: #FAFAFA;
	--spacing-sm: 0.5rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 20px;
}

.tree-chart {
	position: relative;
	overflow: auto;
	background-color: var(--color-background);
	width: 100%;
	height: 100%;
	padding: var(--spacing-lg);
}

.Treant {
	position: relative;
	width: 100%;
	height: 100%;
}

.Treant .node {
	position: absolute;
	padding-left: var(--spacing-md);
	border: none;
	background-color: transparent;
}

.Treant .collapse-switch {
	height: 0.75rem;
	width: 0.75rem;
	border-radius: 2.5px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1.4px solid var(--color-border);
	top: 4px;
	left: var(--spacing-sm);
	cursor: pointer;
	font-size: 1.05rem;
	color: var(--color-border);
	text-decoration: none;
}

.Treant .collapsed .collapse-switch::before {
	content: '+';
	padding-bottom: 1px;
}

.Treant .collapse-switch::before {
	content: '_';
	padding-bottom: 1rem;
}

.Treant .collapsed .collapse-switch {
	background-color: var(--color-background);
}

.node-content {
	display: flex;
	align-items: center;
	padding-right: var(--spacing-sm);
	position: relative;
	max-width: 100%;
}

.node-text {
	font-family: Arial, sans-serif;
	font-size: 14px;
	white-space: nowrap;
	max-width: 20rem;
	display: inline-block;
	overflow: hidden;
	width: 100%;
	text-overflow: ellipsis;
}

.Treant .path {
	stroke: var(--color-path);
	stroke-width: 1px;
}

.Treant > .svg {
	position: absolute;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
}

.node-button {
	display: none;
	position: absolute;
	right: -1.75rem;
	border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
	cursor: pointer;
	padding: 0 10px;
	width: 2rem;
	height: 2rem;
	border-radius: 20px;
	overflow: hidden;
	justify-content: center;
	align-items: center;
	background-color: var(--color-hover-bg);
}

.node-button-icon {
	height: fit-content;
	width: auto;
}

.node-content:hover .node-button,
.node-button:hover {
	display: inline-flex;
	background-color: var(--colorNeutralStroke1);
}

.blue-text {
	color: var(--st-interactive);
}

.node-text:hover .blue-text {
	text-decoration: underline;
}

.grey-text {
	color: var(--color-text-secondary);
}

.overflow-scroll-bars {
	overflow-y: auto;
	position: relative;
	padding-right: 5px;
}

.custom-node-children {
	padding-left: var(--spacing-md);
	box-sizing: border-box;
}