/******************************************************************************
 * default_content_styling.css
 *
 * A set of default stylings for the page content (not layout) for MAF
 * projects.  It is expected that more mature projects will use their own
 * style-sheets and so this is targetted at new projects, with the purposes
 * of getting something decent quickly, so you can worry about functionality
 * before having to get into the messy business of styling the thing.
 ******************************************************************************
 */

/* Colour values, used in multiple places. */

/*************** STANDARD HTML ELEMENTS ***************/

	a,
	.ui-widget-content a {
		color: #3366CC;
	}

	a:hover,
	a:focus,
	a:active {
		color: #F99F34;
	}

	h3 {
		font-size: 1.2em;
		margin: 1em 0 0.5em 0;
	}

	h3.divider {
		border: 1px solid #CCCCCC;
		background-color: #F0F0FF;
		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;
	}

/*************** TABLES ***************/

	table {
		border-collapse: collapse;
		margin: 0.2em auto;
	}

	table, td, th {
		border: 1px solid #9999FF;
	}

	td, th {
		padding: 0.2em 0.4em;
	}

	th {
		background-color: #C0C0FF;
	}

	th.tblSecondaryHeading {
		background-color: #E0E0FF;
		text-align: left;
	}

/*** Number cells should be right-aligned ***/
/* Should be used for all numeric columns of data, where the digits are expected
 * to line up.
 */

	td.NumberCell {
		text-align: right;
	}

/*** Button cells should be fully centered, with all padding removed. ***/
/* Should be used for all cells that just contain a single button, of any sort. */

	td.ButtonCell {
		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;
	}

/*** 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://www.mylivingwill.org.uk//admin/index.php?Request=image&Path=images%2Fsort_up.png);
	}

	th.SortDown a {
		background-image: url(https://www.mylivingwill.org.uk//admin/index.php?Request=image&Path=images%2Fsort_down.png);
	}

/*************** NOTIFICATIONS PANEL ***************/

	#NotificationsPanel {
		margin-top: 0.5em;
	}

	#NotificationsPanel p,
	p.Information,
	p.DataUpdated,
	p.Error,
	p.Warning {
		margin: 0;
		margin-bottom: 0.5em;

		padding: 0.2em 0.4em;

		color: #333399;
		border: 1px solid #9999CC;
		border-left-width: 3px;
		background-color: #F0F0FF;
	}

	#NotificationsPanel p.DataUpdated,
	p.DataUpdated {
		color: #339933;
		border-color: #99CC99;
		background-color: #F0FFF0;
	}

	#NotificationsPanel p.Error,
	p.Error {
		color: #CC0000;
		border-color: #CC0000;
		background-color: #FFF0F0;
	}

	#NotificationsPanel p.Warning,
	p.Warning {
		color: #FF9966;
		border-color: #FF9966;
		background-color: #FFF9F0;
	}

/*************** Date/Time inputs ***************/

	.DateMonth,
	.DateDay,
	.TimeHour,
	.TimeMinute {
		width: 1.2em;
	}

	.DateYear {
		width: 2.2em;
	}

/*************** STANDARD FORM LAYOUT ***************/
/* These rules provide a nicer layout for forms, which will be applied to any
 * forms with the StandardInputForm class.
 * Note that these properties expect a certain layout for forms, which is not
 * currently fully defined (it is as per CaSS, but there is not yet a formal
 * description of this, or any code to auto-create it, though this is coming...)
 */

	.StandardInputForm {
		margin: 1em 2em;
	}

	.StandardInputForm p {
		padding: 2px 0;
		margin: 0;
		clear: left;
	}

	.StandardInputForm div {
		margin: 0 0 0 0;
	}

	.StandardInputForm label {
		font-weight: bold;
		vertical-align: baseline;
		width: 15em;
		float: left;
		padding-right: 1em;
	}

/* Use the ButtonGroup class to indent buttons to match the other inputs. */
	.StandardInputForm .ButtonGroup {
	/* Clear any floats. */
		clear: left;

	/* Indentation is 15em label width + 1em right-padding */
		margin-left: 16em;

	/* A small top-margin to separate out a bit. */
		margin-top: 0.5em;
	}

	.StandardInputForm .ButtonGroup input {
	/* Add a bit of space between buttons. */
		margin-right: 1em;
	}

	.StandardInputForm .LargeButtonDelete {
	/* Separate out delete buttons - always the last in the button group - so that
	 * they are less likely to be accidentally clicked.
	 */
		margin-left: 5em;
	}

	.StandardInputForm label {
		min-height: 1em;
		margin: 0;
		min-width: 5em;
		clear: left;
	}

	.StandardInputForm input[type="text"],
	.StandardInputForm input[type="password"],
	.StandardInputForm select,
	.StandardInputForm textarea,
	.StandardInputForm label {
		min-height: 1.3em;
	}

	.StandardInputForm fieldset {
		border: 0;
		padding: 0;
		margin: 0;
	}

	.StandardInputForm fieldset label {
		font-weight: normal;
		display: inline;
		float: none;
		text-align: left;
		width: auto;
	}

	.StandardInputForm input,
	.StandardInputForm textarea {
		padding: 0 2px;
	}

	.DataEntryError {
		border: 1px solid #FF0000 !important;
	}

	.DataErrorDescription {
		color: #CC0000;
	}

	.RequiredData {
		background-color: #FFFFE0;
		border: 1px solid #808080;
	}

	.StandardInputForm .DataEntryNote {
		color: #999999;
		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;
	}

	.StandardInputForm .NonCurrentListItem {
		color: #999999;
	}

	.StandardInputForm .DataBlock {
		padding: 5px 10px;
		margin: 5px 0 5px -10px;
		border: 1px dashed #7DB07D;
	}

	.StandardInputForm .FieldsetElement {
		white-space: nowrap;
		display: inline;
	}

	input[type="checkbox"] {
		vertical-align: middle;
		position: relative;
		top: -2px;
		margin: 0;
		margin-right: 0.5em;
	}

	td input[type="checkbox"] {
		top: 0;
		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.
 * TODO: Buttons are styled differently to the standard browser buttons.
 *		 We should adopt a default button style that we can apply to standard
 *		 buttons AND jQuery UI buttons, so there is a consistent look and feel.
 *		 Or else
 */

/* Bring the overall font-size down.  For some reason, it is increased to 1.1em in
 * the default stylesheet!
 */

	.ui-widget {
		font-size: 0.909em;

	/* Also, set the fields to use the default font, as defined for the project. */
		font-family: inherit;
	}

/* Additionally, shrink the input widgets a bit further, as they come out a bit
 * large at the moment.
 */
	.ui-widget input,
	.ui-widget select,
	.ui-widget textarea,
	.ui-widget button,
	.ui-datepicker .ui-datepicker-title select {
		font-size: 0.9em;

	/* Also, set the fields to use the default font, as defined for the project. */
		font-family: inherit;
	}

/* Style the title bar to remove the padding around it, and make it more like
 * a standard title bar (instead of a bordered heading).
 */

	.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;
	}

/* Remove unwanted space from the button pane at the bottom of the dialog box,
 * and give it a slightly different backgroundd color, to better separate it from
 * the box's content.
 */
	.ui-dialog .ui-dialog-buttonpane {
		margin: 0;
		padding: 0 1em;
		background-color: #F0F0FF;
	}

/* Add drop-shadow to the dialog box, to make it 'hover' above the page. */
	.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;
	}

/* Datepicker: make sure the datepicker button is correctly aligned, vertically, with
 * the input boxes it is associated with.
 */
	.ui-datepicker-trigger {
		vertical-align: bottom;

	/* Also, give it a hand cursor, to indicate that it can be clicked. */
		cursor: pointer;

	/* Give some right-margin, so if there is an error it isn't buffered right up
	 * against the icon.
	 */
		margin-right: 0.5em;
	}

/* Datepicker: Tweak size and positioning of the prev/next buttons so they are
 * aligned neatly within the header section, now that the size of the select boxes
 * has been shrunk slightly (above).
 */

	.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-prev {
		left: 3px;
	}

	.ui-datepicker .ui-datepicker-prev-hover {
		left: 2px;
	}

	.ui-datepicker .ui-datepicker-next {
		right: 3px;
	}

	.ui-datepicker .ui-datepicker-next-hover {
		right: 2px;
	}

/* Datepicker: Give a bit of space between the month/year fields. */

	.ui-datepicker select.ui-datepicker-month {
		margin-right: 2px;
	}

/******************* END JQUERY UI ELEMENTS ***********************/

/* TechAdminOnly is a class that can be assigned to highlight items that are only
 * available to techadmin users.  It expects to be applied to a block-level element
 * that is a wrapper for the techadmin-only content.
 * Note: the second selector is to ensure the rule is applied to div elements in
 * input forms, which traditionally have their margin removed.
 */
	.TechAdminOnly,
	.StandardInputForm div.TechAdminOnly {
		border: 1px dashed #CC0000;
		background-color: #FFFFF0;
		margin: 2em 0;
		padding: 0.5em 1em;
	}

/*************** Paginator ***************/

	.Paginator {
		margin: 0.5em;
		padding: 0.5em;
		text-align: center;
	}

	.Paginator label {
		margin: 0;
		padding: 0;
		min-width: 0;
		width: auto;
		float: none;
	}

	.Paginator ul {
		display: inline;
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.Paginator li {
		display: inline-block;
	}

	.Paginator li a,
	.Paginator li.CurrentPage {
		display: inline-block;
		padding: 0 0.25em;
	}

	.Paginator li a {
		text-decoration: none;
	}

	.Paginator li.CurrentPage {
		font-weight: bold;
	}

/*************** Printing Page ***************/

	.PrintOnly {
		display: none;
	}

	.NoPrint {
		display: none;
	}