: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: 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;
}

#esp-firmware-download .upload {
  width: 600px;
  display: flex;
  align-items: left;
  margin: 5px auto;
  justify-content: left;
}

#esp-firmware-download .upload .offset {
  width: 50px;
}

#esp-firmware-download .upload label {
  white-space: nowrap;
}

.firmware > input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.firmware {
  border-style: solid;
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
  align-items: left;
  cursor: pointer;
}

.firmware > svg {
  margin-right: 10px;
}

.progress-bar {
  width: 13%;
  height: 24px;
  border-style: solid;
  border-width: 2px;
  border-radius: 10px;
  padding: 0;
}

.progress-bar > div {
  height: 24px;
  background-color: #71ae1e;
  width: 0;
}

.browser-label {
  display: inline-block;
  min-width: 60px;
  font-weight: 500;
}
