/* ==========================================================================
   BDcrafty Print Styles
   ========================================================================== */

@media print {

	*,
	*::before,
	*::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
	}

	/* Hide non-essential elements */
	.bdcrafty-site-header,
	.bdcrafty-site-footer,
	.bdcrafty-sidebar,
	.bdcrafty-post-nav,
	.bdcrafty-related-posts,
	.bdcrafty-comments-area,
	.bdcrafty-pagination,
	.bdcrafty-hero__search,
	.bdcrafty-categories-section,
	.bdcrafty-newsletter-section,
	.bdcrafty-about-section,
	.bdcrafty-tools-section,
	nav,
	.skip-link,
	.bdcrafty-tool__actions,
	.bdc-remove-row,
	.bdc-remove-item,
	.bdcrafty-tool-page__back,
	#bdc-add-row,
	#bdc-add-material,
	#bdc-add-task,
	.edit-link {
		display: none !important;
	}

	/* Make page use full width */
	.bdcrafty-content-wrap {
		display: block !important;
	}

	.content-area {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Links */
	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #666 !important;
	}

	a[href^="#"]::after,
	a[href^="javascript:"]::after {
		content: "";
	}

	/* Images */
	img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	/* Headings */
	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
	}

	/* Tables */
	table {
		border-collapse: collapse !important;
	}

	th,
	td {
		border: 1px solid #ccc !important;
		padding: 4pt 8pt !important;
	}

	/* Tool-specific print */
	.bdcrafty-tool {
		border: 1px solid #ccc !important;
	}

	.bdcrafty-tool__controls {
		border-bottom: 1px solid #ccc !important;
	}

	.bdcrafty-cost-row--total {
		background: #eee !important;
		font-weight: bold;
	}

	.bdcrafty-measure-result {
		background: #eee !important;
		border: 1px solid #ccc !important;
	}

	.bdcrafty-measure-result__value {
		font-size: 1.5rem !important;
	}

	/* Planner print */
	.bdc-checklist-item input[type="checkbox"] {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	/* Page breaks */
	.bdcrafty-planner__section {
		page-break-inside: avoid;
	}

	/* Post hero image */
	.bdcrafty-post-hero {
		max-width: 100%;
		page-break-inside: avoid;
	}
}
