@import url('https://fonts.googleapis.com/css?family=Libre+Franklin:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,latin-ext');

body {
  font-family: 'Libre Franklin', sans-serif;
}
.img-thumbnail{
  background-color: inherit;
}
#header .main-navbar, 
.navbar-main{
  color: #fff;
  background-color: #222632;
}
#header:before,
#header .navbar .navbar-nav,
#header .navbar .navbar-brand{
  color: #fff;
  background-color: #222632 !important;
}
#header .navbar .navbar-brand:after{
  border-left-color: #222632 !important;
}
#header .navbar .navbar-nav:after{
  border-right-color: #222632 !important;
}
#header .main-navbar .navbar-nav>li>a:focus, 
#header .main-navbar .navbar-nav>li>a:hover,
#header .main-navbar .navbar-nav>.open>a, 
#header .main-navbar .navbar-nav>.open>a:focus, 
#header .main-navbar .navbar-nav>.open>a:hover {
  background-color: #222632 !important;
}

#sidebar .nav-default>li>a,
#sidebar .nav-default>li>a:hover,
#sidebar .nav-default>li>a:focus,
#sidebar .nav-tabs>li.active>a, 
#sidebar .nav-tabs>li.active>a:focus, 
#sidebar .nav-tabs>li.active>a:hover {
  color: #fff;
  background-color: #222632;
  border-color: #222632;
}
#sidebar .nav-default>li.active:after{
  background: #E6E6E6;
  height: 5px;
}

#map-controls .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.leaf-device-marker .name i {
  color: #fff;
  background-color: #222632;
}
.leaf-device-marker .name:before {
  border-top-color: #222632;
}
.leaf-device-marker .name:after {
  border-top-color: #222632;
}

#widgets .widgets-content {
  background: transparent;
}
#widgets .widget {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}
#widgets .widget+.widget {
  margin-left: 7px;
}
#widgets .widget>.widget-heading {
  background-color: #ffffff;
  border: 0;
}
#widgets .widget-title {
  font-weight: bold;
}

#sidebar .btn-collapse:before,
#sidebar .btn-collapse:after,
#widgets .btn-collapse:before,
#widgets .btn-collapse:after{
  display:none;
}

#sidebar .btn-collapse,
#widgets .btn-collapse {
  color: #ffffff !important;
  background-color: #222632;
  border-radius: 10px;
}

#sidebar a[href="#objects_tab"]:before,
#sidebar a[href="#events_tab"]:before,
#sidebar a[href="#history_tab"]:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: initial;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
#sidebar a[href="#objects_tab"]:before {
  background-image: url(/images/custom/objects.png);
}
#sidebar a[href="#events_tab"]:before {
  background-image: url(/images/custom/events.png);
}
#sidebar a[href="#history_tab"]:before {
  background-image: url(/images/custom/history.png);
}

@media (min-width: 768px) {
  .navbar-nav>li>a {
      padding-top: 10px;
      padding-bottom: 10px;
  }
}
#header .icon.admin:before,
#header .icon.tools:before,
#header .icon.setup:before,
#header .icon.chat:before,
#header .icon.account:before{
  content: "";
}
#header .icon.admin,
#header .icon.tools,
#header .icon.setup,
#header .icon.chat,
#header .icon.account{
  display: inline-block;
  width: 25px;
  height: 25px;
  vertical-align: middle;
  
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: initial;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
#header .icon.admin {
  background-image: url(/images/custom/admin.png);
}
#header .icon.tools {
  background-image: url(/images/custom/settings.png);
}
#header .icon.setup {
  background-image: url(/images/custom/config.png);
}
#header .icon.chat {
  background-image: url(/images/custom/chat.png);
}
#header .icon.account {
  background-image: url(/images/custom/account.png);
}

#sidebar .checkbox-inline input[type=checkbox]:checked+label::before, 
#sidebar .checkbox-inline input[type=radio]:checked+label::before, 
#sidebar .group .checkbox input[type=checkbox]:checked+label::before, 
#sidebar .group .checkbox input[type=radio]:checked+label::before, 
#sidebar .table .checkbox input[type=checkbox]:checked+label::before, 
#sidebar .table .checkbox input[type=radio]:checked+label::before,
#sidebar .checkbox input[type=checkbox]:checked+label::before, 
#sidebar .checkbox input[type=radio]:checked+label::before{
  background-color: #01C018;
}

#sidebar .checkbox-inline input[type=checkbox]:checked+label::after, 
#sidebar .checkbox-inline input[type=radio]:checked+label::after, 
#sidebar .group .checkbox input[type=checkbox]:checked+label::after, 
#sidebar .group .checkbox input[type=radio]:checked+label::after, 
#sidebar .table .checkbox input[type=checkbox]:checked+label::after, 
#sidebar .table .checkbox input[type=radio]:checked+label::after,
#sidebar .checkbox input[type=checkbox]:checked+label::after, 
#sidebar .checkbox input[type=radio]:checked+label::after {
    background-color: #01C018;
    border-color: #01C018;
}

#widgets *[data-device="status-text"]{
  display: none;
}

.modal-header, 
.ui-dialog-titlebar.ui-widget-header {
  color: #ffffff !important;
  background-color: #222632;
}
.modal-title,
.ui-dialog-title{
  font-weight: bold;
}
.modal-title .icon, 
.ui-dialog-title .icon {
  color: #ffffff !important;
}

.modal-header .close, 
button.ui-dialog-titlebar-close {
  color: #ffffff !important;
  opacity: 1;
}
.modal-header .close:hover, 
button.ui-dialog-titlebar-close:hover{
  opacity: 0.6;
}