/* Regular */
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: local('Open Sans Light'), local('OpenSans-Light'), url(fonts/OpenSans-300.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Open Sans Regular'), local('OpenSans-Regular'), url(fonts/OpenSans-400.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'), url(fonts/OpenSans-600.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: local('Open Sans Bold'), local('OpenSans-Bold'), url(fonts/OpenSans-700.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mono */
@font-face {
	font-family: 'Roboto Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local('Roboto Mono'), local('RobotoMono-Regular'), url(fonts/RobotoMono-400.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, html {
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	font-weight: 400;
	display: flex;
	flex-direction: column;
}

h1,
h2 {
	display: block;
	margin: 8px 0;
	font-size: 1.2em;
	font-weight: bolder;
	text-transform: uppercase;
}
h1 {
	font-size: 1.2em;
	font-weight: 700;
}
h2 {
	font-size: 1.2em;
	font-weight: 600;
}
h1.with-icon,
h2.with-icon {
	display: flex;
	align-items: center;
	min-width: 0;
}
h1.with-icon .icon,
h2.with-icon .icon {
	width: 25px;
	min-width: 25px;
	height: 25px;
	margin-right: 5px;
}

.green {
	color: #43a047 !important;
}
.red {
	color: #e53935 !important;
}
.orange {
	color: #fb8c00 !important;
}
.grey {
	color: #999999;
	color: #757575 !important;
}

.heading {
	/*
	display: grid;
	grid-gap: 10px;
	grid-auto-flow: row;
	align-items: center;
	*/
	display: flex;
	flex-wrap: wrap;
	grid-gap: 10px;
	min-height: 55px;
	padding: 10px;
	box-sizing: border-box;
	background: #eaeaea;
}

/*
@media only screen and (min-width: 1200px) {

	.heading {
		grid-template-columns: minmax(250px, 1fr) max-content max-content;
	}

}
*/

.heading.heading-main {
	/*
	padding: 10px 10px;
	padding: 5px 0;
	*/
	padding: 10px;
	background: #e1e2e1;
	box-sizing: border-box;
}
.heading h1,
.heading h2 {
	flex: 1 1 100%;
	min-width: 200px;
	margin: 0;
}
.heading .heading-text {
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.heading .heading-subtitle {
	display: block;
	font-size: .8em;
	font-weight: normal;
	text-transform: none;
	color: rgba(0,0,0,.5);
}
.heading .buttons,
.heading .filters {
	margin: 0;
}

p {
	display: block;
	margin: 10px 0;
}
a {
	color: inherit;
	text-decoration: underline;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
hr {
	height: 1px;
	margin: 5px 0;
	padding: 0;
	border: none;
	background: #e1e2e1;
}
.wrapper {
	display: block;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

.bolder {
	font-weight: bolder !important;
}
.small {
	font-size: .8em;
}
.grey {
	color: #aaa;
}
.italic {
	font-style: italic;
}

header {
	position: relative;
	display: block;
	height: 60px;
	min-height: 60px;
	padding: 0;
	background: #016f52;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
	-moz-user-select: none;
	user-select: none;
	z-index: 9;
}
header a {
	text-decoration: none;
}
header .wrapper {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	background: inherit;
	padding: 0 10px;
	box-sizing: border-box;
}
header .icon svg {
	fill: #fff;
}

#logo {
	flex: 1;
	display: block;
	height: 40px;
	margin-right: 15px;
}
#logo a {
	display: flex;
	align-items: flex-end;
	height: 100%;
}
#logo img {
	display: block;
	width: auto;
	height: 100%;
}
#logo span {
	margin: 0 0 -3px 5px;
	padding: 0;
	color: #c1a47d;
	font-size: 1.25em;
	font-weight: bolde;
	text-shadow: 1px 1px 1px rgba(0,0,0,.5);
}

#menu {
	display: block;
	width: 40px;
	height: 40px;
	cursor: pointer;
}
#menu .icon {
	width: 100%;
	height: 100%;
}

#navigation {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 50%;
	max-width: 100%;
	background: inherit;
	text-transform: uppercase;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
	z-index: -1;
	transform: translateY(-100%);
	transition: transform .2s, visibility .2s, opacity .2s;
	visibility: hidden;
	opacity: 0;
}
#navigation.active {
	transform: translateY(0);
	visibility: visible;
	opacity: 1;
}
#navigation a {
	display: flex;
	align-items: center;
	padding: 7px 10px;
	padding: 14px 20px;
	border: none;
	border-radius: 2px;
	outline: none;
	transition: background .2s;
}
#navigation a:hover {
	background: #004329;
}
#navigation a.active span.text {
	box-shadow: 0px 1px 0px 0px #fff;
}
#navigation a .icon {
	width: 25px;
	height: 25px;
	margin-right: 10px;
}

#loading {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .1s, visibility .1s;
	z-index: 8;
}
#loading.active {
	opacity: 1;
	visibility: visible;
}

main {
	position: relative;
	z-index: 1;
}
main .wrapper {
	background: #f5f5f5;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
	/*
	padding: 0 0 1px;
	box-sizing: border-box;
	*/
}
main .heading-main {
	margin: 0;
}

footer {
	width: 100%;
	flex: 1;
}
footer .wrapper {
	padding: 10px;
	height: 100%;
	background: #e1e2e1;
	font-size: .9em;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
}
footer .wrapper span {
	padding: 5px;
}
footer .wrapper .contact,
footer .wrapper .links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: -5px;
}
@media only screen and (min-width: 800px) {

	footer .wrapper {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-start;
	}

}

.icon {
	display: block;
}
.icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: #000;
	transition: transform .2s;
}
.icon.green svg {
	fill: #43a047 !important;
}
.button:hover .icon.green svg {
	fill: #fff !important;
}
.icon.red svg {
	fill: #e53935 !important;
}
.icon.yellow svg {
	fill: #FFEB3B !important;
}
.icon.black svg {
	fill: #000 !important;
}
.icon.orange svg {
	fill: #F57F17 !important;
}
.button:hover .icon.red svg {
	fill: #fff !important;
}
.icon.rotate-90 svg {
	transform: rotate(90deg);
}
.icon.rotate-90-cc svg {
	transform: rotate(-90deg);
}
.icon.icon-circle {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
}
.icon.icon-circle.green {
	background: #1B5E20;
}
.icon.icon-circle.orange {
	background: #F57F17;
}
.icon.icon-circle.red {
	background: #B71C1C;
}

.pointer {
	cursor: pointer;
}

.collapsible {
	max-height: 10000px;
	overflow: hidden;
	transition: max-height .2s;
	box-sizing: border-box;
}
.collapsed {
	max-height: 0;
}

::placeholder {
	color: #bbb;
	opacity: 1;
}

.input,
.button,
.select,
.textarea {
	display: block;
	border: none;
	border-radius: 2px;
	font-family: 'Open Sans', sans-serif;
	font-size: 1em;
	outline: none;
	transition: background .2s, opacity .2s;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
	box-sizing: border-box;
}
.input,
.button,
.select {
	height: 35px;
}
.input,
.textarea {
	padding: 8px 10px;
	background: rgba(255, 255, 255, 1);
	color: #000;
}
.input:focus {
	background: rgba(255, 255, 255, 1);
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.input-wrapper .input,
.input-wrapper .textarea {
	flex: 1;
	min-width: 0;
}
.input-wrapper .before {
	margin-right: 5px;
}
.input-wrapper .after {
	margin-left: 5px;
}
.input-wrapper-icon .icon {
	position: absolute;
	left: 5px; top: 5px;
	width: 24px;
	height: 24px;
}
.input-wrapper-icon .icon svg {
	fill: #bbb;
	transition: fill .2s;
}
.input-wrapper-icon .input {
	padding-left: 35px;
}
.input-wrapper-icon .input:focus ~ .icon svg {
	fill: #000;
}

.select {
	padding: 6px 0 6px 6px;
	background: rgba(255, 255, 255, 1);
	/*color: #bbb;*/
	border: none;
	outline: none;
}

.dropdown-wrapper {
	position: relative;
}
.dropdown-wrapper-icon .icon {
	position: absolute;
	left: 5px; top: 5px;
	width: 25px;
	height: 25px;
}
.dropdown-wrapper-icon .icon svg {
	fill: #bbb;
	transition: fill .2s;
}
.dropdown-wrapper-icon .select {
	padding-left: 30px;
}
/*.dropdown-wrapper-icon*/ .select:focus {
	color: #000;
}
/*.dropdown-wrapper-icon*/ .select:focus ~ .icon svg {
	fill: #000;
}

.input.input-grid {
	font-family: 'Roboto Mono';
	letter-spacing: 1.3755em;
	letter-spacing: calc(1.325em + 1px);
	font-size: 1em;
	padding: .5em .75em;
    background-size: 2em 100%;
    background-image: linear-gradient(to right, black 1px, transparent 1px);
    background-position: -1px 0;
    border: 1px solid black;
    overflow: hidden;
}

.button {
	display: flex;
	align-items: center;
	padding: 7px 12px;
	background: #ccc;
	color: #fff;
	font-weight: bolder;
	/*text-transform: uppercase;*/
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
}
.button:hover {
	background: #ddd;
	background: #d1d1d1;
	background: #d5d5d5;
	background: #1e96c9;
}
.button:focus {
	outline: none;
}
.button > div {
	display: flex;
	align-items: center;
	pointer-events: none;
}
.button .icon {
	width: 20px;
	height: 20px;
	margin: 0 5px 0 -3px;
}
.button .icon.icon-spinning {
	animation: spinning .5s infinite linear;
}
.button .icon svg {
	fill: #fff;
}
.button.button-highlight {
	background: #449e7e;
	background: #0f7faf;
}
.button.button-highlight:hover {
	background: #016f52;
	background: #1e96c9;
}
.button.button-disabled {
	cursor: default;
	pointer-events: none;
	opacity: .5;
}
.button.red-hover:hover {
	background: #B71C1C;
}

.button.button-red {
	background: #e53935;
}
.button.button-red-hover:hover,
.button.button-red:hover {
	background: #ef5350;
}
.button.button-orange {
	background: #FB8C00;
}
.button.button-orange:hover {
	background: #FFA726;
}
.button.button-yellow {
	background: #FDD835;
}
.button.button-yellow:hover {
	background: #FDD835;
}
.button.button-green {
	background: #43A047;
}
.button.button-green:hover {
	background: #66BB6A;
}
.button.button-grey {
	background: #9E9E9E;
}
.button.button-grey:hover {
	background: #BDBDBD;
}
.button.button-pink {
	background: #D81B60;
}
.button.button-pink:hover {
	background: #AD1457;
}
.button.button-purple {
	background: #673AB7;
}
.button.button-purple:hover {
	background: #7E57C2;
}

.button.button-icon {
	padding: 7px 10px;
}
.button.button-icon .icon {
	margin: 0;
}

.button-upload {
	position: relative;
	cursor: pointer;
}
.button-upload input {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0;
	cursor: pointer;
}

.list-item .button {
	height: 32px;
	padding: 5px 10px;
	font-size: .9em;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/*
	margin: -5px;
	margin: 0 5px;
	margin: -5px;
	*/
	margin: 10px;
	grid-gap: 10px;
	/*
	display: grid;
	grid-gap: 10px;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	*/
}
.buttons .buttons {
	margin: 0;
}
/*.buttons .button {
	margin: 5px;
}*/

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: -5px 5px;
	margin: 0 5px;
	margin: -5px;
	/*
	display: grid;
	grid-gap: 10px;
	grid-auto-flow: column;
	grid-auto-columns: max-content;
	*/
}
.filters > * {
	margin: 5px;
}

@keyframes spinning {

	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}

}

/* Radios */
.radio {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
}
.radio > input,
.radio > div {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.radio > input {
	margin: 0;
	padding: 0;
	z-index: 1;
}
.radio > div {
	z-index: 2;
	background: #fff;
	transition: background .2s;
	pointer-events: none;
}
.radio > input:checked ~ div:after {
	content: '';
	position: absolute;
	top: 5px; left: 5px;
	height: 10px;
	width: 10px;
	background: #016f52;
	border-radius: 50%;
	overflow: hidden;
}

/* Checkboxes */
.checkbox-wrapper {
	display: flex;
	align-items: center;
}
.checkbox-wrapper .checkbox-text {
	margin-right: 5px;
}
.checkbox-wrapper .checkbox-image {
	height: 30px;
	width: auto;
	margin-left: 5px;
}

.checkbox {
	position: relative;
	display: block;
	width: 20px;
	height: 20px;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
	cursor: pointer;
	z-index: 1;
}
.checkbox > input,
.checkbox > div {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.checkbox > input {
	margin: 0;
	padding: 0;
	z-index: 1;
}
.checkbox > div {
	z-index: 2;
	background: #fff;
	transition: background .2s;
	pointer-events: none;
}
.checkbox > div:after {
	content: '';
	position: absolute;
	top: 1px; left: 6px;
	transform: rotate(45deg);
	height: 12px;
	width: 6px;
	border-bottom: 3px solid #016f52;
	border-right: 3px solid #016f52;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.checkbox > input:checked ~ div:after {
	opacity: 1;
	visibility: visible;
}
.checkbox.checkbox-big {
	width: 40px;
	height: 40px;
}
.checkbox.checkbox-big > div:after {
	top: 1px; left: 12px;
	height: 24px;
	width: 12px;
	border-bottom: 6px solid #016f52;
	border-right: 6px solid #016f52;
}
.checkbox.checkbox-red > div:after {
	border-bottom-color: #EF5350;
	border-right-color: #EF5350;
}

/* Error */
.error {
	display: block;
	padding: 10px 15px;
	background: #FFEBEE;
	box-sizing: border-box;
}

/* Toaster */
.toaster {
	position: fixed;
	bottom: 0;
	left: 50%;
	width: 100%;
	padding: 0 15px;
	max-width: 700px;
	transform: translateX(-50%);
	box-sizing: border-box;
	z-index: 101;
}

.toaster .toast {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 15px 0;
	padding: 10px 15px;
	font-size: 1.2em;
	font-weight: 1.2em;
	box-sizing: border-box;
	cursor: pointer;
}
.toaster .toast.toast-ok { /* Grün */
	border: 1px solid #66BB6A;
	background: #C8E6C9;
}
.toaster .toast.toast-ok svg {
	fill: #66BB6A;
}
.toaster .toast.toast-update { /* Blau */
	border: 1px solid #29B6F6;
	background: #B3E5FC;
}
.toaster .toast.toast-update svg {
	fill: #29B6F6;
}
.toaster .toast.toast-warning { /* Orange */
	border: 1px solid #FFF3E0;
	background: #FFE0B2;
}
.toaster .toast.toast-warning svg {
	fill: #FFF3E0;
}
.toaster .toast.toast-error { /* Rot */
	border: 1px solid #EF5350;
	background: #FFCDD2;
}
.toaster .toast.toast-error svg {
	fill: #EF5350;
}

.toaster .toast .icon {
	flex: 0 0 35px;
	height: 35px;
	margin-right: 15px;
}
.toaster .toast .message {
	flex: 1;
	text-align: center;
}

/* Pagination */
.pagination {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	-moz-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	box-sizing: border-box;
}
.pagination.pagination-top {
	border-bottom: 1px solid #ccc;
}
.pagination.pagination-bottom {
	border-top: 1px solid #ccc;
}
.pagination .icon {
	display: block;
	width: 25px;
	height: 25px;
	fill: #000;
}
.pagination-element {
	padding: 5px;
	transition: background .2s;
	box-sizing: border-box;
	cursor: pointer;
}
.pagination-element.active {
	font-weight: 400;
}
.pagination-left .pagination-element:hover,
.pagination-right .pagination-element:hover,
.pagination-list .pagination-element:hover {
	background: #e1e2e1;
}
.pagination-left,
.pagination-right,
.pagination-list {
	flex: 0 1 auto;
	display: flex;
	align-items: stretch;
}
.pagination-list {
	flex: 1 0 auto;
	justify-content: center;
	margin: 0 5px;
	font-weight: 300;
}
.pagination-list .pagination-element {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px 7px;
}
.pagination-list .pagination-element.active {
	font-weight: bold;
}

/* Listen */
.list {

}
.list a {
	text-decoration: none;
}
.list a:hover {
	text-decoration: none;
}
.list .list-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	grid-gap: 10px;
	padding: 10px;
	text-decoration: none;
	transition: background .2s;
	box-sizing: border-box;
}
.list .list-item.list-item-empty {
	display: block !important;
	padding: 10px;
}
.list .list-item.active,
.list .list-item:hover {
	background: #e1e2e1;
}
.list .list-item > * {
	flex: 1;
	/*padding: 10px;*/
}

.list .list-item.green {
	border-left-color: #1B5E20;
}
.list .list-item.orange {
	border-left-color: #F57F17;
}
.list .list-item.red {
	border-left-color: #B71C1C;
}

.list .buttons {
	justify-content: flex-end;
	margin: 0;
}

.list.list-emails .list-item {
	display: grid;
	grid-template-areas:
		"subject to"
		"address address"
		"timestamp timestamp"
		"buttons buttons";
	grid-template-columns: 1fr max-content;
}
@media only screen and (min-width: 600px) {

	.list.list-emails .list-item {
		grid-template-areas:
			"subject to"
			"address timestamp"
			"buttons buttons";
		grid-template-columns: 1fr max-content;
	}

}
@media only screen and (min-width: 1250px) {

	.list.list-emails .list-item {
		grid-template-areas:
			"subject to address timestamp buttons";
		grid-template-columns: 1fr 75px 200px 175px 350px;
	}

}

.list-emails .date-item {
	padding: 15px;
	font-weight: 700;
	text-align: center;
	background: #e9e9e9;
}

.list-emails .email-hidden {
	color: #aaa;
}
.list-emails .subject,
.list-emails .address {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.list-emails .subject {
	grid-area: subject;
	flex: 1;
}
.list-emails .address {
	grid-area: address;
	flex: 0 0 200px;
}
.list-emails .to {
	grid-area: to;
	flex: 0 0 85px;
	font-weight: bolder;
	text-transform: uppercase;
}
.list-emails .timestamp {
	grid-area: timestamp;
	flex: 0 0 200px;
}
.list-emails .buttons {
	grid-area: buttons;
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.list-emails .subject .buttons {
	margin-top: 5px;
	justify-content: flex-start;
}
.list-emails .buttons-attachments {
	position: relative;
	flex: 0 0 160px;
	flex-wrap: wrap;
}
.list-emails .buttons-attachments .attachments-dropdown {
	position: absolute;
	top: 100%; left: 0px; right: 0px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	grid-gap: 10px;
	background: #e1e2e1;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	z-index: 1;
	box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
}
.list-emails .buttons-attachments .attachments-dropdown.active/*,
.list-emails .buttons-attachments:hover .attachments-dropdown*/ {
	opacity: 1;
	visibility: visible;
}
.list-emails .buttons-visibility {
	flex: 0 0 40px;
}
.list-emails .buttons-done {
	flex: 0 0 100px;
}

/*.list.list-emails .subject {
	flex: 2;
}*/

.list.list-ticket .list-item {
	display: grid;
	grid-template-areas:
		"ticket ticket"
		"customer customer"
		"status status";
	grid-template-columns: 1fr max-content;
}
@media only screen and (min-width: 600px) {

	.list.list-ticket .list-item {
		grid-template-areas:
		"ticket ticket"
		"customer status";
		grid-template-columns: 1fr max-content;
	}

}
@media only screen and (min-width: 1250px) {

	.list.list-ticket .list-item {
		grid-template-areas:
			"ticket customer status";
		grid-template-columns: 1fr 1fr 300px;
	}

	.list.list-ticket .list-item:hover {
		background: none;
	}

}

.list-ticket .list-item {
	padding: 0;
}
.list-ticket .ticket {
	grid-area: ticket;
	display: flex;
	align-items: center;
	grid-gap: 10px;
	padding: 10px;
	box-sizing: border-box;
}
.list-ticket .type {
	flex: 0 0 30px;
	padding: 0;
	width: 30px;
	height: 30px;
}
.list-ticket .name {
}
.list-ticket .customer {
	grid-area: customer;
	flex: 0 0 200px;
	align-self: stretch;
	display: flex;
	align-items: center;
	padding: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
}
.list-ticket a:hover {
	background: #e1e2e1;
}
.list-ticket .liefertermin {
	grid-area: liefertermin;
	flex: 0 0 110px;
	display: flex;
	align-items: center;
}
.list-ticket .liefertermin > span {
	margin-left: 5px;
}
.list-ticket .status {
	grid-area: status;
	flex: 0 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-items: stretch;
	justify-content: flex-end;
	box-sizing: border-box;
	padding: 10px;
	box-sizing: border-box;
}
.list-ticket .dropdown-wrapper {
	width: 100%;
}
.list-ticket .select {
	width: 100%;
	color: #000;
	font-weight: bolder;
}
.list-ticket .status .status-group {
	min-width: 60px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	justify-content: center;
	margin: 5px;
	padding: 5px;
	box-sizing: border-box;
	color: #000 !important;
	border-radius: 2px;
}
.list-ticket .status .status-title {
	/*margin-right: 5px;Ü*/
	font-weight: bolder;
	font-size: .8em;
}
.list-ticket .status .dot {
	width: 10px;
	height: 10px;
	background: #ccc;
	border-radius: 50%;
}
.list-ticket .status .status-group.green {
	background: #C8E6C9;
	background: #A5D6A7;
}
.list-ticket .status .status-group.orange {
	background: #FFE0B2;
	background: #FFCC80;
}
.list-ticket .status .status-group.red {
	background: #FFCDD2;
	background: #EF9A9A;
}
.list-ticket .status .status-group.grey {
	opacity: .5;
}


.list.list-customers .list-item {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
}
@media only screen and (min-width: 600px) {

	.list.list-customers .list-item {
		flex-direction: row;
	}

	.list.list-customers .kunden-nr {
		flex: 0 0 75px;
	}

}

.list-tasks .list-item {
	display: flex;
	align-items: center;
}
.list-tasks .list-item-done {
	opacity: .5;
}
.list-tasks .list-item .task {
	flex: 1 0;
	min-width: 0;
	cursor: pointer;
}
.list-tasks .list-item .task .content {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.list-tasks .list-item .task.active .content {
	white-space: break-spaces;
	overflow: unset;
	text-overflow: unset;
}
.list-tasks .list-item .email {
	flex: 0 1 100px;
	display: flex;
	min-width: 0;
}
.list-tasks .list-item .user {
	flex: 0 1 150px;
	min-width: 0;
}
.list-tasks .list-item .buttons {
	flex: 0 1 250px;
	margin: 0;
}

/* Formulare */
.form {
	display: grid;
	grid-template-columns: 1fr;
	/*grid-template-rows: 1fr;*/
	column-gap: 15px;
	row-gap: 15px;
	align-items: center;
	padding: 15px;
	box-sizing: border-box;
}
.form .dropdown-wrapper,
.form .dropdown-wrapper .select {
	width: 100%;
	max-width: 100%;
}
.form-label {
	/*grid-column: label;*/
	font-weight: bolder;
}
.label-required {
	font-weight: bolder;
	color: #e53935;
}
.form-element {
	/*grid-column: element;*/
}
.form-element.full-width {
	grid-column: 1/-1;
}
.form-element .input {
	width: 100%;
	max-width: 100%;
}
.form-element .textarea {
	width: 100%;
	max-width: 100%;
}
.form-element.form-element-checkbox {
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-gap: 10px;
}
.form-button {
	/*grid-column: button;*/
}

@media only screen and (min-width: 800px) {

	.form {
		/*grid-template-columns: [label] max-content [element] 1fr;*/
		grid-template-columns: max-content 1fr;
	}
	.form-label {
		text-align: right;
	}

}

.form-empty {
	padding: 15px;
	box-sizing: border-box;
}

.form-contact {
	grid-template-columns: repeat(4, max-content 1fr) min-content;
}

.form.form-files {
	grid-template-columns: max-content 1fr;
}
.form.form-task {
	grid-template-columns: max-content 1fr;
}
.form.form-email-history-item {
	grid-template-columns: max-content 1fr;
}

/* Formular Dropdown */
.dropdown-wrapper {
	position: relative;
}
.dropdown-wrapper .input {
	position: relative;
	z-index: 2;
}
.dropdown-wrapper .input.selected {
	color: #43a047;
}
/*.dropdown-wrapper .input.no-results {
	color: #e53935;
}*/
.dropdown-wrapper .cancel {
	position: absolute;
	top: 5px; right: 5px;
	width: 25px;
	height: 25px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	z-index: 2;
}
.dropdown-wrapper .cancel.active {
	opacity: 1;
	visibility: visible;
}
.dropdown-list {
	position: absolute;
	top: 100%;
	left: 0; right: 0;
	width: 100%;
	max-height: 400px;
	background: #eee;
	overflow: auto;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14);
	z-index: 3;
	transition: opacity .2s, visibility .2s;
	opacity: 0;
	visibility: hidden;
}
.dropdown-list.active {
	opacity: 1;
	visibility: visible;
}
.dropdown-list .dropdown-item {
	display: block;
	padding: 7px 10px;
	cursor: pointer;
	transition: background .2s;
	box-sizing: border-box;
}
.dropdown-list .dropdown-item-add {
	font-weight: bolder;
	font-size: .9em;
}
.dropdown-list .dropdown-item:hover {
	background: #e1e2e1;
}

/* Übersicht */
.overview-table {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 10px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
}
.overview-table .item {
	display: flex;
	grid-gap: 10px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	transition: background .2;
	cursor: pointer;
}
.overview-table .item:hover {
	background: #eee;
}
.overview-table .status {
	font-size: 1.5em;
	font-weight: bolder;
}
.overview-table .name {
	/*
	font-size: .8em;
	font-weight: lighter;
	*/
	font-size: 1.25em;
	font-weight: bolder;
	min-height: 31px;
}
.overview-table .count {
	font-size: 1.25em;
	font-weight: bolder;
}

/* Auftrag */
.wrapper-ticket {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: min-content min-content min-content 1fr;
	grid-auto-rows: max-content;
	grid-template-areas:
		"heading heading"
		"details details"
		"history customer"
		"bestellformular bestellformular"
		;
}
.wrapper-ticket .ticket-heading {
	grid-area: heading;
}
.wrapper-ticket .ticket-details {
	grid-area: details;
}
.wrapper-ticket .ticket-history {
	grid-area: history;
}
.wrapper-ticket .ticket-customer {
	grid-area: customer;
}
.wrapper-ticket .ticket-notes {
	grid-area: notes;
}
.wrapper-ticket .bestellformular-wrapper {
	grid-area: bestellformular;
}

.wrapper-ticket .ticket-details .form-ticket {
	grid-template-columns: max-content 1fr max-content 1fr max-content;
	grid-template-areas:
		"label_name element_name element_name element_name element_status element_status"
		"label_customer element_customer label_ab_nummer element_ab_nummer label_rg_nummer element_rg_nummer";
}
.wrapper-ticket .ticket-details .form-ticket .input {
	width: 100%;
}
.wrapper-ticket .ticket-details .form-ticket .label_name {
	grid-area: label_name;
}
.wrapper-ticket .ticket-details .form-ticket .element_name {
	grid-area: element_name;
}
.wrapper-ticket .ticket-details .form-ticket .label_customer {
	grid-area: label_customer;
}
.wrapper-ticket .ticket-details .form-ticket .element_customer {
	grid-area: element_customer;
}
.wrapper-ticket .ticket-details .form-ticket .label_auftrags_nummer {
	display: none;
	grid-area: label_auftrags_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .element_auftrags_nummer {
	display: none;
	grid-area: element_auftrags_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .label_ab_nummer {
	grid-area: label_ab_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .element_ab_nummer {
	grid-area: element_ab_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .label_rg_nummer {
	grid-area: label_rg_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .element_rg_nummer {
	grid-area: element_rg_nummer;
}
.wrapper-ticket .ticket-details .form-ticket .element_status {
	grid-area: element_status;
}

.ticket-history-list-item {
	display: grid;
	grid-gap: 5px;
	grid-template-areas:
		"main"
		"footer";
	margin: 10px;
	padding: 10px 15px;
	background: #eaeaea;
	box-sizing: border-box;
}
.ticket-history-list-item main {
	grid-area: main;
}
.ticket-history-list-item footer {
	grid-area: footer;
	font-size: .9em;
	font-style: italic;
}
.ticket-history-list-item.note {
	box-shadow: 5px 0 0px 0px #7E57C2 inset;
}
.ticket-history-list-item.note main {
	font-weight: bolder;
}
.ticket-history-list-item .button {
	grid-area: button;
}
.ticket-history-list-item-email {
	display: grid;
	align-items: center;
	grid-template-columns: 1fr max-content;
	grid-template-areas:
		"main button"
		"footer button";
}

/* Formular Auftrag */
.form-ticket {
	/*grid-template-columns: max-content 300px min-content min-content;*/
}

.form-schrifthoehe {
	grid-template-columns: max-content 100px;
	grid-template-areas: "l0 i0" "l1 i1" "l2 i2" "l3 i3" "l4 i4" "l5 i5";
}
.form-schrifthoehe .l0 {
	grid-area: l0;
}
.form-schrifthoehe .l1 {
	grid-area: l1;
}
.form-schrifthoehe .l2 {
	grid-area: l2;
}
.form-schrifthoehe .l3 {
	grid-area: l3;
}
.form-schrifthoehe .l4 {
	grid-area: l4;
}
.form-schrifthoehe .l5 {
	grid-area: l5;
}
.form-schrifthoehe .i0 {
	grid-area: i0;
}
.form-schrifthoehe .i1 {
	grid-area: i1;
}
.form-schrifthoehe .i2 {
	grid-area: i2;
}
.form-schrifthoehe .i3 {
	grid-area: i3;
}
.form-schrifthoehe .i4 {
	grid-area: i4;
}
.form-schrifthoehe .i5 {
	grid-area: i5;
}
@media only screen and (min-width: 800px) {

	.form {
		/*grid-template-columns: max-content 300px min-content min-content;*/
		grid-template-columns: max-content 1fr max-content 1fr;
	}

	.form-ticket .customer,
	.form-ticket .name,
	.form-ticket .schablone {
		grid-column: 2 / 5;
	}

	.form-anzahl-namen {
		grid-template-columns: max-content 100px max-content 100px;
	}

	.form-zweitschrift {
		grid-template-columns: max-content 500px;
	}
	.form-zweitschrift .zweitschrift-desc {
		grid-column: 2 / 2;
	}

	.form-zeilen {
		grid-template-columns: max-content 300px max-content;
	}
	.form-zeilen label {
		grid-column: 1 / 2;
	}
	.form-zeilen .input-wrapper {
		grid-column: 2 / 3;
	}
	.form-zeilen .zeilen-senkrecht {
		grid-column: 3 / 3;
	}

	.form-schrifthoehe {
		grid-template-areas: "l0 l1 l2 l3 l4 l5" "i0 i1 i2 i3 i4 i5";
		grid-template-columns: max-content 100px 100px 100px 100px 100px;
	}

	.form-schriftlaenge {
		grid-template-columns: max-content 100px max-content 100px min-content 100px;
	}

	.form-schreibweise {
		grid-template-columns: 150px max-content max-content max-content max-content max-content max-content;
		grid-template-columns: 150px max-content 150px max-content 150px max-content 150px;
		row-gap: 30px;
	}
	.form-schreibweise .la-pieta-offen {
		grid-column: 1 / 3;
		text-align: right;
	}
	.form-schreibweise .la-pieta-geschlossen {
		grid-column: 5 / 7;
		text-align: right;
	}
	.form-schreibweise .la-pieta-offen-normal {
		grid-column: 3 / 3;
	}
	.form-schreibweise .la-pieta-geschlossen-schmal {
		grid-column: 7 / 7;
	}
	.form-schreibweise .checkbox-image {
		height: 20px;
	}

	.form-material {
		grid-template-columns: max-content 120px 120px 120px 120px 1fr;
	}
	.form-material-guss {
		grid-template-columns: max-content 120px 120px 120px 120px 120px 120px 120px;
	}
	.form-material .checkbox-wrapper {
		justify-content: flex-end;
	}
	.form-material .patina {
		text-align: right;
	}
	.form-material .edelstahl {
		justify-content: center;
		grid-column: 6 / 6;
		grid-row: 1 / 3;
	}

	.form-schriftzuege {
		grid-template-columns: max-content max-content max-content max-content;
		grid-template-columns: max-content 100px 1fr 1fr;
	}
	.form-schriftzuege-guss {
		grid-template-columns: max-content 100px max-content 1fr max-content 100px 100px 1fr;
	}

	.form-duebel {
		grid-template-columns: 100px max-content max-content max-content max-content max-content max-content max-content;
	}
	.form-duebel .checkbox-wrapper {
		justify-content: flex-end;
	}
	.form-duebel .duebel {
		grid-row: 1 / 3;
	}

	.form-ornamente {
		grid-template-columns: max-content max-content max-content max-content max-content max-content max-content;
		grid-template-columns: 250px max-content 100px max-content 100px 1fr 1fr;
	}
	.form-ornamente-guss {
		grid-template-columns: 250px max-content 1fr 100px max-content 100px max-content 100px 1fr;
	}
	.form-ornamente .checkbox-wrapper {
		justify-content: center;
	}

	.form-bemerkungen {
		grid-template-columns: 1fr max-content;
		align-items: flex-start;
	}

}


/* Auftrag */
.ticket-status {
	display: flex;
	align-items: center;
	padding: 5px;
	box-sizing: border-box;
	transition: background .2s;
	/*cursor: pointer;*/
}
.ticket-status:hover {
	background: #e1e2e1;
}
.ticket-status .text {
	flex: 1;
	margin: 5px;
}
.ticket-status .category {
	font-weight: bolder;
	text-transform: uppercase;
}
.ticket-status .category:after {
	content: ':';
	margin-right: 5px;
}
.ticket-status .title {
	text-transform: uppercase;
}
.ticket-status .description {
	font-size: .9em;
}
.ticket-status .timestamp {
	margin: 5px;
}
.ticket-status .checkbox {
	margin: 5px;
}
.ticket-status .button {
	margin: 5px;
	margin-left: 15px;
}

.ticket-email {
	padding: 10px;
	box-sizing: border-box;
}
.ticket-customer-info {
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-gap: 5px;
	align-items: center;
	padding: 15px;
	box-sizing: border-box;
}
.ticket-customer-info .address,
.ticket-customer-info p {
	grid-column: 1 / -1;
}
.ticket-customer-info .icon {
	width: 30px;
	height: 30px;
}

/* E-Mails */
.email {
}
.email > hr,
.email-header,
.email-body {
	margin: 15px;
}
.email-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin-bottom: 10px;
}
.email-info {
	flex: 1;
	display: grid;
	grid-template-columns: max-content 1fr;
	grid-template-rows: max-content max-content max-content max-content;
	column-gap: 15px;
	row-gap: 5px;
	font-size: 1.1em;
}
.email-info .email-label {
	font-weight: bolder;
}
.email-attachments {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: -5px;
}
.email-attachment {
	display: flex;
	align-items: center;
	margin: 5px;
	max-width: 100%;
}
.email-attachment > .button {
	flex-shrink: 0;
}
.email-attachment > span {
	flex: 1;
	margin-right: 5px;
	font-size: .9em;
	text-align: right;
	word-break: break-all;
	/*
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	*/
}
.email-body {
	margin-top: 10px;
}
.email-body-preview {
	position: relative;
	cursor: pointer;
	max-height: 600px;
	overflow: auto;
}
.email-body-preview-closed {
	max-height: 100px;
	overflow: hidden;
}
.email-body-preview-closed::after {
  content:'';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;    
  background: linear-gradient(to bottom, transparent 0%, #f5f5f5 100%);
}

.email-answer {
	grid-template-columns: max-content 1fr;
}
.email-answer .email-answer-from {
	max-width: 400px;
}
.email-answer .email-answer-to {
	max-width: 400px;
}
.email-answer .textarea {
	height: 200px;
}

.attachment-upload-list {
	
}
.attachment-upload-list li {
	display: flex;
	align-items: center;
}
.attachment-upload-list .name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}
.attachment-upload-list .size {
	flex: 0 0 125px;
}
.attachment-upload-list .progress {
	flex: 1;
}
.attachment-upload-list .status {
	flex: 0 1;
}
.attachment-upload-list .buttons {
	flex: 0 1;
	margin: 0;
}

/* Attachments List */
.attachment-pages-wrapper {
	flex: 1;
	position: relative;
}
.attachment-pages {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
}
.attachment-page {
	position: relative;
	display: block;
	width: 100%;
}
.attachment-page .icon {
	position: absolute;
	top: 15px; right: 15px;
	width: 50px;
	height: 50px;
	padding: 10px;
	background: #fff;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.16);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s;
	box-sizing: border-box;
	cursor: pointer;
}
.attachment-page:hover .icon {
	opacity: 1;
	visibility: visible;
}
.attachment-page img {
	display: block;
	width: 100%;
	height: auto;
}
.attachment-page img.rotate {
	transform: rotate(180deg);
}

/* Overlay */
.overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
}
.overlay.overlay-left {
	width: auto;
	left: 0;
	right: 50%;
}
.overlay.overlay-right {
	width: auto;
	left: 50%;
	right: 0;
}
.overlay.overlay-moveable {
	user-select: none;
	pointer-events: none;
}
.overlay.overlay-moveable > * {
	pointer-events: auto;
}
.overlay.overlay-moveable .heading {
	cursor: move;
}
.overlay .overlay-background {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	z-index: 1;
}

.overlay-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #f5f5f5;
	z-index: 2;
}

/* Attachment Overlay */
.overlay-attachment {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	background: #f5f5f5;
	transform: translateX(-50%);
	z-index: 2;
}
.overlay-attachment .attachment-pages-wrapper {
	flex: 1;
	position: relative;
}

/* Ticket Overlay */
.overlay-ticket {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	flex-wrap: nowrap;
	background: #f5f5f5;
	z-index: 2;
}
.overlay-ticket .bestellformular-wrapper {
	flex: 0 0 50%;
	align-self: stretch;
	position: relative;
	overflow: auto;
}
.overlay-ticket .attachment-pages-wrapper {
	flex: 0 0 50%;
	align-self: stretch;
	position: relative;
}
.overlay-ticket .email-wrapper {
	flex: 0 0 50%;
	align-self: stretch;
	padding: 10px;
	box-sizing: border-box;
}

.overlay-ticket-minimal {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	max-width: 100%;
	background: #f5f5f5;
	z-index: 2;
}

.overlay-moveable .overlay-ticket-minimal {
	box-shadow: 0 4px 8px rgba(0,0,0,0.46);
}

@media only screen and (min-width: 800px) {

	.heading h1,
	.heading h2 {
		flex: 1;
	}

	#menu {
		display: none;
	}

	#navigation {
		position: static;
		display: flex;
		transform: none;
		min-width: 0;
		max-width: none;
		visibility: visible;
		opacity: 1;
		z-index: 1;
		box-shadow: none;
	}
	#navigation a {
		padding: 7px 10px;
	}

	.icon-text {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.icon-text .icon {
		margin: 0 10px 0 0;
	}
	.icon-text .text h2 {
		text-align: left;
	}

	.email-attachments {
		max-width: 50%;
	}

}

@media only screen and (min-width: 1250px) {

	header .wrapper {
		padding: 0;
	}

}