/* ID:6200 */
@charset "utf-8";
:root{
	--textcolor:black !important;
}

@page{
	margin: 1cm;
	size:auto;
	/*deaktiviert kopf/Fußzeile des Browsers*/
	@top-right{
		content: " ";
	}
	@top-left{
		content: " ";
	}
	@bottom-left{
		content: " ";
	}
	@bottom-right {
    content: " ";
  }
}

html{
	background: none;
	color: var(--textcolor);
	height: auto !important;
	width: auto !important;
	body{
		-webkit-print-color-adjust: exact !important;
		font-size: 10pt;
		max-width:none;
		min-height:auto;
		overflow-x:hidden !important;
		padding:0;
		position: relative;
	}
}

#nav,
nav,
#text-nav,
#text-nav-sub,
#sidebar,
#bereich-nav,
.noprint,
.teaser-hg,
.teaser-li,
table.filter,
table.toolDetails,
button,
input[type="submit"],
input[type="button"],
table tbody tr.header, /*repeating header inside a table*/
div.ui-multiselect-menu,
div.stickBottom,
form#filter
{
	display: none !important;
}
input{
	&[type="checkbox"],
	&[type="radio"]{
		min-height: unset;
	}
	&{
		border:none;
		min-width:unset !important;
		width:unset !important;
	}
}
/*exception for ui-spinner, which encapsulates*/
.ui-spinner {
	display: inline-block !important;
}

b, strong{

	font-weight: bold;
}

#main,
main#content.qmTools{
	display:block;
	max-height: none !important;
	min-height: unset!important;
	visibility: visible !important;
}

header#kopf{
	background: white;
	border:none;
	height:auto;
	min-height: 4ex;
	padding-bottom: 0;
	width:100%;

	div.flexRow{
		display:block;
	}

	#logo,
	div.user{
		/*img{
			max-height: 2rem;
			width: auto !important;
		}*/
		display:none;
	}

	#hauptbild{
		color:darkgrey;
		background:none!important;
		height:auto;
		padding:0;
		h1,h2 {
			color: black;
			font-size:1.4rem;
			max-width:none;
			padding-left:0;
			padding-top:0;
			position: static;
			text-overflow: ellipsis;
			white-space: normal;
			span{
				height: unset;
				overflow: visible;
			}
		}
		display:block;
		img{
			display:none;
		}
		&::before{
			display:none;
		}
	}
}
.print {
	display: inline;
}

tr.print{
	display: table-row;
}
td.print{
	display: table-cell;
}
div.print{
	display:block;
}
table.print{
	display: inline-table;
}

article{
	break-inside: avoid-page;
	padding-top: 0;
	position: relative !important;
	width:100%;
	&.printBreak{
		break-inside: auto;
	}

	&:has(fieldset){
		break-inside: auto;
	}

	fieldset{
		break-inside: avoid-page;
	}

	h3,
	h4,
	.spalte-50,
	.spalte-33{
		break-after: avoid-page;
	}
	table,
	p,
	div{
		break-after: auto;
	}
	&.printOneColMode{
		break-inside: auto;
		div.spalte-line{
			display: block;
		}
		.spalte-50,
		.spalte-33{
			break-after: auto;
			break-inside: avoid-page;
			width:100%;
		}
	}
	h3,
	h4{
		color: black!important;
		font-size: 1rem;
	}
}

.page-break{
	break-after: page;
}
.page-break:last-of-type{
	break-after: avoid-page;
}

body.qmTools article{
	break-inside: auto;
}

main#content {
	background: white;
	display:block;
	flex-basis: unset;
	flex-direction: unset;
	flex-grow: unset;
	flex-shrink: unset;
	line-height:1.6em;
	margin-left: 0em;
	margin-right: 0em;
	max-height: 100%;
	min-width: unset;/*30em;*/
	padding-left: 0;
	padding-top:0;
	width:100%;
	h2{
		color: var(--textcolor);
		font-size: 1.7em;
	}
	ul.ui-tabs-nav{
		display:none;
	}
	.ui-widget-content{
		color: var(--textcolor);
		display:block!important;
	}
	table.small {
		border-width:1px;
		border-style:solid;
		td {
			border-style:solid;
			border-width:1px;
			font-size: 8pt;
			vertical-align:top;
		}

		th {
			border-style:solid;
			border-width:1px;
			font-size: 8pt;
			vertical-align:top;
		}
	}

	thead tr td,
	tr.header td,
	thead tr th,
	tr.header th,
	thead tr a,
	tr.header a{
		background-color: grey!important;
		background-image: none;
		color:white;

	}
	table{
		max-width: 100%;
		&.Tabelle_Trenner thead th:before,
			&.Tabelle_Trenner thead td:before,
			&.Tabelle_Trenner tbody td:before {
			display: none;
		}
		tbody td, thead th{
			padding: .2ex 1ex;
		}
		tbody.ui-widget-content{
			display: table-row-group!important;
		}

	}
	/*accordions will be opened*/
	details{
		summary{
			background:none !important;
			margin-top: 4ex;
			padding:0;
			list-style: none;
			&::-webkit-details-marker,
			i{
				display: none;
			}
		}
	}
}

table.kachel{
	tr{
		box-shadow: none;
	}
}

#schluss,
#schluss div{
	/*footer ausblenden*/
	display: none;
	padding-top: 0;
}

/*Tool-specific*/
table.innertable td {
	border-width:0;
}

table,
td,
th{
	border: 1px solid black;
	border-collapse: collapse;
	white-space: normal;
}
table.Tabelle_Trenner tbody tr:last-of-type td {
	border: 1px solid black;
}

table.plain td{
	border: none!important;
}

div.gefahr {
	background-color:white;
	color:black;
	text-decoration: underline;
}


div.tablesorter-header-inner:after {
	display:none;
	/*remove sort icons*/
}

/* scrollhinweis entfernen*/
div.tableWrapper{
	display:contents;
	/*remove from dom*/
}
table caption{
	background: none;
}
div.print-content{
	min-height: 2em;
}
/* Beim Druck von QR Header + footer ausblenden*/
.PRINT_QR{
	/*main: siehe Ticket 1742
	 Margin stört bei P-touch*/
	main#content{
		article.accordion{
			/*andere article aus, hier stehen u.a. Beschreibungen drin*/
			display: none;
		}
		.ersteller{
			display: none;
		}
	}
	/* QR Code Druck*/
	#qrCodes{
		display: inline;
	}
	article{
		margin: 0;
	}
	header#kopf{
		display: none;
	}
	.qrPrintEntity{
		break-inside: avoid;
		/* Ganzseitiges Layout (p-touch)*/
		&[format~="fillPage"]{
			border: none;
			font-size: 6pt;
			height: 100vh;
			.qrSVG{
				height: 100vw;
				max-height: 100vh;
				max-width: 100vw;
				width: 100vh;
				svg{
					/*padding verringern, um besser scanbar zu machen*/
					padding: 1px!important;
				}
			}
			&[format~="1perPage"]{
				width: 100vw;
			}
			&[format~="2perPage"]{
				width: 49vw;
			}
			&[format~="3perPage"]{
				width: 33vw;
			}
			/* Vertikaler Modus*/
			&.column{
				width: 100vw;
				.qrSpan{
					/* Wegen Rand sonst oben abgeschnitten */
					padding-top: 9px;
				}
				&[format~="1perPage"]{
					height: 100vh;
					.qrSVG{
						height: auto;
					}
				}
				&[format~="2perPage"]{
					height: 49vh;
					.qrSVG{
						height: auto;
					}
				}
				&[format~="3perPage"]{
					height: 33vh;
					.qrSVG{
						height: auto;
					}
				}
			}
		}
	}
}

body:has(dialog[open]) {
	div#main,
	header#kopf{
		display:none;
	}
}
/* Dialoge vollflächig drucken*/
dialog[open]{
	display: contents;
	height: 100% !important;
	position: relative;
	width: 100% !important;

	main{
		display: contents !important;
	}
	header,
	footer{
		display: none;
	}
	&::backdrop{
		display:none;
	}
}
