/*
    Mango - Open Source M2M - http://mango.serotoninsoftware.com
    Copyright (C) 2006-2011 Serotonin Software Technologies Inc.
    @author Matthew Lohbihler

    This program 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.

    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/* LAYOUT STYLES */
html > body {
	margin: 0px;
	padding: 0px;
}
a, a:visited, a:link, .link {
	text-decoration: underline;
}
a.titleLink, a.titleLink:visited, a.titleLink:link {
	font-weight: bold;
}
.titlePadding {
	padding:1px 1px 0px 1px;
}
.ptr {
	cursor: pointer;
}

/* --- Headers --- */
#mainHeader {
	display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
#eventsRow {
	align-self: center;
}
#subHeader {
	display: flex;
    justify-content: space-between;
	min-width: 500px;
}
#navbarUserInfo {
	margin-right: 30px;
}

#navbarUserProperties .navbar-dropdown--hidden {
	visibility:hidden;
	left:0px;
	top:15px;
}

/* --- Tables --- */
.rowHeader td, .smRowHeader td {
	text-align: center;
    white-space: nowrap;
}

.rowHeader td {
	padding: 3px 10px 3px 10px;
}
.smRowHeader td {
	padding: 2px 3px 2px 3px;
}
a.rowHeaderLink, a.rowHeaderLink:visited, a.rowHeaderLink:link, a.rowHeaderLink:hover {
	text-decoration: underline;
}

.marR {
	margin-right: 5px;
}
.marB {
	margin-bottom: 5px;
}

/* --- Form styles --- */
.formLabel, .formLabelRequired {
	white-space: nowrap;
	vertical-align: top;
}
.formLabelRequired, .formError {
	font-weight: bold;
}
.formVeryShort {
	width: 30px;
}
.formShort {
	width: 50px;
}
.formLong {
	width: 250px;
}
input[type="submit"], input[type="button"] {
	overflow: visible;
}
/* --- View Styles --- */
.controlsDiv {
    position: absolute;
    visibility: hidden;
    left: 0;
    top: -1px;
    z-index: 1;
    margin: 1px 0px 1px 0px;
    padding: 0;
}
.controlsDiv table {
    list-style: none;
    margin: 0;
    padding: 0;
}
.controlsDiv td {
    list-style: none;
    margin: 1px;
    padding: 0;
    width: 16px;
    height: 16px;
}
.controlsDiv td div, .controlContent {
    padding: 1px 5px 1px 5px;
    margin: 0px;
    white-space: nowrap;
    text-align: left;
	font-weight: normal;
    position: absolute;
    visibility:hidden;
    left: 15px;
    top: 0px;
}

.labelDiv, .windowDiv {
    position:absolute;
    padding:1px 5px 1px 5px;
    margin:0px;
    white-space:nowrap;
    text-align:left;
	font-weight: normal;
	z-index: 20;
}
.imageDiv {
    z-index:10;
    left:18px;
    position:absolute;
    padding:0px;
    margin:0px;
    white-space:nowrap;
}

#viewContent {
	position: relative;
	margin: 0px;
	padding: 0px;
	overflow-x: auto;
	max-width: 100%;
}
#viewContent img {
	display: block;
	margin: 0px;
	padding: 0px;
}
.componentMin {
    top:0px;
    left:0px;
    margin:0px;
    padding:0px;
    width:16px;
    height:16px;
}

.simpleRenderer, .simpleRenderer2 {
    white-space:nowrap;
    text-align:left;
	font-weight: normal;
}

.simpleRenderer {
	line-height:16px;
}

/* Absmiddle workaround */
span.absmiddle img {
	padding: 0;
	margin: 0;
	vertical-align: middle;
	display: inline;
}


/* Documentation float pane style overrides */
html > body .dojoFloatingPaneCloseIcon {
    background-image: url(../images/cross_doc.png);
    cursor: pointer;
}
html > body .dojoFloatingPaneClient p, #help p {
	padding: 0px;
	margin: 0px 0px 10px 0px;
}
#help h1 {
	padding: 0px;
	margin: 20px 0px 10px 0px;
}
html > body .dojoFloatingPaneClient h1, #help h2 {
	padding: 0px;
	margin: 0px 0px 10px 0px;
}
html > body .dojoFloatingPaneClient img, #help img {
	vertical-align: bottom;
}

/* --- Styles for weekly 15 minute interval schedules. --- */
.qoff {
    background-color: #FF4000;
}
.qon {
    background-color: #B4CE96;
}
.qreg {
    border: 1px solid #699D2E;
}
.qhlt {
    border: 1px solid #FF9D2E;
}

.hreg {
    border: 1px solid #FFFFFF;
}
.hhlt {
    border: 1px solid #FF9D2E;
}

.selectItem {
	width:100%;
}

.windowDiv .selectDiv {
	display:none;
	max-height:100px;
	overflow:auto;
}

/**
 * Enhanced image chart
 */
.enhancedImageChart {
	background-color: white;
}
.enhancedImageChartLegend {
	position:static !important;
	background-color: white;
	padding: 5px;
	display: inline-block;
}
.enhancedImageChartLegend > div {
	margin-top: 2px;
}
.enhancedImageChartConfig {
	position: absolute !important;
	top: 0px !important;
	left: 100% !important;
	float: right;
	padding-left: 5px;
	display: block;
	background-color: white;
	width: 240px;
	border: 1px outset #0E87EB;
	z-index: 1;
}

.enhancedImageChartConfig > div {
	width: 100%;
	display: inline-block;
}
.enhancedImageChartConfig div.margin1{
	margin-top: 15px;
}
.enhancedImageChartConfig div.margin2{
	margin: 5px 0px;
}
.enhancedImageChartConfig label.margin{
	margin: 0px 5px;
}
.enhancedImageChartConfig span{
	font-weight: bold;
	margin: 5px 0;
}

/* To fix new css changees */
.form-box {
    width: 20px;
}
.login-button {
    width: 165px;
}

img[src$="blue.png"], img[src$="accept.png"], img[src$="theme.png"], img[src^="images/"]:not(#viewBackground){
	height: 16px;
	width: 16px;
}

/* *** Main *** */
#instanceDescription {
	padding:5px;
	white-space: nowrap;
}

/* Login form */
.login-container {
	margin: 100px auto 10px auto;
	background-color: #61B3F2;
	width: 290px;
	border-radius: 10px;
}
.login-browser {
	text-align: center;
	padding-top: 10px;
}
.login-browser #browser {
	font-weight: bold;
}
.login-browser #browserImg {
	height: 10px;
	width: auto;
}

.login-box > form {
	margin: 0 auto;
	width:200px;
}

.login-box .form-box > .formField > input {
	width: 200px;
	height: 20px;
}
.login-box .login-button > input {
	padding: 5px 20px;
	margin-left:30%;
	margin-top:10px;
}

/* Fixed styles */
/* Main Header */


.userName {
	font-weight: bold;
}

.flex-default {
	display: flex;
	align-items: center;
}

.datasource-row {
    padding:0px 0px 0px 30px;
}

#pointDetails {
	position:fixed;
	bottom:0;
	width:38%;
}

form.view-edit-form {
    max-width: 100vw;
    overflow-x: auto;
}

.buttonoff {
	background-color: #e7e7e7;
	color: black;
	padding: 3px 3px;
	border-radius: 8px;
	text-align: center;
	font-size: 12px;
	margin: 3px 3px;
	cursor: pointer;
	-webkit-transition-duration: 0.4s; /* Safari */
	transition-duration: 0.4s;
	border: 1px solid black;
	font-weight: bold;
}

.buttonoff:hover:enabled {
	box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
	cursor: pointer;
}

.buttonoff:hover:disabled {
	cursor: not-allowed;
}

.buttonoff:disabled,
	button[disabled] {
		border: 1px solid #999999;
		background-color: #e7e7e7;
		color: #ababab;
	}