#content {
	padding: 1em;
}

ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	border-left: none;
}

li {
	margin: 0;
	padding: 0;
}

.tree-node {
	display: flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 2px;
	line-height: 1.4;
	border-bottom: 1px solid #e0e0e0;
	width: 100%;
	box-sizing: border-box;
}

.tree-node .col-label {
	display: flex;
	align-items: center;
	min-width: 250px;
	flex-shrink: 0;
	padding-left: var(--depth, 0px);
	box-sizing: border-box;
	border-right: 1px solid #ccc;
}

.tree-node .col-value {
	padding: 0 10px;
	flex-grow: 1;
	color: #555;
	font-size: 0.9em;
}

.toggle {
	display: inline-block;
	cursor: pointer;
	user-select: none;
	margin-right: 6px;
	font-size: 0.8em;
	transform-origin: center;
	transition: transform 0.5s ease;
}

.tree-node.collapsed .toggle {
	transform: rotate(0deg);
}

.tree-node.expanded .toggle {
	transform: rotate(90deg);
}

span.label {
	cursor: pointer;
	user-select: none;
	text-decoration: none;
}

span.label:hover {
	text-decoration: none;
}

.leaf .toggle {
	visibility: hidden;
}

.tree-node + ul {
	max-height: 1000px;
	opacity: 1;
	overflow: hidden;
	transition: max-height 0.25s ease, opacity 0.5s ease;
}

.tree-node.collapsed + ul {
	max-height: 0;
	opacity: 0;
	pointer-events: none;
}

.tree-header {
	display: flex;
	flex-grow: 1;
	font-weight: bold;
	border-bottom: 2px solid #ccc;

	padding: 1em;
}

.tree-header .col-label {
	min-width: 250px;
	flex-shrink: 0;
	border-right: 1px solid #ccc;
	padding-left: 0;
	padding-right: 0;
}

.tree-header .col-value {
	flex-grow: 1;
	padding-left: 15px;
}

.tree-header-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 8px;
	margin-bottom: 4px;
}
