.treeview {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	list-style: none;
	margin-bottom: 0;
	padding: 2px 0;

	.btn {
		color: inherit;
		font-size: 12px;
		line-height: 1;
		padding: 6px 8px;
	}

	.btn-monospaced {
		font-size: inherit;
		height: 24px;
		padding: 0;
		width: 24px;

		&:focus {
			box-shadow: $component-focus-inset-box-shadow;
		}
	}

	.custom-control {
		margin-left: 4px;
		margin-right: 4px;
		margin-top: 1.5px;
	}

	.treeview-group {
		display: flex;
		flex-direction: column;
		list-style: none;
		margin-bottom: 0;
		padding-left: 0;
	}

	.treeview-item {
		word-wrap: break-word;
	}

	.treeview-link {
		background-color: transparent;
		border-color: transparent;
		border-style: solid;
		border-width: 1px;
		cursor: pointer;
		display: block;
		margin-bottom: 2px;
		margin-top: 2px;
		min-width: 100%;
		padding: 0;
		position: relative;
		text-align: left;
		user-select: none;

		&:hover {
			text-decoration: none;
		}

		&:focus {
			box-shadow: $component-focus-inset-box-shadow;
			outline: 0;
		}

		&:disabled {
			cursor: $disabled-cursor;
		}
	}

	.component-expanded-d-inline {
		display: inline;
	}

	.component-expanded-d-none {
		display: none;
	}

	.collapsed {
		.component-expanded-d-inline {
			display: none;
		}

		.component-expanded-d-none {
			display: inline;
		}
	}

	.component-expander {
		font-size: 10px;
	}

	.component-action {
		font-size: 16px;
		margin-left: 2px;
		margin-right: 2px;

		&:hover {
			background-color: transparent;
			color: $secondary;
		}

		&:focus {
			color: $secondary;
		}

		&:active {
			background-color: transparent;
		}
	}

	.component-icon {
		display: inline-block;
		font-size: 16px;
		height: auto;
		margin: 4px;
		vertical-align: middle;
		width: auto;

		.lexicon-icon {
			display: block;
		}
	}

	.component-text {
		line-height: 24px;
		padding-left: 4px;
		user-select: auto;
	}

	.quick-action-item {
		margin: 0 2px;
		min-height: 0;
		min-width: 0;
	}

	.autofit-row {
		align-items: center;
	}

	&.show-quick-actions-on-hover {
		.quick-action-item {
			display: none;
		}

		.treeview-link {
			&:hover {
				.quick-action-item {
					display: inline;
				}
			}
		}
	}
}

.treeview-light {
	.component-expander {
		color: $secondary;

		&:hover {
			color: $primary;
		}

		&:disabled {
			color: $secondary;
			opacity: 0.5;
		}

		.btn-secondary {
			background-color: $white;
		}
	}

	.treeview-link {
		color: $gray-600;

		.treeview-no-hover {
			&:hover {
				background-color: transparent;
				color: $secondary;
			}
		}

		&:hover {
			background-color: $gray-100;
			color: $gray-900;
		}

		&:active {
			background-color: $gray-200;
			color: $gray-900;
		}

		.active-class {
			background-color: $gray-200;
			color: $gray-900;
		}

		&:disabled {
			background-color: transparent;
			color: rgba($gray-600, 0.5);
		}

		.show {
			background-color: null;
			color: null;
		}
	}
}
