/*
 * Copyright (C) 2014-2015 Malcolm Scott.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License (file 'LICENCE') for more details.
 */

body {
	background: white;
	color: black;
}

body {
	font-family: Roboto Light, Verdana, Arial, Helvetica, sans-serif;
	margin: 0;
	padding: 0;
}

a.block {
	text-decoration: none;
	color: black !important;
}

a, a span.link {
	text-decoration: underline;
	color: #009;
}

a:hover, a:hover span.link {
	color: #00f;
}

a:active, a:active span.link {
	color: #909;
}

#content-container {
	margin: 0 auto 0 auto;
	max-width: 1000px;
}

#content {
	margin: 18pt 0 18pt auto;
	max-width: 890px;
	padding: 0 10px;
}

#topbar {
	background: black;
	margin: 0;
}

h2, h3, h4 {
	font-family: Times New Roman, serif;
	font-weight: normal;
}

h1 {
	font-family: Cinzel, Times New Roman, serif;
	font-weight: normal;
	font-variant: small-caps;
	max-width: 890px;
	min-height: 40px;
	margin: 0 auto 0 auto;
	padding: 37px 0 37px 90px;
	background-color: black;
	background-image: url(trinhall-white.svg);
	background-position: 7px 15px;
	background-size: 72px 84px;
	background-repeat: no-repeat;
	color: white;
	font-size: 28px;
}

h1::before {
	content: 'Trinity Hall ';
}

h2 {
	font-size: 15pt;
	margin-top: 18pt;
}

h3 {
	font-size: 13pt;
	margin-top: 18pt;
}

li h3 {
	margin-top: 0;
}

a.heading {
	text-decoration: none;
}

a img {
	border: 0;
}

ul.authchoices {
	margin: 0 -10px;
	padding: 0;
}

ul.authchoices li {
	list-style-type: none;
	background: #eee;
	padding: 10px;
	margin-bottom: 10px;
}

#flashes-container {
	background: #ffc;
}

#flashes {
	margin: 0 auto 0 auto;
	max-width: 1000px;
	padding: 0 0 10px 0;
}

#flashes li {
	list-style-type: none;
	margin: 0 0 0 auto;
	padding: 10px 10px 0 10px;
	max-width: 890px;
}

#footer {
	margin-top: 24pt;
	background: #e2e2e2;
}

#authinfo {
	margin: 0 auto 0 auto;
	padding: 8pt 10px 8pt 10px;
	max-width: 1000px;
	text-align: right;
	color: #999;
}

table, .searchresults {
	border-collapse: collapse;
	padding: 0;
	margin: 10px -10px 1.5em -10px;
}

table.hosts, table.addrhistory {
	width: 100%;
}

table.hosts, table.addrhistory {
	/* margin handled by containing div.searchresults */
	margin: 0;
}

table.hosts td.user {
	padding-left: 5px;
	padding-right: 5px;
}

td, th {
	text-align: left;
	padding: 3px 10px;
}

.hosts .hostname, .addrhistory .hostname {
	font-style: italic;
	color: black;
}

.number {
	text-align: right;
	white-space: nowrap;
}

.date {
	white-space: nowrap;
}

td.bargraph {
	width: 100%;
}

.segment {
	display: inline-block;
	height: 0.95em;
}

.bargraph-key .segment {
	width: 0.95em;
	margin-right: 0.3em;
	vertical-align: middle;
}

.bargraph-key {
	margin: 10px 0 1.5em 0;
	padding: 0;
	list-style-type: none;
}

.bargraph-key li {
	margin: 0.5em 1em 0.5em 0;
	padding: 0;
	display: inline-block;
}

.odd {
	background-color: #eee;
}

.even {
	background-color: #ddd;
}

table.hosts td {
	empty-cells: show;
}

.hosts .expired td, .hosts .expired td a {
	color: #aaa;
}

.monospace, input[type=date], input[type=datetime], input[type=time] {
	font-family: Ubuntu Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, monospace;
}

input[type=number] {
	width: 4em;
}

textarea {
	vertical-align: top;
}

.field input[type=text], .field input[type=date], .field input[type=datetime], .field input[type=time], .field input[type=password], .field input[type=tel], .field input[type=email], .field input[type=search], texarea {
	width: 11em;
}

.wide input[type=text], .wide input[type=date], .wide input[type=datetime], .wide input[type=time], .wide input[type=password], .wide input[type=tel], .wide input[type=email], .wide input[type=search], textarea {
	width: 25em;
}

ul.field {
	margin: 0 -10px;
	padding: 10px;
	display: inline-block;
}

ul.info {
	margin: 1.5em 0;
	padding: 0;
}

.expand {
	width: 100%;
}

ul.field {
	background: #eee;
}

ul.field li, ul.info li {
	list-style-type: none;
	clear: both;
}

.field-division {
	clear: both;
	margin-top: 36pt;
	padding-top: 12pt;
	border-top: 6pt solid #fff;
}

.field .explanation, ul.info .explanation {
	margin: 0.5em 0;
}

.field li h2, .info li h2 {
	margin: 0 0 0.75em 0;
	padding: 0;
}

.field input[type=submit] {
	float: right;
	margin-top: 10px;
}

.field input[type=submit].inline {
	float: none;
	margin-top: 0;
}

.field label, .info label {
	min-width: 7em;
	font-weight: bold;
}

.field label {
	display: inline-block;
	margin-top: 3px;
}

.info label {
	display: table-cell;
	padding-top: 0.25em;
	padding-bottom: 0.25em;
}

pre.info {
	display: table-cell;
}

.field li.checkbox {
	margin-top: 4pt;
	margin-bottom: 4pt;
}

.field li.checkbox label {
	display: inline;
	margin-top: 0;
}

.wide label {
	min-width: 8em;
	padding-right: 0.5em;
}

.extrawide label {
	min-width: 20em;
}

label.wide {
	display: block;
}

.sparse li {
	margin: 0 0 1em 0 !important;
}

.sparse li.last {
	margin: 0;
}

.sparse li h2 {
	margin: 0;
	padding: 0;
}

.sparse input {
	margin-left: 3em;
}

.sparse label {
	display: inline;
}

.checklist li {
	margin: 0.2em 0 !important;
	white-space: nowrap;
	list-style-type: none;
}

.checklist li input {
	margin-left: 0;
	vertical-align: top;
}

.checklist li label {
	display: inline-block;
	white-space: normal;
	padding: 0 15px 0 0;
	margin-top: 0;
}

.inline-checklist {
	display: inline-block;
	vertical-align: top;
	padding: 0;
}

.inline-checklist label {
	font-weight: normal;
}

.field .annotation {
	font-size: 90%;
	color: #999;
	text-align: right;
	margin-bottom: 0.5em;
}

.sparse .annotation {
	text-align: left !important;
}

.label_annotation {
	font-size: 90%;
	color: #999;
	font-weight: normal !important;
}

input.hostname {
	width: 8em !important;
}

span.info {
	display: table-cell;
}

.menu {
	margin: 10px 0;
	padding: 0;
}

.menu li {
	display: block;
	list-style-type: none;
	padding: 10px;
	margin: 0 -10px;
}

form.inline {
	display: inline-block;
	float: right;
}

.navbar {
	color: #ccc;
	margin: 1em 0;
}

.navbar a {
	color: black !important;
}

.navbar a.current {
	text-decoration: none;
	color: #999 !important;
}

ul.navbar {
	padding-left: 0;
}

ul.navbar li {
	display: inline;
	list-style-type: none;
	padding: 0.2em 0.67em;
	margin-right: -1px;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}

.httperror-verbose {
	color: #aaa;
}

.debug {
	color: #aaa;
	margin-top: 2em;
}

.highlight {
	background: #ffc;
	padding: 10px;
	margin: 0 -10px;
}

.false {
	background: #fdd;
}

.true {
	background: #dfd;
}

.ldap_query_key {
	color: #888;
	font-weight: normal;
}

.ldap_query_key:after {
	content: ':';
}

.group_exemption_query {
	font-weight: bold;
}

.group_exemption_comment {
	font-style: italic;
}

ul.group_exemptions>li {
	padding: 0.5em;
}

.group_exemption_count {
	margin-top: 0.5em;
}

.group_exemption_title {
	display: inline;
}

.group_exemption_title:after {
	content: ':';
}

.group_exemption_usercount {
	display: inline;
}

.group_exemption_action {
	float: right;
}
