/* resets */
body, div, p, ul, ol, dl { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {font-weight: normal; margin: 0.25em 0; }
li { list-style-position: inside;}

/* general styling */
body {
	font: normal 1em/1.25em Verdana,Arial,	sans-serif;
	color: #666;
	height: 100%;
}

body > section, body > nav, body > header {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	padding: 2px 10px;
	clear: both;
	border: 1px solid #CCC;
	border-width: 0 1px;
	z-index: 1;
}

body > .final {
	border-bottom: 1px solid #CCC;
}

body > *[id^=ui] {
	display: none;
}

body > header {
	z-index: 10;
	height: 2em;
}

.admin-only
  {
	color : hwb(200 0% 60%);
	background-color : hwb(50 80% 0%);
  }

header nav {
	float: right;
	height: 2em;
	overflow: visible;
}

header nav:first-child {
	float: left;
}

header ul {
	display: inline-block;
	vertical-align: top;
}

header li {
	display: inline-block;
	margin: 4px 0;
}

header .sel {
	font-weight: bold;
}

header a:link, header a:visited {
	color: #000;
	text-decoration: none;
	padding: 2px 4px;
	border: 1px dotted #666;
}

header a:hover, header a:focus {
	border: 1px solid #000;
}

ul.dropdown {
	height: 2em;
	background: #FFF;
	overflow: hidden;
}

ul.dropdown li
{
	display: block;
}

ul.dropdown li:first-child
{
	margin-top: 2px;
	text-align: center;
}

ul.dropdown li a {
	display: block;
}

ul.dropdown:hover
, ul.dropdown.tapped
{
	height: auto;
}


h1 {
	font-size: 1.25em;
}

h2 {
	font-size: 1.125em;
}

h3 {
	font-weight: bold;
}

.center {
	text-align: center;
}

/** forms **/
label {
	display: inline-block;
	width: 200px;
	text-align: right;
}

input + label, select + label {
	width: auto;
}

label + label {
	margin-left: 90px;
	padding-left: 10px;
	border-left: 1px solid #CCC;
}

input[type=text], input[type=email] {
	width: 200px;
}

input[type=month], input[type=date], input[type=text].date, input.short {
	width: 70px;
}

input[type=checkbox] {
	vertical-align: middle;
}

input[type=radio] {
	vertical-align: text-top;
}

input[type=time] {
	width: 8em;
}

textarea {
	width: 100%;
	height: 7em;
}

textarea.narrow {
	width: 50%;
	height: 7em;
}

textarea.short {
	height: 3em;
}

textarea.long {
	height: 9em;
}

form p {
	margin: 0.5em 0;
}

form.add {
	display: block;
	text-align: center;
	line-height: 1.75em;
}

form.edit {

}

form.delete {
	display: none;
}

form.confirm {
	text-align: center;
}

form .filter {
	font-size: 0.75em;
	overflow: hidden;
}

.filter fieldset {
	float: left;
}

.filter fieldset p {
	margin-top: 0;
}

.filter fieldset p:last-child {
	margin-bottom: 0;
}

.add label, .edit label, .filter label {
	width: auto;
}

.add input[type=text], .add input[type=email] {
	width: 160px;
}

#add_note input[type=text] {
	width: 49em;
}

#add_note textarea {
	width: 50em;
	vertical-align: top;
}

form .info {
	font-size: 0.75em;
}

form .info[title] {
	cursor: help;
	vertical-align: super;
}

form.filter {
	font-size: 0.75em;
	line-height: 2em;
	overflow: hidden;
}

.filter .users, .filter .locations, .filter .categories, .filter .authors, .filter .issuers, .filter .actions, .filter .details, .filter .presets {
	display: block;
	width: 91.5%;
	clear: both;
}

.filter div.columns {
	-moz-column-count: 2;
	-moz-column-gap: 20px;
	-webkit-column-count: 2;
	-webkit-column-gap: 20px;
	column-count: 2;
	column-gap: 20px;
}

.filter div.columns table {
	width: 100%;
}

.filter .list {
	font-size: 1em;
}

/** tables **/
table {
	margin: 8px auto;
	border-collapse: collapse;
	border: 1px solid #999;
	line-height: 1.25em;
	background: #FFF;
	font-size: 0.75em;
}

table.layout
  {
	border : none;
	font-size : 1em;
	clear: both;
  }
table.layout td
  {
	padding : 0.5em;
  }
table.layout td.label
  {
	text-align : right;
  }

table.report td:nth-of-type(even)
  {
	background: #eee;
  }

.label
  {
	font-size : 1.2em;
	font-weight : bold;
  }

thead {
	border-bottom: 1px solid #999;
}

th {
	text-align: left;
}

tbody th {
	font-weight: normal;
	vertical-align: top;
	padding: 2px;
}

th.control, td.control {
	width: 70px;
	text-align: center;
}

th.text, td.text {
	width: 130px;
}

th.wide-text, td.wide-text {
	width: 260px;
}

th.wider-text, td.wider-text {
	width: 400px;
}

th.narrow-text, td.narrow-text {
	width: 90px;
}

tr{
	border-top: 1px solid #CCC;
}

table.layout tbody tr
  {
	border : none;
  }

.list tr {
	border-top: 1px solid #DDD;
}

.pegboard tr {
	border-top: none;
}

.list tr:nth-child(even) > * {
	background: #EEE;
}

.list tr.highlight > * {
	background: #7D98C5 !important;
}

td {
	vertical-align: top;
	padding: 2px 2px 4px;
}

.list th.highlight, .list td.highlight {
	background: #7D98C5 !important;
}

.pegboard thead th {
	text-align: center;
}

.pegboard tbody th {
	width: 11em;
}

.pegboard th, .pegboard td {
	border: 1px solid #CCC;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 2px;
}

.pegboard tbody td {
	font-size: 0.833em;
	width: 5.4em;
}

.pegboard .week th, .pegboard .days th:nth-child(7n), .pegboard td:nth-child(7n) {
	border-right-color: #999;
}

.pegboard .days th {
	font-weight: normal;
}

.pegboardView {
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	width: 930px;
}

.pegboardView  table {
	margin: 0 auto;
}

.pegboardView > table:first-of-type {
	position: absolute;
	top: 0;
	left: 0;
	width: 130px;
	font-size: 0.75em;
	z-index: 5;
}


.pegboardView .slider {
	position: relative;
	clear: both;
	z-index: 1;
	left: 145px;
	white-space: nowrap;
	margin: 0;
}

.pegboardView a {
	display: block;
	position: absolute;
	top: 0;
	width: 15px;
	height: 100%;
	line-height: 100%;
	background: rgb(230,230,230);
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	z-index: 10;
}

.pegboardView .scrollLeft {
	left: 130px;
}

.pegboardView .scrollRight {
	right: 0;
	width: 13px;
	border: 1px solid #CCC;
}

.official {
	color: #144F87;
	font-weight: bold;
}

.lastUpdated {
	font-size: 0.625em;
}

.slider table {
	width: auto;
	position: relative;
	display: inline-block;
	border: 0;
}

.slider table td {
	width: 5.4em;
	max-width: 5.4em;
	overflow: hidden;
}

/*
.slider .days th:nth-child(7n-1), .slider td:nth-child(7n-1)
, .slider .days th:nth-child(7n), .slider td:nth-child(7n)
*/
.slider  td.Sat, .slider td.Sun
{
	background: #EEE;
	width: 4em;
	max-width: 4em;
}

.paging {
	text-align: center;
	font-size: 0.875em;
}

.paging .current {
	font-weight: bold;
	color: #000000 !important;
}

/** sections **/
.content {
	padding-bottom: 10px;
}

.content-archived {
	padding-bottom: 10px;
	background: #DDD;
}

.content + .content {
	border-top: 1px dashed #CCC;
}

.success-message
  {
	color: #0A9262;
	text-align: center;
  } /*success-message*/

.error-message
  {
	color: #B81D08;
	text-align: center;
  } /*error-message*/

/* jQuery ui overrides */
.ui-menu .ui-menu-item a {
	font-size: 0.875em;
}

/* iphone */
@media screen and (max-width: 480px) {
	body { font-size: 0.75em; }
	input[type=radio] {
		vertical-align: middle;
	}
	.add label {width: 100%; text-align: left; }

	form.add.center input[type=submit], form.add.center input[type=button] { display: block; margin: 0 auto; }

	form.edit label { width: 50%; text-align: left; }
	form.edit label + label { margin-left: 10px; clear: left; }
	form.edit input[type=radio] + label { width: auto;}
	form.edit input[type=submit], form.edit input[type=text], form.edit input[type=email], form.edit input[type=month], form.edit input[type=date], form.edit input[type=time]  { max-width: 40%; }
	.info { display: block; }
}
