
body {
  font-size:11px;
}

.container {  
  width: 1200px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 .1rem;
  padding: 2rem .5rem;
  font-size: .9rem;
}

.container .logo {
  margin: 0 auto;
  width: 14rem;
}

.container > .form {
  width: 15rem;
  margin: 0 auto;
}

.form > * {
  margin-bottom: 1rem !important;
  text-align: center;
}

.form input:not(#remember) {
  width: 100%;
  line-height: 1.5rem;
  margin-bottom: .5rem !important;
}

.modalLoading {
  display:    none;
  position:   fixed;
  z-index:    1000;
  top:        0;
  left:       0;
  height:     100%;
  width:      100%;
  background: rgba( 255, 255, 255, .8 ) 
    url('../images/loading.gif') 
    50% 50% 
    no-repeat;
}
body.loading { overflow: hidden; }
body.loading .modalLoading { display: block; }
.modalLoading span {
  position: relative;
  font-weight: bold;
  font-size: 15px;
  color: #36c;
  top:calc(50% - 10px);
  left:calc(50% - 25px);
}

.pingMain {
  min-height: 100%;
  margin: 80px 20px 60px 20px;
}

fieldset {
  border:0;
  display:table;
  margin:20px;
  padding:0;
}

fieldset.highlight {
  border:1px solid #1c8fd4;
  display:inline-block;
  margin:0;
  padding:20px 30px 20px 20px;
}

fieldset.highlight + * {
  clear:both;
}

fieldset > label {
  display:table-cell;
  box-sizing:border-box;
  vertical-align:middle;
  color: #295280;
}

fieldset > div > div, fieldset > div {
  display:table-cell;
  vertical-align:top;
}

fieldset > div > div > label {
  display:block;
}

fieldset.indent > label {
  padding-left:20px;
}

fieldset > div.multiselect > input[type="checkbox"]:not(.switch) {
  width:auto;
}

fieldset > div:not(.multiselect) > input[type="checkbox"]:not(.switch) + label:before {
  -webkit-user-select: none; /* webkit (safari, chrome) browsers */
  -moz-user-select: none; /* mozilla browsers */
  -khtml-user-select: none; /* webkit (konqueror) browsers */
  -ms-user-select: none; /* IE10+ */
  user-select:none;
  border:1px solid #c3c3c3;
  box-sizing:border-box;
  color:#ffffff;
  content:"";
  display:inline-block;
  height:24px;
  margin-right:5px;
  padding:5px;
  vertical-align:bottom;
  width:24px;
}

fieldset > div:not(.multiselect) > input[type="checkbox"]:not(.switch):focus + label:before {
  border:2px solid #1c8fd4;
  box-shadow: 0 0 3px 3px #1c8fd4;
}

fieldset.disabled {
  color: lightgrey;
}

fieldset > div > div > input[type="radio"] {
  /*
   * use a height and width of 1px so it is tiny and hidden behind our label, because
   * opacity 0 is still clickable
   */
  height:1px;
  opacity: 0;
  position:absolute;
  width:1px;
}

fieldset > div > div > input[type="radio"] + label {
  -webkit-user-select: none; /* webkit (safari, chrome) browsers */
  -moz-user-select: none; /* mozilla browsers */
  -khtml-user-select: none; /* webkit (konqueror) browsers */
  -ms-user-select: none; /* IE10+ */
  user-select:none;
  background-color:#f4f6f7;
  box-sizing:border-box;
  color:#737373;
  display:block;
  height:30px;
  padding:5px 10px;
}

fieldset > div > div > input[type="radio"] + label:hover {
  color:#1c8fd4;
}

fieldset > div.radio
{
  border-radius:4px;
  overflow:hidden;
}

fieldset > div > div > input[type="radio"]:checked + label {
  background-color:#1c8fd4;
  color:#ffffff;
}

fieldset > div > div > input[type="radio"]:focus + label {
  box-shadow: inset 0 0 3px 3px #61b1e1;
  position:relative;
  z-index:1;
}

fieldset > div.range {
}

fieldset > div.range > * {
  display:block;
  float:left;
  margin-right:5px;
}

fieldset > div.range > input {
  width:300px;
}

.Modal fieldset div input[type=text], .Modal fieldset div textarea, .Modal fieldset div select {
  width: 300px;
}

fieldset > div > input[type="number"],
fieldset > div > input[data-type="number"]
{
  width:75px !important;
}

fieldset > div > span {
  display:inline-block;
  padding-top: 7px;
}

fieldset.wide.header
{
  font-weight:bold;
}

fieldset.wide > div > span {
  width:200px;
}

fieldset > div > span > label {
  display:inline;
}

.switch {
  position: relative; width: 50px;
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none;
}
.switch-checkbox {
  display: none;
}
.switch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  height: 20px;
  padding: 0;
  line-height: 20px;
  border: 2px solid #5C564F;
  border-radius: 41px;
  background-color: #5C564F;
  transition: background-color 0.3s ease-in;
  box-shadow: 1px 1px 2px #000;
}
.switch-label:before {
  content: "";
  display: block;
  width: 20px;
  margin: 0px;
  background: #ccc;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 25px;
  border: 2px solid #FFFFFF;
  border-radius: 41px;
  transition: all 0.3s ease-in 0s;
}
.switch-checkbox:checked + .switch-label {
  background-color: #3498DB;
}
.switch-checkbox:checked + .switch-label, .switch-checkbox:checked + .switch-label:before {
  border-color: #3498DB;
}
.switch-checkbox:checked + .switch-label:before {
  right: -5px; 
}

input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus {    
  box-shadow: inset 0px 1px 4px rgba(6, 72, 35, 0.86);
}

.menu-with-default {
  border: 0px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;
  position: relative;
  text-decoration: none;
}

.menu-with-default > .default {
  background-color: #1c8fd4;
  border-radius: 7px 0 0 7px;
  border-right: 1px solid #61b1e1;
  float: left;
  padding: 6px 15px;
  height: 15px;
}

.menu-with-default > .menu {
  background-color: #1c8fd4;
  background-image: url("../images/arrow_white_down.png");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border-radius: 0 7px 7px 0;
  color: #737373;
  float: left;
  padding: 5px 8px;
  position: static !important;
  width: 20px;
  height: 17px;
}

.action.menu {
  background-color: #bfbfbf;
  background-image: url("../images/arrow_white_down.png");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border-radius: 7px;
  display: inline-block;
  float: right !important;
  margin: 1px 10px;
  padding: 5px 10px;
  padding-right: 36px;
}

.filterOptions > div {
  float: right;
  vertical-align: middle;
}

.action.menu > .icon {
  background-image: url("../images/manage.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 16px;
  height: 16px;
  width: 18px;
}

.filter > input {
  background-image: url("../images/search.png");
  background-position: right 4px center;
  background-repeat: no-repeat;
  background-size: 16px;
  box-sizing: border-box;
  height: 28px;
  margin: 0px 0px 0px 10px;
}

.filterOptions {
  margin: 0px 0px 10px 0px;
  height: 27px;
}

.Shade {
  position: fixed;
  z-index: 200;
  width: 100%;
  height: 100%;
  opacity: .5;
  display: none;
  background: #000;
  top: 0;
  left: 0;
}

.shading {
  pointer-events: none;
}

.shading .Shade {
  display: block;
}

.Modal {
  display:none;
  z-index: 201;
}

.Modal > .content > h1, .Modal > .content > form > h1 {
  background-color: #2790d1;
  color: white;
  font-size: 16px;
  font-weight: bold;
  height: 40px;
  left: -18px;
  line-height: 40px;
  position: relative;
  top: 0px;
  width: calc(100% + 20px);
}

.Modal > .content > h1 + *, .Modal > .content > form > h1 + * {
  margin-top:40px;
}

.Modal > .content h2 {
  color:#2790d1;
  font-size:16px;
  font-weight:bold;
  margin:0;
  margin-bottom:15px;
}

.Modal fieldset {
  margin:20px;
}

.Modal fieldset > label {
  vertical-align:middle;
  width:160px;
}

.Modal fieldset > div > textarea {
  height:auto;
}

.Modal .buttons {
  text-align:right;
}

.Modal .buttons * {
  font-size:14px !important;
}

.Modal .close {
  background-image: url("../images/modal_close.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #ffffff;
  cursor: pointer;
  height: 16px;
  opacity: 0.2;
  position: absolute;
  right: 0px;
  top: 0px;
  width: 21px;
  z-index: 1;
  border: 2px inset black;
  padding: 10px;
}

.Modal .close:hover {
  opacity:0.5;
}

.Modal > .content {
  background-color: #ffffff;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  position: relative;
  z-index: 201;
  min-width: 400px;
  padding: 0px 10px 20px 10px;
}

#DeviceEditor, #pingBox {  
  min-width: 650px;
  z-index: 1000;
}

.btn {
  border: none;
  background: #3498db;
  -webkit-border-radius: 6;
  -moz-border-radius: 6;
  border-radius: 6px;
  text-shadow: 1px 1px 1px #636363;;
  -webkit-box-shadow: 0px 1px 3px #666666;
  -moz-box-shadow: 0px 1px 3px #666666;
  box-shadow: 0px 1px 3px #666666;
  font-family: Arial;
  color: #fcfcfc;
  font-size: 14px;
  padding: 3px 12px 3px 12px;
  text-decoration: none;
}

.btn:hover {
  background: #3cb0fd;
  text-decoration: none;
}

.btn:active {
  -webkit-box-shadow: 0px 0px 6px #0000ff;
  -moz-box-shadow: 0px 0px 6px #0000ff;
  box-shadow: 0px 0px 6px #0000ff;
}

.btn:focus {
  -webkit-box-shadow: 0px 0px 4px #f35106;
  -moz-box-shadow: 0px 0px 4px #f35106;
  box-shadow: 0px 0px 4px #f35106;
}

.btn:disabled {
  opacity: .7;
  pointer-events: none;
}

.red {
  background: darkred;
}

.red:hover {
  background: red;
}

.dark {
  background: #5c564f;
}

.dark:hover {
  background: #9f9f9f;
}

.error, .error-message {
  color: #e77c73;
}

.error-message {
  padding-top: 3px;
  display: none;
}

input.error, textarea.error {
  box-shadow: 0px 0px 4px red;
}

.statusText {
  background-position: 10px center;
  background-repeat: no-repeat;
  background-size: 20px;
  border: 1px solid transparent;
  color: #4c4c4c;
  display: inline-block;
  font-size: 13px;
  left: 50%;
  padding: 10px 10px 10px 40px;
  position: fixed;
  top: 44px;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  z-index: 10000;
}

.statusText.success {
  background-color: #d8ecd8;
  background-image: url("../images/status_success.png");
  border-color: #7ccb80;
  animation-delay: 20s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-name: fadeFocus;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
  -webkit-animation-delay: 20s;
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-name: fadeFocus;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-timing-function: ease-out;
  -moz-animation-delay: 20s;
  -moz-animation-duration: 1s;
  -moz-animation-fill-mode: forwards;
  -moz-animation-name: fadeFocus;
  -moz-animation-iteration-count: 1;
  -moz-animation-timing-function: ease-in;
  color: #4c4c4c;
}

.statusText.failure {
  background-color:#f9d8d3;
  background-image:url("../images/status_failure.png");
  border-color:#e77c72;
}

.statusText.info {
  background-color:lightyellow;
  border-color:khaki;
  padding-left:10px;
}

tr.Down {
  color: red;
}

tr.Warning {
  color: #999910;
}

tr.Up {
  color: green;
}

tr.None {
  color:#ccc;
}

tr.Paused {
  color:#3e76ff;
}

.action.menu > ul > li > div,
.action.menu > ul > li > a {
  background-color:transparent;
  background-position:10px center;
  background-repeat:no-repeat;
  background-size:16px;
  border:0;
  color:#737373;
  cursor:pointer;
  display:block;
  font-family:"Open Sans","HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 16px;
  font-weight: lighter;
  padding: 10px 12px 6px 36px;
  padding-left:40px;
  text-align:left;
  white-space:nowrap;
}


.menu > ul {
  list-style: none;
}
.menu {
  cursor: pointer;
}

.menu > .button {	
  left: 0;
  position: absolute;
  top: 0;
  z-index: 1;
}

.menu > ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0px;
  z-index: 200;
  background: #eee;
  top: 27px;
  box-shadow: 1px 1px 4px #111;
}

.menu.main:hover > ul {
  display: block;
}

.action.menu:hover {
  background-color: #999999;
}

.action.menu > ul > li:hover {
  background-color: #e5e5e5;
}

.singleActionMenu {
  display: none;
  position: absolute;
  box-shadow: 1px 1px 4px #111;
  min-width:200px;
  z-index: 300;
}

.singleActionMenu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  right: 0px;
  z-index: 200;
  background: #eee;		
}

.singleActionMenu > ul > li:hover  {	
  background: #bfbfbf;		
}

.singleActionMenu > ul > li > div {
  background-color: transparent;
  background-position: 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  border: 0;
  color: #737373;
  cursor: pointer;
  display: block;
  font-family: "Open Sans","HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 16px;
  font-weight: lighter;
  padding: 10px 12px 6px 36px;
  padding-left: 40px;
  text-align: left;
  white-space: nowrap;
}

.singleActionMenu h1 {
  background-color: #2790d1;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 10px;
}

.singleActionMenu .close {
  background-image: url("../images/modal_close.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  color: #ffffff;
  cursor: pointer;
  height: 16px;
  line-height: 40px;
  opacity: 0.2;
  position: absolute;
  right: 12px;
  top: 11px;
  width: 21px;
  z-index: 1;
  border: 2px inset black;
}

.singleActionMenu .close:hover {
  opacity:0.5;
}

.view {
  background-image: url("../images/menu/basic2-056.png");
}

.edit {
  background-image: url("../images/menu/basic3-067.png");
}

.delete {
  background-image: url("../images/menu/basic2-210.png");
}

#deviceDetails {
  background: #fff;
  width: calc(100% - 30px);
  left: 3px;	
}

#detailsTable {
  width:100%;
}

#detailsTable tbody th {
  text-align: right;
  padding-right: 5px;
}

#detailsTable tbody td {
  text-align: left;
  padding-left: 5px;
}

#deviceChart {
  width: 98%;
  height: 300px;
}

.status {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: #eee;
  color: #204a78;
  box-shadow: 1px 1px 3px #000;
}

.status div#refresh, .status div#lastUpdate {
  float: right;
  padding: 5px;
  margin: 2px;
  box-shadow: 0px 0px 2px #ccc inset;
  text-align: right;
}

#stats.status {
  top: 28px;
  height: 35px;
}

#stats > div {
  display: table-cell;
  float: right;
  padding: 5px;
  margin: 4px 5px;
  box-shadow: 0px 0px 3px #111;
  border-radius: 5px;
}

#stats .addnew {
  padding: 0;
  box-shadow: none;
}

#stats .icon {
  position: relative;
  top: 1px;
  margin: 0;
  padding: 0px 2px;
  display: block;
  float: left;
  width: 15px;
  height: 14px;
  margin-top: 1px;
}

#stats .counter {
  color: #fff;
  display: inline-block;
  padding: 1px 2px;
  text-align: center;
}

#stats > div.hide {
  display:none;    
}

#stats > div.up {
  background-color: green;
}

#stats > div.down {
  background-color: red;
}

#stats > div.warning {
  background-color: #999910;
}

#stats > div.paused {
  background-color: #3e76ff;
}

#stats > div.unknown {
  background-color: grey;
}

.up .icon {
  background: url("../icons/up.png") no-repeat 0px 0px/15px 15px
}
.warning .icon {
  background: url("../icons/warning.png") no-repeat 0px 0px/15px 15px
}
.down .icon {
  background: url("../icons/down.png") no-repeat 0px 0px/15px 15px
}
.paused .icon {
  background: url("../icons/paused.png") no-repeat 0px 0px/15px 15px
}
.unknown .icon {
  background: url("../icons/unknown.png") no-repeat 0px 0px/15px 15px
}

#groupEditor {
  display: none;
  background: #eee;
  box-shadow: 1px 1px 3px #000;
  position: absolute;
  margin: 5px;
  top: 20px;
  padding: 10px 10px 40px 10px;

}    
#groupEditor > h1 {    
  color: #fff;
  background: #2790d1;
  position: relative;
  top: -19px;
  left: -18px;
  font-size: 16px;
  font-weight: bold;
  line-height: 40px;
  width: calc(100% + 20px);
}

#deviceTable_wrapper {
  margin-bottom: 40px;
}

#pingSensors td.name {
  cursor: pointer;
}

#pingSensors td.ip > a {  
  color: green;
}

#sshTable.dataTable > tbody > tr {
  text-align: left;
}

.Sidebar div.loading {
  display: none;
  position: absolute;
  top: 44px;
  left: 152px;
  box-shadow: 1px 1px 4px #00040C;
  background: #ededed;
  padding: 20px;
}

#editDevice {
  width: 550px;
}

#backupConfig {
  width: 550px;
}

#backupConfig div.configViewer {
  width: 90%;
  padding: 50px 5px 5px 110px;
  z-index: 300;
  height: calc(100% - 83px);
  overflow: auto;
}

#naviview {
  display: table;
  position: absolute;
  top: 50px;
  left: 5px;
  width: 100px;
}

.viewCategory {
  display: block;
  box-shadow: 1px 1px 2px #050a35;
  background: #bbb;
  color: #0000f8;
  padding: 3px;
  text-align: center;
  cursor: pointer;
}

.viewCategory.dark {
  background-color: #aaa;
}

#naviLocator {
  position: absolute;
  top: 5px;
  padding: 5px;
  width: calc(100% - 125px);
  box-shadow: 1px 1px 3px;
}

#naviLocator > span {
  color: blue;
  font-size: 20px;
}

#naviLocator > button {
  float:right;
}

.viewport {
  width:100%;
  height:100%;
}
.view-canvas {
  display: table;
  width:100%;
  height:100%;
}
.view-row {
  display: table;
  width:100%;
  background: #ccc;
  padding: 1px;
}
.view-row.odd {
  background: #ddd;
}
.view-group {
  display: table-cell;
  width:200px;
  position:relative;
  vertical-align: middle;
  left:5px;
  height: 100%;
}
.view-sensors {
  float: left;
  line-height: 0;
  vertical-align: middle;
  padding: 5px;
}
sensor.up > .icon {
  background-color: #27ae60;
}
sensor.down > .icon {
  background-color: red;
}
sensor.warning > .icon {
  background-color: #999910;
}
sensor.paused > .icon{
  background-color:#3e76ff;
}
sensor.unknown > .icon{
  background-color:#bbb;
}
.view-group > name {                
  padding: 3px;
}
sensor {
  display: inline-block;
  width: 120px;
  height: 30px;
  box-shadow: 0px 0px 3px #000;
  font-size: 10px;
  background-color: white;
  border-radius: 7px;
  margin: 3px 3px;
  vertical-align: middle;
  cursor: pointer;
}
sensor > name {                
  display:inline-block;
  position: relative;
  top:-28px;
  line-height: 12px;
  left:27px;
  overflow:hidden;
  white-space: nowrap;
  word-wrap: normal;
  text-overflow: normal !important;	  
  width:88px;
}
sensor > .icon {
  width: 20px;
  position: relative;
  top:0;
  left:0;
  height: 20px;
  padding:5px 2px;
  background-position: 4px 7px !important;
  border-radius: 7px 0px 0px 7px;
  cursor:default;
}
sensor > value {
  display: inline-block;
  position: relative;
  top: -26px;
  left:27px;
  width:90px;
  line-height: 14px;
  overflow:hidden;
  white-space: nowrap;
  word-wrap: normal;
}

.view-selector {
  display: table;
  position: fixed;
  top: 34px;
  left: 10px;
  z-index: 1000;
}

.infoWrapper {
  display: table;
  width: calc(100% - 20px);	
  padding: 10px;
  text-align: center;
}

.infoWrapper > div {	
  display: inline-block;
  width: 170px;
  margin: 2px;
  box-shadow: 0px 0px 3px #aaa;	
}

.infoWrapper .header {
  display: block;
  padding: 5px;
  background: #2790d1;
  color: #fff;
  font-weight: bold;
}

.infoWrapper .value {
  display: block;
  padding: 5px;
  background: #eee;
  color: #555;
  overflow: hidden;
}

.dataTables_filter {
  display: none;
}

table.dataTable tbody tr td {
  text-align: center;
}

table.dataTable > tbody > tr > td {
  box-shadow: 0px 0px 1px #ccc;	
  font-size: 11px;
}

table.dataTable > thead > tr > th {
  border: 1px solid #eee;
}

table {	
  width: 100%;
  overflow: auto;
  box-shadow: 0px 0px 2px #aaa;
}

table thead {
  background-color: #44aaee;
  color: #fdfdfd;	
}

table td, table th {
  border: 1px #000;
}

table.dataTable th.checkbox, table.dataTable td.checkbox {
  width: 55px !important;
}

table.dataTable th.actions, table.dataTable td.actions {
  width: 70px !important;
}

table.dataTable > tbody > tr {
  padding: 0;
  font-size: 12px;
  text-align: center;
}

table.dataTable > thead > tr {
  padding: 0;
  font-size: 12px;
  text-align: center;
}

.Sidebar {
  display: none;
  position: fixed;
  background: #eee;
  padding: 20px;	
  right: 0 !important;
  top: 66px !important;;
  height: calc(100% - 10px);	
  box-shadow: -1px 0px 3px #444;
  z-index: 200;
}

.Sidebar .Content label:not(.switch-label) {
  width: 170px;
}

.Sidebar .Content input[type=text],
.Sidebar .Content textarea,
.Sidebar .Content select {
  min-width: 300px;
}

.Sidebar .Content textarea {
  height: 20rem !important;
  width: 25rem !important;
}

.Sidebar > .Content > fieldset {
  margin: 10px;
}

.Sidebar h1 {
  color: #777;
  margin: 0;
}

.Sidebar h2 {
  color: #888;
  margin: 0;
}

.Sidebar >.Content {
  height: calc(100% - 140px);
  overflow: auto;
}

.Sidebar > .controls {
  position: absolute;
  top: 15px;
  right: 20px;
}

#pingBox > * {
  font-weight: bold;
  font-size: 1rem;
}

