
* {
    box-sizing: border-box;
	margin: 0px;
}

body {
	--navigation-width: 250px;
	--header-height: 64px;
	
	/*--color-page-background: #a0d3f8;*/
	--color-page-background: white;
	--color-feint: #ddd;
	--color-light-black: #888;
	
	--nav-color: #eee;
	--nav-color-head: #2d2d2d;
	--nav-color-back: #581329;
	/*--nav-color-border: #357dda;*/
	/*--nav-color-border: #761936;*/
	--nav-color-border: #261976;
	--nav-color-highlight: #333;
	/*--nav-color-gradient-a: #357dda;*/
	/*--nav-color-gradient-a: #761936;*/
	--nav-color-gradient-a: #261976;
	/*--nav-color-gradient-b: #1081d4;*/
	/*--nav-color-gradient-b: #581329;*/
	--nav-color-gradient-b: #261976;
	
	/*--navigation-color-body: linear-gradient(45deg, var(--nav-color-gradient-a), var(--nav-color-gradient-b));*/
	--navigation-color-body: var(--nav-color-back);
	
	--color-primary: #357dda;
	--color-success: #1ec21e;
	--color-warning: yellow;
	--color-danger: red;
	
	font-family: system-ui, Calibri;
	background: var(--color-page-background);
}

input[readonly] {
	text-align: center;
	background: var(--color-primary);
	color: white;
}

a {
	color: #2271b1;
}

.overflow-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.hidden {
	display: none !important;
}

/*
	position
*/

.p-relative { position: relative; }
.p-absolute { position: absolute; }

.vertical-center {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.horizontal-center {
	display: flex;
	justify-content: center;
}

/*
	display
*/

.d-block { display: block; }
.d-inline { display: inline-block; }
.d-inline-block { display: inline-block; }
.d-grid { display: grid; }
.d-flex { display: flex; }

.d-flex-center { display: flex; justify-content: center; }
.d-flex-right { display: flex; justify-content: right; }

.d-child-gap > *:not(:last-child) {
    margin-right: 0.2em;
}

/*
	grids
*/
.grid-50-50 { display: grid; grid-template-columns: 50% 50%; }
.grid-auto-max { display: grid; grid-template-columns: auto max-content; }
.grid-max-auto { display: grid; grid-template-columns: max-content auto; }
.grid-auto-auto { display: grid; grid-template-columns: auto auto; }
.grid-max-max { display: grid; grid-template-columns: max-content max-content; }
.grid-gap-5 { grid-gap: 5px; }
.grid-gap-10 { grid-gap: 10px; }

/*
	page
*/

.page-wrapper {
	margin-top: 3em;
	margin-bottom: 3em;
	width: min(1000px, 100vw);
	margin-left: auto;
	margin-right: auto;
	padding: 1em;
	border: 1px solid #eee;
}

.header-image {
	margin-bottom: 1em;
}

.header-image img {
	width: 100%;
}

.headline {
	text-align: center;
}

input:not([type="file"]),
textarea,
select {
	outline: none;
	border: 1px solid #ddd;
}

input[type="text"],
input[type="number"],
textarea,
select {
    padding: 7px 5px;
}

/* BUTTONS & INPUTS */

.inline-button {
	margin: -2px;
}

.btn-base {
	font-size: 1.1em;
	border: 1px solid transparent;
	padding: 0.3em 0.5em;
}

.btn-base:hover {
	color: #eee;
    background: #333;
}

input[type="number"] {
	text-align: center;
}

input[type="submit"],
input[type="button"],
button {
	font-size: 1.1em;
	border: 1px solid transparent;
	padding: 0.3em 0.5em;
}

input[type="submit"].flat,
input[type="button"].flat {
	padding: 0em 0.5em;
}

.header-buttons input[type="submit"],
.header-buttons input[type="button"] {
	padding: 0.1em 0.3em;
	margin: 0em;
}

.button-row {
	display: flex;
	align-items: center;
	grid-gap: 5px;
}

.btn-primary {
	color: #eee;
    background: var(--color-primary);
}

.btn-success {
	color: #eee;
    background: #1ec21e;
}

.btn-warning {
	color: #333;
    background: yellow;
}

.btn-danger {
	color: #eee;
    background: red;
}

input[type="submit"]:hover,
input[type="button"]:hover {
	color: #eee;
    background: #333;
}

select {
    padding: 0.2em 0.5em;
}

textarea {
	width: 100%;
	min-height: 10em;
	border: 1px solid #eee;
	resize: none;
}

.clickable {
	cursor: pointer;
}

.flex-right {
	display: flex;
	justify-content: right;
}

.flex-right.fr-m-s > *:not(:last-child) {
	margin-right: 5px;
}

.grid-list {
	display: grid;
	grid-row-gap: 5px;
}

.simple-config-table {
    display: grid;
    grid-template-columns: max-content auto;
    grid-column-gap: 1em;
    grid-row-gap: 0.25em;
}

.simple-config-table input[type="text"],
.simple-config-table input[type="password"] {
    width: 100%;
}

/* SECTIONS */

section {
    /* margin: 0.5em; */
    background: white;
	width: 100%;
	/* border-bottom: 1px solid #ddd; */
	/* padding: 0em 0em 2em 0em; */
}

.section-header {
    padding: 0.5em 1em;
	font-weight: bold;
	font-size: 1.2em;
	background: var(--color-primary);
	color: white;
}

.section-body {
    padding: 1em 1em;
}

.section-row {
	padding: 0.75em 0em;
}

.row-title {
	font-weight: bold;
	font-size: 1.2em;
	color: white;
	background: var(--color-primary);
	padding: 0.5em 1em;
}

.section-body.vertical-gap {
	padding: 1em 0em;
}

section.active .section-header {
	background: #eee;
}

section.transparent {
	background: transparent;
}

.section-header.ul {
	border-bottom: 1px solid #333;
    padding-bottom: 0.6em;
}

.margin-vs {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.full-width { width: 100%; }
.small-width { width: 25%; }

label.input-label {
	font-weight: bold;
	padding: 0px 0px 10px 0px;
	display: block;
}

.form-control {
	margin: 0px 0px 10px 0px;
}

/* COUNTERS */

.counter-block {
	width: max-content;
	display: flex;
	border: 1px solid #ddd;
}

.counter-block label {
	padding: 5px 20px;
	display: block;
	background: #a9c7ef;
	color: #333;
	line-height: 32px;
	height: 42px;
}

.counter-block .counter-inputs {
	display: flex;
	grid-gap: 10px;
	width: max-content;
	margin: auto;
	padding: 5px 20px;
	background: #eee;
}

.counter-block .counter-inputs input[type="number"] {
	width: 80px;
	text-align: center;
	padding-left: 18px;
	height: 32px;
	position: relative;
}

.counter-block input[type="button"] {
	width: 32px;
	height: 32px;
	line-height: 0px;
}

/* DIALOGS */

.dialog-wrapper {
	width: 100vw;
	height: 100vh;
	position: fixed;
	background: #0006;
	top: 0px;
	left: 0px;
}

.dialog-body {
	background: white;
	width: max-content;
	max-width: min(600px, 95vw);
	min-width: min(300px, 100vw);
	padding: 1em;
	margin: auto;
	border-radius: 2px;
	
	max-height: 90vh;
}

.dialog-content {
	padding: 1em;
	font-weight: bold;
	margin-bottom: 10px;
	border-bottom: 1px solid #ddd;
	
	overflow-y: auto;
    max-height: 80vh;
	max-width: 100%;	
}

.dialog-actions {
	display: flex;
	justify-content: end;
	grid-gap: 5px;
}

.dialog-add .dialog-content {
	width: 400px;
}

/*
.label-farbe-rot { background: red; }
.label-farbe-gelb { background: yellow; }
.label-farbe-gruen { background: #00cc00; }
*/

.radio-selection {
	margin: 0px 2px;
	display: inline-flex;
	/*display: inline-block;*/
	grid-gap: 3px;
	align-items: baseline;
}

.radio-selection * {
	/*align-self: baseline;*/
	font-size: 16px;
}

input[type="radio"] {
	display: none;
}

input[type="radio"] + label {
	padding: 2px 6px;
	cursor: pointer;
}

/*

input[type="radio"]:checked + label.radio-label {
	box-shadow: 2px 2px dodgerblue, -2px 2px dodgerblue, -2px -2px dodgerblue, 2px -2px dodgerblue;
	border-radius: 2px;
}

input[type="radio"]:checked + label.label-farbe-rot {
	background: red;
}

input[type="radio"]:checked + label.label-farbe-gelb {
	background: yellow;
}

input[type="radio"]:checked + label.label-farbe-gruen {
	background: #00cc00;
}
*/

input[type="radio"]:checked + label {
	background: var(--color-primary);
	color: white;
}

.choice-container {
	margin: 5px 0px;
	text-align: center;
}

/* SELECTIONS */

.basic-selection {
	position: absolute;
    top: 15px;
    left: 40px;
    z-index: 10;
    box-shadow: 2px 2px 5px #7777;
}

.basic-selection button {
	width: 100%;
	height: 30px !important;
}

.basic-selection button:hover {
	color: #eee;
	background: var(--color-primary);
}

.basic-selection button.current:not(:hover) {
	color: var(--color-primary);
	background: #eee;
}

/*.basic-selection input[value="Rot"],*/
.behandlungsnachweise input[value="Rot"],
.behandlungsnachweise_16_30 input[value="Rot"] {
	background: red;
	color: black;
}

/*.basic-selection input[value="Gelb"],*/
.behandlungsnachweise input[value="Gelb"],
.behandlungsnachweise_16_30 input[value="Gelb"] {
	background: yellow;
	color: black;
}

/*.basic-selection input[value="Grün"],*/
.behandlungsnachweise input[value="Grün"],
.behandlungsnachweise_16_30 input[value="Grün"] {
	background: lawngreen;
	color: black;
}

.hide-for-selection {
	color: #eee;
	background: #333;
}

.basic-selection button span {
	display: block;
	text-align: left;
}

.basic-selection button[data-value="Rot"] span::before,
.basic-selection button[data-value="Gelb"] span::before,
.basic-selection button[data-value="Grün"] span::before {
	width: 10px;
	height: 5px;
	content: '##';
	color: transparent;
	margin-right: 5px;
}

.basic-selection button[data-value="Rot"] span::before {
	background: red;
}

.basic-selection button[data-value="Gelb"] span::before {
	background: yellow;
}

.basic-selection button[data-value="Grün"] span::before {
	background: lawngreen;
}

/* SPECIFICS */

.total-table {
	width: 400px;
}

.total-table .note {
	font-size: 0.8em;
	font-weight: bold;
	color: #777;
	text-align: center;
}

.total-table .header {
	text-align: center;
	padding: 2px;
	font-weight: bold;
	border: 1px solid #333;
}

.total-table .header.red {
	background: red;
}
.total-table .header.yellow {
	background: yellow;
}
.total-table .header.green {
	background: #00cc00;
}

/* div-table */

.div-table-header {
	font-weight: bold;
}

.div-table-value {
	display: flex;
	justify-content: center;
}

.div-table-value input {
	align-self: center;
}

/* checkliste */

.checkliste {
	border:1px solid #eee;
	width: 600px;
	margin: auto;
}

.checkliste div:nth-child(4n) {
	background: #eee;
}

.checkliste div:nth-child(4n-1) {
	background: #eee;
}

.checkliste div.div-table-header,
.checkliste div.div-table-label,
.checkliste div.div-table-value {
	padding: 5px 10px;
}

.checkliste div.div-table-header {
	background: #333;
	color: white;
}

/* table.einsatzpersonal */

table.input-table th {
	border: 1px solid #ddd;
	background: #eee;
}

table.input-table td {
    text-align: center;
	position: relative;
}

table.input-table input {
    height: 30px;
    width: 100%;
}

/* table.checkliste */

table.checkliste td:nth-child(2n) {
	display: flex;
	justify-content: center;
}

table.checkliste tr {
	margin-bottom: 20px;
}

/* table.behandlungsnachweise */
.behandlungsnachweise textarea {
	min-height: initial;
}

.behandlungsnachweise td *:not(input[type="time"]) {
	height: 60px;
}


/*
.behandlungsnachweise td input {
	text-align: center;
}
*/