/* Druckansicht Zeitverlauf (timecourse.cgi), eingebunden in _header.tmpl mit media="print"
 *
 * - gedruckt wird .tc-print-only (auch bei Strg+P)
 * - Querformat, je .tc-print-part eine Seite
 * - zu hohe Tabellen: Browser wiederholt thead
 * - von der Kopfzeile nur das Logo
 */

@page {
	size: A4 landscape;
	margin: 1cm;
}

/* sonst keine Hintergrundfarben */
body {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.sidebar,
.sidebar-catcher,
.topbar-btn-menu,
.topbar-right,
.topbar-demo-note,
.topbar-title,
.topscroll,
.topscroll.is-visible,
.site-footer,
.tc-actions {
	display: none;
}

.topbar-outer,
.topbar-outer.topbar-demo {
	--topbar-fg: var(--color-base-content);
	position: static;
	height: auto;
	margin-bottom: 1rem;
	border-bottom-color: var(--color-base-300);
	background-color: transparent;
	color: var(--color-base-content);
}

.topbar {
	padding: 0;
}

.sidebar-toggle ~ *:not(.sidebar):not(.sidebar-catcher):not(.topscroll):not(.topbar-outer):not(.site-footer):not(dialog),
.sidebar-toggle:checked ~ *:not(.sidebar):not(.sidebar-catcher):not(.topscroll):not(.topbar-outer):not(.site-footer):not(dialog) {
	margin-left: 0;
}

.centering-content {
	padding: 0;
}

/* volle Länge, kein Scrollkasten */
.tc-scroll {
	max-height: none;
	overflow: visible;
}

.tc-table thead th,
.tc-table .tc-col-term {
	position: static;
}

/* 7 Datumsspalten pro Seite */
.tc-table {
	font-size: var(--text-sm);
}

.tc-table th,
.tc-table td {
	padding: 0.25rem 0.375rem;
}

.tc-table .tc-col-date {
	width: 4.75rem;
	min-width: 4.75rem;
}

.tc-term {
	max-width: 15rem;
}

/* volle Zellbreite: sonst berechnet Firefox die Zeilenhöhe zu klein */
.tc-mods-list {
	width: 100%;
	max-width: none;
}

/* Plus/Minus ohne Funktion */
.tc-mods .tc-mods-closed,
.tc-mods[open] .tc-mods-opened {
	display: none;
}

.tc-screen-only {
	display: none;
}

.tc-print-only {
	display: block;
}

.tc-print-part + .tc-print-part {
	break-before: page;
}

.tc-print-head {
	margin-bottom: 1rem;
}

.tc-print-title {
	margin: 0 0 0.75rem;
	font-size: var(--text-xl);
}

.tc-print-group {
	margin: 0 0 0.375rem;
	font-size: var(--text-base);
}

/* Abstand zu Angaben zur Person */
.tc-print-meta {
	margin-bottom: 0.75rem;
}

.tc-part {
	margin: 0 0 0.5rem;
	font-size: var(--text-lg);
}

.tc-table tr,
.tc-legend {
	break-inside: avoid;
}
