:root {
	--nav-bg: var(--bp-navy, #01023a);
	--nav-border: var(--bp-gray5, #555557);
	--nav-fg: var(--bp-grayF, #f9f8f9);
	--nav-hover-bg: rgba(255, 255, 255, 0.12);
}

#nav-wrapper {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	background-color: var(--nav-bg);
	padding: 0.75em 0.35em;
	width: 36px;
	min-width: 36px;
	max-width: 36px;
	flex: 0 0 36px;
	position: sticky;
	top: 62px;
	max-height: calc(100vh - 62px);
	overflow-x: hidden;
	overflow-y: auto;
}

.nav-top,
.nav-bottom {
	flex-shrink: 0;
	width: 100%;
}

.nav-top {
	padding-bottom: 0.5em;
	margin-bottom: 0.5em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-top:empty {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.nav-middle + .nav-bottom {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-middle {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.nav-middle:not(:empty) {
	margin-top: 0.5em;
	padding-top: 0.5em;
	border-top: none;
}

#nav-wrapper > .nav-top:empty + .nav-middle:not(:empty) {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-top .nav-menu,
.nav-bottom .nav-menu,
.nav-middle .nav-menu,
.nav-middle .extra-nav-section {
	width: 100%;
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.nav-middle .nav-menu + .nav-menu,
.nav-middle .nav-menu + .extra-nav-section,
.nav-middle .extra-nav-section + .nav-menu,
.nav-middle .extra-nav-section + .extra-nav-section {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 0.5em;
	margin-top: 0.5em;
}

.nav-bottom {
	margin-top: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	padding-top: 0.5em;
}

.extra-nav-section .nav-menu {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0.35em 0;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

#nav-wrapper .nav-menu:last-of-type {
	margin-top: auto;
	padding-bottom: 0.75em;
	border-bottom: none;
}

.nav-menu.no-top {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.nav-menu.bordered {
	border-bottom: 2px solid var(--nav-border);
	padding-bottom: 1em;
	margin-bottom: 0.5em;
}

.nav-menu > li {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0.25em 0.5em;
	border-radius: 0.35em;
	color: var(--nav-fg);
	transition: background-color 0.15s ease, color 0.15s ease;
	overflow: visible;
}

.nav-menu > li.panel-nav-btn {
	justify-content: center;
}

.nav-menu > li.panel-nav-btn-selected,
.nav-menu > li.panel-nav-btn-selected i,
.nav-menu > li.panel-nav-btn-selected span {
	color: var(--bp-red);
}

.nav-menu > li.panel-nav-btn-selected img {
	filter: grayscale(0) invert(0);
}

.nav-menu > li:hover {
	cursor: pointer;
	background-color: var(--nav-hover-bg);
}

.nav-menu > li.no-hover:hover {
	cursor: default;
	background-color: transparent;
}

.nav-menu > li.no-hover {
	height: 1px;
	min-height: 1px;
	background-color: rgba(255, 255, 255, 0.35);
	margin: 0.4em 0;
	padding: 0;
	border-radius: 0;
	pointer-events: none;
}

.nav-menu > li > a,
.nav-menu > li > span,
.nav-menu > li > button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35em;
	color: inherit;
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
}

.nav-menu > li > a:focus,
.nav-menu > li > span:focus {
	outline: 2px solid var(--bp-orange, #ff7f00);
	outline-offset: 2px;
}

.back-btn {
	border-radius: 0.35em;
}

