body { background: #f4f7fc; }

/* START Datatables */
.prettytable {
	font-size: 16px;
	margin-top: 1.2em; margin-bottom: 2em;
	width: 100%!important;
}
.prettytable .actions a, .prettytable .action a {
	color: #fff;
	margin-left: 3px;
}
.prettytable .actions a:first-of-type, .prettytable .action a:first-of-type { margin-left: 0; }
.prettytable .actions .hiddenactions {
	display: none;
	position: absolute;
	width: 270px;
	right: 53px;
}
.prettytable .actions i, .prettytable .action i {
	background: #2196f3;
	border-radius: 100px;
	font-size: 25px!important;
	vertical-align: middle;
	height: 40px;
	width: 40px;
	line-height: 40px;
	text-align: center;
}
.prettytable .actions i:hover, .prettytable .action i:hover { background: #2056a3; }
.prettytable .miniactions i {
	background: #2056a3;
	border-radius: 100px;
	color: #fff;
	font-size: 20px!important;
	vertical-align: middle;
	height: 30px;
	width: 30px;
	line-height: 30px;
	text-align: center;
}
.prettytable .miniactions i:hover { background: #2196f3; }
.prettytable.dtable:not(.fixedHeader-floating) { width: 100%!important; }
.prettytable tr.inactive { text-decoration: line-through; }
.prettytable tr.inactive, .prettytable tr.inactive > * { color: #AAA; }
.prettytable tr > * {
	border-bottom: 1px solid rgba(224, 224, 224, 1);
	box-sizing: border-box!important;
	color: rgba(0, 0, 0, 0.87);
	font-weight: 400; font-family: "Roboto", "Helvetica", "Arial", sans-serif; font-size: 0.9125rem;
	line-height: 1.15rem;
	padding: 8px 24px;
	text-align: center;
}
.prettytable tr > *:first-child { padding-left: 5px; }
.prettytable tr > *:last-child { padding-right: 5px; }
.prettytable tr > *.aleft { text-align: left; }
.prettytable tr > *.aright { text-align: right; }
.prettytable tr > *.nowrap { white-space: nowrap; }
.prettytable thead th {
	color: #333;
	font-size: 0.8rem; font-weight: 500;
}
.prettytable tbody tr:hover { background: #f5f7fc; }
.prettytable tbody tr[data-id]:hover { cursor: pointer; }
.prettytable .idcol, .prettytable .idcol > span { width: 45px!important; }
.prettytable .idcol > span { display: inline-block; }
.prettytable .timecol { width: 130px!important; }
.prettytable tbody i.material-icons, #article .dataTables_wrapper i.material-icons { font-size: 1.2em; }

#article .dataTables_wrapper {
	margin: 2em 0;
	width: 100%!important;
}
.dataTables_wrapper .bottom { margin-top: 1em; }
#article .dataTables_wrapper .dataTables_filter {
	float: right!important;
	margin-bottom: 0.5em;
}
#article .dataTables_wrapper thead select { display: block; }
#article .dataTables_wrapper .dataTables_info {
	float: left!important;
	padding: 0;
}
#article .dataTables_wrapper .dataTables_length { float: right!important; }
#article .dataTables_wrapper .dataTables_filter, #article .dataTables_wrapper .dataTables_info, #article .dataTables_wrapper .dataTables_length { font-size: 1rem; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate { color: #001722; }
#article .dataTables_wrapper .dataTables_paginate {
	float: none;
	padding-top: 3em;
	text-align: center;
}
#article .dataTables_wrapper .dataTables_paginate i { vertical-align: -7px; }
#article .dataTables_wrapper .dataTables_paginate .paginate_button {
	background: none!important;
	box-shadow: none!important;
	border: none!important; border-bottom: 3px solid #f5f5f5!important;
	color: #4a4a4a!important;
	cursor: pointer;
	padding-bottom: 4px!important;
}
#article .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: none!important;
	border: none!important; border-bottom: 3px solid #DDD!important;
}
#article .dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background: none!important;
	border: none!important; border-bottom: 3px solid #2296f4!important;
}
#article .dataTables_wrapper .dataTables_paginate .paginate_button:focus {
	border: none!important; border-bottom: 3px solid #2296f4!important;
	outline: none;
}
#article .dataTables_wrapper .dataTables_paginate .paginate_button.next, #article .dataTables_wrapper .dataTables_paginate .paginate_button.previous { border: none!important; }
#article .dataTables_wrapper .dataTables_paginate .paginate_button.next:hover, #article .dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover {
	background: none;
	color: #42ac62!important;
}
#article .dataTables_wrapper .dataTables_paginate .paginate_button.next.disabled, #article .dataTables_wrapper .dataTables_paginate .paginate_button.previous.disabled {
	color: #DDD!important;
	cursor: not-allowed;
}
#article .dataTables_wrapper .dataTables_scrollHead .prettytable thead tr > *, #article .dataTables_wrapper .dataTables_scrollBody .prettytable tbody tr > * { padding: 8px 10px!important; }
#article table.dataTable.dtr-inline.collapsed > tbody  tr[role="row"] > td:first-child:before, #article table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
	background-color: #2196f3;
	box-shadow: none!important;
	border: none!important;
	display: inline-block!important;
	font-size: 16px;
	line-height: 16px;
	height: 16px; width: 16px;
	top: 50%; right: 0; left: 5px;
	transform: translateY(-50%);
}
#article .dataTables_wrapper td.child { text-align: left; }
#article .dtr-details {
	padding-left: 40px;
	text-align: left;
}
#article table.dataTable>tbody>tr.child span.dtr-title { display: block; }
/* END Datatables */

/* START addButton */
.addbutton {
	background: #2296f4;
	border-radius: 100px;
	-webkit-box-shadow: 2px 5px 10px 0px rgba(0,0,0,0.5);
	-moz-box-shadow: 2px 5px 10px 0px rgba(0,0,0,0.5);
	box-shadow: 2px 5px 10px 0px rgba(0,0,0,0.5);
	height: 50px;
	position: fixed; right: 25px; bottom: 115px; z-index: 2;
	width: 50px;
	text-align: center;
}
.addbutton:hover { background: #2056a3; }
.addbutton i {
	color: #fff;
	font-size: 1.75em;
	line-height: 50px;
}
.movementbutton { right: 90px; }
.archivebutton { right: 90px; }

@media screen and (min-width: 1920px) {
	.addbutton { right: 75px; }
	.movementbutton { right: 145px; }
	.archivebutton { right: 145px; }
}
@media screen and (max-width: 585px) {
	.addbutton { bottom: 100px; }
}
/* END addButton */

.md-checkbox label { vertical-align: baseline; }

.msg h2, .msgerror h2 { 
	text-align:	left; 
	margin: 2em 0;
}

#header {
	background: #FFF;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
}
#topheader {
	display: table;
	width: 100%;
}
#topheader > * {
	display: table-cell;
	padding: 0.5em 0;
	vertical-align: middle;
}
#topheader > *:nth-child(1) { 
	padding-right: 1em;
	width: 240px;
}
#topheader > *:nth-child(2) { text-align: right; }
#showmobilemenu { 
	display: none;
	margin-right: 20px;
	vertical-align: 2px; 
}
#showmobilemenu i { font-size: 1.8em; }
#logo {
	font-size: 1.5em;
    text-decoration: none;
    font-weight: bold;
}
#loginbtn {
	background: #66bb6a;
	box-sizing: border-box;
	padding: 12px;
	min-width: 0;
}
#logo .gemeinde {
	font-size: 0.5em;
	color: #2056a4;
}
#nav-container { background: #2196f3; }
#nav ul { display: table; }
#nav > ul > li {
	display: table-cell;
	position: relative; z-index: 1;
	vertical-align: middle;
}
#nav > ul > li + li { border-left: 1px solid transparent; }
#nav ul li a { 
	color: #FFF; 
	display: block;
	padding: 1em 1.25em;
	white-space: nowrap;
}
#nav ul li a > i {
	margin-left: 5px; margin-right: -8px; margin-top: -4px;
	vertical-align: -6px;
}

#nav li.active > a, #nav li:hover > a { 
	background: #2056a4;
	text-decoration: none;
}
#nav ul ul {
	background: #FFF;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
	display: none;
	font-size: 0.95em;
	position: absolute; z-index: 1; left: 0; top: 52px;
}
#nav ul li:nth-of-type(6) ul { right: 0; left: auto; }
#nav ul ul li + li { margin-top: 1px; }
#nav ul ul a { 
	border-left: 4px solid transparent; border-right: 4px solid transparent;
	color: #001722;
	padding-top: 0.75em; padding-bottom: 0.5em;
}
#nav ul ul li.active > a, #nav ul ul a:hover {
	background: rgba(32, 86, 163, 0.25);
	border-left-color: #2296f4;
}

#main { 
	font-size: 0.95em;
	margin-top: 40px;
}
#article {
	background: #FFF;
	border-radius: 1px;
	box-shadow: 0 1px 8px 0 rgba(0,0,0,0.2);
	min-height: 200px;
	margin-top: 20px; margin-bottom: 40px;
	padding: 1.65em;
}
#article > *:first-child { margin-top: 0; }
#article > *:last-child { margin-bottom: 0; }

#article .mediumform { max-width: 1200px; }
#article .smallform { max-width: 900px; }

#article .box {
	background: #f7f8fa;
	box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
	padding: 1em;
}
#article .box h2 { margin-top: 0; }
#article .box .field input, #article .box .field select { background: #f7f8fa!important; }

#overview-container { 
	display: table;
	min-height: calc(100vh - 300px);
	width: 100%;
}
#overview-container > * {
	display: table-cell;
	vertical-align: top;
}
#overview-preview {
	padding-left: 30px;
	width: 500px;
}
#overview-preview.fixed > div { 
	position: fixed; top: 10px;
	width: 500px;
}
#overview-preview .video-container { overflow: visible; }
#overview-preview .video-container iframe { 
	min-height: calc(100vh - 300px);
	overflow: visible;
}
@media screen and (max-width: 1300px) {
	#overview-preview { display: none; }
}

#card-container-filter { text-align: right; }
#card-container-filter > * { 
	display: inline-block; 
	width: 100%; max-width: 300px;
}

#add-container { margin: 2em 0 20px; }
#add-container a { 
	background: none;
	border: 1px dashed #CCC;
	color: #9cabba;
	padding: 1rem; 
}
#add-container a:hover { border-color: #9cabba; }

.mdc-card, #add-container a {
	box-sizing: border-box;
	box-shadow: 0 0.5px 1px 0 rgba(0,0,0,0.2);
	width: 100%;
}
.mdc-card { 
	background: #f7f8fa;
	min-height: 250px;
	padding: 2rem;
}
.mdc-card.inactive { text-decoration: line-through; }
.mdc-card:hover, #add-container a:hover { background: #fafdff; box-shadow: 0 1px 3px 0 rgba(0,0,0,0.2); }
.mdc-card.nopadding { padding: 0; }
.mdc-card + .mdc-card { margin-top: 20px; }
.mdc-card h2 { margin-top: 0; }
a.mdc-card, .mdc-card a {
	color: #001722;
	text-decoration: none;
}
.mdc-card.minmalistic {
	min-height: 0; 
	padding: 0;
}
.mdc-card.minmalistic > .liketable > * {
	box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; 
	padding: 1rem;
	max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mdc-card.minmalistic > .liketable > *.controlcol { 
	text-align: center;
	width: 60px; min-width: 60px;
}
.mdc-card.minmalistic .controlcol a:hover { color: #a24f49; }

#footer {
	background: #2196f3;
	color: #fff;
	padding: 2em 0;
}
#footer a {
	color: #fff;
	text-decoration: none;
}
#footer a:hover { text-decoration: underline; }
#footer #nav_copyright { float: left; display: inline-block; }
#footer #languageselect { float: right; display: inline-block; }
#footer::after {
	content: '';
	clear: both;
	display: block;
	float: none;
}

.superadmin-municipality-block {
	display: inline-block;
	float: right;
	margin-top: -5px;
}

.autocomplete {
	/*the container must be positioned relative:*/
	position: relative;
	display: inline-block;
	width: 100%;
}
.autocomplete-items {
	position: absolute;
	border: 1px solid #d4d4d4;
	border-bottom: none;
	border-top: none;
	z-index: 99;
	/*position the autocomplete items to be the same width as the container:*/
	top: 100%;
	left: 0;
	right: 0;
}
.autocomplete-items div {
	padding: 10px;
	cursor: pointer;
	background-color: #fff;
	border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
	/*when hovering an item:*/
	background-color: #e9e9e9;
}
.autocomplete-active {
	/*when navigating through the items using the arrow keys:*/
	background-color: DodgerBlue !important;
	color: #ffffff;
}

@media screen and (min-width: 886px) {
	#nav > ul > li:hover > ul { display: block; }
	#nav ul li:hover > a > i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
	}
}
@media screen and (max-width: 885px) {
	#showmobilemenu { display: inline-block; }
	
	#nav {
		background: #2296f4;
		height: calc(100vh - 57px);
		margin-top: 0;
		overflow-y: auto; overflow-x: hidden;
		padding: 0;
		position: fixed; z-index: 2; top: 45px; left: -885px;;
		transition: left 0.5s ease-in-out; -webkit-transition: left 0.5s ease-in-out; -moz-transition: left 0.5s ease-in-out; -o-transition: left 0.5s ease-in-out;
		width: 100%;
	}
	body.mobilemenu #nav { left: 0; }
	#nav ul, #nav > ul > li { display: block; }
	#nav > ul > li + li {
		border-left: none;
		margin-top: 1px; 
	}
	#nav ul ul { position: relative; top: auto; }
	#nav > ul > li.active > ul { display: block; }
	#nav > ul > li > a { position: relative; z-index: 1; }
	#nav > ul > li > a i { 
		position: absolute; z-index: 1; right: 1.25em; top: 58%;
		transform: translateY(-50%);
	}
	#nav > ul > li.active > a i {
		-moz-transform: rotate(180deg);
		-webkit-transform: rotate(180deg);
		-o-transform: rotate(180deg);
		-ms-transform: rotate(180deg);
		transform: rotate(180deg);
		top: 34%;
	}
	#nav ul ul a { padding-left: 1.75em; }
	#nav ul li a { height: auto; }
	
	h1, .likeh1 { 
		font-size: 1.8em;
		line-height: 1em;
		margin-bottom: 1.3em;
	}
	
	#logo { vertical-align: 8px; }
}
@media screen and (max-width: 585px) {
	#main { margin-top: 20px; }

	#article { padding: 1.15em; }

	.prettytable tr > * {
		font-size: 0.8rem;
	}

	#article .dataTables_wrapper .dataTables_info {
		float: none!important;
		text-align: center;
	}
	#article .dataTables_wrapper .dataTables_length {
		float: none!important;
		text-align: center;
		margin-top: 0.5em;
	}

	.superadmin-municipality-block {
		display: block;
		float: none;
	}
	.superadmin-municipality-block select {
		width: 100%;
		margin-top: 1em;
	}
}