.annotationCanvas {
	display: flex;
	flex-direction: column;
	max-height: 90vh;
}

.annotationCanvas-toolbar {
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--basic-spacing) / 2);
	padding: calc(var(--basic-spacing) / 2) var(--basic-spacing);
}

.annotationCanvas-toolGroup {
	align-items: center;
	display: flex;
	gap: 4px;
}

.annotationCanvas-toolGroup + .annotationCanvas-toolGroup {
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	padding-left: calc(var(--basic-spacing) / 2);
}

.annotationCanvas-toolBtn {
	align-items: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	color: rgb(var(--secondary-alt));
	cursor: pointer;
	display: flex;
	justify-content: center;
	padding: 6px;
	transition: background-color 0.15s;
}

.annotationCanvas-toolBtn:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

.annotationCanvas-toolBtnActive {
	align-items: center;
	background-color: rgb(var(--primary));
	border: 1px solid transparent;
	border-radius: 4px;
	color: rgb(var(--primary-contrast));
	cursor: pointer;
	display: flex;
	justify-content: center;
	padding: 6px;
}

.annotationCanvas-colorInput {
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	cursor: pointer;
	height: 32px;
	padding: 2px;
	width: 32px;
}

.annotationCanvas-widthSelect {
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	font-size: 13px;
	height: 32px;
	padding: 0 4px;
}

.annotationCanvas-canvasWrapper {
	background-color: #e0e0e0;
	overflow: auto;
	position: relative;
}

.annotationCanvas-canvasWrapper canvas {
	cursor: crosshair;
	display: block;
	max-height: calc(90vh - 110px);
	max-width: 85vw;
	touch-action: none;
}

.annotationCanvas-textOverlay {
	background: transparent;
	border: 1px dashed rgba(0, 0, 0, 0.5);
	color: inherit;
	font-family: sans-serif;
	min-width: 100px;
	outline: none;
	padding: 0;
	position: absolute;
	z-index: 1;
}

.annotationCanvas-bottomBar {
	align-items: center;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	display: flex;
	gap: calc(var(--basic-spacing) / 2);
	justify-content: flex-end;
	padding: calc(var(--basic-spacing) / 2) var(--basic-spacing);
}
