.charts .chartcontainer {
	/*border:1px solid black;
	background-color:black;*/
	height:220px;
	padding: 5px 15px 5px 5px;
}

.charts.row {
	padding-top: 5px;
	padding-bottom: 5px;
}

.charts.row h3 {
	border-top: 1px solid #eee;
	padding-left: 55px;
	padding-top: 25px;
	margin-top: 0px;
	margin-bottom: 15px;
}

.charts .charts.row:not(.hidden):first-of-type h3 {
	border-top-width: 0px;
}

#charts .warning-feedback {
    padding: 30px 0px 10px 0px;
    border-bottom: 1px solid #daa;
    color: #d33;
    margin-left: 55px;
    margin-right: 55px;
}

span.stock-groups-cat-header {
	display: block;
	padding-top: 10px; 
	padding-left:10px;
}

ul.stock-group-categories > li {
	clear: both;
	margin:0px 0px 0px 0px;
	padding:0px;
}

ul.stock-groups {
	clear: both;
	margin:0px 0px 0px 0px;
	padding:0px;
}

ul.stock-groups li {
	float:left;
	width:28%;
	height:20px;
	padding-top:5px;
	padding-left:2%;
	overflow:hidden;
}

ul.stock-groups input {
	width:20px;
	margin:0px;
}

ul.stock-groups label {
	display:inline;
	font-size: 0.9em;
	font-weight: normal;
}

br.clearer {
	clear:both;
}

#dashboard-toggle-viewport {
	height:150px;
}

.tab-content {
	background-color: white;
	margin:0px;
	padding-top:20px;

	border-width: 0px 1px 1px 1px;
	border-color:#ddd;
	border-style:solid;
}
.nav.nav-tabs {
	margin-bottom:0px;
	font-size:18px;
	font-weight: bold;
}

.section-dashboard h1 {
	float: left;
	padding: 0px;
	margin: 0px;
	font-size: 28px;
	height: 25px;
	padding-top: 15px;
}

#dashboard-toggle-viewport p {
	padding-left: 15px;
}

.minimize {
	clear:both;
	height: 40px;
	text-align: center;
	margin:0px 15px;
}
.minimize hr {
	position:relative;
	top:60%;
	height:1px;
}
.minimize a {
	position:relative;
}

form.search {
	padding-left:10px;
	margin:0px;
}

#tableview {
	padding:20px;
}

.vertical-text, #tableview thead th span {
	/* Thanks, Scott Gale */
	color:#333;
	border:0px solid red;
	-ms-writing-mode:tb-rl;
	-webkit-writing-mode:vertical-rl;
	-moz-writing-mode:vertical-rl;
	-o-transform: rotate(90deg);
	writing-mode:vertical-rl;
	white-space:nowrap;
	display:block;
	bottom:0;
	width:20px;
	height:20px;
	font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
	font-size:12px;
	font-weight:normal;
	text-shadow: 0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,
	0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,
	0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff;
}

#tableview thead th {
	padding-bottom: 100px;
	background-color: white;
	border-bottom: 1px solid #333;
	overflow:hidden;
	cursor: default;
	z-index:1000;
	position:relative;
}

thead.tableFloatingHeader th {
	z-index: 1001 !important;
}

#tableview thead th:hover {
	overflow:visible;
	border-bottom: 1px solid #fff;
}

#tableview thead th {
	padding-top: 10px;
}

#tableview tr th {
	text-align: left;
	font-size: 12px;
	font-weight: normal;
}

.loading .show-when-loaded {
	display:none;
}

.loading .show-when-loading {
	display:block;
}

.show-when-loading {
	display:none;
}

#splash-screen {
	padding:100px 0;
}

#tableview .table th.first {
	font-weight: normal;
	font-size: 12px;
	width:50px;
	padding-left: 10px;
}

#tableview .table th.first-and-only {
	/*font-weight: bold;*/
	font-size: 14px;
	border-top: 1px solid #333;
	padding-left: 10px;
	border-bottom: 1px solid #ccc;
	font-weight: bold;
}

#tableview .table tr td {
	font-size:12px;
	color:#000;
	text-align: center;
	vertical-align: center;
}

#tableview .table .val-verysmall {
	background-color: #93C47D;
}

#tableview .table .val-small {
	background-color: #FFD966;
}

#tableview .table .val-medium {
	background-color: #E69138;
}

#tableview .table .val-large {
	background-color: #CC0000;
	color:#fff;
}

#tableview .table .val-verylarge {
	background-color: #660000;
	color:#fff;
}

#tableview .table .error-in-val-NaN {
	background-color: #f0f0f0;
}

#tableview .table tr th.first span,
#tableview .table tr th.first-and-only span {
	line-height: 30px;
	height:30px;
	overflow: hidden;
	display:block;
}

#tableview .table tr th.first span {
	width:200px;
}
#tableview .table tr th.first-and-only span {
}

table.key {
	float:right;
	margin-bottom: 20px;
	width:40% !important;
}

#tableview .table.key tr td{
	text-align: left;
}

#tableview .table.key .key-cell{
	border-right:1px solid #eee;
}


ul.nav-tabs li small{
	font-size: 0.7em;
	color:#999;
}

.nav>li>a:hover, .nav>li>a:focus{
	background-color: #eee;
}

.nav-tabs>li>a:hover, .nav-tabs>li>a:focus {
border-color: #ccc #ccc #e0e0e0;
}

#tableview h4 {
	padding-bottom: 5px;
}

#dashboard-toggle-viewport h4 {
	padding-left: 15px;
	padding-bottom: 5px;
}

.icon-dashboard {
	background-image: url(/images/dashboard_glyphs.png);
	height:15px;
	width:15px;
	line-height: 15px;
	background-position: -16px -16px;
}

.icon-dashboard.current {
	background-position: 0px 0px;
}

.icon-dashboard.map {
	background-position: -16px -16px;
}

.icon-dashboard.trend {
	background-position: -16px 0px;
}

.chart-toolbar a span {
	display:none;
}

.chart-toolbar {
	padding-bottom: 20px;
	text-align: center;
	height:20px;
}

.chart-toolbar a {
	padding:0px 10px 0px 0px;
}

.chart-toolbar a:hover span {
	/*display:inline;*/
}

.chart-toolbar a, .chart-toolbar a:hover {
	text-decoration: none;
	color:black;
}

.chart .chart-toolbar a {
	display:none;
}

.chart:hover .chart-toolbar a {
	display:inline;
}
.stock-groups-popup {
	background-color: #001A66;
	border: 1px solid #001A66;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
	border-radius: 5px;
	/*padding: 1px;*/
	max-width: 50%;
	position: absolute;
	z-index: 1001;
	overflow: hidden;
}

ul.stock-group-categories {
	margin:0px 0px 0px 0px;
	padding:0px;
	list-style: none;
	height:140px;
	overflow: auto;
	background-color: white;
	border-radius: 5px;
	padding-bottom: 10px;
}

.stock-groups-popup form input.filter.search, .stock-groups-popup form .input-group-addon {
	color:white;
	background-color: #696999;
	border-color:black;
}

.stock-groups-popup form input.filter.search::-webkit-input-placeholder {
   color:rgba(255,255,255,0.7);
}

.stock-groups-popup form input.filter.search:-moz-placeholder { /* Firefox 18- */
   color:rgba(255,255,255,0.7);  
}

.stock-groups-popup form input.filter.search::-moz-placeholder {  /* Firefox 19+ */
   color:rgba(255,255,255,0.7);  
}

.stock-groups-popup form input.filter.search:-ms-input-placeholder {  
   color:rgba(255,255,255,0.7);  
}


.stock-groups-popup form input.filter.search {
	border-left-width: 0px;
}
.stock-groups-popup form .input-group-addon  {
	padding-right: 5px;
}
.stock-groups-popup form{
	padding:3px;
	color:white;
}

.stock-groups-popup .checkbox-select-all {
	margin-left:15px;
}

.stock-groups-popup .form-group-search {
	width: 40%;
}
.stock-groups-popup .form-group-search input:focus {
	box-shadow: none;
}
.stock-groups-popup-trigger {
	position:absolute;
}

.tab-pane>.alert {
	margin:0 20px 20px 20px;
}


/****** 2016(-ish) DASHBOARD ********/

.dashboard-matrix {
	margin-bottom: 0px;
}

.dashboard-matrix .dynamic-value {
	transition: background-color 0.5s;
	font-size: 0.9em;
	text-align: center;
	min-width: 50px;
}

.dashboard-matrix .no-value {
	background-color: rgba(0,0,0,0.07);
}

.dashboard-matrix .custom-area-category-title th {
    /* font-weight: bold; */
    font-size: 14px;
    border-top: 1px solid #333;
    padding-left: 10px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    text-align: left;
}

.dashboard-matrix tbody:first-of-type .custom-area-category-title th {
	border-top:0px;
}

.dashboard-matrix .custom-area-category-title th span {
    line-height: 30px;
    height: 30px;
    overflow: hidden;
    display: block;
}

.dashboard-matrix tbody.custom-area-category {
	border: none;
}

.dashboard-matrix tr.custom-area th {
	font-weight: normal;
    font-size: 12px;
    min-width: 200px;
    padding-left: 10px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.dashboard-matrix thead span {
    color: #333;
    border: 0px solid red;
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    -moz-writing-mode: vertical-rl;
    -o-transform: rotate(90deg);
    writing-mode: vertical-rl;
    white-space: nowrap;
    display: block;
    bottom: 0;
    width: 20px;
    height: 20px;
    font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: normal;
    text-shadow: 0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,
 0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,
 0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff,0px 0px 10px #fff;
}

.dashboard-matrix>thead>tr>th {
    padding-top: 10px;
    padding-bottom: 100px !important;
    background-color: white;
    border-bottom: 2px solid #333;
    overflow: hidden;
    cursor: default;
    z-index: 900;
    position: relative;
    border-top-width: 0px;
    transition:border-bottom-color 0.2s;
}

.dashboard-matrix thead th.series {
	border-bottom-color: #4DA7FF;
}
.dashboard-matrix thead th.dataset {
	border-bottom-color: #FFA64D;
}

.dashboard-matrix thead th.series:hover, .dashboard-matrix thead th.dataset:hover {
    overflow: visible;
    border-bottom-color: rgba(0,0,0,0);
}

.dashboard-matrix table>tbody>tr>td {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dashboard-matrix>thead>tr>th.legend {
	padding-bottom: 8px !important;
	border-right: 1px solid #ddd;
}

.dashboard-matrix .legend thead {
	display: none;
}

.dashboard-matrix .legend table {
	font-size: 0.8em;
	font-weight: normal;
	height: 125px;
}

.dashboard-matrix .legend table td {
	padding:3px;
}

.dashboard-matrix .legend table td.color {
	padding: 0px;
	border:6px solid white;
	width:30px;
	height:20px;
	border-left-width: 2px;
}

.dashboard-toolbar {
	background-color: #eee;
	/*background-color: #001A66;*/
	color: #333;
	border-radius: 5px 5px 0px 0px;
	padding: 12px 10px 0px 10px;
	border: 1px solid rgba(0,0,0,0.09);
}

.dashboard-toolbar ul.nav.nav-tabs {
	border-bottom: rgba(0,0,0,0);
}

.dashboard-toolbar .nav-tabs>li>a {
	/*border-width:0px !important;*/
	color:inherit;
}

.dashboard-toolbar .nav-tabs>li.active>a, .dashboard-toolbar .nav-tabs>li>a:hover {
	color:#333;
}

.dashboard-toolbar .nav-tabs>li>a {
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.dashboard-toolbar .nav-tabs>li.active>a, 
.dashboard-toolbar .nav-tabs>li.active>a:hover, 
.dashboard-toolbar .nav-tabs>li.active>a:focus {
	border-color:rgba(0,0,0,0.1), rgba(0,0,0,0.1), rgba(0,0,0,0), rgba(0,0,0,0.1);
	background-color: white;
}

.dashboard-toolbar .nav-tabs>li>a:hover,
.dashboard-toolbar .nav-tabs>li>a:focus {
	background-color: rgba(255,255,255,0.5);
}

.dashboard-toolbar .nav-tabs>li>a:active {
	background-color: rgba(255,255,255,0.7);
	transition: background-color 0s, border-color 0s, color 0s;
}

.section-dashboard-content .tab-content {
	padding-top: 0px;
}

.section-dashboard-content #matrix {
	overflow-x: auto;
	
	/* Opera doesn't support this in the shorthand */
	background-attachment: local, local, scroll, scroll;
}

.dashboard-matrix tr.custom-area td {
    border-top-color: rgba(0,0,0,0.05);
}

#charts .loading, #matrix .loading {
	padding:20px;
}

.legend .explanation, .legend:hover table {
	display: none;
}

.legend {
	transition: height 0.2s;
	vertical-align: top;
}

.legend table {
	margin-top:-4px;
	margin-bottom: -4px;
}

.legend:hover .explanation {
	display: block;
	font-size: 0.8em;
	font-weight: normal;
	line-height: 1.6em;
	height:113px;
	margin-top: 0px;
	padding-top:0px;
	margin-bottom: 0px;
	padding-bottom:0px;
	max-width: 190px;
}