:root {
	--top-height: 63px;
}
html,
body {
	height: 100%;
}
body {
	font-size: 0.875rem;
}
#main {
	height: calc(100% - var(--top-height));
}

#log-main {
	display: flex;
	flex-direction: column;
	height: 100%;
}
#serial-logs {
	overflow-y: auto;
	white-space: pre-wrap;
	word-break: break-all;
	font-family: 'Consolas', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
	font-size: 0.85rem;
	line-height: 1.5;
	padding: 8px 12px;
}
#serial-logs.ansi {
	background-color: #000;
	color: #fff;
}
#serial-send-content {
	font-family: 'Consolas', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
	font-size: 0.875rem;
}
#serial-options,
#serial-tools {
	position: relative;
}
#serial-options {
	border-right: 1px solid #dee2e6;
}
#serial-options .input-group-text {
	width: 72px;
	justify-content: center;
}
#serial-tools {
	border-left: 1px solid #dee2e6;
}
.toggle-button {
	align-items: center;
	background: none;
	border: 0;
	display: flex;
	flex: none;
	font-size: 20px;
	height: 100%;
	justify-content: center;
	width: 20px;
	z-index: 1;
	background-color: #f8f9fa;
	cursor: pointer;
	transition: background 0.15s ease-in-out;
}
.toggle-button:hover {
	background: rgba(228, 231, 242, 0.4);
}

#serial-tools {
	height: 100%;
}
#serial-tools .collapse.show {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.quick-item {
	transition: background-color 0.15s ease-in-out;
}
.quick-item:hover {
	background-color: rgba(0, 0, 0, 0.03);
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-track {
	background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}
