:root {
	--admin-header-accent: #3157d5;
	--admin-header-accent-soft: #eef2ff;
	--admin-header-surface: rgba(255, 255, 255, 0.96);
	--admin-header-border: #e5e7eb;
	--admin-header-text: #172033;
	--admin-header-muted: #667085;
	--admin-header-shadow: 0 8px 30px rgba(23, 32, 51, 0.08);
}

.admin-header--needs {
	--admin-header-accent: #2563eb;
	--admin-header-accent-soft: #eff6ff;
}

.admin-header--brs {
	--admin-header-accent: #8a6500;
	--admin-header-accent-soft: #fff8d6;
}

.admin-header--cantat {
	--admin-header-accent: #4f46e5;
	--admin-header-accent-soft: #f1f0ff;
}

.admin-header {
	background: var(--admin-header-surface) !important;
	border-bottom: 1px solid var(--admin-header-border);
	box-shadow: var(--admin-header-shadow) !important;
	color: var(--admin-header-text);
	min-height: 72px;
	padding: 0 !important;
	backdrop-filter: blur(14px);
}

.admin-header > .container-fluid {
	display: flex;
	gap: 1rem;
	margin: 0 auto;
	max-width: 1500px;
	min-height: 72px;
	padding: 0.65rem 1.5rem;
	width: 100%;
}

.admin-header .navbar-brand {
	align-items: center;
	color: var(--admin-header-text) !important;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 750;
	letter-spacing: -0.01em;
	margin: 0;
	white-space: nowrap;
}

.admin-header span.navbar-brand {
	background: var(--admin-header-accent-soft);
	border-radius: 12px;
	height: 48px;
	justify-content: center;
	min-width: 48px;
	overflow: hidden;
	padding: 0.3rem;
}

.admin-header .navbar-brand img {
	display: block;
	height: 40px !important;
	max-width: 120px;
	object-fit: contain;
	width: auto;
}

.copilot-header-logo {
	animation: gradientAnimation 30s ease infinite;
	background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
	background-size: 400% 400%;
	display: block;
	flex: 0 0 150px;
	height: 40px;
	line-height: 0;
	margin: 0;
	padding: 0;
	width: 150px;
}

.copilot-header-logo .headLogo {
	display: block;
	height: 40px !important;
	margin: 0;
	max-height: 40px;
	padding: 0;
	width: 150px !important;
}


.admin-header .navbar-collapse {
	align-items: center;
	display: flex;
	gap: 0.35rem;
	min-width: 0;
}

.admin-header .navbar-nav {
	align-items: center;
	align-self: stretch;
	display: flex;
	flex-direction: row;
	gap: 0.2rem;
	margin: 0 !important;
	max-width: none;
	padding: 0;
}

.admin-header .nav-item.dropdown {
	align-items: center;
	align-self: stretch;
	display: flex;
	position: relative;
}

.admin-header .nav-link,
.admin-header .dropdown-item {
	border-radius: 9px;
	color: var(--admin-header-muted) !important;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.25;
	padding: 0.65rem 0.75rem !important;
	text-decoration: none;
	text-transform: none;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-header .nav-link:hover,
.admin-header .nav-link:focus-visible,
.admin-header .dropdown-item:hover,
.admin-header .dropdown-item:focus-visible,
.admin-header .nav-link.active {
	background: var(--admin-header-accent-soft);
	color: var(--admin-header-accent) !important;
	outline: none;
}

.admin-header .nav-link:active {
	transform: translateY(1px);
}

.admin-header .dropdown-toggle::after {
	border: 0;
	content: "⌄";
	display: inline-block;
	font-size: 0.8rem;
	margin-left: 0.35rem;
	transition: transform 160ms ease;
	vertical-align: 0.08em;
}

.admin-header .dropdown-toggle[aria-expanded="true"]::after {
	transform: rotate(180deg);
}

.admin-header .dropdown-menu {
	background: #fff;
	border: 1px solid var(--admin-header-border);
	border-radius: 12px;
	box-shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
	bottom: auto;
	left: 0;
	margin-top: 0 !important;
	min-width: 220px;
	padding: 0.45rem;
	top: calc(100% + 0.65rem);
}

.admin-header .dropdown-menu .nav-item {
	width: 100%;
}

.admin-header .dropdown-divider {
	border-color: var(--admin-header-border);
	margin: 0.4rem 0;
}

.admin-header .admin-header__account {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	display: flex !important;
	min-width: auto;
	margin-left: auto !important;
	margin-top: 0 !important;
	padding: 0;
	position: static !important;
}

.admin-header .admin-header__account > .dropdown > .nav-link {
	background: var(--admin-header-accent-soft);
	color: var(--admin-header-accent) !important;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-header .admin-header__account > .dropdown > .dropdown-menu {
	left: auto;
	right: 0;
}

.admin-header .admin-header__account > .dropdown > .nav-link::before {
	align-items: center;
	background: var(--admin-header-accent);
	border-radius: 50%;
	color: #fff;
	content: "●";
	display: inline-flex;
	font-size: 0.45rem;
	height: 24px;
	justify-content: center;
	margin-right: 0.5rem;
	vertical-align: middle;
	width: 24px;
}

.admin-header .dropdown-item input[type="submit"] {
	background: transparent;
	border: 0;
	color: #b42318;
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	padding: 0;
	text-align: left;
	width: 100%;
}

.admin-header .navbar-toggler {
	align-items: center;
	background: var(--admin-header-accent-soft);
	border: 1px solid var(--admin-header-border);
	border-radius: 10px;
	height: 42px;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	width: 42px;
}

@media (max-width: 1199px) {
	.admin-header > .container-fluid {
		padding-inline: 1rem;
	}

	.admin-header .nav-link,
	.admin-header .dropdown-item {
		font-size: 0.84rem;
		padding-inline: 0.55rem !important;
	}
}

@media (max-width: 991px) {
	.admin-header > .container-fluid {
		align-items: center;
		flex-wrap: wrap;
	}

	.admin-header .navbar-collapse:not(.show) {
		display: none;
	}

	.admin-header .navbar-collapse {
		align-items: stretch;
		border-top: 1px solid var(--admin-header-border);
		flex-basis: 100%;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.75rem 0 0.4rem;
	}

	.admin-header .navbar-nav {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.admin-header .nav-link {
		display: block;
		padding: 0.75rem !important;
	}

	.admin-header .admin-header__account {
		border-top: 1px solid var(--admin-header-border) !important;
		margin-top: 0.35rem !important;
		padding-top: 0.6rem;
	}

	.admin-header .dropdown-menu {
		box-shadow: none;
		margin: 0.3rem 0 !important;
		position: static !important;
		top: auto;
		width: 100%;
	}
}
