
div.jGrowl {
	padding: 			10px;
	z-index: 			9999;
}

/** Special IE6 Style Positioning **/
div.ie6 {
	position: 			absolute;
}

div.ie6.top-right {
	right: 				auto;
	bottom: 			auto;
	left: 				expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
  	top: 				expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

div.ie6.top-left {
	left: 				expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
	top: 				expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

div.ie6.bottom-right {
	left: 				expression( ( 0 - jGrowl.offsetWidth + ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
	top: 				expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

div.ie6.bottom-left {
	left: 				expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
	top: 				expression( ( 0 - jGrowl.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
}

div.id6.center {
	left: 				expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
	top: 				expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
	width: 				100%;
}

/** Normal Style Positions **/
body > div.jGrowl {
	position:			fixed;
}

body > div.jGrowl.top-left {
	left: 				0px;
	top: 				0px;
}

body > div.jGrowl.top-right {
	right: 				0px;
	top: 				0px;
}

body > div.jGrowl.bottom-left {
	left: 				0px;
	bottom:				0px;
}

body > div.jGrowl.bottom-right {
	right: 				0px;
	bottom: 			0px;
}

body > div.jGrowl.center {
	top: 				0px;
	width: 				50%;
	left: 				25%;
}

/** Cross Browser Styling **/
div.center div.jGrowl-notification, div.center div.jGrowl-closer {
	margin-left: 		auto;
	margin-right: 		auto;
}

div.jGrowl div.jGrowl-notification, div.jGrowl div.jGrowl-closer {
	background-color: 		#aaa;
	color: 					#fff;
	opacity: 				.95;
	filter: 				alpha(opacity = 95);
	zoom: 					1;
	width: 					235px;
	padding: 				10px;
	margin-top: 			5px;
	margin-bottom: 			5px;
	font-family: 			Tahoma, Arial, Helvetica, sans-serif;
	font-size: 				12px;
	text-align: 			left;
	display: 				none;
	-moz-border-radius: 	5px;
	-webkit-border-radius:	5px;
}

div.jGrowl div.jGrowl-notification.error
{
	background-color: #AC4040;
}

div.jGrowl div.jGrowl-notification.success
{
	background-color: #5FA752;
}

/*
 * Links inside a toast.
 *
 * jGrowl never styled anchors, so they fell through to the site's default link blue -- which is close to
 * unreadable on the green success background and not much better on the red error one. Live notification
 * toasts (js/RADPI/LiveNotifications.js) made this visible because for those the link IS the message:
 * "your report is ready" is itself the anchor.
 *
 * White to match the toast's own text colour, underlined so it still reads as something to click rather
 * than as plain text. :visited is overridden explicitly -- without it, a report link the user has already
 * clicked turns browser-purple on green the next time a toast appears, which is worse than the blue.
 */
div.jGrowl div.jGrowl-notification a,
div.jGrowl div.jGrowl-notification a:link,
div.jGrowl div.jGrowl-notification a:visited,
div.jGrowl div.jGrowl-notification a:active
{
	color: #fff;
	text-decoration: underline;
}

div.jGrowl div.jGrowl-notification a:hover,
div.jGrowl div.jGrowl-notification a:focus
{
	/* Slightly dimmed rather than a new hue: on three different backgrounds (grey, green, red) any
	   accent colour that works on one clashes with another. */
	color: #f0f0f0;
	text-decoration: underline;
}

div.jGrowl div.jGrowl-notification {
	xheight: 				40px;
}

div.jGrowl div.jGrowl-notification div.header {
	font-weight: 			bold;
	font-size:				10px;
}

/*
 * The close "x".
 *
 * colour/opacity/text-shadow are set HERE, not left to inherit, because legacy-theme.css:315 defines a
 * bare `.close` -- the Bootstrap 2 close button, `color:#000; opacity:.2; text-shadow:0 1px 0 #fff` --
 * and jGrowl's own rule below declared none of those three. Specificity is not the problem (this selector
 * is far more specific and already wins float/font/cursor); the problem is that a property a rule does not
 * declare falls through to whatever else matches. So the x rendered as BLACK AT 20% OPACITY on the green
 * and red backgrounds, which is effectively invisible.
 *
 * Not a jGrowl bug and not new: it arrived with legacy-theme.css in the Bootstrap 2 -> 5 migration, whose
 * bare `.close` leaks onto every element with that class name. Fixed at this end rather than by narrowing
 * the legacy selector, which is shared with the modal and alert chrome that still depends on it.
 */
div.jGrowl div.jGrowl-notification div.close {
	float: 					right;
	font-weight: 			bold;
	font-size: 				12px;
	cursor:					pointer;
	color: 					#fff;
	/* Not fully opaque, so it reads as secondary to the message; full opacity on hover. */
	opacity: 				0.7;
	text-shadow: 			none;
}

div.jGrowl div.jGrowl-notification div.close:hover {
	color: 					#fff;
	opacity: 				1;
}

div.jGrowl div.jGrowl-closer {
	height: 				15px;
	padding-top: 			4px;
	padding-bottom: 		4px;
	cursor: 				pointer;
	font-size:				11px;
	font-weight: 			bold;
	text-align: 			center;
}
