/*
 * JRF Housing & Neighbourhoods Monitor map styles
 * 
 * @author benw@torchbox.com
 * Based on styles by nickl@torchbox.com
 * @extends screen.css
 */

/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }


/* Page layout
-------------------------------------------------- */

#content, #header, #footer {
	width: 100%;
	overflow: visible;
}
#wrapper {
	overflow: visible;
}
#map-wrapper {
	position: relative;
}
#sidebars {
	position: absolute;
	top: 0;
	left: 0;
	width: 310px;
	overflow: hidden;
}

/* Header
-------------------------------------------------- */

#logo {
	margin: 18px 0 0 20px;
}
#nav {
	margin: 0 20px 0 0;
}
.maps h1 {
	display: none;
}

/* Toolbar
-------------------------------------------------- */

#toolbar, #slider {
	background: url(../images/map-location-bg.png) no-repeat top left transparent;
	padding: 4px;
	position: absolute;
	top: 25px;
	right: 25px;
	z-index: 100;
	padding: 12px 15px;
	width: 290px;
	height: 58px;
}
#toolbar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
#toolbar input, #toolbar select {
	margin: 0 5px 10px 0;
	width: 180px;
	float: left;
}
#toolbar select {
	margin: 0;
	width: 230px;
	padding: 2px;
}
#toolbar label {
	font-weight: bold;
	color: #103b68;
	font-size: 0.9em;
	float: left;
	width: 60px;
	position: relative;
	top: 4px;
}
#toolbar label#region {
	visibility: hidden;
}
#toolbar .button {
	margin: 0;
	width: auto;
	position: relative;
	top: -1px;
}
#slider {
	top: 110px;
	z-index: 2;
	height: 18px;
	padding-top: 18px;
}
#slider label {
	float: left;
	font-size: 0.9em;
	font-weight: bold;
	width: 45%;
	color: #103B68;
}
#slider .ui-slider {
	float: right;
	width: 50%;
	background: url(../images/slider-bg.png) left top repeat-y;
}
#slider .ui-corner-all {
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
}
#slider .ui-slider-handle {
	top: -6px;
	width: 11px;
	height: 23px;
	background: url(../images/slider-handle.png) left top no-repeat;
	border: none;
}

/* Sidebar layout
-------------------------------------------------- */

#sidebars-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 620px;
	overflow: hidden;
}
.sidebar {
	position: absolute;
	top: 0;
	width: 310px;
	background: #e8e8e8;
}
.sidebar-container {
	position: relative;
	margin: 10px auto;
	padding: 0;
	background: #fff;
	width: 290px;
	border: 1px solid #c1c3c4;
	top: -1px;
	z-index: 1;
}
#index-sidebar {
	left: 0;
}
#inner-sidebar {
	left: 310px;
}
#button-sidebar-hide, #button-sidebar-show {
	position: absolute;
	left: 296px;
	top: 10px;
	display: block;
	overflow: hidden;
	text-indent: -1000px;
	width: 14px;
	height: 17px;
	background-image: url(../images/icon-expand.gif);
	background-position: 14px 0;
	z-index: 1000;
}
#button-sidebar-show {
	background-position: 0 0;
	left: 0;
}
body.sidebar-left #map-wrapper {
	margin-left: 310px;
}
body.sidebar-left #sidebar {
	left: 0;
}
body.nosidebar #map-wrapper {
	margin: 0;
}
body.nosidebar .sidebar {
	display: none;
}
body.sidebar-left a#button-sidebar-show, body.nosidebar a#button-sidebar-hide {
	display: none;
}

/* Sidebar content: menu
-------------------------------------------------- */

#index-sidebar .sidebar-container {
	overflow: auto;
}
#index-sidebar h2 {
	font-weight: bold;
	font-size: 16px;
	color: #fff;
	background-color: #1B4E7C;
	padding: 17px 14px 14px;
	margin: 0;
}
.accordion h3 {
	position: relative;
	font-size: 1em;
	margin: 0;
	font-weight: bold;
	padding: 7px 0 7px 14px;
	color: #1B4E7C;
	border-bottom: 1px solid #C1C3C4;
}
.accordion h3:hover {
	cursor: pointer;	
}
.accordion h3.ui-state-active, .accordion h3.ui-state-hover {
	background: #000 url(../images/accordion-h3-bg.png) left top repeat-x;
	color: #fff;
}
.accordion h3.ui-state-active {
	border-bottom: 0;
}
.accordion h3 .ui-icon {
	display: block;
	position: absolute;
	right: 14px;
	top: 12px;
	width: 9px;
	height: 6px;
	background: url(../images/accordion-h3-arrow.png) left top no-repeat;
}
.accordion h3.ui-state-active .ui-icon, .accordion h3.ui-state-hover .ui-icon {
	background-position: left -6px;
}
.accordion ul li {
	border: 0;
	border-bottom: 1px dotted #c1c3c4;
}
.accordion ul li:last-child, .accordion ul li.last {
	border-bottom: 1px solid #c1c3c4;
}
.accordion li a {
	display: block;
	padding: 7px 5px 5px 24px;
	background: url(../images/icon-arrow.gif) 14px 12px no-repeat;
}

/* Sidebar content: key/message/summary/notes
-------------------------------------------------- */

/* Header */
#inner-sidebar .close {
	display: block;
	position: absolute;
	top: 16px;
	left: 14px;
	width: 30px;
	height: 18px;
	padding-left: 10px;
	line-height: 18px;
	font-size: 11px;
	color: #fff;
	background: url(../images/btn-back.png) left top no-repeat;
}
#inner-sidebar .close:hover {
	opacity: 0.8; 
	filter:Alpha(Opacity=80);
}

#inner-sidebar h2 {
	font-size: 1.154em;
	margin: 0 0 18px;
	padding: 19px 10px 15px 65px;
	border-bottom: 1px solid #EAEAEA;
	letter-spacing: -1px;
}

/* Legend */
.scale_colour {
	width: 15px;
	height: 15px;
	border: 1px solid #666;
}
.sidebar .legend {
	padding: 0 15px;
}
.sidebar-container .legend h3 {
	font-size: 13px;
	margin: 0 0 10px;
	text-transform: none;
	color: #103b68;
}
.sidebar-container .legend h3 span {
	font-size: 0.9em;
	font-weight: normal;
}
.sidebar-container .legend p {
	margin: 1em 0;
	font-size: 0.9em;
	color: #777;
}
.sidebar .legend dt {
	clear: left;
	float: left;
	width: 15px;
	margin-right: 5px;
}

/* Legend colours */
.sidebar .legend .colour0 { background-color: #FFFFFF; }
.sidebar .legend .colour1 { background-color: #FFFF80; }
.sidebar .legend .colour2 { background-color: #F7C348; }
.sidebar .legend .colour3 { background-color: #B0601E; }
.sidebar .legend .colour4 { background-color: #FAD155; }
.sidebar .legend .colour5 { background-color: #F2A72E; }
.sidebar .legend .colour6 { background-color: #AD5313; }
.sidebar .legend .colour7 { background-color: #6B0000; }
.sidebar .legend .colour8 { background-color: #38A800; }
.sidebar .legend .colour9 { background-color: #8BD100; }
.sidebar .legend .colour10 { background-color: #FFFF00; }
.sidebar .legend .colour11 { background-color: #FF8000; }
.sidebar .legend .colour12 { background-color: #FF0000; }
.sidebar .legend .colour13 { background-color: #E60000; }
.sidebar .legend .colour14 { background-color: #FFAA00; }
.sidebar .legend .colour15 { background-color: #6B0601; }
.sidebar .legend .colour16 { background-color: #F7C300; }

/* Message */
.sidebar .message {
	position: absolute;
	bottom: 85px;
	left: 15px;
	width: 260px;
	overflow: auto;
}

/* Popup links */
#additional-links {
	position: absolute;
	left: 14px;
	bottom: 14px;
	width: 262px;
}
#additional-links a {
	display: block;
	background-image: url(../images/btn-bg.gif);
	background-position: 0 0;
	width: 230px;
	height: 20px;
	overflow: hidden;
	padding: 5px 0 0 32px;
	margin: 0 0 5px;
	color: #fff;
	text-decoration: none;
	font-size: 0.9em;
}
#additional-links a:hover {
	background-position: 0 -25px;
}

/* Popup panels
-------------------------------------------------- */

/* National summary */
#nationalSummaryContent {
	background: url(../images/table-bg-large.png);
	z-index: 10;
	position: absolute;
	width: 416px;
	height: 260px;
	left: 330px;
	color: #000000;
	margin: 0px;
	padding: 20px;
	bottom: 25px;
	font-size: 10px;
	display: none;
	text-align: left;
}
#nationalSummaryContent .close, .notes-data .close {
	display: block;
	text-indent: -1000px;
	background: url(../images/btn-close.png);
	width: 23px;
	height: 23px;
	overflow: hidden;
	position: absolute;
	top: -7px;
	right: -7px;
}
#nationalSummaryContent table { 
	width: 100%;	
}
#nationalSummaryContent td {
	border-bottom: 1px solid #999999;
	padding: 0px;
}
#nationalSummaryContent td.title {
	font-size: 13px;
	font-weight: bold;
	/* text-transform: uppercase; */
	color: #000;
	padding: 0 0 10px 0;
}
#nationalSummaryContent td.subTitle {
	font-size: 12px;
	vertical-align: text-bottom;
	color: #103b68; 
}
#nationalSummaryContent td.values {
	font-size: 12px;
	text-align: right;
	vertical-align:text-top;
}
#nationalSummaryContent hr {
	display: none;
}

/* Notes panel */
.notes-data {
	background: url(../images/table-bg-large.png);
	z-index: 99;
	position: absolute;
	width: 416px;
	height: 260px;
	left: 330px;
	color: #000000;
	margin: 0px;
	padding: 20px;
	bottom: 25px;
	font-size: 12px;
	display: none;
}
.notes-data .wrapper {
	height: 100%;
	overflow: auto;
}

/* Instructions panel */
/* Only shown on first visit (cookie) */
#instructions {
	display: none;
	position: absolute;
	width: 314px;
	height: 153px;
	left: 48%;
	bottom: 37%;
	color: #000000;
	margin: 0px;
	padding: 14px;
	background: url(../images/table-bg-small.png);
	z-index: 10;
}
#instructions .close {
	display: block;
	text-indent: -1000px;
	background: url(../images/btn-close.png);
	width: 23px;
	height: 23px;
	overflow: hidden;
	position: absolute;
	top: -7px;
	right: -7px;
	display: none;
}
#instructions h2 {
	text-transform: none;
	letter-spacing: -0.025em;
	font-size: 1.9em;
	line-height: 1.3;
	font-weight: normal;
	border: none;
	text-align: center;
	margin: 30px 0 10px 0;
	color: #fff;
}
#instructions p {
	text-align: center;
	letter-spacing: -0.025em;
	color: #c4daef;
}
