
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10pt;
	margin: 65px 0 0 185px;
	padding: 0;
}

body.print {
	margin: 10px;
}

a {
	text-decoration: none;
	color: #A3362D;
	touch-action: manipulation;
}

a:hover {
	text-decoration: underline;
}

table.edittable {
	border-collapse: collapse;
	margin-top: 10px;
	margin-bottom: 10px;
}

table thead, table td.header {
	font-weight: bold;
	background-color: #cccccc;
}

td.highlight {
	background-color: #99ff99;
}

table.edittable tr.selected {
	outline: 1px solid #c00;
	background: #fee;
	color: #c00;
}

table tbody.edittable td {
	border: thin solid black;
}

table.edittable td {
	border: 1px gray solid;
	margin: 0px;
	padding: 3px;
}

input[type=text],
input[type=password],
select {
	width: 100%;
}

textarea {
	width: 100%;
}

input,
select,
textarea {
	border-radius: 0;
	border: 1px solid #444;
	background: #f9f9f9;
	color: #444;
	padding: 2px;
}

input:disabled,
select:disabled,
textarea:disabled {
	opacity: 0.5;
}

input[type=button],
input[type=submit] {
	-webkit-appearance: none;
	padding-left: 10px;
	padding-right: 10px;
}

ul.mainmenu {
	list-style: none;
	font-size: 12pt;
	padding: 0px;
}


@keyframes slide-in {
	from {
		top: -30px;
		opacity: 0;
	}

	to {
		top: 10px;
		opacity: 1;
	}
}

.errormessage,
.successmessage {
	padding: 15px 15px 15px 35px;
	position: fixed;
	top: 10px;
	z-index: 999999;
	text-align: center;
	width: 300px;
	box-sizing: border-box;
	left: 50%;
	margin-left: -150px;
	animation-name: slide-in;
	animation-duration: 0.4s;
}

.errormessage {
	background: #ff9999 url('../images/error.png') no-repeat 10px center;
}

.successmessage {
	background: #99ff99 url('../images/tick_20.png') no-repeat 10px center;
}

h1 {
	font-size: 14pt;
}

h2 {
	margin-bottom: 12px;
}

h2.top {
	margin-top: 5px;
}

p {
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

.legend {
	color: gray;
}

img.avatar {
	width: 3em;
}

.rotatetext {
	transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	/* IE 9 */
	-webkit-transform: rotate(-90deg);
	/* Safari and Chrome */
	-o-transform: rotate(-90deg);
	/* Opera */
	-moz-transform: rotate(-90deg);
	/* Firefox */
}

.sticky-note {
	background-color: #fdd72a;
	box-shadow: 2px 2px 3px #aaaaaa;
}

body.login {
	background: #eee;
	margin: 10px;
}

@keyframes zoom-in {
	from {
		transform: scale(0);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

#login {
	position: absolute;
	top: 45%;
	left: 50%;
	margin: -153px 0 0 -200px;
	width: 400px;
	background: #fff;
	box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
}

#login.tall {
	position: static;
	margin: 50px auto 20px auto;
}

div.zoom-in {
	animation-name: zoom-in;
	animation-duration: 0.4s;
}

#login h1 {
	text-align: center;
	color: #5b6574;
	font-size: 24px;
	padding: 25px 0 20px 0;
	margin: 0 0 20px 0;
	border-bottom: 1px solid #dee0e4;
}

#login div.error {
	text-align: center;
}

#login p {
	margin: 15px 20px 15px 40px;
	padding: 0;
}

#login p span.number {
	position: absolute;
	margin: -1px 0 0 -25px;
	border-radius: 9px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: black;
	color: #fff;
}

#login #appstores {
	text-align: center;
}

#login #appstores img {
	width: 100px;
}

#login div.qrcode {
	text-align: center;
	color: #777;
	padding: 10px;
}

#login form {
	padding-top: 20px;
}

#login form.compact {
	padding-top: 0;
}

#login div.field {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#login form label {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 120px;
	height: 40px;
	background-color: #c7331e;
	color: #ffffff;
}

#login form input[type="password"],
#login form input[type="text"] {
	width: 200px;
	height: 38px;
	border: 1px solid #dee0e4;
	margin-bottom: 20px;
	padding: 0 15px;
	outline: none;
}

#login form input[type="submit"] {
	width: 100%;
	height: 45px;
	margin: 20px 0 0 0;
	background-color: #c7331e;
	border: 0;
	cursor: pointer;
	font-weight: bold;
	color: #ffffff;
	transition: background-color 0.2s;
}

#login form.compact input[type="submit"] {
	margin: 0;
}

#login form input[type="submit"]:hover {
	background-color: #a61601;
	transition: background-color 0.2s;
}

#login form a.cancel {
	display: block;
	text-align: center;
	color: #fff;
	padding: 10px;
	background-color: #aaa;
	margin-top: 1px;
}

#login form a.cancel:hover {
	background: #888;
	transition: background-color 0.2s;
	text-decoration: none;
}

@media screen and (max-width: 800px) {
	#login {
		margin: -153px 0 0 -150px;
		width: 300px;
	}

	#login form input[type="password"],
	#login form input[type="text"] {
		width: 100px;
	}
}



#navbar {
	position: fixed;
	top: 0;
	left: 170px;
	right: 0;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 0 3px #999;
	z-index: 1000;
}

#navbar h1 {
	display: block;
	float: left;
	padding: 0;
	margin: 0 0 0 14px;
	line-height: 50px;
	vertical-align: middle;
	font-size: 28px;
	font-weight: normal;
	color: #933;
}

#navbar ul {
	margin: 10px 0 0 0;
	padding: 0;
}

#navbar li {
	margin: 0;
	list-style-type: none;
}

#navbar li img {
	margin-right: 5px;
	width: 24px;
	height: 24px;
	padding-bottom: 4px;
}

#navbar a {
	display: block;
	padding: 6px 5px 6px 5px;
	color: #444;
}

#navbar a:hover {
	color: #000;
	text-decoration: none;
	background: #e4e4e4;
}

#navbar li.current a {
	font-weight: bold;
	color: #000;
}

#navbar li.separator {
	height: 0;
	border-bottom: 1px solid #ddd;
	margin: 8px 0;
}

#navbar div.menu {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 170px;
	background: #eee;
	box-shadow: 0px 0 3px #999;
}

#navbar div.user {
	position: fixed;
	top: 0;
	right: 20px;
	line-height: 50px;
	vertical-align: middle;
}

#navbar input[type=checkbox] {
	display: none;
}

#navbar label.hamburger,
#navbar label.close-menu {
	touch-action: manipulation;
	position: absolute;
	right: 20px;
	display: none;
	font-size: 30px;
	user-select: none;
}

#navbar label.hamburger {
	top: 6px;
}

#navbar label.close-menu {
	top: 8px;
}

@keyframes slide {
	100% { left: 0; }
}

@media screen and (max-width: 800px) {
	body {
		margin: 60px 0 0 0;
	}

	body.login {
		margin: 10px;
	}
	
	#navbar {
		left: 0;
	}
	
	#navbar h1 {
		font-size: 22px;
	}
	
	#navbar div.menu { 
		right: 0;
		left: 110%;
		transition: left 0.2s ease;
		width: 100%;
		overflow: auto;
		text-align: center;
	}
	
	#navbar ul {
		border-top: 1px solid #ddd;
		margin: 0 0 10px 0;
		padding-top: 10px;
	}
	
	#navbar a {
		font-size: 1.3em;
		padding: 8px 5px 8px 5px;
	}

	#navbar input[type=checkbox]:checked ~ .menu {
		left: 0;
	}
	
	#navbar label.hamburger,
	#navbar label.close-menu {
		display: block;
	}
	
	#navbar div.user {
		display: block;
		position: static;
	}
}

div#main,
div.scrollable {
	width: 100%;
	overflow: auto;
}

div#main-inner {
	display: inline-block;
}

div#main-inner-full {
	display: block;
}

div.datepicker-container {
	float: left;
	margin-right: 20px;
}

table.mobile-list-item th {
	width: 75px;
	padding: 2px 5px 2px 0;
	text-align: right;
	vertical-align: top;
	color: #999;
	font-weight: normal;
	font-size: 12px;
	line-height: 15px;
}

tr.tiny-label table.mobile-list-item th {
	width: 45px;
}

table tr.missed {
	background: #fee;
}

table.mobile-list-item th:after {
	content: ':';
}

table.extra-padding table.mobile-list-item td,
table.mobile-list-item td {
	text-align: left;
	padding: 2px 0;
	border: none;
	word-break: break-all;
}

tr.mobile {
	display: none;
}

form.responsive-form {
	margin-bottom: 15px;
}

form.responsive-form div.sub-section {
	clear: both;
	margin: 10px 0 10px 15px;
	border-left: 3px solid #eee;
	padding-left: 10px;
}

form.responsive-form div.field {
	width: 100%;
	clear: both;
}

form.responsive-form div.clear-el {
	height: 0;
	clear: both;
}

form.responsive-form label {
	float: left;
	width: 25%;
	margin-top: 6px;
	padding-top: 3px;
}

form.responsive-form div.input-container {
	float: left;
	width: 75%;
	margin-top: 6px;
}

form.responsive-form div.input-container input[type=text],
form.responsive-form div.input-container input[type=password],
form.responsive-form div.input-container select,
form.responsive-form div.input-container textarea {
	width: 100%;
	padding: 2px;
	box-sizing: border-box;
}

table.content td.fieldname:after {
	content: ':';
}

table.content td.fieldname {
	padding: 2px 5px 2px 0;
	text-align: right;
	vertical-align: top;
	color: #999;
	font-weight: normal;
	font-size: 12px;
	line-height: 15px;
}

table.content td.fieldname span.with-icon {
	line-height: 24px;
	vertical-align: middle;
}

table.content td.fieldvalue {
	padding: 2px 0;
	text-align: left;
}

form[name=operation_search] {
	margin-top: 10px;
}

div.calendarmessages {
	width: 234px;
}

form.password-form {
	width: 320px;
}

form.password-form label {
	width: 40%;
}

form.password-form div.input-container {
	width: 60%;
}

form.search-form {
	width: 335px;
}

table.extra-padding td {
	padding: 6px;
}

span.history-create,
span.history-modify,
span.history-delete {
	display: inline-block;
	margin-right: 6px;
	color: white;
	width: 16px;
	font-size: 14px;
	padding: 2px;
	text-align: center;
	border-radius: 2px;
	text-shadow: 1px 0 0 rgba(0, 0, 0, 0.3);
}

span.history-create:before {
	content: "\002B";
}

span.history-create {
	background-color: #5a5;
}

span.history-modify:before {
	content: "\270E";
}

span.history-modify {
	background-color: #ec3;
}

span.history-delete:before {
	content: "\2715";
}

span.history-delete {
	background-color: #c55;
}

div.paging {
	margin-top: 10px;
	margin-bottom: 10px;
}

div.paging a.button {
	margin: 2px 0;
}

div.paging span.smallbutton {
	padding: 0 5px;
}

@media screen and (max-width: 800px) {
	div#main {
		text-align: center;
	}
	
	div#main-inner,
	div#main-inner-full {
		margin: 10px;
	}

	div.datepicker-container {
		float: none;
		margin: 0;
		text-align: center;
	}
	
	div.ui-datepicker {
		width: 85%;
		margin: 0 auto;
	}
	
	div.ui-datepicker td span,
	div.ui-datepicker td a {
		padding: 0.6em;
	}

	div.calendarmessages {
		width: 100%;
	}
	
	div.calendarmessages table {
		margin: auto;
	}
	
	tr.desktop {
		display: none;
	}
	
	table.responsive {
		width: 100%;
	}
	
	table.responsive thead {
		display: none;
	}
	
	tr.mobile {
		display: table-row;
	}
	
	form[name=operation_search] {
		text-align: center;
	}
	
	form.responsive-form label {
		width: 100%;
	}
	
	form.responsive-form div.input-container {
		width: 100%;
	}
	
	div.message {
		position: fixed;
		z-index: 999999999;
	}
	
	form.password-form {
		margin: 0 auto 15px auto;
		width: 200px;
	}
	
	form.search-form {
		margin-left: auto;
		margin-right: auto;
	}
	
	span.history-create,
	span.history-modify,
	span.history-delete {
		margin-top: -2px;
	}
	
	table.edittable {
		margin-left: auto;
		margin-right: auto;
	}
}
