/* ====================================== Nav Menu ============================================= */

.loginBtn {
	font-size: inherit;
	background-color: inherit;
	color: inherit;
	border: none;
	display: none;
}

[data-u-level="1"] .loginBtn {
	display: unset;
}

nav.right {
	display: none;
}

[data-u-level="5"] nav.right,
[data-u-level="6"] nav.right {
	display: unset;
}

nav {
	position: fixed;
	top: 0;
	font-size: 1.5rem;
	background-color: #fdfdfd;
	transition: translate 300ms ease-in-out;
	z-index: 2;
}

nav.left {
	left: 0;
	translate: -100%;
	border-right: 0.1rem solid black;
	border-bottom: 0.1rem solid black;
	border-bottom-right-radius: 5px;
}

nav.right {
	right: 0;
	translate: 100%;
	transition: translate 300ms ease-in-out;
	border-left: 0.1rem solid black;
	border-bottom: 0.1rem solid black;
	border-bottom-left-radius: 0.5rem;
}

nav.open {
	translate: 0;
}

nav.right.open {
	box-shadow: -4px 6px 6px rgba(0, 0, 0, 0.6);
}

nav.left.open {
	box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.6);
}

nav .menuBody {
	overflow: auto;
	max-height: 100dvh;
	background-color: inherit;
}

nav.left .menuBody {
	border-bottom-right-radius: 5px;
}

nav.right .menuBody {
	border-bottom-left-radius: 5px;
}

nav .pullTab {
	position: absolute;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	/* width: var(--header-height); */
	width: 50px;
	height: var(--header-height);
	cursor: pointer;
	color: white;
	background-color: black;
	transition: all 300ms ease-in-out;
	border-bottom: 0.1rem solid black;
}

nav.left .pullTab {
	right: 0;
	translate: 100%;
	border-right: 0.1rem solid black;
	border-bottom-right-radius: 0.5rem;
}

nav.right .pullTab {
	left: 0;
	translate: -100%;
	border-left: 0.1rem solid black;
	border-bottom-left-radius: 0.5rem;
}

nav.open .pullTab {
	color: black;
	background-color: inherit;
}

nav.left.open .pullTab {
	box-shadow: 4px 6px 6px rgba(0, 0, 0, 0.2);
}

nav.right.open .pullTab {
	box-shadow: -4px 6px 6px rgba(0, 0, 0, 0.2);
}

nav .pullTab .hamburger {
	width: 32px;
	height: 32px;
	pointer-events: none;
}

nav .pullTab .hamburger .top,
nav .pullTab .hamburger .middle,
nav .pullTab .hamburger .bottom {
	transition:
		rotate 500ms ease-in-out 300ms,
		translate 500ms ease-in-out 300ms,
		scale 500ms ease-in-out 300ms;
	transform-box: fill-box;
	transform-origin: center;
}

nav.open .pullTab .hamburger .top {
	rotate: 45deg;
	translate: 0px 5px;
}

nav.open .pullTab .hamburger .middle {
	scale: 0;
}

nav.open .pullTab .hamburger .bottom {
	rotate: -45deg;
	translate: 0px -5px;
}

nav .pullTab .avatar {
	color: black;
	width: calc(var(--header-height) * 0.85);
	border-radius: 9999px;
	display: grid;
	align-items: center;
	justify-content: center;
	/* font-size: 100px; */
}

nav .pullTab .avatar img,
nav .pullTab .avatar svg {
	width: 100%;
}

nav summary {
	color: #363636;
	background-color: #beddf4;
	padding: 0.25rem 0.5rem;
	text-align: center;
	font-weight: bold;
}

nav summary .subTitle {
	font-size: 0.75rem;
	font-weight: normal;
}

nav ul li {
	list-style-type: none;
}

nav ul li label {
	cursor: inherit;
}

nav .navTextBox .opacity label {
	display: block;
	text-align: center;
	font-size: 1rem;
}

nav .navTextBox .opacity {
	padding: 0 0.5rem;
}

nav .navTextBox .opacity [type="range"] {
	width: 100%;
}

nav [type="checkbox"] {
	vertical-align: middle;
	margin: 0 auto;
	cursor: inherit;
}

nav [type="radio"] {
	height: 1rem;
	width: 1rem;
	cursor: inherit;
}

nav .infoCell {
	position: relative;
	text-align: end;
	border-top: 0.15rem solid;
	padding: 0.7rem 0.25rem 0;
}

nav .infoCell label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.7rem;
	padding: 0.05rem 0.25rem;
	color: darkgreen;
	white-space: nowrap;
}

nav .navBtnGroup {
	display: grid;
	/* grid-template-columns: 1fr 1fr; */
	grid-template-columns: repeat(6, 1fr);
	gap: 0.25rem;
	padding: 0.25rem;
}

nav .navBtnGroup .col-2 {
	grid-column: span 2;
}

nav .navBtnGroup .col-3 {
	grid-column: span 3;
}

nav .navBtnGroup .col-4 {
	grid-column: span 4;
}

nav .navBtnGroup .col-5 {
	grid-column: span 5;
}

nav .navBtnGroup .col-6 {
	grid-column: span 6;
}

nav .navBtn {
	display: grid;
	align-items: center;
	border-radius: 0.25rem;
	padding: 0.1rem 0.25rem;
	min-width: 10ch;
	position: relative;
}

nav .pipMenuBtn {
	position: absolute;
	width: 15px;
	top: 4px;
	right: 3px;
	fill: none;
	/* stroke: none; */
	stroke: currentColor;
	stroke-width: 2;
	pointer-events: none;
}

nav .pipMenuBtn.show {
	fill: #f9ca6a;
}

nav .navBtn .icon {
	line-height: 0;
	pointer-events: none;
}

nav .navBtn .icon svg,
nav .navBtn .icon img {
	height: 1.25rem;
	width: auto;
	fill: currentColor;
}

nav .navBtn .text {
	pointer-events: none;
}

nav.btnOptText .navBtn .icon {
	display: none;
}

nav.btnOptText .navBtn .text {
	min-height: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

nav.btnOptIcon .navBtn .text {
	display: none;
}

nav .navBtn .text .subTitle {
	font-size: 0.65rem;
}

nav .navBtn .text .title {
	font-size: 0.85rem;
}

nav .admin {
	display: none;
}

.app.admin nav .admin {
	display: revert;
}

[data-u-level="1"] nav .navBtn.save,
[data-u-level="1"] nav .navBtn.print {
	grid-column: span 3;
}

[data-mode="v"] nav .navBtn.viewSitePhoto {
	grid-column: span 6;
}
