/* @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 ul{
	padding: 10px 2px;
	margin: 0;
	background: #b39f6d;
}
#navigation li{
	display: inline;
	padding-left: 20px;
}
#navigation a{
	color: #fff;
	text-decoration: none;
	padding: 2px;
	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: #a08d6c;
}
#login-nav a:hover{
	color: white;
}
.clear{;
	clear: both;
}
#add-new{
	clear: both;
	width: 100px;
	margin: 0px 20px 10px 40px;
	background-color: #a08d6c;
}
#add-new a{
	color: #f5fef7;
	text-decoration: none;
	display: block;
	padding: 10px;
	text-align: center;
}
#add-new a:hover{
	background-color: #ba9582;
}
#messages{
	margin: 10px 20px 0 20px;
}
#sub-header{
	margin:0  20px;
	color: #fff;
	height: 33px;
	margin-bottom: 10px;
	background: url('../images/default/crumbs_bg_light.gif');

}

	#sub-header-left{	
		height: 33px;
		background: url("../images/default/crumbs_open.gif") left no-repeat;
	}
	
	#sub-header-right{
		height: 33px;
		padding: 0 10px;
		background: url("../images/default/crumbs_close.gif") right no-repeat;
	}
	
	#sub-header form{
		float: right;
		margin-top:2px;
		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;
		top: 160px;
/*		background: #be986b;*/
		width: 395px;
	}
	
	*:first-child+html #sub-header #search-overflow{
		top: 137px;
	}
	
	.search-item{
		border: 5px solid #e3e3e3;
		border-width: 0 2px 0 0;
		padding: 0 29px 2px 5px;
	}
	 
	.search-item:last-child{
	padding-bottom: 7px;
	}
	
	.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: #faefdb;
	}
	
	.selected{
		background-color: #d0d4dd;
	}
.pagination-links{
	margin: 10px 0 0 20px;
}
	.pagination-links a{
		padding: 2px;
	}
#delete-selected{
	margin: 20px;
	margin-right: 8px;
}
.codex-form #delete-selected{
	float: left;
}
#cancel-selected{
	float: left;
	margin: 22px;
	margin-left: 0;
}

#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/default/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/default/crumbs_next_open.gif") left no-repeat;
	}
	
	.codex-crumbs-close-dark{
		height: 27px;
		padding: 6px 20px 0 30px;
		background: url("../images/default/crumbs_next_close.gif") right no-repeat;
	}
	
	#codex-crumbs li.codex-crumbs-selected{
		padding: 0 !important;
		margin: 0;
		height: 29px !important;
		background: url("../images/default/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%;
	}
.codex-table #pager{
	z-index: -1;
	margin: 5px 0 0 20px;
}
/*  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;
		position: relative;
		top: 4px;
		margin-right: 5px;
	}
	.codex-form fieldset{
		clear: both;
		border: 3px solid #9baad6;
	}
	.codex-form legend{
		font-size: 120%;
		padding: 10px;
		margin-left: 10px;
		color: #3f5394;
        background-color: #f6f6f7;
    }
	.codex-form #permissions-form{
		border: 0;
		background-color: #ecf3f3;
	}
		.codex-form #permissions-form-header{
			background: #f6f6f6;
			border: 5px solid #fff;
			padding: 10px;
			margin-bottom: 10px;
		}
		.codex-form #permissions-form-header h3{
			margin: 0;	
			margin-bottom: 5px;	
		}
		.codex-form #permissions-form-header p{
			margin: 0;	
			padding-left: 23px;
		}
		.codex-form #permissions-form-header .user-permission{
			padding-left: 0;
		}
		.codex-form #permissions-form-header img{
			position: relative;
			top: 4px;
			margin-right: 5px;
		}
		.codex-form #permissions-form-content{
			display: none;
			padding: 10px;
		}
		.codex-form #permissions-form legend{
			background: #a08d6c;
			color: #fff;
		}
		.codex-form #permissions-form-content .label{
			margin-bottom: 10px;
			font-weight: bold;
			color: #2a5432;
		}
		.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: 455px;
	}
		.codex-form .codex-relational-left{
			float: left;
		}
					
		.codex-form .codex-relational-move{
			float: left;
			margin: 40px 0 0 10px;
		}
					
		.codex-form .codex-relational-move img{
			display: block;
			margin-top: 10px;
		}
				
		.codex-form .codex-relational-right{
			float: right;
		}
		
		.codex-form .codex-relational-left,
		.codex-form .codex-relational-right
		{
			width: 200px;
			height: 200px;
			margin-bottom: 10px;
		}
		
		.codex-form .codex-relational-form{
			width: 430px;
			background-color: #fff;
			padding: 10px;
			margin: 0px 0 10px 0px;
			border: 3px solid #b3b9c5;
		}
		
		.codex-form .codex-relational-form .form-element-text input{
			margin-left: 0;
		}
		
		.codex-form .codex-relational-form .form-element-text{
			margin-bottom: 5px;
		}
		
		.codex-form .codex-relational-form .form-element-text,
		.codex-form .codex-relational-form input,
		.codex-form .codex-relational-form textarea,
		.codex-form .codex-relational-form select{
			margin-left: 30px;

		}	
		
		
		.codex-form .relational-form-close{
			text-align: center;
			float: right;
			width: 23px;
			height: 18px;
			display: block;
			padding-top: 5px;
			background-color: #e0686c;
			color: white;
		}
		.codex-form .relational-form-close:hover{
			background-color: #fcc0bc;
		}
		
		.codex-form .codex-relational-form label{
			float: none;
			display: block;
			margin-bottom: 10px;
			background-color: #f3f3f3;
			padding: 5px;
			width: 100%;
		}
				
		.codex-form .codex-relational-form .form-element{
			background: none;
			margin: 0;
		}
		
		.codex-form .codex-relational-anchor{
			margin-left: 0;
			display: block;
			width: 60px;
			text-align: center;
			background-color: #1eb133;
			padding: 10px 5px;
			color: white;
			text-decoration: none;
		}
		
#select-all{
	margin-left:20px;
}
#select-all-anchor{
	margin-top: 3px;
	float: left;
}

#pager{
	float: right;
}
		
.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, .manytomany-hidden{
	display: none;
}

#choosers{
	margin-top: 15px;
	font-size: 0.8em;
	float: right;
}
	#choosers #template-chooser,#choosers #view-mode-chooser{
		background: #e7eaf3;
		padding: 10px;
		text-align: right;
	}
	
	#choosers #template-chooser{
		margin-top: 5px;
		padding-top: 5px;
	}

	SPAN.tagMatches {
	          margin-left: 10px;
	      }

	      SPAN.tagMatches SPAN {
	          padding: 2px;
	          margin-right: 4px;
	          background-color: #0000AB;
	          color: #fff;
	          cursor: pointer;
	      }

	      PRE {
	          background: #ddd;
	          font-family: Courier;
	          padding: 5px;
	          overflow: auto;
	      }
