:root {
	--top-height: 63px;
}
html,
body {
	height: 100%;
}
body {
	font-size: 0.875rem;
}
    #log-main.sidebar {
        min-width: 260px;
        max-width: 350px;
        width: 100%;
        flex: 0 0 260px;
    }
    @media (max-width: 900px) {
        #log-main.sidebar {
            min-width: 180px;
            max-width: 220px;
            flex: 0 0 180px;
        }
    }
    #main {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }
#serial-logs {
	overflow-y: scroll;
	white-space: pre-wrap;
	word-break: break-all;
}
#serial-logs.ansi {
	background-color: #000;
	color: #fff;
}
#serial-options,
#serial-tools {
	position: relative;
}
.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;
}
.toggle-button:hover {
	background: rgba(228, 231, 242, 0.4);
}

#serial-tools {

	height: 100%;
}
#nav-tabContent {
	overflow: hidden;
}
#serial-tools .collapse.show,
#nav-quick-send.show {
	height: 100%;
	display: flex;
	flex-direction: column;
}
#nav-code {
	height: 100%;
}
#serial-code-editor .CodeMirror {
	height: 100%;
}
.CodeMirror-readonly {
	background-color: var(--bs-light-rgb);
	cursor: not-allowed;
}
/* 文件列表区按钮和字号变小 */
#file-list {
    max-width: 300px;
    min-width: 200px;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0.5rem;
}
#file-list .list-group-item {
    font-size: 0.82rem;
    padding: 0.35rem 0.6rem;
}
#serial-tools .card-header {
    font-size: 0.92rem;
    padding: 0.4rem 0.8rem;
}
#read-dir-btn {
    font-size: 0.82rem !important;
    padding: 0.18rem 0.6rem !important;
}
#red-range-slider {
    height: 18px !important;
    min-height: 18px !important;
    margin-top: 2px;
}
/* noUiSlider轨道和手柄高度 */
#red-range-slider .noUi-base,
#red-range-slider .noUi-connects {
    height: 8px !important;
    min-height: 8px !important;
}
#red-range-slider .noUi-handle {
    width: 14px !important;
    height: 14px !important;
    top: -3px !important;
}
