
.report-step.hidden {
	display:none;
}

/*******************************************

	Page wrapper

*******************************************/
.page-wrapper {
	--content-width: min(100vw, 1600px);
	display:grid;
	grid-template-columns: var(--content-width);
	grid-template-rows: var(--header-height) auto var(--footer-height);
	width: var(--content-width);
	box-shadow:0 0 5px var(--theme-edge-colour);
	margin:0 auto;
	background-color:var(--theme-background-colour-pale3);
}
.header {
	grid-row: 1 / 2;
	height:100%;
	width:100%;
}
.content-wrapper {
	grid-row: 2 / 3;
	height:100%;
	width:100%;
}
.footer {
	grid-row: 3 / 4;
	width:100%;
}


/*----------------------------------

	Header

-----------------------------------*/

.header {
	background-color:var(--theme-background-colour);
	transition-duration:0.5s;
	transition-property:background-color;
	display:grid;
	grid-template: 40px / 150px auto auto;
}
.header .motus-logo {
  height: 100%;
  grid-column:1 / 2;
	grid-row: 1 / 2;
	margin: 0 15px;
}

.header .header-menu-wrapper {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
	padding-top:0px;
}

.header .header-controls {
	grid-column: 3 / 4;
	grid-row: 1 / 2;
	justify-self: end;
	align-self: center;
	margin-right: 25px;
}


.header:hover {
	background-color:#1a4463;
}
.header .header-menu {
	color: var(--theme-text-colour);
	font-weight:600;
	display:inline;
	text-align:center;
}

.header .header-menu > div {
	display:inline-block;
	text-align:center;
	padding: 10px;
	height: 20px;
	transition-duration:0.5s;
	transition-property:background-color;
	background-color:var(--theme-background-colour);
}

.header .header-menu > div.expand-menu-btn {
	display:none;
}

.header .header-menu > div:not(.selected) {
	cursor:not-allowed;
}
.header .header-menu > div.selected,
.header .header-menu > div:hover {
	background-color:var(--theme-background-colour-pale);
}

.header:hover .header-menu > div:not(:hover) {
	background-color:#1a4463;
}

@media (max-width: 1000px) {
	.header .header-menu > div:not(.selected) {
		display:none;
	}
	.header .header-menu > div.expand-menu-btn {
		display:inline-block;
	}


}
/*******************************************

	User controls

*******************************************/

.header .header-controls > div {
	display:inline-block;
	padding-top:5px;
	padding-right:10px;
	color: var(--theme-text-colour);
	fill: var(--theme-text-colour);
}
#login_wrapper {
	display:inline-block;
	margin-right:15px;
	cursor:pointer;
	font-weight:bold;
}
.header .header-controls a {
	color: var(--theme-text-colour);
}
.user-controls-settings-icon {
	margin:5px 0 0 5px;
}
.user-controls-settings-icon:hover {
	stroke-width:0.5px;
	stroke: var(--theme-text-colour);
}

@media (max-width: 575px) {

	#login_wrapper {
		margin-top:7px;
	}
	#login_wrapper span {
		display:none;
	}

	#lang_wrapper {
		display:none;
	}
}

/*----------------------------------

	Footer

-----------------------------------*/

.footer {
	background-color:var(--theme-background-colour);
	padding:10px;
	width: calc(100% - 20px);
	transition-duration:0.5s;
	transition-property:background-color;
	overflow:hidden;
	text-align:center;
}
.footer > div {
	display:inline-block;
  vertical-align: middle;
  color: var(--theme-text-colour);
	line-height: 65px;
}

.footer .birds-canada-logo {
  height: 65px;
	margin: 5px 0;
	display:inline-block;
	vertical-align:top;
}


/*******************************************

	Tooltip

*******************************************/

.tooltip {
	display:none;
	z-index:1099;
	position:absolute;
	background:#FAFAFA;
	border:solid 1px #DDD;
	border-radius:5px;
	padding:10px;
}
body:not(.touch) .tooltip_bg {display:none !important;}

body.touch .tooltip_bg {
	display:none;
	background: transparent;
	position:fixed;
	z-index:1098;
	top:0;
	left:0;
	bottom:0;
	right:0;
}

.tooltip .station-status {
	text-align:center;
	margin:10px auto;
	display:block;
	padding: 3px 5px;
	border: 0px;
	font-weight:bold;
	width:5em;
}
.explore-profile-status {
	display:inline-block;
	text-align:center;
	margin:0;
	display:inline-block;
	padding: 0;
	border: 0;
	font-weight:bold;
	grid-column:2/3;
}
.tooltip .station-status.station-status-inactive {
	color: #977;
	background-color:#DCC;
}
.tooltip .station-status.station-status-active {
	color: #0A0;
	background-color:#DED;
}

/*******************************************

	Popup

*******************************************/

.popup {
	display:none;
	z-index:1099;
	position:absolute;
	background:#FAFAFA;
	border:solid 1px #DDD;
	border-radius:5px;
	overflow: hidden;
}
.popup_bg {
	position:fixed;
	background: rgba(255,255,255,0.01);
	left:0;
	top:0;
	right:0;
	bottom:0;
	z-index: 1098;
}
.popup .popup-topbar {
	padding: 5px 10px;
  background-color: #CCC;
  display: block;
  text-align: right;
	cursor:move;
}
.popup .popup-topbar .popup-header {
	display:inline-block;
	float:left;
	font-weight:bold;
	font-size:12pt;
	margin-left:20px;
}
.popup .popup-content {
	overflow-y:auto;
	padding: 10px;
}
.popup .popup-topbar .popup-topbar-close {
	cursor: pointer;
	margin: -5px -10px;
	padding: 5px 10px;
	display: inline-block;
	background-color: var(--theme-highlight-red);
}
.popup .popup-topbar .popup-topbar-close:hover {
	background-color: var(--theme-highlight-red-pale);
}
.popup:not(.edit-mode) .popup-content-editor {
	display:none;
}
.popup.edit-mode .popup-content-main {
	display:none;
}


/*******************************************

	Lightbox

*******************************************/

#lightbox {
	position:fixed;
	top:0;
	left:0;
	bottom:0;
	right:0;
	cursor:pointer;
	display:none;
	z-index:1098;
	text-align: center;
	white-space: nowrap;
	background-color: rgba(0,0,0,0.75);
}
#lightbox img {
	max-height:80%;
	max-width:100%;
	vertical-align:middle;
}



/****************************************************************************/
/****************************************************************************
		Main content
/****************************************************************************/
/****************************************************************************/



/*******************************************

	Content wrapper

*******************************************/
.content-wrapper {

}

.content-wrapper .explore-report-header {
	padding: 0 20px;
	text-align:left;
}
#exploreContent > * {
	filter:blur(0px);
	transition: filter, 250ms;
}
#exploreContent > .blur {
	filter:blur(10px);
}

/*******************************************

Loading overlay

*******************************************/

#loadingOverlay {
	position:absolute;
	z-index:2000;
	top: 300px;
	left:0;
	right:0;
	bottom:95px;
	background:rgba(255,255,255,0.2);
	font-size:30pt;
	font-weight:bold;
	text-align:center;
	line-height:100%;
	display:none;
	padding-top:100px;
}



/*******************************************

	Explore map

*******************************************/

.explore-map {
	height: 50vh;
	min-height:300px;
	transition: height 250ms;
}
.explore-map.short {
	height:10vh;
	min-height:100px;
	max-height:50vh;
}

.explore-map svg path.filtered,
.explore-map svg .hidden {
	display:none;
}

.explore-map path.deselected {
	fill-opacity:0.3;
	stroke-opacity:0.4;
	filter:saturate(0.5);
	stroke-width: 1px;
	stroke: #000;
}
.explore-map path.deselected:hover {
	fill-opacity:0.75;
}
.explore-map path.selected:hover{
	opacity:0.2;
	stroke-width: 1px;
	stroke: #000;
}
.explore-map path.selected {
	filter: drop-shadow(0 0 2px rgb(0,0,0)) sepia(100%) hue-rotate(20deg) saturate(10000%);
}

/*******************************************

	Explore table

*******************************************/

.explore-table {
	height: auto;
	transition: height 250ms;
	overflow:hidden;
}
.explore-table.short {
	height:10vh;
	min-height:100px;
	max-height:50vh;
}

/****************************************************************************/
/****************************************************************************
							Control options
/****************************************************************************/
/****************************************************************************/


.content-wrapper .explore-report-control-wrapper {
	width:100%;
	text-align:left;
}
.content-wrapper .explore-report-control-wrapper > div:not(.section-header) {
		background-color: var(--theme-background-colour3);
		font-size:16pt;
		font-weight:bold;
		padding: 10px 20px;
		width: calc(100% - 40px);
}
.content-wrapper .explore-report-control-wrapper .report-control-timeline {
	padding: 0;
	width: 100%;
}

.report-step {
}
.report-step1 {
	display:block;
}

/*----------------------------------

	Selection Status

-----------------------------------*/

.explore-report-selectionStatus {
	display:flex;
	flex-flow: row wrap;
	justify-content: center;
	align-content: center;
	margin: 0;
	vertical-align:middle;
	row-gap: 5px;
}

.explore-report-selectionStatus.no-data {
	display:none !important;
}



.explore-report-control-wrapper  .section-header {
	text-align:left;
}
.section-header {
	background-color: var(--theme-background-colour3);
	font-size:16pt;
	text-align:center;
	padding: 10px 0;
	font-weight:normal;
	width: 100%;
	padding: 10px 20px;
	width: calc(100% - 40px);
	transition: all 250ms;
}
.explore-report-selectionStatus .section-header {
	margin-top: -10px;
	margin-bottom: 10px;
}
.section-header.selected {
	font-weight:bold;
	background-color: var(--theme-background-colour2);
}
.explore-report-control-wrapper .section-header:not(.selected):hover {
	cursor:pointer;
	font-weight:bold;
	background-color: var(--theme-background-colour2);
}
.explore-report-selectionStatus > .inter-text:first-child {
	font-weight:bold;
}
.explore-report-selectionStatus .inter-text {
	font-size:14pt;
	align-self: center;
	padding: 0 10px;
}
.explore-report-selectionStatus .status-section {
	display:inline-block;
	width:max-content;
	background-color: var(--theme-background-colour-pale3);
	border-radius: 15px;
}
.explore-report-selectionStatus .status-section .inter-text {
	margin: 0 10px;
}
.flex-break {
	flex-basis: 100%;
	height: 0;
}
.explore-report-selectionStatus .status-section > div.status-selection {
	display:inline-block;
	font-weight:bold;
	font-size:14pt;
	border: solid 1px var(--theme-edge-colour);
	padding: 5px 10px;
	border-radius: 15px;
	background-color: var(--theme-background-colour-pale2-2);
	transition: all 250ms;
	cursor: pointer;
}
.explore-report-selectionStatus .status-section > div.status-selection:hover {
	background-color: var(--theme-background-colour-pale2);
}
.explore-report-selectionStatus .status-section svg {
	height:20px;
}
.explore-report-selectionStatus .status-value {
	display:inline-block;
	width:max-content;
	font-size: 16pt;
	margin-left:10px;
}


/****************************************************************************/
/****************************************************************************
							Explore report
/****************************************************************************/
/****************************************************************************/

#exploreReport {
	display:flex;
	flex-flow: row wrap;
	row-gap: 10px;
	column-gap: 10px;
	justify-content: center;
	align-items: start;
	font-size:12pt;
	--report-page-padding: 5.88%;
	padding-bottom: 20px;
	text-align:center;
}
.report-controls {
	display:block;
	width:100%;
}
.report-page-wrapper {
	position:relative;
	display:inline-block;
	width:8.5in;
	max-width: min(calc(100vw - 40px),calc( ( 100vh - 150px ) * 0.77));
}
.report-page-wrapper-dummy {
	margin-top:129.4%
}
.report-page {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
	border:solid 1px;
	display: grid;
	grid-template-columns: 1fr 6.67%;
	grid-template-rows: 5% 2% 5% 10% 58% 15% 5%/*5% repeat(3, max-content) min(max-content, 50%) auto 5%*/;
	grid-template-areas:
		"header page"
		"title title"
		"subtitle subtitle"
		"stats stats"
		"table table"
		"timeline timeline"
		"footer checkbox";
	padding:var(--report-page-padding);
	font-size: 75%;
}
.report-page .report-checkbox {
	width:100%;
	height:100%;
	grid-area: page;
	margin-top: calc(0 - var(--report-page-padding));
	background-color: var(--theme-background-colour-pale3);
	position: relative;
	right: -100%;
	top: -100%;
	vertical-align: middle;
	line-height: 100%;
	cursor:pointer;
}
.report-page-wrapper .report-page .report-checkbox:hover::before {
	font-weight:bold;
	box-shadow: 0 0 2px #000;
}
.report-page-wrapper .report-page .report-checkbox::before {
	content: "";
	display:inline-block;
	border:solid 1px #000;
	background-color: var(--theme-background-colour-pale3);
	width: 50%;
	height: 50%;
	font-size: 150%;
	margin-top: 25%;
	border-radius: 25%;
}
.report-page-wrapper.selected .report-page .report-checkbox::before {
  content: "✓";
  line-height: 100%;
}

.report-page .report-header {
	font-size: 125%;
	grid-area: header;
	align-self:end;
	text-align:left;
	width:100%;
}
.report-page .report-pageIndex {
	justify-self: end;
	font-size: 100%;
	grid-area: page;
	width: max-content;
}

.report-page-wrapper .report-zoom {
	display:none;
}

.report-page .report-season {
	font-size: 100%;
	line-height: 150%;
	grid-area: title;
	align-self:start;
	text-align:right;
	font-weight:bold;
}
.report-page .report-title {
	font-size: 150%;
	grid-area: title;
	align-self:start;
	justify-self:start;
	border-top: solid 2px;
	text-align:left;
	width: 100%;
	font-weight:bold;
}
.report-page .report-subtitle {
	display: block;
	grid-area: subtitle;
	width: max-content;
	align-self: start;
	justify-self: center;
	margin-top: 15px;
}
.report-page h2 {
	width: 100%;
	display:block;
	margin-top:4%;
	padding:0;
	border-bottom:solid 1px;
	text-align: left;
	font-size: 125%;
	font-weight: normal;
}


.report-stats {
	align-self:center;
	grid-area: stats;
	height: 100%;
	padding-top: 2%;
}
.report-stat {
	width: 15%;
	display: inline-grid;
	background:var(--theme-background-colour3);
	margin:0 0.5%;
	height: 90%;
	vertical-align: top;
	padding: 1% 0;
	grid-template-columns: auto minmax(min-content, 50%);
}
.report-stat-value {
	grid-column:1/2;
	grid-row:1/2;
	font-size:200%;
}
.report-stat.no-icon .report-stat-value {
	grid-column:1/3;
	font-size:100%;
	font-weight:bold;
}
.report-stat-label {
	grid-column:1/3;
	grid-row:2/3;
	width: 100%;
}
.report-stat-icon {
	grid-column:2/3;
	grid-row:1/2;
	justify-self: center;
	text-align: center;
	align-self: center;
}

.report-stat-icon .icon {
	width: 50%;
	max-height: 50%;
}
.report-timeline {
	align-self:start;
	grid-area: timeline;
}

.report-table {
	align-self:center;
	grid-area: table;
	height: 100%;
	overflow: hidden;
}



.report-refine {
/*	width:max-content;*/
}
.report-refine table {
	width:max-content;
		border-collapse:collapse;
}
.report-refine table th, .report-refine table td {
	width: max-content;
	padding: 0 5px;
}
.report-refine tbody tr {
	cursor:pointer;
	position:relative;
	z-index:1100;
}
.report-refine tbody tr:not(.selected) {
	opacity: 0.7;
	color:#333;
	font-style: italic;
}
.report-refine table.dataTable tbody > tr.selected {
	background-color:initial;
}
.report-refine tbody tr:hover {
	box-shadow: 0 0 3px #000;
}
.report-refine table.dataTable tbody > tr:nth-child(even),
.report-refine table.dataTable tbody > tr.selected:nth-child(even)  {
	background-color: var(--theme-background-colour3);
}
#filterPopup {
	box-shadow: 0 0 1px #000;
}
#filterPopup .dataTables_info,
#filterPopup .dataTables_filter {
	float: none;
	text-align: left;
	display:inline-block;
}
#filterPopup .dt-buttons {
	text-align:center;
}
#filterPopup .dataTables_info {
	margin-left:20px;
	padding: 0;
}
#filterPopup table {
	text-align: left;
}

#filterPopup .close {
	cursor: pointer;
	padding: 5px 10px;
	display: inline-block;
	background-color: var(--theme-highlight-red);
	float: right;
	color: #FFF;
	font-weight:bold;
}
#filterPopup .close:hover {
	background-color: var(--theme-highlight-red-pale);
}

#datatables_buttons_info {
	position: fixed;
	bottom: 0;
	left: calc(50vw - 100px);
	z-index: 2000;
	padding: 20px;
	background: var(--theme-background-colour3);
	text-align: center;
	box-shadow: 0 0 3px #000;
	border-radius: 10px 10px 0 0;
	padding-top: 0;
}



.report-page .report-footer {
	font-size: 100%;
	align-self: end;
	display: inline-block;
	color: #777;
	padding-top: 2%;
	grid-area: footer / footer / checkbox / checkbox;
	border-top: solid 2px #000;
}

.report-page .report-footer img {
	width: 75px;
}


	/* !  Screen only */

@media screen {

	#exploreReport.small .report-page-wrapper:not(.zoomed) {
		width:1.5in;
		max-width:calc(100% - 40px);
		font-size: 1.5pt;
		border:solid 2px #FFF;
		opacity: 0.6;
		cursor:pointer;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed).selected {
		opacity: 1;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed).selected,
	#exploreReport.small .report-page-wrapper:not(.zoomed):hover {
		border-color: #000;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed):hover {
		box-shadow: 0 0 4px #000;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-pageIndex {
		background: #000;
		color:#FFF;
		font-weight:bold;
	}

	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-checkbox {
		grid-area: checkbox;
		top: -7px;
		right:5px;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-checkbox::before {
		width:20px;
		height:20px;
		font-size:16pt;
		border-radius: 0;
		border-width: 2px;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-timeline,
	#exploreReport.small:not(.zoomed) .report-page-wrapper .report-page  {
		pointer-events:none;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-zoom  {
		display:block;
		margin: 0;
		align-self:start;
		font-size: 100%;
		grid-area: footer / footer / checkbox / checkbox;
		width: 20px;
		height:20px;
		position:absolute;
		bottom:-2px;
		left:-2px;
		background-color: #FFF;
		z-index: 3;
		border: solid 2px;
		cursor:pointer;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed)  .report-zoom svg {
		width: 14px;
		margin-top: 3px;
	}

	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-zoom:hover {
		color:#FFF;
		background-color:#000;
		border-color:#000;
	}

	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-table .dataTable th,
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-table .dataTable td {
		padding: 1%;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-footer img {
		width: 13px;
	}

	#exploreReport.small .report-page-wrapper.zoomed {
	}

	#exploreReport .zoom-controls {
		display:none;
	}
	#exploreReport.small.zoomed .zoom-controls {
		display:block;
	}
	#exploreReport.small.zoomed {
		position:fixed;
		z-index: 1000;
		top:0px;
		left:0px;
		width:100vw;
		height:100vh;
		background-color:#FFF;
	}
	#exploreReport.small.zoomed .report-page-wrapper.zoomed {
		width: 8.5in;
		background: #FFF;
		font-size: 12pt;
	}
	#exploreReport.small .report-page-wrapper:not(.zoomed) .report-pageIndex {
		font-size: 10pt;
		font-weight: bold;
		border: solid 1px;
		border-width: 0 0 1px 1px;
		margin: -11px -11px -5px 0;
		padding: 5px;
	}
	@media (max-width: 8.5in) {

		#exploreReport:not(.small) .report-page-wrapper {
			font-size:2vw;
			padding:5.88vw;
		}
	}
}
/*******************************************

	Explore table

*******************************************/



/****************************************************************************/
/****************************************************************************
				PRINTING
/****************************************************************************/
/****************************************************************************/
@media print {
	body {
		--header-height: 0;
	}
    @page {
      size: A4; /* DIN A4 standard, Europe */
      margin:0;
    }
  body,html {
    margin: 0;
    color: #000;
    background: #fff;
		width:8.5in;
		height:99%;
  }
	.page-wrapper {
		box-shadow: none;
	}
	#exploreContent > *:not(#exploreReport) {
		display:none;
	}
	#exploreReport.small > .report-page-wrapper {
		font-size:12pt;
		width: 8.5in;
		max-width: none;
	}
	#exploreReport {
		row-gap: 0;
	}
	#exploreReport .report-controls {
		display:none;
	}
	#exploreReport .report-checkbox {
		display:none;
	}
	.header {
		display:none;
	}
	.footer {
		display:none;
	}
	.report-page-wrapper:not(.selected) {
		display:none;
	}
	.report-page-wrapper {
		min-width:8.5in;
		max-width: none;
		width: 8.5in;
		height:11in;
		position:static;
	}
	.report-page-wrapper-dummy {
		margin-top: 0;
	}
	.report-page {
		padding:0.5in;
		border: none;
		height:calc(100% - 1in);
		width: calc(100% - 1in);
		position:static;
	}

}


/*

		FILTER TABLE

*/
#filterTable .filter_dates {
	margin:0.5em auto;
	display:block;
	padding:0.5em 1em;
	font-size:40pt;
	font-weight: 500;
}
