/***************************************************************************
	General
***************************************************************************/

body {
	font: 62.5% Arial;
}

h1 {
	margin: 0.5em 0 1em;
	font: 2em/1.2em Georgia;
}

h2 {
	font: 1.6em/1.2em Georgia;
}

h3 {
	font: 1.4em/1.2em Georgia;
}

p {
	font-size: 1.2em;
	line-height: 1.33em;
	overflow: hidden; /* This seems dangerous.  I'm trying to contain floated buttons. */
}

a,
a:visited,
a:hover {
	color: #06C;
}

a:visited {
	color: #04A;
}

a:hover {
	color: #08D;
}

td {
	vertical-align: top;
}

:focus {
	outline: 1px dotted #666;
}

input:focus {
	outline: none;
}

ins {
	font-style: italic;
}

del {
	font-style: italic;
	text-decoration: line-through;
}

/***************************************************************************
	Generics
***************************************************************************/

.printOnly {
	display: none;
}

/* Messages ****************************/

#messages li {
	margin-bottom: 10px;
	padding: 5px 10px;
	background-color: #FE8;
	border: 1px solid #EC8;
	font: 1.2em Arial;
	color: #963;
}

#messages li a,
#messages li a:visited,
#messages li a:hover {
	float: right;
	width: 14px;
	height: 14px;
	background: url(images/messageClose.gif) no-repeat left top;
	text-decoration: none;
}

#messages li a:hover {
	background-position: left bottom;
}

/* Errors ****************************/

.errors {
	overflow: auto;
}

.errors ul {
	float: left;
	margin: 10px 0;
	padding: 10px 10px 5px;
	background-color: #FC3;
}

.errors li {
	margin-bottom: 5px;
}

/* Misc ****************************/

.notice {
	font-weight: bold;
}

.floatContainer {
	overflow: auto;
}

option.delete {
	color: #900;
}

.quickList {
	font-size: 1.2em;
}

.addInfo {
	display: none;
}

/* Buttons ****************************/

a.button,
a.button:visited,
a.button:hover,
a.button:active,
input.button {
	position: relative;
	background: url(images/buttons/green.jpg) repeat-x left top;
	color: #FFF;
	font: bold 1em Arial;
	text-decoration: none;
    -moz-box-shadow: 2px 2px 3px #BBB;
	-webkit-box-shadow: 2px 2px 3px #BBB;
	box-shadow: 2px 2px 3px #BBB;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

a.button,
a.button:visited,
a.button:hover,
a.button:active {
	display: inline-block;
	height: 19px;
	margin-bottom: 2px;
	padding: 5px 12px 0;
}

input.button {
	padding: 4px 12px 4px;
	border: 0;
}

input.button:hover,
a.button:hover,
a.button:active {
	background-image: url(images/buttons/greenHover.jpg);
}

input.button:active,
a.button:active {
	top: 1px;
	left: 1px;
    -moz-box-shadow: 0px 0px 1px #BBB;
	-webkit-box-shadow: 0px 0px 1px #BBB;
	box-shadow: 0px 0px 1px #BBB;
}

a.cancel,
a.cancel:visited,
a.cancel:hover,
a.cancel:active,
input.delete,
a.delete,
a.delete:visited,
a.delete:hover,
a.delete:active {
	background-image: url(images/buttons/grey.jpg);
	color: #333;
}

a.cancel:hover,
a.cancel:active,
input.delete:hover,
.delete:hover,
.delete:active {
	background-image: url(images/buttons/greyHover.jpg);
}

a.edit,
a.edit:visited,
a.edit:hover,
a.edit:active {
	background-image: url(images/buttons/blue.jpg);
}

a.edit:hover,
a.edit:active {
	background-image: url(images/buttons/blueHover.jpg);
}

/***************************************************************************
	Shell
***************************************************************************/

#container {
	position: relative;
	margin: 20px 35px;
	min-width: 700px;
}

#header {
	position: relative;
	padding-bottom: 20px;
}

#sectionHeader {
	height: 30px;
	margin: 0 -35px 20px;
	padding: 5px 35px;
	background-color: #CCC;
	font: 240% Georgia;
	color: #333;
}

#footer {
	clear: both;
	margin-top: 10px;
	padding: 10px 0;
	border-top: 1px solid #CCC;
	font-size: 1em;
}

#footer #attributation {
	float: right;
}

/* Nav ****************************/

#nav {
	position: absolute;
	left: 210px;
	bottom: -1px;
}

#nav li {
	float: left;
}

#nav a,
#nav a:visited,
#nav a:hover {
	display: block;
	margin-right: 10px;
	padding: 5px 10px;
	border: 1px solid #CCC;
	background-color: #FFF;
	font-size: 1.4em;
	color: #666;
	text-decoration: none;
	-moz-box-shadow: 2px 0px 5px #CCC;
	-webkit-box-shadow: 2px 0px 5px #CCC;
	box-shadow: 2px 0px 5px #CCC;
	-moz-border-radius: 3px 3px 0 0;
	-webkit-border-radius: 3px 3px 0 0;
}

#nav a:hover {
	background-color: #EEE;
}

#nav li.on a,
#nav li.on a:visited,
#nav li.on a:hover {
	margin-top: -3px;
	padding-bottom: 7px;
	color: #000;
	background-color: #CCC;
}

/* topNav */

#topNav {
	position: absolute;
	right: 0;
	top: 0px;
	overflow: auto;
	white-space: nowrap;
}

#topNav li {
	display: inline;
	margin-right: 5px;
	font-size: 1.2em;
}

#topNav li a,
#topNav li a:visited,
#topNav li a:hover {
	color: #06C;
}

#topNav li.on a,
#topNav li.on a:visited,
#topNav li.on a:hover {
	color: #333;
}

/***************************************************************************
	Homepage
***************************************************************************/

#dudePic {
	float: left;
	margin: 0 30px 30px 0;
}

#homepageButtons {
	margin: 30px 0;
}

/***************************************************************************
	Login
***************************************************************************/

body.login {
	background-color: #666;
}

body.login #container {
	margin: 70px auto 20px;
	padding: 20px;
	width: 500px;
	border: 5px solid #999;
	background-color: #FFF;
	text-align: center;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

body.login #footer {
	position: absolute;
	bottom: -30px;
	left: 0px;
	margin: 0;
	padding: 0;
	border: 0;
	width: 100%;
	text-align: left;
}

body.login #footer,
body.login #footer a,
body.login #footer a:visited,
body.login #footer a:hover {
	color: #FFF;
}

body.login #sectionHeader {
	display: none;
}

body.login form {
	margin: 30px 0;
	font-size: 1.2em;
}

body.login form table {
	margin: 0 auto;
}

body.login td {
	padding: 10px 0;
	text-align: left;
}

body.login input.text {
	width: 300px;
}

body.login label {
	margin-right: 10px;
	font-weight: bold;
}

body.login .buttons {
	text-align: right;
}

body.login .button {
	padding: 5px 12px 5px;
	background-image: url(images/buttons/login.jpg);
	font: 1.25em Arial;
}

body.login .button:hover {
	background-image: url(images/buttons/loginHover.jpg);
}

/* Errors */

body.login .errors {
	margin: 0 auto 10px;
	padding: 10px;
	width: 360px;
	background-color: #FC3;
	text-align: left;
}

body.login .errors ul {
	margin: 5px 0 0;
	padding: 0;
}

/***************************************************************************
	Info Page
***************************************************************************/

.mainInfo {
	float: left;
	margin: 0 35px 35px 0;
}

.sideInfo {
	float: left;
}

.bottomInfo {
	clear: both;
	float: left;
	margin-top: 35px;
}

.sideInfo .title,
.bottomInfo .title {
	position: relative;
	padding: 10px 145px 10px 15px;
	background-color: #E5E5E5;
}

.sideInfo .title p,
.bottomInfo .title p {
	position: absolute;
	top: 10px;
	right: 10px;
	min-width: 0;
}
	
.sideInfo h2,
.bottomInfo h2 {
	font: 1.8em Arial;
	color: #333;
}

.contactsToRemove,
.contactsToAdd {
	float: left;
}

.contactsToAdd {
	margin-left: 20px;
}

/***************************************************************************
	Tables
***************************************************************************/

/* Info ****************************/

table.info {
	width: 340px;
	font-size: 1.2em;
}

table.info td {
	padding: 10px 15px;
}

table.info .title {
	background-color: #0095FF;
}

table.info .title h1 {
	margin: 0;
	margin-right: 60px;
	font-size: 1.5em; /* 1.8/1.2 (table.info) */
	font-family: Arial;
	color: #FFF;
}

table.info .title h1 strong {
	white-space: nowrap;
}

table.info .subTitle {
	font-size: 1.333em; /* 1.8/1.2 (table.info) */
	background-color: #A5C9EC;
}

table.info .title .infoLinks {
	float: right;
	margin-top: 5px;
}

table.info .title a,
table.info .title a:visited,
table.info .title a:hover {
	color: #FFF;
	text-decoration: none;
}

table.info .title a.edit,
table.info .title a:hover {
	text-decoration: underline;
}

table.info td.label {
	padding-right: 10px;
	background-color: #E5E5E5;
	border-top: 1px solid #CCC;
	text-align: right;
	font-weight: bold;
	white-space: nowrap;
}

table.info td.detail {
	font-size: 1.167em; /* 1.4/1.2 (table.info) */
	background-color: #F5F5F5;
	border-top: 1px solid #CCC;
	width: 100%;
}

table.info td.buttons {
	padding-right: 0;
	text-align: right;
}

table.info .button {
	margin-left: 5px;
}

/* Edit ****************************/

table.edit {
	font-size: 1.2em;
	border-collapse: collapse;
}

table.edit td {
	padding-bottom: 15px;
}

table.edit label {
	display: block;
	margin: 5px 10px 0 30px;
	font-weight: bold;
	text-align: right;
}

table.edit li label {
	display: inline;
	margin: 0;
	font-weight: normal;
	text-align: left;
}

table.edit td.buttons {
	text-align: right;
}

table.edit .button {
	margin-left: 5px;
}

/* List ****************************/

table.list input {
	margin: 0;
}

table.list .noName {
	font-style: italic;
}

table.list {
	font-family: arial;
	margin: 10px 0pt 15px;
	font-size: 8pt;
	text-align: left;
}

table.list thead tr th,
table.list tfoot tr th {
	background-color: #DDD;
	border: 1px solid #FFF;
	font-size: 8pt;
	padding: 2px 4px;
}

table.list thead tr .header {
	padding-right: 20px;
	background-image: url(/images/tablesorter/bg.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}

table.list tbody td {
	padding: 3px 5px;
	background-color: #FFF;
	vertical-align: top;
	max-width: 300px;
}

table.list tbody tr.even td {
	background-color: #FFF;
}

table.list tbody tr.odd td {
	background-color: #EEE;
}

table.list tbody tr:hover td {
	background-color: #E9EEEE;
}

table.list thead tr .headerSortUp {
	background-image: url(/images/tablesorter/asc.gif);
}

table.list thead tr .headerSortDown {
	background-image: url(/images/tablesorter/desc.gif);
}

table.list thead tr .headerSortDown,
table.list thead tr .headerSortUp {
	background-color: #AAA;
}

.formControls a.button,
.formControls a.button:visited,
.formControls a.button:hover {
	margin-left: 15px;
}

/* SQL Debug ****************************/

#sqlList {
	font: 10px Verdana;
	list-style-type: decimal;
	padding-left: 20px;
}

#sqlList li {
	color: #090;
}

#sqlList li.sqlError {
	color: #900;
}

#sqlList .sqlCount {
	color: #999;
}