/* Normalizes margin, padding */
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, input, p, blockquote, th, td, body {
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 18px;
}

h2 {
	font-size: 13px;
	margin-bottom: 0.6em;
}

h3 {
	margin-bottom: 0.7em;
}
/* Normalizes font-size for headers */
/*h3, h4, h5, h6 {
	font-size: 100%;
}*/

/* Removes list-style from lists */
ol, ul {
	list-style: none;
}

/*Removes borders from imgs in lists*/
a img {
	border-style: none;
}

body, textarea {
	font-family: Verdana, Arial, Helvetica;
	font-size: 12px;
}

a:link, a:visited {
	color: #000000;
}

a:hover, a:active {
	color: #333;
}

svg {
	/*IE10 follows the W3C spec and defaults to overflow: show on SVG (and everything else), other browsers only support hidden
        this causes some unecessary scrolling as the content seems to be much bigger than we expect it - sm 19/08/2013*/
	overflow: hidden;
}

/*--------------------Page Layout--------------------*/

.fillWindow {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#topPage .fillWindow {
	min-width: 980px; /*Was 1008px, which does not fit on iPad. 981px is the exact (logical) size of the iPad's display*/
}

#header {
	position: absolute;
	top: 20px;
	height: 40px;
	left: 30px;
	right: 30px;
}

#subheader {
	position: absolute;
	top: 60px;
	height: 20px;
	left: 30px;
	right: 30px;
}

#body, #list {
	position: absolute;
	bottom: 68px;
	left: 30px;
	right: 30px;
}

#body {
	top: 60px;
	border-top: solid 1px black;
	border-bottom: solid 1px black;
	padding-top: 15px;
	overflow: auto;
}

#list {
	top: 54px; /*Needs to overlap header in order to match styble*/
	border-bottom: solid 1px black;
}

#subheader + #body {
	top: 95px;
}

#subheader + #list {
	top: 89px; /*Needs to overlap header in order to match styble*/
}

#body.nofooter, #list.nofooter {
	bottom: 30px;
}

#body.prefooter, #list.prefooter {
	bottom: 98px;
}

#prefooter {
	position: absolute;
	bottom: 68px;
	height: 20px;
	left: 30px;
	right: 30px;
}

#footer {
	position: absolute;
	bottom: 30px;
	height: 23px;
	left: 30px;
	right: 30px;
}

.left {
	display: inline-block;
}

.right {
	float: right;
	display: inline-block;
}

.toggle_wrapper {
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

iframe { /*All iFrames should be inside a div (they don't size properly otherwise)*/
	width: 100%;
	height: 100%;
	border-style: none;
}

/*--------------------BUTTONS--------------------*/

.button {
	cursor: pointer;
	vertical-align: middle;
}

	.button + .button {
		margin-left: 1px;
	}

div.button {
	display: inline-block;
	width: 95px;
	height: 19px;
	padding-top: 4px;
	background: url(sitegraphics/button_blank.gif) repeat-x 0 0;
	font-size: 11px;
	color: white;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

	div.button.searchGo {
		width: 30px;
		height: 16px;
		padding-top: 2px;
		font-weight: normal;
	}

/*--------------------TOGGLES--------------------*/

.toggle {
	cursor: pointer;
}

/*div Toggles*/
div.toggle {
	display: inline-block;
	width: 95px;
	height: 19px;
	color: #FFFFFF;
	font-size: 11px;
	text-align: center;
	padding-top: 4px;
	background: url(sitegraphics/toggle.png);
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

div.toggleSelected {
	color: #FFFFFF;
	background: url(sitegraphics/toggle_selected.png);
}

div.toggleRight {
	background: url(sitegraphics/toggle_right.png);
}

div.toggleLeft {
	background: url(sitegraphics/toggle_left.png);
}

div.toggleSelectedRight {
	background: url(sitegraphics/toggle_right_selected.png);
}

div.toggleSelectedLeft {
	background: url(sitegraphics/toggle_left_selected.png);
}

div.toggle_wrapper {
	height: auto;
	display: inline-block;
	vertical-align: middle;
	margin-left: 20px;
}


/*--------------------Search Box-------------------*/

#searchBox {
	height: 23px;
	margin: 2px 0 0 0;
	vertical-align: top;
	display: inline-block;
}

	#searchBox > * {
		vertical-align: middle;
	}

	#searchBox input {
		margin-left: 3px;
		border: 1px solid #000;
	}

	#searchBox span {
		font-size: 12px;
		font-weight: bold;
	}

/*--------------------Page Numbers--------------------*/

.navPageLink {
	cursor: pointer;
	text-decoration: underline;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	float: right;
	text-align: center;
}

	.navPageLink:hover {
		color: Red;
	}

.navPageLinkNumber {
	width: 20px;
}

.navPageLink_Selected {
	cursor: auto;
	text-decoration: none;
}

	.navPageLink_Selected:hover {
		color: inherit;
	}

.navPageLink_Disabled {
	cursor: auto;
	color: #999;
}

	.navPageLink_Disabled:hover {
		color: #999;
	}

/*-----------------------------Lists------------------------*/

#list_main {
	position: absolute;
	top: 36px;
	bottom: 66px;
	left: 0px;
	right: 0px;
}

#list_header {
	position: absolute;
	top: 0px;
	height: 31px;  /*if adding height to this,make the same change to max-height of list_headerTable td .list_headerCellContainer, below*/
	width: 100%;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	z-index: 10; /*Needed for IE7/8...the header table sizes slightly too tall and overlaps top of the body table.*/
}

.print #list_header {
	/*top: 50px;*/
	position: static;
}


#list_headerTable {
	width: 100%;
	height: 100%;
	table-layout: fixed;
	margin: 0;
	padding: 0;
	border-collapse: collapse;
}

	#list_headerTable td {
		margin: 0;
		padding: 0 5px;
		border-bottom: 1px solid black;
		border-left: 2px solid #FFF;
		text-align: left;
		overflow: hidden;
		font-weight: bold;
		font-size: 12px;
		cursor: default;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
	}

		#list_headerTable td:first-child {
			border-left: 0;
		}

		#list_headerTable td.sortable {
			cursor: pointer;
		}

		#list_headerTable td.sortUp {
			background: url(sitegraphics/list_sort_up.gif) right center no-repeat;
		}

		#list_headerTable td.sortDown {
			background: url(sitegraphics/list_sort_down.gif) right center no-repeat;
		}

		#list_headerTable td .list_headerCellContainer {
			max-height: 30px; /*if adding height to list_header, add here too. This should always be one less though*/
			text-overflow: ellipsis;
		}

#list_body {
	position: absolute;
	top: 31px;
	bottom: 0;
	width: 100%;
	overflow: auto;
	overflow-x: hidden;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.print #list_body {
	overflow: visible;
	position: static;
}

#list_bodyTable {
	width: 100%;
	empty-cells: show;
	table-layout: fixed;
	margin: 0;
	padding: 0;
	border-collapse: collapse;
}

	#list_bodyTable td {
		overflow: hidden;
		padding: 5px 5px;
		border-left: 2px solid #FFF;
		white-space: pre-wrap;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
		cursor: default;
	}

		#list_bodyTable td:first-child {
			border-left: 0;
		}

	#list_bodyTable.clickToSelect td {
		cursor: pointer;
	}

	#list_bodyTable tr.list_rowSelected {
		/* background graphic in theme css */
		background-color: gray;
		color: #FFF;
	}

#list_footer {
	position: absolute;
	height: 31px;
	bottom: -31px; /*Displays below the containing div*/
	width: 100%;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.print #list_footer {
	position: static;
}

#list_footerTable {
	width: 100%;
	height: 100%;
	table-layout: fixed;
	margin: 0;
	padding: 0;
	border-collapse: collapse;
}

	#list_footerTable td {
		position: relative;
		margin: 0;
		padding: 0 5px;
		border-top: 1px solid black;
		/*border-bottom: 1px solid black;*/
		border-left: 2px solid #FFF;
		text-align: left;
		overflow: hidden;
		font-weight: bold;
		font-size: 12px;
		cursor: default;
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
	}

		#list_footerTable td:first-child {
			border-left: 0;
		}

#pageNumbers {
	position: absolute;
	bottom: 0;
	right: 0;
}

#searchDescriptionText {
	position: absolute;
	bottom: 0;
	left: 0;
}

/*-----------------------------Trees------------------------*/

.tree {
	margin: 1px 10px 0 10px;
	font-size: 11px;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.treeNode > div {
	cursor: pointer;
	margin-bottom: 1px;
	/*background-color: #2D2D2D;*/
}

	.treeNode > div > div {
		position: relative;
		padding: 3px 0 3px 15px;
	}

		/*.treeNode > div > div > img {
			position: absolute;
			left: 3px;
			top: 5px;
			cursor: pointer;
		}*/

		.treeNode > div > div > .tree_expander {
			position: absolute;
			left: 3px;
			top: 5px;
			width: 9px;
			height: 9px;
			background: url(sitegraphics/tree_expand_closed.gif) no-repeat;
		}

			.treeNode > div > div > .tree_expander.expanded {
				background-image: url(sitegraphics/tree_expand_open.gif);
			}


div.treeContentContainer {
	position: relative;
	margin: 0;
	padding: 0;
}

	div.treeContentContainer img {
		position: absolute;
		right: 5px;
	}

.treeChildContainer {
	display: none; /*default to collapsed*/
}

.treeNodeSelected > div {
	/* background graphic in theme css */
}

/*-----------------------------Users------------------------*/


.useraddareabackground {
	background-color: #ffffff;
	border: 1px solid #000000;
}

.useraddareatitle {
	font-size: 18px;
	font-weight: bold;
}

#EmailAddressInput {
	width: 280px;
}

#CompanyInput {
	width: 280px;
}

#UserList {
	position: absolute;
	top: 36px;
	bottom: 67px;
	left: 0px;
	right: 0px;
}

#UserTypeList {
	position: absolute;
	top: 36px;
	bottom: 67px;
	left: 0px;
	right: 0px;
}

#headerTabs {
}

	#headerTabs h1 {
		position: absolute;
		top: 0;
		left: 0;
		border: none;
		font-weight: bold;
	}

.UsersEditPage {
	position: absolute;
	top: 60px;
	bottom: 68px;
	left: 30px;
	right: 30px;
	overflow: auto;
	/*position: absolute;
	top: 35px;
	bottom: 40px;
	width: 100%;
	overflow: auto;*/
}

#userDetailsPage {
	border-top: 1px solid black;
	padding-top: 13px;
}

	#userDetailsPage input[type=checkbox] {
		margin-right: 5px;
		position: relative;
		top: 2px;
	}

#UserSitesTreeSiteHeader {
	left: 5px;
}

#UserSitesTreeRoleHeader {
	left: 503px;
}

.UserSitesTreeHeader {
	position: absolute;
	top: 10px;
	font-weight: bold;
}

#UserSitesTree {
	position: absolute;
	top: 30px;
	bottom: 0px;
	left: 0;
	right: 0;
	overflow: auto;
	border-top: solid 1px black;
}

/*#UserSitesTreeBackground {
	background: url(sitegraphics/TreeBackground.gif);
}*/

.UserSitesTreeNode {
	margin-left: 0;
	overflow: hidden;
}

.UserSitesTreeNodeContent {
	height: 21px;
	padding-top: 4px;
}

	.UserSitesTreeNodeContent.Selected {
		/* background graphic in theme css */
		background-color: gray;
		color: #FFF;
	}

.UserSitesTreeNodeExpander {
	height: 18px;
	width: 18px;
	margin-top: 1px;
	vertical-align: middle;
	cursor: pointer;
	position: relative;
	top: -2px;
}

.UserSitesTreeNodeNameContainer {
	height: 18px; /*Fix height so that we know how much to position role container up*/
	width: 475px;
}

.UserSitesTreeNodeRoleContainer {
	position: relative;
	left: 500px;
	top: -19px; /*Move up as it is initially positioned below the name container*/
	/*width: 250px;*/
}

#UserHeaderNav {
	border-bottom: solid 1px black;
	height: 26px;
}

.UsersEditPage #UserHeaderNav {
	margin-top: 15px;
	border-bottom: 0px;
	height: auto;
}

#UserHeaderNav h1 {
	display: inline;
}

#UserHeaderNav #searchBox {
	width: 300px;
	height: 23px;
	margin: 2px 10px 0 0;
	vertical-align: top;
	font-size: 12px;
	font-weight: bold;
}

	#UserHeaderNav #searchBox input {
		vertical-align: middle;
		border: 1px solid #000;
	}

	#UserHeaderNav #searchBox span {
		font-weight: bold;
	}

	#UserHeaderNav #searchBox img {
		vertical-align: middle;
	}
/*#UserHeaderNav #searchBox .button {
	margin: 0 0 0 1px;
	padding: 0;
}*/

#UserEditAccessLevels {
	position: absolute;
	top: 10px;
	bottom: 20px;
	right: 80px;
	width: 400px;
	background-color: White;
	padding: 0 20px 20px 20px;
}

#UserEditAccessLevelsTitleBarLeft {
	position: absolute;
	top: 0px;
	height: 20px;
	left: 0px;
	right: 25px;
	background: url(sitegraphics/popup_titlebar.png);
}

#UserEditAccessLevelsTitleBarClose {
	position: absolute;
	top: 0px;
	height: 20px;
	width: 25px;
	right: 0px;
	padding-top: 0;
	background: url(sitegraphics/popup_titlebar_close.png);
}

#UserEditAccessLevelsContent {
	position: absolute;
	top: 15px;
	left: 0;
	right: 0;
	bottom: 0;
	border: black 1px;
	border-style: none solid solid solid;
	padding: 20px;
}

	#UserEditAccessLevelsContent .userDataFieldWrapper {
		min-width: 0;
	}

		#UserEditAccessLevelsContent .userDataFieldWrapper li {
			width: 45%;
			padding-right: 5px;
		}

			#UserEditAccessLevelsContent .userDataFieldWrapper li select {
				width: 100%;
			}

#UserEditAccessLevelsCheckboxes {
	position: absolute;
	top: 125px;
	bottom: 20px;
	left: 20px;
	right: 20px;
	overflow: auto;
}

.UserEditAccessLevelsGroup h3 {
	margin-top: 10px;
	margin-bottom: 6px;
}

/*.UserEditAccessLevelsGroup:first-child h3 {
	margin-top: 0px;
}*/

#UserEditAccessLevelsButtons {
	position: absolute;
	bottom: 17px;
	right: 20px;
}

.UserTypeEditAccessLevels {
	position: absolute;
	top: 76px;
	bottom: 0;
	width: 100%;
	overflow: auto;
	border-top: solid 1px black;
}

.UserAccessLevelsCheckbox {
	margin-right: 5px;
	position: relative;
	top: 2px;
}

.userDataFieldWrapper {
	min-width: 960px;
}

	.userDataFieldWrapper ul {
		height: 60px;
		margin: 0;
		padding: 0;
		/*background: url(sitegraphics/divider_row.gif) 0 bottom repeat-x;*/
	}

	.userDataFieldWrapper li {
		float: left;
		width: 25%;
		margin: 0;
		padding: 0;
	}

		.userDataFieldWrapper li:first-child {
			width: 24%;
		}

		.userDataFieldWrapper li .caption {
			margin: 0;
			padding: 6px 0 0.4em 0;
			display: block;
			font-size: 13px;
			font-weight: bold;
		}

		.userDataFieldWrapper li .value {
			float: left;
			font-size: 15px;
			padding: 0 0 0 0;
		}
/*------Change Password----------*/
#passwordChangeBody {
	position: absolute;
	top: 20px;
	bottom: 30px;
	left: 30px;
	right: 30px;
}

	#passwordChangeBody #logo {
		position: absolute;
		top: 0px;
		left: -10px;
	}

	#passwordChangeBody #saveButton {
		position: absolute;
		bottom: 0px;
		right: 0px;
	}

	#passwordChangeBody #title {
		position: absolute;
		top: 25px;
		left: 65px;
		font-size: 13px;
		font-weight: bold;
	}

	#passwordChangeBody #info {
		position: absolute;
		top: 43px;
		left: 65px;
		font-size: 11px;
	}

	#passwordChangeBody ul {
		position: absolute;
		top: 60px;
		left: 65px;
	}


	#passwordChangeBody #cancelButton {
		position: absolute;
		bottom: 0px;
		right: 96px;
	}

/*-----------------------------Data Fields---------------------------*/

.fieldList .caption {
	display: inline-block;
	font-weight: bold;
	width: 150px;
}

.fieldList .value {
	display: inline-block;
}

.fieldList > li {
	padding: 7px 0; /*Was 15px*/
}

	.fieldList > li > span {
		vertical-align: middle;
	}

.fieldList.fieldListColumns > li {
	display: inline;
}

	.fieldList.fieldListColumns > li .value {
		width: 100px;
	}

.fieldList + .fieldList:before {
	content: "";
	display: block;
	height: 17px;
	background: url("sitegraphics/divider.jpg") 0px 10px no-repeat #FFF;
}
