.page-recommendation-letter .rec-top-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.page-recommendation-letter .nd-chart-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.rec-template-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.rec-template-pill {
	border: 1px solid var(--border-color-light, rgba(255, 255, 255, 0.12));
	background: transparent;
	color: var(--default-color);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
}

.rec-template-pill.is-active {
	background: rgba(32, 139, 244, 0.16);
	border-color: var(--accent-color, #208bf4);
	color: var(--heading-color, #fff);
}

.rec-preview-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.rec-complete {
	display: flex;
	gap: 0.4rem;
	align-items: baseline;
	font-size: 0.82rem;
}

.rec-preview-stage {
	background: #edf0f4;
	border-radius: 16px;
	padding: 1rem;
	overflow: auto;
}

.rec-sheet {
	--rec-ink: #1b2430;
	--rec-muted: #5b6673;
	--rec-line: #d8dee6;
	width: 210mm;
	min-height: 297mm;
	margin: 0 auto;
	background: #fff;
	color: var(--rec-ink);
	box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.rec-empty {
	padding: 28mm 20mm;
	color: var(--rec-muted);
	font-size: 0.95rem;
}

.rec-sheet h1 {
	margin: 0;
	font-size: 1.7rem;
	line-height: 1.15;
	color: var(--rec-ink);
}

.rec-role {
	margin-top: 0.25rem;
	color: var(--rec-accent);
	font-weight: 700;
}

.rec-meta,
.rec-date,
.rec-recipient {
	color: var(--rec-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

.rec-subject {
	margin: 0.85rem 0;
	font-weight: 700;
	color: var(--rec-accent);
}

.rec-greeting {
	margin: 1rem 0 0.75rem;
	font-weight: 600;
}

.rec-copy p {
	margin: 0 0 0.85rem;
	line-height: 1.55;
	font-size: 0.95rem;
}

.rec-sign {
	margin-top: 1.4rem;
	line-height: 1.5;
}

.rec-sheet.theme-classic {
	padding: 18mm 18mm 20mm;
	font-family: "Times New Roman", Times, serif;
}

.rec-classic-head {
	text-align: center;
	padding-bottom: 0.9rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--rec-accent);
}

.rec-classic-head h1 {
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rec-classic-meta {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 0.4rem;
}

.rec-sheet.theme-modern {
	padding: 0 0 18mm;
	font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

.rec-modern-bar {
	height: 10px;
	background: var(--rec-accent);
}

.rec-modern-body {
	padding: 14mm 16mm 0;
}

.rec-modern-top {
	display: flex;
	justify-content: space-between;
	gap: 1.25rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--rec-line);
}

.rec-modern-right {
	text-align: right;
	min-width: 38%;
}

.rec-sheet.theme-compact {
	padding: 16mm 16mm 18mm;
	font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

.rec-compact-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--rec-accent);
}

.rec-compact-head strong {
	display: block;
	font-size: 1.15rem;
}

.rec-compact-head span {
	display: block;
	margin-top: 0.15rem;
	color: var(--rec-accent);
	font-size: 0.86rem;
	font-weight: 700;
}

.rec-sheet.theme-compact .rec-meta,
.rec-sheet.theme-compact .rec-recipient,
.rec-sheet.theme-compact .rec-copy p {
	font-size: 0.88rem;
}

@media (min-width: 1200px) {
	.rec-preview-col {
		position: sticky;
		top: 88px;
		align-self: flex-start;
		max-height: calc(100vh - 110px);
		overflow: auto;
	}
}

@media (max-width: 767.98px) {
	.page-recommendation-letter .rec-top-actions {
		justify-content: flex-start;
	}
}

@media print {
	@page {
		size: A4;
		margin: 0;
	}

	html,
	body {
		background: #fff !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.sidebar,
	.header,
	.footer,
	.back-to-top,
	.sidebar-overlay,
	.rec-editor,
	.rec-help,
	.nd-topbar,
	.rec-preview-toolbar,
	.rec-top-actions {
		display: none !important;
	}

	.main,
	.main-content,
	.nd-dashboard,
	.rec-workspace,
	.rec-preview-col,
	.rec-preview-stage,
	.page-recommendation-letter {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
		background: #fff !important;
		box-shadow: none !important;
		position: static !important;
		max-height: none !important;
	}

	.rec-sheet,
	.rec-modern-bar {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.rec-sheet {
		box-shadow: none !important;
		margin: 0 auto !important;
		width: 210mm !important;
		min-height: 297mm !important;
	}
}
