:root {
	--team-topbar-height: 56px;
	--team-bottom-nav-height: 64px;
}

body {
	padding-bottom: calc(var(--team-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
	background-color: var(--theme-body-bg);
}

.team-topbar {
	position: sticky;
	top: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	height: var(--team-topbar-height);
	padding: 0 .75rem;
	background-color: var(--theme-secondary-bg);
	border-bottom: 1px solid var(--theme-border-color);
}

.team-topbar .team-brand img {
	height: 28px;
	width: auto;
}

.team-topbar .logo-light {
	display: none;
}

.team-topbar .logo-dark {
	display: flex;
}

html[data-bs-theme=dark] .team-topbar .logo-light {
	display: flex;
}

html[data-bs-theme=dark] .team-topbar .logo-dark {
	display: none;
}

.team-topbar .topbar-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--theme-secondary-color);
	position: relative;
}

.team-topbar .topbar-badge {
	position: absolute;
	top: 4px;
	right: 4px;
}

.team-main {
	min-height: calc(100vh - var(--team-topbar-height) - var(--team-bottom-nav-height));
	padding: .75rem .75rem 1.25rem;
}

.team-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1030;
	display: flex;
	align-items: stretch;
	height: calc(var(--team-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background-color: var(--theme-secondary-bg);
	border-top: 1px solid var(--theme-border-color);
}

.team-bottom-nav a {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 44px;
	padding: 6px 2px;
	font-size: .68rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--theme-secondary-color);
}

.team-bottom-nav a .team-nav-icon {
	width: 22px;
	height: 22px;
}

.team-bottom-nav a.active {
	color: var(--theme-primary);
}

.team-day-strip {
	display: flex;
	gap: .375rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: .25rem;
	scrollbar-width: none;
}

.team-day-strip::-webkit-scrollbar {
	display: none;
}

.team-day {
	flex: 1 0 auto;
	min-width: 44px;
	min-height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	padding: 6px 4px;
	border: 1px solid var(--theme-border-color);
	border-radius: .5rem;
	background-color: var(--theme-secondary-bg);
	color: var(--theme-body-color);
	text-decoration: none;
	line-height: 1.1;
}

.team-day .team-day-name {
	font-size: .62rem;
	text-transform: uppercase;
	color: var(--theme-secondary-color);
}

.team-day .team-day-number {
	font-size: 1rem;
	font-weight: 600;
}

.team-day.active {
	background-color: var(--theme-primary);
	border-color: var(--theme-primary);
	color: #fff;
}

.team-day.active .team-day-name {
	color: rgba(255, 255, 255, .85);
}

.team-day.today:not(.active) {
	border-color: var(--theme-primary);
}

.team-day .team-day-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--theme-primary);
}

.team-day.active .team-day-dot {
	background-color: #fff;
}

.team-shift-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.team-section-header {
	cursor: pointer;
}

.team-section-chevron {
	transition: transform .2s ease;
}

.team-section-header[aria-expanded="true"] .team-section-chevron {
	transform: rotate(180deg);
}

.team-shift-time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.team-photo-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: .5rem;
}

.two-factor {
	display: flex;
	gap: .4rem;
	width: 100%;
}

.two-factor-digit {
	flex: 1 1 0;
	min-width: 0;
	height: 52px;
	padding: 0 .25rem;
	text-align: center;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1;
	color: var(--theme-body-color);
	-webkit-text-fill-color: var(--theme-body-color);
}

.team-completion-progress {
	gap: .25rem;
}

.team-completion-progress .completion-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: .8rem;
	font-weight: 600;
	background-color: var(--theme-tertiary-bg);
	color: var(--theme-secondary-color);
}

.team-completion-progress .completion-dot.active {
	background-color: var(--theme-primary);
	color: #fff;
}

.team-completion-progress .completion-bar {
	height: 2px;
	background-color: var(--theme-border-color);
}

.team-completion [data-pay-method] {
	min-height: 48px;
}

.team-completion [data-pay-method].active {
	background-color: var(--theme-primary);
	border-color: var(--theme-primary);
	color: #fff;
}

.completion-sign-wrap {
	border: 1px dashed var(--theme-border-color);
	border-radius: .5rem;
	background-color: var(--theme-secondary-bg);
}

.team-auth-bg {
	position: relative;
}

.team-auth-bg::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	z-index: 0;
}

.team-auth-bg > * {
	position: relative;
	z-index: 1;
}

.completion-sign-canvas {
	display: block;
	width: 100%;
	height: 180px;
	touch-action: none;
}

.completion-qr img {
	width: 200px;
	max-width: 70%;
	height: auto;
}

.team-fab {
	position: fixed;
	right: 1rem;
	bottom: calc(var(--team-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1rem);
	z-index: 1031;
	width: 56px;
	height: 56px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}