/**
 * CSS to customize a branded state-specific implementation
 *
 * CakePHP version 2.1
 * PHP version 5
 *
 * @copyright     Copyright 2013, Adam Friedman
 * @date		  2015-01-07
 */
 
 
 
 
 /**
  * Fix VA's parent template
  */

 .row.main-content {
	 width: auto;
	 margin: 2em;
	 max-width: none;
 }

 .menu-header ul.sub-menu { opacity: 0; }

 body nav.breadcrumbs {
	 text-align: left;
 }

 body .entry-header { height: 50px; }
 
 body .entry-title > a:link,
 body .entry-title > a:visited { color: #000; }
 body .entry-title > a:hover,
 body .entry-title > a:active { color: #555;   }
 
 body .entry-content a:link,  
 body .entry-content a:visited, 
 body .entry-content a:hover, 
 body .entry-content a:active { border-bottom: none; }

 body table {
	width: auto;
	vertical-align: top;
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 11px;
 }
 /* Remove top search bar: 
 	UX can confuse this with ElStats search */
 body .header .searchbar,
 body .header .mobilesearch {
	display: none !important;	 
 }
 
 @media screen and (min-width: 1090px) {
	body .content_container { width: 85%; max-width: 1500px; }
	
 	body .header {
	  
	   width: 85%;
	   max-width: 1500px;
	   min-width: 1165px;
 	}
	
 }
 @media screen and (min-width: 1090px) {
	 body .header .logo {
		float: left;	
	}
 }
 @media screen and (max-width: 1089px) {
	 .footerfeature_info h2,
	 .footerfeature_info h3,
	 .footercell h4 { text-align: center; }
 }

 @media screen and (min-width: 1060px) {
	body .content_container { min-width: 960px; }
 }
 
 body .header.stickymenu {
	width: 100%;
	min-width: 0px;
	max-width:none;	 
 }
 
 body .entry-header, body .page_content { max-width: none; width: auto; }
 .entry-header .searchbar { display: none; }
 
 
 /**
  * Nullify default embedded app modifications for "force-embed-mode" state branding
  */
 body.embedded-app.controller_pages.action_index .row-top {
	left: 0;	
	margin-left: 10%; 
 }
 @media screen and (max-width: 1280px) {
	body.embedded-app.controller_pages.action_index .row-top {
		left: 0;	
		margin-left: 0; 
 	} 
 }



 .footer .general ul {
	margin-bottom: 2em;
 }
 .footer .general li {
	 margin-bottom: 0.8em;
 }
.footer .general li a {
	text-decoration: none;
}
.footer .footerone .general p {
	margin-left: 10px;
}

 /**
  * Repair bad modifications to electionstats inner content 
  */


.search_results .dataTables_length,
.search_results .dataTables_filter {
	margin-top: 3px;
}
.search_results #search_results_table_info {
	margin-top: 6px !important;
}
 
 h1,h2,h3,h4,h4,h6, .footercell, .footerfeature_container { text-align: left; }
 
 .page_content #page_wrapper ul, 
 .content #page_wrapper ul, 
 .stats #page_wrapper ul { font-size: 1em !important; }

 body.controller_about .single-column.text-page {
 	margin-top: 0px; 
 	border-left: none;
 }
  
 
 body.controller_candidates.action_view h2 {
	 padding: 1em 0;
  	 font-size: 1.2em;
 }
 
 .embedded-app #page_wrapper h1, #page_wrapper h2, #page_wrapper h3 {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-weight: bold;	 
 }
 .embedded-app #page_wrapper h3:after, #page_wrapper h4:after {
	background: none;
	display: none;	 
 }
 
 body.embedded-app #page_wrapper {
	font-family: Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px; 
	letter-spacing: normal;
	padding-bottom: 25px;
 }
 
 .embedded-app #page_wrapper a.no_underline {
	text-decoration: none;
 }
 .embedded-app #page_wrapper a:link,
 .embedded-app #page_wrapper a:visited {
	
 }

 .embedded-app #page_wrapper a:hover,
 .embedded-app #page_wrapper a:active {
 
	color: #77A5D2;
 }
 .embedded-app #page_wrapper a#back_button {
	color: #336699;	 
 }

 .embedded-app #page_wrapper table a:link,
 .embedded-app #page_wrapper table a:visited {
	 
 }
 
 .embedded-app #page_wrapper a.expand_toggle:link,
 .embedded-app #page_wrapper a.expand_toggle:visited,
 .embedded-app #page_wrapper .search_results a.more:link,
 .embedded-app #page_wrapper .search_results a.more:visited {
	 text-decoration: underline;
 }
 
 
 .embedded-app #page_wrapper .search_results td table.candidates td.candidate .name a { color: #111; }
 
 .embedded-app #page_wrapper .search_controls a.toggle,
 .embedded-app #page_wrapper .search_results .expand_toggle a,
 .embedded-app #page_wrapper .more_info a {
	text-decoration: underline;	 
 }
 .embedded-app #page_wrapper .more_info a:visited { color: #336699; }
 .embedded-app #page_wrapper .back a { text-decoration: underline; }
 
 .embedded-app #page_wrapper table,
 .embedded-app #page_wrapper table td {
	 font-size: 11px;
	 font-family: Verdana, Helvetica, Arial, sans-serif;
	 font-weight: normal;
	 width: auto;
 }
 .embedded-app #page_wrapper table#precinct_data,
 .embedded-app #page_wrapper table#search_results_table,
 .embedded-app #page_wrapper table.candidates {
	 width: 100%;	 
 }
 .embedded-app #page_wrapper .search_results {
	margin-right: 0px;	 
 }
 .embedded-app #page_wrapper .search_results > table > tbody > td {
	 border-bottom: 1px #CCC solid;	 
 }
 body.controller_candidates.action_view #page_wrapper #search_results_table {
	 border-top: 1px #CCC solid;	
	 border-bottom: 1px #CCC solid;	 
 }
 
 
 .embedded-app #page_wrapper label {
	font-size: 12px;	 
 }
 .embedded-app #page_wrapper h1 {
	font-family: Verdana, Helvetica, Arial, sans-serif;	
	font-weight: bold;
	letter-spacing: normal !important;
 }
 body.action_view.embedded-app #page_wrapper h1 {
	letter-spacing: -1px !important;	 
 }
 .embedded-app #page_wrapper p {
	line-height: normal !important;
	font-family: Verdana, Helvetica, Arial, sans-serif;	
	margin-left: inherit !important;
	margin-bottom: inherit !important;
	font-size: inherit !important;
	padding: 0.5em 0 0.5em 0;
	
		 
 }
 .embedded-app #page_wrapper .single-column.text-page p {
 	line-height: 150% !important;
 }

 body.controller_pages.action_index .row-top > div {
	 left: 350px;
 }
 
 .page_content #page_wrapper ul,  .content #page_wrapper ul,  .stats #page_wrapper ul {
	line-height: normal !important;
	font-family: Verdana, Helvetica, Arial, sans-serif;
 }
 #page_wrapper #search_tabs li a {
	text-decoration: none;	 
 }
 #page_wrapper #search_tabs li a:hover,
 #page_wrapper #search_tabs li a:active {
	text-decoration: underline;
	color: #FFF;	 
 }
 
 /* Sidebar */
 .one-fourth > div { margin-left: 0px; }
 .one-fourth .text_wrapper,
 .one-fourth .link_wrapper {
 	padding-bottom: 5px;
 }
 .one-fourth .link_wrapper .item { font-size: 11px; font-family: Verdana, Helvetica, Arial, sans-serif;	 }
 .one-fourth .link_wrapper .item a img { top: 0px; }
 .one-fourth h3 { margin-top: 16px; }
 
 /* BQ View */
 body.controller_ballotquestions.action_view #page_wrapper h2 {
	font-size: 16px;
	font-weight: normal;	 
 }
 body.controller_ballotquestions.action_view #page_wrapper h2 span.label {
	font-weight: bold;	 
 }
 
 
 /* Home */
 body.controller_pages.action_index #page_wrapper table td { border: none; padding: inherit; }
 
 body.controller_pages.action_index #page_wrapper table.info td.value {
	 color: #FFF;
    font-size: 24px;
    text-align: right;	
	font-weight: bold; 
 }
 body.controller_pages.action_index #page_wrapper table.info td.name {
    font-weight: normal;
    padding: 0 0 3px 4px;
    text-align: left;
	font-size: 12px;
 }
 #page_wrapper #search_results_table.is_list_output td.candidates_container_cell {
	padding: 0 0 12px;	 
 }

 body.controller_pages.action_index #page_wrapper .row-bottom h1 { color: #f2edde !important; font-size: 18px !important; margin: 0 0 16px !important; }
 
 
 /** Log In / Log Out / Forgot PW **/
 /*
 body.controller_users .menu-header {
	display: none;	 
 }
 body.controller_users .header.stickymenu {
	display: none; 	 
 }
 */
 
 body.controller_users table td {
	border: none;	 
 }
 
 /**
  * Responsive Styles
  *
  */
 @media screen and (max-width: 568px) {
	 /* Sidebar items */
	 .action_view .one-fourth, .action_view .three-fourth {
		margin: 0px !important;	
	 }
 }
 @media screen and (max-width: 800px) {
	 body .content_container { width: auto; max-width: 1500px; }
	 
	 
 }
 
 /**
  * Responsive Adjustment
  * The code below is PASTED VERBATIM from the responsive.css block.
  * The ONLY change is the breakpoint from 961px to a px value to match Virginia's breakpoint. 
  *
  */
 
 @media screen and (max-width: 1090px) {
    body.controller_pages.action_index #page_wrapper,
	#page_wrapper {
		width: auto;
		min-width: 250px;
	}
	#top_bar_wrapper {
		min-width: 250px;	
	}
	.action_index .one-fourth, .action_index .three-fourths, .action_index .search_results {
		width: auto;
		float: none;
		clear: both;	
		margin: 0 auto;
		padding: 0 16px;
		min-width: 250px;
	}
	
	/* View details page */
	.action_view .one-fourth { width: 30%; min-width: 0px;   }
	.action_view .three-fourth { margin-left: 33%; min-width: 250px;   }
	.action_view .one-fourth .search_controls { display: none; } 
	.action_view .one-fourth #add_this_wrapper { padding-left: 0px; margin-left: 0px; }
	
	.candidate_key .item { width: auto; }
	.candidate_key .item .candidate {  }
	.candidate_key .item .swatch { top: 0px; margin-right: 4px; margin-bottom: 2px; }
	
	
		
	/* Sidebar items */
	.action_index .one-fourth > .inner,
	.action_view .one-fourth > .inner {
		margin-left: 0px;	
	}
	
	.one-fourth > .inner > .search_wrapper,
	.one-fourth > .inner > .chart_wrapper,
	.one-fourth > .inner > .text_wrapper,
	.one-fourth > .inner > .link_wrapper {
		 
		max-width: 350px;
		margin-right: 16px;
	}
	.one-fourth > .inner > .search_wrapper {
		max-width: 298px;
	}
	
	
	/* Search page */
	
	/* Search Results Table */
	.dataTables_wrapper div.fg-toolbar.ui-toolbar,
	#search_results_table {
		min-width: 350px;	
	}
	
	.search_results #search_results_table_info .text.start-to-end-of,
	.search_results #search_results_table_filter .text.quick {
		display: none;	
	}
	.search_results #search_results_table_info {
		width: auto;	
	}
	.search_results td table.candidates th.candidate, 
	.search_results td table.candidates td.candidate,
	.search_results td.bq_candidates table.candidates th.candidate, 
	.search_results td.bq_candidates table.candidates td.candidate {
		min-width: 0px;
		width: auto;
		white-space: normal;
	}
	.search_results td div.name,
	tr.is_winner td div.name { white-space: normal; }
	
	tr.is_winner td img { display: none; }

	
	/* Home */
	body.controller_pages.action_index #content_wrapper {
		background: none;
		background-size: 23%;
		background-position: 80px 33%;	
	}
	body.controller_pages.action_index .row-top {
		min-height: 0px;
 		padding: 0px 16px 40px 16px;
	}
	body.controller_pages.action_index .row-top > div {
		top: 0px;
		left: 0px;
		width: auto;
		 
		margin: 0 auto;
	}
	body.controller_pages.action_index #home_headline_main {
		background-size: 100%;
	
	}
	body.controller_pages.action_index #home_subheadline_main br {
		display: none;
	}
	
	body.controller_pages.action_index #home_search_main {
		width: auto;
		margin: 0 auto;	
	}
	body.controller_pages.action_index #home_search_main > div.description {
		height: auto;
		min-height: 50px;	
		float: none;
		text-align: left;
		width: auto;
		max-width: 300px;
		margin: 0 auto 1em auto;
		padding: 0;
		background: none;
	}
	
	body.controller_pages.action_index #home_search_main > div.description h1,
	body.controller_pages.action_index #home_search_main > div.description p {
		left: 0px;	
	}
	body.controller_pages.action_index #home_search_main > div.search_box {
		float: none;
		margin: 0 auto;
  		max-width: 298px;
	}
}
