﻿/* ═══════════════════════════════════════════════════════════════════════════════
   ACURBUSINESS — STYLING CARDS NATIVES DEVEXPRESS DASHBOARD 25.2.3
   Fichier : wwwroot/css/educated-native-cards.css
   Palette : Violet #7C4DFF → Cyan #22D3EE
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════
   1. LA CARD — conteneur visuel principal
   ════════════════════════════════════════════════════════════════ */
.dx-dashboard-card-without-background,
.dx-dashboard-item.dx-dashboard-card-without-background {
	background: var(--surface-1) !important;
	border: 1px solid var(--line) !important;
	border-radius: 16px !important;
	box-shadow: var(--sh-1) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	cursor: pointer !important;
	position: relative !important;
	overflow: hidden !important;
}

	.dx-dashboard-card-without-background:hover {
		border-color: var(--line-3) !important;
		box-shadow: var(--sh-3) !important;
	}

	.dx-dashboard-card-without-background::before {
		content: '' !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		height: 3px !important;
		background: var(--gradient-brand) !important;
		transform: scaleX(0) !important;
		transform-origin: left !important;
		transition: transform 0.4s ease !important;
		z-index: 100 !important;
		pointer-events: none !important;
	}

	.dx-dashboard-card-without-background:hover::before {
		transform: scaleX(1) !important;
	}


/* ════════════════════════════════════════════════════════════════
   2. LAYOUT INTERNE
   ════════════════════════════════════════════════════════════════ */
.dx-flex-card-layout {
	background: transparent !important;
}

.dx-flex-card-layout-content {
	padding: 16px 18px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	height: 100% !important;
}

	.dx-flex-card-layout-content > div {
		display: flex !important;
		flex-direction: column !important;
		gap: 8px !important;
	}

.dx-flex-card-layout-content-top-rows,
.dx-flex-card-layout-content-bottom-rows {
	display: none !important;
}

.dx-flex-card-layout-row {
	padding-bottom: 0 !important;
	margin: 0 !important;
}


	/* ════════════════════════════════════════════════════════════════
   3. RANGÉE 1 — TITRE
   ════════════════════════════════════════════════════════════════ */
	.dx-flex-card-layout-row:first-child .dx-flex-card-layout-row-element,
	.dx-flex-card-layout-row:first-child .dx-carditem-default-color {
		font-size: 13px !important;
		font-weight: 500 !important;
		color: var(--ink-3) !important;
	}

	.dx-flex-card-layout-row:first-child .dx-icon-dashboard-cf {
		background-color: var(--brand-soft) !important;
		border-radius: 8px !important;
		width: 28px !important;
		height: 28px !important;
		min-width: 28px !important;
		box-sizing: border-box !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
		background-size: 16px 16px !important;
		margin-right: 8px !important;
	}


	/* ════════════════════════════════════════════════════════════════
   4. RANGÉE 2 — VALEUR PRINCIPALE
   ════════════════════════════════════════════════════════════════ */
	.dx-flex-card-layout-row:nth-child(2) .dx-flex-card-layout-row-element,
	.dx-flex-card-layout-row:nth-child(2) .dx-carditem-default-color {
		font-size: 28px !important;
		font-weight: 700 !important;
		color: var(--ink-0) !important;
		line-height: 1.1 !important;
		font-variant-numeric: tabular-nums !important;
		letter-spacing: -0.02em !important;
	}


	/* ════════════════════════════════════════════════════════════════
   5. RANGÉE 3 — DELTA pill
   ════════════════════════════════════════════════════════════════ */
	.dx-flex-card-layout-row:nth-child(3) {
		display: flex !important;
		align-items: center !important;
	}

		.dx-flex-card-layout-row:nth-child(3) .dx-flex-card-layout-row-left-right {
			display: inline-flex !important;
			align-items: center !important;
			gap: 0 !important;
			padding: 4px 10px !important;
			border-radius: 20px !important;
			background: var(--surface-3) !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-flex-card-layout-row-element {
			font-size: 11px !important;
			font-weight: 600 !important;
			font-variant-numeric: tabular-nums !important;
			padding: 0 3px !important;
			background: transparent !important;
			border-radius: 0 !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-flex-card-layout-row-left-right:has(.dx-carditem-positive-color) {
			background: var(--success-soft) !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-carditem-positive-color {
			color: #0F6E56 !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-flex-card-layout-row-left-right:has(.dx-carditem-negative-color) {
			background: var(--danger-soft) !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-carditem-negative-color {
			color: var(--danger) !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-carditem-none-color {
			color: var(--ink-3) !important;
		}

		.dx-flex-card-layout-row:nth-child(3) .dx-icon-dashboard-cf-rating4filledboxes {
			display: none !important;
		}


/* ════════════════════════════════════════════════════════════════
   6. COULEURS SÉMANTIQUES
   ════════════════════════════════════════════════════════════════ */
.dx-carditem-default-color {
	color: var(--ink-0) !important;
}

.dx-carditem-positive-color {
	color: var(--success) !important;
}

.dx-carditem-negative-color {
	color: var(--danger) !important;
}

.dx-carditem-warning-color {
	color: var(--warning) !important;
}

.dx-carditem-none-color {
	color: var(--ink-3) !important;
}

.dx-flex-card-layout .dx-icon-dashboard-cf-indicatorcircledyellowexclamation {
	color: var(--warning) !important;
}

.dx-flex-card-layout .dx-icon-dashboard-cf-rating4filledboxes {
	color: var(--brand) !important;
}


/* ════════════════════════════════════════════════════════════════
   7. SPARKLINE
   ════════════════════════════════════════════════════════════════ */
.dx-flex-card-layout-row-center-only {
	margin-top: 6px !important;
	padding-bottom: 0 !important;
}

	.dx-flex-card-layout-row-center-only > div {
		height: 36px !important;
	}

.dxsl-sparkline .dxc-borders,
.dxsl-sparkline .dxc-borders path {
	stroke: var(--brand) !important;
	stroke-width: 2.5 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	fill: none !important;
}

.dxsl-sparkline .dxc-elements {
	fill: var(--brand) !important;
	opacity: 0.16 !important;
}

	.dxsl-sparkline .dxc-elements path {
		fill: var(--brand) !important;
	}

.dxsl-sparkline .dxc-markers circle {
	fill: var(--brand) !important;
	stroke: var(--surface-1) !important;
	stroke-width: 2 !important;
}


/* ════════════════════════════════════════════════════════════════
   8. POLICE GLOBALE
   ════════════════════════════════════════════════════════════════ */
.dx-flex-card-layout-row-element,
.dx-flex-card-layout * {
	font-family: var(--font-body) !important;
}


/* ════════════════════════════════════════════════════════════════
   9. TOOLBAR FLOTTANTE
   ════════════════════════════════════════════════════════════════ */
.dx-dashboard-caption-toolbar {
	background: var(--surface-1) !important;
	border: 1px solid var(--line) !important;
	box-shadow: var(--sh-3) !important;
}

	.dx-dashboard-caption-toolbar .dx-button {
		border-radius: var(--radius) !important;
	}

		.dx-dashboard-caption-toolbar .dx-button:hover {
			background: var(--brand-soft) !important;
		}


/* ════════════════════════════════════════════════════════════════
   10. CARD SÉLECTIONNÉE
   ════════════════════════════════════════════════════════════════ */
.dx-layout-item-selected .dx-dashboard-card-without-background,
.dx-dashboard-card-without-background.dx-state-selected {
	border: 2px solid var(--brand) !important;
	box-shadow: 0 0 0 4px var(--brand-soft) !important;
}


/* ════════════════════════════════════════════════════════════════
   11. ANIMATION D'ENTRÉE
   ════════════════════════════════════════════════════════════════ */
@keyframes cardFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dx-dashboard-card-without-background {
	animation: cardFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both !important;
}


/* ════════════════════════════════════════════════════════════════
   12. WELCOME HOST — Custom Dashboard Item
   ════════════════════════════════════════════════════════════════ */

/* Le conteneur DevExpress doit être transparent */
.educated-welcome-host {
	height: 100%;
	width: 100%;
	background: transparent !important;
	padding: 0 !important;
}

/* La card : fond blanc avec dégradé subtil — même rendu qu'Educated */
.d5-welcome {
	position: relative;
	background: var(--surface-1) !important;
	border: 1px solid var(--line) !important;
	border-radius: 16px;
	padding: 22px 26px;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	box-shadow: 0 1px 0 rgba(16,20,43,.02), 0 18px 36px -22px rgba(124,77,255,.18), 0 8px 18px -12px rgba(124,77,255,.10);
}

/* Dégradé subtil violet→cyan en arrière-plan */
.d5-welcome-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 300px at 100% 0%, rgba(124,77,255,.08), transparent 60%), radial-gradient(500px 250px at 0% 100%, rgba(34,211,238,.06), transparent 60%);
	pointer-events: none;
	border-radius: inherit;
}

.d5-welcome-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

/* Meta ligne (dot + date) */
.educated-welcome-host .ew-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
}

/* Dot violet */
.educated-welcome-host .ew-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	background: var(--brand) !important;
}

.educated-welcome-host .ew-btn-row {
	margin-top: 4px;
}

/* Bouton CTA */
.educated-welcome-host .ew-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 8px 0 16px;
	border-radius: 11px;
	background: var(--gradient-brand) !important; /* ← violet→cyan */
	color: #fff;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.005em;
	box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--sh-brand);
	transition: 120ms;
}

	.educated-welcome-host .ew-btn:hover {
		background: var(--gradient-brand) !important;
		filter: brightness(1.08); /* ← effet hover sans changer le gradient */
		box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--sh-brand-h);
	}
.educated-welcome-host .ew-btn-count {
	background: rgba(255,255,255,.20);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Titre */
.d5-title {
	font: 700 26px/1.15 var(--font-display);
	letter-spacing: -0.025em;
	color: var(--ink-0);
	margin: 4px 0 0;
}

/* Nom en gradient Violet→Cyan */
.d5-name {
	background: var(--gradient-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.d5-sub {
	margin: 4px 0 0;
	color: var(--ink-2);
	font-size: 13.5px;
	max-width: 560px;
}

	.d5-sub b {
		color: var(--ink-0);
		font-weight: 600;
	}


/* ════════════════════════════════════════════════════════════════
   13. AGENDA CARD
   ════════════════════════════════════════════════════════════════ */
.d5-agenda-card {
	position: relative;
	background: var(--surface-1);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	box-shadow: var(--sh-1);
}

	.d5-agenda-card .d3-agenda {
		flex: 1;
	}

	.d5-agenda-card .d3-ag-row {
		padding: 7px 4px;
	}


/* ════════════════════════════════════════════════════════════════
   14. DEADLINES CARD
   ════════════════════════════════════════════════════════════════ */
.d5-deadlines {
	position: relative;
	background: var(--surface-1);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px 18px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	box-shadow: var(--sh-1);
}

.d5-dl-h {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

	.d5-dl-h .d3-link {
		appearance: none;
		border: 0;
		background: transparent;
		display: inline-flex;
		align-items: center;
		gap: 4px;
		font: inherit;
		font-size: 12px;
		color: var(--ink-2);
		cursor: default;
		padding: 2px 6px;
		border-radius: var(--radius);
	}

		.d5-dl-h .d3-link:hover {
			background: var(--surface-2);
			color: var(--ink-0);
		}

.d5-dl-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

	.d5-dl-list > li {
		display: grid;
		grid-template-columns: 44px 1fr auto;
		align-items: center;
		gap: 10px;
		padding: 10px 12px;
		background: var(--surface-1);
		min-width: 0;
	}

		.d5-dl-list > li:hover {
			background: var(--surface-2);
		}

.d5-dl-date {
	width: 44px;
	height: 46px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
	background: var(--surface-2);
	border: 1px solid var(--line-2);
}

	.d5-dl-date.tint-amber {
		background: var(--tint-amber-bg);
		border-color: color-mix(in srgb, var(--tint-amber-fg) 22%, transparent);
	}

	.d5-dl-date.tint-blue {
		background: var(--tint-blue-bg);
		border-color: color-mix(in srgb, var(--tint-blue-fg) 22%, transparent);
	}

	.d5-dl-date.tint-violet {
		background: var(--tint-violet-bg);
		border-color: color-mix(in srgb, var(--tint-violet-fg) 22%, transparent);
	}

.d5-dl-d {
	font: 700 18px/1 var(--font-display);
	color: var(--ink-0);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.d5-dl-date.tint-amber .d5-dl-d {
	color: var(--tint-amber-fg);
}

.d5-dl-date.tint-blue .d5-dl-d {
	color: var(--tint-blue-fg);
}

.d5-dl-date.tint-violet .d5-dl-d {
	color: var(--tint-violet-fg);
}

.d5-dl-m {
	font-size: 9.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-3);
	margin-top: 3px;
}

.d5-dl-date.tint-amber .d5-dl-m,
.d5-dl-date.tint-blue .d5-dl-m,
.d5-dl-date.tint-violet .d5-dl-m {
	color: currentColor;
	opacity: .78;
}

.d5-dl-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.d5-dl-title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-0);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: -.005em;
}

.d5-dl-meta {
	font-size: 11px;
	color: var(--ink-3);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* ════════════════════════════════════════════════════════════════
   15. DASHBOARD V5 — Layout
   ════════════════════════════════════════════════════════════════ */
.dashboard5 {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.d5-hero {
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: auto 1fr;
	align-items: stretch;
	gap: 14px;
}

.d5-welcome {
	grid-column: 1;
	grid-row: 1;
}

.d5-deadlines {
	grid-column: 1;
	grid-row: 2;
}

.d5-agenda-card {
	grid-column: 2;
	grid-row: 1 / span 2;
}


/* ════════════════════════════════════════════════════════════════
   16. TOP BAR V5
   ════════════════════════════════════════════════════════════════ */
.t5-top {
	height: 52px;
	flex: 0 0 52px;
	background: var(--surface-1);
	border-bottom: 1px solid var(--line);
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(360px,540px) minmax(0,1fr);
	align-items: center;
	padding: 0 16px;
	gap: 16px;
	position: relative;
	z-index: 6;
}

.t5-top-l {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.t5-top-c {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.t5-top-r {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-content: flex-end;
	min-width: 0;
}

.t5-top-sep {
	width: 1px;
	height: 24px;
	background: var(--line-2);
	flex: none;
}

.t5-crumbs {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	flex: 1;
	overflow: hidden;
}

.t5-crumb {
	font-size: 13px;
	color: var(--ink-1);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

	.t5-crumb.dim {
		color: var(--ink-3);
		font-weight: 400;
		flex: none;
	}

@media (max-width: 1180px) {
	.t5-crumb.dim {
		display: none;
	}
}

.t5-context {
	display: inline-flex;
	align-items: stretch;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0;
	margin-right: 4px;
	height: 36px;
	overflow: hidden;
}

	.t5-context:hover {
		background: var(--surface-3);
	}

.t5-context-sep {
	width: 1px;
	background: var(--line-2);
	flex: none;
}

.t5-school {
	appearance: none;
	border: 0;
	background: transparent;
	height: 100%;
	padding: 0 14px 0 5px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font: inherit;
	color: var(--ink-1);
	cursor: default;
}

	.t5-school:hover {
		background: rgba(0,0,0,.03);
	}

.t5-school-seal {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gradient-brand);
	color: #fff;
	font-weight: 700;
	font-size: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.t5-school-body {
	display: inline-flex;
	flex-direction: column;
	line-height: 1.1;
	text-align: left;
	gap: 1px;
}

	.t5-school-body b {
		font-size: 12.5px;
		color: var(--ink-0);
		font-weight: 600;
		letter-spacing: -.005em;
	}

	.t5-school-body span {
		font-size: 10.5px;
		color: var(--ink-3);
	}

.t5-year {
	appearance: none;
	border: 0;
	background: transparent;
	height: 100%;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	font-size: 12px;
	color: var(--ink-1);
	cursor: default;
	font-variant-numeric: tabular-nums;
}

	.t5-year:hover {
		background: rgba(0,0,0,.03);
	}

.t5-year-val {
	font-weight: 600;
	color: var(--ink-0);
}

.t5-avatar {
	margin-left: 6px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--gradient-brand);
	color: #fff;
	font-weight: 600;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-shadow: 0 0 0 2px var(--surface-1), 0 0 0 3px var(--brand-soft);
}


/* ════════════════════════════════════════════════════════════════
   17. RIBBON V5
   ════════════════════════════════════════════════════════════════ */
.r5 {
	background: var(--surface-1);
	border-bottom: 1px solid var(--line);
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	box-shadow: var(--sh-1);
}

.r5-tabs-row {
	height: 34px;
	display: flex;
	align-items: center;
	padding: 0 8px;
	gap: 4px;
	border-bottom: 1px solid var(--line);
}

.r5-tabs {
	display: inline-flex;
	gap: 2px;
	align-items: stretch;
	padding-left: 2px;
}

.r5-tab {
	appearance: none;
	border: 0;
	background: transparent;
	height: 34px;
	padding: 0 14px;
	font: inherit;
	font-size: 13px;
	color: var(--ink-2);
	cursor: default;
	position: relative;
	letter-spacing: -.003em;
}

	.r5-tab:hover {
		color: var(--ink-0);
	}

	.r5-tab.on {
		color: var(--brand);
		font-weight: 600;
	}

		.r5-tab.on::after {
			content: "";
			position: absolute;
			left: 14px;
			right: 14px;
			bottom: -1px;
			height: 2px;
			background: var(--brand);
			border-radius: 2px 2px 0 0;
		}

	.r5-tab.help {
		color: var(--ink-3);
		font-size: 12px;
	}

.r5-actions-row {
	height: 42px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	gap: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

	.r5-actions-row::-webkit-scrollbar {
		display: none;
	}

.r5-sep {
	width: 1px;
	height: 22px;
	background: var(--line-2);
	flex: none;
	margin: 0 6px;
}

.r5-act {
	appearance: none;
	border: 0;
	background: transparent;
	height: 30px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: var(--radius);
	font: inherit;
	font-size: 12.5px;
	color: var(--ink-1);
	cursor: default;
	white-space: nowrap;
	letter-spacing: -.003em;
	transition: 80ms;
}

	.r5-act:hover {
		background: var(--surface-2);
		color: var(--ink-0);
	}

	.r5-act.primary {
		background: var(--brand);
		color: #fff;
		font-weight: 600;
		padding: 0 12px;
		box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--sh-brand);
	}

		.r5-act.primary:hover {
			background: var(--brand-2);
			box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, var(--sh-brand-h);
		}

		.r5-act.primary svg, .r5-act.primary .r5-act-chev {
			color: #fff;
		}

		.r5-act.primary kbd {
			background: rgba(255,255,255,.18);
			color: #fff;
			border-color: rgba(255,255,255,.25);
		}

	.r5-act.danger {
		color: var(--danger);
	}

		.r5-act.danger:hover {
			background: var(--danger-soft);
		}

	.r5-act.disabled {
		color: var(--ink-4);
		cursor: not-allowed;
	}

		.r5-act.disabled:hover {
			background: transparent;
		}

	.r5-act.io {
		width: 30px;
		padding: 0;
		justify-content: center;
	}

.r5-act-chev {
	color: currentColor;
	opacity: 0.6;
	margin-left: -2px;
}

.r5-act kbd {
	margin-left: 2px;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--ink-3);
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	padding: 1px 5px;
	border-radius: 3px;
	line-height: 1;
}

.app.v5 .r4 {
	display: none;
}


/* ════════════════════════════════════════════════════════════════
   18. SIDEBAR V5
   ════════════════════════════════════════════════════════════════ */
.s5 {
	width: var(--side-w);
	flex: none;
	background: var(--surface-1);
	border-right: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	transition: width 160ms ease;
}

	.s5.col {
		width: var(--side-w-c);
	}

.s5-find {
	margin: 10px 10px 4px;
	height: 32px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

	.s5-find:focus-within {
		border-color: var(--brand);
		background: var(--surface-1);
		box-shadow: 0 0 0 3px var(--brand-soft);
	}

	.s5-find input {
		flex: 1;
		min-width: 0;
		border: 0;
		outline: 0;
		background: transparent;
		font: inherit;
		font-size: 12px;
		color: var(--ink-1);
	}

		.s5-find input::placeholder {
			color: var(--ink-3);
		}

	.s5-find button {
		appearance: none;
		border: 0;
		background: transparent;
		color: var(--ink-3);
		cursor: default;
		padding: 2px;
		display: inline-flex;
	}

.s5-body {
	flex: 1;
	overflow-y: auto;
	padding: 6px 8px 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-3) transparent;
}

	.s5-body::-webkit-scrollbar {
		width: 6px;
	}

	.s5-body::-webkit-scrollbar-thumb {
		background: var(--line-3);
		border-radius: 3px;
	}

.s5-section {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-3);
	padding: 6px 8px 4px;
}

.s5-foot {
	padding: 8px;
	border-top: 1px solid var(--line);
}

.s5.col .s5-find, .s5.col .s5-section {
	display: none;
}

.s5.col .s3-lbl, .s5.col .s3-count, .s5.col .s3-warn, .s5.col .s3-twist, .s5.col .s3-bullet, .s5.col .s3-live {
	display: none;
}

.s5.col .s3-item {
	justify-content: center;
	padding: 0;
}

.s5.col .s5-foot {
	display: flex;
	justify-content: center;
}

	.s5.col .s5-foot .s3-foot-body {
		display: none;
	}


/* ════════════════════════════════════════════════════════════════
   19. QUICK ACTIONS
   ════════════════════════════════════════════════════════════════ */
.qa {
	position: relative;
}

.qa-trig {
	appearance: none;
	border: 1px solid var(--line);
	background: var(--surface-1);
	height: 38px;
	padding: 0 6px 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-0);
	cursor: default;
	letter-spacing: -.005em;
	box-shadow: var(--sh-1);
	transition: 120ms;
}

	.qa-trig:hover {
		border-color: var(--line-3);
		box-shadow: var(--sh-2);
	}

	.qa-trig.open {
		border-color: var(--brand);
		box-shadow: 0 0 0 3px var(--brand-soft);
	}

	.qa-trig svg:first-child {
		color: var(--brand);
	}

.qa-count {
	background: var(--brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.qa-chev {
	color: var(--ink-3);
}

.qa-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	background: var(--surface-1);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: 0 16px 40px -16px rgba(16,20,43,.25), 0 4px 12px rgba(16,20,43,.06);
	width: 360px;
	z-index: 20;
	overflow: hidden;
	animation: qa-in 160ms cubic-bezier(.4,0,.2,1);
}

@keyframes qa-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.qa-sec {
	border-bottom: 1px solid var(--line);
	padding: 6px 4px 8px;
}

	.qa-sec:last-of-type {
		border-bottom: 0;
	}

.qa-sec-h {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	font-weight: 600;
	padding: 6px 12px;
}

.qa-item {
	appearance: none;
	border: 0;
	background: transparent;
	width: 100%;
	padding: 8px 12px;
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 10px;
	align-items: center;
	font: inherit;
	color: var(--ink-1);
	cursor: default;
	text-align: left;
	border-radius: var(--radius);
}

	.qa-item:hover {
		background: var(--brand-soft);
		color: var(--ink-0);
	}

.qa-ico {
	width: 24px;
	height: 24px;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

	.qa-ico.tint-violet {
		background: var(--tint-violet-bg);
		color: var(--tint-violet-fg);
	}

	.qa-ico.tint-blue {
		background: var(--tint-blue-bg);
		color: var(--tint-blue-fg);
	}

	.qa-ico.tint-teal {
		background: var(--tint-teal-bg);
		color: var(--tint-teal-fg);
	}

	.qa-ico.tint-amber {
		background: var(--tint-amber-bg);
		color: var(--tint-amber-fg);
	}

	.qa-ico.tint-rose {
		background: var(--tint-rose-bg);
		color: var(--tint-rose-fg);
	}

.qa-body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

	.qa-body > span:first-child {
		font-size: 12.5px;
		font-weight: 500;
		color: var(--ink-0);
	}

.qa-meta {
	font-size: 11px;
	color: var(--ink-3);
}

.qa-kbd kbd {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--ink-3);
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	padding: 2px 6px;
	border-radius: 4px;
	line-height: 1;
}

.qa-foot {
	padding: 8px 14px;
	border-top: 1px solid var(--line);
	background: var(--surface-2);
	display: flex;
	align-items: center;
	justify-content: space-between;
}


/* ════════════════════════════════════════════════════════════════
   20. KPI FLAT
   ════════════════════════════════════════════════════════════════ */
.d5-kpis {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
}

.k5 {
	appearance: none;
	background: var(--surface-1);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font: inherit;
	color: var(--ink-1);
	cursor: default;
	text-align: left;
	transition: 120ms;
}

	.k5:hover {
		border-color: var(--line-3);
		background: var(--surface-2);
	}

.k5-h {
	display: flex;
	align-items: center;
	gap: 8px;
}

.k5-ico {
	width: 24px;
	height: 24px;
	border-radius: var(--radius);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.k5.tint-violet .k5-ico {
	background: var(--tint-violet-bg);
	color: var(--tint-violet-fg);
}

.k5.tint-blue .k5-ico {
	background: var(--tint-blue-bg);
	color: var(--tint-blue-fg);
}

.k5.tint-amber .k5-ico {
	background: var(--tint-amber-bg);
	color: var(--tint-amber-fg);
}

.k5.tint-rose .k5-ico {
	background: var(--tint-rose-bg);
	color: var(--tint-rose-fg);
}

.k5.tint-teal .k5-ico {
	background: var(--tint-teal-bg);
	color: var(--tint-teal-fg);
}

.k5-l {
	font-size: 11.5px;
	color: var(--ink-2);
	font-weight: 500;
}

.k5-v {
	font: 700 26px/1.05 var(--font-display);
	letter-spacing: -0.025em;
	color: var(--ink-0);
	font-variant-numeric: tabular-nums;
}

.k5-suf {
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-3);
	margin-left: 4px;
}

.k5-d {
	font-size: 11.5px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.k5-d-dot {
	width: 5px;
	height: 5px;
	border-radius: 5px;
	background: currentColor;
}

.k5-d.t-ok {
	color: var(--success);
}

.k5-d.t-warn {
	color: var(--warning);
}

.k5-d.t-danger {
	color: var(--danger);
}

.k5-d.t-info {
	color: var(--info);
}


/* ════════════════════════════════════════════════════════════════
   21. SHORTCUTS V5
   ════════════════════════════════════════════════════════════════ */
.d5-mid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 12px;
}

.d5-shortcuts {
	background: var(--surface-1);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 16px 18px;
}

.d5-sc-h {
	margin-bottom: 12px;
}

.d5-sc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.sc5 {
	appearance: none;
	border: 0;
	background: var(--surface-1);
	padding: 12px 14px;
	display: grid;
	grid-template-columns: 28px 1fr 12px;
	align-items: center;
	gap: 12px;
	font: inherit;
	color: var(--ink-1);
	cursor: default;
	text-align: left;
	transition: 80ms;
}

	.sc5:hover {
		background: var(--surface-2);
	}

.sc5-ico {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sc5.tint-violet .sc5-ico {
	background: var(--tint-violet-bg);
	color: var(--tint-violet-fg);
}

.sc5.tint-blue .sc5-ico {
	background: var(--tint-blue-bg);
	color: var(--tint-blue-fg);
}

.sc5.tint-amber .sc5-ico {
	background: var(--tint-amber-bg);
	color: var(--tint-amber-fg);
}

.sc5.tint-teal .sc5-ico {
	background: var(--tint-teal-bg);
	color: var(--tint-teal-fg);
}

.sc5.tint-rose .sc5-ico {
	background: var(--tint-rose-bg);
	color: var(--tint-rose-fg);
}

.sc5.tint-slate .sc5-ico {
	background: var(--tint-slate-bg);
	color: var(--tint-slate-fg);
}

.sc5.tint-indigo .sc5-ico {
	background: var(--tint-indigo-bg);
	color: var(--tint-indigo-fg);
}

.sc5-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sc5-top {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sc5-label {
	font-size: 12px;
	color: var(--ink-2);
	font-weight: 500;
}

.sc5-live {
	width: 6px;
	height: 6px;
	border-radius: 6px;
	background: var(--danger);
	animation: pulse3 1.6s infinite;
}

.sc5-stat {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.sc5-v {
	font: 700 18px/1.1 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--ink-0);
	font-variant-numeric: tabular-nums;
}

.sc5-sub {
	font-size: 11.5px;
	color: var(--ink-3);
}

.sc5-arrow {
	color: var(--ink-4);
	transition: 120ms;
}

.sc5:hover .sc5-arrow {
	color: var(--brand);
	transform: translateX(2px);
}

.app.v5 .d3-hero, .app.v5 .d3-kpis, .app.v5 .d3-shortcuts {
	display: none;
}


/* ════════════════════════════════════════════════════════════════
   22. CUSTOM ITEM — Cue
   ════════════════════════════════════════════════════════════════ */
.dx-dashboard-item-container:has(.educated-cue-host),
.dx-dashboard-item:has(.educated-cue-host),
.dx-dashboard-item-content:has(.educated-cue-host) {
	height: auto !important;
}

.dx-dashboard-item-content:has(.educated-cue-host) {
	padding: 0;
}


/* ════════════════════════════════════════════════════════════════
   23. RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
	.d5-kpis {
		grid-template-columns: repeat(3, 1fr);
	}

	.d5-sc-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1180px) {
	.d5-hero {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
	}

	.d5-welcome {
		grid-column: 1;
		grid-row: 1;
	}

	.d5-deadlines {
		grid-column: 1;
		grid-row: 2;
	}

	.d5-agenda-card {
		grid-column: 1;
		grid-row: 3;
	}
}

@media (max-width: 1100px) {
	.d5-kpis {
		grid-template-columns: repeat(2, 1fr);
	}

	.d5-sc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.d5-mid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 800px) {
	.d5-kpis {
		grid-template-columns: 1fr 1fr;
	}

	.d5-sc-grid {
		grid-template-columns: 1fr;
	}
}
