/******************************************************************************
 * page_content.css
 *
 * A set of stylings for the page content (not layout) of Dwell.
 * The rules in this file are applied to all pages.  If you have styles that
 * only apply to a single page, they should go in that page's CSS file, however
 * feel free to add styles that target multiple pages to this file, even if
 * they are not used everywhere (and if you do, add them at the bottom, clearly
 * labelling which pages they apply to, possibly via the use of a
 * body#page-page_name selector).
 ******************************************************************************
 */

/* Colour values, used in multiple places. */

/*************** SOME STANDARD CSS RESETS ***************/

	input {
	/* Webkit seems to add a 2px margin round inputs, so explicitly set this to zero
	 * as the default.
	 */
		margin: 0;
	}

/*************** STANDARD HTML ELEMENTS ***************/

	a,
	.ui-widget-content a {
		color: #3366CC;
	}

	a:hover,
	a:focus,
	a:active {
		color: #F99F34;
	}

	a.ExpandCollapseLink {
		color: #615843;
		border-bottom: 1px dotted #615843;
		text-decoration: none;
	}

	span.DisabledLink {
		color: #808080;
	}

	.ExpandCollapseBody {
		background-color: rgba(255, 255, 255, 0.2);
		border: 1px solid #CCCCCC;
		border-width: 1px 0;
		padding: 0.2em 0.4em;
		display: block;
	}

	h3 {
		font-size: 1.2em;
		margin: 1em 0 0.5em 0;
	}

	h3.divider {
		border: 1px solid #B0B68E;
		background-color: #EDEDE4;
		padding: 0.25em 0.5em;
		margin: 1em 0;
	}

	p, ul {
	/* Tidy up margins before/after these block elements.  The default seems
	 * a bit large.
	 */
		margin-top: 0.75em;
		margin-bottom: 0.75em;
	}

	hr {
		border: none;
		border-top: 1px solid #D0CBC2;

	/* Top/bottom margin set to 1em
	 * Side margins set to a small negative number, so they are slightly wider than
	 * the text.
	 */
		margin: 1em -0.5em;
	}

	.content {
		margin: 1em 1.5em;
	}

/* Remove borders from all images.  If any images need an explicit border, it should
 * be added back manually.  However, in Dwell most images are likely to be icons
 * for the interface, and it therefore makes most sense to default to no border.
 */
	img {
		border: none;
	}

/*************** SPECIAL LINKS ***************/

.LinkHolderActive {
	cursor: pointer;
	border: 1px solid transparent;
	-moz-border-radius: 3px;
		-khtml-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
	padding: 0.2em 0.5em;
	margin: 0.2em 0;
}

.LinkHolderActive:hover {
	border-color: #F99F34;
	background-color: #FFFFFF;
}

.LinkHolderActive a {
	text-decoration: none;
	font-weight: bold;
}

.LinkHolderActive:hover a {
	color: #F99F34;
}

/*************** TABLES ***************/

	table {
	/* We use uncollapsed borders, with a border spacing of zero, so that we are
	 * able to apply rounded corners to the table.  When the borders are collapsed,
	 * it is not possible to apply rounded corners AND to have a border (you can
	 * apply rounding to the corner cells to round them, but the table border still
	 * remains squared).
	 */
		border-collapse: separate;
		border-spacing: 0;

	/* Set the borders, background colour (a 50% transparent white background)
	 * and a subtle drop-shadow on the bottom edge.
	 */
		border: solid #CCCCCC 1px;
		background-color: rgba(255, 255, 255, 0.5);
		-moz-box-shadow: 0 1px 1px #CCCCCC;
		-khtml-box-shadow: 0 1px 1px #CCCCCC;
		-webkit-box-shadow: 0 1px 1px #CCCCCC;
		box-shadow: 0 1px 1px #CCCCCC;

	/* Give a small amount of white-space before and after the table, and center
	 * it by default.
	 */
		margin: 0.2em auto;
	}

/* Set up borders so there is just a single line between cells. */

	td, th {
		border: none;
		border-right: 1px solid #CCCCCC;
		border-bottom: 1px solid #CCCCCC;

	/* Also add some padding to the individual cells. */
		padding: 0.2em 0.4em;
	}

	tr:last-child th,
	tr:last-child td {
		border-bottom: none;
	}

	td:last-child,
	th:last-child {
		border-right: none;
	}

/* Style header rows. */

	th {
		background: #F8F4F3;
		background: -moz-linear-gradient(top, #F8F4F3 0%,#E1E0D1 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F8F4F3), color-stop(100%, #E1E0D1));
		background: -webkit-linear-gradient(top, #F8F4F3 0%,#E1E0D1 100%);
		background: -o-linear-gradient(top, #F8F4F3 0%,#E1E0D1 100%);
		background: -ms-linear-gradient(top, #F8F4F3 0%,#E1E0D1 100%);
		background: linear-gradient(to bottom, #F8F4F3 0%,#E1E0D1 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F8F4F3', endColorstr='#E1E0D1', GradientType=0);
		-moz-box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
		-khtml-box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
		-webkit-box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
		box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
		text-shadow: 1px 1px 1px #FFFFFF;
	}

/* Style secondary headings, where they are used. */

	th.tblSecondaryHeading {
		text-align: left;
		border-bottom: 1px solid #CCCCCC;
		background: transparent;
		filter: none;
		background-color: #E9E7DD;
	}

/*** BEGIN ROUNDED TABLES ***/

	table {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	thead:first-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	thead:only-child {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	tfoot:last-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tfoot:only-child {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	tbody:first-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	tbody:last-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tbody:only-child {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	table > tr:first-child > td:first-child,
	table > tr:first-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	table > tr:first-child > td:last-child,
	table > tr:first-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	table > tr:first-child > td:only-child,
	table > tr:first-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	table > tr:last-child > td:first-child,
	table > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	table > tr:last-child > td:last-child,
	table > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	table > tr:last-child > td:only-child,
	table > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	table > tr:only-child > td:first-child,
	table > tr:only-child > th:first-child {
		-moz-border-radius: 6px 0 0 6px;
		-khtml-border-radius: 6px 0 0 6px;
		-webkit-border-radius: 6px 0 0 6px;
		border-radius: 6px 0 0 6px;
	}

	table > tr:only-child > td:last-child,
	table > tr:only-child > th:last-child {
		-moz-border-radius: 0 6px 6px 0;
		-khtml-border-radius: 0 6px 6px 0;
		-webkit-border-radius: 0 6px 6px 0;
		border-radius: 0 6px 6px 0;
	}

	table > tr:only-child > td:only-child,
	table > tr:only-child > th:only-child {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	thead:first-child > tr:first-child > td:first-child,
	thead:first-child > tr:first-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	thead:first-child > tr:first-child > td:last-child,
	thead:first-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	thead:first-child > tr:first-child > td:only-child,
	thead:first-child > tr:first-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	thead:first-child > tr:last-child > td:first-child,
	thead:first-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:first-child > tr:last-child > td:last-child,
	thead:first-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:first-child > tr:last-child > td:only-child,
	thead:first-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:first-child > tr:only-child > td:first-child,
	thead:first-child > tr:only-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	thead:first-child > tr:only-child > td:last-child,
	thead:first-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	thead:first-child > tr:only-child > td:only-child,
	thead:first-child > tr:only-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	thead:only-child > tr:first-child > td:first-child,
	thead:only-child > tr:first-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	thead:only-child > tr:first-child > td:last-child,
	thead:only-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	thead:only-child > tr:first-child > td:only-child,
	thead:only-child > tr:first-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	thead:only-child > tr:last-child > td:first-child,
	thead:only-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:only-child > tr:last-child > td:last-child,
	thead:only-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:only-child > tr:last-child > td:only-child,
	thead:only-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	thead:only-child > tr:only-child > td:first-child,
	thead:only-child > tr:only-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	thead:only-child > tr:only-child > td:last-child,
	thead:only-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	thead:only-child > tr:only-child > td:only-child,
	thead:only-child > tr:only-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	tbody:first-child > tr:first-child > td:first-child,
	tbody:first-child > tr:first-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	tbody:first-child > tr:first-child > td:last-child,
	tbody:first-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	tbody:first-child > tr:first-child > td:only-child,
	tbody:first-child > tr:first-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	tbody:first-child > tr:last-child > td:first-child,
	tbody:first-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:first-child > tr:last-child > td:last-child,
	tbody:first-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:first-child > tr:last-child > td:only-child,
	tbody:first-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:first-child > tr:only-child > td:first-child,
	tbody:first-child > tr:only-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	tbody:first-child > tr:only-child > td:last-child,
	tbody:first-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	tbody:first-child > tr:only-child > td:only-child,
	tbody:first-child > tr:only-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	tbody:last-child > tr:first-child > td:first-child,
	tbody:last-child > tr:first-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:last-child > tr:first-child > td:last-child,
	tbody:last-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:last-child > tr:first-child > td:only-child,
	tbody:last-child > tr:first-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tbody:last-child > tr:last-child > td:first-child,
	tbody:last-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tbody:last-child > tr:last-child > td:last-child,
	tbody:last-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tbody:last-child > tr:last-child > td:only-child,
	tbody:last-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tbody:last-child > tr:only-child > td:first-child,
	tbody:last-child > tr:only-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tbody:last-child > tr:only-child > td:last-child,
	tbody:last-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tbody:last-child > tr:only-child > td:only-child,
	tbody:last-child > tr:only-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tbody:only-child > tr:first-child > td:first-child,
	tbody:only-child > tr:first-child > th:first-child {
		-moz-border-radius: 6px 0 0 0;
		-khtml-border-radius: 6px 0 0 0;
		-webkit-border-radius: 6px 0 0 0;
		border-radius: 6px 0 0 0;
	}

	tbody:only-child > tr:first-child > td:last-child,
	tbody:only-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 6px 0 0;
		-khtml-border-radius: 0 6px 0 0;
		-webkit-border-radius: 0 6px 0 0;
		border-radius: 0 6px 0 0;
	}

	tbody:only-child > tr:first-child > td:only-child,
	tbody:only-child > tr:first-child > th:only-child {
		-moz-border-radius: 6px 6px 0 0;
		-khtml-border-radius: 6px 6px 0 0;
		-webkit-border-radius: 6px 6px 0 0;
		border-radius: 6px 6px 0 0;
	}

	tbody:only-child > tr:last-child > td:first-child,
	tbody:only-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tbody:only-child > tr:last-child > td:last-child,
	tbody:only-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tbody:only-child > tr:last-child > td:only-child,
	tbody:only-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tbody:only-child > tr:only-child > td:first-child,
	tbody:only-child > tr:only-child > th:first-child {
		-moz-border-radius: 6px 0 0 6px;
		-khtml-border-radius: 6px 0 0 6px;
		-webkit-border-radius: 6px 0 0 6px;
		border-radius: 6px 0 0 6px;
	}

	tbody:only-child > tr:only-child > td:last-child,
	tbody:only-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 6px 6px 0;
		-khtml-border-radius: 0 6px 6px 0;
		-webkit-border-radius: 0 6px 6px 0;
		border-radius: 0 6px 6px 0;
	}

	tbody:only-child > tr:only-child > td:only-child,
	tbody:only-child > tr:only-child > th:only-child {
		-moz-border-radius: 6px 6px 6px 6px;
		-khtml-border-radius: 6px 6px 6px 6px;
		-webkit-border-radius: 6px 6px 6px 6px;
		border-radius: 6px 6px 6px 6px;
	}

	tfoot:last-child > tr:first-child > td:first-child,
	tfoot:last-child > tr:first-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:last-child > tr:first-child > td:last-child,
	tfoot:last-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:last-child > tr:first-child > td:only-child,
	tfoot:last-child > tr:first-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:last-child > tr:last-child > td:first-child,
	tfoot:last-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tfoot:last-child > tr:last-child > td:last-child,
	tfoot:last-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tfoot:last-child > tr:last-child > td:only-child,
	tfoot:last-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tfoot:last-child > tr:only-child > td:first-child,
	tfoot:last-child > tr:only-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tfoot:last-child > tr:only-child > td:last-child,
	tfoot:last-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tfoot:last-child > tr:only-child > td:only-child,
	tfoot:last-child > tr:only-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tfoot:only-child > tr:first-child > td:first-child,
	tfoot:only-child > tr:first-child > th:first-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:only-child > tr:first-child > td:last-child,
	tfoot:only-child > tr:first-child > th:last-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:only-child > tr:first-child > td:only-child,
	tfoot:only-child > tr:first-child > th:only-child {
		-moz-border-radius: 0 0 0 0;
		-khtml-border-radius: 0 0 0 0;
		-webkit-border-radius: 0 0 0 0;
		border-radius: 0 0 0 0;
	}

	tfoot:only-child > tr:last-child > td:first-child,
	tfoot:only-child > tr:last-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tfoot:only-child > tr:last-child > td:last-child,
	tfoot:only-child > tr:last-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tfoot:only-child > tr:last-child > td:only-child,
	tfoot:only-child > tr:last-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}

	tfoot:only-child > tr:only-child > td:first-child,
	tfoot:only-child > tr:only-child > th:first-child {
		-moz-border-radius: 0 0 0 6px;
		-khtml-border-radius: 0 0 0 6px;
		-webkit-border-radius: 0 0 0 6px;
		border-radius: 0 0 0 6px;
	}

	tfoot:only-child > tr:only-child > td:last-child,
	tfoot:only-child > tr:only-child > th:last-child {
		-moz-border-radius: 0 0 6px 0;
		-khtml-border-radius: 0 0 6px 0;
		-webkit-border-radius: 0 0 6px 0;
		border-radius: 0 0 6px 0;
	}

	tfoot:only-child > tr:only-child > td:only-child,
	tfoot:only-child > tr:only-child > th:only-child {
		-moz-border-radius: 0 0 6px 6px;
		-khtml-border-radius: 0 0 6px 6px;
		-webkit-border-radius: 0 0 6px 6px;
		border-radius: 0 0 6px 6px;
	}


/*** END ROUNDED TABLES ***/



/*** Alternating rows ***/

	tr.OddTableRow {

	}

	tr.EvenTableRow {
		background-color: #EEE7DD;
	}

/*** Number cells should be right-aligned ***/

	td.NumberCell {
		text-align: right;
	}

/*** Date cells should be centered ***/

	td.DateCell {
		text-align: center;
	}

/*** Button/checkbox cells should be fully centered, with all padding removed. ***/

	td.ButtonCell,
	td.CheckboxCell,
	th.CheckboxCell {
		text-align: center;
		vertical-align: middle;
		padding: 0;
	}

/*** Compact ***/

	table.tblCompact td, table.tblCompact th {
		padding: 0;
	}

	table.tblBorderless, table.tblBorderless td, table.tblBorderless th {
		border: none;
	}

	table.tblBorderless th {
		background: transparent;
		filter: none;
	}

/*** Not-Centered ***/

	table.tblNonCentered {
		margin-right: 0;
		margin-left: 0;
	}

/*** Sortable Headings ***/

/* Right padding to leave space for sort-icon.  This is used even if no sort-icon
 * is displayed so that table columns do not jump around when no icon selected.
 */
	tr.SortableTableHeader th a {
		padding-right: 18px;
		display: block;
	}

	th.SortUp a, th.SortDown a {
		background-repeat: no-repeat;
		background-position: right center;
	}

	th.SortUp a {
		background-image: url(https://dwellstaging.lilac.coop/index.php?Request=image&FileStore=core&Path=images%2Fsort_up.png);
	}

	th.SortDown a {
		background-image: url(https://dwellstaging.lilac.coop/index.php?Request=image&FileStore=core&Path=images%2Fsort_down.png);
	}

/*************** NOTIFICATIONS PANEL ***************/

	#NotificationsPanel {
		margin-top: 0.5em;
	}

	.PersonalMode #NotificationsPanel {
	/* Add some space to the right of the panel when in personal mode, so that
	 * it doesn't end up going underneath the right-hand navigation buttons.
	 */
		margin-right: 3em;
	}

	#NotificationsPanel p,
	p.Information,
	div.Information,
	p.DataUpdated,
	p.Error,
	div.Error,
	p.Warning,
	div.Warning {
		margin: 0;
		margin-bottom: 2em;

		padding: 0.5em 0.75em;
		padding-bottom: 0.6em;

		color: #333399;
		border: 1px solid #9999CC;
		border-left-width: 7px;
		background-color: #F0F0FF;

		-moz-border-radius: 5px;
		-khtml-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;
		text-shadow: 0 1px 1px #FFFFFF;
	}

	#NotificationsPanel .DataUpdated,
	p.DataUpdated {
		color: #339933;
		border-color: #99CC99;
		background-color: #F0FFF0;
		background: #F7FFF2;
		background: -moz-linear-gradient(top, #F7FFF2 0%, #E2EFDC 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F7FFF2), color-stop(100%, #E2EFDC));
		background: -webkit-linear-gradient(top, #F7FFF2 0%, #E2EFDC 100%);
		background: -o-linear-gradient(top, #F7FFF2 0%, #E2EFDC 100%);
		background: -ms-linear-gradient(top, #F7FFF2 0%, #E2EFDC 100%);
		background: linear-gradient(to bottom, #F7FFF2 0%, #E2EFDC 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F7FFF2', endColorstr='#E2EFDC', GradientType=0);
	}

	#NotificationsPanel .Error,
	p.Error,
	div.Error {
		color: #E00000;
		border-color: #EA3025;
		background: #FFF6F6;
		background: -moz-linear-gradient(top, #FFF6F6 0%, #F9E9E9 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFF6F6), color-stop(100%, #F9E9E9));
		background: -webkit-linear-gradient(top, #FFF6F6 0%, #F9E9E9 100%);
		background: -o-linear-gradient(top, #FFF6F6 0%, #F9E9E9 100%);
		background: -ms-linear-gradient(top, #FFF6F6 0%, #F9E9E9 100%);
		background: linear-gradient(to bottom, #FFF6F6 0%, #F9E9E9 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFF6F6', endColorstr='#F9E9E9', GradientType=0);
	}

	#NotificationsPanel .Warning,
	p.Warning,
	div.Warning {
		color: #FF9966;
		border-color: #FF9966;
		background: #FFF9F0;
		background: -moz-linear-gradient(top, #FFF9F0 0%, #FFF0E9 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFF9F0), color-stop(100%, #FFF0E9));
		background: -webkit-linear-gradient(top, #FFF9F0 0%, #FFF0E9 100%);
		background: -o-linear-gradient(top, #FFF9F0 0%, #FFF0E9 100%);
		background: -ms-linear-gradient(top, #FFF9F0 0%, #FFF0E9 100%);
		background: linear-gradient(to bottom, #FFF9F0 0%, #FFF0E9 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFF9F0', endColorstr='#FFF0E9', GradientType=0);
	}

	#NotificationsPanel .IRWarning {
	/* Set position: relative so that we can use absolute positioning on the
	 * button.
	 */
		position: relative;

	/* Add some right padding to leave space for the button. */
		padding-right: 15em;
	}

	#NotificationsPanel .IRWarning b {
	/* Give some space to the bold first line and make it stand out more. */
		display: block;

	/* Undo most of the space added by the following <br> tag. */
		margin-bottom: -0.5em;
	}

	#NotificationsPanel .IREditLink {
	/* Position the button neatly within the box. */
		position: absolute;
		bottom: 0.5em;
		right: 0;
	}

	#NotificationsPanel .IREditLink:active {
	/* Set top/left properties to auto - these are normally set to 1px in order
	 * to make the button move when clicked, but because we are anchored bottom/right
	 * we end up with a button that fills the whole container element!
	 */
		top: auto;
		left: auto;

	/* Employ an alternative method of shifting the button left/down by 1px when
	 * clicked.
	 */
		bottom: 0.4em;
		right: -0.05em;
	}

/*************** Date/Time inputs ***************/

	.DateMonth,
	.DateDay,
	.TimeHour,
	.TimeMinute {
		width: 1.2em;
	}

	.DateYear {
		width: 2.2em;
	}

/*************** FORM LAYOUT ***************/

	form {
		margin: 1em 2em;
	}

	.ui-dialog {
	/* Forms within a popup dialog box shouldn't have any margin. */
		margin: 0;
	}

	form p {
		padding: 2px 0px;
		margin: 0px;
		clear: left;

	/* Set the form paragraphs (which wrap each field) to a line-height of 20px, so
	 * that labels lines up with inline text (e.g. for uneditable fields).
	 */
		line-height: 20px;
	}

	form div {
		margin: 0 0 0 0;
	}

	label {
		float: left;
		clear: left;

		padding-right: 1em;
		margin: 0px;

		line-height: 20px;
		vertical-align: baseline;

	/* Stop labels from wrapping.
	 * TODO: Move this to MAF core?
	 */
		white-space: nowrap;
		min-width: 15em;

		text-align: right;
		font-family: Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif;
		font-size: 0.9em;
		font-weight: bold;
	}

	input[type="text"],
	select,
	textarea,
	label {
		min-height: 1.3em;
	}

	fieldset {
		border: 0px;
		padding: 0px;
		margin: 0px;
	}

	fieldset label {
		font-weight: normal;
		display: inline;
		float: none;
		text-align: left;
		width: auto;
	}

	.DataWarningDescription {
		color: #CC9900;
	}

	.DataEntryNote,
	.FieldNote {
		font-size: 0.9em;

	/* Give back the standard paragraph margin, which has been removed from all
	 * paragraphs in the standard form, as we use paragraphs to enclose each field
	 * and we don't want these to be unduly spaced out.
	 * Any paragraphs of actual content in the form should be flagged as
	 * class="DataEntryNote" so that they get their proper margins back.
	 */
		margin: 1em 0;

	/* Undo the line-height that has been set for paragraphs that need to align
	 * their labels, as this doesn't apply for data-entry notes.
	 */
		line-height: 1.2em;
	}

	.FieldNote {
		margin-top: 0;
		margin-left: 14.5em;
		max-width: 30em;
	}

	.DataBlock {
		padding: 0 0.5em;
		margin: 5px 0px 5px -10px;
		margin-bottom: 2em;
		border: none;
	}

	.DataBlockTitle {
		position: relative;
		left: -1em;
		padding: 0.2em 0.4em;
	}

	.FieldsetElement {
		white-space: nowrap;
		display: inline;
	}

	.GroupSpecificData {
		margin: 0.5em 0.5em 0.5em 1.5em;
		padding: 1em;

		border: 1px solid #CCCCCC;
		background-color: rgba(255,255,255,0.5);
		-moz-border-radius: 5px;
		-khtml-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;
	}

	.GroupSpecificData > .DataEntryNote:first-child {
		margin-top: -0.4em;
	}

	.GroupSpecificData hr {
		margin-top: 0.75em;
		margin-bottom: 0.75em;
	}

	.GroupSpecificData h3,
	.GroupSpecificData h4 {
		margin: 0;
		margin-bottom: 0.5em;
	}

/* TODO: Should these checkbox overrides be added to our default MAF2 styelsheet? */
	input[type="checkbox"] {
		vertical-align: middle;
		position: relative;
		top: -2px;
		margin: 0;
		margin-right: 0.5em;
	}

	td input[type="checkbox"],
	th input[type="checkbox"] {
		top: 0;
		margin: 0;
	}

	.PostCheckboxLabel {
		float: none;
	}

	option.CurrentValue {
		font-weight: bold;
		background-color: #FFFFFF;
		border: 1px dotted #CCCCCC;
		border-width: 1px 0;
	}

/*************************** DWELL FORM STYLINGS *******************************/

	input[type="text"],
	input[type="password"],
	select,
	textarea,
	.ui-widget select,
	.ui-widget textarea {
		padding: 0 5px;

		font-family: 'Courier New', Courier, 'Nimbus Mono L', monospace;
		color: #000000;

	/* We originally used a font-size of 0.9em, but this causes Firefox to lose the
	 * bottom border on the drop-down part of select boxes in some situations.
	 * This appears to be a pixel-picking bug in Firefox.  0.9em gives a pixel value
	 * of approx 11.6px, and my guess is that this - when combined with other
	 * em-based sub-pixel element positioning - can sometimes cause it to position
	 * the bottom border 'between pixels' so it is not rendered/visible.
	 * Using a slightly larger em value seems to avoid this problem, without
	 * noticeably affecting the apparent font size.
	 */
		font-size: 0.92em;

		background-color: #FFFFFF;
		-moz-box-shadow: inset 3px 3px 3px #CCCFA7;
		-khtml-box-shadow: inset 3px 3px 3px #CCCFA7;
		-webkit-box-shadow: inset 3px 3px 3px #CCCFA7;
		box-shadow: inset 3px 3px 3px #CCCFA7;

		border: 1px solid #A4A289;
		border-right-width: 4px;
		-moz-border-radius: 5px;
		-khtml-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;
	}

	input[type="text"],
	input[type="password"] {
	/* Height for text inputs: 18px with 2px in the borders. */
		height: 18px;
	}

	select,
	.ui-widget select {
	/* Height for select inputs: for some reason we need an extra 2px for these to
	 * match the text inputs!
	 */
		height: 20px;

	/* Remove right-padding, so there is no gap between drop-down widget and
	 * the right border.
	 */
		padding-right: 0;

	/* Make the right border 1px narrower, as it looks too fat due to the drop-down
	 * widget.
	 */
		border-right-width: 3px;
	}

	textarea,
	.ui-widget textarea {
	/* No right/bottom padding for text areas, otherwise there is a gap between the
	 * border and any scroll-bars that appear.
	 */
		padding: 3px 0 0 3px;
	}

/* Ensure all elements in the date component line-up properly.  Without this,
 * things move about once the date picker loads!
 */
	input.DateDay,
	input.DateMonth,
	input.DateYear,
	.DateSeparator,
	input.TimeHour,
	input.TimeMinute,
	.TimeSeparator,
	.ui-datepicker-trigger {
		vertical-align: top;
	}

/* Set width of date inputs so the total width matches standard inputs.
 * We use appropriate padding-left settings to ensure that the text appears
 * centered when completely filled in, whilst remaining left-aligned (so characters
 * don't move about as you type).
 * Although we don't need time inputs to align with standard text inputs (they are
 * significantly smaller, so the deviation doesn't look odd) we do want them to line
 * up with the date input fields if they immediately follow them, so we apply the
 * same styling to those fields, too.
 */
	.DateDay,
	.TimeHour {
		width: 1.4em;
		padding-left: 0.55em !important;
	}
	.DateMonth,
	.TimeMinute {
		width: 1.35em;
		padding-left: 0.55em !important;
	}
	input.DateYear {
		width: 2.6em;
		padding-left: 0.7em !important;

	/* Give a right-margin to reserve space for the datepicker element so things
	 * don't jump when it appears.  width: 23px + border-right: 4px
	 */
		margin-right: 27px;
	}

/* Disable rounding of corners for the interior sides of the date/time elements.
 * For the Year field, we need different rules depending on whether JavaScript is
 * enabled (and therefore whether the datepicker element will be present).
 */
	.DateYear,
	.TimeMinute {
		-moz-border-radius: 0 5px 5px 0 !important;
		-khtml-border-radius: 0 5px 5px 0 !important;
		-webkit-border-radius: 0 5px 5px 0 !important;
		border-radius: 0 5px 5px 0 !important;
	}
	.DateMonth,
	.JSEnabled .DateYear {
		-moz-border-radius: 0 !important;
		-khtml-border-radius: 0 !important;
		-webkit-border-radius: 0 !important;
		border-radius: 0 !important;
	}
	.DateDay,
	.TimeHour {
		-moz-border-radius: 5px 0 0 5px !important;
		-khtml-border-radius: 5px 0 0 5px !important;
		-webkit-border-radius: 5px 0 0 5px !important;
		border-radius: 5px 0 0 5px !important;
	}

/* Remove the thick right border from the individual date/time elements.
 * We only remove it from the year field when JavaScript is disabled - if the
 * date picker is not going to be present then we want this border to stay present.
 */
	.DateDay,
	.DateMonth,
	.JSEnabled .DateYear,
	.TimeHour {
		border-right-width: 1px !important;
	}

/* Style the date/time separator. */

	.DateSeparator,
	.TimeSeparator {
		display: inline-block;

	/* 13x20 px, but adjusted for 1px border at top and bottom. */
		width: 13px;
		height: 18px;
		line-height: 18px;

		border: 1px solid #A4A289;
		border-width: 1px 0;

		background-color: #E0DFCC;
		color: #615843;

		text-align: center;
	}

	.DateSeparator {
	/* Reduce font size of separator symbols, to make them more proportionate to
	 * the input fields.
	 */
		font-size: 0.75em;
	}

	.TimeSeparator {
	/* Ensure colon is vertically centered. */
		line-height: 14px;
	}

/* Style the date-picker. */

	.ui-datepicker-trigger {
		display: inline-block;

	/* Move left so that we occupy the reserved space (27px) plus a further 5px to
	 * move up to the preceeding input (I'm not sure why this is required - I can't
	 * find a margin or anything that is giving us this gap!).
	 * We then need to pull in the right margin to release the original space, but
	 * accounting those odd 5px back in so that the error messages align properly.
	 */
		position: relative;
		left: -32px;
		margin-right: -27px;
		padding: 1px 2px;

	/* 25x20px, adjusted for borders.  This includes left/right borders even though
	 * these are provided by other elements.
	 */
		height: 18px;
		width: 23px;
		overflow: hidden;

		border: 1px solid #A4A289;
		border-left: none;
		border-right-width: 4px;
		-moz-border-radius: 0 5px 5px 0;
		-khtml-border-radius: 0 5px 5px 0;
		-webkit-border-radius: 0 5px 5px 0;
		border-radius: 0 5px 5px 0;

		background-color: #E0DFCC;

		width: 19px;
		height: 16px;
		text-indent: 20px;
		cursor: pointer;
	}

	.ui-datepicker-trigger:hover {
		background-color: #FFFF00;
	}

/* Form element states. */

/* We highlight fields that contain errors by changing the border color.
/* We can't just use .DataEntryError, as the attribute selector takes precedence.
 * We therefore need to additionally specify each of the attributes we have selected
 * on.
 */
	.DataEntryError,
	.DataEntryError[type="text"],
	.DataEntryError[type="password"] {
		border-color: #EA3025;
		color: #E00000;
	}

	.WholeDateError .ui-datepicker-trigger,
	.WholeDateError .DateSeparator,
	.WholeTimeError .TimeSeparator {
	/* If the whole date/time field is in error (e.g. it is blank) then highlight
	 * the separator and date-picker elements in full, so that there is a continuous
	 * border.  We don't do this when we are just picking out one or two of the
	 * individual fields.
	 */
		border-color: #EA3025;
	}

	.DateHasErrors .ui-datepicker-trigger,
	.TimeHasErrors .TimeMinute {
	/* If the date has any errors (even just in one or two components), we want the
	 * thicker right border of the date-picker (which is, effectively, the right
	 * border of the whole field) to be coloured to indicate this.
	 */
		border-right-color: #EA3025;
	}

/* We highlight mandatory data fields using the background color.
 * We can't just use .RequiredData, as the attribute selector takes precedence.
 * We therefore need to additionally specify each of the attributes we have selected
 * on.
 */
	.RequiredData,
	.RequiredData[type="text"],
	.RequiredData[type="password"] {
		background-color: #FFFFD7;
	}

/* Colour the error description.  Note that this is used in other places as well,
 * not just forms.
 */
	.DataErrorDescription {
		color: #E00000;
	}

	form .DataErrorDescription {
	/* Add a left margin so the text is separated from the input box, when used
	 * within a form.
	 */
		margin-left: 1em;
	}

/* Currency Inputs */

	.CurrencyInput_Symbol {
		display: inline-block;

	/* 13x20 px, but adjusted for 1px border at top and bottom. */
		width: 13px;
		line-height: 18px;

		border: 1px solid #A4A289;
		border-right: none;
		-moz-border-radius: 5px 0 0 5px;
		-khtml-border-radius: 5px 0 0 5px;
		-webkit-border-radius: 5px 0 0 5px;
		border-radius: 5px 0 0 5px;

		background-color: #E0DFCC;
		color: #615843;

		text-align: center;
		vertical-align: bottom;

		padding: 0 0.2em;
		font-weight: bold;
	}

	.CurrencyInput_Symbol.DataEntryError {
	/* If the currency field is in error then highlight the input symbol too,
	 * as this is part of the field.
	 */
		border-color: #EA3025;
		background-color: #EA3025;
		color: #FFFFFF;
	}

	input[type="text"].CurrencySelector {
		-moz-border-radius: 0 5px 5px 0;
		-khtml-border-radius: 0 5px 5px 0;
		-webkit-border-radius: 0 5px 5px 0;
		border-radius: 0 5px 5px 0;
	}


/* Percent Inputs */

	.PercentInput_Symbol {
		display: inline-block;

	/* Height of 20px, but adjusted for 1px border at top and bottom. */
		line-height: 18px;

		border: 1px solid #A4A289;
		border-right-width: 4px;
		border-left: none;
		-moz-border-radius: 0 5px 5px 0;
		-khtml-border-radius: 0 5px 5px 0;
		-webkit-border-radius: 0 5px 5px 0;
		border-radius: 0 5px 5px 0;

		background-color: #E0DFCC;
		color: #615843;

		text-align: center;
		vertical-align: bottom;

		padding: 0 0.2em;
		font-weight: bold;
		font-size: 1em;
	}

	.PercentInput_Symbol.DataEntryError {
	/* If the currency field is in error then highlight the input symbol too,
	 * as this is part of the field.
	 */
		border-color: #EA3025;
		background-color: #EA3025;
		color: #FFFFFF;
	}

	input[type="text"].PercentSelector {
		border-right-width: 1px;
		-moz-border-radius: 5px 0 0 5px;
		-khtml-border-radius: 5px 0 0 5px;
		-webkit-border-radius: 5px 0 0 5px;
		border-radius: 5px 0 0 5px;
	}

/* Remove drop-shadow from disabled inputs.
 * We use the [disabled] attribute selector rather than the :disabled psuedo-selector
 * as the latter is only supported from IE9, whilst the former works in IE7 and
 * above.
 */
	input[disabled],
	select[disabled],
	textarea[disabled] {
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		background-color: #F9F9E9;
	}

/*************************** LIST FILTERS ***************************/

	.FilterForm {
		text-align: center;
	}

	#Filters {
		display: inline-block;
		margin: 0.5em 0;
		padding: 0.2em 0.4em 0.2em 0.6em;
	}

	#Filters label {
		min-width: 0;
	}

/*************************** BUTTONS ***************************/
/* These rules cover <input> elements, with type set to button, submit or reset,
 * <button> elements, plus any element that is given the .Button class (which might
 * be useful for links, etc. which we want to look like buttons.  Note that this
 * is untested, however, and further rules may be required, e.g. to remove underline
 * etc.)
 * NOTE: The various .ui-* selectors used in several of these rules have been added
 *		 in order apply our button styling to any button widgets provided by
 *		 jQuery UI widgets.
 */

/* Use the ButtonGroup class to indent buttons to match the other inputs. */
	.ButtonGroup {
	/* Clear any floats. */
		clear: left;

	/* Indentation is 15em label width + 1em right-padding.
	 * However, it is at 0.9em, so 16em @0.9 = 14.4em @1.0!)
	 */
		margin-left: 14.4em;

	/* A small top- and bottom-margin to separate out a bit. */
		margin-top: 0.5em;
		margin-bottom: 1em;
	}

/* Remove button padding in FF */
	input[type="submit"]::-moz-focus-inner,
	input[type="reset"]::-moz-focus-inner,
	input[type="button"]::-moz-focus-inner,
	button::-moz-focus-inner {
		border: 0;
		padding: 0;
	}

	input[type="submit"],
	input[type="reset"],
	input[type="button"],
	button,
	.Button,
	.ui-button.ui-state-default {
	/* Two box-shadows.  One gives a 1px border that is a little darker, whilst the
	 * second gives the more diffuse shadow around it.
	 */
		-moz-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		-khtml-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		-webkit-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;

		border: 1px solid #13A4CE;
		-moz-border-radius: 3px;
		-khtml-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		background: #4CAECB;
		background: -moz-linear-gradient(top, #4CAECB 1px, #10A1CB 2%, #13B2E0 83%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(1px, #4CAECB), color-stop(2%, #10A1CB), color-stop(83%, #13B2E0));
		background: -webkit-linear-gradient(top, #4CAECB 1px, #10A1CB 2%, #13B2E0 83%);
		background: -o-linear-gradient(top, #4CAECB 1px, #10A1CB 2%, #13B2E0 83%);
		background: -ms-linear-gradient(top, #4CAECB 1px, #10A1CB 2%, #13B2E0 83%);
		background: linear-gradient(to bottom, #4CAECB 1px, #10A1CB 2%, #13B2E0 83%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4CAECB', endColorstr='#13B2E0', GradientType=0);

		padding: 0.18em 0.5em;

		font-family: Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif;
		font-weight: bold;
		text-transform: capitalize;
		color: #FFFFFF;

	/* We need to specify the font-size using px rather then em, otherwise buttons
	 * implemented as <a> tags can be affected by the font-size of the containing
	 * element.
	 */
		font-size: 13.33px;

	/* Stroke the text with a blue outline.  We use rgba() rather than a hex
	 * code, as we need to use the alpha channel.  Colour is #336699 in hex, but
	 * the alpha channel makes it appear lighter than this.
	 */
		text-shadow: 1px 1px 0 rgba(51, 102, 153, 0.75), -1px -1px 0 rgba(51, 102, 153, 0.75), 1px -1px 0 rgba(51, 102, 153, 0.75), -1px 1px 0 rgba(51, 102, 153, 0.75);

	/* Let's have a hand-cursor over the button. */
		cursor: pointer;

	/* Bit of vertical space. */
		margin-top: 0.5em;
		margin-bottom: 0.5em;

	/* Add a bit of space between buttons.  We don't add a left margin, so that
	 * the left-most button still lines up properly with other content.
	 */
		margin-right: 1em;

	/* Set a few properties, to normalise them between implementations.
	 * This is necessary because <input> tags have certain implicit settings which
	 * are not affected by inheritance, unlike <a> tags.
	 */
		line-height: normal;
		text-align: center;
		white-space: nowrap;
		display: inline-block;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}

	.ui-dialog .ui-dialog-buttonpane button {
	/* Set the margins for jQuery UI buttons to match those given in the previous
	 * rule.  We can't just add this selector to the above rule as it would take
	 * precedence over our various button states (requiring a similar selector to
	 * be added to each rule that over-rides the default button styling).
	 */
		margin: 0.5em 1em 0.5em 0;
	}

	.ui-button .ui-button-text,
	.ui-button-text-only .ui-button-text {
		line-height: 1.2em;
		padding: 0;
	}

/* submit and regular buttons should be style the same if they
have the LargeButton Submit class.
*/
	input[type="submit"].LargeButtonSubmit,
	input[type="button"].LargeButtonSubmit,
	.Button.LargeButtonSubmit,
	.ui-button.LargeButtonSubmit.ui-state-default {
		border-color: #4F960E;
		background: #519612;
		background: -moz-linear-gradient(top, #519612 1px, #4A910C 2%, #5AB00F 83%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(1px, #519612), color-stop(2%, #4A910C), color-stop(83%, #5AB00F));
		background: -webkit-linear-gradient(top, #519612 1px, #4A910C 2%, #5AB00F 83%);
		background: -o-linear-gradient(top, #519612 1px, #4A910C 2%, #5AB00F 83%);
		background: -ms-linear-gradient(top, #519612 1px, #4A910C 2%, #5AB00F 83%);
		background: linear-gradient(to bottom, #519612 1px, #4A910C 2%, #5AB00F 83%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#519612', endColorstr='#5AB00F', GradientType=0);

	/* See above for why we use rgba().  Equivalent hex colour: #417D0B. */
		text-shadow: 1px 1px 0 rgba(65, 125, 11, 0.75), -1px -1px 0 rgba(65, 125, 11, 0.75), 1px -1px 0 rgba(65, 125, 11, 0.75), -1px 1px 0 rgba(65, 125, 11, 0.75);
	}

	input[type="submit"].LargeButtonDelete,
	input[type="button"].LargeButtonDelete,
	.Button.LargeButtonDelete,
	.ui-button.LargeButtonDelete.ui-state-default {
		border-color: #C72921;
		background: #D4413A;
		background: -moz-linear-gradient(top, #D4413A 1px, #CC291D 2%, #DC2C22 83%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(1px, #D4413A), color-stop(2%, #CC291D), color-stop(83%, #DC2C22));
		background: -webkit-linear-gradient(top, #D4413A 1px, #CC291D 2%, #DC2C22 83%);
		background: -o-linear-gradient(top, #D4413A 1px, #CC291D 2%, #DC2C22 83%);
		background: -ms-linear-gradient(top, #D4413A 1px, #CC291D 2%, #DC2C22 83%);
		background: linear-gradient(to bottom, #D4413A 1px, #CC291D 2%, #DC2C22 83%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D4413A', endColorstr='#DC2C22', GradientType=0);

	/* See above for why we use rgba().  Equivalent hex colour: #990000. */
		text-shadow: 1px 1px 0 rgba(153, 0, 0, 0.75), -1px -1px 0 rgba(153, 0, 0, 0.75), 1px -1px 0 rgba(153, 0, 0, 0.75), -1px 1px 0 rgba(153, 0, 0, 0.75);
	}

	input[type="submit"].LargeButtonDisabled,
	input[type="button"].LargeButtonDisabled,
	.Button.LargeButtonDisabled,
	.ui-button.LargeButtonDisabled.ui-state-default {
		border-color: #AAAAAA;
		background: #D9D9D9;
		background: -moz-linear-gradient(top, #D9D9D9 1px, #CBCBCB 2%, #E0E0E0 83%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(1px, #D9D9D9), color-stop(2%, #CBCBCB), color-stop(83%, #E0E0E0));
		background: -webkit-linear-gradient(top, #D9D9D9 1px, #CBCBCB 2%, #E0E0E0 83%);
		background: -o-linear-gradient(top, #D9D9D9 1px, #CBCBCB 2%, #E0E0E0 83%);
		background: -ms-linear-gradient(top, #D9D9D9 1px, #CBCBCB 2%, #E0E0E0 83%);
		background: linear-gradient(to bottom, #D9D9D9 1px, #CBCBCB 2%, #E0E0E0 83%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D9D9D9', endColorstr='#E0E0E0', GradientType=0);
		cursor: default;
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;

	/* See above for why we use rgba().  Equivalent hex colour: #999999. */
		text-shadow: 1px 1px 0 rgba(153, 153, 153, 0.75), -1px -1px 0 rgba(153, 153, 153, 0.75), 1px -1px 0 rgba(153, 153, 153, 0.75), -1px 1px 0 rgba(153, 153, 153, 0.75);
	}

/* Set a 'focus' state so that (a) it's consistent across implementation; and
 * (b) it uses something more appealing than the standard focus rectangle.
 * We set this before the :hover state, so that the hover colour takes precedence.
 */
	input[type="submit"]:focus,
	input[type="reset"]:focus,
	input[type="button"]:focus,
	button:focus,
	.Button:focus,
	.ui-button.ui-state-focus {
		outline: none;
		color: #F9C12E;
	}

	input[type="submit"]:hover,
	input[type="reset"]:hover,
	input[type="button"]:hover,
	button:hover,
	.Button:hover,
	.ui-button.ui-state-hover {
		color: #FFFF00;
	}

	input[type="submit"].LargeButtonDisabled:hover,
	input[type="button"].LargeButtonDisabled:hover,
	.Button.LargeButtonDisabled:hover,
	.ui-button.LargeButtonDisabled.ui-state-hover {
		color: #ffffff;
	}

/* Add a 'depressed' button state, so it moves as you click on it. */
	input[type="submit"]:active,
	input[type="reset"]:active,
	input[type="button"]:active,
	button:active,
	.Button:active,
	.ui-button.ui-state-active {
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		position: relative;
		top: 1px;
		left: 1px;
	}

/* Remove 'depressed' button state for disabled buttons. */
	input[type="submit"].LargeButtonDisabled:active,
	input[type="reset"].LargeButtonDisabled:active,
	input[type="button"].LargeButtonDisabled:active,
	button.LargeButtonDisabled:active,
	.Button.LargeButtonDisabled:active,
	.ui-button.LargeButtonDisabled.ui-state-active {
		position: static;
	}

/* Cancel buttons are displayed as links. */
	input[type="button"].LargeButtonCancel,
	.Button.LargeButtonCancel,
	.ui-button.LargeButtonCancel.ui-state-default {
	/* Revert all button styling, from above. */
		border: none;
		background: transparent;
		filter: none;
		font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		text-shadow: none;
		font-weight: normal;

	/* Style like anchor tags. */
		color: #3366CC;
		text-decoration: underline;

	/* Shrink text a bit, to reduce prominence.  Again, we need to use px rather
	 * than em, for the reasons mentioned above (in the main button styling).
	 */
		font-size: 11px;

	/* Give appropriate space around the text, plus a left border to delineate it
	 * from the other buttons.  We move to the left a bit, to shrink the 1em right
	 * margin that the previous button element supplies (there should never be a
	 * cancel button on its own - 'done' should be used for these situations).
	 */
		padding: 0 0.8em;
		border-left: 1px solid #E1E0D1;
		position: relative;
		margin-left: -0.5em;
	}

	input[type="button"].LargeButtonCancel:focus,
	.Button.LargeButtonCancel:focus,
	.ui-button.LargeButtonCancel.ui-state-focus {
		color: #F99F34;

	/* Re-enable the focus rectangle, as this is what we use for showing focus on
	 * standard links.
	 */
		outline: 1px dotted;
	}

	input[type="button"].LargeButtonCancel:hover,
	input[type="button"].LargeButtonCancel:active,
	.Button.LargeButtonCancel:hover,
	.Button.LargeButtonCancel:active,
	.ui-button.LargeButtonCancel.ui-state-hover,
	.ui-button.LargeButtonCancel.ui-state-active {
	/* Revert all button styling, from above. */
		position: static;

	/* Style like anchor tags. */
		color: #F99F34;
	}

	input[type="button"].LargeButtonCancel.LargeButtonDisabled,
	.ui-button.LargeButtonCancel.LargeButtonDisabled.ui-state-default {
	/* Use a different colour for disabled cancel buttons.  We specify !important
	 * so that this also undoes the hover state.
	 */
		color: #999999 !important;
	}

/* Style anchor tags that function like buttons. */
	a.Button {
		display: inline-block;
		text-decoration: none;
	}

/* Some specific over-rides for buttons in jQuery dialog boxes. */

	.ui-dialog .LargeButtonCancel {
		margin-right: 0 !important;
		padding-right: 0 !important;
	}

	.ui-dialog .LargeButtonDelete {
	/* We explicitly state top: auto, and use !important on all these rules,
	 * otherwise the default re-positioning that happens for active buttons
	 * (1px right and down) moves the element to the top of the document!
	 */
		position: absolute !important;
		top: auto !important;
		left: 1em !important;
	}

	.ui-dialog .LargeButtonDelete.ui-state-active,
	.ui-dialog .LargeButtonDelete.ui-state-focus {
		margin-left: 1px;

	/* Normal margin is 0.5em, which at this font-size seems to equate to
	 * 7px.
	 */
		margin-top: 8px;
	}

/* Style buttons in tables - this should be grouped with tables, but because it needs
 * to come after the other button definitions, it can't be.
 * TODO: Re-order file, if possible - can we define all inline elements before
 *		 defining container elements, to avoid this problem in the general case?
 */

	.ButtonCell input[type="submit"],
	.ButtonCell input[type="reset"],
	.ButtonCell input[type="button"],
	.ButtonCell button,
	.ButtonCell .Button,
	.ButtonCell .ui-button.ui-state-default {
	/* Give small margin to the buttons. */
		margin: 2px;
	}

/* In-row Delete Buttons. */

	input[type="submit"].InlineDeleteButton,
	input[type="button"].InlineDeleteButton {
	/* Remove standard button styling that shouldn't apply here. */
		border: none;
		background: transparent;
		filter: none;
		padding: 0;
		margin: 0;
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;

	/* Set a fixed size for the button, and move the text outside of this, so that
	 * it is not visible.
	 */
		width: 26px;
		height: 26px;
		text-indent: 100px;
		overflow: hidden;

	/* Set the background-image to a nice graphical x, and center it. */
		background-image: url("https://dwellstaging.lilac.coop/index.php?Request=image&FileStore=project&Path=%2Fimages%2Ficons_small%2Fcross-script.png");
		background-position: center center;
		background-repeat: no-repeat;
	}

/* Anchor version of the in-row delete style above */
	a.InlineDeleteButton {
	/* Hide the text*/
		text-indent: 100px;
		text-decoration: none;
		overflow: hidden;
		color: transparent;

	/* Set the element to a fixed size */
		width: 20px;
		height: 12px;
		display: inline-block;

	/* Set the background-image to a nice graphical x, and center it. */
		background-image: url("https://dwellstaging.lilac.coop/index.php?Request=image&FileStore=project&Path=%2Fimages%2Ficons_small%2Fcross-script.png");
		background-position: center center;
		background-repeat: no-repeat;
	}

/* Styling of deletable blocks when mouse is over the delete button. */

	.DeletableItem {
		border: 1px solid transparent;
		border-left-width: 4px;

		-moz-border-radius: 5px;
		-khtml-border-radius: 5px;
		-webkit-border-radius: 5px;
		border-radius: 5px;

	/* Ensure there is a bit of a gap between the content and the border. */
		padding-right: 0.5em;

	/* Stop items from wrapping, otherwise things will look very odd! */
		white-space: nowrap;
	}

	.DeletableItemHighlight {
		color: #CCA0A0;
		background-color: #FFF0F0;
		border-color: #AA0000;
		-moz-box-shadow: 1px 1px 1px #CCCCCC;
		-khtml-box-shadow: 1px 1px 1px #CCCCCC;
		-webkit-box-shadow: 1px 1px 1px #CCCCCC;
		box-shadow: 1px 1px 1px #CCCCCC;
	}

	tr.DeletableItemHighlight {
	/* Don't want the drop-shadow or padding for deletable items which are entire
	 * table rows.
	 */
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
		padding-right: 0;

	/* Also, table cells should be allowed to wrap, so remove that limitation. */
		white-space: normal;
	}

	/* Add deletable styling for borderless tables. */
	table.tblBorderless tr.DeletableItemHighlight {
		-moz-box-shadow: 1px 1px 1px #CCCCCC;
		-khtml-box-shadow: 1px 1px 1px #CCCCCC;
		-webkit-box-shadow: 1px 1px 1px #CCCCCC;
		box-shadow: 1px 1px 1px #CCCCCC;
	}
	table.tblBorderless tr.DeletableItem td {
		border: 1px solid transparent;
		border-width: 1px 0 1px 0;
	}
	table.tblBorderless tr.DeletableItem td:first-child {
		border-left-width: 4px;
		-moz-border-radius: 6px 0 0 6px;
		-khtml-border-radius: 6px 0 0 6px;
		-webkit-border-radius: 6px 0 0 6px;
		border-radius: 6px 0 0 6px;
	}
	table.tblBorderless tr.DeletableItem td:last-child {
		border-right-width: 1px;
		-moz-border-radius: 0 6px 6px 0;
		-khtml-border-radius: 0 6px 6px 0;
		-webkit-border-radius: 0 6px 6px 0;
		border-radius: 0 6px 6px 0;
		padding-right: 0.5em;
	}
	table.tblBorderless tr.DeletableItemHighlight td {
		border-color: #AA0000;
	}

	.DeletableItemHighlight a {
		color: #CCA0A0;
		text-decoration: none;
	}

	.DeletableItemHighlight input[type="text"],
	.DeletableItemHighlight textarea,
	.DeletableItemHighlight select {
		background-color: #FFF0F0;
		color: #CCA0A0;
		border-color: #CCA0A0;
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;
	}

	.DeletableItemHighlight input[type="checkbox"] {
		-khtml-opacity: 0.30;
		-moz-opacity: 0.30;
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
		filter: alpha(opacity=30);
		opacity: 0.30;
	}

/*************************** FILE BROWSER *******************************/

/* Styling of the file extension, which is never editable. */

	.UneditableFileExt {
	/* Styles defined in the module's upload_file.css, but which we repeat here
	 * so they are also available on our local file_edit page, and anywhere else
	 * we may decide to use this class in the future.
	 * These don't need an !important flag, as they have the same values as are
	 * defined in the module's CSS.
	 */
		position: relative;
		display: inline-block;
		width: 2.6em;

		border-left: 1px solid #808080;
		padding: 0 0.25em;

		font-weight: bold;
		font-family: 'Courier New', Courier, 'Nimbus Mono L', monospace;

	/* Dwell-specific over-rides.
	 * We need to use !important to make this rule more specific than the
	 * built-in FileBrowser CSS rule, as that is later in the sequence, and so would
	 * otherwise take precedence.
	 */
		left: -3.9em !important;
		height: 18px !important;
		background-color: #E0DFCC !important;

	/* For some reason, vertical-align: text-top, which used to work fine on Firefox,
	 * no longer works.  This means the box is too high by a couple of pixels.
	 * We therefore use bottom instead, which fixes the issue on Firefox, and also
	 * on Chrome, which I think always had this problem.
	 */
		vertical-align: bottom !important;

	/* New Dwell stylings.
	 * These don't require !important, as they are not defined in the module CSS.
	 */
		top: -1px;
		text-align: center;
		color: #615843;
	}

/* Highlight soft-deleted items in the file list.  We reference the <a> tag, to
 * ensure we aren't over-ridden by other styles (which are applied to <a>) and
 * we use the tag without > a so that it applies in contexts where there is no
 * link, e.g. the comment stream.
 */
	.filetype_softdeleted,
	.filetype_harddeleted,
	.filetype_softdeleted > a,
	.filetype_harddeleted > a {
		color: #999999;
		font-style: italic;

	/* Make it semi-transparent, to dim the file icon too. */
		-khtml-opacity: 0.65;
		-moz-opacity: 0.65;
		-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";
		filter: alpha(opacity=65);
		opacity: 0.65;
	}

	.Box.filetype_softdeleted {
		border-color: #E00000;
	}

	#CurrentPathOperations {
		top: -1.6em !important;
		margin-bottom: -1.6em !important;
	}

/* This class is applied to all paths (and file names) used in the activity log. */
	.ActivityFilePath {
		font-weight: bold;
	}

	.FileDescription .DataEntryNote {
		font-size: 0.8em;
		display: block;
		margin-left: 18em;
		width: 37em;
	}

	.FileDescription textarea {
		width: 30em;
	}

/*************************** COMMENTS *******************************/

	.CommentStream {
		max-width: 400px;
		background-color: rgba(255, 255, 255, 0.5);

		border: 1px solid #CCCCCC;
		-moz-border-radius: 10px;
		-khtml-border-radius: 10px;
		-webkit-border-radius: 10px;
		border-radius: 10px;

		font-size: 0.9em;

		padding: 0;
		list-style: none;
	}

	.CommentStream > li {
		margin: 0;
		padding: 0.5em;
	}

	p.CommentPostBox,
	li.Comment {
		background-color: rgba(255, 255, 255, 0.3);
		border-bottom: 1px solid #CCCCCC;
		padding: 0.5em;

	/* So we can use absolute positioning for the buttons, we position this, their
	 * container, non-statically.
	 */
		position: relative;

	/* Undo the line height we set for items within forms, as this is for alignment
	 * of fields with labels, which is not relevant here.
	 */
		line-height: 1.2em;
	}

	.CommentStream > :last-child {
	/* Last item in the comment stream shouldn't have a bottom border, as this is
	 * provided by the main container itself.
	 */
		border-bottom: none;

	/* However, we still need to set a border radius, so that the background doesn't
	 * overlap the outside borders.
	 */
		-moz-border-radius: 0 0 9px 9px;
		-khtml-border-radius: 0 0 9px 9px;
		-webkit-border-radius: 0 0 9px 9px;
		border-radius: 0 0 9px 9px;
	}

	.CommentStream > :first-child,
	.CommentStream > :first-child .CommentHeader,
	.CommentStream > :first-child .SystemCommentHeader {
	/* First item in the comment stream needs rounded corners, to match the
	 * container.
	 */
		-moz-border-radius: 9px 9px 0 0;
		-khtml-border-radius: 9px 9px 0 0;
		-webkit-border-radius: 9px 9px 0 0;
		border-radius: 9px 9px 0 0;
	}

	.CommentStream > :first-child:last-child {
		/* Elements that are both first child and last child, need both edges
		 * rounded.
		 */
		-moz-border-radius: 9px;
		-khtml-border-radius: 9px;
		-webkit-border-radius: 9px;
		border-radius: 9px;
	}

	p.CommentPostBox {
		text-align: center;
	}

	div.CommentPostBox,
	div.FilePostBox {
		font-size:0.9em;
	}

	div.CommentPostBox textarea {
	/* The textarea is in a larger font when outside of the comment stream, so
	 * adjust it downwards in this situation.
	 */
		font-size: 0.83em;
	}

	li.SystemComment {
	/* TODO: It would be better to flag different types of comment with different
	 *		 icons, rather than this arbitrary background color.
	 */
		background-color: #FFFFE0;
	}

	.SystemCommentHeader,
	.CommentHeader {
		display: block;

	/* Move the bar so that it reclaims the padding that is set by the parent
	 * element.
	 */
		position: relative;
		top: -0.61em;
		left: -0.62em;
		margin-right: -1.24em;
		margin-bottom: -0.3em;

		background-color: #F0F0F9;
		border-bottom:  1px solid #D9D9FF;

		padding: 0.3em 1em;

		color: #877B5F;
		text-shadow: 0 1px 1px #FFFFFF;
		font-size: 0.8em;
		font-weight: bold;
	}

	li.Comment.FileUpload {
		background-color: #FFFFF0;
	}

	.CommentButtonBar {
		display: block;

		position: absolute;
		top: 0.22em;
		right: 0.75em;

		font-size: 0.8em;
	}

	#CommentMorePosts {
		display: block;
		text-align: center;
	}

/* Style the attachment details ('uploaded by...') for files in the comment
 * stream.
 */
	.FileAttachmentDetails {
		display: block;
		font-size: 0.8em;
		padding-left: 2.2em;
		line-height: 1.5em;
		color: #666666;
	}

/* Remove list styling from file list. */
	#file_list.CommentFormFileList {
		list-style: none;
		padding-left: 1em;
	}

/* Undo the left margin given to DataErrorDescriptions for errors displayed
 * for new comments.  In this case, we are displaying the error centered, under the
 * input box, as opposed to beside it, therefore we don't want the 1em left margin
 * that is normally applied.
 */
	form .CommentPostBox .DataErrorDescription {
		margin: 0;
	}

/******************* TIDY UP JQUERY UI ELEMENTS ***********************/
/* The base JQuery UI skin is, for some unfathomable reason, horrible.
 * Here we make a few tweaks to make it a bit more usable.
 */

	.ui-widget {
		font-size: 0.9em;
	}

	.ui-dialog {
		padding: 0;
	}

	.ui-dialog-titlebar {
		border-width: 0 0 1px 0;
		-moz-border-radius: 0;
		-khtml-border-radius: 0;
		-webkit-border-radius: 0;
		border-radius: 0;
	}

	.ui-dialog .ui-dialog-buttonpane {
		margin: 0;
		padding: 0 1em;
		background-color: #F0F0FF;
	}

/* Datepicker: Tweak size and positioning of the prev/next buttons so they are
 * aligned neatly within the header section.
 */
	.ui-datepicker .ui-datepicker-prev,
	.ui-datepicker .ui-datepicker-next {
		height: 1.5em;
		top: 3px;
	}

	.ui-datepicker .ui-datepicker-prev-hover,
	.ui-datepicker .ui-datepicker-next-hover {
		top: 2px;
	}

	.ui-datepicker .ui-datepicker-next {
		right: 3px;
	}

	.ui-datepicker .ui-datepicker-next-hover {
		right: 2px;
	}

	.ui-datepicker .ui-datepicker-prev {
		left: 3px;
	}

	.ui-datepicker .ui-datepicker-prev-hover {
		left: 2px;
	}

/* Datepicker: Give a bit of space between the month/year fields. */
	.ui-datepicker select.ui-datepicker-month {
		margin-right: 2px;
	}

/* Datepicker: Undo some bits of our standard select box styling, as it looks
 * odd when applied to the month/year selectors.
 */
	.ui-datepicker .ui-datepicker-title select {
		border-right-width: 1px;
		-moz-border-radius: 2px;
		-khtml-border-radius: 2px;
		-webkit-border-radius: 2px;
		border-radius: 2px;
	}

/* Add drop-shadow to the dialog box.
 * TODO: Should we add this to all .ui-widget elements?
 */
	.ui-dialog {
		-moz-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		-khtml-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		-webkit-box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
		box-shadow: 1px 1px 0 #BFC2A3, 1px 1px 2px #B0B68E;
	}

/**************** SINGLE TABLE DIALOG BOXES ****************/

	.SingleTableDialog .ui-dialog-content {
		padding: 0;
		background-color: #F9F9F9;
	}

	.SingleTableDialog table {
		width: 100%;
		margin: 0;
	}

	.SingleTableDialog .ui-dialog-content form {
		margin: 0;
	}

	.SingleTableDialog table,
	.SingleTableDialog td,
	.SingleTableDialog th,
	.SingleTableDialog thead tr:first-child th:first-child,
	.SingleTableDialog thead tr:first-child th:last-child {
		-moz-border-radius: 0 !important;
		-khtml-border-radius: 0 !important;
		-webkit-border-radius: 0 !important;
		border-radius: 0 !important;
	}

	.SingleTableDialog table {
		border-top: none;
	}

	.SingleTableDialog table,
	.SingleTableDialog td:first-child,
	.SingleTableDialog th:first-child {
		border-left: none;
	}

	.SingleTableDialog table,
	.SingleTableDialog td:last-child,
	.SingleTableDialog th:last-child {
		border-right: none;
	}

/**************** UNSTYLED LISTS ****************/
/* Currently just used with the MakeCollapsable() JS functionality, but may be
 * used for other situations which are semantically lists, but presentationally
 * should not be.
 */

	.UnstyledList {
		list-style: none;
		margin: 0.25em 0;
		padding: 0.5em 1em;

		margin-left: 16.15em;

		font-size: 0.8em;

		float: left;
	}

	.UnstyledList li {
		margin: 0;
		padding: 0;
	}

	.UnstyledList label {
		float: none;
		margin-left: 0;
		font-size: 1em;
		display: inline-block;
		text-align: left;
		min-width: 10em;
		line-height: 1.2em;
	}

/**************** SEARCH BOX ****************/

	#FileSearchBox {
		position: absolute;
		right: 0.2em;
		top: -4em;
	}

	#FileSearchBox input {
		height: 25px;
	}

	#FileSearchBox #Submit {
		border: 1px solid #A4A289;
		-moz-border-radius: 0 5px 5px 0;
		-khtml-border-radius: 0 5px 5px 0;
		-webkit-border-radius: 0 5px 5px 0;
		border-radius: 0 5px 5px 0;
		-moz-box-shadow: none;
		-khtml-box-shadow: none;
		-webkit-box-shadow: none;
		box-shadow: none;

		background: transparent;
		background-color: #E0DFCC;

		color: #615843;
		text-shadow: none;
		font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
		font-size: 0.75em;

		display: inline-block;
		height: 27px;
		width: 32px;

		padding: 0;
		margin: 0;

		position: relative;
		left: -12px;

		background-image: url(https://dwellstaging.lilac.coop/index.php?Request=image&Path=images%2Fsearch.png);
		background-position: 6px 3px;
		background-repeat: no-repeat;

		text-indent: 30px;
	}

	#FileSearchBox #Submit:hover {
		background-color: #F99F34;
		color: #FFFFFF;
	}

	#FileSearchBox #Submit:active {
	/* Undo the position change, which is normally used to make the button move.
	 * In this case it is inappropriate.
	 */
		top: 0;

	/* Replace it with a shift in background-position. */
		background-position: 7px 4px;
	}