body,html {
	padding: 0px;
	margin: 0px;
	background-color: #eee;
	background-image: url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHklEQVQIW2NkQAX1jEj8eiC7ESYA5oAkQQJwDkgAAGKuA4R0d0m8AAAAAElFTkSuQmCC );
}
body, input, textarea, #daterange {
	font-family: 'Slabo 27px', serif;
}
nav {
	background-color: #333;
	background-image: url( data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHklEQVQIW2NkQAX1jEj8eiC7ESYA5oAkQQJwDkgAAGKuA4R0d0m8AAAAAElFTkSuQmCC );
	padding: 0px;
	color: #999;
	font-family: 'Roboto Slab', serif;
	margin-bottom: solid 1px #000;
}
nav ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

nav ul li{
	display: inline-block;
}
nav ul li a {
	display: inline-block;
	color: #999;
	text-decoration: none;
	font-size: 14pt;
	padding: 20px;
	padding-left: 40px;
	padding-right: 40px;
	background-color: rgba( 51, 51, 51, 0 );
	transition: background-color 0.5s, color 0.5s;
}

nav ul li.current a, nav ul li.current a:hover {
	background-color: rgba( 0, 0, 0, 1 );
	color: #fff;
}

nav ul li a:hover {
	background-color: rgba( 51, 51, 51, 1 );
	color: #fff;
}

#daterange {
	position: absolute;
	right: 40px;
	top: 20px;
}
#daterange input {
	padding: 5px;
	background: none;
	border: none;
	font-weight: bold;
	color: #ccc;
}

input[type=text],textarea {
	padding: 5px;
}
input.date {
	width: 70px;
}

#daterange input[name=from] {
	text-align: right;
}

.page h3 {
	color: #ff0084;
	font-family: 'Roboto Slab', serif;
	padding: 5px;
	padding-left: 20px;
	padding-right: 20px;
	border: 1px solid #dddddd;
	margin-bottom: 0px;
}

.page  h3.ui-state-default {
	color: #0073ea;
}

.page h3 .ui-icon {
	display: inline-block;
	margin-right: 10px;
}
.page h3 .total {
	float: right;
}

.page .total h3 {
	color: #666;
	border: none;
}

.page {
	max-width: 700px;
	padding: 20px;
	padding-top: 20px;
	padding-bottom: 150px;
	background-color: #fff;
	height: 100%;
	margin-left: auto;
	margin-right: auto;
	display: none;
}
#logout {
	max-width: 740px;
	margin-left: auto;
	margin-right: auto;
	display: block;
	text-align: right;
}
#logout a {
	display: inline-block;
	background-color: #fff;
	padding: 5px;
	padding-left: 10px;
	padding-right: 10px;
	text-decoration: none;
	font-size: 0.83em;
	color: #333;
}
#logout a:hover {
	background-color: #333;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAHklEQVQIW2NkQAX1jEj8eiC7ESYA5oAkQQJwDkgAAGKuA4R0d0m8AAAAAElFTkSuQmCC );
	color: #fff;
}
.page.open {
	display: block;
}

.page div.entry h3 {
	cursor: pointer;
}

td {
	vertical-align: top;
}

.type input {
	width: 100px;
}
.amount input, .gst input {
	width: 80px;
}
.loggedin .page input[type=text] {
	border: none;
}
.loggedin .page input[type=text]:focus {
	border-bottom: solid 1px #999;
}
page table {
	width: 100%;
}
td.when {
	width: 80px;
}
td.when input {
}
td.amount {
	width: 110px;
}
td.amount input {
	font-weight: bold;
	text-align: right;
}
td.what {
	width: 100%;
}

.page input {
	font-size: 12pt;
	background: none;
}

.page textarea {
	width: calc( 100% - 10px );
	min-width: 80px;
	height: 20px;
	border: none;
	color: #999;
	background: none;
}

tr {
	background-color: #fff;
}
tr:nth-child(odd), tr.odd {
	background-color: #dedede;
}
table {
	border-collapse: collapse;
	border-spacing: 0px;
	border: solid 1px #999;
}
td {
	border-bottom: solid 1px #999;
}

.changed, .page textarea.changed,  .page input.changed {
	background-color: #ebf5ff;
}

tr:nth-child(odd) .changed,tr:nth-child(odd) .page textarea.changed, tr:nth-child(odd) .page input.changed {
	background-color: #adbccb;
	color: #666;
}


td.foreign input {
	margin-top: 10px;
}

td.delete a {
	display: block;
	margin: 10px;
	margin-top: 7px;
	margin-left: 20px;
}

a.additems {
	display:block;
	z-index: 2;
	position: fixed;
	bottom: 40px;
	right: 40px;
	background-color: #0073ea;
	text-decoration: none;
	color: #fff;
	font-size: 27pt;
	padding: 20px;
	padding-left: 35px;
	padding-right: 35px;
	border-radius: 100px;
}

.page.background {
	opacity: 0.6;
}

th {
	color: #eee;
	background-color: #333;
	padding: 5px;
	border: solid 1px #eee;
}
#newincomes td {
	border-bottom: none;
}
#newincomes tr.even:nth-child(odd)  {
	background-color: #fff;
}
#newincomes td.what, #newexpenses td.what {
	border-bottom: solid 1px #999;
	padding-left: 87px;
}

#newincomes textarea {
	width: 410px;
}
#newexpenses textarea {
	width: 355px;
}

.ui-dialog-content {
	font-size: 9pt;
}
#dialogues {
	display: none;
}

.page.loading {
	background-image: url(images/ajax-loader.gif);
	background-repeat: no-repeat;
	background-position: center center;
	
}
#reportpage.page {
	max-width: 750px;
}
#reportpage .income {
	float: left;
	width: 30%;
	margin-left: 130px;
}
#reportpage img {
	display: block;
}
#reportpage .expenses {
	float: left;
	width: 50%;
}

.clr {
	float: none;
	clear: both;
	display: block;
	visibility: hidden;
	height: 0px;
}

h2 {
	color: #666;
}
#reportpage table {
	border: none;
}
#reportpage tr:nth-child(odd) {
	background-color: #fff;
}
#reportpage th, #reportpage td {
	text-align: left;
	color: #333;
	background: none;
	border: none;
	border-bottom: solid 1px #aaa;
}
#reportpage td  {
	padding-left: 30px;
}
#reportpage .total td, #reportpage .total th{
	font-weight: bold;
	border: none;
}

#reportpage th small {
	float: right;
}

#loggedout {
	display: false;
}	
@media all and (min-width: 700px) {
	#reportpage div.gst {
		margin-top: 520px;
	}
}

@media all and (max-width: 700px) {
	nav ul li {
		display: block;
	}
	
	#reportpage .income {
		float: none;
		width: 100%;
		margin-left: 0px;
		margin-bottom: 40px;
		clear: both;
	}
	#reportpage img {
		display: block;
	}
	#reportpage .expenses {
		float: none;
		width: 100%;
	}
	
	#reportpage .income .inner,
	#reportpage .income .gst 	{
		float: left;
	}
	#reportpage .income .inner {
		margin-right: 40px;
	}
}
#loginpage form {
	margin-left: auto;
	margin-right: auto;
	width: 240px;
}
#loginpage input.text {
	width: 200px;
	padding: 5px;
	border-radius: 3px;
	border: 1px solid #dddddd;
	background: #f6f6f6 url(extern/jquery-ui-1.11.3.custom/images/ui-bg_highlight-soft_100_f6f6f6_1x100.png) 50% 50% repeat-x;
}
#loginpage input[name=u].text {
	 border-bottom-right-radius: 0px;
	 border-bottom-left-radius: 0px;
}
#loginpage input[name=p].text {
	 border-top-right-radius: 0px;
	 border-top-left-radius: 0px;
	 border-top: 0px;
}

#loginpage input.submit {
	float: right;
	margin-top: 4px;
	margin-right: 30px;
	background-color: #0073ea;
	border: none;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
}