/* app.css		DVR2
 * 2022-09-01	wb	neue Logos
 * 2020-06-20	wb	thead sticky
 * 2019-12-03	wb	Responsive Design
*/
/** Type, Attribute, Pseudo selectors  */
body {
	margin: 0; border: 0; padding: 0;
	padding-left: 2px; padding-right: 2px;
	font-family: 'Roboto', Arial, sans-serif; font-size: 14px;
	line-height: 1.3;
	color: #393939;
	background: #e8e8e8;
}

a {text-decoration: none; background-color: transparent}
a:link, a:visited {color: #143C8C}
a:hover, a:active, a:focus {text-decoration: underline}

dt {font-weight: bold}

/* https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Styling_HTML_forms */
button, input, select, textarea {
	font-family: inherit;
	font-size: 100%;
	box-sizing: border-box;
}

/* IE */
img {border:0}

input[type=number] {text-align: right}
input[type=submit], button {cursor: pointer}
input[type=submit] + input[type=submit],
input[type=submit] + button {
	margin-left: 40px
}
input:active, input:focus {background-color: #FFB}

label {cursor: pointer}
input + label {margin-left: 4px}
input[type=checkbox] + label {margin-left: 0}

/* table {border-collapse:collapse}
 * geht nicht ordentlich mit sticky,
 * border wird nicht korrekt angezeigt
 */
table {border-collapse: separate; border-spacing: 0; border: 1px solid #AAA}
table input[type=submit] + input[type=submit] {margin-left: 4px}
caption {font-weight: bold}
td, th {border: 1px solid #AAA; padding: 2px}
/* thead {position: sticky; top: 0; z-index:6; background: #FFF};
 * 2020-06-23, Chromium 83 kann kein sticky bei thead
 */
tbody tr:nth-child(odd) {background: #EEE}
tbody tr:nth-child(even) {background: #CCC}
/* 2020-06-17 Firefox 77 braucht das ein zweites Mal */
tbody tr:nth-child(odd) {background: #EEE}
tbody tr:hover {background: #FFC}

textarea:active, input:focus {background-color: #FFB}

ul {list-style: none; margin: 0; padding-left: 20px}



/** Class selectors  */
/* Status colors  */
*.ok {color: #339A33}
*.warn {color: #FC5}
*.error {color: #F55}
/* Other */
*.clear {clear: both}
*.multicol {column-width: 316px; column-gap: 4px}
*.break_avoid {break-inside: avoid}



/** Type + Class selectors  */
/* Generic */
div.submit {margin-top: 16px}
input[type=submit].submit,
div.submit input[type=submit],
div.submit button {
	background-color: #143C8C;
	color: white;
	padding: 8px;
	border: none;
}

input.hidden {display:none}
input.warn {background-color: #FFE097}
input.error {background-color: #FDD}

label.required::after {content: "*"}

select.warn {background-color: #FFE097}
select.error {background-color: #FDD}

textarea.warn {background-color: #FFE097}
textarea.error {background-color: #FDD}

ul.warn {background-color: #FFE097}
ul.error {background-color: #FDD}
ul.select {padding-left: 0}
ul.select li {margin-bottom: 8px}

/* O3baseWebElemDoc  */
*.wd.status, *.wd.info {
		font-size: larger;
		font-weight: bold;
}

/* O3baseWebObj  */
*.wo.status {font-weight: bold}
div.wo.edit {
		margin-bottom: 10px;
}

/* O3baseWebElemCmp */
div.cmp {margin-bottom: 10px; break-inside: avoid}
label.cmp {font-weight: bold}
div.elem input[type=text],
div.elem input[type=email],
div.elem input[type=url],
div.elem textarea {
	width: 296px;
}

/* Data-Table */
table.data thead, table.data tfoot {background: #B9D1FF}
/* First-Column sticky */
table.data thead tr:last-child th {position: sticky; top: 0; z-index:7; background: #B9D1FF}
table.data thead tr th:first-child {position: sticky; left: 0; z-index:8; background: #B9D1FF}
table.data tbody tr td:first-child {position: sticky; left: 0; z-index:5}
table.data tbody tr:nth-child(odd) td {background: #EEE}
table.data tbody tr:nth-child(even) td {background: #CCC}
table.data tbody tr:hover td {background: #FFC}
/* Info-Table: first-column: label */
table.info tbody tr > th:first-child {text-align: right}
table.info tbody tr > th:first-child[colspan] {text-align: center}
table.info tbody tr {background: #EEE}
table.info tbody tr:hover {background: #FFC}

/* Pivot-Table, O3appPivot */
table.pivot thead th {text-align: center}
table.pivot tbody th, table.pivot tbody td {text-align:right}
table.pivot th.sum, table.pivot td.sum {background-color: #FFE}



/** Top Navigation */
header img {
	box-sizing: border-box;
	margin: 0;
	border: 0;
	padding: 0;
	width: auto;
	max-height: 100%;
}

div#nav_left {
	float: left;
	height: 70px;
}

div#nav_left img {
	margin-right: 5px;
	margin-top: 2px;
}

div#nav_center {
	overflow: hidden;
	background-color: #153B8C;
	height: 70px;
	margin-right: 65px;
}

div#nav_center img {
	padding-left: 2px;
	padding-top: 2px;
	padding-bottom: 2px;
}

label[for="hamburg"] {
	float: right;
	display: block;
	position: relative;
	background-color: #153B8C;
	width: 60px;
	height: 70px;
}

label[for="hamburg"] span {
	display: block;
	position: absolute;
	background-color: #FFFFFF;
	left: 10px;
	width: 40px;
	height: 4px;
	border-radius: 2px;
	transition: 0.5s;
	transform-origin: center;
}

label[for="hamburg"] span:nth-child(1) {top: 21px}
label[for="hamburg"] span:nth-child(2) {top: 33px}
label[for="hamburg"] span:nth-child(3) {top: 45px}

#hamburg:checked + label[for="hamburg"] span:nth-child(1){
	transform: translateY(12px) rotate(-45deg);
}

#hamburg:checked + label[for="hamburg"] span:nth-child(2){
	opacity:0;
}

#hamburg:checked + label[for="hamburg"] span:nth-child(3){
	transform: translateY(-12px) rotate(45deg);
}

#hamburg:checked + label[for="hamburg"] ~ nav.top,
#hamburg:checked + label[for="hamburg"] ~ nav.top > ul {
	max-height: 9999px;
}

nav.top {
	margin-top: 2px;
	padding-left: 2px;
	padding-right: 2px;
	background-color: #153B8C;
	color: white;
	height: auto;
	max-height: 0;
	overflow: hidden;
}
nav.top ul {
	height: auto;
	max-height: 0;
	overflow: hidden;
}
nav.top > ul {padding-left: 0px}
nav.top ul input.hidden:checked + label + ul,
nav.top ul input.hidden:checked + label + a + ul {
	max-height: 9999px
}
nav.top ul a,
nav.top ul label,
nav.top ul span {
	color: white;
}
nav.top ul label {font-weight: bold}
nav.top ul li.active {padding-bottom: 2px}
nav.top ul li.active a,
nav.top ul li.active span {
	border-bottom: 2px solid white;
	text-decoration: none;
}
nav.top ul label:hover {
	cursor: pointer;
	text-decoration: underline;
}
div#menu {clear: both}


/** Formular */
form#form {}



/** Mobil */
@media screen and (max-width: 1024px) {
	nav.top ul li {margin-top: 12px; margin-bottom: 12px}
	td {padding: 8px 4px}
}

/** Desktop: Festes Menü an der linken Seite  */
@media screen and (min-width: 1025px) {
	label[for="hamburg"] {display: none}
	nav.top {
		float: left;
		max-height: 9999px;
		width: 280px;
	}
	nav.top ul label:hover {
		cursor: default;
		text-decoration: none;
	}
	nav.top ul {max-height: 9999px}
	form#form {
		border-left: 284px solid #153B8C;
		padding-left: 4px;
	}
}
