
.alert-container {
   position: fixed;
   left: 50%;
   top: 30%;
   max-width: 100%;
   z-index: 10000;
}
.alert {
   position: relative;
   top: -50%;
   left: -50%;
   max-width: 100%;
}

.home-panel {
   position: relative;
   height: 230px;
   overflow: auto;
    -webkit-transition-property: top, bottom;
    transition-property: top, bottom;
    -webkit-transition-duration: .2s, .2s;
    transition-duration: .2s, .2s;
    -webkit-transition-timing-function: linear, linear;
    transition-timing-function: linear, linear;
    -webkit-overflow-scrolling: touch;

}

.btn-gray {
   color: buttontext;
   border-color: buttonface;
   background-color: buttonface;
}

.btn-gray:active .btn-gray:hover .btn-gray:focus {
   color: buttontext;
   border-color: buttonface;
   background-color: buttonface;

}

.badge-primary {
   background-color: #428bca;
}

.navbar-title {
   font-size: 20px;
   font-weight: 500;
   color: #777;
   line-height: 18px;
   text-align: center;
   margin-left: auto;
   width: 350px;
   margin-right: auto;
   padding: 15px 15px;
   display: block;
   max-width: 350px;
}

.navbar-link {
   font-size: 18px;
   padding: 0px 15px;
   margin-left: -25px;
   line-height: 20px;
}
.navbar-open {
   position: absolute;
   top: 9px;
   width: 48px;
   height: 32px;
   padding: 8px 12px;
   color: #fff;
   background-color: #474949;
   border-color: #474949;
   border: 1px solid transparent;
   border-radius: 4px;
   display: inline-block;
}

.navbar-openright {
   right: 10px;
}

.navbar-openleft {
   left: 10px;
}

.navbar-user {
   position: absolute;
   top: 5px;
   right: 60px;

}

.navbar-user li a {
   padding-top: 15px;
   padding-bottom: 15px;
   line-height: 20px;
   color: #777;
   border-radius: 0;
}

.navbar-user-theme-dmblack>li>a:hover,
.navbar-user-theme-dmblack>li>a:focus {
   background-color:#222;
   color:#888;
}


.drawers {
   background-color: #2e2e2e;
   color: #2e2e2e;
}

.left-drawer {
   padding-top: 15px;
   padding-bottom: 15px;
   position: absolute;
   background-color: #2e2e2e;
   width: 100%;
   bottom: 50px;
   top: 55px;
}

.right-drawer {
   padding-top: 15px;
   padding-bottom: 15px;
   position: absolute;
   background-color: #2e2e2e;
   right:0px;
   width: 100%;
   bottom: 50px;
   top: 55px;
}  

.drawer-container {
   width: auto;
   background-color: #2e2e2e;
   height: 100%;
   border: 0px solid transparent;
   margin-left: 5px;
   margin-right: 5px;
}

.snapjs-left .left-drawer,
.snapjs-right .right-drawer {

   display: block;
}

.snapjs-right .left-drawer,
.snapjs-left .right-drawer {
    display: none;
}

#content {
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden; 
    -moz-backface-visibility:hidden; 
    -ms-backface-visibility:hidden; 

}

#content.theme-dmwhite {
   box-shadow: 0px 0px 15px 3px #969696;
} 

#content.theme-dmblack {
  box-shadow: 0px 0px 15px 3px #7e79ff;
}

.scrollable{
    overflow: auto;
    -webkit-transition-property: top, bottom;
    transition-property: top, bottom;
    -webkit-transition-duration: .2s, .2s;
    transition-duration: .2s, .2s;
    -webkit-transition-timing-function: linear, linear;
    transition-timing-function: linear, linear;
    -webkit-overflow-scrolling: touch;
   /*
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden; 
    -moz-backface-visibility:hidden; 
    -ms-backface-visibility:hidden; 
   */
}

.scrollable-vertical{
   overflow: hidden;
   overflow-y: auto;
    -webkit-transition-property: top, bottom;
    transition-property: top, bottom; 
    -webkit-transition-duration: .2s, .2s;
    transition-duration: .2s, .2s;
    -webkit-transition-timing-function: linear, linear;
    transition-timing-function: linear, linear; 
    -webkit-overflow-scrolling: touch;
    /*
     backface-visibility:hidden;
    -webkit-backface-visibility:hidden; 
    -moz-backface-visibility:hidden;
    -ms-backface-visibility:hidden; 
    */
}

.primarycontainer {
   background-color: #fff;
   position: absolute;
   max-width: 100% !important;
   width: 100%;
   height: 100%;
   /*bottom: 50px;*/
   padding-top: 50px;
   padding-bottom: 55px;
   padding-left: 20px;
   padding-right: 20px;

}
.theme-dmblack {
   background-color: #000;
}

.text-on-white-theme-dmblack {
   color: #000;
}
.container {
   /*padding-top: 100px;*/
   height:100%;
   padding-bottom: 20px; /* was 45 */
}

.leftbar_enabled {
   padding-left: 100px;
}

.rightbar_enabled {
   padding-right: 100px;
}

.insider {
   /*margin-top: 20px;
   margin-bottom: 40px;*/
   height:100%;
}

.domotika-panel {
   position: relative;
}

.domotika-panel-full {
   height: 100%;
   padding-bottom: 35px;
}

.formcontainer {
   margin-bottom: 70px;
   border-top: 0px solid #fff;
   border-left: 1px solid #ddd;
   border-right: 1px solid #ddd;
   border-bottom: 1px solid #ddd;
   border-radius: 4px;
}

/*
input::-webkit-input-speech-button {
   opacity: 0;
}
*/
.notifybutton {
   background-image: url(/resources/img/notification.jpg);
   background-repeat: no-repeat;
   background-size: contain;
   background-color: #fff;
   width: 50px;
   max-width: 50px;
   padding: 8px 24px;
   border: 0px solid transparent;
   display: inline-block;
   position: absolute;
   bottom:5px;
   right: 50px;
}

.notifybutton:hover {
   background-color: #fff;
}

.notify-item-theme-dmblack .list-group-item-heading,
.notify-item-theme-dmblack .list-group-item-text {
   color: #888 !important;
}
.speechbutton {
   background-image: url(/resources/img/microphone-little.png);
   background-repeat: no-repeat;
   background-size: contain;
   background-color: #fff;
   width: 37px;
   max-width: 50px;
   height: 37px;
   padding: 8px 8px;
   border: 0px solid transparent;
   position: absolute;
   bottom:5px;
   right: 410px;
   display:none;
}

.speechbutton:hover {
   background-color: #fff;
}

.homebutton {
   background-image: url(/resources/img/home_small.jpg);
   background-repeat: no-repeat;
   background-size: contain;
   background-color: #fff;
   width: 35px;
   max-width: 35px;
   padding: 8px 8px;
   border: 0px solid transparent;
   display: inline-block;
   position: absolute;
   bottom:5px;
   height: 35px;
   right: 10px;
}

.homebutton:hover {
   background-color: #fff;
}

.rightbtn {
   background-repeat: no-repeat;
   height: 64px;
   padding: 24px 24px;
   text-align: center;

}

.leftbtn {
   background-repeat: no-repeat;
   background-position:right;
}

.rightbtn-attuazioni {
   background-image: url(/resources/icons/OnOff_white_alpha_64x64.png);
}

.rightbtn-alarm {
   background-image: url(/resources/icons/Alarm_white_alpha_64x64.png);
}

.rightbtn-video {
   background-image: url(/resources/icons/Camera1_white_alpha_64x64.png);
}

.rightbtn-stats {
   background-image: url(/resources/icons/Stats_white_64x64.png);
}

.rightbtn-tv {
   background-image: url(/resources/icons/Multimedia_white_alpha_64x64.png);
}

.rightbtn-clima {
   background-image: url(/resources/icons/Climate_white_alpha_64x64.png);
}

.rightbtn-audio {
   background-image: url(/resources/icons/Music_white_alpha_64x64.png);
}

.rightbtn-irr {
   background-image: url(/resources/icons/Water2_white_alpha_64x64.png);
}


.footbar-form {
   position:absolute;
   right: 105px;
   width: 300px;
   bottom: -2px;
}

.footbar-form-sm {
   position:absolute;
   left: 5px;
   width: 80px;
   bottom: -2px;
}

.shadow-dmwhite {
  box-shadow: 0px 0px 25px 6px #969696 inset;
}  

.shadow-dmblack {
  box-shadow: 0px 0px 25px 6px #7e79ff inset;
}

.notifypanel {
   position:absolute;
   right: 5px;
   bottom: 50px;
   box-shadow: -6px -6px 8px #999;
   width: 300px;
   height: 500px;
   z-index: 10;
   display:none;
}

.notifylist {
   overflow:auto;
    -webkit-transition-property: top, bottom;
    transition-property: top, bottom;
    -webkit-transition-duration: .2s, .2s;
    transition-duration: .2s, .2s;
    -webkit-transition-timing-function: linear, linear;
    transition-timing-function: linear, linear;
    -webkit-overflow-scrolling: touch;

}

.devlist-item {
   min-height: 40px;
   margin-bottom: 2px;
   background-color: rgb(245,245,245);
   border: 1px solid #ddd;
   border-image: initial;
   border-radius: 4px;
   -webkit-box-shadow: rgba(0,0,0,0.0470588) 0px 1px 1px inset;
   box-shadow: rgba(0,0,0,0.0470588) 0px 1px 1px inset;
   line-height: 1.1;
   font-size: 17.5px;
   font-weight: 500;
   color: #777;
   display:table;
}

.devlist-item-theme-dmblack{
   background-color: rgb(24,24,24);
   border: 0px;
   color: #888;
}

.devlist-row {
   display:table-row;
   margin-top: 0px;
}

.devlist-rightpart {
   max-width: 126px;
   min-width: 50px;
   min-width: -moz-fill-content;
   right:0;
   display:block;
   text-align: right;
   vertical-align: middle;
   padding-right: 3px;
   padding-left: 3px;
   padding-top: 3px;
   padding-bottom: 3px;
}

.devlist-leftpart {
   width:100%;
   left: 0px;
   top: 0px;
   padding-top: 3px;
   padding-bottom: 3px;
   display:table-cell;
   vertical-align: center;
}

.devlist-ledscontainer {
   margin-left: 5px;
   margin-right: 5px;
}

.devlist-leds {
   display: inline-block;
   margin-top: 5px;
   border-radius: 15px;
   height: 30px;
   padding-top: 8px;
   vertical-align: center;
}

.devlist-topdata {
   position: relative;
   margin-bottom: 2px;
   width: -moz-fit-content;
}

.devlist-name {   
   padding-top: 8px;
   position: relative;
   height:100%;
   padding-left: 8px;
} 

.devlist-switch {
   position: relative;
}

.devlist-button {
   position: relative;
   width: -mox-fit-content;
   top:0px;
   height: 30px;
   padding: 0px 8px;
   margin-top: 1px;
   margin-bottom: 1px;
}


.badge-danger {
  background-color: #d9534f;
}

.badge-danger[href]:hover,
.badge-danger[href]:focus {
  background-color: #c9302c;
}

.badge-success {
  background-color: #5cb85c;
}

.badge-success[href]:hover,
.badge-success[href]:focus {
  background-color: #449d44;
}

.badge-warning {
  background-color: #f0ad4e;
}

.badge-warning[href]:hover,
.badge-warning[href]:focus {
  background-color: #ec971f;
}

.badge-info {
  background-color: #5bc0de;
}

.badge-info[href]:hover,
.badge-info[href]:focus {
  background-color: #31b0d5;
}

.flowplayer { width: 80%; background-color: #222; background-size: cover; max-width: 800px; }
.flowplayer .fp-controls { background-color: rgba(0, 0, 0, 0.4)}
.flowplayer .fp-timeline { background-color: rgba(0, 0, 0, 0.5)}
.flowplayer .fp-progress { background-color: rgba(22, 179, 148, 1)}
.flowplayer .fp-buffer { background-color: rgba(167, 196, 173, 1)}
.flowplayer { background-image: url(/resources/img/logo_unixmedia.png)}
.flowplayer .fp-duration { display:none; }

.panel-theme-dmblack {
   background-color: #000;
   border: 0px;
}

.panel-theme-dmwhite {
   border: 0px;
}

.panel-head-theme-dmblack {
   /*background-color: #2a2ac0;*/
   background-color: #494992;
   border-bottom: 0px;
   margin: 0px;
   margin-bottom: 10px;
   border-radius: 6px;
}

.panel-head-theme-dmwhite {
   background-color: #bbb;
   border-bottom: 0px;
   margin: 0px;
   margin-bottom: 10px;
   border-radius: 6px;
}

.panel {
   margin-bottom: 0px;
}

body.theme-dmblack {
   color: #fff;
   -webkit-touch-callout:none;
   -webkit-user-select:none;
   -khtml-user-select:none;
   -moz-user-select:none;
   -ms-user-select:none;
   user-select:none;
   -webkit-tap-highlight-color:rgba(0,0,0,0);
}

.thermo-program-block {
   /* display:inline-block; */
   float:left;
   width:50%;
   min-width: 211px;
}

.thermo-program-pane[max-width~="422px"] .thermo-program-block {
   width:100%;
}

.thermo-program-container {
   /* display:inline-block; */
   width:8.33%;
   min-width: 14px;
   float:left;
}

.thermo-program-subcont {
   display:inline-block;
}  

.thermo-program-show {
   display:block;
   font-size: 10px;
   max-width: 13px;
   overflow: visible;

   transform:rotate(-90deg);
   -webkit-transform: rotate(-90deg); 
   -moz-transform: rotate(-90deg);  
   -o-transform: rotate(-90deg);
   transform-origin: 50% 50%;
   -webkit-transform-origin: 50% 50%;
   -moz-transform-origin: 50% 50%;
   -o-transform-origin: 50% 50%;
   filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

/*
.thermo-program-show:hover {
   font-size: 24px;
}
*/

.btn-noUI {
   padding: 0;
   line-height:1;
   margin-top: 10px;
   margin-bottom:10px;
   width:10px;
   height:16px;
}

.noUi-connect {
   background: #428bca !important;
}

.noUI-thermo-program {
   height:100px !important;
   width:3px !important;
   margin-left:5px !important;
   margin-right:5px !important;
}

.noUI-thermo-program .noUi-base > .noUi-origin > .noUi-handle {
   height: 14px;
   top:-8px;
   left:-7px;
   width: 14px;
   border-radius:8px; 
   background: #428bca;
   border-color: #428bff;
   
}

.noUI-thermo-program .noUi-base > .noUi-origin > .noUi-handle:after,
.noUI-thermo-program .noUi-base > .noUi-origin > .noUi-handle:before {
   display:none;
}


@media (min-width: 640px) {

   body {
      scrollbar-base-color: #C0C0C0;
      scrollbar-base-color: #C0C0C0;
      scrollbar-3dlight-color: #C0C0C0;
      scrollbar-highlight-color: #C0C0C0;
      scrollbar-track-color: #EBEBEB;
      scrollbar-arrow-color: black;
      scrollbar-shadow-color: #C0C0C0;
      scrollbar-dark-shadow-color: #C0C0C0;
   }

   ::-webkit-scrollbar { width: 10px; height: 3px;}
   ::-webkit-scrollbar-button {  background-color: #666; }
   ::-webkit-scrollbar-track {  background-color: #999;}
   ::-webkit-scrollbar-track-piece { background-color: #ffffff;}
   ::-webkit-scrollbar-thumb { height: 50px; background-color: #666; border-radius: 3px;}
   ::-webkit-scrollbar-corner { background-color: #999;}
   ::-webkit-resizer { background-color: #666;}


   ::-moz-scrollbar { width: 10px;}
   ::-moz-scrollbar-track { -moz-box-shadow: inset 0 0 6px #fff); background:#000;}
   ::-moz-scrollbar-thumb { border-radius: 10px; -moz-box-shadow: inset 0 0 6px #fff; background:#7A252B;}

};


@media (max-width: 640px) {
  .navbar-title {
     text-align: left;
     margin-left: 35px;
     width: 200px;
     max-width: 200px;
  }

 .panel-media-low {
   height: auto !important;
 }
 .leftbar_enabled {
    padding-left: 50px;
 }

  .rightbar_enabled {
    padding-right: 50px;
 }
   .container {
      padding-left: 2px;
      padding-right: 2px;
   }

}

@media (max-width: 768px) {

   .speechbutton {
     left: 88px;
     right: auto;
   }
   .leftbar_enabled {
      padding-left: 50px;
   }

   .rightbar_enabled {
      padding-right: 50px;
   }
   .primarycontainer {
      padding-left: 2px;
      padding-right: 2px;
   }

}

@media (max-width: 992px) {
   .panel-media-low {
      height: auto !important;
   }
   .primarycontainer {
      padding-left: 2px;
      padding-right: 2px;
   }
   .leftbar_enabled {
      padding-left: 50px;
   }

   .rightbar_enabled {
      padding-right: 50px;
   }

}

@media (min-width: 1400px) {
  .container {
    max-width: 1370px;
  }
}
   .leftbar_enabled {
      padding-left: 50px;
   }

   .rightbar_enabled {
      padding-right: 50px;
   }

@media (min-width: 1600px) {
  .container {
    max-width: 1570px;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1770px;
  }
}

@media (min-width: 2000px) {
  .container {
    max-width: 1970px;
  }
}

