/*
 * Exergi control room page 
 */

 #cr-map {
	width: 100%;
	height: 100%;
}

/* Header */

#cr-room-header {
	height: 70px;
	background-color: #292929;
	border-color: #292929;
	width: 100vw;
}
#cr-heading-left h1, 
#cr-heading-right h1 {
	font-size: 16px;
	margin: 0;
	padding: 0;
	position: relative;
	top: 15px;
}
#cr-heading-left, 
#cr-heading-right {
	width: 440px;
	position: relative;
	top: 0px;
	text-align: center;
}
#cr-heading-left img, 
#cr-heading-right img {
	width: 400px;
}
#cr-heading-left {
	float: left;
}
#cr-heading-right {
	float: right;
}
#cr-pipeguard-logo {
	margin: auto;
	margin: auto;
	width: 200px;
	text-align: center;
}
#cr-pipeguard-logo img {
	height: 64px;
	margin-top: 8px
}

/* Footer */

#cr-footer {
	height: 40px;
	background-color: #292929;
	border-color: #292929;
	width: 100vw;
}
#cr-footing-left h1, 
#cr-footing-right h1 {
	font-size: 16px;
	margin: 0;
	padding: 0;
	position: relative;
	top: 15px;
}
#cr-footing-left, 
#cr-footing-right {
		width: 440px;
	position: relative;
	top: 0px;
	text-align: center;
}
#cr-footing-left img, 
#cr-footing-right img {
		width: 400px;
}
#cr-footing-left {
	float: left;
}
#cr-footing-right {
	float: right;
}
@media all and (max-width: 904px) {
	#cr-footing-right, #cr-heading-right {
		display: none;
	}
}
#cr-customer-logo {
	float: left;
	text-align: left;
	width: 130px;
}
#cr-customer-logo img {
	width: 130px;
	height: 35px;
}
@media all and (max-width: 1010px) {
	#cr-customer-logo {
		display: none;
	}
}
#cr-weather-container {
	float: left;
	text-align: left;
	height: 44px;
	position: relative;
	top: -3px;
	margin-right: 12px;
	margin-left: 12px;
}
.cr-weather-subcontainer {
	display: inline-block;
	position: relative;
	text-align: center;
	margin-right: 6px;
	margin-left: 6px;
}
#cr-weather-temp-container {
	top: -5px;
}
#cr-weather-icon {
	position: relative;
	top: -4px;
	height: 30px;
}
#cr-weather-icon img {
	height: 44px;
	position: relative;
	top: -10px;
}
#cr-weather-description {
	position: relative;
	top: -5px;
	font-size: 12px;
}
#cr-weather-misc-container {
	top: -3px;
	font-size: 12px;
}
#cr-weather-temp {
	font-size: 20px;
	width: 80%;
	margin: 0 auto;
}
#cr-weather-daytime-container {
	top: -7px;
}
@media all and (max-width: 1310px) {
	#cr-weather-daytime-container {
		display: none;
	}
}
@media all and (max-width: 1240px) {
	#cr-weather-misc-container {
		display: none;
	}
}
@media all and (max-width: 1180px) {
	#cr-weather-desc-container {
		display: none;
	}
	#cr-weather-temp-container {
		top: -4px;
	}
}
@media all and (max-width: 1100px) {
	#cr-weather-temp-container {
		display: none;
	}
}

/* Columns */

.cr-menu-table {
	width: calc(100vw - 1px);
	border-spacing: 10px;
	background-color: #292929;
}
.cr-menu-table > tbody > tr > td {
	background-color: #393939;
	border-style: solid;
	border-color: #696969;
	border-width: 1px;
	text-align: center;
	height: calc(100vh - 150px);
	vertical-align: top;
}
.cr-left, .cr-right {
	width: 200px;
	padding: 10px;
	padding-top: 0px;
}
.cr-left {
	position: relative;
}
.cr-right {
	width: 300px;
}

.cr-anvalues-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
	/*border-style: solid;
	border-width: 1px;*/
}
.cr-anvalues-tooltip-table {
	width: 150px;
	table-layout: fixed;
	border-spacing: 0px;
	border-collapse: separate;
}
.cr-anvalues-tooltip-table td {
	border-radius: 10px;
	text-shadow: none;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
}
.cr-anvalues-tooltip-table td span {
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 5px;
	padding-left: 4px;
	padding-right: 4px;
}
.cr-anvalues-tooltip-table td.cr-tooltip-middle-spacing {
	width: 32px;
	background-color: transparent;
}

.cr-flow-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
	/*border-style: solid;
	border-width: 1px;*/
}
.cr-flow-tooltip-table {
	width: 150px;
	table-layout: fixed;
	border-spacing: 0px;
	border-collapse: separate;
}
.cr-flow-tooltip-table td {
	xborder-style: solid;
	xborder-width: 1px;
	border-radius: 10px;
	text-shadow: none;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
}
.cr-flow-tooltip-table td span {
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 5px;
	padding-left: 4px;
	padding-right: 4px;
}
.cr-flow-tooltip-table td.cr-tooltip-middle-spacing {
	width: 32px;
	background-color: transparent;
}

.cr-tooltip-invisible {
	visibility: hidden;
}

.cr-map-gray, .cr-map-gray {
	filter: grayscale(85%);
}
#cr-sub-menu, #cr-sub-menu {
	margin-top: 20px;
}
.cr-alarm-table-container {
	height: calc(100% - 202px);
	overflow-y: auto;
}

.cr-anvalues-value-table-container {
	height: calc(100% - 265px);
	overflow-y: auto;
}
.cr-flow-value-table-container {
	height: calc(100% - 265px);
	overflow-y: auto;
}
.cr-flow-alarm-table-container {
	height: calc(100% - 250px);
	overflow-y: auto;
}

.cr-scrollbar::-webkit-scrollbar {
	width: 5px;
}
.cr-scrollbar::-webkit-scrollbar-track {
	background: #202080;
}
.cr-scrollbar::-webkit-scrollbar-thumb {
	background: #2020b0;
}
.cr-scrollbar::-webkit-scrollbar-thumb:hover {
	background: #2020ff;
}

.cr-table {
	display: none;
	border-collapse: collapse;
	font-size: 20px;
	margin-top: 10px;
	color: black;
	width: 100%;
	background-color: #393939;
	text-shadow: none;
}
#cr-flow-alarm-table {
	font-size: 18px;
}
#cr-alarm-table td {
	text-align: left;
	padding: 2px;
}
.cr-table th {
	text-align: left;
	background-color: #555;
	color: white;
	padding: 2px;
}

.cr-alarm-green,
.cr-value-green {
  color: #5d5;
}
.cr-alarm-red,
.cr-value-red {
  color: #f55;
}
.cr-alarm-orange,
.cr-value-orange {
  color: #fa3;
}
.cr-alarm-yellow,
.cr-value-yellow {
  color: #ff5;
}
.cr-value-white {
  color: #fff;
}
.cr-alarm-text-green {
  color: #5d5;
  text-shadow: none;
}
.cr-alarm-text-red {
  color: #f55;
  text-shadow: none;
}
.cr-alarm-text-orange {
  color: #fa3;
  text-shadow: none;
}
.cr-alarm-text-yellow {
  color: #ff5;
  text-shadow: none;
}
.cr-confirm {
  color: green;
  font-size: 14px;
  font-weight: 900;
}
#cr-anvalues-alarm-table tbody tr {
	border-top: solid 1px #001B48;
}
.cr-table th {
	text-align: center;
	padding: 3px;
}
.cr-table td {
	text-align: left;
	padding: 3px;
	border-style : hidden !important;
	white-space: nowrap;
}
#cr-flow-alarm-table td {
    text-align: left;
}
#cr-anvalues-value-table td {
    border-right: solid 1px #001B48;
}
#cr-flow-value-table td {
    border-right: solid 1px #001B48;
}
#cr-anvalues-value-table td.cr-col {
    width: 40%;
	text-align: center;
}
#cr-flow-value-table td.cr-col {
    width: 40%;
	text-align: center;
}
.cr-col-hidden {
	color: #393939;
}
tr.cr-anvalues-value-list-selected .cr-col-hidden, 
tr.cr-flow-value-list-selected .cr-col-hidden {
	color: #494949;
}
.cr-anvalues-value-list-selected, 
.cr-flow-value-list-selected {
	background-color: #494949;
}
.cr-alarm-list-selected, 
.cr-anvalues-alarm-list-selected, 
.cr-flow-alarm-list-selected {
	background-color: #494949;
}
#cr-alarm-table-error {
	color: #f52;
	padding: 10px;
}
.cr-needle-image {
	width: 16px;
}
.cr-needle-checkbox-label {
	position: relative;
	top: -5px;
	padding-left: 10px;
}

#cr-sort-table, #cr-filter-table {
	width: 100%;
}
.cr-sort {
	color: gray;
}
.cr-sort:hover {
	background-color: #333399;
}
.cr-sort-selected {
	background-color: #535379;
	color: white;
}
.cr-sort-left {
}
.cr-sort-right {
}
.cr-sort-middle {
	width: 25px;
}
#cr-filter-table {
	display: none;
}
.cr-filter-middle {
	text-align: center;
}
.cr-filter-middle .help-button {
	margin: 0;
	position: relative;
	top: -2px;
}
.cr-filter-button-selected {
	color: white;
}
#cr-filter-help {
	width: 250px;
	text-align: left;
}

.cr-tooltip-color-black, .cr-table-color-black {
	color: #000;
	text-shadow: none;
}
.cr-tooltip-color-orange, .cr-table-color-orange {
	color: #d70;
	text-shadow: none;
}
.cr-tooltip-color-red, .cr-table-color-red {
	color: #d00;
	text-shadow: none;
}
/* In the alarm table, the orange color is a little lighter than in the needle. */
.cr-table-color-orange {
	color: #ea0;
}
/* In the alarm table, the red color is a little lighter than in the needle. */
.cr-table-color-red {
	color: #f00;
}
.cr-table-color-orange span, .cr-table-color-red span {
	padding-left: 5px;
	padding-right: 5px;
	font-weight: 800;
}
.cr-tooltip-value {
	font-size: 18px !important;
}
.cr-tooltip-unit {
	font-size: 13px !important;
	position: relative;
	top: -5px;
}
.cr-tooltip-left {
	text-align: right;
}
.cr-tooltip-right {
	text-align: left;
}
/* Exergi map needle popups */

.cr-flow-popup-subtitle {
	font-size: 12px;
}
#cr-map .leaflet-popup-content-wrapper, 
#cr-map .leaflet-popup-tip {
	background-color: #292929;
}
#cr-map .leaflet-popup-content {
	line-height: 14px;
	color: white;
}
.cr-flow-popup-subtitle {
	font-size: 12px;
}
.cr-flow-popup-power-title {
	font-size: 22px;
	color: #8888ff;
}
.cr-flow-popup-power, 
.cr-flow-popup-power-diff, 
.cr-flow-popup-cost {
	font-size: 18px;
	color: #8888ff;
	margin: 0 !important;
	margin-bottom: 10px !important;
}
.cr-flow-popup-cost {
	margin-top: 5px;
	margin-bottom: 0px !important;
}
.cr-flow-popup-power-diff {
	margin-bottom: 0 !important;
}
.cr-flow-popup-flow-speed-forward, 
.cr-flow-popup-flow-speed-return {
	color: #66ff66;
	font-size: 18px;
}
.cr-flow-popup-flow-deviation, 
.cr-flow-popup-leakage {
	color: #ff6666;
	font-size: 18px;
}
.cr-flow-popup-cost-table {
	color: #ff6666;
	font-size: 18px;
	margin-bottom: 8px;
	width: 100%;
}
.cr-flow-popup-cost-table td {
	padding: 1px;
}
.cr-flow-popup-cost-table-value {
	text-align: right;
}
.cr-flow-popup-values-table {
	color: #66ff66;
	width: 100%;
	font-size: 18px;
}
.cr-flow-popup-values-table th {
	text-align: center;
}
.cr-flow-popup-values-table td, 
.cr-flow-popup-values-table th  {
	padding: 1px;
}
.cr-flow-popup-values-value {
	text-align: right;
}
.cr-flow-popup-values-unit {
	text-align: left;
}

#cr-flow-chart {
	height: 220px;
	width: 240px;
}
#cr-flow-chart-info h3 {
	margin: 0;
}
#cr-flow-chart-info p {
	margin: 3px;
}

#cr-module-data {
	text-align: left;
	padding-left: 5px;
	padding-right: 5px;
}
#cr-module-data h3, #cr-module-data h4 {
	margin-top: 5px;
	margin-bottom: 5px;
	color: #aaaaaa;
}
#cr-module-data h3 {
	font-size: 20px;
}
#cr-module-data h4 {
	font-size: 18px;
}
#cr-module-data p {
	margin-bottom: 3px;
	margin-top: 5px;
}

#cr-overview-map {
	border: solid 1px #338;
	height: 180px;
}
#cr-alarm-settings-button {
	float: right;
	position: relative;
	top: 3px;
	right: 3px;
}
#cr-alarm-settings-panel {
	position: absolute;
	top: 37px;
	right: 45px;
	display: none;
	background-color: #292929;
	border-radius: 5px;
	border: solid #444444 3px;
	padding: 10px;
	z-index: 1000;
	max-width: 442px;
}
#cr-alarm-settings-panel h3 {
	margin-top: 5px;
	font-size: 20px;
}
#cr-alarm-settings-panel p {
    text-align: left;
    font-size: 14px;
}
#cr-alarm-settings-panel table tbody td input {
    text-align: right;
    width: 75px;
    font-size: 16px;
}
#cr-alarm-settings-panel table tbody th {
    text-align: left;
    padding-right: 10px;
    font-weight: normal;
}
input.cr-alarm-settings-different-limit {
	background-color: #550000;
}
#cr-alarm-settings-error {
    color: #f33;
    width: 100%;
    text-align: left;
    padding: 3px;
}
.cr-alarm-settings-button-gray, 
.cr-alarm-settings-button-gray {
    color: gray;
}

.cr-module-panel, 
.cr-module-panel {
    width: 240px;
    display: none;
    padding: 3px;
}
.cr-module-panel-label {
	font-size: 14px;
	margin-top: 12px !important;
	color: #aaccff;
}
#cr-module-panel-link-button {
	margin-bottom: 20px;
}

/* Customer specific */

/* Exergi */

.cr-room-header-exergi {
	background-color: #001b48 !important;
	border-color: #001b48;
}
.cr-footer-exergi {
	background-color: #001b48 !important;
	border-color: #001b48 !important;
}
.cr-menu-table-exergi {
	background-color: #001B48;
}
.cr-menu-table-exergi > tbody > tr > td {
	background-color: #001B48;
	border-color: #0D7CAF;
}
.cr-table-exergi {
	background-color: #001B48 !important;
}
.cr-table-exergi th {
	background-color: #223366 !important;
}
.cr-table-exergi .cr-col-hidden {
	color: #001B48;
}
.cr-table-exergi tr.cr-anvalues-value-list-selected .cr-col-hidden, 
.cr-table-exergi tr.cr-flow-value-list-selected .cr-col-hidden {
	color: #213b68;
}
.cr-table-exergi .cr-anvalues-value-list-selected, 
.cr-table-exergi .cr-flow-value-list-selected {
	background-color: #213b68;
}
.cr-table-exergi .cr-alarm-list-selected,
.cr-table-exergi .cr-anvalues-alarm-list-selected, 
.cr-table-exergi .cr-flow-alarm-list-selected {
	background-color: #213b68;
}
.cr-map-exergi .leaflet-popup-content-wrapper, 
.cr-map-exergi .leaflet-popup-tip {
	background-color: #001b48 !important;
}
.cr-alarm-settings-panel-exergi {
	background-color: #001b48 !important;
	border-color: #444477 !important;
}

/* Vattenfall Uppsala */

.cr-customer-logo-vfallu img {
	width: 52px !important;
	position: relative;
	left: 37px;
}
