* {
	margin: 0;
}

html, body {
	height: 100%;
}

body {
	padding: 0;
	font-family: sans-serif;
	height: 100%;
}

pre {
	color: #000000;
	padding: 10px;
	font-family: monospace;
}

div.clear {
	clear: both;
	overflow: hidden;
}

div.push {
	margin: 30px 0 0;
	height: 45px;
}

div.code {
	margin: 0 5px;
	background-color: #eeeeee;
	overflow: auto;
}

/* jQuery UI Accordion */
.ui-accordion-header {
	cursor: pointer;
}

/* Graph Preview */
.preview {
	margin: 0 5px;
	overflow: hidden;
}

/* Input Field Automatic Update */
.automatic {
	width: 40px;
}

/* Article */
article {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -46px;
	overflow: hidden;
}

article > img {
	padding: 0;
	margin: 0;
	border: none;
	font-size: 0;
	height: auto;
	max-width: 100%;
}

article > h2 {
	line-height: 2;
	margin: 15px 5px;
	color: #222222;
	font-size: 1em;
	text-shadow: -1px 2px 3px #dddddd;
	font-weight: normal;
	border-bottom: 1px solid #ddddcc;
}

article > h3 {
	margin: 10px 5px 5px;
	line-height: 2;
	color: #222222;
	font-size: .9em;
	text-shadow: -1px 2px 3px #dddddd;
	font-weight: normal;
}

/* Article Header */
article header {
	margin: 0;
	padding: 0;
	display: block;
	position: relative;
	border-bottom: 1px solid #000000;
	background: rgb(54, 53, 49);
}

article header h1 {
	margin: 0;
	padding: 15px 0 15px 10px;
	color: #ffffff;
	font-size: .9em;
	font-weight: normal;
	text-shadow: -1px 2px 3px #111100;
}

/* Article Section */
article section {
	position: relative;
	margin: 0 5px;
}

article section p {
	font-size: .8em;
	line-height: 1em;
}

article section p.button {
	position: absolute;
	top: 0;
	right: 0;
}

article section h1 {
	line-height: 1;
	margin: 25px 0 15px 0;
	color: #222222;
	font-size: 1em;
	text-shadow: -1px 2px 3px #dddddd;
	font-weight: normal;
}

article section ul {
	position: absolute;
	top: 0;
	right: 5px;
	margin: 0;
	padding: 0;
	border-radius: 10px;
}

article section ul li {
	display: inline-block;
	margin: 0;
	padding: 0;
	background-color: #666666;
}

article section ul li:first-child {
	border-radius: 10px 0 0 10px;
	background-color: #666666;
}

article section ul li:last-child {
	border-radius: 0 10px 10px 0;
	background-color: #666666;
}

article section ul li:hover {
	background-color: black;
}

article section ul li a {
	color: #ffffff;
	text-decoration: none;
	font-size: 8px;
	display: block;
	padding: 4px 6px;
	text-transform: uppercase;
	vertical-align: middle;
	line-height: 10px;
}

/* Forms */
form {
	margin: 0 5px;
	font-size: .8em;
	text-align: left;
}

form h2 {
	line-height: 2;
	padding-right: 5px;
	margin: 15px 0 15px 0;
	color: #222222;
	font-size: 1.3em;
	text-shadow: -1px 2px 3px #dddddd;
	font-weight: normal;
	border-bottom: 1px solid #ddddcc;
}

fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

fieldset:nth-child(2n+1),
fieldset:nth-child(2n+2) {
	margin-bottom: 10px;
}

fieldset .row {
	width: 100%;
}

fieldset .col {
	display: inline-block;
	vertical-align: text-top;
	padding-right: 20px;
}

label {
	font-size: .9em;
	line-height: 2em;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
textarea,
select {
	display: block;
	margin-bottom: 10px;
}

input[type=checkbox] {
	float: left;
	margin-bottom: 10px;
	margin-right: 5px;
	margin-top: 5px;
}

textarea {
	width: 98%;
}

button {
	margin-right: 5px;
}

/* Header Select */
#header-select {
	position: absolute;
	top: 0;
	right: 0;
}

#header-select form {
	margin: 0;
}

#header-select input[type=submit],
#header-select input[type=number],
#header-select select {
	display: inline;
}

/* Table Sorter */
th.headerSortUp:after {
	content: " ↑";
}

th.headerSortDown:after {
	content: " ↓";
}

th.header {
	cursor: pointer;
}

/* Aside */
aside {
	margin: 0 5px;
	padding: 0;
	display: block;
}

aside div {
	float: left;
	margin: 0;
	padding: 0 15px 0 0;
	width: 100%;
}

aside div:first-child {
	display: none;
}

aside div:last-child {
	padding: 0;
}

aside tbody tr td:first-child {
	padding: .75em 15px .75em 5px;
	text-align: left;
}

aside tbody tr td:last-child {
	text-align: right;
}

/* iFrame */
iframe {
	border: 0 none;
	margin: 0;
	display: block;
	padding: 0;
	height: 80%;
	width: 100%;
}

/* Navigation Menu */
nav {
	display: none;
	background-color: #eeeeee;
	padding: 10px 10px 0 10px;
	border-bottom: 1px solid #cccccc;
}

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

nav ul li a {
	text-decoration: none;
	color: #666666;
	margin-bottom: 10px;
	padding: 10px;
	display: block;
	border: 1px solid #cccccc;
	background-color: #ffffff;
}

nav ul li a.current {
	background-color: #207cca;
}

nav ul li a.changes {
	background-color: #c65f5f;
}

nav ul li a.current,
nav ul li a.changes {
	color: #ffffff;
}

/* Toggle Menu */
#nav-toggle {
	float: right;
	padding: 8px 20px 8px 0;
	margin-right: 10px;
	cursor: pointer;
}

#nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
	cursor: pointer;
	border-radius: 1px;
	height: 3px;
	width: 20px;
	background: white;
	position: absolute;
	display: block;
	content: '';
}

#nav-toggle span:before {
	top: -6px;
}

#nav-toggle span:after {
	bottom: -6px;
}

#nav-toggle span, #nav-toggle span:before, #nav-toggle span:after {
	transition: all 500ms ease-in-out;
}

#nav-toggle.active span {
	background-color: transparent;
}

#nav-toggle.active span:before, #nav-toggle.active span:after {
	top: 0;
}

#nav-toggle.active span:before {
	transform: rotate(45deg);
}

#nav-toggle.active span:after {
	transform: rotate(-45deg);
}

#nav-show:target nav {
	display: block;
}

nav.show {
	display: block;
}

/* Footer */
footer {
	border-top: 1px solid #000000;
	display: block;
	height: 45px;
	padding: 0;
	background: #363531;
}

footer ul {
	margin: 0;
	list-style: none;
	float: left;
	padding-left: 10px;
}

footer ul:last-child {
	float: right;
}

footer ul li {
	display: inline-block;
	line-height: 45px;
	padding-right: 10px;
	color: #ffffff;
	font-size: .8em;
	font-weight: normal;
	text-shadow: -1px 2px 3px #111100;
}

footer ul li a {
	color: #ffffff;
	font-weight: normal;
	text-shadow: -1px 2px 3px #111100;
	text-decoration: none;
}

/* Buttons */
a.return:hover,
a.edit:hover {
	background-color: #000000;
}

a.new {
	background-color: #88b31d;
	font-size: 8px;
	padding: 4px 6px;
	border-radius: 10px;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	vertical-align: middle;
}

a.new:hover {
	background-color: #000000;
}

a.return,
a.edit {
	background-color: rgb(79, 133, 187);
	font-size: 8px;
	padding: 4px 6px;
	border-radius: 10px;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	vertical-align: middle;
}

a.return:hover,
a.edit:hover {
	background-color: #000000;
}

/* Tables */

table {
	border-collapse: collapse;
	width: 100%;
}

th:first-child,
td:first-child {
	padding-left: 5px;
}

thead th {
	font-size: .6em;
	font-weight: normal;
	text-align: left;
	padding: .75em 5px .75em 0;
	display: none;
}

tbody tr td a {
	text-decoration: none;
	color: black;
}

tbody tr td {
	font-size: .7em;
	padding: .75em 5px .75em 0;
	text-align: left;
	vertical-align: top;
}

tfoot td {
	text-align: right;
	padding: .75em 5px .75em 0;
	font-size: 0.7em;
}

table th:first-child,
table td:first-child {
	padding-left: 5px;
}

table tbody tr:nth-child(2n+1),
table tbody tr:nth-child(2n) {
	border: none;
}

table tbody tr:nth-child(2n+1) {
	background-color: #eeeeee;
}

@media only screen and (min-width: 768px) {
	div.code {
		margin: 0 40px;
	}

	/* Graph Preview */
	.preview {
		margin: 0 40px;
	}

	/* Article */
	article > h2 {
		margin: 15px 40px;
	}

	article > h3 {
		margin: 10px 40px 5px;
	}

	article > img {
		padding: 0;
		margin: 0 40px;
	}

	/* Article Header */
	article header {
		border: none;
	}

	article header h1 {
		padding: 15px 0 15px 25px;
	}

	/* Article Section */
	article section {
		margin: 0 40px;
	}

	/* Forms */
	form {
		margin: 0 40px;
	}

	/* Aside */
	aside {
		margin: 0 40px;
	}

	aside div {
		width: inherit;
	}

	aside div:first-child {
		display: block;
	}

	/* Navigation Menu */
	nav {
		border: none;
		display: block;
		padding: 5px 0 5px;
		width: 100%;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#363531', endColorstr='#ffffff', GradientType=0); /* IE6-9 */
		background: #363531;
		background: -moz-linear-gradient(top, rgb(54, 53, 49) 0%, rgb(0, 0, 0) 30%, rgb(102, 102, 102) 70%, rgb(255, 255, 255) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(54, 53, 49)), color-stop(30%, rgb(0, 0, 0)), color-stop(70%, rgb(102, 102, 102)), color-stop(100%, rgb(255, 255, 255))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top, rgb(54, 53, 49) 0%, rgb(0, 0, 0) 30%, rgb(102, 102, 102) 70%, rgb(255, 255, 255) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top, rgb(54, 53, 49) 0%, rgb(0, 0, 0) 30%, rgb(102, 102, 102) 70%, rgb(255, 255, 255) 100%); /* Opera11.10+ */
		background: -ms-linear-gradient(top, rgb(54, 53, 49) 0%, rgb(0, 0, 0) 30%, rgb(102, 102, 102) 70%, rgb(255, 255, 255) 100%); /* IE10+ */
		background: linear-gradient(top, rgb(54, 53, 49) 0%, rgb(0, 0, 0) 30%, rgb(102, 102, 102) 70%, rgb(255, 255, 255) 100%); /* W3C */
	}

	nav ul {
		margin: 0;
		padding: 0 40px 0 40px;
		height: 30px;
		list-style: none;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#e1dedd', GradientType=0); /* IE6-9 */
		background: #eeeeee;
		background: -moz-linear-gradient(top, rgb(238, 238, 238) 0%, rgb(229, 227, 227) 50%, rgb(221, 219, 211) 46%, rgb(225, 222, 221) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(238, 238, 238)), color-stop(50%, rgb(229, 227, 227)), color-stop(46%, rgb(221, 219, 211)), color-stop(100%, rgb(225, 222, 221))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top, rgb(238, 238, 238) 0%, rgb(229, 227, 227) 50%, rgb(221, 219, 211) 46%, rgb(225, 222, 221) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top, rgb(238, 238, 238) 0%, rgb(229, 227, 227) 50%, rgb(221, 219, 211) 46%, rgb(225, 222, 221) 100%); /* Opera11.10+ */
		background: -ms-linear-gradient(top, rgb(238, 238, 238) 0%, rgb(229, 227, 227) 50%, rgb(221, 219, 211) 46%, rgb(225, 222, 221) 100%); /* IE10+ */
		background: linear-gradient(top, rgb(238, 238, 238) 0%, rgb(229, 227, 227) 50%, rgb(221, 219, 211) 46%, rgb(225, 222, 221) 100%); /* W3C */
	}

	nav ul li {
		float: left;
		position: relative;
		height: 30px;
	}

	nav ul li a,
	nav ul li:hover ul li a {
		border: none;
		padding: 0 10px;
		line-height: 30px;
		font-weight: bold;
		color: #666666;
		text-transform: uppercase;
		font-size: .6em;
		border-radius: 0;
		background-color: transparent;
		display: block;
		color: #666666;
		text-decoration: none;
	}

	nav ul li:hover,
	nav ul li a:hover,
	nav ul li ul li a:hover,
	nav ul li.current a {
		color: #ffffff;
	}

	nav ul li a:hover,
	nav ul li a.current {
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#9db4cd', endColorstr='#819ebf', GradientType=0); /* IE6-9 */
		background: #9db4cd;
		background: -moz-linear-gradient(top, rgb(157, 180, 205) 0%, rgb(144, 170, 199) 50%, rgb(130, 159, 192) 46%, rgb(129, 158, 191) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(157, 180, 205)), color-stop(50%, rgb(144, 170, 199)), color-stop(46%, rgb(130, 159, 192)), color-stop(100%, rgb(129, 158, 191))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top, rgb(157, 180, 205) 0%, rgb(144, 170, 199) 50%, rgb(130, 159, 192) 46%, rgb(129, 158, 191) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top, rgb(157, 180, 205) 0%, rgb(144, 170, 199) 50%, rgb(130, 159, 192) 46%, rgb(129, 158, 191) 100%); /* Opera11.10+ */
		background: -ms-linear-gradient(top, rgb(157, 180, 205) 0%, rgb(144, 170, 199) 50%, rgb(130, 159, 192) 46%, rgb(129, 158, 191) 100%); /* IE10+ */
		background: linear-gradient(top, rgb(157, 180, 205) 0%, rgb(144, 170, 199) 50%, rgb(130, 159, 192) 46%, rgb(129, 158, 191) 100%); /* W3C */
	}

	nav ul li a.changes {
		color: #ffffff;
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cc9d9d', endColorstr='#bc8080', GradientType=0); /* IE6-9 */
		background: #cc9d9d;
		background: -moz-linear-gradient(top, rgb(204, 157, 157) 0%, rgb(198, 145, 145) 50%, rgb(191, 130, 130) 46%, rgb(188, 128, 128) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(204, 157, 157)), color-stop(50%, rgb(198, 145, 145)), color-stop(46%, rgb(191, 130, 130)), color-stop(100%, rgb(188, 128, 128))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top, rgb(204, 157, 157) 0%, rgb(198, 145, 145) 50%, rgb(191, 130, 130) 46%, rgb(188, 128, 128) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top, rgb(204, 157, 157) 0%, rgb(198, 145, 145) 50%, rgb(191, 130, 130) 46%, rgb(188, 128, 128) 100%); /* Opera11.10+ */
		background: -ms-linear-gradient(top, rgb(204, 157, 157) 0%, rgb(198, 145, 145) 50%, rgb(191, 130, 130) 46%, rgb(188, 128, 128) 100%); /* IE10+ */
		background: linear-gradient(top, rgb(204, 157, 157) 0%, rgb(198, 145, 145) 50%, rgb(191, 130, 130) 46%, rgb(188, 128, 128) 100%); /* W3C */
	}

	nav ul li ul {
		display: none;
		left: -1px;
		top: 30px;
		margin: 0;
		padding: 0;
		position: absolute;
		background: none;
		line-height: inherit;
		height: inherit;
	}

	nav ul li:hover ul {
		display: block;
		z-index: 100;
	}

	nav ul li ul li {
		display: block;
		position: relative;
		border-right: 1px solid #cccccc;
		border-left: 1px solid #cccccc;
		float: none;
		z-index: 100;
		background-color: #f4f4f4;
	}

	nav ul li ul li a {
		font-size: 0.6em;
		height: 30px;
		border: none;
		display: block;
		padding: 0 10px;
		margin: 0;
		line-height: 30px;
		font-weight: normal;
		color: #666666;
		text-transform: none;
		text-transform: uppercase;
		white-space: nowrap;
		font-weight: bold;
	}

	nav ul li ul li:last-child {
		border-bottom: 1px solid #cccccc;
	}

	nav ul li ul li a:hover {
		background: #363531;
	}

	/* Toggle Menu */
	#nav-toggle {
		display: none;
	}

	nav.collapsed {
		display: block;
	}

	/* Tables */
	thead th {
		display: table-cell;
	}
}
