/**** ./custom.css ***/
@charset "UTF-8";

/* import css files */
@import url("css/dashboard_mobile.css");
@import url("css/settings.css");
@import url("css/icons_on_tabs.css");
@import url("css/iconsupload.css");
@import url("css/floorplan.css");
@import url("css/animate.css");

/* Display sidemenu on low resolution devices */
@import url("css/sidemenu.css") (max-width: 979px);

/* ionicons */
@import url("css/ionicons.min.css");


/* vars are now managed in javascript */

@font-face {
    font-family: main-font;
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
         url('fonts/open-sans-v16-latin_latin-ext-regular.woff2') format('woff2'),
         url('fonts/open-sans-v16-latin_latin-ext-regular.woff') format('woff');
}

@font-face {
    font-family: main-font-bold;
    font-style: normal;
    font-weight: 600;
    src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
         url('fonts/open-sans-v16-latin_latin-ext-600.woff2') format('woff2'),
         url('fonts/open-sans-v16-latin_latin-ext-600.woff') format('woff');
}
/* Bootbox */
.bootbox.modal.fade.in {
    background-color: var(--main-item-bg-color) !important;
}

.modal-content {
    background-color: var(--main-item-bg-color) !important;
}

.modal-title {
    color: var(--main-text-color);
}

.modal-footer {
    border-top: 1px solid #f1f2f3 !important;
    background-color: var(--main-item-bg-color) !important;
}
.help-block {
    color: var(--main-text-color);
}

/* Add fonts */
.ui-widget-content,
.btnstylerev,
.btnstyle,
.btnstyle3-dis,
.btnstyle3,
.btnstyle3-sel
.mHeaderBtn,
.navbar-inverse .navbar-inner,
.item #bigtext,
.item #type,
.item #lastupdate {
    font-family: main-font;
    color: var(--main-text-color);
}

h1,
h2,
h3,
h4,
#tophtm,
#temptophtm,
#weathertophtm,
#lightcontent td,
#utilitycontent td,
.warning-text,
.beforebannav,
.machinoText,
.mHeader,
.ui-widget,
.item #status,
.item #name {
    font-family: main-font-bold !important;
}

#aboutcontent #canvas2 {
    display: none;
}

.user {
    display: block;
    opacity: 0.4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.userOn {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.help-block {
    color: var(--main-text-color);
}

.disabledText {
    color: var(--main-disabled-color);
}

.disabledBg {
    background: var(--main-disabled-color);
}
/* Energy dashboard */
#emain {
	width: calc(90vw - 50px)!important;
    height: calc(90vh - 110px) !important;
	background: var(--main-bg-color)!important;
	border-color: var(--main-blue-color) !important;
}
#eicon {
    fill: var(--main-text-color)!important;
}


/* logpage */
#logdata,
#logdata_status,
#logdata_error,
#logdata_debug {
    background: var(--main-navbar-bg-color);
    max-height: calc(100vh - 220px);
}

.lognorm {
    font-family: main-font-bold;
    color: var(--main-text-color);
}

.logstatus {
    font-family: main-font;
    color: var(--main-blue-color);
}

.logerror {
    font-family: main-font;
    color: #c74343;
}
/* Setpoint popup */
#setpoint_popup {
    color: var(--secondary-text-color)!important;
    text-shadow: none;
    background-color: var(--main-item-bg-color)!important;
}

#popup_setpoint {
    font-family: main-font-bold;
    color: var(--main-blue-color)!important;
    border-color: var(--main-item-bg-color)!important;
    background: var(--main-item-bg-color)!important;
	border-color: var(--main-blue-color) !important;
}

.ui-close {
    background: url(../images/Close.png);
    width: 32px;
    height: 32px;
}

.ui-close:hover {
    background-position: 0 0px
}

.ui-popup.ui-corner-all {
    background: var(--main-item-bg-color);
    border-radius: 6px;
    box-shadow: -2px 2px 20px 0px rgba(0, 0, 0, 0.2);
    color: var(--main-item-color);
    border-bottom: none;
}

/* Remove domoticz item search */
#tbFiltSearch {
    display: none;
}

/* Search */
#search {
    float: right;
    margin-top: 5px;
    margin-right: 10px;
    color: #fff;
    background-color: transparent;
    outline: 0;
    transition: transform .5s;
}

#search i {
    font-size: 30px;
    line-height: 30px;
}

#searchInput {
    color: #fff;
    border-color: #fff;
}

#searchInput::placeholder {
    color: #fff;
    opacity: 0.5;
}

#search.readonly {
    opacity: 0.3;
}

#search.readonly #searchInput {
    display: none;
}

@media (max-width: 767px) {
    #searchInput {
        width: 0;
        margin-right: 10px;
    }

    #search:hover #searchInput,
    #search:active #searchInput,
    #search:focus #searchInput {
        width: calc(100% - 60px);
        max-width: unset;
        transform: translate(30px, 45px);
        background: var(--main-blue-color);
        box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
        border-radius: 20px;
        border: 5px solid #fff;
        padding: 10px;
        position: relative;
        z-index: 5;
    }

    #search:not(.readonly):hover,
        #search:not(.readonly):active,
        #search:not(.readonly):focus {
        width: 100%;
    }

    #search:not(.readonly):hover i,
        #search:not(.readonly):active i,
        #search:not(.readonly):focus  i {
        position: absolute;
        right: 10px;
    }
}

.msg {
    background-color: var(--main-item-bg-color);
    font-family: main-font-bold;
    color: var(--main-text-color);
    border-radius: 5px;
    box-shadow: -2px 2px 20px 0px rgba(0, 0, 0, 0.2);
    z-index: 99;
    display: block;
    position: absolute;
    top: 30px;
    height: flex;
    padding: 8px;
    right: 200px;
    overflow: hidden;
    width: flex;
}

.msg span {
    color: var(--secondary-text-color);
}

input[type="number"] {
    width: 40px;
}

input[type="text"],
input[type="input"],
input[type="number"],
input[type="password"] {
    background-color: transparent;
    outline: 0;
    border-width: 0 0 1px;
    border-color: var(--main-blue-color);
    color: var(--secondary-text-color);
    max-width: 250px;
}

input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    position: relative;
    background: var(--main-item-bg-color);
    border: 1px solid var(--main-blue-color);
    outline: none;
}

input[type="checkbox"] {
    border-radius: 2px;
}

input[type="checkbox"]:disabled, 
input[type="radio"]:disabled {
    border: 1px solid var(--main-disabled-color);
}

input[type="checkbox"]:disabled + label, 
input[type="radio"]:disabled + label {
    color: var(--main-disabled-color);
}

input[type="checkbox"]:checked::before, 
input[type="radio"]:checked::before {
    background: var(--main-blue-color);
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
}

[type=radio], [type=radio]:checked::before{
    border-radius: 100%;
}

/* common features */
/*need ofix media screen*/
#timesun {
    margin-top: -30px;
    color: var(--main-text-color) !important;
}

#timesun font {
    font-size: 0;
}

#timesun font:before {
    color: var(--main-text-color) !important;
    content: "\f4b7";
    font-family: "Ionicons";
    font-size: 14px;
    display: inline;
}

.page-header-small {
    border-color: var(--main-blue-color);
}

div#floorplancontent {
    height: 87%;
}

div.bannercontent .row.divider:before,
div.bannercontent .row.divider:after,
div.clearfix {
    display: none;
}

div.bannercontent .row.divider {
    padding: 15px 0;
    margin: 0 !important;
    display: grid;
    grid-auto-columns: auto;
    grid-auto-rows: 1fr;
    grid-gap: 15px;
    gap: 15px;
    justify-items: stretch;
    align-items: stretch;
}

/*need to change this for all media screen...*/
@media (max-width: 767px) {
    div.bannercontent .row.divider {
        grid-template-columns: repeat(1,1fr);
    }

    .span3 td.input {
        max-width: 100% !important;
    }

    #holder .row .span4 table[id^="item"] > tbody > tr {
        row-gap: 2px !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    div.bannercontent .row.divider {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (min-width: 1200px) {
    div.bannercontent .row.divider {
        grid-template-columns: repeat(4,1fr);
    }
}

#holder .row dzweatherwidget,
#holder .row dztemperaturewidget,
#holder .row .span4,
#holder .row .tile,
#holder .row .item,
#holder .row .item section,
#holder .row .item table[id^="item"],
#holder .row .item table[id^="item"] > tbody,
#holder .row .item table[id^="item"] > tbody > tr {
    position: relative;
    display: block;
	margin-left: 2px;
    padding: 0;
    width: 99%;
    height: 100%;
}

#holder .row .item table[id^="item"] > tbody > tr,
.rectangle-8,
.rectangle-8-dropdown,
#settings .row-fluid > div {
    background: var(--main-item-bg-color);
    border: 1.5px solid;
    border-color: transparent;
    border-radius: 6px;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
}

#holder .row .item table[id^="item"] > tbody > tr:hover,
.rectangle-8:hover,
.rectangle-8-dropdown:hover,
#settings .row-fluid > div:hover {
    box-shadow: 0px 0px 0px 2px var(--main-blue-color);
}

#holder .row .item table[id^="item"] > tbody > tr {
    display: grid;
}

#holder .row .span4 table[id^="item"] > tbody > tr {
    grid-template-rows: 40px minmax(58px,1fr) minmax(0,20px);
    grid-template-columns: 48px 18px minmax(0,.7fr) minmax(0,1fr) 25px 15px;
    grid-gap: 10px;
    gap: 10px;
    grid-template-areas: 'name name bigtext bigtext bigtext options'
    'img img2 status status status status'
    'favorite lastupdate lastupdate lastupdate tools tools';
}

#holder .row .span4 table[id="itemtabletrippleicon"] > tbody > tr,
#holder .row .span4 table[id="itemtablesmalltrippleicon"] > tbody > tr {
    grid-template-areas: 'name name bigtext bigtext bigtext options'
    'img img2 img3 status status status'
    'favorite lastupdate lastupdate lastupdate tools tools';
}

#holder #dashcontent .row .span4 .item table[id^="item"] > tbody > tr {
    grid-template-rows: 40px minmax(58px,1fr) 0;
}

/* name */
.item #name {
    padding: 10px 0 0 10px;
    color: var(--main-text-color);
    line-height: 18px;
    grid-area: name;
    white-space: nowrap;
}

.item #name i {
    font-size: 110%;
}

/* bigtext */
.item #bigtext {
    color: var(--main-blue-color);
    background: var(--main-item-bg-color);
   /*  background: linear-gradient(to right, rgba(255,255,255,0), var(--main-item-bg-color) 15px); */
    font-size: 1.4em;
    line-height: 20px;
    grid-area: bigtext;
    justify-self: right;
    text-align: right;
    padding: 10px 0 0 20px;
}

/* last update */
.item #lastupdate {
    color: var(--secondary-text-color);
    grid-area: lastupdate;
    justify-self: right;
    align-self: center;
    padding-right: 20px;
    font-size: 80%;
}
/* type */
.item #type {
    color: var(--secondary-text-color);
    grid-area: status;
    justify-self: right;
    align-self: center;
    padding-right: 20px;
    max-width: 100%;
    font-size: 0;
}

.item #status,
.item .status {
    color: var(--main-text-color);
    grid-area: status;
    padding-right: 20px;
    align-self: center;
    justify-self: right;
    text-align: left;
    max-height: 60px;
	white-space: normal;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--main-blue-color) var(--main-bg-color);
}


.btn-group::-webkit-scrollbar,
.item #status::-webkit-scrollbar,
.item .status::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    border-radius: 5px;
}

.item .btn-group {
    display: flex !important;
    flex-flow: wrap;
    justify-content: space-evenly;
    scrollbar-width: thin;
    scrollbar-color: var(--main-blue-color) var(--main-bg-color);
    width: 100%;
}

.item .btn-group::-webkit-scrollbar-thumb,
.item #status::-webkit-scrollbar-thumb,
.item .status::-webkit-scrollbar-thumb {
    background: var(--main-blue-color);
    border-radius: 5px;
}

/* item subnav applying by click*/
.options-cell {
    padding: 0 3px !important;
    margin-right: 5px !important;
    color: var(--main-blue-color);
    background: var(--main-item-bg-color);
    font-size: 26px;
    cursor: pointer;
    grid-area: options;
}

body table#itemtable tr > .options {
    display: none;
    padding: 8px;
}

.options {
    display: none;
    font-family: main-font-bold;
    position: absolute;
    background: var(--main-item-bg-color);
    border-radius: 5px;
    right: 5px;
    top: 8px;
    box-shadow: -2px 2px 20px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 8px;
    width: 97px;
}

.options > img {
    display: none;
}

.options .btnsmall-sel {
    width: auto;
    background: transparent;
    color: green;
}

.options .btnsmall {
    padding-top: 4px;
    text-align: left;
    color: var(--secondary-text-color);
}

.favorite {
    grid-area: favorite;
    margin-left: 10px !important;
    font-size: 16px;
    line-height: 16px;
    color: var(--main-blue-color);
}

.timers_log {
    grid-area: tools;
    justify-self: center;
}

.timers_log .btnsmall,
.timers_log .btnsmall-sel,
.timers_log .btnsmall:hover,
.timers_log .btnsmall-sel:hover {
    display: inline;
    padding: 0 5px;
    font-size: 16px;
    line-height: 16px;
    color: var(--main-blue-color);
}

/* images */
.item .img,
.item #img {
    grid-area: img;
    align-self: end;
    padding: 0 10px;
}

.item .img img,
.item #img img {
    width: 40px;
    height:40px;
}

.item #img1 img {
    height: auto;
}

#itemtabledoubleicon #img2 img,
#itemtablesmalldoubleicon #img2 img {
    width: 30px;
}

.item #img2 {
    grid-area: img2;
    align-self: end;
    text-align: center;
}

.item #img2 img {
    height: auto
}

.item .img3,
.item #img3 {
    grid-area: img3;
    align-self: end;
}

.item .img3 img,
.item #img3 img {
    width: 40px;
    height: 40px;
}

/* item with button group */
#type .btn-group,
.input .btn-group {
    overflow-x: auto;
}

.item td.input {
    grid-area: status;
    justify-self: right;
    align-self: center;
    padding-right: 20px;
    max-width: 100%;
}

.selectorlevels {
    font-size: 15px;
    text-align: right;
    margin-top: 0 !important;
}

.selectorlevels > select {
    padding: 5px;
    color: var(--main-blue-color) !important;
    outline: 0;
    max-width: 100%;
}

.selectorlevels > span {
    max-width: -webkit-fill-available;
    padding: 0;
}

/* Time Ago */
#dashcontent #timeago {
    display: none;
    grid-area: lastupdate / lastupdate / tools / tools;
    padding-right: 20px;
}

.item #timeago {
    color: var(--secondary-text-color);
    font-family: main-font;
    font-size: 80%;
    grid-area: lastupdate;
    justify-self: right;
}

/* dashboard items */
#dashcontent .lastupdate {
    display: none;
}

#type .dimslider,
.input .dimslider,
.statusNormal .dimslider,
.statusProtected .dimslider {
    background: rgba(0, 0, 0, 0.26);
    border: none;
    border-radius: 3px;
    box-shadow: none;
    height: 5px;
    right: 20px;
    width: calc(100% - 100px) !important;
}

.span4 td#img2 ~ #type .dimslider,
.span4 td#img2 ~ .input .dimslider,
.span4 td#img2 ~ .statusNormal .dimslider,
.span4 td#img2 ~ .statusProtected .dimslider {
    width: 50% !important;
    margin-top: 0 !important;
}

#type .dimslider .ui-slider-range,
.input .dimslider .ui-slider-range,
.statusNormal .dimslider .ui-slider-range,
.statusProtected .dimslider .ui-slider-range {
    background: rgba(var(--main-blue-color-values), 0.5);
}

#type .dimslider .ui-slider-handle,
.input .dimslider .ui-slider-handle,
.statusNormal .dimslider .ui-slider-handle,
.statusProtected .dimslider .ui-slider-handle {
    width: 15px;
    height: 15px;
    background: var(--main-blue-color);
    border-radius: 50%;
    top: -5px;
}

@media (min-width: 1200px) {
    #type .dimslider, .input .dimslider {
        width: 55% !important;
    }
}

body {
    background: var(--main-bg-color) !important;
    font-family: main-font;
    color: var(--main-text-color);
}

html.cover {
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    height: 100vh;
}

html.pattern {
    background-size: auto !important;
    background-repeat: repeat !important;
    background-attachment: scroll !important;
}

/* Header */
header.logo {
    background: var(--main-disabled-color);
    background: linear-gradient(to right, var(--main-disabled-color) 0%, var(--main-blue-color) 100%);
}

.container-logo {
    height: 40px;
    margin: 0 auto;
    position: relative;
}

.events-editor {
    margin-top: 40px;
}

.brand img,
.brand h1,
.brand h2 {
    display: none;
  /*Standart header logo*/
}

img.header__icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0%;
    width: 150px;
}

div.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    top: 0;
    left: 10px;
    width: 25px;
    height: 25px;
    position: fixed;
    padding: 0 5px;
}

.menu-toggle:after, 
.menu-toggle:before, 
.menu-toggle div {
    background-color: #fff;
    border-radius: 3px;
    content: '';
    display: block;
    height: 4px;
    margin: 6px 0;
    transition: all .2s ease-in-out;
}

div.menu-toggle.scrolled {
    background: var(--main-blue-color);
    transition: background-color 1s ease;
    padding: 0 5px 15px 5px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.navbar-inverse .navbar-inner.slide + .menu-toggle:before {
    transform: translateY(12px) rotate(135deg);
}

.navbar-inverse .navbar-inner.slide + .menu-toggle:after {
    transform: translateY(-8px) rotate(-135deg);
}

.navbar-inverse .navbar-inner.slide + .menu-toggle div {
    transform: scale(0);
}

.navbar-inverse .navbar-inner {
    border: none;
    background-color: var(--main-navbar-bg-color);
}

.navbar-inverse .nav li.dropdown > .dropdown-toggle .caret {
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 5px;
    border-top-color: var(--main-text-color);
    border-bottom-color: var(--main-text-color);
}

.navbar-inverse .nav li.dropdown > a:hover .caret,
.navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret {
    border-top-color: var(--main-text-color);
    border-bottom-color: var(--main-text-color);
}

.navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
.navbar-inverse .nav li.dropdown.open > .dropdown-toggle:before {
    background: transparent; 
    color: var(--main-text-color);
}

/* Navbar move abit to left */
.navbar .nav {
    display: flex;
    justify-content: space-around;
    float: none;
}

.navbar .brand {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    display: block !important;
    margin: 0;
}

.navbar .divider-vertical {
    display: none !important;
}

.navbar .nav li a {
    background: none;
    text-shadow: none;
    font-family: main-font-bold;
    font-size: 11pt;
    background-color: transparent;
    color: var(--main-text-color);
    border: none;
    border-radius: 5px;
    position: relative;
}

.navbar .nav li a:hover {
    color: var(--main-text-color);
    background: var(--main-navbar-bg-color);
    border: none;
}

.navbar .nav > li > .dropdown-menu:after {
    display: none;
}

.navbar .nav > li > .dropdown-menu.pull-right:before {
    display: none;
}

.navbar .nav > li > .dropdown-menu.pull-right li {
    margin-top: 5px;
}

.navbar .nav > li > .dropdown-menu.pull-right li a:before {
    height: 0;
}

.navbar .nav > li > .dropdown-menu.pull-right li:first-child {
    margin: 0;
}

.navbar .nav .dropdown-menu {
    border: none;
    background: var(--main-bg-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.navbar .pull-right > li > .dropdown-menu .dropdown-menu,
.navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu {
    background:  var(--main-bg-color) !important;
}

.navbar .nav .current_page_item > a,
.navbar .nav .current_page_item > a:hover,
.navbar-inverse .nav > li > a:focus {
    text-shadow: none;
    color: var(--main-text-color);
    background-image: none;
    background-color: rgba(var(--main-blue-color-values), 0.4);
    font-family: main-font-bold;
    border: 1px solid var(--main-blue-color);
}

.nav li a img {
    display: none;
}

.sub-tabs > li > a,
.sub-tabs > .active > a,
.nav-tabs > .active > a:hover {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--main-text-color);
    cursor: pointer;
}

.sub-tabs > li > a:hover,
.sub-tabs > .active > a,
.nav-tabs > .active > a:hover {
    background: none;
    border-bottom: 2px solid var(--main-blue-color);
}

/* =Header */
.bannercontent {
    padding: 90px 2% 0 2%;
}

.sub-tabs .sub-tabs-apply,
.sub-tabs .sub-tabs-apply:hover {
    background-color: var(--main-blue-color);
    border: none !important;
    border-radius: 2px;
    color: #fff;
}

.btnstylerev,
.btnstyle {
    background: none;
    color: var(--main-text-color);
}

a.btnstylerev,
a.btnstyle {
    position: relative;
    overflow: visible;
    padding: 0em 1em;
}

a.btnstylerev::before,
a.btnstyle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1vmin;
    height: 1vmin;
    background: transparent;
    border-top: 0.1vmin solid var(--main-text-color);
    border-right: 0.1vmin solid var(--main-text-color);
}

a.btnstylerev::before {
    left: 0;
    transform: translate3d(0, -50%, 0) rotate(-135deg);
}

a.btnstyle::after {
    right: 0;
    transform: translate3d(0, -50%, 0) rotate(45deg);
}

a.btnstyle {
    position: relative;
    overflow: visible;
    margin-left: 16px;
    color: var(--main-text-color);
}


/* Reset/save theme button */ 
.resetbtn,
.resetbtn:hover {
    background-color: #c74343;
    border: 2px solid #c74343 !important;
    border-radius: 2px;
    color: #fff;
    padding: 10px 20px;
}

button.resetbtn:active {
    border: 2px solid #fff !important;
}

.savebtn,
.savebtn:hover {
    background-color: var(--main-blue-color);
    border: 2px solid var(--main-blue-color) !important;
    border-radius: 2px;
    color: #fff;
    padding: 10px 20px;
}

button.savebtn:active {
    border: 2px solid #fff !important;
}

button.savebtn:disabled {
    background-color: var(--main-disabled-color);
    border-color: var(--main-disabled-color) !important;
}
/* Settings button, z-wave etc. */
.label-info[href], .badge-info[href] {
    background-color: var(--main-blue-color);
}

/* Panels */
.btn-small {
    padding: 2px 5px;
}
.btn-mini {
    background: none;
    border-color: var(--main-blue-color);
    color: var(--main-blue-color);
    border-radius: 1px;
}

.btn-primary, .btn-primary[disabled] {
    background: none;
    border-color: var(--main-blue-color);
    color: var(--main-blue-color) !important;
    border-radius: 1px;
    text-shadow: none;
}

.btn-primary:not([disabled]):hover, .btn-primary:focus, .btn-primary:active {
    background: none;
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
    color: #fff !important;
    border-radius: 1px;
}

.btn-success {
    background: none;
    border-color: #5bb75b;
    color: #5bb75b;
    border-radius: 1px;
}

.btn-success:hover {
    background: none;
    background-color: #5bb75b;
    border-color: #5bb75b;
    color: #fff !important;
    border-radius: 1px;
}

.btn-warning {
    background: none;
    border-color: #FF8C00;
    color: #FF8C00 !important;
    border-radius: 1px;
}

.btn-warning:hover {
    background: none;
    background-color: #FF8C00;
    border-color: #FF8C00;
    color: #fff !important;
    border-radius: 1px;
}

.btn-info {
    text-shadow: none;
    background: none;
    background-color: var(--main-blue-color);
    border-color: var(--main-blue-color);
    color: #fff !important;
    border-radius: 1px;
}

.btn-info:hover {
    background: none;
    border-color: var(--main-blue-color);
    color: var(--main-blue-color) !important;
    border-radius: 1px;
}

.btn-info:visited {
    color: #fff;
}

.btn-danger {
    background: rgba(255, 255, 255, .4);
    border-color: #c74343;
    border-radius: 1px;
    color: #c74343;
}

.btn-danger:hover {
    background: none;
    background-color: #c74343;
    border-color: #c74343;
    color: #fff;
    border-radius: 1px;
}

.btnsmall,
.btnsmall:hover {
    color: var(--secondary-text-color);
}
.btnsmall:hover {
    font-style: italic;
}

#itemtabledoubleicon td:last-child .btnsmall-sel,
#itemtablenostatus td:last-child .btnsmall-sel,
#itemtabletrippleicon td:last-child .btnsmall-sel {
    border-radius: 0;
    height: auto;
}

/* Data Tables */
.dataTables_wrapper > div:first-child,
.dataTables_wrapper > div:last-child {
    background: transparent;
    border: none !important;
}

.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
    color: var(--secondary-text-color);
}

.dataTables_wrapper .ui-widget-header .ui-state-default {
    background: transparent;
    border: none !important;
    color: var(--main-text-color) !important;
}

table.dataTable thead th {
    background: var(--main-item-bg-color);
    color: var(--main-text-color);
    height: 35px;
    padding-right: 10px;
    text-align: -webkit-left;
    border: none !important;
}

.dataTables_wrapper .dataTable tr {
    border: 1px solid var(--main-border-color);
}

.dataTables_wrapper tr.odd,
.dataTables_wrapper tr.even {
    height: 45px;
    color: var(--main-text-color) !important;
}

.dataTables_wrapper tr.odd {
    background-color: var(--main-disabled-color);
}

.dataTables_wrapper tr.even {
    background-color: var(--main-item-bg-color);
}

tr.odd td.sorting_1, tr.even td.sorting_1 {
    background-color: transparent;
}

.dataTables_wrapper table tbody tr.odd.row_selected td,
.dataTables_wrapper table tbody tr.even.row_selected td {
    background: var(--main-blue-color) !important;
    opacity: .75;
}

.btnstyle3-dis, .btnstyle3, .btnstyle3-sel {
    background: var(--main-blue-color);
    margin-top: 15px;
    border-radius: 2px;
}

.btnstyle3:disabled {
    cursor: not-allowed;
    background: gray;
    border-radius: 2px;
}

h1,
h2,
h2 span {
    color: var(--main-text-color) !important;
}

body table#itemtabledoubleicon tr td:first-child {
    border: none;
    background: transparent;
}

body table#itemtabledoubleicon tbody tr:hover body table#itemtabledoubleicon tr td {
    background: none;
}

body table#itemtabledoubleicon .wrapper {
    color: orange;
}

div#hardwarecontent,div#cameracontent,div#devicecontent,div#logcontent {
    width: auto;
}

.devices-filters__group-title {
    border-color: var(--main-blue-color);
    background-color: var(--main-item-bg-color);
    color: var(--secondary-text-color);
}

.label, .badge {
    font-family: main-font-bold;
    border-radius: 2px;
    background-color: var(--main-blue-color);
    text-align: center;
    color: var(--main-text-color);
    padding-right: 10px;
    padding-left: 10px;
}

.label-important,
.badge-important {
    background-color: #b94a48;
}

.ui-dialog {
    background: var(--main-bg-color) !important;
    z-index: 9999 !important;
}

.ui-dialog-buttonset button {
    font-family: main-font-bold;
    background: var(--main-blue-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
}

#getlatlong {
    background: var(--main-blue-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 8px 15px;
}

/* Charts */
.highcharts-tooltip-container,
.highcharts-legend.highcharts-no-tooltip > rect {
	fill: var(--main-bg-color) !important;
}
	
.highcharts-background {
    fill: var(--main-item-bg-color);
    stroke-width: 0;
}

.highcharts-point {
    stroke-width: 0;
}

.highcharts-label text .highcharts-text-outline {
    display: none;
}

.highcharts-title,
.highcharts-menu-item,
.highcharts-label text,
.highcharts-axis-title text,
.highcharts-axis-labels text,
.highcharts-legend-item text,
.highcharts-tooltip text,
.highcharts-data-label text {
    color: var(--secondary-text-color) !important;
    fill: var(--secondary-text-color) !important;
    font-family: main-font !important;
}
/* Charts - Tooltip */
.highcharts-tooltip text {
    color: var(--secondary-text-color) !important;
    fill: var(--secondary-text-color) !important;
}

.highcharts-tooltip-box {
    fill: var(--main-bg-color);
    fill-opacity: 0.6;
    stroke-width: 0;
}
/* Charts - Grid */
.highcharts-yaxis-grid .highcharts-grid-line {
    stroke: var(--main-bg-color);
}

.highcharts-axis-line {
    stroke: var(--main-bg-color);
}

.highcharts-tick {
    stroke: var(--main-bg-color);
}

.highcharts-yaxis .highcharts-tick {
    display: none;
}

/* Charts - Export button/menu */
.highcharts-button-box {
    fill: var(--main-item-bg-color);
}

.highcharts-button-symbol {
    stroke: var(--secondary-text-color) !important;
}

.highcharts-contextbutton:hover {
    cursor: pointer;
}

.highcharts-menu {
    background: var(--main-bg-color) !important;
}

.highcharts-menu-item:hover {
    background: var(--main-text-color) !important;
    color: var(--main-bg-color) !important;
}

/* Setup */
input#AcceptNewHardware:checked ~ button {
    display: none
}

.allow5min,
.allow5min:hover {
    background: none;
    background-color: var(--main-blue-color);
    color: #fff;
    border-radius: 2px;
    border: none;
}

.ui-corner-all {
    background: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--main-blue-color);
    color: var(--secondary-text-color);
    font-family: main-font;
    outline: none;
}

textarea {
	border-radius: 2px !important;
	border: 1px solid var(--main-blue-color) !important;
}

select.ui-corner-all option {
    background: var(--main-navbar-bg-color);
}

/* =Setup */
/* Footer */
/* =Footer */
/* Popups */

.list-group-item, .list-group-item:link {
    background: var(--main-bg-color);
    color: var(--main-text-color);
}

#offline {
    background: linear-gradient(to right, #0bcdc7 0%, #0b97cd 100%) !important;
}

#offline h3 {
    color: #fff !important;
}

#offline h3:after, #offline h3:before,#offline:after, #offline:before {
    display: none;
}

/* =Popus */
.ui-dialog-buttonset .ui-button-text {
    color: #fff;
}

.ui-widget-header {
    color: var(--secondary-text-color);
}

.btnsmall,.btnsmall-sel {
    display: block;
    background: none;
}

.item.fadeOff {
    opacity: 0.5;
}
/*  Device is timeout  */
.item.statusTimeout {
    box-shadow: 0px 0px 10px 2px rgb(199,67,67,0.5);
    opacity: 0.5;
	/*! background-color: transparent !important; */
}

.item.statusTimeout tr:hover {
    box-shadow: 0px 0px 0px 2px rgb(199,67,67) !important;
}
/* Switch is protected */
.item.statusProtected tr {
    box-shadow: 0px 0px 10px 2px rgb(0, 0, 139, 0.4) !important;
}
.item.statusProtected tr:hover {
    box-shadow: 0px 0px 10px 2px rgb(0, 0, 139, 0.4) !important;
}

/* Device has low battery */
.item.statusLowBattery tr {
    box-shadow: 0px 0px 10px 2px rgb(255,255,0,0.4) !important;
}

.item.statusLowBattery tr:hover {
    box-shadow: 0px 0px 0px 2px rgb(255,255,0) !important;
}

.blink {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}
/* Watermarks */
/* Media Queries */

@media (min-width: 768px) {
    .navbar .brand {
        left: auto;
        margin-left: 90px;
        transform: translateX(0);
    }
}
#login:before {
    background: linear-gradient(to right, #0bcdc7 0%, #0b96cd 100%);
    text-align: center;
    vertical-align: middle;
    background-size: 100% 75px;
    background-repeat: no-repeat;
    border: none !important;
	border-radius: 6px !important;
    top: 0% !important;
    bottom: 0% !important;
    left: 0% !important;
    right: 0% !important;
    padding-top: 15px;
	content: url(images/logo.png) !important;
}

#login h1:after, #login h1:before {
    content: none !important;
}


#login {
    width: 450px;
    height: auto !important;
/*     margin: auto;
    position: relative; */
	padding: 90px 30px 30px 30px !important;
	background: #fff;
    border: 1.5px solid;
    border-color: transparent;
    border-radius: 6px !important;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
}

#login h1 {
	color:#fff !important;
	font: bold 26px/1 Verdana, Helvetica !important;
	display: none
}

#login input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    position: relative;
    background: #fff;
    border: 1px solid #0b96cd;
    outline: none;
}
#login input[type="checkbox"]:checked::before {
    background: #0b96cd;
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
}

#login a {
    display: none
}

#login #inputs input[type=text], #login #inputs input[type=password] {
    border: none;
    border-radius: none !important;
    box-shadow: none !important;
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    color: #1a1a1a;
}

#login #inputs input[type=text]:focus, #login #inputs input[type=password]:focus {
    border-bottom: 1px solid #0b96cd;
    color: #1a1a1a;
}

#login fieldset {
    font-family: main-font;
    margin: auto !important;
    width: 25%;
}

#login {
    background-image: none !important;
    background-color: #ffffff !important;
}

#login #submit {
    background-image: none;
    background-color: #0b96cd;
    color: #fff;
    border: none;
    text-shadow: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.btn-group .btn {
    margin: 0 0 0 -1px !important;
    text-shadow: none !important;
    color: var(--main-text-color);
    font-family: main-font;
    border: none !important;
}

.btn-group > .btn:first-child,
.btn-group > .btn:last-child {
    margin-left: 0 !important;
    border-radius: 0px !important;
}

.btn-default,
.btn-group .btn-default {
    background: var(--main-item-bg-color) !important;
    border-color: var(--main-blue-color) !important;
    color: var(--main-blue-color) !important;
    text-shadow: none;
}

.btn.btn-selected,
.btn-group .btn-selected,
.btn-default.active,
.btn-group .btn-default.active {
    color: var(--main-text-color) !important;
    background: transparent !important;
    border-color: transparent !important;
    font-family: main-font-bold;
}

.btn-default:hover,
.btn-group .btn-primary {
    color: var(--main-item-bg-color) !important;
    background: var(--main-blue-color) !important;
    border-color: var(--main-blue-color) !important;
}

.btn-group .btn-primary:hover {
    background: var(--main-item-bg-color) !important;
    color: var(--main-blue-color) !important;
    border-color: var(--main-blue-color) !important;
    border-radius: 1px !important;
}

.btn-group .btn-danger {
    background: none !important;
    border-color: #c74343 !important;
    color: #c74343;
    border-radius: 1px !important;
}

.btn-group .btn-danger:hover {
    background: #c74343 !important;
    border-color: #c74343 !important;
    color: #fff;
}

.btn-group .btn-info {
    background: var(--main-blue-color) !important;
    border-color: var(--main-blue-color) !important;
    color: #fff;
}

.btn-group .btn-info:hover {
    border-color: var(--main-blue-color) !important;
}

.btn-group {
    padding-bottom: 1px;
}

/* Selector */
.ui-selectmenu-button.ui-button {
    width: auto !important;
    border-radius: 0;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.ui-menu-item-wrapper.ui-state-active {
    background: var(--main-blue-color);
    border: 0;
    font-weight: normal;
}

.ui-selectmenu-button-open, 
.ui-button:hover, .ui-button:focus {
    background: transparent;
    outline: none;
}

.ui-selectmenu-text {
    color: var(--main-blue-color);
    font-family: main-font-bold;
    font-weight: 600;
}

.selectorlevels-menu {
    border-color: var(--main-blue-color) !important;
    color: var(--main-text-color);
    background: var(--main-bg-color);
}

@media (max-width: 767px) {
    .msg {
        left: 20px;
    }
}

#copyright {
    background: var(--main-navbar-bg-color);
    opacity: 0.6;
    border-top: 0;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

#copyright p {
    font-family: main-font;
    color: var(--main-text-color);
}

#copyright p a {
    color: var(--main-blue-color);
}
/* author at footer */
#copyright p:after {
    content: "  | 'Machinon' theme";
}

/* Compact mode */
section.compact {
    margin-bottom: 20px;
}

section.compact h2 {
    display: none;
}

section.compact .row.divider {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    grid-auto-flow: row dense;
    justify-content: space-evenly;
    row-gap: 20px;
    padding: 0;
}

.span3 {
    margin: 0;
    padding: 0;
    width: 100%;
}

.span3 #name {
    padding: 2px 10px;
    line-height: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.span3 #status {
    color: var(--main-blue-color);
}

.span3 td.input {
    padding: 10px 15px;
    width: calc(100% - 10px);
    max-width: 100px;
    text-align: right;
}

.span3 td#img2 ~ td.input {
     width: calc(100% - 60px);
}

.span3 td.input .btn-group {
    flex-flow: column;
    justify-content: start;
    white-space: normal;
    margin-top: 0 !important;
    height: 50px;
    width: 100%;
    scroll-snap-type: y mandatory;
    background: var(--main-bg-item-color) !important;
}

.span3 td.input .btn-group button {
    order: 2;
    border-radius: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.span3 td.input .btn-group button.btn-selected {
    color: var(--main-blue-color) !important;
    font-family: main-font-bold;
    font-size: 1rem;
    font-weight: 600;
    min-height: 50px;
    order: 1;
}

.span3 td.switch-cell~td.input {
    align-self: end;
}

.span3 .switch-cell {
    grid-area: status;
    align-self: start;
    padding: 0 10px;
}

#dashSwitches .span3 #bigtext,
#dashWeather .span3 .status,
#dashTemperature .span3 .status,
#dashUtility .span3 .item:not(.Text):not(.Alert) .status {
    display: none;
}

#dashScenes .span3 #bigtext,
#dashSwitches .span3 #bigtext,
#dashWeather .span3 #bigtext,
#dashTemperature .span3 #bigtext,
#dashUtility .span3 #bigtext {
    grid-area: status;
    padding: 0 10px;
    align-self: center;
    font-size: 1.4em;
}

#holder #dashcontent .row .span3 .item table[id^="item"] > tbody > tr {
    grid-template-rows: 20px 58px 0;
    grid-template-columns: 58px 5px 1fr;
    grid-gap: 2px;
    gap: 2px;
    grid-template-areas: 'name name name'
    'img img2 status'
    'lastupdate lastupdate lastupdate';
    overflow: hidden;
}

#holder #dashcontent .row .span3 .item table[id="itemtablesmalltrippleicon"] > tbody > tr {
    grid-template-columns: 58px 45px 58px;
    grid-template-areas: 'name name name'
    'img img2 img3'
    'lastupdate lastupdate lastupdate';
}

#holder #dashcontent .row .span3 .item table[id="itemtablesmalltrippleicon"] > tbody > tr td#bigtext {
    display: none !important;
}
