@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&display=swap');
/*@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,400;1,700&display=swap');*/

body {
	background: #fff;
	background-position: center center;
	background-size: cover;
	background-repeat: repeat;
	font-size: 13px;
	color: #555;
	font-family: 'Roboto', sans-serif;
	font-kerning: normal;
	font-weight: normal;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	overflow-x: auto; /*this have to be set to 'auto' due to jquery ui!*/
	padding-top: 50px;
	min-height: 100vh;
	position: relative;
}

@media (max-width: 767px) {
	body {
		font-size: 12px;
		padding-top: 50px;
	}
	.form-control {
		font-size: 11px;	
	}
}

small, .small {
	font-size: 80%;
}

h1, h2, h3, h4, h5 {
	line-height: 1.5;
	Xfont-family: 'Ubuntu', sans-serif;
	Xfont-family: 'Roboto', sans-serif;
	
}

h1, h2 {
	margin-top: 50px;
	margin-bottom: 30px;
}

hr {
	margin: 35px 0;	
}

input[type=checkbox], input[type=radio] {
	Xmargin-top: 0;
}

@media (min-width: 768px) {
	.form-horizontal .control-label {
    	padding-top: 3px;    
	}
}

.hvr-sweep-to-right:before {
	background: #444 !important;
	transition-duration: 0.2s !important;
	border-radius: 4px;
}

.input-group {
	display: inline-table;
	line-height: 1; 
}

.input-group-addon {
	min-width: 20px;
	padding: 3px;
	background: rgba(255,255,255,0.01);
	font-size: 90%;
}

@media(max-width:767px) {
	.input-group-addon {
		min-width: 12px;
		padding: 1px;
		font-size: 80%;
	}	
}

input[type=text]:disabled + .input-group-addon {
	background: #eee;
	
}

input[type=text] + .input-group-addon {
	border-left: 0;
}

.input-group-addon + input[type=text] {
	border-left: 0;
}

.container {
	position: relative;
}

.clear {
	clear: both;
}

.left {
	float: left;
}

.right {
	float: right;
}

.text-right, .ta-right {
	text-align: right;
}

.uppercase, .ta-upper {
	text-transform: uppercase;
}

.faded {
	opacity: 0.7;
}

.faded-more {
	opacity: 0.5;
}

.bold {
	font-weight: bold;
}

.center {
	text-align: center;
}

.alert {
	margin-bottom: 5px;
}

a {
	color: #222;
}

a:hover,
a:focus {
	color: #000;
	text-decoration: none;
}

a[name]:not(.btn) { 
    margin-top: -230px;
    margin-bottom: 230px;
    display: block;
}

@media (max-width: 767px) {
	a[name]:not(.btn):not([name^="template"]) {
	    margin-top: -100px;
    	margin-bottom: 100px;
	}
}

p {
    margin: 0;
}

label[for],
[onclick] {
	cursor: pointer;
}

.notfound, .not-found  {
	padding-top: 50px;
	padding-bottom: 100px;
}

.row {
    margin-right: -6px;
    margin-left: -6px;
}

.col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
	padding-left: 6px;
	padding-right: 6px;
}

#cookie-notice {
  z-index: 999999;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-bottom: -500px;
  background: #fff;
  border-top: 2px solid rgb(30, 30, 30);
  color: #000;
  Xfont-weight: bold;
  padding: 15px 0;
  transition: 0.35s all;
}
#cookie-notice a,
#cookie-modal .cookie-modal-btn {
  margin: 5px;
  width: 90px;
  padding: 10px 5px 8px 5px;
}
#cookie-notice a#cookie-notice-edit-btn {
	width: 70px;
}

#cookie-modal .cookie-modal-btn {
  width: 160px;
}
#cookie-notice.open {
  margin-bottom: 0;
  transition: 0.35s all;
}

#cookie-notice a.btn-danger,
#cookie-modal .btn-danger {
	Xbackground: #333;
	Xborder-color: #000; 
}
#cookie-notice a.btn-danger:hover,
#cookie-modal .btn-danger:hover {
	Xbackground: #000;
}

#cookie-notice .cookie-text {
	line-height: 130%;
	text-align: left;
	font-weight: bold;
	font-size: 95%;
}
#cookie-notice .cookie-buttons {
	text-align: right;
}

@media (max-width:767px) {
	#cookie-notice {
		padding-left: 17px;
		padding-right: 5px;
	}
	#cookie-notice .cookie-buttons {
		text-align: left;
	}
	#cookie-notice a {
		margin-left: 0;
	}
}
#cookie-notice .small-note {
	font-weight: normal;
	Xfont-size: 90%;
}

#cookie-modal .checkbox-col {
	text-align: right;
	Xpadding-top: 3px;
	margin-top: -1px;
}

@media (min-width: 768px) {
	#cookie-notice .cookie-text {
		line-height: 351%;
	}
}

#notification {
	position: fixed;
	top: 0px;
	left: 0;
	width: 100%;
	text-align: center;
	font-size: 15px;
	Xfont-weight: bold;
	background: rgba(26, 124, 26, 0.9);
	color: white;
	z-index: 100000015;
	cursor: pointer;
	padding: 5px;
	height: 77px;
	display: table;
}

#notification.notification-warning {
	Xbackground: rgba(245, 96, 96, 0.9);
	background: rgba(236, 140, 50, 0.9);
}

#notification > span.centered {
	display: table-cell;
	vertical-align: middle;
}
#notification:focus {
	outline: none;
}

@media (max-width:768px) {
	#notification {
		font-size: 13px;
		padding: 2px 5px;
	}
}

#page {
	min-height: 300px;
}

#header {
	position: fixed;
	top: 0;
	Xbackground: rgba(255, 255, 255, 0.84);
	border-bottom: 0;
	width: 100%;
	z-index: 999999;
	font-size: 19px;
	Xbox-shadow: 0px 5px 20px 2px white;
	transition: 0.22s background;
}

#header .glyphicon {
	font-size: 70%;
}

@media (min-width:1400px) {
	#header .nav>li>a {
		padding: 20px;
	}
}

textarea[textautoresize] {
	transition: 0.2s height;
}

/* modal */
.modal {
	margin: 0;
	background: rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
	.modal-dialog {
		margin-top: 15px;
	}
}

@media (min-width: 800px) {
	.modal-xl .modal-dialog {
    	width: 700px;
	}
}	

.modal-open .modal {
	z-index: 100000005;
}

.modal-backdrop {
	z-index: 100000001;
}

.modal-header {
	border: 0;
}

#cookie-modal .modal-header {
	padding: 20px;
}

.modal-footer {
	border: 0;
	padding-top: 1px;
}

.modal-body {
	padding-top: 0px;
	padding-bottom: 22px;
}

.modal-content {
	border-radius: 12px;
	border: 3px solid #222;
}

.table {
	font-size: 90%;
}

.table tr td:last-child {
	text-align: right;
}

table.last-col-left tr td:last-child {
	text-align: left;
}

.form-control:focus {
    border-color: #555;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(175 175 175 / 60%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(163 163 163 / 60%);
}

*[data-edit-template] {
	margin: -4px -45px 1px -1px;
	padding: 4px 8px 3px 8px;
	position: relative;
	float: left;
	z-index: 99;
	opacity: 0.5;
	transition: 0.4s all;
}
*[data-edit-template]:hover {
	opacity: 1;
	transition: 0.4s all;
	color: black!important;
}

[data-edit-template] + [class^="edit-template-"] + [class^="t"] {
	min-height: 32px;
}

[class^="edit-template-"] iframe body {
	background: rgba(255, 255, 255, 0.3);
}

.form-control {
	height: 26px; 
	padding: 3px 8px;
}

@media(max-width:991px) {
	.form-control {
		height: 22px; 
		padding: 2px 1px 2px 3px;
		padding-right: 1px;
	}	
}

.form-horizontal .control-label {
	color: #777;
	text-align: left;
}

.form-horizontal .form-group {
	margin: 0 0 1px 0;
}

.form-group-header {
	opacity: 0.7;
	line-height: 0.1;
	font-size: 80%;
} 

/* DEBUG */
.debug-button, .debug-window {
	z-index: 999999;
}

.debug-button {
	right: 45px !important;
	bottom: 3px !important;
	border-radius: 4px;
}

.toggle-hide {
	display: none;
}

.dropdown-menu {
	min-width: 68px;
    max-height: 450px;
    overflow-x: auto;
}

/* LOGIN */
.login h2 {
	text-align: center;
}

#page.login {
	min-height: calc(100vh - 300px);
}

.form-signin {
    min-width: 250px;
    max-width: 320px;
    padding: 0 15px;
	display: block;
	margin: 150px auto;
	font-size: 13px;
}

@media (min-width: 1200px) {
	.form-signin {
		padding-top: 100px;
		transition: 0.25s;	
	}
}

.form-signup {
	max-width: 265px;
	width: 100%;
	display: block;
	margin: 50px auto;
	font-size: 13px;
}

.form-signin .logo,
.form-signin #logo {
	padding: 20px 50px;
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
}

.form-signin .form-control {
  position: relative;
  font-size: 16px;
  height: auto;
  padding: 10px;
  -webkit-box-sizing: border-box;
	 -moz-box-sizing: border-box;
		  box-sizing: border-box;
}

.form-signin .form-control:focus {
  z-index: 2;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.form-signin input[name="login"],
.form-signin input[name="username"] {
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#footer {
	padding: 25px 0 0 0;
	background: rgb(38 38 38);
	font-size: 16px;
	color: #ddd; 
	Xbox-shadow: 0 0 20px -1px rgba(0, 0, 0, 0.2);
	min-height: 125px;
	text-align: justify;
	text-transform: uppercase;
}

/*
#footer a {
	color: #ccc;
	padding-right: 100px;
}
*/

#footer a:hover {
	color: #eee;
}

.tail {
	background: #222;
	Xborder-top: 1px solid rgb(186, 235, 186);
	color: rgb(250, 240, 230);
	font-size: 12px;
	padding: 10px 0;
	Xfont-weight: bold;
	z-index: 5;
	position: absolute;
	bottom: 0;
	width: 100%;
}

.tail a {
	color: #fff;
}

.mceLayout {
	width: 100% !important;
}

#mce_fullscreen_container {
	background: rgba(255,255,255,0.95);
}

.note-editor.note-frame.panel-default {
	background-color: transparent;
	border-color: transparent;
	border: 0;
}

.note-editor.note-frame .note-editing-area .note-editable {
	border: 1px solid #ccc;
	border-radius: 3px 3px 0 0;
}

.note-editor.panel-default > .panel-heading {
	color: #333;
	background-color: transparent;
	border: 1px solid #cccccc;
    border-bottom: 0;
    padding: 0 0 3px 3px;
}

.note-editor .panel-heading.note-toolbar>.btn-group {
	margin-top: 3px;
    margin-right: 3px;
}

.panel-heading.note-toolbar .btn {
	padding: 4px 7px;
}
	
.note-editor.note-frame .note-editing-area .note-editable {
	border-top: 0;
	border-radius: 0;
}

#map {
	width: 100%;
	min-height: 300px;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0; 
}

.device {
	border-top: 1px solid #eee;
	padding-bottom: 10px;
	padding-top: 30px;
	margin-top: 10px;
}

.device:first-child {
	border-top: 0;
	margin-top: 0;
}

.device .btn.right,
.device .btn-group.right {
	margin-top: 4px;
	margin-left: 3px;
}

.device .btn-group.right .dropdown-toggle {
	margin-right: 3px;
}

.well {
	min-height: 52px;
	padding: 10px;
	margin-bottom: 12px;
	background-size: 380px;
	background-repeat: no-repeat;
	background-position: 0 39%;
}

.home .well {
	min-height: 60px;
}

#dashboard .well.double {
	min-height: 144px;	
}


#dashboard .well i.fa {
	font-size: 130%;	
	min-width: 22px;
}

#dashboard .well b {
	font-size: 200%;	
}

#dashboard .well.double.devices b {
	font-size: 400%;	
}

#dashboard .well.double.devices i {
	font-size: 330%;	
}


.well.mqtt {
	padding-top: 94px;
	background-image: url('/img/mqtt-logo.png');
	background-size: 90%; 
	background-position: 0 10%;
}

.well.siemens {
	background-image: url('/img/siemens-logo.jpg'); 
}
#dashboard  .well.siemens:not(.siemens1):not(.siemens2) {
	min-height: 72px;
}
.well.siemens1 {
	background-position: 0px -140px; 
}
.well.siemens2 {
	background-position: -200px -140px; 
}

.device .well {
	text-align: center;
	font-size: 85%;
	padding: 9px 2px;
	margin-bottom: 12px;
}

.device .well i:not(.in-text) {
	display: block;	
	margin-bottom: 5px;
}

.devices-list .device-icon {
	position: relative;
	top: -2px;	
}

.device-order {
	border-radius: 50%;
    border: 1px solid #111;
    font-size: 80%;
    font-weight: bold;
    line-height: 2.75;
    position: relative;
    top: -3px;
    left: -1px;
    margin-right: 10px;
    text-align: center;
    display: inline-block;
    width: 30px;
    height: 30px;
}

.device-icon {
	padding-right: 5px;	
}

.device-icon img {
	max-height: 35px;
	margin-left: -15px;
    margin-right: -10px;
}

.device-name {
	font-size: 20px;
	font-weight: bold;
}

@media (max-width: 991px) {
	.device-name {
		font-size: 15px; 
	}
	
}

.device-list-parameters {
	display: none;
}

.device .device-status {
	margin-bottom: 10px;
	clear: both;
}

.device-status .label {
	margin-right: 5px;
}

.device-parameters {
	border: 1px solid #eee;
	border-radius: 5px;
	margin-bottom: 7px;
	padding: 1px 8px;
	
}

.filterbar input[type=checkbox] {
	margin-top: 11px;
	margin-right: 5px;
}

.filterbar label {
	font-weight: normal;
	font-size: 80%;
    vertical-align: middle;
    line-height: 105%;
}

/*
.navbar-brand > img {
	max-height: 40px;
	margin-top: -10px;
*/
#header .navbar-brand {
	padding-top: 5px;
}

#header #logo {
	max-height: 40px;
	display: block;
	width: auto;
}

table .logo-thumb {
	max-height: 28px;
	max-width: 50px;
}

.glyphicon.in-text {
	font-size: 80%;
}

.fa.in-text {
	font-size: 92%;
}

.icon-col {
	display: inline-block;
	width: 25px;
	text-align: center;
}

.languages-dropdown .label {
	margin-top: 3px;
}

.languages-dropdown li.active .label {
	margin-top: 2px;
    border: 1px solid #bbb;
}

.js-table-searchbox input[type="text"] {
	border-radius: 4px !important;
}

.glyphicon-spin,
a[disabled] .disabled-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.devicelogs .table-striped>tbody>tr.errored:nth-of-type(odd) {
	background-color: #ffe9e9;
}

.devicelogs .table-striped>tbody>tr.errored {
	background-color: #ffefef;
}

.devicelogs .btn-error,
.devicelogs tr.errored .btn-default {
	border: 1px solid #ffd0d0;
	background-color: #ffe0e0;
	color: #666;
}

.devicelogs .btn-error:hover,
.devicelogs tr.errored .btn-default:hover {
	border: 1px solid #ffb0b0;
	background-color: #ffe0e0;
}

.checkbox-first .input-group {
	display: inline-block;
	margin-left: 15px;
	margin-top: 2px;
	float: left;
}

.checkbox-first .control-label {
	padding-left: 10px;
}

.checkbox-group .form-group {
	margin-left: -15px;
	margin-right: -15px;
}

.checkbox-group .col-sm-6:nth-of-type(even) {
	margin-left: -40px;
}

nav .navbar-checkbox {
    margin: 8px 15px;
}

@media (max-width: 767px) {
	.navbar.filterbar {
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (min-width: 768px) and (max-width: 995px) {
	#header .navbar .nav>li,
	#header .navbar .nav>li.active  {
		font-size: 70%;
	}
}

#dashboard a.well {
	display: block;
}

#dashboard a.well:hover {
	background-color: #e6e6e6;
    border-color: #adadad;
}

#dashboard .btn-group {
	margin-bottom: 10px;
}

#dashboard td.small {
    padding-top: 8px;
}

#devices .device-description {
    padding-bottom: 12px;
}

#devices .device-description p {
	display: inline-block;
}

.navbar-input {
	margin: 10px;
	width: auto;
}

#page .navbar-right {
	margin-right: 0;
}

@media (max-width: 500px) {
	.hidden-xxs {
		display: none;
	}
}

#translations td {
	padding: 1px;
}

#translations .btn-sm {
	padding: 4px 10px;
}

#translations tr td:first-child {
	padding-top: 6px;
}


.device-logs-table tr td:nth-child(3) {
	font-size: 12px;
	letter-spacing: -0.1px;
}

@media (max-width: 995px) {
	.device-logs-table tr td:nth-child(3) {
		font-size: 10px;
	}
}

.devicelogs .filterbar .navbar-form {
	border: none;
}

.map-pin img {
    max-height: 24px;
}

.map-pin.pin-dual img {
    margin-left: -8px;
    margin-right: -9px;
}

@keyframes flash-pin-animation {
  0%    {opacity: 0;}
  10%   {opacity: 1;}
  90%   {opacity: 1;}
  100%  {opacity: 0;}
}

.map-pin.pin-flash {
  animation-name: flash-pin-animation;
  animation-duration: 1.5s;
  animation-iteration-count: infinite;
}

.mqtt-indicator {
    position: absolute;
    bottom: 2px;
    right: 0;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    width: 12px; 
    height: 12px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devices-list .mqtt-indicator {
    bottom: -6px;
    right: -2px;
    width: 16px;
    height: 16px;
    font-size: 12px;
}

.map-pin {
    position: relative;
}
