/* GENERAL */

/* CC Dropdown Menu */

div.cc_dropdown{
	margin: 0 auto 20px auto;
	position: relative;
}

div.cc_dropdown div.current_value{
	width: 100%;
	overflow: hidden;
	border: 1px solid transparent;
	border-bottom-color: #cccccc;
	font-size: 20px;
	color: #0076BF;
}

div.cc_dropdown div.current_value div{
	height: 24px;
	line-height: 24px;
	padding: 4px 20px 4px 8px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	cursor: pointer;
	/* background: right 2px no-repeat url(_img/cc_dropdown.png); commented for wcag */
}

div.cc_dropdown.active div.current_value div{
	background-position: right -31px;
}

div.cc_dropdown.multiselect div.select a{
	background: left -73px no-repeat url(_img/cc_dropdown.png);
}

div.cc_dropdown.multiselect div.select li.selected a{
	color: black;
	background-color: #e0f0ff;
	background-position: left -118px;
}

div.cc_dropdown.multiselect div.select a:hover{
	background-color: #e0f0ff;
}


div.cc_dropdown div.select{
	width: 100%;
	outline: 1px solid #aaaaaa;
	display: none;
	position: absolute;
	top: 33px;
	z-index: 11;
}

#vis_indx_select select{
	display: none;
}

#indx_mc{ display: none; }
#indx_mc.show{ display: block; }

div.cc_dropdown.active div.select{
	display: block;
}

div.cc_dropdown ul{
	margin: 0;
	background: #f8f8f8;
}

div.cc_dropdown > ul > li > a{
	background: #f0f0f0;
}

div.cc_dropdown ul li{
	list-style: none;
	margin: 0;
}

div.cc_dropdown ul li a,
div.cc_dropdown ul li div{
	display: block;
	padding: 4px 4px 4px 8px;
}

div.cc_dropdown ul li div{
	font-weight: 500;
}

div.cc_dropdown ul li a:hover{
	text-decoration: none;
	background: #e0f0ff;
	color: black;
}

div.cc_dropdown ul ul li a{
	padding-left: 20px;
}



/* Visualizer */

#pg_home #subheader{
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}

#pg_home #subheader #vis_tabs{
	overflow: hidden;
}

#pg_home #subheader #vis_tabs a{
	height: 15px;
	line-height: 15px;
	display: inline-block;
	float: left;
	padding: 20px 30px 20px 30px;
	font-size: 14px;
	font-weight: 600;
	color: #5a5a5a;
}

#pg_home #subheader #vis_tabs a.map{
	width: 38px;
	background: 30px 10px no-repeat url(_img/sprites1.png);
}

#pg_home #subheader #vis_tabs a:hover,
#pg_home #subheader #vis_tabs a.selected{
	text-decoration: none;
	color: inherit;
	background-color: #e9e9e9;
}

#visualizer{
	/* height: 645px; */
	position: relative;
	padding-top: 1px;
}

#vis_content:after,
#vis_content > div.section:after,
#vis_content > div.section > div.screen:after{ content: ''; display: table; clear: both; }
#vis_content > div.section,
#vis_content > div.section > div.screen{ min-height: 550px; display: none;  }
#vis_content > div.section.selected,
#vis_content > div.section.selected > div.screen.selected{ display: block; }

#visualizer header{
	position: absolute;
	top: 75px;
	left: 0;
}

#visualizer header h1{
	font-size: 32px;
	font-weight: normal;
	margin: 0 0 6px 0;
	color: #000;
}

#visualizer header h1 span{
	color: #01578c;
	font-weight: 600;
}

/* cc_dropdown customization */

#vis_indx_select{
	width: 40%;
	margin: 0 0 0 0;
	position: absolute;
	left: 0;
	top: 80px;
}
/* added background image with css */
#vis_indx_select div.current_value{
	margin: 0 auto 0 auto;
	/* background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat:no-repeat;  */
}

#vis_indx_select div.select{
	width: 515px;
	padding: 10px;
	left: 0;
	max-height: 410px;
	overflow: hidden;
	background: #f8f8f8;
}

#vis_indx_select div.select > ul{
	width: 33%;
	float: left;
}

#vis_indx_select div.select ul li{
	font-size: 14px;
	line-height: 14px;	
}


#vis_indx_select.multiselect a{
	padding-left: 25px;
}

#vis_indx_select div.select li a{ text-overflow: ellipsis; }

#vis_indx_select div.annotation{
	position: absolute;
	right: 15px;
	bottom: 10px;
	text-align: right;
}

#visualizer.chart_compare #vis_indx_select,
#visualizer.chart_change #vis_indx_select{
	width: 386px;
	margin-right: 0;
	
}
/* added color with css */
#vis_indx_select div.current_value div{
	/* background-position: left top; */
	padding-left: 0px;
	padding-right: 0;
	color: #01578c; /* added */
	position: relative; /* added */
}
div.cc_dropdown div.current_value div:before {
    height: 24px;
    line-height: 24px;
    padding: 4px 30px 4px 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: pointer;
    background: right 2px no-repeat url(_img/cc_dropdown.png);
	content: "";
	background-position: left top;
}
div.cc_dropdown.active div.current_value div:before {
    background-position: left -31px;
}
/* chart css */
.chart rect {
    fill: none !important;
}
.chart .highcharts-button rect{
	stroke-width: 1px;
	stroke: rgb(0, 0, 0);
}
.chart text {
    background: #ffffff;
    color: #000000 !important;
    font-weight: bold !important;
    fill: #000000 !important ;
}

div.maps div.comp_indx #vis_indx_select div.current_value div{
	padding-left: 0;
	padding-right: 30px;
}

#vis_indx_select.active div.current_value div{
	background-position: left -31px;
}


div.hc_tooltip table{
	min-width: 180px;
}

div.hc_tooltip td{
	padding: 4px 0 0 10px;
	text-align: right;
	font-size: 12px;
}

div.hc_tooltip td:first-child{
	padding-left: 0;
	text-align: left;
	position: relative;
}

div.hc_tooltip thead td{
	border-bottom: 1px solid #999999;
	padding-bottom: 3px;
	font-size: 14px;
	font-weight: normal;
}

div.hc_tooltip thead td:first-child{
	font-weight: bold;
}

div.hc_tooltip tbody td:first-child{
	padding-left: 16px;
	padding-right: 5px;
}

div.hc_tooltip span.swatch{
	width: 3px;
	height: 0;
	display: inline-block;
	position: absolute;
	left: 0;
	top: 8px;
	padding: 4px;
	border-radius: 4px;
	background: black;
}

div.hc_tooltip span.lock_icon{
	width: 9px;
	height: 11px;
	line-height: 14px;
	margin-right: 1px;
	display: inline-block;
	background: no-repeat right -500px url(_img/sprites1.png);
}

div.hc_tooltip p.locked_content{
	position: relative;
	margin: 12px 0 8px 0;
	padding-left: 16px;
}

div.hc_tooltip p.locked_content span.lock_icon{
	position: absolute;
	left: 1px;
	top: 0;
}

#vis_chart_change div.hc_tooltip table tbody td:first-child{
	padding-left: 0;
}

/* Ontario Map Zoom */

#map_on_trigger{
	height: 32px;
	line-height: 32px;
	display: block;
	padding: 0 12px 0 12px;
	border-radius: 16px;
	position: absolute;
	top: 76%;
	left: 50%;
	font-size: 16px;
	background: rgba(255,255,255,0.7);
	color: #0076BF;
	cursor: url(_img/visualizer/magnify_cursor.png), deafault;
}

#map_on{
	width: 0;
	height: 0;
	border-radius: 210px;
	overflow: hidden;
	position: absolute;
	left:  65%;
	bottom: 35px;
	border: 1px solid #bbbbbb;
	box-shadow: 0px 75px 25px 0px rgba(0, 0, 0, 0.2);
	background: white;
	z-index: 20;
}

#map_on.showing{}

#map_on div.map{
	width: 2400px;	/* orginal is 1500 x 1267 and this is 1.8x zoom */
	height: 2027px;	
	position: absolute;
	bottom: 0px;
	left: -1360px;
}

#map_on div.map img{
	position: absolute;
	left: -10px;
	top: -40px;
}


#vis_maps{
	position: relative;
}

#vis_maps img{
	width: 100%;
}

#vis_indices{
	height: 55px;
	line-height: normal;
	overflow: hidden;
	padding-top: 120px;
	background: #f6f6f6;
	display: none;
}


#vis_indices a.button{
	float: right;
	margin: 8px 6px 0 0;
}

#vis_indx_base{
	max-width: 30%;
	position: absolute;
	left: 30px;
	bottom: 35px;
	color: #333;
	background: #fff;
}

#vis_maps div.map_frame{
	width: 58%;
	margin: 40px 2% 15px 0.5%;
	float: left;
	position: relative;
}

#vis_maps div.map_frame > div.map{
	width: 100%;
}

#vis_maps div.map a.city{
	height: 0;
	width: 0;
	overflow: hidden;
	position: absolute;
	top: 100px;
	left: 0;
	padding: 8px;
	border-radius: 8px;
	background: #0076bf;
	box-shadow: 7px 7px 8px 0px rgba(0,0,0,0.2);
}

#vis_maps a.city span{
	position: absolute;
	left: -200px;
	color: #000;
	background: #fff;
}

#vis_maps div.map div.map_label{
	display: inline-block;
	color: white;
	position: absolute;
	top: -500px;
	left: -500px;
	text-align: center;
	z-index: 20;
}

.use_trans{ transition: 0.3s; }

#vis_maps div.map div.map_label div.text{
	min-width: 100px;
	display: block;
	padding: 10px 12px 10px 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-align: center;
	box-shadow: 5px 5px 8px 2px rgba(0,0,0,0.2);
	background: #0091d2; /* Old browsers */
	background: linear-gradient(to bottom, #0091d2 0%,#0076bf 100%);
}

#vis_maps div.map div.map_label > span{
	height: 17px;
	display: inline-block;
	font-size: 25px;
	line-height: 17px;
	font-family: Arial, sans-serif;
	text-align: center;
	text-shadow: 5px 5px 8px rgba(0,0,0,0.2);
	color: #0076bf;
}


#vis_maps div.data,
#vis_maps div.donut{
	width: 39%;
	margin: 150px 0.5% 0 0;
	position: relative;
	float: left;
}

#vis_maps div.donut map area{
	cursor: pointer;
}


#vis_maps div.donut div.donut_info{
	width: 36%;
	height: 39.5%;
	position: absolute;
	top: 29%;
	left: 30.5%;
	border-radius: 50%;
	text-align: center;
	font-size: 20px;
	color: black;
	background: #fff;
}

#vis_maps div.donut div.donut_info span{ color: #3d5f10; }
#vis_maps div.donut div.donut_info span:after{ content: "% ↑"; }
#vis_maps div.donut div.donut_info span.down{ color: #E00911; }
#vis_maps div.donut div.donut_info span.down:after{ content: "% ↓"; }
#vis_maps div.donut div.donut_info span.no_data,
#vis_maps div.donut div.donut_info div.indx_value.no_data{ color: #e66c1b; }
#vis_maps div.donut div.donut_info span.no_data:after{ content: ""; }

#vis_maps div.donut div.donut_info div.name{
	width: 80%;
	height: 30px;
	margin: 30px auto 0 auto;
	font-size: 14px;
	letter-spacing: 1px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 14px;
	color: #4c4c4c;
}

#vis_maps div.donut div.donut_info div.weight{
	font-size: 36px;
	line-height: 36px;
	color: #5a5a5a;
}

#vis_maps div.donut div.donut_info div.indx_value{
	margin-bottom: 8px;
	font-size: 42px;
	line-height: 42px;
}

#vis_maps div.donut div.donut_info div.change{
	margin-bottom: 3px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2em;
	color:  #4c4c4c;
}

#vis_maps div.donut div.donut_info div.indx_mom{
	font-size: 36px;
	line-height: 36px;
	color: #5a5a5a;
}

#map_indx_date{
	width: 17.5%;
	display: none; /* Only show on national map */
	margin: 0 12% 0 0;
	position: absolute;
	bottom: 45px;
	right: 0;
	border-bottom: 1px solid #dddddd;
	text-align: center;
}

#map_indx_nsa{
	width: 39%;
	padding-right: 1%;
	position: absolute;
	bottom: 10px;
	right: 0px;
	text-align: center;
	color: #999999;
}

/* City List */

#all_city_list{
	width: 31.9%;
	float: left;
	margin: 130px 0 0 7.4%;
}

#all_city_list ul li div{
	clear: both;
	margin-bottom: 3px;
}

#all_city_list > ul{
	width: 49.5%;
	float: left;
}

#all_city_list > ul:first-child{
	margin-right: 1%;
}

#all_city_list li{
	list-style: none;
	margin: 0 0 3px 0;
	font-size: 18px;
}

@media only screen and (max-width: 1400px){ #all_city_list li{ font-size: 16px; } }
@media only screen and (max-width: 1250px){ #all_city_list li{ font-size: 14px; } }


/* Date */

#map_indx_date span{
	position: relative;
	top: 14px;
	display: inline-block;
	padding: 2px 30px 2px 30px;
	margin: 0 auto 0 auto;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	background: white;
}

/* CITY */

#vis_map_city{
	overflow: hidden;
}

#vis_map_city div.callout{
	width: 100%;
	padding: 12px 0 12px 0;
	border-top: 2px solid #dddddd;
	position: absolute;
	bottom: 0;
	overflow: hidden;
	clear: both;
	background: white;
}

#vis_map_city div.callout div.body{
	font-size: 26px;
	line-height: 48px;
	font-weight: 300;
	float: left;
	color: #5B5B5B;
	overflow: hidden;
}

#vis_map_city div.callout div.action{
	font-size: 28px;
	line-height: 48px;
	font-weight: bold;
	float: right;
	overflow: hidden;
}

#vis_map_city div.callout div.action a.button{
	font-size: 18px;
	font-weight: 600;
	position: relative;
	top: -3px;
}

#vis_map_city div.map{
	width: 40%;
	margin: 150px 0 100px 0;
	float: left;
}

#vis_map_city div.map img{
	width: 100%;
	max-height: 485px;
	display: block;
	margin: 0 auto 0 auto;
}

#vis_map_city div.text{
	width: 28%;
	margin: 150px 2% 100px 2%;
	float: left;
	font-size: 15px;
	line-height: normal;
}

#vis_map_city div.table{
	width: 28%;
	margin: 150px 0 110px 0;
	float: left;
	font-size: 15px;
	line-height: normal;
}
/* changed from #777777 to #333 */
#vis_map_city div.table div.footnote{
	margin-top: 20px;
	font-style: italic;
	font-size: 12px;
	text-align: right;
	color: #333;
}

#vis_map_city div.table div.footnote span{
	display: inline-block;
}

#vis_map_city #city_description{
	margin-bottom: 12px;
}

.dollars:before{ content: "$"; }

.use_trans{ transition: 0.3s; }

#city_agg_value_of_dwellings:after{ content: ' B'; }

/* div.city_indx_summary */

#vis_indx_summary{
	position: absolute;
	top: 80px;
	right: 0;
	overflow: hidden;
	margin-bottom: 20px;
}

#vis_indx_summary div{
	float: left;
	margin-left: 8px;
	padding-left: 28px;
	background: -100px 8px no-repeat url(_img/sprites1.png);
}

#vis_indx_summary div:first-child{
	margin-left: 0;
	padding-left: 0;
	background: none;
}

#vis_indx_summary span.label{
	margin-bottom: 3px;
	font-size: 13px;
	font-weight: 300;
	display: block;
}

#vis_indx_summary span.change,
#vis_indx_summary span.value{
	display: block;
	font-size: 25px;
	font-weight: 600;
	line-height: 1em;
	text-align: right;
}

#vis_indx_summary span.change{ color: #629918; }
#vis_indx_summary span.change.down{ color: #e00911; }
#vis_indx_summary div span.change:after{
	content: "↑";
	padding-left: 0.4em;
	height: 20px;
	display: inline-block;
	position: relative;
	float: right;
	top: -0.15em;
	font-size: 0.8em;
	font-family: Arial, sans-serif;
}

#vis_indx_summary div span.change.down:after{ content: " ↓"; }

#vis_indx_summary div span.no_data{ color: #e66c1b; }
#vis_indx_summary div span.no_data:after{ content: ''}

/* Don't show weight when showing a comp. */
#vis_indx_summary div.comp{ display: none; }
#vis_content.city_indx #vis_indx_summary div.comp{ display: block; }

/* table.city_data */

table.city_data{
	width: 100%;
}

table.city_data td{
	border-top: 1px solid #dddddd;
	border-bottom: 1px solid #dddddd;
}

table.city_data td{
	padding: 8px 8px 8px 1px;
}

table.city_data td.label{}
table.city_data td.label sup{
	vertical-align: baseline;
	position: relative;
	top: -0.4em;
	font-size: 0.7em;
}
table.city_data td.value{
	min-width: 110px;
	background: #f8f8f8;
	text-align: right;
}


/* Show / Hide common elements */

#visualizer header,
#vis_indx_summary{
	display: none;
}

#visualizer.maps #vis_content.city_indx #vis_indx_summary,
#visualizer.chart_change #vis_indx_summary,
#visualizer.maps header{
	display: block;
}

#visualizer.maps header{
	background: #fff; color: #000; font-weight: 600;
}

#visualizer.maps header > span{
	color: #000;
}

#visualizer.maps #vis_content.city_indx #vis_indx_summary{
	right: 0;
}

#visualizer.maps #vis_content.city_indx header{
	display: none;
}

#visualizer.maps #vis_content.comp_indx #map_indx_date{
	display: block;
}

#visualizer.maps #vis_content.city_indx header{
	display: none;
}

#visualizer.maps #vis_content.comp_indx #vis_indx_select{
	width: 23%;
	margin-right: 9.2%;
	right: 0;
	left: auto;
}

#visualizer.maps #vis_content.comp_indx #vis_indx_select div.current_value div{
	background-position: right top;
}

#visualizer.maps #vis_content.comp_indx #vis_indx_select.active div.current_value div{
	background-position: right -31px;
}

#visualizer.maps #vis_content.comp_indx #vis_indx_select div.select{
	left: auto;
	right: 0;
}


@media only screen and (max-width: 1400px){
	#vis_maps div.donut div.donut_info div.indx_value{ font-size: 36px; line-height: 36px; }
	#vis_maps div.donut div.donut_info div.change{ font-size: 13px; line-height: 13px; }

	#vis_map_city div.callout div.body{ font-size: 24px; }
	#vis_map_city div.callout div.action{ font-size: 24px; }
	
	#visualizer.maps #vis_content.city_indx #vis_indx_summary span.change,
	#visualizer.maps #vis_content.city_indx #vis_indx_summary span.value{
		font-size: 22px;
	}
}

@media only screen and (max-width: 1250px){
	#vis_maps div.donut div.donut_info div.indx_value{ font-size: 26px; line-height: 26px; margin-bottom: 4px; }
	#vis_maps div.donut div.donut_info div.change{ font-size: 12px; line-height: 12px; margin-bottom: 2px; }
	#vis_map_city div.callout div.body{ font-size: 20px; }
	#vis_map_city div.callout div.action{ font-size: 20px; }

	#vis_map_city div.data{ font-size: 13px; }
	
	#visualizer.chart_compare #vis_indx_select,
	#visualizer.chart_change #vis_indx_select{ width: 28%; }
	
	#visualizer.maps #vis_content.city_indx #vis_indx_summary span.change,
	#visualizer.maps #vis_content.city_indx #vis_indx_summary span.value{
		font-size: 18px;
	}
}

/* Visualizer Chart Compare */

#vis_chart_compare div.chart,
#vis_chart_change div.chart{
	width: 100%;
	height: 550px;
	margin: 60px auto 20px auto;
	padding-top: 80px;
}

#vis_compare_legend{
	width: 62%;
	min-height: 20px;
	position: absolute;
	top: 85px;
	right: 30px;
	text-align: right;
}

#vis_compare_legend > div{
	display: inline-block;
	overflow: hidden;
	padding-right: 10px;
	margin-right: 10px;
	white-space: nowrap;
}

#vis_compare_legend > div.hide{
	display: none;
}

#vis_compare_legend > div span.icon{
	width: 1vw;
	height: 0;
	display: inline-block;
	padding: 4px;
	margin-right: 5px;
	border-radius: 4px;
	background: black;
}

#vis_compare_legend > div span{
	display: inline-block;
}

.ui-tooltip {
	padding: 8px;
	position: absolute;
	z-index: 9999;
	max-width: 300px;
}

.ui-widget-shadow {
	-webkit-box-shadow: 0px 0px 5px #666666;
	box-shadow: 0px 0px 5px #666666;
}

.ui-widget {
	font-family: Arial,Helvetica,sans-serif;
	font-size: 1em;
}
.ui-widget .ui-widget {
	font-size: 1em;
}

.ui-widget-content {
	border: 1px solid #dddddd;
	background: #ffffff;
	color: #333333;
}

.ui-corner-all{ border-radius: 3px }

/* Montly Report Chart */

article #vis_indx_select{
	width: 40%;
	position: relative;
	top: auto;
	right: auto;
	margin: 10px 10px 0 70px;
	float: left;
}

article #vis_chart_change{
	min-height: 300px;
	position: relative;
	margin-top: 15px;
	background: white;
}

article #vis_chart_change div.chart{
	height: 350px;
	padding: 60px 0 10px 0;
	margin-top: 0;
}

article #vis_change_table{
	min-height: 300px;
	margin-top: 15px;
}

article table.data{
	width: 100%;
	margin-bottom: 15px;
}

article table.data.narrow{
	width: 40%;
}

article table.data td{
	padding: 3px 5px 3px 5px;
	text-align: right;
	background: white;
}

article table.data tbody tr.title td{ background: #e8e8e8; }
article table.data tbody td{ white-space: nowrap; }
article table.data tbody td.name{ white-space: normal; }
article table.data td:first-child{ text-align: left; }

article table.data thead td{
	color: white;
	background: #0076BF;
}

article table.data tbody tr.alt td{ background: #f0f0f0; }
article table.data tbody td.no_data{ color: #e66c1b; text-align: right; }

article table.data tbody tr td.name{ padding-left: 8px; }
article table.data tbody tr.city td.name{ padding-left: 20px; }

#vis_compare_legend div.legend_1 span.icon{ background: #88B37F; }
#vis_compare_legend div.legend_2 span.icon{ background: #A25AD9; }
#vis_compare_legend div.legend_3 span.icon{ background: #FF6463; }
#vis_compare_legend div.legend_4 span.icon{ background: #E8B14F; }
#vis_compare_legend div.legend_5 span.icon{ background: #44DF11; }
#vis_compare_legend div.legend_6 span.icon{ background: #C6FF57; }

/* Override the above for these special cases */
#vis_compare_legend div.indx_mc span.icon{ background: #0076BF; }
#vis_compare_legend div.indx_c11 span.icon{ background: #31a6eF; }


