/**
 * BetterDocs print + Figma Make blocks (standalone).
 */

.figma-make-app-root.fmb-print-ready,
.figma-make-app-root.fmb-print-ready * {
	animation: none !important;
	transition: none !important;
}

.figma-make-app-root.fmb-print-ready * {
	visibility: visible !important;
}

.figma-make-app-root.fmb-print-ready .fmb-print-unhide {
	opacity: 1 !important;
	transform: none !important;
}

.figma-make-app-root.fmb-print-ready svg path, 
.figma-make-app-root.fmb-print-ready svg line,
.figma-make-app-root.fmb-print-ready svg polyline {
	stroke-dashoffset: 0 !important;
}

.fmb-print-keep {
	break-inside: avoid;
	page-break-inside: avoid;
}

@media print {
	@page {
		margin: 0.75cm;
	}

	#new-doc-print {
		margin: 0;
		padding: 0 0 0.5rem;
	}

	#new-doc-print .figma-make-app-wrapper,
	#new-doc-print .figma-make-app-root {
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#new-doc-print .figma-make-app-root > div {
		gap: 20px !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
		min-height: 0 !important;
		height: auto !important;
	}

	#new-doc-print .fmb-print-keep,
	#new-doc-print .figma-make-app-root figure,
	#new-doc-print .figma-make-app-root table,
	#new-doc-print .figma-make-app-root section > figure,
	#new-doc-print .figma-make-app-root section > div[style*="border"] {
		break-inside: avoid !important;
		page-break-inside: avoid !important;
	}

	#new-doc-print .figma-make-app-root section {
		break-inside: auto;
		page-break-inside: auto;
	}

	#new-doc-print .figma-make-app-root h2,
	#new-doc-print .figma-make-app-root h3 {
		break-after: avoid;
		page-break-after: avoid;
	}

	#new-doc-print .figma-make-app-root,
	#new-doc-print .figma-make-app-root * {
		print-color-adjust: exact !important;
		-webkit-print-color-adjust: exact !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		animation-delay: -99s !important;
		animation-duration: 0.001s !important;
		animation-iteration-count: 1 !important;
		animation-fill-mode: both !important;
		animation-play-state: running !important;
		transition-duration: 0s !important;
	}

	#new-doc-print .figma-make-app-root [data-strip] {
		overflow: visible !important;
		flex-wrap: wrap !important;
		max-width: 100% !important;
	}

	#new-doc-print .figma-make-app-root [data-watermark] {
		display: none !important;
	}
}
