table.list .row:last-child {
	border-bottom: 2px solid #f0f0f0;
	border-collapse: collapse;
}

table.list .row:nth-child(even) {
    background: #fff;
}

table.list .row:nth-child(odd) {
    background: #f0f0f0;
}

table.list .headline.row {
    font-weight: bold;
    background: #ddd;
}

table.list .row td {
    vertical-align: top;
    padding: 5px;
    padding-left: 5px;
    border: none;
}

.pointer {
	cursor: pointer;
}

table.list {
    border: none; 
    border-collapse: collapse;
}

table.list [class*='col-'] {
    padding: 3px;
}

td.bool {
	text-align: center;
}

.tablequery table {
	border-spacing: 0px;
	border-collapse: collapse;
}

.tablequery tr {
	border-collapse: collapse;
}

.tablequery th, .tablequery .filter-row td {
	border-top: 1px solid #c6c6c6;
	border-left: 1px solid #f4f4f4;
	border-right: 1px solid #f4f4f4;
	background-color: #eaeaea;
	cursor: pointer;
}

.tablequery th, .tablequery td {
	margin: 0px;
	padding: .5em .7em;
	text-overflow: ellipsis;
	border-bottom: 1px solid #c6c6c6;
}

.tablequery th .sort:after {
	content:  "\e5c5";
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	color: #404040;
	font-size: 24px; 
	vertical-align: middle;
	margin-right: -5px;
}

.tablequery th .desc:after {
	content: "\e5c5";
}
.tablequery th .asc:after {
	content: "\e5c7";
}
.tablequery th:hover .desc:after {
	content: "\e5c7";
	color: #404040;
}
.tablequery th:hover .asc:after {
	content: "\e5c5";
	color: #404040;
}
.tablequery th .level2:after {
	color: #808080;
}
.tablequery th .level3:after {
	color: #a0a0a0;
}
.tablequery .filter-row td {
	background-color: #eaeaea;
}
.tablequery .filter-row td {
	padding: .5em .2em;
}
.tablequery .filter-row td div {
	width: auto;
}

.tablequery td input, .tablequery select {
	width: 100%;
	padding: 5px;
}
.tablequery select {
	border: 1px solid #dadada;
}

.tablequery .pagination, .tablequery .actions {
	padding-top: 10px; 
}

.tablequery td.int, .tablequery td.float, .tablequery td.date, .tablequery td.datetime, .tablequery td.time {
	text-align: center;
}

.pagination select, .pagination button, .actions select, .actions button, .actions-button {
	height: 33px;
	margin-right: 5px;
	border: 1px solid #dadada;
	min-width: 33px;
}
.actions-button {
	display: inline;
}
.pagination button, .actions button, .actions-button {
	padding: 5px;
	text-align: center;
	background-color: white;
	cursor: pointer;
}
.pagination button i, .actions button i, .actions-button i {
	vertical-align: middle;
}
.actions button img, .actions-button img {
	height: 24px;
	width: auto;
	opacity: 0.7;
	vertical-align: middle;
	margin-right: 5px;
}
.pagination button:hover, .actions button:hover, .actions-button:hover {
	background-color: #eee;
}
.pagination button:disabled {
	background-color: white;
	color: #888;
	cursor: default;
}
.pagination button.active {
	border-color: #888;
	background-color: #888;
	color: white;
	font-weight: bold;
}

.pagination select {
	width: auto;
}

.tablequery tr.pointer:hover td {
	background-color: rgba(0,0,0,0.01);
}

.list input[type=text].list, .list input[type=date].list, .list input[type=time].list, .list input[type=password].list, .list select.list, .list input[type=file].list + label, .list textarea.list  {
	margin: 2px;
	width: 300px;
}

.list input[type=date].list.datetime, .list input[type=time].list.datetime  {
	width: 148px;
}

.list .row td.edit-label {
	padding-top: 6px;
}

.nowrap {
    white-space: nowrap;
    white-space: pre;
    white-space: -moz-pre-wrap; /* Firefox */
    white-space: -o-pre-wrap; /* Opera */
    white-space: pre-wrap; /* Chrome */
    word-wrap: break-word; /* IE */
}

a.model {
    text-decoration: none;
    font-weight: bold;
    color: #777;
}

a.field {
    text-decoration: none;
    color: #00a;
}

/*
	Custom checkboxes and Radio buttons
*/

label.checkbox, label.radio {
	cursor: pointer;
	padding-left: 25px;
	line-height: 12px;
}

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

label.checkbox:before, label.radio:before {
	content: "\00a0";
	display: inline-block;
	margin: 5px 10px 5px -16px;
	width: 16px;
	height: 16px;
	background-color: #fff;
	border: 1px solid #202020;
	font-size: 16px;
	color: #202020;
	text-align: center;
	line-height: 12px;
}

input[type=checkbox]:checked + label.checkbox:before {
	content: "\2714";
}

label.checkbox:before {
	border-radius: 0px;
}

label.radio:before {
	border-radius: 8px;
}





/*
	General

*/

body, textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	font-size: 13px;
	color: #202020;
}

a {
	color: #71e30e;
}

h1 {
	margin-top: 10px;
	font-size: 17px;
	color: #444;
}

h2 {
	margin-top: 10px;
	font-size: 15px;
	color: #444;
}

.right {
	text-align: right;
	padding-right: 0px;
}

.left {
	text-align: left;
	padding-left: 0px;
}

.title {
	font-size: 17px;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
}

.subtitle {
	color: #999;
}

/* 
	Top navigation
*/

#topnav {
	z-index: 90;
	position: fixed;
	height: 44px;
	top: 0;
	width: 100%;
	background-color: #fff;
	border-bottom: 1px solid #d8d8d8;
	color: #404040;
	line-height: 44px;
}

#topnav .logo {
	margin-left: 20px;
	margin-right: 5px;
	margin-top: 7px;
	height: 30px;
	width: auto;
	vertical-align: top;
}

#topnav .sitename {
	display: inline-block;
	margin-left: 5px;
	font-size: 13px;
}

#topnav .userarea {
	padding-right: 20px;
	float: right;
}

#topnav a {
	text-decoration: none;
	color: inherit;
}

/* 
	Body

*/

#main {
	position: absolute;
	display: table;
	table-layout: fixed;
	padding-top: 44px;
	width: 100%;
	height: 100%;
}

#main-content {
	display: table-row;
}

#main-content-plain {
	display: table-cell;
	padding: 10px;
}

#main-content-middle {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	width: 100%;
	height: 100%;
	background-color: #f8f8f8;
}

#sidenav {
	display: table-cell;
	vertical-align: top;
	width: 260px;
	height: 100%;
}

#sidenav-content {
	position: fixed;
	width: 260px;
	bottom: 0;
	top: 44px;
	background-color: #f0f0f0;
	border-right: 1px solid #e0e0e0;
	color: #303030;
	overflow-x: hidden;
}

#content {
	display: table-cell;
	vertical-align: top;
	width: 100%;
	height: 100%;
	background-color: #f8f8f8;
	color: #333;
	padding: 0px;
}

.content-box {
	margin: 5px;
	background-color: white;
}

.border {
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 10px;
	background-color: white;
	margin-bottom: 10px;
}

.content {
	padding-left: 10px;
	padding-top: 10px;
	padding-right: 10px;
}

.no-right-pad {
	padding-right: 0px;
	padding-bottom: 0px;
}

#footer.login {
	border-top: 0px;
	background-color: transparent;
	position: absolute;
	text-align: center;
}

.dropdown {
	cursor: pointer;
}

.slidemenu {
	display: none;
	background-color: white;
	border: 1px solid #ddd;
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
	width: auto;
	margin-left: auto;
	margin-right: auto;
	position: absolute;
	padding: 10px;
	-webkit-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
	box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
}

/* 
	Login

*/

.center-form {
	width: 280px;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	padding: 20px;
}

.center-form .logo {
	width: 150px;
}

/*
	Form layout elements
*/

.border:after, .clear:after {
	content: "";
	display: table;
	clear: both;
}

.subitems {
	padding-top: 10px;
}

/*
	Icons
*/

.langicon {
	height: 18px;
	width: 24px;
	margin-left: 10px;
	margin-right: 10px;
	vertical-align: middle;
	border: 0.25px solid rgba(128,128,128,0.2);
}

/* 
	Form elements
*/

.list input[type=text], .list input[type=date], .list input[type=time], .list input[type=password], button.input, .list input[type=button], .list input[type=submit], input[type=submit].button, .list select, .list input[type=file] + label, .html-content, .list textarea {
	width: 100%;
	padding: 8px;
	margin-top: 5px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.list input[type=text] {
	padding-right: 35px;
}

input[type=button].cancel, button.cancel {
	background-color: #dfdfdf;
	color: #202020;
}

input[type=submit].delete, button.delete {
	width: 300px;
	background-color: #c00000;
	font-weight: bold;
	color: white;
}

select {
	padding: 5px;
}

option {
	padding: 5px;
}

button.input, .list input[type=button], .list input[type=submit] {
	font-weight: 700;
	background-color: #71e30e;
	color: white;
	border: 0px;
}

button.input:hover, .list input[type=button]:hover, .list input[type=submit]:hover {
	background-color: #51c300;
	transition: background 0.20s linear 0s, color 0.20s linear 0s;
}

button.cancel:hover, .list input[type=button].cancel:hover {
	background-color: #ccc;
}

.list input[type=checkbox], .list input[type=radio] {
	margin-top: 10px;
	margin-bottom: 10px;
}

label {  
    cursor: pointer;  
    margin-right: 5px;  
    margin-bottom: 10px;
    margin-top: 10px;
}  

.list input {
	font-family: Arial, Helvetica, sans-serif;
}

.list textarea {
	height: 100px;
}

.list input[type=file] {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}	

.list input[type=file] + label {
	position: relative;
	cursor: pointer;
	display: inline-block;
	padding-right: 40px;
	white-space: nowrap;
}

.list input[type=file]:focus + label {
	outline: 1px dotted #000;
	outline: -webkit-focus-ring-color auto 5px;
}

.clear-icon {
	background-image: url(../img/cancel.png);
	background-size: 18px 18px;
	background-repeat: no-repeat;
	border: 0px;	
	width: 30px;
	height: 28px;
	background-position: 4px 4px;
	display: inline-block;
	vertical-align: middle;
	margin-left: -33px;
	opacity: 0.9;
	cursor: pointer;
}

.progress {
	width: auto;
	height: 3px;
	display: none;
	background-color: #c0c0c0;
	margin: 3px;
}

.progress div {
	height: 3px;
	background-color: #51c300;
}

.html-editor-frame {
	width: 80%;
	z-index: 102;
	background-color: white;
	display: none;
	position: fixed;
	top: 10%;
	left: 10%;
	padding: 10px;
}

.html-editor {
	height: auto;
}

.html-content {
	overflow: hidden;
	background-color: white;
	cursor: pointer;
}

.trumbowyg-box, .trumbowyg-editor {
	margin: 10px auto;
}
/*
	Custom checkbox/radio
*/

.checkbox label, .radio label {
    padding-left: 25px;  
}

.checkbox.image label, .radio.image label {
	line-height: 28px;
}

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

.checkbox label:before, .radio label:before {  
    content: "";  
    display: inline-block;    
    width: 16px;  
    height: 16px;  
    margin-left: -25px;  
    position: absolute;  
    height: 16px;
    background-color: #fff;  
    border: 1px solid #202020;
}  

.checkbox.image label:before, .radio.image label:before {  
	margin-top: 7px;
}

.radio label:before {  
    border-radius: 50%;  
}  

.radio input[type=radio]:checked + label:before {  
    content: "";  
    background: #202020; /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover,  #202020 0%, #202020 40%, #ffffff 40%, #ffffff 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#202020), color-stop(40%,#202020), color-stop(40%,#ffffff), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover,  #202020 0%,#202020 40%,#ffffff 40%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover,  #202020 0%,#202020 40%,#ffffff 40%,#ffffff 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover,  #202020 0%,#202020 40%,#ffffff 40%,#ffffff 100%); /* IE10+ */
    background: radial-gradient(ellipse at center,  #202020 0%,#202020 40%,#ffffff 40%,#ffffff 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#202020', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
    background-size: 14px 14px;
}

.checkbox input[type=checkbox]:checked + label:before {  
    content: "\2714";  
    font-size: 18px;  
    color: #202020;  
    text-align: center;  
    line-height: 12px;  
}  
.checkbox label:before {  
    border-radius: 0px;  
}  

div.multiple-select {
	border: 1px solid #ddd;
	border-radius: 3px;
	max-height: 200px;
	overflow-y: scroll;
	overflow-x: hidden;
}

div.multiple-select div {
	display: block;
	white-space: nowrap;
	background-color: white;
}

.multiple-select label {
	font-weight: 500;
	color: #666;
	display: inline-block;
	width: 100%;
	padding: 5px;
	margin: 0px;
	margin-left: 5px;
	border: 1px solid white;
	border-radius: 3px;
}

div.multiple-select input[type=checkbox] {
	/*display: none;*/
	margin: 0px;
	margin-left: 5px;
}

.multiple-select input[type=checkbox]:checked + label {
	background-color: #71e30e;
	color: white;
}

/*
	Side menu 
*/

ul.side-menu {
	margin: 0px;
	margin-top: 20px;
	padding: 0px;
	list-style: outside none none;
}

ul.side-menu.sub {
    margin-top: 0px;
	margin-bottom: 20px;
}
ul.side-menu.sub li.active {
	border-top: 1px solid #c0c0c0;
}

ul.side-menu.sub li a {
	padding-left: 25px;
}
ul.side-menu.sub .sub li a {
	padding-left: 50px;
}
ul.side-menu.sub .sub .sub li a {
	padding-left: 75px;
}

ul.side-menu li {
	min-height: 44px;
}

ul.side-menu li a, ul.side-menu li div.title {
	line-height: 2;
	display: block;
	color: #666;
	padding: 8px 20px;
	min-height: 44px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.20s linear 0s, color 0.20s linear 0s;
}


ul.side-menu li.active a:hover, ul.side-menu li.inactive a:hover {
    cursor: pointer;
	background-color: #67d10c; /* rgba(0,0,0,0.2);*/
	color: white;
}

ul.side-menu li.active a {
	background-color: #71e30e;
	color: white;
}

ul.side-menu li.inactive a {
	background-color: none;
	color: #666;
}

/*
	Table format
*/


td.center {
	text-align: center;
}

td.right {
	text-align: right;
}

td a.filter {
	color: #202020;
}

table.stat {
	border: 1px solid #ccc;
}

table.stat th {
	font-weight: 500;
	background-color: #f8f8ff;
}

table.stat th a {
	color: #404040;
}

table.stat td, table.stat th {
	border-top: 1px solid #ccc;
	padding: 4px;
}

.data-table-container, .tablequery {
	width: 100%;
	overflow-y: scroll;
}

/*
	Notifications
*/


#notifications.hideaftertime {
	position: fixed; 
	top: 0px; 
	text-align: center; 
	width: 100%;
	z-index: 100;
}

#notifications.hideaftertime ul {
	list-style: none;
	padding: 10px 10px 0px 10px;
	line-height: 1.3;
	margin-top: 0px;
	margin-bottom: 0px;
	margin-right: auto; 
	margin-left: auto; 
	border-bottom-right-radius: 3px;
	border-bottom-left-radius: 3px;
	width: 320px; 
	border-bottom: 1px solid #ccc;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
	background-color: white;
	color: #fff; 
	font-weight: bold;
	-webkit-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
	box-shadow: 4px 4px 10px 0px rgba(0,0,0,0.2);
}

#notifications.inline {
	text-align: center;
}

#notifications.inline ul {
	list-style: none;
	padding: 0px;
	line-height: 1.3;
	margin-top: 0px;
	margin-bottom: 0px;
	width: 100%; 
	max-width: 400px;
	font-weight: bold;
}

#main-content-middle #notifications ul {
	margin-right: auto;
	margin-left: auto;
}

#notifications li {
	padding: 10px;
	border-radius: 5px;
	border: 1px solid;
	margin-bottom: 10px;
}

#notifications li.red {
	background-color: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
}
#notifications li.yellow {
	background-color: #fff3cd;
	border-color: #ffeeba;
	color: #856404;;
}

#notifications li.green {
	background-color: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
}

.menu-icon {
	vertical-align: top;
	height: 35px;
	margin-top: 5px;
	width: auto;
	padding: 10px;
	cursor: pointer;
}

.hidden {
	display: none;
}

#tintview {
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	display: none;
	z-index: 101;
}

#alert-window {
	display: none;
	max-width: 300px;
	padding: 10px;
	background-color: white;
	border-radius: 4px;
}

#alert-window button {
	padding: 5px;
	background-color: #f0f0f0;
	border: none;
	border-radius: 3px;
	margin-top: 10px;
	width: 100%;
}

/*
	Media queries
*/

@media only screen and (min-width: 768px) {
	.menu-icon {
		display: none;
	}
	.close-left {
		display: none;
	}
}

@media only screen and (max-width: 767px) and (min-width: 480px) {
}

@media only screen and (max-width: 767px)  {
	.menu-icon {
		display: inline;
	}

	.close-left {
		margin-top: 3px;
		height: 40px;
		width: auto;
		padding: 10px;
		padding-right: 200px;
		cursor: pointer;
	}

	#main-content-plain {
		width: 100%;
	}

	#sidenav {
		display: inline-block;
		z-index: 1000;
		position: fixed;
		top: 0px;
		width: 260px;
		left: -260px;
		margin-top: 0px;
		height: 100%;
		overflow: scroll;
	}

	#sidenav-content {
		position: relative;
		top: 0px;
	}

	table.edit {
		width: 100%;
	}
	input[type=text].list, input[type=date].list, input[type=time].list, input[type=password].list, select.list {
		width: 150px;
	}
}

@media only screen and (max-width: 479px) {
	#topnav .logo {
		margin-left: 0px;
	}
	#topnav .userarea {
		padding-right: 0px;
	}
}
