html, body {
	font-family: Verdana, sans-serif;
	font-family: 'Roboto', sans-serif;

	margin: 0;
	padding: 0;
}

/* LIBRARY STYLES ==================== */

h1 {
	font-size: 16pt;
	margin: 0;
	font-weight: lighter;
}

h2 {
	font-size: 14pt;
	font-weight: lighter;
}

h3 {
	font-size: 13pt;
	font-weight: 400;
}

h1 span {
	color: white;
}

h2 span {
	color: black;
}

label {
	display: inline-block;
	padding-left: 0px; 
	padding-right: 5px;
	width: 150px;
	vertical-align: top;
	margin-top: 5px;
}

.full {
	width: 100%;
}

.data-box {
	display: inline-block;
}

input, select, textarea, .data-box {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	padding: 8px;
	font-size: 11pt;
	margin-bottom: 5px;

	width: calc(100% - 155px);
}

textarea {
	resize: vertical;
	width: 100%;
	min-height: 90px;
}

input[type=checkbox], input[type=radio] {
	width: 18px;
	height: 18px;
	position: relative;
	top: 3px;
}

input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], textarea, select {
	border: 1px solid #808080;
}

input[type=submit], input[type=button], input[type=reset], .button {
	font-family: inherit;

	cursor: pointer;
	padding: 10px;
	padding-left: 15px;
	padding-right: 15px;
	display: inline-block;

	color: white;
	width: auto;
	border: none;

	text-decoration: none;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 11pt;
	font-weight: 400;

	border: 1px solid #D44F0D;
	background-color: rgba(255,255,255,0.8);

	color: #D44F0D;
}

input.button-small, .button-small {
	font-family: inherit;

	cursor: pointer;
	padding: 5px!important;
	padding-left: 8px!important;
	padding-right: 8px!important;
	display: inline-block;

	color: white;
	width: auto;
	border: none;

	text-decoration: none;
	border-radius: 4px;
	margin-bottom: 5px;
	font-size: 11pt;
	font-weight: 400;

	border: 1px solid #D44F0D;
	background-color: rgba(255,255,255,0.8);

	color: #D44F0D;
}

.fltR input[type=submit], .fltR input[type=button], .fltR input[type=reset] {
	margin-left: 10px;
}

input[type=submit] {
	background-image: url('images/check.png');
	background-repeat: no-repeat;
	background-position: 6px 6px;
	padding-left: 40px;
}

input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, .button:hover, .btn-toggle, .button-small:hover {
	background-color: #D44F0D!important;
	color: white!important;
}

.check-group {
	text-align: right;
}

table input, table select {
	width: 100%;
}

table th {
	font-weight: lighter;
	text-align: left;
}

.fltR {
	float: right;
	margin: 10px;
	margin-right: 0;
	max-width: 100%;
	clear: both;
	display: inline-block;
}

.fltL {
	float: left;
	margin: 10px;
	margin-left: 0;
	max-width: 100%;
	clear: both;
	display: inline-block;
}

.fltC {
	display: block;
	margin: 10px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.col2, .col2-pad, .col3, .col3-pad, .col4, .col-2thirds, .col-2thirds-pad, .col-most, .col4-pad, .col-most-pad {
	display: inline-block;
	vertical-align: top;
}

.col2 {
	width: calc(50% - 3px);
}

.col2-pad {
	padding: 10px;
	width: calc(50% - 23px);
}

.col3 {
	width: calc(33% - 3px);
}

.col3-pad {
	padding: 10px;
	width: calc(33% - 20px);
}

.col-2thirds-pad {
	padding: 10px;
	width: calc(66% - 50px);
}

.col2 img {
	max-width: 100%;
}

.col4 {
	width: calc(25% - 30px);
}

.col4-pad {
	padding: 15px;
	width: calc(25% - 35px);
}

.col-2thirds {
	width: calc(67% - 3px);
}

.col-most {
	width: calc(75% - 30px);
}

.col-most-pad {
	padding: 15px;
	width: calc(75% - 35px);
}

.overflow-x {
	overflow-x: auto;
}

hr {
	height: 1px;
	border: 0;
	background-color: white;
}

.message {
	margin-top: 5px;
	margin-bottom: 5px;
	padding: 5px;
	display: none;
}

strong {
	font-weight: 400;
}

.flow {
	width: auto;
	max-width: 100%;
}

/* =================== */

.wrapper {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	padding-left: 150px;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 10px;
	background-color: #404040;
	color: #85c2e9;
	box-shadow: 0 2px 4px black;
	z-index: 30;
}

header .logo {
	height: 40px;
	position: absolute;
	left: 120px;
	top: -7px;
}

header h1 {
	margin-left: 40px;
}

nav {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	background-color: #202020;
	color: white;
	box-shadow: 5px 0 5px rgba(0,0,0,0.7);
	z-index: 40;
	overflow-y: auto;
	padding-bottom: 20px;
}

nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

nav li {
	display: block;
	padding: 10px;
	padding-left: 15px;
	padding-right: 15px;
	cursor: pointer;
}

nav li:hover {
	background-color: #808080;
	color: black;
}

nav .hide {
	border-bottom: 1px dotted white;
	margin-bottom: 10px;
	text-align: right;
	display: none;
}

nav .open {
	display: none;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav a {
	color: inherit;
	text-decoration: none;
}

nav li img {
	position: relative;
	top: 5px;
	margin-right: 10px;
}

nav li ul {
	display: none;
	margin-left: 30px;
	margin-top: 10px;
}

nav li li {
	color: white;
}

nav li li:hover {

	background-color: white;
}

.mobile_menu_button {
	width: 40px;
	position: absolute;
	right: 5px;
	top: -7px;
	cursor: pointer;
	display: none;
}

.clock_status {
	color: #ff8000;
	position: absolute;
	right: 0px;
	top: 2px;
	z-index: 30;
	font-size: 14pt;
	height: 20px;
	font-weight: 300;
}

.main {
	margin-top: 55px;

	position: relative;
	margin-bottom: 100px;
	/*transition: left 0.7s;*/
}

.side-menu {
	width: 220px;
	display: inline-block;
	vertical-align: top;
	margin-right: 10px;
}

.main-content {
	display: inline-block;
	vertical-align: top;
	width: calc(100% - 280px);
	position: relative;
}

.main-content section {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: none;
}

.side-menu input[type=button], .side-menu .button {
	display: block;
	width: 100%;
	text-align: center;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	font-weight: 400;
}

section {
	background-color: #404040;
	padding: 10px;
	margin-bottom: 10px;
	font-weight: 300;
}

form {
	margin: 10px;
}

table img {
	cursor: pointer;
}

table img:hover {
	opacity: 0.7;
}

table .button-col {
	width: 60px;
	text-align: center;
}

.button-bar {
	background-color: white;
	padding: 10px;
	margin-left: -10px;
	margin-top: -7px;
	width: calc(100% - 10px);
	margin-bottom: 10px;
}

.button-bar label {
	margin-top: 10px;
	width: auto;
	margin-left: 10px;
}

.button-bar input, .button-bar .button {
	width: auto;
	margin-left: 10px;
}

.msg-success, .msg-fail, .msg-working {
	padding: 10px;
	margin: 10px;
	text-align: center;
	font-size: 14pt;
	display: block;
}

.msg-success {
	background-color: #ccffcc;
	color: #009900;
	border: 1px solid #009900;
}

.msg-working {
	background-color: #CCE5FF;
	color: #0066cc;
	border: 1px solid #0066cc;
}

.msg-fail {
	background-color: #ffcccc;
	color: #990000;
	border: 1px solid #990000;
}

/* REPORTS STYLING ============================================ */
#myChart {
	height: 450px;
	width: 100%;
}

#chart-container {
	width: calc(100% - 20px);
}

#legend li {
	display: inline-block;
	margin-right: 10px;
}

#legend li span {
	display: inline-block;
	width: 20px;
	height: 15px;
	position: relative;
	top: 2px;
	margin-right: 5px;
}

#legend ul {
	list-style: none;
}

.ytd-financials {
	margin: 0;
}

.ytd-financials td {
	font-size: 1.3em;
}

.equation th {
	text-align: right;
	border-right: 1px solid #202020;
}

.equation td {
	text-align: right;
}

.equation .sign {
	text-align: center;
}

.equation .subtotal {
	border-top: 3px double #00557f;
	color: green;
}

.equation .red {
	color: red;
}

.equation .green {
	color: green;
}

.equation span {
	font-size: 0.8em;
}

.monthly-financials th {
	text-align: center;
}

.monthly-financials td {
	text-align: center;
	border-right: 1px solid #202020;
	border-left: 1px solid #202020;
}

.monthly-financials .side-heading {
	text-align: right;
}

.reports .table, .reports .graph {
	border-radius: 5px;
	box-shadow: 0 0 4px black;
	padding: 10px;
	height: 550px;
	display: inline-block;
	vertical-align: top;
}

.reports .table {
	width: 400px;
	margin-right: 10px;
}

.reports .graph {
	width: calc(100% - 455px);
}

/* INVOICE SUMMARY STYLING =================================== */

.summary {
	margin-bottom: 10px;
	text-align: center;
}

.tot-box {
	text-align: center;
	padding: 5px;
	color: #202020;
	font-size: 16pt;
}

.summary .box {
	display: inline-block;
	vertical-align: top;
	border-radius: 5px;
	border: 1px solid #a0a0a0;
	padding: 15px;
	width: 200px;
	margin-bottom: 5px;
	font-weight: 400;
}

.summary .tot-outstanding .tot-box {
	color: #cc6600;
}

.summary .tot-received-month .tot-box, .summary .tot-revenue .tot-box {
	color: #009900;
}

.summary .tot-overdue .tot-box {
	color: #CC0000;
}

.summary label {
	width: 100%;
	text-align: center;
}

footer {
	text-align: center;
}

footer .subscribe-message {
	position: fixed;
	z-index: 29;
	left: 0;
	right: 0;
	padding: 5px;
	bottom: 0;
	background-color: white;
	border: 1px solid #FF4C01;
	border-top: 2px solid #FF4C01;
	color: #FF4C01;
	font-size: 12pt;
	text-align: center;
}

@media (max-width: 1550px) {

	header .logo {
		left: 60px;
	}

	header h1 {
		margin-left: 80px;
	}

	.wrapper {
		padding-left: 60px;
	}

	nav li span {
		display: none;
	}

	nav li img {
		margin: 0;
	}

	nav .open {
		display: block;
		text-align: right;
	}

	.mobile_menu_button {
		display: inline-block;
	}
}

@media (max-width: 1050px) {

	.side-menu {
		display: block;
		width: calc(100% - 20px);
	}	

	.side-menu input[type=button] {
		display: inline-block;
		width: auto;
	}

	.main-content {
		display: block;
		width: 100%;
	}



	.reports .graph, .reports .table, .summary {
		display: block;
		width: calc(100% - 30px);
		margin: auto;
		height: auto;
		margin-bottom: 10px;
	}
}

@media (max-width: 750px) {
	header .logo {
		left: 0;
	}

	nav {
		position: fixed;
		top: 0;
		bottom: 0;
		left: -280px;
		background-color: #202020;
		color: white;
		box-shadow: 5px 0 5px rgba(0,0,0,0.7);
		z-index: 30;
	}

	nav .hide {
		display: block;
	}

	nav .open {
		display: none;
	}

	nav li span {
		display: inline;
	}

	nav li img {
		margin-right: 10px;
	}

	.wrapper {
		padding-left: 0;
	}

	.col2 {
		display: block;
		width: 100%;
	}
}