/**
 * Print Styles for Duj-Si Theme
 */

/* A4 Landscape Print Format */
@page {
	size: A4 landscape;
	margin: 2cm;
}

/* Base print styles */
@media print {
	/* Hide navigation and footer */
	.site-navigation,
	footer,
	.footer {
		display: none !important;
	}

	/* Hide categories sidebar */
	.ae-categories-sidebar {
		display: none !important;
	}

	/* Hide toolbar chunks unless they contain title */
	.fc-toolbar-chunk:not(:has(.fc-toolbar-title)) {
		display: none !important;
	}

	/* Make calendar smaller for single page printing */
	.fc {
		font-size: 0.85em;
	}

	.fc .fc-button-primary {
		padding: 0.25rem 0.5rem;
		font-size: 0.9em;
	}

	.fc .fc-daygrid-day {
		height: auto;
	}

	.fc .fc-daygrid-day-frame {
		min-height: 60px;
	}

	.fc .fc-event {
		padding: 2px 4px;
		font-size: 0.85em;
	}

	.fc .fc-col-header-cell {
		padding: 6px 2px;
		font-size: 0.9em;
	}

	.fc .fc-toolbar {
		gap: 0.5rem;
		margin-bottom: 0.5rem;
	}

	/* Set fixed width for all tables */
	table {
		width: 18cm !important;
	}

	.fc table {
		font-size: 0.85em;
		width: 18cm !important;
	}

	.fc .fc-timegrid-slot {
		height: 1em;
	}

	/* Position logo in top right corner */
	.logo-area {
		position: absolute;
		top: 0;
		right: 0;
		margin: 0 0 10px 0 !important;
		padding: 0 !important;
	}

	.logo-area .logo-image {
		max-width: 80px;
		height: auto;
		margin: 0 0 10px 10px !important;
		padding: 20px !important;
	}

	/* Hide calendar toolbar title */
	.fc-toolbar-title {
		display: none !important;
	}

	/* Add relative positioning to body to contain absolute positioned logo */
	body {
		position: relative;
	}

	/* Body styling for print */
	body {
		background: white;
		color: black;
		font-size: 12pt;
		line-height: 1.5;
	}

	/* Ensure text is readable */
	p, li, td, th, span, div {
		color: black;
		background: white;
	}

	/* Links should be visible */
	a {
		color: #000;
		text-decoration: underline;
	}

	/* Avoid page breaks in content */
	article, section, div.content {
		page-break-inside: avoid;
	}

	/* Allow page breaks for major elements */
	h1, h2, h3 {
		page-break-after: avoid;
	}

	/* Print button should be hidden */
	.orion-print-button-wrapper,
	.orion-print-button {
		display: none !important;
	}

	/* Hide all box shadows */
	* {
		box-shadow: none !important;
	}

	.site-header {
		display: none;
	}

	.orion-container {
		width: 100%!important;
	}
}
