@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://octopus.systopic.synology.me/css/variables.css');
html {
	font-size: 18px;
}


* {
	font-family: Inter;
	font-weight: 300;
}

body {
	font-size: .875rem;
	padding-right:10px;
}

body:not(.elephant) {
	background: var(--bg-color);
	padding:0;
}

header{
padding: 0 10px;
position: absolute;
    top: -20px;
    left: auto;
    right: 0;
		border:none;
		background:none;
}

.button.submit{
	background-color: var(--hightlight);
}

.button{
	font-weight: 400;
font-size: 16px;
text-align: center;
padding: 0.25rem 1rem;
line-height: 1;
border-radius: var(--border-radius);
color: #fff;
height: 28px;

}

.button i{
	padding-top:3px;
	color: #fff;
	opacity: 1;
}

i[data-value="1"],
[data-value="1"] i,
i[data-value="1"] i {
	color: var(--hightlight);
	opacity: 1;
}

i {
	color: gray;
	opacity: 0.5;
}

div.funcs.all i {
	color: gray;
	opacity: 1;
}

div.funcs.all i[data-value="1"] {
	color: var(--hightlight);
	opacity: 0.5;
}

hr {
	border-bottom: 1px solid var(--hightlight);
}

input[type='email'],
input[type='text'],
input[type='password'],
input[type='time'],
input[type='date'],
input[type='number'],
input[type='search'],
textarea,
select {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--text-color);
	background-color: var(--bg-color);
	background-clip: padding-box;
	border: none;
	border-radius: var(--border-radius);
	box-shadow: none;
	transition: none;
	margin-bottom: 1rem;
}

body div.selectors input,
body div.selectors select{
	margin: 0 10px 10px 0;
}

body div.selectors input{
	padding:0.375rem 0.75rem;
}


::placeholder {
	color: var(--text-color);
	opacity: 1;
}

input[type='date']::-webkit-calendar-picker-indicator,
input[type='time']::-webkit-calendar-picker-indicator {
	filter: invert();
}


select {
	background-image: none;
	appearance: auto;
	margin: 0;
}

button {
	display: inline-block;
	font-weight: 400;
	font-size: 16px;
	color: var(--text-color);
	text-align: center;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	padding: 0.25rem 1rem;
	line-height: 1;
	border-radius: var(--border-radius);
	transition: none;
	background-color: var(--primary);
	box-shadow: none;
	border: none;
	color: #fff;
	height: 28px;
}

.dropdown input{
	background: rgba(0,0,0,0.2);
	padding:3px;
	border-radius: 0;
	font-size: 12px;
	color:#fff;
	width:100% !important;
	border-radius: var(--border-radius);
	border:none;
	margin-bottom: 5px;
}
table.dropdown{
	overflow:hidden;
}
table.dropdown tr.selected,
table.dropdown tr:hover{
	background: rgba(85, 85, 85, 0.3) !important;
}

div.funcs table.dropdown a,
div.funcs table.dropdown i{
	color:#fff;
}

object.rutanlogo {
	position: absolute;
	top: 15mm;
	left: -5mm;
	height: 10mm;
	width: 40mm;
	transform: rotate(90deg);
	transform-origin: top left;
}


div.paper {
	width: 210mm;
	padding: 15mm 5mm 10mm 20mm;
	display: flex;
	flex-direction: column;
	min-height: 297mm;
	transform-origin: 0 0;
	transform: scale(1.4);
}

table {
	width: 100%;
}


div.selectors {
	padding: 10px 10px 0 10px;
	border: none;
	margin: 0;
	background: var(--widget-bg-color);
	border-right: var(--border-radius);
}

a{
	color:var(--hightlight);
}

div.selectors hr {
	height: 10px;
	margin:0;
	background: var(--bg-color);
	border-top: 10px solid var(--widget-bg-color);
	border-bottom: 10px solid var(--widget-bg-color);
}

footer{
	font-size: 7.5pt;
	white-space: nowrap;
	color:rgba(0,0,0,.5);
	padding-top:10mm;
	margin-bottom: -5mm;
	margin-top:auto;
}

tr.Teilschritt td{

}

table.dropdown{
	border:none;
	border-radius: var(--border-radius);
	background:var(--hightlight);
	color:#fff;
	cursor:pointer;
}
table.dropdown tr{
display:block;
padding:3px 5px;
}

.sum.subtotal{
	background-color:	rgba(0,0,0,.1);
}

table table td,
td{
	border-color: gba(0,0,0,.1) !important;
}

tbody.foot tr,
tbody.foot tr td,
tbody.foot + tbody tr,
tbody.foot  + tbody tr td {
       page-break-after: avoid;
			 page-break-before: avoid;
			 page-break-inside: avoid;
    }

@media print {
footer{
	padding-bottom: 0;
	margin-bottom: -20mm;
}
	object.rutanlogo{
		position: fixed;
		left: 17mm;
		top:10mm;
		float:none;
	}


	table, body,html{
	}

	div.paper{
		padding-top:0;
		padding-bottom: 0;
	}
	@page {
		size: A4 portrait;
		margin: 15mm 5mm 5mm 0mm;
	}
}
@page {
	counter-increment: page;
	counter-reset: page 1;
	@top-right {
		content: "Page " counter(page) " of " counter(pages);
	}
}
