/*
 * © Copyright Commonwealth of Australia 2020, Bureau of Meteorology (ABN 92 637 533 532)
 *
 * CliDE is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * CliDE is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with CliDE.  If not, see <http://www.gnu.org/licenses/>.
 *
 * See  "/license/gpl-3.0.txt" for the full GPL license text.
 *
 */

/* https://coolors.co/60cae4-5e87a2-ffffff-e8ebe4-d2d5dd */

body {
	background-image: url(../images/PCCSP_bg_colors.jpg);
	background-repeat: repeat-x;
	background-attachment: scroll;
	background-position: 0 18px;
	overflow: hidden;
}

body.user-is-logged-in {
	background-position: 0 -170px; /* initial value - overwritten */
}

body.waiting, body.waiting * {
  cursor: wait !important;
}

body.modal-open {
	padding-right: 0 !important; /* prevent jump / scrollbar on modal open */
}

ul.nav li.dropdown:hover > ul.dropdown-menu {
	display: block;
}
ul.nav a:hover {
	background-color: #eee !important;
}

body .clide-main.container-fluid {
	padding-top: 80px;
	transition: 0.4s;
}

body.user-is-logged-in .clide-main.container-fluid {
	padding-top: 55px;
}

body .clide-main.banner-space {
	height: 80px;
	padding: 4px;
	transition: 0.4s;
	border: 0;
	vertical-align: middle;
	text-align: left;
	overflow: hidden;
	background-color: #E8EBE4;
}

body.user-is-logged-in .clide-main.banner-space {
	height: 0px;
}

body .clide-main.navbar {
	top: 80px;
	transition: 0.4s;
	border-top-width: 1px;
	border-bottom-width: 1px;
}

body.user-is-logged-in .clide-main.navbar {
	top: 0px;
}

div#accordionMenuAndContent {
	display:flex;
}

div#accordionMenuAndContent div#leftMenu {
	width: 16%;
	min-width: 230px;
	padding-left: 15px;
}

div#accordionMenuAndContent div#subPageMain {
	width: 84%;
	padding-left: 15px;
	padding-right: 15px;
}

.navbar-default .navbar-brand {
	color: #27425F;
}

.navbar button#dropdownMenu1 {
	padding-bottom: 6px;
	padding-top: 6px;
}

div.alert {
	text-align: center;
	margin-bottom: 10px; /* was 20px */
}

div.station-no-data {
	display: inline-block;
	padding: 5px 10px 5px;
	margin-top: -5px; /* reverse effects of enclosing .help-block */
	margin-bottom: 0;
}

li.list-group-item {
	padding-top: 5px;
	padding-bottom: 5px;
}

ul.list-group {
	margin-bottom: 0px;
}

div.key-field-fg {
	break-inside: avoid-column;
}

.input-group-addon-tight {
	padding-left: 8px;
	padding-right: 8px;
}

/* .input-group input, */
/* .input-group select, */
.input-group .form-control {
	padding-left: 4px;
	padding-right: 4px;
}

.table-condensed-smash > thead > tr > th,
.table-condensed-smash > tbody > tr > th,
.table-condensed-smash > tfoot > tr > th,
.table-condensed-smash > thead > tr > td,
.table-condensed-smash > tbody > tr > td,
.table-condensed-smash > tfoot > tr > td {
	padding: 2px;
}

.table-condensed-smash .btn { padding: 2px; margin: 2px; }
.table-condensed-smash tr { margin-top: 1px; margin-bottom: 0px; }

.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
	background-color: #d2f0ff;	/* #f5f5f5; */
}

th.right, td.right {
	text-align: right;
	margin-right: 1em;
}

th.center, td.center {
	text-align: center;
	margin-right: 1em;
}

tr.header, td.header {
	font-weight: bold;
}

div.qa-select select {
	width: 60px;
}

.clide-label-faint-text {
	color: #bbbbbb;
}

.clide-env-label {
	position: absolute;
	top: 2px;
	left: 10px;
	z-index: 2000; /* navbar seems to be between 1000 and 1100 */
}

.clide-env-label h3 {
	margin-top: 8px;
}


.clide-data-input-disabled {
	position: relative;
}

.clide-data-input-disabled:after {
	content: '';
	z-index: 10;
	display: block;
	position: absolute;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.vspacer2 { height: 2px; width: 100%; font-size: 0; margin: 0; padding: 0; border: 0; display: block; }
.vspacer5 { height: 5px; width: 100%; font-size: 0; margin: 0; padding: 0; border: 0; display: block; }
.vspacer10 { height: 10px; width: 100%; font-size: 0; margin: 0; padding: 0; border: 0; display: block; }
.vspacer20 { height: 20px; width: 100%; font-size: 0; margin: 0; padding: 0; border: 0; display: block; }

.profile-div { padding-left: 4px; padding-right: 4px; padding-top: 4px; }
.profile-div .panel { margin: 0px; }
.profile-div .panel-heading { text-align: center; padding: 2px; }
.profile-div .panel-body { padding: 2px; }
.profile-div select { overflow: hidden; overflow-y: auto; padding: 2px; }

.station-label { margin-top: 0px; margin-bottom: 0px; margin-left:15px; }

div.day-tt { width: 39px; padding: 4px; }

/* .btn-file from http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/ */
.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type=file] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  filter: alpha(opacity=0);
  opacity: 0;
  cursor: inherit;
  display: block;
}

.btn-graph-filter {
	padding: 5px;
	margin: 1px;
}

.ingest-file-preview-table td {
	white-space: nowrap;
}

div.clide-graph-page { height: calc(100% - 20px); }
div.clide-graph-page div.panel-body { height: calc(100% - 26px); } /* 100% less height of siblings */
div.clide-graph-page div.tab-content { height: calc(100% - 62px); overflow-x: hidden; overflow-y: auto; } /* 100% less height of siblings */
div.clide-graph-page div#graph_output { height: 100%; }
div.clide-graph-page div#graph { height: 100%; width: 100%; }

div.chart-wind-rose {
	height: 400px;
	margin: 0 auto;
}

select.placeholder {
	color: #999;
}
select.placeholder option {
	color: black;
}
select.placeholder option:first-child {
	color: #999;
}

.accordion .btn-primary {
	height: 40px;
}
/* darken active btn-primary from bootstrap theme background-color: #265a88; border-color: #245580; */
.accordion .btn-primary:active,
.accordion .btn-primary.active {
	background-color: #1b3f5f; /* original * 0.7 */
/*	border-color: #245580; */
}
.accordion a:link {
	text-decoration: none;
}
.accordion a:visited {
	text-decoration: none;
}
.accordion a:hover {
	text-decoration: none;
}
.accordion a:active {
	text-decoration: none;
}
.accordion .panel-heading {
	padding-right: 20px;
	position: relative;
}
.accordion .panel-heading .accordion-toggle {
	position: static;
}
.accordion .panel-heading .accordion-toggle:after {
	font-family: 'Glyphicons Halflings';  /* essential for enabling glyphicon */
	content: "\e114";
	float: right;
	position: absolute;
	bottom: 12px;
	right: 10px;
	color: lightblue;
}
.accordion .panel-heading .accordion-toggle.collapsed:after {
	content: "\e080";
}
.accordion .panel-heading .panel-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.accordion .panel-heading .panel-title i.fa {
	margin-bottom: 2px;
	margin-top: 3px;
}
.accordion button {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: left;
}

.modal {
	text-align: center;
	padding: 0!important;
}

.modal:before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -4px;
}

.modal-dialog {
	display: inline-block;
	text-align: left;
	vertical-align: middle;
}

/**** .ten-columns allowing 5 or 10 columns c.f. .col-md-5ths  ****/
@media (min-width: 768px){
	.ten-columns .col-sm-1  {
		width: 10%;
	}
	.ten-columns .col-sm-2  {
		width: 20%;
	}
}
@media (min-width: 992px) {
	.ten-columns .col-md-1 {
		width: 10%;
	}
	.ten-columns .col-md-2 {
		width: 20%;
	}
}
@media (min-width: 1200px) {
	.ten-columns .col-lg-1 {
		width: 10%;
	}
	.ten-columns .col-lg-2 {
		width: 20%;
	}
}
#KeyMsg {
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
    background-color: #d56558;
}

#page_key_entry_profiles #noProfiles {
	margin: 30px 100px;
}
#page_key_entry_profiles #filterOuterPanel {
	margin-bottom: 0;
}
#page_key_entry_profiles #profilesTable {
}
#page_key_entry_profiles #newDisabled,
#page_key_entry_profiles #profilesTable table input[type='checkbox']{
	margin: 10px;
}
#page_key_entry_profiles #profilesTable table {
	margin-bottom: 0;
}
#page_key_entry_profiles #profilesTable tr {
	width: 100%;
}
#page_key_entry_profiles #profilesTable thead {
	display: block;
}
#page_key_entry_profiles #profilesTable thead tr {
}
#page_key_entry_profiles #profilesTable tbody {
	display: block;
	overflow: auto;
	height:calc(100vh - 530px);  /* TODO find out height of 'Filter' panel instead of 530px */
}
#page_key_entry_profiles #profilesTable tbody tr {
}
#page_key_entry_profiles #profilesTable table th,
#page_key_entry_profiles #profilesTable table td {
	width: 250px;
}
#page_key_entry_profiles #profilesTable table th:nth-child(1),
#page_key_entry_profiles #profilesTable table td:nth-child(1) {
	width: 25%;
}

/* Audit history table */
#auditHistoryTable table tbody {
	display: block;
	height: calc(100vh - 500px);
	width: 100%;
	overflow-y: auto;
}
#auditHistoryTable table thead,
#auditHistoryTable tbody tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}
#auditHistoryTable table th:nth-child(4),
#auditHistoryTable table td:nth-child(4) {
	width: 50%;
}

/* Equipment table */
#equipmentTypeTable table tbody {
	display: block;
	height: calc(100vh - 500px);
	width: 100%;
	overflow-y: auto;
}
#equipmentTypeTable table thead,
#equipmentTypeTable tbody tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}
#equipmentTypeTable table th:nth-child(2),
#equipmentTypeTable table td:nth-child(2) {
	width: 15%;
}
#equipmentTypeTable table th:nth-child(3),
#equipmentTypeTable table td:nth-child(3) {
	width: 45%;
}
#equipmentTypeTable table th:nth-child(4),
#equipmentTypeTable table td:nth-child(4) {
	width: 50px;
}

/* NMS Lmitis */
#elemMetadata table {
	width: 100%;
}
#elemMetadata table thead,
#elemMetadata tbody tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}
#elemMetadata tbody {
	display: block;
	height: calc(100vh - 250px);
	width: 100%;
	overflow-y: auto;
}
#elemMetadata table tbody td:nth-child(1) {
	font-weight: bold;
}
#elemMetadata table th:nth-child(1),
#elemMetadata table td:nth-child(1) {
	width: 20%;
}
#elemMetadata table th:nth-child(2),
#elemMetadata table td:nth-child(2) {
	width: 30%;
}

.button-group-vertical {
	display: flex;
	flex-direction: column;
}

.button-group-vertical button {
	margin: 8px;
	width: 90px;
}

.button-group-vertical.button-group-vertical-wider button {
	width: 120px;
}

#noaa_sections .tooltip-inner {
	max-width: 500px;
}

#noaa_sections table {
	margin-bottom: 0;
	font-size: 90%;
}

#noaa_sections table#coded_msg {
	background-color: linen;
}

#noaa_sections table#coded_msg th,
#noaa_sections table#coded_msg td,
#noaa_sections table#noaa_meta th,
#noaa_sections table#noaa_meta td {
	border-width: 0;
}

#noaa_sections table#coded_msg th:first-child,
#noaa_sections table#noaa_meta th:first-child {
	width: 80px;
}

#noaa_sections table#coded_msg td {
	white-space: pre-wrap;
	word-break: break-all;
}


#noaa_sections table#noaa_meta {
	/*width: 600px;*/
	/*background-color: linen;*/
}

#noaa_sections table#noaa_meta th {
	white-space: nowrap;
	width: 1%;
}

#noaa_sections table tr {
}

#noaa_sections table th,
#noaa_sections table td {
	overflow: auto;
	white-space: normal;
}

#noaa_sections table td span.badge {
	opacity: 0.75;
}

#noaa_sections table th.se,
#noaa_sections table td.se {
	width: 80px;
	max-width: 80px;
	color: #777;
}

#noaa_sections table th.el,
#noaa_sections table td.el {
	min-width: 170px;
	width: 170px;
}

#noaa_sections table th.va,
#noaa_sections table td.va {
	width: 60%;
}

#noaa_sections table th.pe,
#noaa_sections table td.pe {
	min-width: 65px;
	max-width: 65px;
	width: 65px;
}

#noaa_sections table th.qc,
#noaa_sections table td.qc {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #777;
	min-width: 300px;
	max-width: 300px;
	width: 300px;
}

div.noaa-data span.badge.info {
	background-color: #5bc0de; /* bootstrap 3 info */
}

div.noaa-data span.badge.success {
	background-color: #5cb85c; /* bootstrap 3 success */
}

div.noaa-data span.badge.warning {
	background-color: #f0ad4e; /* bootstrap 3 warning */
}

div.noaa-data span.badge.danger {
	background-color: #d9534f; /* bootstrap 3 danger */
}

div.noaa-data span.badge.user-modified {
	background-color: lightsalmon;
	color: lightslategrey;
}

div.noaa-data div#column_def {
	column-count: 2;
	column-gap: 20px;
}

div.noaa-data div#column_def > * {
	break-inside: avoid;
}

div.noaa-data div#column_def.sparse {
	column-count: 1;
	width: 50%
}

div.noaa-data div#column_def.sparse > div > div.form-group { /* TODO - is this rule effective? */
	margin-bottom: 10px;
}

div.noaa-data div.form-group div.badges {
	padding: 0;
	margin-left: -3px;
	margin-right: -3px;
	margin-top: 5px;
}

div.noaa-data div.form-group.form-group-xs div.badges {
	margin-top: 1px;
}

div.noaa-data div.badges span.badge {
	margin-right: 2px;
}

label.clide-date {
	color: #2b669a;
}

.wind-rose-legend-title {
	display:inline-block;
	text-align: right;
	width: 72px;
}
.wind-rose-legend-value {
	display:inline-block;
	text-align: right;
	width: 40px;
}

table.clide-wind-freq {
	font-size: smaller;
	margin-bottom: 30px;
}

table.clide-wind-freq {
	table-layout: fixed;
}

table.clide-wind-freq td,
table.clide-wind-freq th {
	text-align: right;
}

div.clide-wind-freq-no-data,
div.clide-rain-intensity-no-data {
	text-align: center;
	font-size: 18px;
	color: #f0ad4e;
	margin-bottom: 100px;
}

table.clide-wind-freq td.grand-total {
	border-top: 5px double #666;
}

#page_rainfall_intensity table {
	margin: 0 auto;
	max-width: 1250px;
	table-layout: fixed;
}

#page_rainfall_intensity table th {
	text-align: center;
}

#page_rainfall_intensity table th:first-child {
	padding-top: 16px;
	text-align: left;
	width: 16%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#page_rainfall_intensity table td {
	text-align: right;
}

#page_rainfall_intensity table td span.date {
	color: #999;
	font-size: smaller;
}

#date_shift div.btn-group {
	display: flex;
	/*height: 18px;*/
}
#date_shift div.btn-group button {
	flex: 1;
	border: 1px solid #ccc;
	color: #555;
	background-color: #eee;
}

div.home-logos {
	flex: 1 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
div.home-logos .by {
	color: #777;
	font-weight: bold;
	font-size: 15px;
	margin-bottom: 10px;
}
div.home-logos .home-logos-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 120px;
}
div.home-logos .home-logos-row img {
	max-height: 100%;
	align-self: center;
}
div.home-logos .home-logos-row img.smaller {
	max-height: 60%;
}
div.home-logos .home-logos-row .dummy {
	min-width: 280px;
}

#page_aws_aggregation_parameters table#groups .tooltip-inner {
	max-width: 500px;
	text-align: left;
}

#page_aws_aggregation_parameters table#groups select {
	width: auto;
	margin: auto;
}

#page_aws_aggregation_parameters table#groups tr th:nth-child(1) {
	width: 200px;
}

#page_aws_aggregation_parameters table#groups tr th:nth-child(2) {
	max-width: 250px;
	text-align: center;
}

#page_aws_aggregation_parameters table#groups tr th:nth-child(3) {
	width: 140px;
	text-align: center;
}

#page_aws_aggregation_parameters table#groups tr td:nth-child(3) {
	padding-left: 36px;
}

#page_aws_aggregation_parameters #progress_table {
	width: 100%;
}

#page_aws_aggregation_parameters #progress_table tr:nth-child(2) th,
#page_aws_aggregation_parameters #progress_table tr:nth-child(1) th {
	text-align: center;
}

#page_aws_aggregation_parameters #progress_table td {
	text-align: right;
}

#page_aws_aggregation_parameters #progress_table td:nth-child(5),
#page_aws_aggregation_parameters #progress_table td:nth-child(4) {
	text-align: center;
	font-size: smaller;
}

#page_aws_aggregation_parameters i.clide-agg-success {
	color: forestgreen;
	margin-left: 8px;

}

#page_aws_aggregation_parameters i.clide-agg-warning {
	color: darkorange;
	margin-left: 8px;
}

.clide-data-input.kde-2021 .unit-select-link {
	text-align: left;
	padding-left: 4px;
}

.clide-data-input.kde-2021 .input-group input {
	text-align: right;
}

.clide-product-data-table table {
	width: 100%;
	table-layout: fixed;
	/* !important must be used in background-color rules below to override bootstrap.css rules for @media print */
	-webkit-print-color-adjust: exact;
	color-adjust: exact;
}

.clide-product-data-table table.table-hover > tbody > tr:hover {
	background-color: #d8d8d8;
}

.clide-product-data-table table tr.head-across td {
	background-color: rgba(204, 221, 204, 0.3) !important;
	padding-right: 5px;
}

.clide-product-data-table table tr td {
	text-align: right;
	padding: 0;
}

.clide-product-data-table table tr td.head-down {
	background-color: rgba(204, 204, 221, 0.3) !important;
	padding-right: 5px;
	vertical-align: top;
}

.clide-product-data-table table tr td div {
	height: 20px;
	padding-right: 5px;
}

.clide-product-data-table .rain { background-color: rgba(147, 234, 255, 0.3) !important; }
.clide-product-data-table .max  { background-color: rgba(236, 155, 155, 0.3) !important; }
.clide-product-data-table .min  { background-color: rgba(157, 206, 255, 0.4) !important; }

.clide-product-data-table div.legend {
	text-align: center;
	border-top: 1px solid rgb(221,221,221);
}

.clide-product-data-table p.footnote {
	color: #7f7f7f;
	font-size: 75%;
	padding-left: 50px;
	padding-right: 50px;
}

span.badge.qa-00,
span.badge.qa-01 {
	background-color: black;
}

span.badge.qa-10,
span.badge.qa-20,
span.badge.qa-30 {
	background-color: seagreen;
}

span.badge.qa-40 {
	background-color: darkgoldenrod;
}

span.badge.qa-50 {
	background-color: darkorange;
}

span.badge.qa-60 {
	background-color: purple;
}

span.badge.qa-70,
span.badge.qa-80,
span.badge.qa-90 {
	background-color: darkred;
}

/* #page_data_viewer */ legend {
	margin-bottom: 8px;
}

#page_kde_rainfall #newRainTip {
	width: 700px;
	margin-left: auto;
	margin-right: auto;
}

#page_kde_rainfall table#tblRain {
	/*table-layout: fixed;*/
	max-width: 900px;
	margin-right: auto;
	margin-left: auto;
}

#page_kde_rainfall table#tblRain tbody td {
	padding-left: 10px;
	padding-right: 10px;
}

#page_kde_rainfall table#tblRain th:nth-child(1),
#page_kde_rainfall table#tblRain td:nth-child(1) {
	text-align: right;
	width: 50px;
	min-width: 50px;
}

#page_kde_rainfall table#tblRain th:nth-child(2),
#page_kde_rainfall table#tblRain td:nth-child(2) {
	text-align: right;
	width: 80px;
	min-width: 80px;
}

#page_kde_rainfall table#tblRain th:nth-child(3),
#page_kde_rainfall table#tblRain td:nth-child(3) {
	text-align: center;
	width: 50px;
	min-width: 50px;
	max-width: 50px;
}

#page_kde_rainfall table#tblRain th:nth-child(4),
#page_kde_rainfall table#tblRain td:nth-child(4) {
	text-align: right;
	width: 50px;
	min-width: 50px;
}

#page_kde_rainfall table#tblRain th:nth-child(5),
#page_kde_rainfall table#tblRain td:nth-child(5) {
	text-align: center;
	width: 80px;
	min-width: 80px;
}

#page_kde_rainfall table#tblRain th:nth-child(6),
#page_kde_rainfall table#tblRain td:nth-child(6) {
	text-align: right;
	width: 50px;
	min-width: 50px;
}

#page_kde_rainfall table#tblRain th:nth-child(7),
#page_kde_rainfall table#tblRain td:nth-child(7) {
	text-align: left;
	width: 300px;
	min-width: 150px;
}

#page_kde_rainfall table#tblRain th:nth-child(8),
#page_kde_rainfall table#tblRain td:nth-child(8) {
	text-align: center;
	width: 130px;
	min-width: 130px;
	max-width: 130px;
}

#page_data_viewer #fouc_here {
	display: flex;
	gap: 10px;
}
#page_data_viewer #fouc_here #time_panel {
	flex: 0 0 80px;
}
#page_data_viewer #fouc_here #data_panel {
	flex: 1 0.1 680px;
	display: flex;
	flex-direction: column;
}
#page_data_viewer #fouc_here #data_panel #data_table {
	flex: 1 0 650px;
}
#page_data_viewer #fouc_here #data_panel #agg_rules_text {
	flex: 0 1;
}
#page_data_viewer #fouc_here #legend_gap {
	flex: 0.1 1 30px;
}
#page_data_viewer #fouc_here #legend {
	flex: 0 0.1 200px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#page_data_viewer .form-group-sm .form-control,
#page_data_viewer .form-group-sm .input-group-addon {
	height: 30px;
}
@media only screen and (max-width: 1679px) {
	#page_data_viewer #data_table {
		max-width: 650px;
		align-self: center;
	}
	#page_data_viewer div.noaa-data div#column_def {
		column-count: 1;
	}
}
#page_data_viewer #data_table .col-group.form-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
#page_data_viewer #data_table .col-group.form-group .control-label {
	flex: 1 1;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#page_data_viewer #data_table .col-group.form-group .col-controls {
	flex: 0 0 120px;
}
#page_data_viewer #data_table .col-group.form-group .key-field-extra {
	flex: 0 0 165px;
}
#page_data_viewer .badge {
	min-width: 21px;
}
#page_data_viewer #legend_md .badge {
	min-width: 32px;
}
#page_data_viewer .key-field-extra {
	display: flex;
	align-items: center;
}
#page_data_viewer .key-field-extra span {
	margin-right: 2px;
	display: inline-block; /* to allow min-width to take effect */
	min-width: 21px;
}
#page_data_viewer .key-field-extra span.label {
	font-size: 84%; /* was 75% */
}
#page_data_viewer .key-field-extra span:nth-child(1) {
	min-width: 61px; /* 57px if above font-size at original 75% */
}
#page_data_viewer .key-field-extra span:nth-child(2) {
	min-width: 27px;
}

#page_data_viewer .field-group {
	break-inside: avoid;
	margin-top: 12px;
}

#page_data_viewer .form_horizontal .checkbox {
	padding-top: 0;
}

#page_data_viewer button.print-button {
	top: 45px;
}

#page_data_viewer #export_dropdown {
	top: 85px;
	position: absolute;
	right: 60px;
	z-index: 10;
}

#page_data_viewer .refreshing {
	opacity: 0.1;
}

#page_monthly_graph #col {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
}
#page_monthly_graph #col label {
	flex-basis: 122px;
	margin-left: 0px;
}

#page_normals .tab-content {
	height: calc(100vh - 215px);
	overflow-y: auto;
	padding-right: 15px;
}

#page_normals .element-checkboxes {
	display: flex;
	flex-wrap: wrap;
	column-gap: 50px;
}

#page_normals .element-checkboxes * {
	flex-basis: 325px;
	margin-left: 20px;
}
#page_normals .element-checkboxes input {
	margin-left: -20px;
}

#page_normals #normals_preview {
	border: 0;
	font-size: smaller;
}

#page_normals #normals_preview td:nth-child(-n+4) {
	width: 4%;
	overflow-x: hidden;
	text-overflow: ellipsis;
}
#page_normals #normals_preview td:nth-child(n+5) {
	width: 6%;
	text-align: right;
}

#page_normals #report_info li,
#page_normals #report_info p,
#page_normals #report_info td {
	color: #555;
}

#page_normals #download_button,
#page_normals #email_button {
	position: absolute;
	margin-top: -63px;
	z-index: 10;
}

#page_normals #download_button {
	right: 263px;
}

#page_normals #email_button {
	right: 135px;
	pointer-events: auto; /* allowing tooltip to be displayed on disabled button */
}

#page_normals button.print-button {
	margin-top: -63px;
}

/* siblings to the rule below are in clide_key_field.css, maybe they should live here too */
.field-mandatory  {
	background-color: #eef0bb;
	border-color: darkorange;
	border-style: dashed;
}

