/* @group Reset */

/* Reset */
*{
	margin: 0;
	padding: 0;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	font-size: 100%;
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

/* @end */

/* @group Typography */

/* Typography */


body {
	margin: 0;
	padding: 0;
	font-family: "Lucida Grande", Lucida, Verdana, sans-serif;
	font-size: 76%;/* font sizing in ems, baby. if you want to change anything, just change this.*/
	/*funny thing happens at 75% and lower. opera goes to a nice small size, but moz and ie pc change almost not at all. seems 76% is as small as you can go and stay the same across browsers. poop.*/

	}

a {
	color: #3052fb;
}
a:link {
	}
a:visited {
	}
a:active {
	}
a:hover{
	text-decoration: underline;
	color: #000;
}
h1 {
	font-size: 2.0em;
	font-weight: normal;
	margin-top: 0em;
	margin-bottom: 0em;
	}
h2 {
	font-size: 1.7em;
	margin: 1.2em 0em 1.2em 0em;
	font-weight: normal;
	}
h3 {
	font-size: 1.4em;
	margin: 1.2em 0em 1.2em 0em;
	font-weight: normal;
	}
h4 {
	font-size: 1.2em;
	margin: 1.2em 0em 1.2em 0em;
	font-weight: bold;
	}
h5 {
	font-size: 1.0em;
	margin: 1.2em 0em 1.2em 0em;
	font-weight: bold;
	}
h6 {
	font-size: 0.8em;
	margin: 1.2em 0em 1.2em 0em;
	font-weight: bold;
	}
img {
	border: 0;
	}
ol, ul, li {/*
	list-style: none;*/
	font-size: 1.0em;
	line-height: 1.8em;
	margin-top: 0.2em;
	margin-bottom: 0.1em; 
	}
p {
	font-size: 1.0em;
	line-height: 1.8em;
	margin: 1.2em 0em 1.2em 0em;
	}
li > p {
	margin-top: 0.2em;
	}
pre {/*moz 1.0/1.1/1.2.1, net 7.0/7.01 make this way too small, but i'm not going to go larger because monospace tends to run you into overflow pretty quick. prior moz and net are okay.*/
	font-family: monospace;
	font-size: 1.0em;
	}
strong, b {
	font-weight: bold;
	}

/* @end */

/* Layout */
#header{
	padding: 25px 20px;
	background: #353337;
}
#header h1 a{
	font-size: 0.8em;
	font-weight: normal;
	color: white;
	text-decoration: none;
	font-family: "Lucida Grande", Lucida, Verdana, sans-serif;
}

#navigation{
	height: 40px;
	background: #85a7cd;
	padding-left: 20px;
}

/*#navigation ul{
	padding: 10px 2px;
	margin: 0;
	background: #85a7cd;
}
#navigation li{
	display: inline;
	padding-left: 20px;
}*/

#navigation a{
	color: #fff;
	text-decoration: none;
	padding: 5px 10px;
	font-weight: normal;
}
#header h1 a:hover{
	text-decoration: underline;
}
#navigation a:hover{
	background: #27333b;
}
#login-nav{
	color: white;
	top: 0;
	right: 0;
	line-height: 150%;
	text-align: center;
	position: absolute;
	padding: 20px 20px;
}
#login-nav a{
	color: #65b858;
}
#login-nav a:hover{
	color: white;
}
.clear{;
	clear: both;
}
#add-new{
	clear: both;
	width: 100px;
	margin: 0px 20px 10px 20px;
	background-color: #65b858;
}
#add-new a{
	color: #f5fef7;
	text-decoration: none;
	display: block;
	padding: 10px;
	text-align: center;
}
#add-new a:hover{
	background-color: #9add94;
}
#messages{
	margin: 10px 20px 0 20px;
}
#sub-header{
	margin:0  20px;
	color: #fff;
	height: 33px;
	margin-bottom: 10px;
	background: url('../images/crumbs_bg_light.gif');

}
	#sub-header-left{	
		height: 33px;
		background: url("../images/crumbs_open.gif") left no-repeat;
	}
	
	#sub-header-right{
		height: 33px;
		padding: 0 10px;
		background: url("../images/crumbs_close.gif") right no-repeat;
	}
	#sub-header form{
		float: right;
		margin-top:3px;
		margin-right: 2px;
	}
	#sub-header input[type="image"]{
		position: relative;
		top: 5px;
	}
	#sub-header form input[type="text"]{
		width: 200px;
	}
    #sub-header #search-overflow input[type="text"]{
        margin-top:2px;
    }
	#sub-header #search-overflow{
		position: absolute;
		text-align: right;
		right: 21px;
		background: #7996b8;
		width: 385px;
		border: 5px solid #e3e3e3;
		border-width: 0 2px 2px 2px;
		padding: 0 29px 10px 10px;
		
	}
	.search-item img{
	margin-right: -4px;
}
    #search-expand{
		position: relative;
        top:5px;
    }
    .search-remove{
		position: relative;
        top:5px;
        right: 4px;
    }
	#sub-header  a{
		text-decoration: none;
	}
.success, .failure, .info{
	margin: 0 auto;
	padding: 10px;
	color: #fff;
	font-size: 1.2em;
	font-weight: bold;
	text-align: center;
	padding-left: 20px;
}
.success{
	color: #26aa2c;
}
.failure{
	color: #a7312d;
}
.info{
	color: #aaa622;
}
/* Table */
table{
	width: 100%;
	padding: 0 20px;
}
	th{
		padding: 10px 10px;	
		border-bottom: 3px solid #d4daea;
	background-color: #fffffe;
}
	td{
		max-width: 100px;
		overflow: auto;
		padding: 5px 10px;
		border-bottom: 1px #d4daea solid;
	}
	td.first{
		border: none;
		border-bottom: 1px #d4daea solid;
		width: 15px;
	}
	.odd{
		background-color: #fff;
	}
	.even{
		background-color: #f7f7f7;
	}
	.selected{
	background-color: #d0d4dd;
}
.pagination-links{
	margin: 10px 0 0 20px;
}
	.pagination-links a{
		padding: 2px;
	}
#delete-selected{
	float: left;
	margin: 20px;
}
#cancel-selected{
	float: left;
	margin: 22px;
}

#codex-crumbs{
	float: left;
}
	#codex-crumbs ul, #codex-crumbs li{
		margin: 0;
		padding: 0;
	}
	
	#codex-crumbs li{
		float: left;
		height: 29px;
		padding: 4px 10px 0 35px;
		background: url("../images/crumbs_next.gif") left no-repeat;
	}
	
	#codex-crumbs a{
		text-decoration: none;
		font-weight: normal;
		font-size: 100%;
	}
	
	#codex-crumbs a:hover{
		text-decoration: underline;
	}
		
	.codex-crumbs-open-dark{
		height: 33px;
		background: url("../images/crumbs_next_open.gif") left no-repeat;
	}
	
	.codex-crumbs-close-dark{
		height: 27px;
		padding: 5px 20px 0 30px;
		background: url("../images/crumbs_next_close.gif") right no-repeat;
	}
	
	#codex-crumbs li.codex-crumbs-selected{
		padding: 0 !important;
		margin: 0;
		height: 29px !important;
		background: url("../images/crumbs_bg_dark.gif") repeat-x !important;
	}
	
	#codex-crumbs a{
		text-decoration: none;
		font-weight: normal;
		color: #fff;
		font-size: 100%;
	}
	
	#codex-crumbs a:hover{
		text-decoration: underline;
	}
	
	#codex-crumbs li.first{
		padding-left: 10px;	
		background: none;
}

/* Login form */
.codex-login-form{
	font-size: 120%;
	width: 300px;
	margin: 40px auto;
	padding: 20px;
	background-color: #f3f3f3;
	border: 10px solid #c8c8c8;
}
	.codex-login-form input{
		width: 285px;
		font-size: 80%;
		display: block;
		padding: 5px;
		margin-bottom: 10px;
		margin-top: 10px;
	}
	.codex-login-form input[type="submit"]{
		width: 100%;
	}

/*  Form */
.codex-form{
	margin: 0 20px 60px 20px;
}
	.codex-form .failure{
		text-align: left;
		padding: 4px;
		margin-bottom: 10px;
		background: #feeeee;
	}
	.codex-form .codex-table{
		padding: 0;
		margin: 0;
	}
	.codex-form .form-element{
		padding: 10px;
		margin: 10px 0;
		background-color: #fafafa;}
	.codex-form .form-element-text{
		margin-left: 150px;
		margin-bottom: 10px;
		color: #3f5394;
	}
	.codex-form .loading{
		padding: 10px 0;
		display: none;
		margin-left: 150px;
	}
	.codex-form label{
		float: left;
		font-weight: bold;
		width: 150px;
		color: #3f5394;
	}
	.codex-form .radio-group{
		margin-left: 150px;
	}
	.codex-form .radio-group input{
		float: left;
	}
	.codex-form fieldset{
		clear: both;
		padding: 20px;
		border: 3px solid #9baad6;
	}
	.codex-form legend{
		font-size: 120%;
		padding: 10px;
		color: #3f5394;
        background-color: #f6f6f7;
    }
	.codex-form #permissions-form label{
		
	}
	.codex-form .permissions-form-left select{
		width: 150px;
	}
	.codex-form .permissions-form-left{
		float: left;
		padding-right: 20px;
	}
	.codex-form .codex-relational{
		float: left;
		width: 70%;
	}
	
		.codex-form .codex-relational-form{
			width: 430px;
			background-color: #fff;
			padding: 10px;
			margin: 20px 0 10px 0px;
			border: 3px solid #b3b9c5;
		}

		.codex-form .codex-relational-move{
			float: left;
			height: 150px;
			margin: 0 10px;
			padding-top: 50px;
		}
		
		.codex-form .codex-relational-move img{
			display: block;
			padding-top: 10px;
			margin: auto;
		}
		
		.codex-form .codex-relational select{
			width: 200px;
			height: 200px;
			float: left;;
			margin-bottom: 10px;
		}
		
		.codex-form .codex-relational-form-close{
			text-align: center;
			width: 100%;
			display: block;
			padding: 10px 0;
			background-color: #e0686c;
			color: white;
		}
		
		.codex-form .codex-relational-form label{
			float: none;
			display: block;
			margin-bottom: 2px;
		}
		
		.codex-form .codex-relational-form .form-element{
			background: none;
			margin: 0;
		}
		
		.codex-form .codex-relational-anchor{
			margin: 0;
	background-color: #1eb133;
	padding: 5px;
	color: white;
	text-decoration: none;
}
		
.header {
	background-image: url(../images/updown.png);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
.headerSortUp {
	background-image: url(../images/desc.png);
}
.headerSortDown {
	background-image: url(../images/asc.png);
}
.headerSortDown, .headerSortUp {
	background-color: #f6fafe;
}
.hidden{
	display: none;
}


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

#nav a {
	display: block;
	xwidth: 10em;
}

#nav li {
	float: left;
	xwidth: 10em;
}



#nav li ul {
	position: absolute;
	width: 20em;
	left: -999em;
	xbackground: grey;
}

#nav li ul li a:link,
#nav li ul li a:visited{
	background: gray;
	color: white;
}

#nav li ul li a:hover,
#nav li ul li a:active{
	background: black;
	color: white;
}

#nav li:hover ul, #nav li.sfhover ul {
	left: auto;
	background: grey;
}

#nav li ul li{
	width: 20em;
	margin: 0;
}
