@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../font/OpenSans-Light.eot');
  src: local('Open Sans Light'), local('OpenSans-Light'), url('../font/OpenSans-Light.woff') format('woff'), url('../font/OpenSans-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../font/OpenSans-Semibold.eot');
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url('../font/OpenSans-Semibold.woff') format('woff'), url('../font/OpenSans-Semibold.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font:14px 'Open Sans',Verdana,sans-serif;
  line-height: 21px;
  /* background: url("../img/body_back.png") repeat-x top #E8E8E8; */
  /* background-image: url("../img/TestSystem.png"), linear-gradient(#FFFFFF, #989898); */
  background-image: linear-gradient(#FFFFFF, #989898);
  background-attachment: fixed;
  background-size: cover;
}

img {
  border: none;
}

h1, h2, h3, h4 {
  color: #005577;
  font-weight: 600;
  padding: 0 0 10px 0;
  margin: 0 0 10px 0;
  line-height: 1;
  font-size: 24px;
}
h3, h4 {
  font-size: 19px;
  padding: 6px 0 10px 0;
}
h1, h3 {
  border-bottom: 1px dotted grey;
  margin: 0 0 15px 0;
}
#sidebar h3, .sidebar h3{
  font-size:17px;
  width: 95%;
}

fieldset {
  border-radius: 8px; 
  margin-bottom: 10px;
}

a {
  cursor: pointer;
  color: #005577;
  text-decoration: none;
  outline: none;
}
a:hover {
  text-decoration: underline;
}
.contentgroup a {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.disable-link {
  cursor: default;
  pointer-events: none;        
  text-decoration: none;
  color: grey;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: grey url("../img/loading.gif") no-repeat center;
  opacity: 0.8;
  z-index: 99;
}
#overlay.noloading {
  background: grey;
}


#remainingtime {
  position: fixed;
  top: -1px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 400px;
  height: 30px;
  color: red;
  background: #F6CECE url("../img/reload.png") no-repeat right 10px center;
  border: 1px solid red;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  z-index: 101;
}
#remainingtime.noreload {
  background: #F6CECE;
  cursor: default;
}
#remainingtime.noreload a {
  color: red;
  text-decoration: underline;
}

#pdflinks {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  width: 350px;
  min-height: 100px;
  max-height: 80%;
  background: white;
  border: 1px solid grey;
  margin: auto;
  padding: 10px;
  z-index: 100;
  overflow-y: scroll; 
}


#container {
  position: relative;
  background: white;
  min-height: 100%;
  width: 980px;
  margin: 0 auto;
  -moz-box-shadow: 0 0 6px #888;
  -webkit-box-shadow: 0 0 6px #888;
  box-shadow: 0 0 6px #888;
}


#header {
  position: relative;
  background: url("../img/header.jpg") no-repeat top left;
  height: 145px;
  width: 100%;
}
#header h1 {
  position: absolute;
  top: 95px;
  left: 35px;
  border: none;
}
#header .logo {
  position: absolute;
  top: 23px;
  right: 31px;
  outline: 0 none;
}

#headerbar {
  width: 100%;
  height: 32px;
  background: url("../img/headerbar.jpg") repeat-x;
}
#headerbar ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 25px;
  color: #EEEEEE;
}
#headerbar ul li {
  float: left;
  padding: 0;
  margin: 0 5px;
  width: 105px;
  height: 32px;
  line-height:32px;
  vertical-align: middle;
  text-align: center;
  font-weight: bold;
}
#headerbar ul li.expanded {
  width: 220px;
}
#headerbar ul li a {
  color: #EEEEEE;
  display: block;
}
#headerbar ul li.active a, #headerbar ul li:hover a {
  color: #5F5F5F;
  text-decoration: none;
}
#headerbar ul li.active, #headerbar ul li:hover {
  background: url("../img/headerbar_tab.jpg") bottom center no-repeat;
}
#headerbar ul li.expanded.active, #headerbar ul li.expanded:hover {
  background: url("../img/headerbar_expandedtab.jpg") bottom center no-repeat;
}

#headerbar ul li ul {
  display: none;
  position: absolute;
  list-style: none;
  margin: 0 0 0 1px;
  padding: 0;
  color: #5F5F5F;
  overflow: hidden;
  min-width: 87px;
  background: white;
  border-left: 9px solid white;
  border-right: 9px solid white;
  opacity: 0.9;
  -moz-box-shadow:  0 5px 5px #777;
  -webkit-box-shadow:  0 5px 5px #777;
  box-shadow: 0 5px 5px #777;
  z-index: 1;
}
#headerbar ul li ul li {
  clear: both;
  padding: 0 5px 0 20px;
  margin: 0;
  min-width: 100%;
  width: auto;
  height: 32px;
  line-height:32px;
  white-space: nowrap;
  vertical-align: middle;
  text-align: left;
  font-weight: bold;
  background: white url("../img/bullet.png") center left no-repeat;
  border-bottom: 1px dotted grey;
}
#headerbar ul li ul li:last-child {
  border: none;
}
#headerbar ul li:hover ul {
  display: block;
}
#headerbar ul li:hover ul li {
  background: white url("../img/bullet.png") center left no-repeat;
}
#headerbar ul li ul li a {
  color: #5F5F5F;
}
#headerbar ul li ul li:hover a {
  color: black;
}



#logout {
  /* position: absolute;
   right: 30px;
  top: 148px; */
  transform: translate(-5%, 20%);
  padding: 4px 30px 4px 6px;
  float: right;
  width: 168px;
  height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #E8E8E8 url("../img/logout.png") center right no-repeat;;
  font-size: 13px;
  line-height: 16px;
  border: 1px solid white; 
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
#logout a {
  color: #222;
}
#logout a.logout {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  width: 25px;
  height: 25px;
}


#footer {
  position: relative;
  background: url("../img/footer.jpg") repeat-x;
  height: 36px;
  line-height: 36px;
  font-size: 12px;
  width: 980px;
  margin: -36px auto 0 auto;
  -moz-box-shadow: 0 6px 6px #888;
  -webkit-box-shadow: 0 6px 6px #888;
  box-shadow: 0 6px 6px #888;
  color: #97999A;
}
#footer span {
  padding: 0 30px;
}
#footer a {
  color: #97999A;
}
#version {
  float: right;
}


#content {
  margin: 30px 30px 0 30px;
  padding-bottom: 36px;
}

.clear {
  clear: both; 
}



.contentgroup, .sidebar, #sidebar {
  margin: 0;
  padding: 35px 30px 60px 30px;
  width: 622px;
  background: white url("../img/group_top.png") top repeat-x;
  background: white
    url("../img/group_left.png") top left no-repeat, 
    url("../img/group_right.png") top right no-repeat, 
    url("../img/group_top.png") top repeat-x;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.contentgroup {
  float: left;
}
#sidebar, .sidebar {
  position: absolute;
  top: 251px;
  left: 50%;
  margin-left: 253px;
  padding: 35px 15px 50px 22px;
  width: 170px;
  line-height: 24px;
}
#sidebar.top, .sidebar.top {
  position: fixed;
  top: 20px;
}

#pin {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  right: 3px;
  cursor: pointer;
  background: url("../img/pin.png");
}
#pin.pinned {
  background: url("../img/pinned.png");
}
#navselect {
  width: 160px;
  margin-left: -3px;
  border: none;
}

.collapsed {
  height: 20px;
  padding: 35px 30px 15px 30px;
  border-bottom: 45px solid white;

}
.collapser, .collapserall, .adddevice, .addthreshold, .addfile, .addusermappingdropdown, .addcontext, .addcompany, .defaultsort, #search_device {
  position: absolute;
  right: 30px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.adddevice {
  right: 80px;
  background: url("../img/icon_add.png") center no-repeat;
}
.addfile, .addthreshold {
  right: 55px;
  background: url("../img/icon_add.png") center no-repeat;
}
.defaultsort {
  right: 55px;
  background: url("../img/up_down.png") center no-repeat;
}
#search_device {
  right: 55px;
  background: url("../img/magnifier.png") center no-repeat;
}
.addusermappingdropdown {
  background: url("../img/icon_add.png") center no-repeat;
}
.addcompany {
  background: url("../img/icon_add.png") center no-repeat;
}
.addcontext {
  background: url("../img/icon_add.png") center no-repeat;
}
.collapser {
  background: url("../img/down.png") center no-repeat;
}
.collapser.up {
  background: url("../img/up.png") center no-repeat;
}
.collapserall {
  background: url("../img/down2.png") center no-repeat;
}
.collapserall.up {
  background: url("../img/up2.png") center no-repeat;
}


.indexgroup {
  float: left;
  margin: 0;
  padding: 0;
  width: 686px;
}
.indexgroup a:nth-child(even) {
  display: inline-block;
  margin: 0 20px 20px 0;
}
.line {
  clear: both;
  width: 686px;
  height: 4px;
  margin: 0 0 20px 0;
  border-bottom: 1px dotted grey;
}

input, button, select {
  margin: 4px auto;
  font: 14px 'Open Sans',Verdana,sans-serif;
  outline: none;
}
.input2 {
  float: left;
  margin: 4px auto;
  font: 14px 'Open Sans',Verdana,sans-serif;
  outline: none;
}
#savemode {
  width: 165px;
  margin-bottom: 10px;
}
.cancel {
  position: relative;
  top: 1px;
  float: right;
  padding: 2px;
  margin: 4px 5px;
}

.label {
  clear: left;
  float: left;
  height: 28px;
  width: 210px;
  line-height: 28px;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.label-checkbox {
  clear: left;
  float: left;
  height: 28px;
  width: 210px;
  line-height: 28px;
  margin: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.label-checkbox.long {
  width: 300px;
}
.label-upload {
  cursor: pointer;
  color: #005577;
  text-decoration: none;
  outline: none;
}
.label-upload:hover {
  text-decoration: underline;
}
.input {
  float: right;
  width: 380px;
  height: 26px;
  padding: 0 20px 0 2px;
  margin: 4px 0;
  border: 1px solid lightgrey;
  border-top: 1px solid grey;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
.input.label {
  float: left;
  width: 180px;

}
.input:hover {
  border: 1px solid #C7E2F1;
  border-top: 1px solid #5794BF;
}
.input input[type="text"], .input input[type="password"], .input div.disabled, select.inputstyle {
  width: 100%;
  height: 26px;
  line-height: 26px;
  padding: 0 0 4px 0;
  margin: 0;
  border: none;
  background: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}
.input.disabled {
  width: 379px;
  padding-left: 3px;
  background-color: #f9f9f9;
  line-height: 26px;
}

.input.disabled:hover {
  border: 1px solid lightgrey;
  border-top: 1px solid grey;
}
.input.disabled input[type="text"][disabled], .input.disabled div.disabled, div.input.disabled {
  color: grey;
}
input[type="checkbox"].checkbox {
  position: relative;
  top: 7px;
  left: 10px;
  float: left;
}
.input select {
  position: relative;
  top: -2px;
  width: 99%;
  border: none;
}
.input select option {
  height: 20px;
}
.inputInTable {
  width: 102px; 
  margin: 1px 0;
  height: 20px;
  line-height: 20px;
  padding: 1px;
}
select.inputstyle {
  padding-top: 2px;
  margin-bottom: 4px;
  width: 99%;
}

.magnifier, .close {
  position: relative;
  float:right;
  top: -30px;
  left: 20px;
  width: 20px;
  height: 26px;
  cursor: pointer;
}
.magnifier {
  background: url("../img/magnifier.png") center no-repeat;
}
.close {
  background: url("../img/close.png") center no-repeat;
}
.magnifier.checkbox {
  top: 5px;
  left: -1px;
}
.resetFilter {
  position: relative;
  float:right;
  top: -28px;
  right: 1px;
  margin-bottom: -30px;
  width: 20px;
  height: 24px;
  cursor: pointer;
  background: url("../img/close.png") center no-repeat;
}

#searchcancel { 
  cursor: pointer; 
}

.prevnext {
  white-space: nowrap;
}
#sidebar a img, .sidebar a img, .prevnext img.trans {
  position: relative;
  top: 2px;
  margin-right: 5px;
}
.prevnext img.trans {
  opacity: 0.3;
}
.subtitle {
  margin: -10px 0 15px 0;
}


textarea.comment {
  width: 160px;
  height: 50px;
  margin-bottom: 5px;
}
.required {
  outline: 1px solid red;
}


#login, #resetpwd {
  margin: 25px 0 0 6px;
}
#login div, #resetpwd div {
  margin-top: 8px;
}
#login input[type="text"], #login input[type="password"], #resetpwd input[type="text"] {
  width: 200px;
}
#login input[type="submit"], #resetpwd input[type="submit"] {
  margin-top: 8px;
}

.red {
  color: red !important;
}



.table {
  width: 100%;
}
.table table {
  width: 100%;
}
.table tr:nth-child(odd) td {
  background: lightgrey;
}
th { 
  text-align: left;
}
.tablesorter th {
  background-repeat: no-repeat;
  background-position: center right;
  cursor: pointer;
}
.tablesorter .headerSortUp, .tablesorter .tablesorter-headerAsc {
  background-image: url("../img/asc.gif");
}
.tablesorter .headerSortDown, .tablesorter .tablesorter-headerDesc {
  background-image: url("../img/desc.gif");
}
.tablesorter-filter-row td {
  text-align: right;
}
.tablesorter-filter {
  width: calc(98% - 20px);
  padding-right: 20px;
}
.tablesorter-filter.disabled, .tablesorter-filter.disabled +div {
  display: none;
}

.tablesorter thead, .tablesorter tbody {
  display: block;
}
.tablesorter tbody {
  height: 100%;
  overflow: auto;
}
.tablesorter tr {
  height: 23px !important;
}
.tablesorter tr.odd td {
  background: lightgrey !important;
}
.tablesorter tr.even td {
  background: white !important;
}
.tablesorter tr.checked {
  display: table-row !important;
}
.tablesorter tbody tr:hover td {
  background-color: #B9D0FB !important;
}
.tablesorter tr.checked td {
  background-color: #94ADDB !important;
}


.external {
  position: relative;
  top: 2px;
  left: 1px;
}
.deleteFile {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
  top: 3px;
  background: url("../img/icon_del.png") center no-repeat;
  cursor: pointer;
}
.deleteFileCancel {
  background: url("../img/icon_add.png") center no-repeat;
}

.deleteDevice, .deleteThreshold, .deleteContext, .deleteEngine {
  width: 16px;
  height: 16px;
  background: white url("../img/icon_del.png") center no-repeat;
  cursor: pointer;
}
.deleteDeviceCancel, .deleteThresholdCancel, .deleteContextCancel {
  background: white url("../img/icon_add.png") center no-repeat;
}
.delete, .deleteRow {
  opacity: 0.3;
}

#stromkreissuche .row {
  float: left;
  margin-left: 3px;
}
#stromkreissuche .row:first-child { margin-left: 0; }
#stromkreissuche .row select{
  width: 153px;
}
#stromkreissuche select {
  height: 24px;
}
#stromkreissuche select option {
  height: 20px;
}

input.geraeteAdd {
  margin:4px;
}

#geraete_table_nav {
  bottom: 0;
  display:inline-block; 
  float:left; 
  margin-top:13px
}
#geraete_table_nav img {
  cursor:pointer; 
}
#geraete_table_count {
  position:relative; 
  bottom:2px;
}
.geraeteRow td {
  /*overflow: hidden;*/
  padding: 0 1px;
}

#deviceTable {
  font-size: 13px;
}

#archiveTable td{
  font-size: 12px;
  border-spacing: 0em;
  padding-top: 0em;
  padding-bottom: 0em;
  padding-left: 0.7em;
  padding-right: 0.7em;
}

#archiveTableButton {
  font-size: 12px;
}

.adddevicecomment {
  text-decoration: none !important;
  cursor: pointer;
}
.adddevicecomment:hover {
  text-decoration: underline !important;
}
.adddevicecomment img {
  position: relative;
  top: 4px;
}
.devicedesc {
  display: inline-block;
  width: 130px !important;
  font-size: 13px;
  padding: 0 1px;
}
span.devicedesc {
  border: 1px solid white;
}
.deviceval {
  width: 322px !important;
  margin: 1px 0;
  font-size: 13px;
  padding: 0 1px;
}

.maintenance-warning {
  /* box */
  position:fixed; 
  top: 0; 
  left: 0; 
  z-index: 100; 
  width: 100%; 
  height: 50px; 
  background-color: yellow;
  border-radius: 5px;
  /* shadow */
  box-shadow: 0 0 10px black;
  /* content */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.link {
  background: none!important;
  border: none;
  padding: 0!important;
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}

/* Templates */

.templates {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;

  display: block;
  overflow-x: auto;
  white-space: nowrap;  
}

.templates td, .templates th {
  border: 1px solid #ddd;
  padding: 8px;
}

.templates tr:nth-child(even){background-color: #f2f2f2;}

.templates tr:hover {background-color: #ddd;}

.templates th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: grey;
  color: white;
}