@import "_base.css";
@import "explore_bare.css";
@import "RadioSelect.css";
@import "FilteringList.css";
@import "CheckGrid.css";
@import "Indicators.css";
@import "Help.css";

label h1,label h2,label h3,label h4,
#state-label, #indicator-label {
	display: none;
}


.qwi .modal-backdrop {
	background-color: white;
	/* for people who love the internet */
	opacity: 0.5;
	/* for IE */
	filter: alpha(opacity=50);
}

.qwi .modal-header {
	background-color: #eee;
}

.linkbar a {
	cursor: pointer;
}


/* I don't like how big the padding is form BS3 */
.modal-body {
	padding: 10px;
}

#sidebar label {
	display: block;
}

#sidebar select {
	width: 90%;
}

.modal .modal-backdrop {
	z-index: 0;
}

.modal .modal-content {
	z-index: 1;
}

label.no-bold {
	font-weight: normal;
}

/** slightly goofy inconsistencies as requested in #558 **/
thead .CheckGridHeaderLabel {
	display: block;
}

thead .CheckGridHeaderControls {
	display: block;
}

.CheckGridHeaderLabel {
	display: inline;
}

.CheckGridHeaderControls {
	display: inline;
}

.legend-chip-column {
	float: left;
	width: 2em;
	padding-top: 2px;
}

.legend-chip-desc {
	float: left;
	width: 20em;
}

.legend-chip-row {
	clear: both;
}

.legend-chip {
	border: solid 1px black;
	width: 1em;
	height: 1em;
	display: inline-block;
	/* ie hack */
	*display: inline;
}

.legendLabel {
}

.flag-2 {
	background-color: #BCd1f3 !important;
	fill: #83AEF2 !important;
}

.flag-1 {
	background-color: #a1a7aC !important;
	fill: #9AA2AB !important;
}

.flag1 {
}

.flag5, .flag11 {
	background-color: #F2949A !important;
	fill: #F26D78 !important;
}

.flag6 {
/*	background-color: #CCBB45 !important;*/
}

.flag9, .flag12 {
	background-color: #F1B954 !important;
	fill: #F29D00 !important;
}

.flag10 {
/*	Don't bother filling cells with a 10 flag, refs: #1525 */
/*	background-color: #FEFFE8 !important; */
}

/* these should be used with the bootstrap or dijit inline classes */
.explorer-left,
.explorer-right,
.explorer-tall,
.explorer-wide,
.explorer-small,
.explorer-large {
	background-image: url(../images/explorer_controls.png);
	width: 20px; height: 20px;
	/*display: inline-block;*/
/*	background-color: #eee;*/
	cursor: pointer;
	float: right;
	vertical-align: middle;
}

.explorer-left, .explorer-right {
	width: 16px;
}


.explorer-tall { background-position: 0 0; }
.explorer-wide { background-position: 0 -20px; }
.explorer-small { background-position: 0 -40px; }
.explorer-large { background-position: 0 -60px; }
.explorer-right { background-position: -2px -80px; }
.explorer-left { background-position: -2px -100px; }

.explorer-tall:hover { background-position: -40px 0; }
.explorer-wide:hover { background-position: -40px -20px; }
.explorer-small:hover { background-position: -40px -40px; }
.explorer-large:hover { background-position: -40px -60px; }
.explorer-right:hover { background-position: -42px -80px; }
.explorer-left:hover { background-position: -42px -100px; }

.explorer-container {
/*	float: left; 
	width: 295px;
	height: 295px;
	margin-right: 5px;
	margin-top: 5px;
/*	border: solid 1px #aaa;
	height: 320px;
	background-image: linear-gradient(to bottom, #FFFFFF, #F2F2F2);
	border-radius: 10px;*/
}

.explorer-container-wide {
}

.explorer-container-tall {
	height: 640px;
}

.explorer-container-fullscreen, 
.explorer-container-fullscreen .content {
	width: 100%; height: 100%;
}

.fs-only {
	display: none;
}

.explorer-container-fullscreen .fs-only {
	display: block;
}


.explorer-container-header {
/*	height: 30px;
	background-color: #eee;*/
}

.explorer-container .content {
	width: 100%; 
	height: 320px;
}

.explorer-container.explorer-container-tall .content {
	height: 624px;
}

.nav a {
	text-decoration: none;
	cursor: pointer;
}

#fa_fs_info {
	height: 4em;
}

/*** QWI Control Changes for Explorer ***/

#quarters .CheckGrid {
	border: none;
}

.RadioSelectDisplay .dijitCheckBox,
.RadioSelectDisplay .dijitRadio {
	float: left;
	margin-right: .5em;
}

.RadioSelectDisplay .RadioDisplayItem {
	clear: both;
}

.WorkerChar {
	display: none;
}

.WorkerChar.active {
	display: block;
}

#filters_dialog .tab-pane {
	overflow: auto;
}

.filtering-list {
	height: 20em;
	overflow: auto;
	padding: 0;
}

.filtering-list .checkbox {
	display: none;
}

.filtering-list .checkbox.active {
	display: block;
}

.axis path,
.axis line {
	fill: none;
	stroke: #000;
	shape-rendering: crispEdges;
}

.qwiNumber {
	text-align: right !important;
}

.filter_label, .filter_link {
	font-size: 90%;
}

.filter_link.disabled {
	color: #aaa;
	text-decoration: none;
	cursor: default;
}

.filter_label {
	font-weight: bold;
}

.filter_link {
	text-decoration: underline;
	cursor: pointer;
}

.filter_list {
	padding-left: .5em; padding-bottom: .5em;
}

.dgrid {
	border: none !important;
}

#naics_conflict_message,
#private_conflict_message,
#filters_conflict_message {
	margin: .5em;
}


table.options-list {
	padding: 1em;
	width: 100%;
}

table.options-list td {
	padding-bottom: 1em;
}


/*** WEB FONT ***/

@font-face {
	font-family: 'QWI_Font';
	src: url('/static/css/icons/qwi_webfont.eot'); /* IE9 Compat Modes */
	src: url('/static/css/icons/qwi_webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
	     url('/static/css/icons/qwi_webfont.woff') format('woff'), /* Modern Browsers */
	     url('/static/css/icons/qwi_webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
	     url('/sattic/css/icons/qwi_webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

.qwi_icons {
	font-family: 'QWI_Font', 'courier', fixed;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
}

.qwi_line:before {
	content: 'a';
}

.qwi_chart:before {
	content: 'b';
}

.qwi_map:before {
	content: 'c';
}

.qwi_contextual:before {
	content: 'd';
}

.qwi-line-chart .qwi_contextual {
	font-family: 'Glyphicons Halflings';
}

.qwi-line-chart .qwi_contextual:before {
	content: "\e120";
}

.qwi-line-chart .legend-toggle,
.qwi-bar-chart .legend-toggle {
	display: none;
}

.qwi-line-chart .zoomto,
.qwi-bar-chart .zoomto,
.qwi-line-chart .next-group,
.qwi-bar-chart .next-group,
.qwi-line-chart .previous-group,
.qwi-bar-chart .previous-group {
	display: none;
}

.qwi-map-chart .next-x,
.qwi-map-chart .previous-x,
.qwi-map-chart .context {
	display: none;
}

#qwi-chart-control .btn {
	font-size: 1.5em;
}

.chart-title {
	position: absolute;
	top: 30px;
	right: 60px;
	max-width: 10em;
	min-width: 0px;
	text-align: right;

	background-color: rgba(255,255,255,0.8);
	border-radius: 5px;
	padding: 3px;

	display: none;
}

.explorer-container-fullscreen .chart-title {
	max-width: 20em;
}

#legend {
	display: none;
}

.ExplorerTable .cell.c0 {
	font-weight: bold;
	cursor: pointer;
}


/* Our new data grid */

.explorer-container {
	background-color: white;
}

.explorer-container .explorer-container-header {
	text-align: right;
}

.explorer-container .content {
	overflow: auto;
}

/* general table appearance */

.ExplorerTable {
/*	border: solid 1px #aaa;*/
	height: 99%;
	width: 99%;
	overflow: auto;
	position: relative;
}

.ExplorerTable .column-label {
	cursor: pointer;
}

.ExplorerTable .column-label .sort-label.ascending:before {
	content: ' \25B2';
}

.ExplorerTable .column-label .sort-label.descending:before {
	content: ' \25BC';
}

.ExplorerTable .column-label.c0 {
	z-index: 6;
	background-color: white;
}

.ExplorerTable .header {
	position: relative;
	top: 0;
	background-color: white;
	z-index: 4;
}

.ExplorerTable .table-body {
	position: relative;
	top:0;
	left:0;
}

.ExplorerTable .c0 {
	z-index: 2;
}

.ExplorerTable .cell {
	display: inline-block;
	overflow: hidden;
	position: relative;
	top:0;left:0;
	float: left;
	padding: 2px;
	border-bottom: solid 1px #333;
}

.ExplorerTable .CellRowEven .cell {
}

.ExplorerTable .header .cell {
	border: none;
	border-bottom: solid 1px #aaa; 
	font-weight: bold;
	text-align: right;
	padding-right: 6px;
}

.ExplorerTable .table-row {
	clear: both;
	overflow: hidden;
	position: relative;
}

.ExplorerTable .cell.data {
	text-align: right;
}

.explorer-handle {
	position: absolute;
	width: 4px;
	background-color: #ddd;
	cursor: col-resize;
	display: block;
	height: 100%;
	top: 0; right: 0;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.ExplorerTable p {
	margin: 0;
}

.ExplorerTable .CellRowOdd, .ExplorerTable .CellRowEven {
}

.ExplorerTable .CellRowOdd .cell {
	background-color: #eee;
}
/*
.ExplorerTable .CellRowEven .CellColEven { 
	background-color: #E8E8EE;
}
.ExplorerTable .CellRowEven, .CellRowEven .CellColOdd {
	background-color: #EEE9E9;
}
.ExplorerTable .CellRowOdd .CellColEven { 
	background-color: #EEEEF2;
}
.ExplorerTable .CellRowOdd .CellColOdd {
	background-color: #FFFAFA;
}
.ExplorerTable .CellRowEven .c0 {
	background-color: #E9E9F5;
}

.ExplorerTable .CellRowOdd .c0 {
	background-color: #FFFAFA;
}
*/

.ExplorerTable .c0 {
	background-color: white;
}

.ExplorerTable .RowHeader {
	border-right: solid 1px black;
	width: 20em;
}



.ExplorerTable .header.frozen-header {
	position: absolute;
/*	border: solid 1px #aaa;*/
	border-bottom: none;
	top:0;left:0;
}

.filter_change {
	display: none;
}

.filter_changed .filter_change {
	display: block;
}

.filter_changed .axis_change {
	display: none;
}

#naics_conflict_dialog .modal-body .btn {
	width: 15em;
	white-space: normal;
	word-wrap: normal;
}

.qwi .highlight {
	background-color: #ffff00 !important;
	fill: #ffff00 !important;
}

.qwi .highlight.qwi-line {
	fill: none !important;
	stroke: #ff0 !important;
}

.qwi .selected {
	background-color: #ffff99 !important;
}

.qwi .qwi-line {
	cursor: pointer;
}

.qwi .qwi-circle {
	cursor: pointer;
}

.qwi .highlight.qwi-circle {
	fill: #ff0 !important;
}

/* TODO: Make this a webfont */
.HelpNode {
	color: blue;
	display: inline-block;
	padding-left: 16px;
	padding-top: 16px;
	background-image: url(../images/help.png);
	background-repeat: no-repeat;
	vertical-align: middle;
	background-position: 0 -1px;
}

.HelpTitle {
	background-image: url(../images/help.png);
	background-repeat: no-repeat;
	font-size: 16px;
	line-height: 16px;
	background-position: 0 0;
	padding-left: 20px;
	padding-bottom: 3px;
	margin-bottom: 3px;
	border-bottom: solid 1px #aaa;
}

/* This makes the share button look disabled 
 * without actually triggering the "disabled"
 * tag, and allows the tooltip to show up.
 *  refs: https://excensus.plan.io/issues/1430
 */
.explorer-disabled {
	cursor: default !important;
	opacity: .8; 
}

.explorer-disabled:hover {
}

.download-panel {
	display: none;
}

.quarters-help {
	font-size: 80%;
	margin-bottom: 1em;
}

.ChartEllipse {
	fill: #777;
}

.ChartButton {  /* is ChartButton dead? */
	fill: #eee;
}

.ChartButton .ChartButtonLabel {
	fill: #777;
}

.ChartButton.active .ChartButtonLabel {
	color: #3DBFF2;
	fill: #3DBFF2;
}

.ChartButton.disabled * {
	opacity: .5;
}



.ChartButton * {
	cursor: pointer;
}

.ChartButton {
	font-size: 16px;
}

.ChartButton.Disabled {
	background-color: #aaa;
}

.ChartButton.Disabled * {
	cursor: default;
}



.ChartFlags {
	cursor: pointer;
}


.ChartFlags.flag1 {
	font-family: sans-serif;
	fill: black;
	stroke: none;
}

.tick.major, .x-label {
	font-weight: bold;
}

.line-tick {
	stroke: black;
	stroke-width: 1px;
}

.line-tick.major-tick {
	stroke: black;
	stroke-width: 3px;
}

.perspective-line {
	fill: black; stroke: black;
	stroke-width: 4px;
}

.perspective-timeline {
	cursor: pointer;
	fill: white; stroke: black;
}

.perspective-timeline-disabled {
	cursor: default; 
	fill: #ccc;
	stroke: #ccc;
}

.perspective-timeline.empty {
	fill: #eee; stroke: #eee;
}

.perspective-box {
	stroke: none; 
	fill: #3D82F2;
	fill-opacity: .5;
}

.chart-limit-warning {
	fill: #F2D43D;
	background-color: #f2d43d;
	position: absolute;
	font-size: .75em;
	font-style: italic;
	border-radius: 3px;
	padding: 5px;
}

.chart-break line {
	stroke-width: 2px;
	stroke: blue;
	fill: none;
}

.y.line {
	stroke: black;
	stroke-width: 1px;
	stroke-dasharray: 1,1;
}

.closelink {
	text-align: center;
	font-style: italic;
	color: red;
	text-decoration: underline;
	cursor: pointer;
}

/* Chart rendering CSS */
.full-context .qwi-circle {
	display: none;
}



.explorer-container .legend {
	position: absolute; 
	top: 0px; 
	right: 0px; 
	display: none;
	padding: 4px;
}

.legend-desc {
	cursor: pointer;
}

tr.highlight td {
	background-color: #ff0 !important;
}

.x.axis .domain {
	display: none;
}

.tick-line {
	stroke: none;
}

.tick-line.highlight {
	stroke: #eee;
	stroke-width: 3px;
}


.fake-quarter {
	fill: red;
	opacity: .05;
}


#chart_container .content {
	overflow: hidden;
}

.bouncing-ball {
	fill: #7AAFE2;
	stroke: #7AAFE2;
}

.waiting-rect {
	fill: #aaa;
	opacity: .5;
}

/*
 * Mapping CSS
 */

.geography {
	stroke: black; /*#aaa;*/
	fill: #aaa;

	/*vector-effect: non-scaling-stroke;*/
	/*stroke-width: .1;*/
	/*stroke-width: .5;*/
}

.geography.q0,.geography.q1,.geography.q2,
.geography.q3,.geography.q4,.geography.q5,
.geography.q6 {
	stroke: black;
	stroke-width: 1.25;
}


.q0 { fill:rgb(247,251,255); }
.q1 { fill:rgb(222,235,247); }
.q2 { fill:rgb(198,219,239); }
.q3 { fill:rgb(158,202,225); }
.q4 { fill:rgb(107,174,214); }
.q5 { fill:rgb(66,146,198); }
.q6 { fill:rgb(33,113,181); }
.q7 { fill:rgb(8,81,156); }
.q8 { fill:rgb(8,48,107); }

.q1.negative { fill:rgb(153,0,13); }
.q2.negative { fill:rgb(203,24,29); }
.q3.negative { fill:rgb(239,59,44); }
.q4.negative { fill:rgb(251,106,74); }
.q5.negative { fill:rgb(252,146,114); }
.q6.negative { fill:rgb(252,187,161); }
.q7.negative { fill:rgb(255,220,217); }

.q7.negative { fill:rgb(153,0,13); }
.q6.negative { fill:rgb(203,24,29); }
.q5.negative { fill:rgb(239,59,44); }
.q4.negative { fill:rgb(251,106,74); }
.q3.negative { fill:rgb(252,146,114); }
.q2.negative { fill:rgb(252,187,161); }
.q1.negative { fill:rgb(255,220,217); }

.legend-chip.qNone { background-color: #aaa; }
.legend-chip.q0 { background-color:rgb(247,251,255); }
.legend-chip.q1 { background-color:rgb(222,235,247); }
.legend-chip.q2 { background-color:rgb(198,219,239); }
.legend-chip.q3 { background-color:rgb(158,202,225); }
.legend-chip.q4 { background-color:rgb(107,174,214); }
.legend-chip.q5 { background-color:rgb(66,146,198); }
.legend-chip.q6 { background-color:rgb(33,113,181); }
.legend-chip.q7 { background-color:rgb(8,81,156); }
.legend-chip.q8 { background-color:rgb(8,48,107); }

.legend-chip.q7.negative { background-color:rgb(153,0,13); }
.legend-chip.q6.negative { background-color:rgb(203,24,29); }
.legend-chip.q5.negative { background-color:rgb(239,59,44); }
.legend-chip.q4.negative { background-color:rgb(251,106,74); }
.legend-chip.q3.negative { background-color:rgb(252,146,114); }
.legend-chip.q2.negative { background-color:rgb(252,187,161); }
.legend-chip.q1.negative { background-color:rgb(254,229,217); }



.fa.fa-twitter {
	color: #4099ff;
}

.fa.fa-facebook-square {
	color: #3b5998;
}

.qwi-map-chart svg {
	background-color: #BBD3F0;
}

.state-fill {
	fill: #F0E8E1;
	stroke: #F0E8E1;
/*	vector-effect: non-scaling-stroke;*/
}

.state-fill.current {
	stroke: #333;
}

.ocean-fill {
	fill: #BBD3F0;
	stroke: #BBD3F0;
/*	vector-effect: non-scaling-stroke;*/
}

div.in-chart-legend, div.popup-contents {
	position: absolute;
	background-color: rgba(255,255,255,0.8);
	border-radius: 5px;
	padding: 3px;
}

div.in-chart-legend {
	bottom: 15px;
	right: 5px;
	display: none;
}

div.in-chart-legend .legend-title {
	font-weight: bold;
	font-size: 12px;
	text-align: center;
}

.legend-entry {
	line-height: 1em;
	padding-bottom: .1em;
}

div.in-chart-legend .legend-chip {
	vertical-align: bottom;
}

.text-info a {
	/*color: red;*/
	font-weight: bold;
	text-decoration: underline;
}

.btn-visual {
	display: inline-block;
	line-height: 1px;
}

.btn-visual .subtitle {
	display: inline-block;
	font-size: 8px;
	padding-top: 2px;
	font-style: italic;
	line-height: 1;
}

.empty-state {
	stroke: #ccc;
	fill: #F0E8E1;
}

.map-backer {
	fill: #BBD3F0;
}

.national-quarters-warning,.national-only {
	display: none;
}

.national .national-quarters-warning {
	padding-top: 1em;
	display: block;
}

.national .national-only {
	display: block;
}

.national tr.national-only {
	display: table-row;
}

.national .national-hide {
	display: none;
}

/*
 * Use CSS to toggle the display of various
 *  parts of the dialogs.
 */
.list-dialog {
	display: block;
}

.quarters-dialog,.quarters-help,.year-help {
	display: none;
}

.axis-quarter .quarters-dialog,
.axis-quarter .quarters-help {
	display: block;
}

.axis-quarter .list-dialog {
	display: none;
}

.axis-year .year-help {
	display: block;
}

.axis-year .searchbox {
	display: none;
}

.privacy-notice {
	font-size: 9pt;
	padding-top: .5em;
	padding-bottom: .5em;
}
