:root {
	--bodyGapWidth: 0px;
	--headerHeight: 2rem;
	--secondHeaderHeight: 1.6rem;
	--headerBackground: rgb(230, 230, 230);
	--pageHeaderBackground: rgb(242, 242, 242);
	--navigationBackground: rgb(249, 249, 249);

	--formGroupBackground: rgb(246, 246, 246);
	--formGroupMargin: 10px;
}

@font-face {
	font-family: 'Roboto';
	src: url('roboto.woff2') format('woff2');
}

body {
	/* font-family: 'Roboto', sans-serif; */
	font-size: 12px;
	background: unset;
}

#search[disabled="true"] {
	visibility: hidden;
}

/* TODO diese Aufteilung ev in MJ übernehmen, falls sie sich überall bewährt */
.page:first-child {
	flex-grow: 1;
}

.page {
	flex-grow: 2;
}

dialog {
	border-radius: 8px;
}

.dialogHeader {
	height: 2.5em;
	line-height: 1.8em;
	border-bottom: 0px;
	font-size: 15px;
	font-weight: bold;
}

.dialogHeader .button {
	align-self: center;
}

.dialogFooter {
	border-top: 0px;
}

.dialogFooter button {
	min-width: 7rem;
	padding: 0.2rem;
	padding-right: 1rem;
	padding-left: 1rem;
	margin-top: 0.3rem;
	margin-bottom: 0.3rem;
}

#applicationVersion {
	display: block;
	position: fixed;
	right: 1.5rem;
	bottom: 0.15rem;
	font-size: x-small;
	opacity: 0.6;
}

#queryBottom {
	margin-top: 30px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	align-content: flex-start;
	gap: 30px;
	flex-basis: 100px;
	flex-wrap: wrap;
}

#queryBottom div {
	background: rgb(246, 246, 246);
	border: 30px rgb(246, 246, 246) solid;
	border-left-width: 50px;
	border-right-width: 50px;
	border-radius: 10px;
}

.ArticleTablePage td:nth-child(2) {
	max-width: 45rem;
}

/* Die Beschreibung der Artikel kann ausufernd lang sein.
Die nächsten zwei Einträge geben dem Feld ein gewisse Grundgrösse,
es kann aber auch noch wachsen */
.ArticlePage .description {
	min-height: 8rem;
	max-height: 8rem;
	overflow-y: scroll;
}

.ArticleImage {
	height: 5rem;
}

.ArticleImage iframe {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
}

.PersonPage .pageContent {
	flex-grow: 0;
}

/* TODO ArticleForm text area + pics */
.ArticleForm textarea {
	height: 100px;
}

/* TODO ev zusammenführen, nur multiline verwenden */
.RelatedOrderTable.form .text, .text.multiLine {
	height: unset;
}

.form .Article input {
	transition: width 0.2s;
	z-index: 2;
	position: relative;
}

.form .Article input:focus {
	width: 30rem;
	z-index: 4;
}

.form .Article input::placeholder {
	color: transparent;
}

.form .Article input:focus::placeholder {
	text-align: right;
	color: unset;
}

.form .lookupButton {
	z-index: 3;
}

dialog>.form {
	padding: 0.1rem 0.7rem;
}

/* */
.form>div>div {
	padding-top: 0.1em;
	padding-bottom: 0.1em;
}

.formElement .formElement:last-child {
	padding-right: 0px;
}

input, .checkBoxContainer, select, textarea, .lookup .text {
	border: lightgray 1px solid;
	border-radius: 3px;
	background: white;
}

input[disabled], .checkBoxContainer[disabled], select[disabled],
	textarea[disabled], .form .lookup .text[disabled] {
	border: #ddd 1px dashed;
	color: unset;
	background: rgb(250, 250, 250);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: #68f 1px solid;
	border: #68f 1px solid;
}

input[type="checkbox"]:focus-visible {
	outline: #68f 2px solid;
}

textarea {
	width: 100%;
}

label {
	padding-top: 0.4em;
}

fieldset label {
	padding-top: 0px;
}

.title {
	padding-top: 1em;
}

.formElement[hide] {
	display: none !important;
}

.formElementActionText {
	color: black !important;
	padding-top: 3.5px;
}

.formElementActionLink {
	padding-top: 3.5px;
}

.dropdown, .dropdown::selection {
	border-radius: 3px;
	border-color: lightgray;
	background: #f8f8f8;
}

.dropdown * {
	padding-right: 3em;
}

.form .multiline .text {
	height: unset;
}

textarea.smallTextarea {
	margin-top: 0px;
	height: 1.8em;
	min-height: 1.8em;
}

.lookupRight .dropdownButton {
	right: unset;
	left: 0px;
}

.addressFormElement div:nth-child(1) textarea {
	height: 3rem;
	margin-bottom: 2px;
	box-sizing: border-box;
}

.addressFormElement div:nth-child(2) {
	margin-bottom: 2px;
}

.orderAddressFormElement {
	height: 3.8rem;
}

.countryZipCity, .addressForm div:nth-child(3) {
	table-layout: auto;
}

.countryZipCity .groupItem:nth-child(2), .addressForm div:nth-child(2) .groupItem:nth-child(1)
	{
	padding-left: 0.25em;
	padding-right: 0.25em;
}

.countryZipCity div:nth-child(1), .addressForm .country {
	width: 3em;
	max-width: 3em;
}

.countryZipCity div:nth-child(2), .addressForm .zip {
	width: 5em;
}

.countryZipCity div:nth-child(2), .addressForm .zip {
	width: 5em;
}

.form .addressReadOnlyFormElement {
	min-height: 5rem;
}

.form .articlePartsReadOnlyFormElement {
	overflow-x: hidden;
}

.form .articlePartsReadOnlyFormElement .groupHorizontal {
	display: inline;
}

.form .articlePartsReadOnlyFormElement .groupItem {
	white-space: nowrap;
	padding-right: 0.12rem;
}

.form .articlesFormElement {
	min-height: 7rem;
}

.form .articlesFormElement .action {
	padding-top: 0.7rem;
	padding-right: 1.5rem;
}

.form .articlesFormElement .groupVertical .groupItem:last-child .groupHorizontal {
	display: inline;
}

.form .footerTextformElement {
	height: 4.1rem;
}

.form .discountText {
	text-align: right;
	padding-top: 0.7rem;
	padding-right: 3.8rem;
}


.form fieldset.radioVertical label:after {
	content: "\a";
    white-space: pre;
}

.form fieldset.radioVertical > * {
	margin-top: 0.2rem;
	margin-bottom: 0.2rem;
}

.BalanceReportPage {
	min-width: 1600px;	
}

/* Bei Bilanz zwischen aktiv und passiv einen Abstand halten */
.BalanceReportPage .groupItem:first-child {
	padding-right: 2rem;
}
