/*
    !Навигация по css файлу!

    GENERAL_START       - (Общие css стили или используемые не на 1 странице)
    MAIN_START          - (Главная страница)
    WIDGET_START        - (Виджеты страница)
    RULE_START          - (Правила страница)
    EVENT_START         - (События страница)
    VARIABLE_START      - (Переменные страница)
    NOTIFICATION_START  - (Оповещение страница)
    ANALOG_START        - (Аналог страница)
    SENSOR_START        - (1-Wire страница)
    DEVICE_START        - (Конфигурация страница)
    STATISTIC_START     - (Статистика страница)
    LOG_START           - (Лог страница)
    DISPLAY_START       - (Дисплей страница)
    DEBUG_START         - (debugger страница)
    PROFILE_START       - (profile страница)
    LOGIN_START         - (login страница)
    ALICE               - (aloce страница)
    MEDIA_QUERIES_START - (Медиа запросы)

    !Правила оформления для единой стилистики!

    все цвета без прозрачности пишем в hex маленькими буквами полной длинной без сокращений от 6 символов -> #FFFFFF
    все цифровые значения ниже единицы пишем через точку например -> .3px
*/

/* !GENERAL_START */
@font-face {
    font-family: 'Open Sans Regular';
    src: local('Open Sans Regular'), local('OpenSansRegular'),
    url('../fonts/OpenSans-Regular.woff2') format('woff2'),
    url('../fonts/OpenSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jura';
    src: local('Jura-Medium'), local('Jura-Medium'),
    url('../fonts/Jura-Medium.woff2') format('woff2'),
    url('../fonts/Jura-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: local('Dosis'), local('Dosis'),
    url('../fonts/Dosis.woff2') format('woff2'),
    url('../fonts/Dosis.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jura', sans-serif;
    font-size: 16px;
    min-width: 320px;
}

h1 {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
}

h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-top: 15px;
    position: relative;
}

h3 {
    margin-bottom: 15px;
    position: relative;
}

a {
    color: #378FCC;
}

html {
    -webkit-text-size-adjust: none;
}

input {
    -webkit-appearance: none;
}

input, textarea, select {
    font-family: 'Jura', sans-serif;
    font-size: .9rem;
}

.err-404 {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.menu-mobile,
.menu-control {
    display: none;
}

.footer {
    background: #378FCC;
    height: 170px;
    color: #FFFFFF;
}

.footer-line {
    height: 5px;
    background: #378FCC;
    margin: 35px 0 15px;
}

.close-popup {
    background: #992F2F !important;
    border: 1px solid #400000 !important;
}

.close-popup:hover {
    background: #B63B3B !important;
}

.warning-message {
    background: #FFF7BF;
    padding: 20px 15px;
    margin-bottom: 25px;
    border: 1px solid #F7EFB6;
}

.center {
    text-align: center;
}

.clearfix::after {
    content: '';
    clear: both;
    display: table;
}

.hidden {
    display: none;
}

.menu-icon,
.menu ul li a {
    -webkit-transition: all 1s ease .15s;
    -moz-transition: all 1s ease .15s;
    -o-transition: all 1s ease .15s;
    transition: all ease .15s;
}

.red {
    background-color: #F44336 !important;
    color: #FFFFFF !important;
}

.pink {
    background-color: #E91E63 !important;
    color: #FFFFFF !important;
}

.purple {
    background-color: #9C27B0 !important;
    color: #FFFFFF !important;
}

.deep-purple {
    background-color: #673AB7 !important;
    color: #FFFFFF !important;
}

.indigo {
    background-color: #3F51B5 !important;
    color: #FFFFFF !important;
}

.blue {
    background-color: #2196F3 !important;
    color: #FFFFFF !important;
}

.light-blue {
    background-color: #87CEEB !important;
    color: #FFFFFF !important;
}

.cyan {
    background-color: #00BCD4 !important;
    color: #FFFFFF !important;
}

.aqua {
    background-color: #00FFFF !important;
    color: #000000 !important;
}

.teal {
    background-color: #009688 !important;
    color: #FFFFFF !important;
}

.green {
    background-color: #4CAF50 !important;
    color: #FFFFFF !important;
}

.light-green {
    background-color: #8BC34A !important;
    color: #FFFFFF !important;
}

.lime {
    background-color: #CDDC39 !important;
    color: #000000 !important;
}

.sand {
    background-color: #FDF5E6 !important;
    color: #000000 !important;
}

.khaki {
    background-color: #F0E68C !important;
    color: #000000 !important;
}

.yellow {
    background-color: #FFEB3B !important;
    color: #000000 !important;
}

.amber {
    background-color: #ffC107 !important;
    color: #FFFFFF !important;
}

.orange {
    background-color: #FF9800 !important;
    color: #FFFFFF !important;
}

.deep-orange {
    background-color: #FF5722 !important;
    color: #FFFFFF !important;
}

.brown {
    background-color: #795548 !important;
    color: #FFFFFF !important;
}

.light-grey {
    background-color: #F1F1F1 !important;
    color: #000000 !important;
}

.grey {
    background-color: #9E9E9E !important;
    color: #FFFFFF !important;
}

.dark-grey {
    background-color: #616161 !important;
    color: #FFFFFF !important;
}

.white {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

.black {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

.pale-red {
    background-color: #FFDDDD !important;
    color: #000000 !important;
}

.pale-yellow {
    background-color: #FFFFCC !important;
    color: #000000 !important;
}

.pale-green {
    background-color: #DDFFDD !important;
    color: #000000 !important;
}

.pale-blue {
    background-color: #DDFFFF !important;
    color: #000000 !important;
}

.box-center {
    position: relative;
    max-width: 1260px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 5px;
    font-size: .9rem;
}

.clear {
    clear: both;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: url(../images/up-bg.png) 0 0 no-repeat #378FCC;
    height: 58px;
    min-width: 320px;
    color: #FFFFFF;
    z-index: 99998;
    -webkit-box-shadow: 0 1px 2px 0 rgba(50, 50, 50, .75);
    -moz-box-shadow: 0 1px 2px 0 rgba(50, 50, 50, .75);
    box-shadow: 0 1px 2px 0 rgba(50, 50, 50, .75);
}

.menu-icon {
    float: right;
    background: #378FCC;
    width: 57px;
    height: 57px;
    box-sizing: border-box;
    padding-top: 10px;
    cursor: pointer;
}

.menu-icon:hover {
    background: #2C78AB;
}

.menu-icon span {
    display: block;
    background: #FFFFFF;
    width: 6px;
    height: 6px;
    margin: 5px 0 0 26px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.menu {
    display: none;
    background: #FFFFFF;
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    padding-top: 80px;
    z-index: 99999;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-box-shadow: -3px 1px 4px 0 rgba(50, 50, 50, .43);
    -moz-box-shadow:    -3px 1px 4px 0 rgba(50, 50, 50, .43);
    box-shadow:         -3px 1px 4px 0 rgba(50, 50, 50, .43);
}

.menu a {
    font-size: 1.2em;

}

.menu a:hover {
    text-decoration: none;
}

.menu > ul {
    list-style-type: none;
    margin-top: 10px;
    overflow-y: auto;
}

.menu > ul > li {
    position: relative;
    font-size: 1.1rem;
    padding: 40px 50px 40px 65px;
    color: #000000;
    cursor: pointer;
    text-align: left;
    background: #EEEEEE;
    border-bottom: 1px solid #CCCCCC;
    height: 28px;
}

.menu > ul li.device-satellit {
    position: relative;
    height: auto;
    padding: 15px 50px 15px 55px;
    text-align: left;
    margin-left: 55px;
}

.menu > ul > li.device-satellit::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0;
    height: 100%;
    width: 1px;
    background: #777777;
}

.menu > ul > li.device-satellit.last-item::before {
    height: 50%;
}

.menu > ul > li.device-satellit::after {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    height: 1px;
    width: 18px;
    background: #777777;
}

.menu > ul > li.device-satellit .device-status-menu.device-error-menu {
    top: 20px;
    left: 20px;
}

.menu > ul li:hover {
    background: #DDDDDD;
}

.menu > ul li ul {
    display: none;
}

.menu > ul li ul li {
    font-size: 1.1rem;
    padding: 5px 0 5px 40px;
}

.menu ul li a {
    color: #378FCC;
}

.menu ul li a:hover {
    text-decoration: none;
}

.menu .device-list-title {
    font-size: .9rem;
    text-transform: uppercase;
    color: #777777;
    padding-left: 30px;
}

.menu .device-list-title-other {
    display: none;
    font-size: .9rem;
    text-transform: uppercase;
    color: #777777;
    padding: 15px 10px 0 30px;
}

.user-exit {
    position: absolute;
    top: 18px;
    left: 91px;
    text-align: center;
    width: 28px;
    height: 28px;
    background: url(../svg/logout.svg) 50% 50% no-repeat;
    box-sizing: border-box;
}

.user-exit:hover {
    background: url(../svg/logout-black.svg) 50% 50% no-repeat;
}

.user-profile {
    position: absolute;
    top: 18px;
    left: 61px;
    text-align: center;
    width: 28px;
    height: 28px;
    background: url(../svg/profile.svg) 50% 50% no-repeat;
    background-size: cover;
    box-sizing: border-box;
}

.user-profile:hover {
    background: url(../svg/profile-black.svg) 50% 50% no-repeat;
}

.device-add {
    position: absolute;
    top: 18px;
    left: 30px;
    text-align: center;
    width: 28px;
    height: 28px;
    border: 2px solid #378FCC;
    box-sizing: border-box;
    cursor: pointer;
}

.device-add::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #378FCC;
    text-align: center;
    width: 2px;
    height: 14px;
    margin: -7px 0 0 -1px;
}

.device-add::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #378FCC;
    text-align: center;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
}

.device-add:hover {
    border-color: #000000;
}

.device-add:hover::after,
.device-add:hover::before {
    background: #000000;
}

.device-list {
    background: #EEEEEE;
}

.device-list-other-empty {
    display: none;
    text-align: center;
    margin-top: 15px;
    font-size: .85rem;
    color: #777777;
}

.device-list-empty {
    display: none;
    text-align: center;
    margin-top: 15px;
    font-size: .85rem;
    color: #777777;
}

.device-name-chipset {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: .8rem;
    color: #BBBBBB;
}

.blue .device-name-chipset {
    color: #7EC2F8;
}

.menu-close {
    background: url(../images/menu-close.png) 0 0 no-repeat;
    position: absolute;
    top: 20px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.menu-close:hover {
    opacity: .7;
}

.text-menu-device-color {
    color: #FFFFFF !important;
}

.main {
    min-height: 750px;
    margin: 0 auto 15px auto;
}

.box-content {
    margin-top: 20px;
    position: relative;
}

.box-main {
    height: 217px;
    padding-top: 58px;
    min-width: 320px;
    background: url(../images/bg-fon-v2.jpg) no-repeat #2759a5;
    background-size: cover;
}

.control-window {
    display: none;
    position: fixed;
    overflow: hidden;
    top:  58px;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 217px;
    background: rgba(17, 124, 75, .9);
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.control-window span {
    display: block;
    margin-top: 70px;
    color: #FFFFFF;
    font-size: 1.2rem;
}

.control-window-del {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 17px;
    height: 17px;
    cursor: pointer;
    transform: rotate(45deg);
}

.control-window-del::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -1px 0 0 -10px;
    width: 20px;
    height: 2px;
    background: #FFFFFF;
}

.control-window-del::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -1px;
    width: 2px;
    height: 20px;
    background: #FFFFFF;
}

.control-window-icon {
    display: none;
    width: 35px;
    height: 35px;
    background: url(../images/sync.png) 0 0 no-repeat;
    background-size: cover;
    text-align: center;
    margin-bottom: 3px;
    cursor: pointer;

}

.control-window-alarm-forward {
    transform: scaleX(-1);
    transition: transform .2s;
}

.control-window-alarm-back {
    transform: scaleX(1);
    transition: transform .2s;
}

.main-info {
    position: relative;
    width: 100%;
}

.main-box {
    font-family: 'Jura', sans-serif;
    font-size: .87rem;
    float: right;
    color: #FFFFFF;
    margin-top: 45px;
    margin-right: 15px;
    background-color: rgba(0, 46, 79, .7);
    border-radius: 6px;
    padding: 10px;
}

.main-box-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFFFFF;
    position: absolute;
    top: 13px;
    left: 15px;
}

.device-name {
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.acc {
    font-size: .85rem;
    position: absolute;
    top: 20px;
    left: 0;
    width: 300px;
}

.device-name a {
    text-decoration: none;
    color: #FFFFFF;
}

.device-name:hover {
    text-decoration: none;
}

.device-name-ip {
    display: none;
}

.control-warning {
    display: flex;
    position: fixed;
    top: 60px;
    right: 2px;
    z-index: 500;
}

.control-error-icon {
    display: none;
    width: 35px;
    height: 35px;
    background: url(../images/error.png) 0 3px no-repeat;
    background-size: 100%;
    cursor: pointer;
    margin-right: 2px;
    -webkit-transition: -webkit-transform 1s;
    -moz-transition: -moz-transform 1s;
    -ms-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    transition: transform 1s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    z-index: 999;
}

.control-error-icon-hover {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.modal.modal-status-error {
    display: none;
    top: 70px;
    margin: 0 0 0 -625px;
    background: #FFFFFF;
    width: 1250px;
    height: 90%;
    padding: 25px 30px 105px 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-status-error-text {
    margin-top: 20px;
    font-size: .9rem;
    background: #FFFFFF;
    overflow-y: auto;
    height: 100%;
}

.modal-status-error-text table {
    border-collapse: collapse;
}

.modal-status-error-text td {
    border-bottom: 1px solid #CCCCCC;
    padding: 2px 10px 2px 5px;
}

.modal-status-error-text td span {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}

.modal-status-error-text td span:hover {
    text-decoration: underline;
}


.modal-status-error-text::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.modal-status-error-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .3);
}

.modal-status-error-text::-webkit-scrollbar-thumb {
    background: #378FCC;
}

.modal-status-error-text::-webkit-scrollbar-thumb:hover {
    background: #22ADD4;
}

.modal-status-error-text::-webkit-scrollbar-thumb:active {
    background: linear-gradient(left, #22ADD4, #1E98BA);
}

.geterror-table td {
    background: #000000;
    color: #FFFFFF;
    padding: 5px;
}

.main-box-list ul {
    list-style-type: none;
    float: left;
    margin-left: 30px;
    height: 116px;
    width: 170px;
    overflow-y: auto;
}

.main-box-list ul.info-sensors-top {
    border-right: 1px dashed rgba(255, 255, 255, .5);
}

.main-box-list ul:hover {
    overflow-y: auto;
}

.main-box-list ul::-webkit-scrollbar {
    width: 3px;
    background-color: #F5F5F5;
}

.main-box-list ul::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .8);
}

.main-box-list ul::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #378FCC;
}

.main-box-list ul::-webkit-scrollbar-thumb:hover {
    background: #22ADD4;
}

.main-box-list ul::-webkit-scrollbar-thumb:active {
    background: linear-gradient(left, #22ADD4, #1E98BA);
}

.main-box-list ul li {
    margin-bottom: 13px;
}

.main-box-list ul:first-child {
    padding-right: 30px;
    border-right: 1px dashed rgba(255, 255, 255, .5);
    margin-left: 0;
    width: 200px;
}

.main-box-list ul:nth-child(2) {
    padding-right: 30px;
    border-right: 1px dashed rgba(255, 255, 255, .5);
}

.list-empty {
    padding: 0 0 15px 0;
    font-style: italic;
    text-align: center;
}

.list-empty.line{
    border-bottom: 1px solid #C0D1E9;
    margin-bottom: 15px;
}

.info-icon {
    position: relative;
}

.info-icon span {
    position: absolute;
    right: -24px;
    top: 10px;
    display: block;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 1.2;
    border: 1px solid #2C78AB;
    color: #2C78AB;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    font-size: .7rem;
    margin-top: -10px;
    cursor: pointer;
}

.info-icon:hover {
    background: #2C78AB;
    color: #FFFFFF;
}

.info-text {
    margin-top: 5px;
    height: 85%;
    padding-right: 10px;
    overflow-y: auto;
}

.info-text::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.info-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .3);
}

.info-text::-webkit-scrollbar-thumb {
    background: #378FCC;
}

.info-text::-webkit-scrollbar-thumb:hover {
    background: #22ADD4;
}

.info-text::-webkit-scrollbar-thumb:active {
    background: linear-gradient(left, #22ADD4, #1E98BA);
}

.info-text p {
    margin-top: 15px;
}

.status-modules {
    position: relative;
    top: 2px;
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 10px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-active {
    position: relative;
    top: 2px;
    margin-left: 5px;
    display: inline-block;
    background: #93C47D;
    width: 15px;
    height: 15px;
    border: 1px solid #93C47D;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-error {
    position: relative;
    top: 2px;
    margin-left: 5px;
    display: inline-block;
    background: #CC4125;
    width: 15px;
    height: 15px;
    border: 1px solid #CC4125;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-undefined {
    position: relative;
    top: 2px;
    margin-left: 5px;
    display: inline-block;
    background: #DDDDDD;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-active-menu {
    position: absolute;
    top: 45px;
    left: 30px;
    display: inline-block;
    background: #93C47D;
    width: 15px;
    height: 15px;
    border: 1px solid #93C47D;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-error-menu {
    position: absolute;
    top: 45px;
    left: 30px;
    display: inline-block;
    background: #CC4125;
    width: 15px;
    height: 15px;
    border: 1px solid #CC4125;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.device-undefined-menu {
    position: absolute;
    top: 45px;
    left: 30px;
    display: inline-block;
    background: #DDDDDD;;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.sensor {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #D7DEE8;
    padding: 10px 15px;
    text-align: center;
    margin-top: 15px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.sensor-title {
    font-size: .95rem;
    color: #555555;
    margin-top: 15px;
}

.sensor-line {
    height: 3px;
    margin: 10px 10px;
}

.sensor-data {
    font-size: 1rem;
    color: #555555;
}

.sensor-graphic {
    position: relative;
    width: 210px;
    height: 140px;
    margin: 15px auto 10px;
}

.sensor-graphic-box {
    position: absolute;
    bottom: 25px;
    left: 50%;
    border-left: 1px solid #BBBBBB;
    border-bottom: 1px solid #BBBBBB;
    width: 180px;
    height: 100px;
    font-size: .7rem;
    margin-left: -90px;
    color: #999999;
}

.v-line,
.g-line,
.sensor-graphic-draw {
    list-style-type: none;
}

.v-line li {
    position: absolute;
    left: -17px;
}

.v-line li:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 180px;
    height: 1px;
    border-bottom: 1px dashed #999999;
    -moz-opacity: .6;
    opacity: .6;
    z-index: 5;
}

.v-line li:nth-child(1) {
    top: 0;
}

.v-line li:nth-child(2) {
    top: 50%;
}

.v-line li:nth-child(3) {
    bottom: 0;
}

.v-line li:nth-child(3):after {
    display: none;
}

.v-line span {
    position: absolute;
    right: -10px;
    top: -7px;
}

.g-line li {
    display: block;
    position: absolute;
    bottom: -17px;
}

.g-line li:nth-child(1) {
    right: 66.6%;
}

.g-line li:nth-child(2) {
    right: 33.3%;
}

.g-line li:nth-child(3) {
    right: 0;
}

.g-line li:after {
    content: "";
    position: absolute;
    bottom: 14px;
    right: 50%;
    width: 1px;
    height: 100px;
    border-left: 1px dashed #999999;
    -moz-opacity: .6;
    opacity: .6;
    z-index: 5;
}

.sensor-graphic-draw {
    margin-left: 0;
    background: #FFFFFF;
    width: 180px;
    height: 99px;
    -webkit-transform: scale(-1, -1);;
    -moz-transform: scale(-1, -1);;
    -o-transform: scale(-1, -1);;
    transform: scale(-1, -1);
}

.sensor-graphic-draw li {
    float: left;
    width: 1px;
}

.sensor-graphic-draw li:nth-child(-n+22) {
    opacity: .8;
}

.sensor-graphic-draw li:nth-child(n+82) {
    opacity: .8;
}

.time-graphic {
    position: absolute;
    bottom: -20px;
    left: 50px;
}

.sensor-name {
    font-size: .8em;
    color: #AAAAAA;
}

.sensor-list {
    list-style-type: none;
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    margin-top: 10px;
    padding: 10px 20px 20px 15px;
    text-transform: uppercase;
    color: #555555;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sensor-list > li {
    float: left;
    width: 24%;
    margin-right: 1%;
}

.sensor-list > li .sensor {
    padding: 20px 20px 12px 20px;
}

.sensor-no-detected-box .sensor-graphic-draw {
    background: rgba(0, 0, 0, .2) !important;
    z-index: 999;
}

.sensor-no-detected {
    position: absolute;
    top: 29px;
    left: 0;
    width: 120px;
    padding: 0 30px;
    font-size: 1.3em;
    color: #FFFFFF;
    z-index: 99;
    text-align: center;
}

.modal.modal-add-device {
    height: 280px;
    margin-top: -140px;
}

.device-register ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.device-register input[type=radio] {
    display: none;
}

.device-register-chipset li {
    display: inline-block;
    width: 49%;
}

.device-register label {
    display: inline-block;
    width: 100%;
    line-height: 80px;
    border: 5px solid #CCCCCC;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    color: #777777;
    cursor: pointer;
}

.device-register input[name=name] {
    display: block;
    width: 94%;
    border: 1px solid #CCCCCC;
    line-height: 20px;
    height: 20px;
    padding: 10px;
    margin: 10px 0;
}

.device-register label {
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}

.device-register input[type=radio]:checked ~ label {
    border: 5px solid #378FCC;
    box-sizing: border-box;
    font-weight: bold;
    color: #333333;
}

.device-register input[type=submit] {
    background: #378FCC;
    color: #FFFFFF;
    border: 1px solid #378FCC;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
}

.device-category {
    position: relative;
    list-style-type: none;
    border-bottom: 1px solid #C0D1E9;
    font-size: .93rem;
    padding-bottom: 17px;
}

.device-category li {
    position: relative;
    width: 15.666%;
    margin: 15px 1% 0 0;
    float: left;
}

.device-category-beta {
    position: absolute;
    z-index: 1;
    top: 1px;
    right: 1px;
    width: 42px;
    height: 42px;
    background: transparent url(../images/beta.png);
    background-size: cover;
}

.device-category li a {
    display: block;
    width: 100%;
    float: left;
    box-sizing: border-box;
    text-align: left;
    padding-left: 62px;
    border: 1px solid #C0D1E9;
    background: #DFE8F3;
    line-height: 60px;
    height: 60px;
    position: relative;
    text-decoration: none;
    color: #444444;
    border-radius: 6px;
}

.device-category li a:hover {
    background: #C8DCF3;
}

.device-category li a.active {
    background: #C8DCF3;
    background: rgba(55, 143, 204, .65);
    color: #FFFFFF;
    cursor: default;
}

.main-icon-home,
.main-icon-widget,
.main-icon-rule,
.main-icon-event,
.main-icon-variable,
.main-icon-notification,
.main-icon-analog,
.main-icon-sensor,
.main-icon-device,
.main-icon-statistic,
.main-icon-log,
.main-icon-display,
.main-icon-debug,
.main-icon-alice{
    display: block;
    position: absolute;
    top: 13px;
    left: 10px;
    background-size: cover !important;
    width: 33px;
    height: 33px;
}

.main-icon-home {
    background: url(../svg/home.svg) 0 0 no-repeat;
}

.main-icon-widget {
    background: url(../svg/widget.svg) 0 0 no-repeat;
}

.main-icon-rule {
    background: url(../svg/rule.svg) 0 0 no-repeat;
}

.main-icon-event {
    background: url(../svg/event.svg) 0 0 no-repeat;
}

.main-icon-variable {
    background: url(../svg/variable.svg) 0 0 no-repeat;
}

.main-icon-notification {
    background: url(../svg/notification.svg) 0 0 no-repeat;
}

.main-icon-analog {
    background: url(../svg/analog.svg) 0 0 no-repeat;
}

.main-icon-sensor {
    background: url(../svg/sensor.svg) 0 0 no-repeat;
}

.main-icon-device {
    background: url(../svg/device.svg) 0 0 no-repeat;
}

.main-icon-statistic {
    background: url(../svg/statistic.svg) 0 0 no-repeat;
}

.main-icon-log {
    background: url(../svg/log.svg) 0 0 no-repeat;
}

.main-icon-display {
    background: url(../svg/display.svg) 0 0 no-repeat;
}

.main-icon-alice {
    background: url(../svg/alice.svg) 0 0 no-repeat;
}

.main-icon-debug {
    background: url(../svg/debug.svg) 0 0 no-repeat;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -200px 0 0 -210px;
    background: #FFFFFF;
    width: 420px;
    height: 370px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 20px;
    -webkit-box-shadow: 0 0 4px 0 rgba(50, 50, 50, .75);
    -moz-box-shadow: 0 0 4px 0 rgba(50, 50, 50, .75);
    box-shadow: 0 0 4px 0 rgba(50, 50, 50, .75);
    z-index: 504;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: url(../images/close-btn-b.png) 50% 50% no-repeat;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 98;
}

.modal.info-modal {
    width: 800px;
    height: 640px;
    margin: -320px 0 0 -400px;
}

.modal-rename-sensor,
.modal-small-popup {
    height: 200px;
    z-index: 99999;
}

.modal-small2-popup {
    height: 290px;
    z-index: 99999;
}

.modal-small4-popup {
    height: auto;
    min-height: 200px;
    z-index: 99999;
}

.form-fields-select {
    position: relative;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    margin-right: 5px;
}

.form-small-popup {
    display: block;
    font-size: .8rem;
    color: #555555;
    margin: 10px 0 2px;
}

.form-rename-sensor input[type=submit],
.form-add-sensor input[type=submit],
.form-small-popup input[type=submit],
.form-small-popup input[type=button] {
    background: #378FCC;
    color: #FFFFFF;
    border: 1px solid #378FCC;
    padding: 10px 15px;
    margin-top: 15px;
    cursor: pointer;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.form-rename-sensor input[type=submit]:hover,
.form-small-popup input[type=submit]:hover,
.form-small-popup input[type=button]:hover {
    background: #3FA7E6;
}

.modal-title {
    font-weight: bold;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #378FCC;
}

.modal-fon {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
    width: 100%;
    height: 100%;
    z-index: 99;
}

.progress-bar {
    display: none;
    background-color: #1A1A1A;
    height: 25px;
    padding: 5px;
    width: 196px;
    margin: 0 auto 20px auto;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0 1px 5px #000000 inset, 0 1px 0 #444444;
    -webkit-box-shadow: 0 1px 5px #000000 inset, 0 1px 0 #444444;
    box-shadow: 0 1px 5px #000000 inset, 0 1px 0 #444444;
}

.progress-bar span {
    display: inline-block;
    height: 100%;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    -webkit-transition: width .4s ease-in-out;
    -moz-transition: width .4s ease-in-out;
    -ms-transition: width .4s ease-in-out;
    -o-transition: width .4s ease-in-out;
    transition: width .4s ease-in-out;
}

.progress-bar > span {
    background-color: #34C2E3;
}

.stripes span {
    -webkit-background-size: 30px 30px;
    -moz-background-size: 30px 30px;
    background-size: 30px 30px;
    background-image: -webkit-gradient(linear, left top, right bottom,
    color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent),
    color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)),
    color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent),
    to(transparent));
    background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    background-image: -moz-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    background-image: -ms-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    background-image: -o-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
    transparent 75%, transparent);

    -webkit-animation: animate-stripes 3s linear infinite;
    -moz-animation: animate-stripes 3s linear infinite;
}

@-webkit-keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

@-moz-keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    background: rgba(18, 18, 18, .9);
}

.sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    -webkit-animation: sk-chase 2.5s infinite linear both;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-animation: sk-chase-dot 2s infinite ease-in-out both;
    animation: sk-chase-dot 2s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #378FCC;
    border-radius: 100%;
    -webkit-animation: sk-chase-dot-before 2s infinite ease-in-out both;
    animation: sk-chase-dot-before 2s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2) {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-chase-dot:nth-child(3) {
    -webkit-animation-delay: -.9s;
    animation-delay: -.9s;
}

.sk-chase-dot:nth-child(4) {
    -webkit-animation-delay: -.8s;
    animation-delay: -.8s;
}

.sk-chase-dot:nth-child(5) {
    -webkit-animation-delay: -.7s;
    animation-delay: -.7s;
}

.sk-chase-dot:nth-child(6) {
    -webkit-animation-delay: -.6s;
    animation-delay: -.6s;
}

.sk-chase-dot:nth-child(1):before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2):before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.sk-chase-dot:nth-child(3):before {
    -webkit-animation-delay: -.9s;
    animation-delay: -.9s;
}

.sk-chase-dot:nth-child(4):before {
    -webkit-animation-delay: -.8s;
    animation-delay: -.8s;
}

.sk-chase-dot:nth-child(5):before {
    -webkit-animation-delay: -.7s;
    animation-delay: -.7s;
}

.sk-chase-dot:nth-child(6):before {
    -webkit-animation-delay: -.6s;
    animation-delay: -.6s;
}

@-webkit-keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes sk-chase-dot {
    80%, 100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {
    80%, 100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes sk-chase-dot-before {
    50% {
        transform: scale(.4);
    }
    100%, 0% {
        transform: scale(1);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(.4);
    }
    100%, 0% {
        transform: scale(1);
    }
}
/* !GENERAL_END! */

/* !MAIN_START! */
.no-device-text {
    position: absolute;
    top: 39%;
    left: 50%;
    width: 500px;
    margin: -80px 0 0 -250px;
    text-align: center;
    font-size: 1.3rem;
    color: #888888;
}

.no-device-text::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url(../svg/arrow-no-device.svg) 0 0 no-repeat;
    background-size: cover;
    -webkit-transform: scale(-1, -1);
    -moz-transform: scale(-1, -1);
    -ms-transform: scale(-1, -1);
    -o-transform: scale(-1, -1);
    transform: scale(-1, -1);
}

.no-device {
    position: absolute;
    top: 52%;
    left: 50%;
    width: 300px;
    height: 160px;
    margin: -80px 0 0 -150px;
    text-align: center;
    font-size: 3rem;
    box-sizing: border-box;
    border: 5px dashed #DDDDDD;
    background: url(../svg/add.svg) 50% 50% no-repeat;
    background-size: 20%;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.no-device:hover {
    background: url(../svg/add.svg) 50% 50% no-repeat #EEEEEE;
    background-size: 20%;
    color: #FFFFFF;
}

.selected-field {
    background: #FFFFFF url(../images/select-arrow.png) no-repeat calc(100% - 7px) 50%;
    padding: 0 15px;
    outline: 1px solid #DDDDDD;
    height: 34px;
    width: 330px;
    line-height: 34px;
    cursor: pointer;
    font-size: .9rem;
    color: #666666;
    border-radius: 6px;
}

.selected-field:hover {
    color: #444444;
}

.select-field {
    display: none;
    width: 100%;
    position: absolute;
    list-style-type: none;
    outline: 1px solid #DDDDDD;
    overflow-y: auto;
    background: #FFFFFF;
    margin: 0;
    padding: 0;
    z-index: 1;
    -webkit-box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, .25);
    -moz-box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, .25);
    box-shadow: 1px 1px 1px 0 rgba(50, 50, 50, .25);
}

.select-field li {
    position: relative;
    background: #FFFFFF;
    padding: 0 15px;
    height: 34px;
    width: 100%;
    box-sizing: border-box;
    line-height: 34px;
    font-size: .9rem;
    color: #777777;
    cursor: pointer;
}

.select-field li span,
.selected-field span {
    margin-right: 5px;
}

.select-field li:hover {
    color: #000000;
}

.select-field li.active:hover {
    border: 1px solid #BBBBBB;
}

.sensor-carousel-wrap {
    position: relative;
    margin-top: 20px;
    border: 1px solid #D7DEE8;
    background: #F4F7FB;
    padding: 10px 15px 0 15px;
    border-radius: 6px;
}

.sensor-wrap {
    margin-top: 10px;
}

.add-sensor {
    text-align: center;
    font-size: .9rem;
    padding: 6px 0;
    width: 20%;
    color: #FFFFFF;
    background: #378FCC;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 6px;
}

.add-sensor:hover {
    background: #3A9BD7;
}

.sensor-main {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #D7DEE8;
    padding: 10px 15px;
    margin-bottom: 15px;
    text-align: center;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.main-page .w-control-wrap {
    min-height: 0;
    background: #F4F7FB;
    padding-top: 40px;
}

.main-name-selection {
    position: absolute;
    top: 11px;
    left: 18px;
    text-transform: uppercase;
    color: #555555;
    font-size: 1.1rem;
}

.main-empty-widget {
    margin: 0 auto;
    text-transform: none;
    font-size: .9rem;
    padding-bottom: 25px;
    width: 60%;
    text-align: center;
}

.w-empty-widget {
    margin: 0 auto;
    text-transform: none;
    font-size: .9rem;
    text-align: center;
    line-height: 370px;
}

.main-empty-sensor {
    margin: 0 auto;
    text-transform: none;
    font-size: .9rem;
    padding: 25px 0;
    width: 60%;
    text-align: center;
    color: #555555;
}

.stop-click {
    pointer-events: none;
}
/* !MAIN_END! */

/* !WIDGET_START! */
.w-control-wrap {
    position: relative;
    top: 0;
    margin-top: 20px;
    background: #FFFFFF;
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    min-height: 400px;
    padding: .5% 0 1% 1%;
    text-transform: uppercase;
    color: #555555;
    font-size: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.w-add:before {
    content: 'Добавить виджет';
    position: absolute;
    top: 0;
    left: 120px;
    text-align: center;
    cursor: pointer;
    background: #378FCC;
    color: #FFFFFF;
    padding: 7px 15px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.w-add:hover:before {
    background: #3A9BD7;
}

.w-all {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: #607D8B;
    width: 100%;
    height: 100%;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    z-index: 501;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
}

.w-help-modal-first-settings input[type=checkbox] {
    -webkit-appearance: checkbox;
    width: 15px;
    height: 15px;
}

.w-modal-close {
    position: absolute;
    right: 7px;
    top: 7px;
    background: url(../images/menu-close.png) 0 0 no-repeat;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background-size: cover;
}

.w-wrap-all {
    position: relative;
    flex-basis: 15.7%;
    height: 100px;
    line-height: 100px;
    margin: 30px 0 0 .8%;
    border: 0;
    border-radius: 6px;
    background: #013451;
    cursor: pointer;
    font-size: 1rem;
    color: #ECFBFF;
    overflow: hidden;
    text-align: center;
}

.w-rel-name {
    width: 94%;
    text-align: center;
    color: #FFFFFF;
    font-size: .7rem;
    margin: 2% 0 0 3%;
    float: left;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.3;
}

.w-relays-control-button,
.w-relays-impulse-button,
.w-relays-impulsems-button,
.w-relays-func-button {
    display: -webkit-flex;
    display: flex;
    justify-content: space-around;
    flex-shrink: 1;
    margin: 24px 0 0 0;
}

.w-relays-control-button span,
.w-relays-impulse-button span,
.w-relays-impulsems-button span,
.w-relays-func-button span {
    display: block;
    width: 29%;
    line-height: 30px;
    box-sizing: border-box;
    border: 1px solid #BBBBBB;
    background: #001B2CBA;
    text-align: center;
    cursor: pointer;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    font-size: .7rem;
    color: #FFFFFF;
}

.w-disc-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border: 0;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    cursor: help;
    font-size: .8rem;
    background: #E56564;
    color: #ECFBFF;
}

.w-disc {
    display: none;
}

.w-help-modal-disc {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 503;
    width: 100%;
    height: 100%;
    background: #607D8B;
    color: #FFFFFF;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.w-help-modal-disc .w-disc-text {
    width: 95%;
    text-align: left;
    margin: 30px auto 0 auto;
    padding: 10px;
    font-size: 1rem;
    border-radius: 10px;
    background: #378FCC;
    max-height: 360px;
    overflow-y: auto;
}

.w-help-modal-disc .w-disc-text p {
    margin-bottom: 5px;
}

.w-settings {
    display: none;
}

.w-help-modal-first-settings,
.w-help-modal-main-settings
{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 502;
    width: 100%;
    height: 100%;
    background: #607D8B;
    color: #FFFFFF;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.w-settings-btn {
    position: absolute;
    left: 8px;
    top: 5px;
    z-index: 99;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.w-settings-btn span {
    display: block;
    height: 2px;
    width: 12px;
    background: #FFFFFF;
    margin-bottom: 2px;
}

.w-settings-btn span:first-child {
    margin-top: 4px;
}

.w-wrap {
    position: relative;
    flex-basis: 19%;
    height: 145px;
    border: 1px solid #FFFFFF;
    border-radius: 6px;
    margin: .5% .8% 0 0;
    background: #607D8BB0;
    overflow: hidden;
}

.empty-space-widget {
    flex-basis: 19%;
    height: 140px;
    border: 1px dotted #838383;
    margin: .5% .8% 0 0;
    border-radius: 6px;
}

.empty-space-wifi {
    flex-basis: 19%;
    height: 30px;
    margin-bottom: 9px;
    border: 1px dotted #838383;
}

.widget-handle {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 15px;
    height: 15px;
    background: url(../svg/move2.svg) 50% 50% no-repeat;
    background-size: cover;
}

.unsync-widget-fon {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    width: 100%;
    height: 100%;
    z-index: 99;
    border-radius: 6px;
}

.unsync-widget-fon span {
    position: absolute;
    top: 40%;
    left: 0;
    z-index: 99;
    color: #FFFFFF;
    font-size: .8rem;
    text-transform: none;
    text-align: center;
}

.w-del {
    position: absolute;
    right: 8px;
    top: 5px;
    z-index: 99;
    width: 17px;
    height: 17px;
    cursor: pointer;
    transform: rotate(45deg);
}

.w-del::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -1px 0 0 -7px;
    width: 14px;
    height: 2px;
    background: #FFFFFF;
}

.w-del::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -7px 0 0 -1px;
    width: 2px;
    height: 14px;
    background: #FFFFFF;
}

.u-w-name {
    font-size: .83rem;
    height: 28px;
    line-height: 38px;
    text-align: center;
    color: #FFFFFF;
    background: #001B2C;
    border-radius: 6px 6px 0 0;
}

.w-btn-send {
    width: 196px;
    height: 20px;
    line-height: 20px;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    padding: 7px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    margin: 25px auto 20px auto;
    font-size: .95rem;
}

.control-send {
    position: absolute;
    right: 22px;
    top: 18px;
    display: flex;
    justify-content: center;
}

.control-send span {
    font-size: .7rem;
    margin-right: 3px;
    width: 22px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 30%;
}

.w-data-send-time {
    position: absolute;
    right: 20px;
    top: 0;
    font-size: .7rem;
}

.relay-state {
    position: absolute;
    top: 5px;
    left: 42.6%;
    width: 36px;
    height: 4px;
    border-radius: 20%;
    font-size: .8rem;
    text-align: center;
    color: #FFFFFF;
    text-transform: none;
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.form-w-settings {
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    width: 50%;
}

.form-w-settings span {
    color: #FFFFFF;
    margin-bottom: 5px;
}

.form-w-settings select {
    height: 30px;
    margin-bottom: 20px;
    border-radius: 6px;
    padding-left: 5px;
}

.form-w-settings input {
    margin-bottom: 20px;
    margin-right: 5px;
}

.form-w-settings input[type=submit] {
    width: 100px;
    line-height: 18px;
    height: 32px;
    margin: 0 auto;
    background: #378FCC;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    border: 0;
    border-radius: 6px;
}

.form-w-settings input[type=submit]:hover {
    background: #3A9FDF;
}

.form-w-settings input[type=checkbox] {
    -webkit-appearance: checkbox;
    width: 15px;
    height: 15px;
}

.wrap-w-show-main {
    position: absolute;
    bottom: 2px;
    left: 20px;
    font-size: .7rem;
    text-transform: none;
    color: #FFFFFF;
}

input[name="w-show-main"] {
    position: absolute;
    bottom: 3px;
    left: 6px;
    -webkit-appearance: checkbox;
    width: 12px;
    height: 12px;
}

.loading-fon {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(244, 247, 251, .9);
    width: 100%;
    height: 100%;
    z-index: 999;
    border-radius: 6px;
}

.loading-fon-min {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(244, 247, 251, .9);
    width: 100%;
    height: 100%;
    z-index: 99;
    border: 0;
    border-radius: 0;
}

.input-range-container {
    position: relative;
    height:35px;
    margin-top: 14px;
    margin-bottom: 20px;
    clear: both;
}

.range-min {
    position: absolute;
    bottom: 3px;
    left: 2px;
    z-index: 0;
    width: 20px;
    height: 20px;
    font-size: .7rem;
    color: #FFFFFF;
}

.range-max {
    position: absolute;
    bottom: 3px;
    right: 5px;
    z-index: 0;
    width: 20px;
    height: 20px;
    font-size: .7rem;
    color: #FFFFFF;
}

.range-value {
    border: 1px dashed #A9A9A9;
    position: absolute;
    top: -6px;
    left: 40%;
    font-size: 1.3rem;
    font-weight: bold;
    width: 40px;
    height: 20px;
    line-height: 19px;
    text-align: center;
    border-radius: 6px;
    color: #000000;
}

.temp-l-arrow {
    position: absolute;
    left: -32px;
    top: 7px;
    width: 20px;
    height: 20px;
    background: url(../svg/arrow-pointing.svg) 50% 50% no-repeat;
    background-size: contain;
}

.temp-r-arrow {
    position: absolute;
    right: -32px;
    top: 7px;
    width: 20px;
    height: 20px;
    background: url(../svg/arrow-pointing.svg) 50% 50% no-repeat;
    background-size: contain;
    transform: rotate(-180deg);
}

.temp-l-arrow:hover,
.temp-r-arrow:hover {
    cursor: pointer;
}

.container {
    width: 70px;
    margin: 5px auto 0 auto;
}

.de .den,
.de .dene,
.de .denem,
.de .deneme {
    position: absolute;  left: 50%; top: 50%;
}

.de {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    background-color: transparent;
    z-index: 1;
}

.den {
    position: relative;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 100%;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5), 0 2px 20px #FFFFFF;
    background: #DF3341;
    background: -moz-linear-gradient(left, #DF3341 0%, #D4F355 50%, #61C0EC 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#DF3341), color-stop(50%,#D4F355), color-stop(100%,#61C0EC));
    background: -webkit-linear-gradient(left, #DF3341 0%,#D4F355 50%,#61C0EC 100%);
    background: linear-gradient(to right, #DF3341 0%,#D4F355 50%,#61C0EC 100%);
}

.dene {
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 100%;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, .4), 0 3px 13px rgba(0, 0, 0, .85);
    background: #F2F6F5;
    background: -moz-linear-gradient(top, #F2F6F5 0%, #CBD5D6 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F2F6F5), color-stop(100%, #CBD5D6));
    background: -webkit-linear-gradient(top, #F2F6F5 0%, #CBD5D6 100%);
    background: -o-linear-gradient(top, #F2F6F5 0%, #CBD5D6 100%);
}

.denem {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 100%;
    background: #CBD5D6;
    background: -moz-linear-gradient(top, #CBD5D6 0%, #F2F6F5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #CBD5D6), color-stop(100%, #F2F6F5));
    background: -webkit-linear-gradient(top, #CBD5D6 0%, #F2F6F5 100%);
}

.deneme {
    padding: 10px 10px 0 10px;
    width: 40px;
    height: 50px;
    display: inline-block;
    margin: -30px 0 0 -30px;
    text-align: center;
    color: #454545;
    text-shadow: 1px 1px 1px #FFFFFF;
    font-family: 'Dosis', sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.deneme > .w-f-temp-value {
    position: absolute;
    font-size: 1rem;
    top: 12px;
    left: 0;
    width: 100%;
    text-align: center;
}

.deneme > .w-f-gestr-value {
    position: absolute;
    font-size: .75rem;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
}

.deneme strong {
    position: relative;
    right: -1px;
    top: -5px;
    font-size: 10px;
}

.temp-value {
    border: 1px dashed #EEEEEE;
    margin: 20px auto 0 auto;
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    line-height: 39px;
    text-align: center;
    border-radius: 6px;
    color: #000000;
}

.w-temp-online {
    position: absolute;
    left: 5px;
    bottom: 5px;
    color: #FFFFFF;
    text-transform: none;
    font-size: .75rem;
}

input[type=range] {
    -webkit-appearance: none;
    margin: 25px 5%;
    width: 90%;
    height: 10px;
    background: #607D8B;
    outline: none;
    border: none;
    pointer-events: none;
}

input[type=range]:focus {
    outline: none !important;
    border: 0;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #FFFFFF;
    border-radius: 7px;
}

input[type=range]::-webkit-slider-thumb {
    height: 11px;
    width: 29px;
    border-radius: 7px;
    border: 0;
    background: #DAD55E;
    cursor: pointer;
    pointer-events:auto;
    -webkit-appearance: none;
    margin-top: -3.4px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #FFFFFF;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #FFFFFF;
    border-radius: 7px;
}

input[type=range]::-moz-range-thumb {
    height: 11px;
    width: 29px;
    border-radius: 7px;
    background: #DAD55E;
    cursor: pointer;
    pointer-events:auto;
    outline: none;
    border: none;
}

input[type=range]::-moz-focus-outer {
    border: 0;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #FFFFFF;
    border-radius: 7px;
    color: transparent;
    border: none;
}

input[type=range]::-ms-tooltip {
    visibility: hidden;
}

input[type=range]::-ms-thumb {
    height: 12px;
    width: 29px;
    border-radius: 7px;
    background: #DAD55E;
    margin-top: .1%;
    pointer-events:auto;
}

input[type=range]:focus::-ms-thumb {
    border: none;
    pointer-events:auto;
}

input[type=range]::-ms-fill-lower {
    background: #FFFFFF;
    border-radius: 50px;
}

input[type=range]::-ms-fill-upper {
    background: #FFFFFF;
    border-radius: 50px;
}

input[type=range]:focus::-ms-fill-lower {
    background: #FFFFFF;
}

input[type=range]:focus::-ms-fill-upper {
    background: #FFFFFF;
}

.form-w-settings input[type=range]::-webkit-slider-runnable-track {
    height: 10px;
}

.form-w-settings input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 39px;
    margin-top: -5px;
}

.form-w-settings input[type=range]::-moz-range-track {
    height: 10px;
}

.form-w-settings input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 39px;
}

.form-w-settings input[type=range]::-ms-track {
    height: 10px;
}

.form-w-settings input[type=range]::-ms-thumb {
    height: 20px;
    width: 39px;
}

.form-w-settings .range-min {
    bottom: 12px;
    left: 20px;
    width: 20px;
    height: 20px;
    font-size: .9rem;
    color: #FFFFFF;
}

.form-w-settings .range-max {
    bottom: 12px;
    right: 20px;
    width: 20px;
    height: 20px;
    font-size: .9rem;
    color: #FFFFFF;
}

.form-w-settings .range-value {
    top: -26px;
    left: 48%;
    font-size: 1.4rem;
    width: 60px;
    height: 35px;
    line-height: 35px;
    padding: 0 3px;
}

.form-w-settings input[type=text] {
    height: 30px;
    width: 26%;
    border-radius: 6px;
    padding-left: 5px;
}

.wrap-w-date {
    margin: 0 auto;
}

.schedule-checkbox span {
    color: #FFFFFF;
}

.w-datepicker {
    border: none;
}

.thermostat-checkbox span.w-termo-left {
    height: 22px;
    width: 22px;
    background: url('../images/sunny.png') 50% 50% no-repeat;
    background-size: contain;
}

.thermostat-checkbox span.w-termo-right {
    height: 22px;
    width: 22px;
    background: url('../images/snowflake.png') 50% 50% no-repeat;
    background-size: contain;
}

.schedule-checkbox,
.thermostat-checkbox {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.schedule-checkbox input[type="checkbox"],
.thermostat-checkbox input[type="checkbox"] {
    width: 70px;
    height: 22px;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #B22222;
    outline: none;
    border-radius: 50px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
    transition: .5s;
    position: relative;
    margin: 0 10px;
}

.thermostat-checkbox input:checked[type="checkbox"] {
    background: #22ADD4;
}

.schedule-checkbox input:checked[type="checkbox"] {
    background: #4CAF50;
}

.schedule-checkbox input[type="checkbox"]::before,
.thermostat-checkbox input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    transition: .5s;
}

.schedule-checkbox input:checked[type="checkbox"]::before,
.thermostat-checkbox input:checked[type="checkbox"]::before {
    left: 48px;
}

.alarm-clock {
    position: relative;
    padding: 14px 5px 5px 5px;
    border-radius: 10px;
    background-color: #DDE4E436;
    width: 80%;
    height: 50px;
    margin: 10px auto 0 auto;
}

.alarm-clock .w-schedule-date {
    position: absolute;
    bottom: 20px;
    left: 50%;
    color: #FFFFFF;
    font-size: .5rem;
    text-transform: uppercase;
    transform: translateX(-50%);
    z-index: 1;
}

.alarm-clock .w-shedule-time {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 12px 0;
    background-color: #001B2CBA;
    border-radius: 10px;
    font-size: .9rem;
}

.alarm-clock .w-shedule-time span {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(231, 76, 60, .4);
    line-height: 1.75;
}

.alarm-clock .w-shedule-time span:nth-of-type(5) {
    width: 90px;
}

.alarm-clock .w-shedule-time span.w-shedule-colon {
    width: 12px;
    text-align: center;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.w-schedule-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #000000;
    font-size: .6rem;
    font-weight: bolder;
    text-transform: none;
    text-align: center;
    z-index: 1;
}

.w-schedule-exec-time {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #000000;
    font-size: .6rem;
    font-weight: bolder;
    text-transform: none;
    text-align: center;
    z-index: 1;
}

.loading-fon > div {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    margin-left: -30px;
    top: 50%;
    margin-top: -30px;
}

.loading-fon-min > div {
    width: 60px;
    height: 60px;
    position: absolute;
    left: 50%;
    margin-left: -30px;
    top: 50%;
    margin-top: -30px;
}

.loading-fon > div > div {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #378FCC;
    top: 10px;
    left: 10px;
    transform-origin: 20px 20px;
    border-radius: 8px;
    animation: spin-a 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon-min > div > div {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #378FCC;
    top: 10px;
    left: 10px;
    transform-origin: 20px 20px;
    border-radius: 8px;
    animation: spin-a 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon > div > .c2 {
    top: 10px;
    left: auto;
    right: 10px;
    transform-origin: -4px 20px;
    animation: spin-b 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon > div > .c3 {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
    transform-origin: -4px -4px;
    animation: spin-c 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon > div > .c4 {
    top: auto;
    bottom: 10px;
    transform-origin: 20px -4px;
    animation: spin-d 2s infinite cubic-bezier(.5, 0, .5, 1);
}


.loading-fon-min > div > .c2-min {
    top: 10px;
    left: auto;
    right: 10px;
    transform-origin: -4px 20px;
    animation: spin-b 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon-min > div > .c3-min {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
    transform-origin: -4px -4px;
    animation: spin-c 2s infinite cubic-bezier(.5, 0, .5, 1);
}

.loading-fon-min > div > .c4-min {
    top: auto;
    bottom: 10px;
    transform-origin: 20px -4px;
    animation: spin-d 2s infinite cubic-bezier(.5, 0, .5, 1);
}

@keyframes spin-a {
    0%   { transform: rotate(90deg); }
    0%  { transform: rotate(90deg); }
    50%  { transform: rotate(180deg); }
    75%  { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spin-b {
    0%   { transform: rotate(90deg); }
    25%  { transform: rotate(90deg); }
    25%  { transform: rotate(180deg); }
    75%  { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spin-c {
    0%   { transform: rotate(90deg); }
    25%  { transform: rotate(90deg); }
    50%  { transform: rotate(180deg); }
    50%  { transform: rotate(270deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spin-d {
    0%   { transform: rotate(90deg); }
    25%  { transform: rotate(90deg); }
    50%  { transform: rotate(180deg); }
    75%  { transform: rotate(270deg); }
    75% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.loading-fon > span {
    width: 100px;
    height: 30px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: 30px;
    color: #378FCC;
    font-size: 12px;
    text-align: center;
}

.loading-fon-min > span {
    width: 100px;
    height: 30px;
    position: absolute;
    left: 50%;
    margin-left: -50px;
    top: 50%;
    margin-top: 30px;
    color: #378FCC;
    font-size: .6rem;
    text-align: center;
}

.w-impulse-sec,
.w-impulse-msec,
.w-func {
    color: #FFFFFF;
    font-size: .8rem;
    text-align: center;
    text-transform: none;
    font-weight: normal;
    margin-top: 3px;
}
/* !WIDGET_END! */

/* !RULE_START! */
.newrule-state-hide {
    margin-left: 10px;
}

.ui-state-default.newrule-line {
    display: flex;
    flex-wrap: wrap;
    background: #DFE8F3;
    border: 1px dotted #669ADC;
    border-radius: 6px;
    margin-bottom: 15px;
}

.ui-state-default.newrule-line.line-widget {
    background: #F6F2C8;
    border: 1px dotted #E4CE05;
}

.rele-layout-btn {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

.rele-layout-btn li {
    display: block;
    background: #DFE8F3;
    padding: 5px 15px 5px;
    border: 1px solid #C0D1E9;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin: 0 5px 5px 0;
    cursor: pointer;
    font-size: .9rem;
}

.rele-layout-btn li:hover {
    background: #C8DCF3;
}

.rele-layout-btn li.active {
    background: #378FCC;
    color: #FFFFFF;
    font-weight: 300;
}

.rele-layout-box {
    background: #FFFFFF;
    border: 1px solid #C0D1E9;
    padding: 5px 20px 20px 20px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    margin-top: 4px;
    min-height: 450px;
}

.rules-box-content {
    display: none;
}

.modal .newrule-state-hide {
    margin-top: 10px;
}

.newrules-number {
    font-size: .7rem;
    position: absolute;
    left: 18px;
    top: 50%;
    margin-top: -6px;
}

.newrule-line-code {
    display: none;
}

.newrule-line .line-col {
    width: 100%;
    position: relative;
}

.newrule-line .line-col:nth-child(2) {
    width: 300px;
}

.newrule-line .line-col:nth-child(3) {
    width: 120px;
}

.line-col-condition {
    border-right: 1px solid #CACAD9;
    width: 50%;
    padding: 18px 18px 12px 18px;
    box-sizing: border-box;
}

.line-widget .line-col-condition {
    border-right: 1px solid #E4CE05;
}

.line-col-action {
    width: 50%;
    padding: 18px 18px;
    box-sizing: border-box;
    align-items: center;
}

.line-col-action .event-name {
    line-height: 18px;
    margin: 12px 0;
}

.newrule-add-btn {
    display: inline-block;
    background: #378FCC;
    color: #FFFFFF;
    padding: 5px 15px;
    cursor: pointer;
    border: 1px solid #378FCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.newrule-add-list {
    margin: 20px 0 20px;
}

.newrule-add-list select,
.newrule-add-list input {
    height: 32px;
    padding: 0 5px;
    border: 1px solid #CCCCCC;
    margin-bottom: 3px;
    color: #333333;
    border-radius: 5px;
}

.newrule-add-list input[type=submit] {
    height: auto;
}

.newrule-add-list input:not([type=submit]) {
    width: 65px;
}

.newrule-add-if {
    display: block;
    width: 56px;
    background: #378FCC;
    height: 18px;
    line-height: 18px;
    border-radius: 4px;
    color: #FFFFFF;
    padding: 0 12px;
    cursor: pointer;
    font-size: .75rem;
    margin: 12px 0 12px 0;
}

.newrule-add-if:hover {
    background: #3EA6EA;
}

.newrules-if-list-item {
    display: block;
    position: relative;
    width: 100%;
    align-items: center;
    padding: 10px 0;
    border-radius: 6px 6px 0 0;
    background: #ADC5E4;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: .3s linear;
}

.newrules-if-list-item-and {
    display: flex;
    align-items: center;
    font-size: .8rem;
    margin: 5px 0 0 0;
}

.line-widget .newrules-if-list-item {
    background: #FCEE6C;
}

.newrules-if-list-item-del {
    display: inline-block;
    background: url(../svg/remove-white.svg) 50% 50% #BE0000;
    background-size: 90%;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    text-align: center;
    font-size: .75rem;
    margin: 0 7px 0 0;
}

.newrules-if-list-item-del:hover {
    background-color: #E50202;
    color: #FFFFFF;
}

.rules-handle {
    position: absolute;
    right: 50px;
    top: 50%;
    margin-top: -9px;
    width: 18px;
    height: 18px;
    background: url(../svg/move3.svg);
    background-size: cover;
    cursor: pointer;
}

.rules-handle.wi {
    right: 20px;
}

.rules-remove {
    position: absolute;
    right: 20px;
    top: 50%;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    background: url(../svg/remove-black-circle.svg);
    background-size: cover;
    cursor: pointer;
}

.from-generate {
    display: inline-block;
}

.from-generate.hidden {
    display: none;
}

.rules-relay-empty {
    text-align: center;
    padding: 10px 0;
    color: #AAAAAA;
    font-style: italic;
}

.rule-error {
    border: 2px solid #B22D00 !important;
}
/* !RULE_END! */

/* !EVENT_START! */
.wrap-event-control-panel {
    position: relative;
    text-align: right;
    margin-right: 10px;
    height: 30px;
}

.event-control-panel {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-top: 6px;
    margin-left: 15px;
}

.event-handle {
    background: url(../svg/move3.svg);
    background-size: cover;
}

.event-delete {
    background: url(../svg/remove-black-circle.svg);
    background-size: cover;
}

.event-copy {
    background: url(../svg/copy.svg);
    background-size: cover;
}

.event-short-comment {
    position: absolute;
    top: 6px;
    left: 10px;
    max-width: 70%;
    white-space: nowrap;
    overflow-x: hidden;
    font-size: .7rem;
    cursor: default;
}

.event-comment {
    background: url(../svg/comment.svg);
    background-size: cover;
}

.event-unlock {
    background: url(../svg/turn-on.svg);
    background-size: cover;
}

.event-lock {
    background: url(../svg/turn-off.svg);
    background-size: cover;
}

.event-copy-wrap {
    margin: 15px 0 0 0;
    padding-left: 30%;
}

.event-comment-wrap textarea{
    margin-top: 15px;
    width: 100%;
    height: 120px;
    resize: none;
    background: url(../images/loader-line-grey.gif) center center no-repeat;
    border: 1px solid #CCCCCC;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    font-size: .8rem;
}

.event-comment-wrap textarea:focus {
    outline: none;
}

.form-copy-event input[type=radio] {
    -webkit-appearance: radio;
    margin-bottom: 15px;
}

.event-box-content p {
    font-weight: bold;
    margin-bottom: 3px;
}

.help-event-button {
    display: inline-block;
    background: #378FCC;
    color: #FFFFFF;
    padding: 4px 14px;
    margin-top: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.event-add-btn {
    display: inline-block;
    background: #378FCC;
    color: #FFFFFF;
    padding: 4px 14px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.user-events {
    position: relative;
    color: #454545;
}

.box-event {
    background: #DFE8F3;
    border: 1px dotted #669ADC;
    border-radius: 6px;
    margin-bottom: 15px;
}

.event-add-do-btn,
.event-add-if-btn {
    display: inline-block;
    background: #378FCC;
    height: 18px;
    line-height: 18px;
    border-radius: 4px;
    color: #FFFFFF;
    padding: 0 12px;
    cursor: pointer;
    font-size: .75rem;
    margin: 12px 0 12px 8px;
}

.event-name {
    font-size: .9rem;
    font-weight: bold;
}

.user-id-src {
    width: 5%;
    font-size: .7rem;
    font-weight: normal;
    margin-left: 5px;
}

.user-id-if,
.user-id-do {
    display: inline-block;
    position: relative;
    top: -1px;
    font-size: .65rem;
}

.event-submit-do-btn,
.event-submit-if-btn {
    padding: 5px 15px !important;
}

.event-add-do-btn:hover {
    background: #378FCC;
}

.event-src-form {
    margin-bottom: 5px;
}

.event-src input,
.event-do input,
.event-if input {
    min-width: 268px;
    height: 32px;
    border: 1px solid #CCCCCC;
    margin-bottom: 3px;
    color: #333333;
    padding-left: 10px;
    outline: none;
}

.event-src select,
.event-do select,
.event-if select {
    min-width: 280px;
    max-width: 280px;
    height: 32px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    margin-bottom: 3px;
    color: #333333;
    padding-left: 5px;
    outline: none;
}

.event-del-do,
.event-del-if {
    display: inline-block;
    background: #B22D00;
    height: 15px;
    line-height: 13px;
    width: 15px;
    border-radius: 2px;
    color: #FFFFFF;
    cursor: pointer;
    text-align: center;
    font-size: .75rem;
    margin-right: 7px;
}

.user-event-src {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-radius: 6px 6px 0 0;
    background: #ADC5E4;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: .3s linear;
    cursor: pointer;
}

.user-event-src:hover {
    background: #669ADC;
}

.user-event-src-widget {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-radius: 6px 6px 0 0;
    background: #FCEE6C;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: .3s linear;
    cursor: pointer;
}

.user-event-src-widget:hover {
    background: #F0E65A;
}

.event-src-name {
    width: 80%;
    margin-left: 20px;
}

.edit-schedule {
    display: inline-block;
    background: url(../images/edit-name-btn.png) 0 0 no-repeat;
    background-size: cover;
    width: 11px;
    height: 11px;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: inherit;
}

.form-change-schedule input[name=data-schedule] {
    min-width: 268px;
    height: 32px;
    border: 1px solid #CCCCCC;
    margin: 0 auto;
    color: #333333;
    padding-left: 10px;
}

.event-empty {
    font-size: .85rem;
    color: #999999;
    text-align: center;
}

.event-if-do-wrap {
    display: flex;
}

.event-if-do-wrap .event-name{
    margin-left: 20px;
}

.user-event-if,
.user-event-do {
    margin: 4px 0 0 20px;
    font-size: .9rem;
}

.user-event-if-wrapper {
    display: none;
    border-right: 1px solid #CACAD9;
    width: 50%;
    padding: 9px 0 9px 0;
}

.user-event-do-wrapper {
    display: none;
    width: 50%;
    padding: 9px 0 30px 0;
}
/* !EVENT_END! */

/* !VARIABLE_START! */
.var-form {
    margin-bottom: 15px;
}

.variable-box-content p {
    font-weight: bold;
    margin-bottom: 5px;
}

.variable-box-content input {
    min-width: 268px;
    height: 32px;
    border: 1px solid #CCCCCC;
    color: #333333;
    padding-left: 10px;
    outline: none;
    border-radius: 6px;
}

.var-add-btn {
    display: inline-block;
    background: #378FCC;
    color: #FFFFFF;
    padding: 6px 14px;
    margin: 5px 0 0 10px;
    cursor: pointer;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.variable-box-content hr {
    margin-bottom: 15px;
}

.user-variable {
    position: relative;
    border: 1px solid #C5C5C5;
    background: #ADC5E4;
    border-radius: 6px;
    margin-bottom: 10px;
    height: 44px;
    line-height: 44px;
    padding-left: 10px;
}

.user-variable-widget {
    background: #F0E68C;
}

.var-delete {
    position: absolute;
    right: 12px;
    top: 9px;
    height: 22px;
    line-height: 22px;
    border-radius: 4px;
    background: #B22D00;
    color: #FFFFFF;
    width: 50px;
    padding: 2px 12px;
    cursor: pointer;
    font-weight: normal;
    font-size: .8rem;
    margin: auto;
}

.del-warning {
    padding: 10px;
    border-radius: 6px;
    margin: 0 0 20px 0;
    background: #992F2F;
    color: #FFFFFF;
    display: none;
}

.geterror-box {
    position: relative;
}

.geterror-title {
    cursor: pointer;
    margin-top: 5px;
    text-align: left;
}

.geterror-title:hover {
    color: #3A9BD7;
}

.geterror-descr {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #000000;
    opacity: .95;
    color: #FFFFFF;
    padding: 20px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    z-index: 9999;
}

.geterror-descr::after {
    content: '';
    position: absolute;
    left: 20px;
    bottom: -30px;
    border: 20px solid transparent;
    border-top: 20px solid #000000;
    opacity: .95;
}

.geterror-descr.up-arrow::after {
    content: '';
    position: absolute;
    left: 20px;
    top: -30px;
    bottom: auto;
    border: 20px solid transparent;
    border-bottom: 20px solid #000000;
    opacity: .95;
}
/* !VARIABLE_END! */

/* !NOTIFICATION_START! */
.notification-list input[type=checkbox] {
    -webkit-appearance: checkbox;
}

.notice-empty {
    text-align: center;
    font-style: italic;
    padding: 20px 0;
}

.edit-sms-notice {
    width: 180px;
    border: 1px solid #CCCCCC;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    margin-bottom: 4px;
    font-size: .9rem;
}

.selected-device {
    font-weight: bold;
    padding-right: 10px;
}

.notice-checkbox input {
    -webkit-appearance: checkbox;
}

.notice-config input,
.notice-config select {
    display: none;
}

.notice-config .notice-type {
    display: inline-block;
}

.notice-config  .notice-type-time {
    display: inline-block;
}

.notice-time-selected input,
.notice-time-selected select {
    display: none;
}

.notice-form-add {
    margin-bottom: 60px;
}

.notice-form-add input:not([type=checkbox]) {
    width: 60px;
    border: 1px solid #CCCCCC;
    height: 28px;
    line-height: 28px;
    padding: 0 5px;
}

.notice-form-add select {
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    height: 32px;
    line-height: 32px;
    padding: 0 5px;
    margin: 25px 5px 0 0;
}

.notice-time input {
    width: 60px;
}

.notice-form-add input[type=checkbox]{
    -moz-appearance: checkbox;
    -webkit-appearance: checkbox;
}

.notice-form-add input[type=submit] {
    width: 100px;
    border-radius: 6px;
}

.notice-delete {
    color: #CC0000;
    cursor: pointer;
}

.notification-list,
.notification-list ul {
    list-style-type: none;
    margin: 0;
}

.notification-list > li > ul {
    display: flex;
    width: 100%;
}

.notification-list > li {
    width: 100%;
    border-bottom: 1px solid #DDDDDD;
}

.notification-list li ul li {
    line-height: 34px;
}

.notification-list li ul {

}

.notification-list li ul li:first-child {
    width: 25%;
}

.notification-list li ul li:nth-child(2) {
    width: 25%;
}

.notification-list li ul li:nth-child(3) {
    width: 28%;
}

.notification-list li ul li:nth-child(4) {
    width: 7%;
    text-align: left;
}

.notification-list li ul li:nth-child(5) {
    width: 5%;
    text-align: left;
}

.notification-list li ul li:nth-child(6) {
    width: 10%;
    text-align: left;
}
/* !NOTIFICATION_END! */

/* !ANALOG_START! */
.analog-sensor-list {
    list-style-type: none;
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    margin-top: 10px;
    padding: 10px 20px 20px 15px;
    text-transform: uppercase;
    color: #555555;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.analog-sensor-list > li {
    width: 100%;
}

.analog-sensor-list > li .sensor {
    padding: 20px 20px 12px 20px;
}

.sensor-title-analog {
    font-size: 1rem;
    font-weight: bold;
}

.unsync-analog {
    display: none;
    background: #FFF7BF;
    padding: 20px 15px;
    margin-bottom: 25px;
    border: 1px solid #F7EFB6;
}
/* !ANALOG_END! */

/* !SENSOR_START! */
.sensor-close {
    position: absolute;
    right: 12px;
    top: 11px;
    background: url(../images/close-btn-b.png) 50% 50% no-repeat;
    width: 12px;
    height: 12px;
    cursor: pointer;
    z-index: 99;
}

.edit-name {
    position: absolute;
    right: 38px;
    top: 11px;
    background: url(../images/edit-name-btn.png) 0 0 no-repeat;
    background-size: cover;
    width: 12px;
    height: 12px;
    cursor: pointer;
    z-index: 1;
}

.inputmax {
    width: 100%;
    padding: 0 15px;
    border: 1px solid #DDDDDD;
    height: 34px;
    box-sizing: border-box;
}

.form-rename-sensor input .form-fields-select {
    margin-bottom: 5px;
}

.form-rename-sensor .selected-field {
    color: #888888;
}

.name-sensor {
    height: 34px;
    width: 320px;
    padding: 0 15px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
}

.empty-onewire-sensor {
    margin: 0 auto;
    text-transform: none;
    font-size: .9rem;
    padding: 5px 0 21px 0;
    width: 60%;
    text-align: center;
    color: #555555;
}

.reg-sensor-plus {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 25px;
    width: 25px;
    line-height: 25px;
    padding: 0;
    background: #378FCC;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    font-size: 1.5em;
}

.reg-key-plus {
    position: absolute;
    top: 9px;
    left: 25.5%;
    padding: 2px 0;
    width: 50%;
    background: #378FCC;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    font-size: .75rem;
    border-radius: 6px;
    text-transform: none;
}

.key-img {
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    height: 70px;
    width: 70px;
    margin: 0 auto;
    background: url(../images/rw1990.jpg) 50% 50% no-repeat;
    background-size: cover;
}

.date-key-discovered {
    text-transform: none;
    font-size: .75rem;
    margin-top: 10px;
}

.del-all-not-reg-keys-btn {
    position: absolute;
    right: 25px;
    top: 12px;
    text-transform: none;
    border-radius: 6px;
    background: #B22D00;
    color: #FFFFFF;
    padding: 2px 6px;
    cursor: pointer;
    font-size: .75rem;
    margin: auto;
}

.not-reg-key {
    position: relative;
}
/* !SENSOR_END! */

/* !DEVICE_START! */
.firmware-loader {
    display: none;
    position: absolute;
    background: url(../images/loader-line-grey.gif) 0 0 no-repeat;
    background-size: cover;
    width: 160px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -80px;
}

.firmware-text {
    display: none;
    margin-top: 15px;
    font-size: .8rem;
    color: #555555;
}

.firmware-error {
    display: none;
    margin-top: 15px;
    font-size: .8rem;
    color: #CC0000;
}

.firmware-close {
    text-align: center;
    text-decoration: underline;
    margin-top: 25px;
    cursor: pointer;
    color: #444444;
}

.firmware-close:hover {
    text-decoration: none;
}

.firmware-red {
    font-size: 1.2rem;
    color: #CC0000;
    margin-bottom: 20px;
}

.install-green {
    font-size: 1.3rem;
    color: #6AA84F;
    margin: 15px 0 20px 0;
}

.btn-convert-firmware-now {
    background: #777777 !important;
    border: 1px solid #777777 !important;
}

.btn-convert-firmware-now:hover {
    background: #555555 !important;
}

.btn-convert-finish {
    display: inline-block;
    background: #7C7C7C;
    color: #FFFFFF;
    text-align: center;
    width: 190px;
    line-height: 38px;
    margin-top: 15px;
    cursor: pointer;
    font-size: .9rem;
}

.btn-convert-finish:hover {
    background: #999999;
}

.btn-convert-finish-link {
    display: inline-block;
    background: #6AA84F;
    color: #FFFFFF;
    text-align: center;
    width: 110px;
    line-height: 38px;
    margin-top: 15px;
    cursor: pointer;
    font-size: .9rem;
}

.btn-convert-finish-link:hover {
    background: #77BA55;
}

.btn-install-firmware {
    margin-top: 20px;
    text-align: center;
}

.btn-install-firmware span {
    display: inline-block;
    background: #117C4B;
    color: #FFFFFF;
    text-align: center;
    width: 160px;
    line-height: 38px;
    margin: 0 0 25px;
    cursor: pointer;
}

.btn-install-firmware span:hover {
    background: #159B5F;
}

.modal-conflict-popup {
    height: 300px;
    margin-top: -150px;
}

.modal-info-text {
    background: #FFFFBF;
    padding: 15px;
    margin-top: 10px;
    color: #333333;
}

.modal-conflict-wifi-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    max-height: 100px;
    overflow-y: auto;
}

.modal-conflict-wifi-list li {
    padding: 4px 0;
}

.modal-conflict-wifi-list li span {
    font-weight: bold;
}

.relays-color-list {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    list-style-type: none;
    height: 180px;
    width: 100%;
    background: #DDDDDD;
    border: 0;
    border-radius: 6px;
    overflow-y: auto;

    z-index: 1;
}

.relays-color-list li {
    height: 32px;
    width: 100% !important;
    border-radius: 6px;
    margin-bottom: 1px;
}

.relays-color {
    position: absolute;
    bottom: 13px;
    right: 9px;
    cursor: pointer;
    height: 30px;
    width: 36px;
    margin: 0;
    border: 0;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.device-all-config {
    border-bottom: 1px solid #CCCCCC !important;
    padding-bottom: 10px !important;
}

.device-delete-btn,
.device-restart-btn,
.device-convert-btn,
.device-update-btn,
.device-init-btn,
.device-reinit-btn,
.device-change-chipset-btn {
    display: inline-block;
    margin: 0 2px 10px 0;
    color: #FFFFFF;
    text-align: center;
    width: 160px;
    line-height: 38px;
    cursor: pointer;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.device-delete-btn {
    background: #A50000;
}

.device-delete-btn:hover {
    background: #BE0000;
}

.device-restart-btn {
    background: #378FCC;
}

.device-restart-btn:hover {
    background: #3A9FdF;
}

.device-convert-btn {
    background: #7C7C7C;
}

.device-convert-btn:hover {
    background: #666666;
}

.device-update-btn {
    background: #117C4B;
}

.device-update-btn:hover {
    background: #159B5F;
}

.device-init-btn {
    background: #DDA0DD;
}

.device-init-btn:hover {
    background: #DDB0DD;
}

.device-reinit-btn {
    background: #6A5ACD;
}

.device-reinit-btn:hover {
    background: #9370DB;
}

.device-change-chipset-btn {
    background: #FFA07A;
}

.device-change-chipset-btn:hover {
    background: #FFB07A;
}

.reinit-wrap {
    margin: 15px 0 0 0;
    padding-left: 40%;
}

.form-device-reinit input[type=checkbox] {
    -webkit-appearance: checkbox;
    margin-bottom: 15px;
}

.form-device-reinit label {
    margin-left: 3px;
}

.device-settings {
    list-style-type: none;
    margin: 15px 0 10px;
    min-height: 110px;
}

.device-settings label {
    display: inline-block;
    width: 120px;
    line-height: 40px;
}

.device-settings input[name=ip],
.device-settings input[name=name],
.device-settings input[name=device_address],
.device-settings input[name=voice_name] {
    width: 30%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 20px;
    height: 20px;
    padding: 5px 10px;
    margin: 5px 0;
}

.modal-device-init input[name=init] {
    width: 50%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 20px;
    height: 20px;
    padding: 5px 10px;
    margin: 5px 0;
    outline: none !important;
}

.fm-select,
.fm-select-convert {
    min-width: 280px;
    max-width: 280px;
    height: 32px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    margin: 10px 0 3px 0;
    color: #333333;
    padding-left: 5px;
    outline: none;
}

.device-files-box {
    float: right;
    background: #FFFFBF;
    padding: 20px;
}

.device-files-title {
    font-size: 1.15rem;
    font-weight: bold;
}

.device-files {
    list-style-type: square;
    margin: 10px 0 0 20px;
}

.device-files li {
    margin-bottom: 5px;
}

.device-config-box {
    margin-bottom: 30px;
}

.device-config-adds {
    border-top: 1px solid #C0D1E9;
    padding-top: 15px;
}

.config-line span.config-btn-delete-display,
.config-line span.config-btn-delete-button,
.config-line span.config-btn-delete-relay,
.config-line span.config-btn-delete-wifi,
.config-line span.config-btn-delete-analog {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
    top: 5px;
}

.config-line span.config-btn-delete-display::before,
.config-line span.config-btn-delete-button::before,
.config-line span.config-btn-delete-relay::before,
.config-line span.config-btn-delete-wifi::before,
.config-line span.config-btn-delete-analog::before {
    content: "";
    display: block;
    position: absolute;
    top: 9px;
    left: 0;
    background: #CC0000;
    width: 20px;
    height: 2px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.config-line span.config-btn-delete-display::after,
.config-line span.config-btn-delete-button::after,
.config-line span.config-btn-delete-relay::after,
.config-line span.config-btn-delete-wifi::after,
.config-line span.config-btn-delete-analog::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 9px;
    background: #CC0000;
    width: 2px;
    height: 20px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.device-config {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

.device-config > li {
    width: 46%;
    margin: 20px 2%;
}

.device-config-wifi,
.device-config-relay,
.device-config-button,
.device-config-display,
.device-config-analog {
    text-align: center;
}

.config-line-add,
.config-line {
    display: -webkit-flex;
    display: flex;
    list-style-type: none;
}

.config-line > li,
.config-line-add li {
    margin-right: 5px;
    vertical-align: middle;
}

.config-line-add li select,
.config-line-add li input,
.config-line li select,
.config-line li input {
    width: 100%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 32px;
    height: 32px;
    padding: 10px;
    margin: 0 1% 5px 0;
    box-sizing: border-box;
}

.config-line-add li select,
.config-line li select {
    padding: 0 10px;
    width: 78px;
}

.config-line-add li dd,
.config-line li dd {
    float: left;
    margin-right: 5px;
    width: 10%;
}

.device-list-config-display,
.device-config-display {
    flex-wrap: wrap;
}

.device-list-config-display li:nth-child(1),
.device-config-display li:nth-child(1) {
    display: -webkit-flex;
    display: flex;
}


.device-list-config-button li:nth-child(1),
.device-config-button li:nth-child(1) {
    width: 65px;
    text-align: center;
}

.device-list-config-button li:nth-child(2),
.device-config-button li:nth-child(2) {
    width: 100%;
}

.device-list-config-button li:nth-child(3),
.device-config-button li:nth-child(3) {
    width: 30px;
}

.device-list-config-analog li:nth-child(1),
.device-config-analog li:nth-child(1) {
    width: 65px;
    text-align: center;
}

.device-list-config-analog li:nth-child(2),
.device-config-analog li:nth-child(2) {
    width: 100%;
}

.device-list-config-analog li:nth-child(3),
.device-config-analog li:nth-child(3) {
    width: 30px;
}

.device-list-config-wifi li:nth-child(1),
.device-config-wifi li:nth-child(1) {
    width: 50%;
}

.device-list-config-wifi li:nth-child(2),
.device-config-wifi li:nth-child(2) {
    width: 50%;
}

.device-list-config-wifi li:nth-child(3),
.device-config-wifi li:nth-child(3) {
    width: 30px;
}

.device-list-config-relay li:nth-child(1),
.device-config-relay li:nth-child(1) {
    width: 20px;
    position: relative;
}

.device-list-config-relay > li:nth-child(1):after {
    content: '';
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    margin-top: -7px;
    left: 0;
    background: #999999;
    border-radius: 50%;
}

.device-list-config-relay > li.green-st:nth-child(1):after {
    background: #4CAF50;
}

.device-list-config-relay > li.red-st:nth-child(1):after {
    background: #CC4125;
}

.device-list-config-relay > li.blue-st:nth-child(1):after {
    background: #3C78D8;
}

.device-list-config-relay li:nth-child(2),
.device-config-relay li:nth-child(2) {
    width: 55px;
}

.device-list-config-relay li:nth-child(3),
.device-config-relay li:nth-child(3) {
    width: calc(100% - 200px);
}

.device-list-config-relay li:nth-child(4),
.device-config-relay li:nth-child(4) {
    width: 80px;
}

.device-list-config-relay li:nth-child(5),
.device-config-relay li:nth-child(5) {
    position: relative;
    width: 40px;
}

.device-list-config-relay li:last-child,
.device-config-relay li:last-child {
    width: 30px;
}

.device-list-config-display li,
.device-config-display li {
    width: 30%;
}

.device-list-config-display li:last-child,
.device-config-display li:last-child {
    width: 30px;
}

.device-list-config-relay select {
    padding: 0 10px;
}

.device-list-config-relay input[name=pin] {
    width: 100%;
}

.device-config-relay input[name=pin] {
    width: 100%;
}

.device-config-buttons {
    /*outline: 1px solid red;*/
    display: flex;
    justify-content: center;
    column-gap: 30px;
}

.device-config-add-btn {
    display: inline-block;
    width: 100px;
    line-height: 32px;
    height: 32px;
    background: #378FCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

.device-config-add-btn:hover {
    background: #3BA0E1;
}

.device-config-add-list {
    padding: 0 15px;
    line-height: 32px;
    height: 32px;
    background: #378FCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

.device-config-add-list:hover  {
    background: #3BA0E1;
}

.modal-add-relay-list input[name=add-relay-list],
.modal-add-button-list input[name=add-button-list] {
    width: 50%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 20px;
    height: 20px;
    padding: 5px 10px;
    margin: 5px 0;
    outline: none !important;
}

.modal-add-relay-list select[name=level-relay-list] {
    width: 56%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 32px;
    height: 32px;
    margin: 0 1% 5px 0;
    box-sizing: border-box;
    outline: none;
    padding-left: 5px;
}

.device-config-add-satellit-btn {
    display: inline-block;
    width: 100px;
    line-height: 32px;
    height: 32px;
    margin: 0 auto;
    background: #378FCC;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

.device-config-add-satellit-btn:hover {
    background: #3BA0E1;
}

.device-config-save-btn {
    display: none;
    padding: 0 15px;
    line-height: 32px;
    height: 32px;
    background: #117C4B;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
}

.device-config-save-btn:hover {
    background: #16A364 !important;
}

.device-config input[type=submit] {
    display: block;
    margin: 10px auto;
    width: 180px;
    border: 1px solid #CCCCCC;
    line-height: 42px;
    height: 42px;
    background: #93C45D;
    color: #FFFFFF;
}

.device-config-form select[name=onewire-pin] {
    min-width: 280px;
    max-width: 280px;
    height: 32px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    margin-bottom: 3px;
    color: #333333;
    padding-left: 5px;
    outline: none;
}

.device-list-config-relay .relays-color {
    bottom: 0;
    right: 0;
    top: 1px;
}

.wifi-handle {
    display: inline-block;
    padding-top: 9px;
    width: 20px;
    height: 20px;
    background: url(../svg/move3.svg) 50% 50% no-repeat;
    margin-right: 10px;
    text-align: center;
}

.relays-color span {
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -11px;
    display: block;
    width: 10px;
    height: 10px;
}

.relays-color span::after {
    content: '';
    position: absolute;
    left: 3px;
    bottom: -10px;
    border: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, .4);
}

.relays-color-list::-webkit-scrollbar-button {
    background-image: none;
    background-repeat: no-repeat;
    width: 3px;
    height: 0;
}

.relays-color-list::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0);
}

.relays-color-list::-webkit-scrollbar-thumb {
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: #378FCC;
    box-shadow: 0 1px 1px #FFFFFF inset;
    background-position: center;
    background-repeat: no-repeat;
}

.relays-color-list::-webkit-resizer {
    background-image: none;
    background-repeat: no-repeat;
    width: 4px;
    height: 0;
}

.relays-color-list::-webkit-scrollbar {
    width: 2px;
}

.satellit-article {
    display: flex;
    margin-bottom: 12px;
    border-bottom: 1px solid #CCCCCC;
}

.satellit-article h2 {
    border-bottom: none;
    margin-right: 15px;
    padding-bottom: 10px;
    flex-grow: 0;
}

.satellit-article .device-config-add-satellit-btn {
    flex-grow: 0;
    margin: 10px 0 0 20px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.form-add-new-satellit select {
    width: 100%;
    height: 32px;
    line-height: 32px;
    border: 1px solid #CCCCCC;
    padding: 0 5px;
}

.satellit-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -.5%;
}

.satellit-list .list-empty {
    width: 100%;
    margin: 10px 0;
}

.satellit-line {
    flex: 0 1 auto;
    position: relative;
    width: 32.33%;
    background: #FFFFFF;
    margin: 5px .5%;
    padding: 15px;
    border: 1px solid #CCCCCC;
    box-sizing: border-box;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

.satellit-line-flex {
    display: flex;
}

.satellit-line-box:first-child {
    width: 50%;
    margin-bottom: 15px;
}

.satellit-line-box:nth-child(2) {
    width: 25%;
}

.satellit-line-box:nth-child(3) {
    width: 25%;
}

.satellit-line-box input[type=checkbox] {
    -webkit-appearance: checkbox;
    margin: 4px 0 0 0;
}

.satellit-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 12px;
}

.satellit-line-status {
    display: block;
    float: left;
    margin: 9px 9px 15px 0;
    width: 5px;
    height: 5px;
    background: #CC4125;
    border: 1px solid #CC4125;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    line-height: 100%;
}

.satellit-line-status.green {
    background: #93C47D;
    border: 1px solid #93C47D;
}

.satellit-from {
    display: inline-block;
    background: url('../svg/arrow-down.svg') 50% 50% no-repeat;
    background-size: cover;
    width: 10px;
    height: 10px;
}

.satellit-to {
    display: inline-block;
    background: url('../svg/arrow-up.svg') 50% 50% no-repeat;
    background-size: cover;
    width: 10px;
    height: 10px;
}

.satellit-delete {
    display: inline-block;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    margin-top: 0;
    cursor: pointer;
}

.satellit-delete::after {
    content: "";
    display: block;
    position: absolute;
    top: 9px;
    left: 0;
    background: #CC0000;
    width: 20px;
    height: 2px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.satellit-delete::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 9px;
    background: #CC0000;
    width: 2px;
    height: 20px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.device-config-save-btn.sunc-satellite {
    margin-top: 12px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.satellit-ip-error {
    color: #D61616;
    margin-top: 5px;
}

.satellit-ip-er {
    color: #D61616;
    font-weight: bold;
}

.satellit-line-sunc-btn {
    display: none;
    width: 160px;
    line-height: 26px;
    height: 26px;
    margin: 0 auto;
    background: #117C4B;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    font-size: .8rem;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.satellit-line-sunc-btn:hover {
    background: #16A364;
}

.ip-error-static {
    border: 1px solid #BE0000 !important;
}

.ip-error-text {
    display: block;
    color: #BE0000;
    line-height: 32px;
    height: 32px;
    margin: 5px 0 0 10px;
}

.config-line input[name=ip] {
    width: 110px;
}

.device-config-app{
    width: 100%;
    display: flex;
    margin: 15px 0 12px;
    border-top: 1px solid #CCCCCC;
    padding-top: 12px;
}

.device-config-app h2{
    border: none;
}

.device-config-app input[type=text]{
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 32px;
    height: 32px;
    padding: 10px;
    margin: 10px 0 0 20px;
    box-sizing: border-box;
}

.device-config-app .device-config-app-btn{
    display: inline-block;
    width: 100px;
    line-height: 32px;
    height: 32px;
    background: #378FCC;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    flex-grow: 0;
    margin: 10px 0 0 20px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}
.device-config-app-btn.delete{
    background: #A50000;
}

.device-config-app-btn.sync{
    background: #117C4B;
    width: 140px;
}
/* !DEVICE_END! */

/* !STATISTIC_START! */

/* !STATISTIC_END! */

/* !LOG_START! */
.logs {
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    max-height: 550px;
    overflow: hidden;
    overflow-y: scroll;
    padding: 10px 20px;
}

.logs-btn {
    display: none;
    width: 196px;
    cursor: pointer;
    background: #93C45D;
    padding: 7px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    margin: 0 auto 20px auto;
}

.logs-btn:hover {
    background: #93C41D;
}

.logs-date {
    text-align: center;
    margin: 0 auto 10px auto;
}

.logs-wrp {
    position: relative;
}
/* !LOG_END! */

/* !DISPLAY_START */
.d-wrap-page {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 320px;
    max-width: 400px;
    height: 650px;
    margin: 0 auto;
    border: 1px solid #C0D1E9;
    border-radius: 20px;
    background: linear-gradient(#DFE8F3, #378FCC);
}

.d-config-page {
    position: relative;
    height: 52%;
    justify-content: center;
    padding-top: 7px;
    -webkit-filter: blur(0);
    filter: blur(0);
    opacity: 1;
    transition: all .3s linear;
}

.d-clear-strings-screen {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    width: 95%;
    height: 55%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.d-clear-strings-title {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: 20px;
    font-size: .85rem;
    text-align: center;
    font-weight: bold;
    color: #5B5B5B;
}

.d-all-strings {
    outline: 1px dotted #626161;
    position: relative;
    width: 85%;
    height: 74%;
    margin-top: 35px;
    padding-bottom: 5%;
    overflow: auto;
    scrollbar-width: none;
    border-radius: 20px;
    font-size: .75rem;
}

.d-all-strings::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.d-string-number {
    border-bottom: 1px dotted #838383D9;
    width: 90%;
    margin: 10px 0 0 15px;
    padding-bottom: 3px;
    font-size: .85rem;
    font-weight: bold;
    color: #434343;
}

.d-string-info {
    position: relative;
    margin: 10px 0 0 55px;
    font-size: .8rem;
    font-weight: bold;
    color: #434343;
    width: 77.5%;
    cursor: default;
}

.d-del-str {
    position: absolute;
    width: 26px;
    height: 15px;
    top: 0;
    left: -26px;
    background: url(../svg/clear.svg) 30% 78% no-repeat;
    background-size: 50%;
    cursor: pointer;
}

.d-str-text {
    background: #E04F5F;
    border-radius: 4px;
    transition: .15s linear;
}

.d-control-pages {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    width: 95%;
    height: 55%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.d-blur-config-page {
    -webkit-filter: blur(5px);
    filter: blur(5px);
    opacity: .5;
    transition: all .3s linear;
}

.d-control-pages-button {
    background: url(../svg/windows.svg) 50% 0 no-repeat;
    background-size: 80%;
    position: absolute;
    top: 9px;
    right: 6px;
    width: 38px;
    z-index: 1;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
}

.d-reset-pages-button {
    background: url(../svg/reset.svg) 50% 50% no-repeat;
    background-size: 70%;
    position: absolute;
    top: 10px;
    left: 8px;
    width: 38px;
    z-index: 1;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
}

.d-control-pages-title {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: 20px;
    font-size: .85rem;
    text-align: center;
    font-weight: bold;
    color: #5B5B5B;
}

.d-small-page-content {
    position: absolute;
    top: 23px;
    right: 0;
    left: 0;
    width: 78px;
    height: 40px;
    margin-left: 5px;
    color: #01FFFF;
    overflow: hidden;
    user-select: none;
}

.d-small-block-mini {
    font-family: Arial Bold, sans-serif;
    font-size: .384rem;
    width: 100%;
    height: 8px;
    line-height: 8px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: 0;
    white-space: pre;
}

.d-medium-block-mini {
    font-family: Arial Bold, sans-serif;
    font-size: .882rem;
    width: 100%;
    height: 16px;
    line-height: 16px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: -.03rem;
    white-space: pre;
}

.d-large-block-mini {
    font-family: Arial Bold, sans-serif;
    font-size: 1.33rem;
    width: 100%;
    height: 24px;
    line-height: 26px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: -.06rem;
    white-space: pre;
}

.d-control-pages-close,
.d-clear-strings-close {
    position: absolute;
    top: 3px;
    right: 0;
    width: 15px;
    height: 15px;
    padding: 8px;
    background: url(../svg/remove-black.svg) 50% 50% no-repeat;
    background-size: 47%;
    cursor: pointer;
}

.d-all-page {
    outline: 1px dotted #626161;
    width: 85%;
    height: 74%;
    max-height: 74%;
    margin-top: 35px;
    padding-bottom: 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    column-gap: 50px;
    overflow: auto;
    scrollbar-width: none;
    border-radius: 20px;
    font-size: .75rem;
}

.d-all-page::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.d-small-page {
    position: relative;
    width: 88px;
    height: 88px;
    line-height: 80px;
    margin-top: 25px;
    border-radius: 5px;
    background-image: url(../images/display2.png);
    background-size: cover;
}

.d-small-page-empty {
    outline: 1px dotted #626161;
    width: 88px;
    height: 88px;
    margin-top: 25px;
    border-radius: 5px;
}

.d-small-page-delete {
    position: absolute;
    width: 18px;
    height: 18px;
    padding: 5px;
    top: -14px;
    right: -13px;
    background: url(../svg/clear.svg) 55% 50% no-repeat;
    background-size: 65%;
    cursor: pointer;
}

.d-small-page-sort {
    position: absolute;
    width: 18px;
    height: 18px;
    padding: 5px;
    top: -14px;
    left: -14px;
    background: url(../svg/move1.svg) 52% 50% no-repeat;
    background-size: 65%;
    cursor: pointer;
}

.d-small-page-enter {
    position: absolute;
    height: 21px;
    width: 36px;
    padding: 5px;
    bottom: 2px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-radius: 2px;
    background: url(../svg/entry.svg) 58% 98% no-repeat;
    background-size: 44%;
    cursor: pointer;
}

.d-small-page-number-page {
    position: absolute;
    width: 11px;
    height: 11px;
    line-height: 11px;
    top: 2px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
    font-size: .8rem;
    user-select: none;
}

.d-save-clear {
    margin-top: 15px;
}

.d-save {
    width: 80px;
    height: 22px;
    line-height: 19px;
    text-align: center;
    border-radius: 5px;
    color: #FFFFFF;
    background: #05BEA6;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: .15s;
    font-size: .75rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.d-save:active {
    transform: scale(.92, .92);
}

.d-save:hover {
    background: #06A18D;
}

.d-clear {
    width: 80px;
    height: 22px;
    line-height: 19px;
    margin-left: 10px;
    text-align: center;
    border-radius: 5px;
    color: #FFFFFF;
    background: #E04F5F;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: .15s;
    font-size: .75rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.d-clear:active {
    transform: scale(.92, .92);
}

.d-clear:hover {
    background: #D53547;
}

.d-visual-page {
    display: flex;
    height: 48%;
    justify-content: center;
}

.d-flipbox-wrap {
    width: 205px;
    height: 205px;
}

.d-container {
    position: absolute;
    width: inherit;
    height: inherit;
    background-image: url(../images/display2.png);
    background-size: cover;
    border-radius: 10px;
    margin-top: 32px;
}

.d-container-empty {
    outline: 1px solid #CCCCCC;
    position: absolute;
    width: inherit;
    height: inherit;
    border-radius: 10px;
    text-align: center;
    margin-top: 32px;
}

.d-container-empty-text {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 17px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 150px;
    height: 34px;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: .85rem;
}

.d-arrow-r {
    position: absolute;
    right: -38px;
    top: calc(50% - 18px);
    width: 36px;
    height: 36px;
    background-image: url("../svg/arrow-r.svg");
    background-position: 50% 60%;
    background-repeat: no-repeat;
    background-size: 76%;
    cursor: pointer;
    animation: d-move-arrow-r 1.2s linear infinite;
}

.d-arrow-l {
    position: absolute;
    left: -38px;
    top: calc(50% - 18px);
    width: 36px;
    height: 36px;
    background-image: url("../svg/arrow-l.svg");
    background-position: 50% 60%;
    background-repeat: no-repeat;
    background-size: 76%;
    cursor: pointer;
    animation: d-move-arrow-l 1.2s linear infinite;
}

@keyframes d-move-arrow-r {
    0%   { transform: translateX(0px); }
    10%  { transform: translateX(1px); }
    20%  { transform: translateX(2px); }
    30%  { transform: translateX(3px); }
    40%  { transform: translateX(4px); }
    50%  { transform: translateX(5px); }
    60%  { transform: translateX(4px); }
    70% { transform: translateX(3px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(1px); }
    100% { transform: translateX(0px); }
}

@keyframes d-move-arrow-l {
    0%   { transform: translateX(0px); }
    10%  { transform: translateX(-1px); }
    20%  { transform: translateX(-2px); }
    30%  { transform: translateX(-3px); }
    40%  { transform: translateX(-4px); }
    50%  { transform: translateX(-5px); }
    60%  { transform: translateX(-4px); }
    70% { transform: translateX(-3px); }
    80% { transform: translateX(-2px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0px); }
}

.d-clear-screen {
    position: absolute;
    left: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    background-image: url("../svg/edit.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.d-delete-screen {
    position: absolute;
    right: -11px;
    top: -11px;
    width: 22px;
    height: 22px;
    background-image: url("../svg/clear.svg");
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.d-add-page {
    background: #004B77;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 110px;
    height: 22px;
    line-height: 19px;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: .75rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: .15s;
    opacity: 1;
    visibility: visible;
    user-select: none;
}

.d-add-page:hover {
    background: #013351;
}

.d-add-page:active {
    transform: scale(.92, .92);
}

.spinner-box {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 23px;
    margin-left: auto;
    margin-right: auto;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    display: flex;
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to{
        transform: rotate(359deg);
    }
}

.circle-border {
    width: 18px;
    height: 18px;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #004B77;
    background: linear-gradient(0deg, rgba(55, 143, 204, .1) 33%, #004B77 100%);
    animation: spin .8s linear 0s infinite;
}

.circle-core {
    width: 100%;
    height: 100%;
    background-color: #378FCC;
    border-radius: 50%;
}

.d-display {
    width: 183px;
    height: 95px;
    position: relative;
    top: 51px;
    margin-left: 11px;
    color: #01FFFF;
    overflow: hidden;
    user-select: none;
}

.d-number-page {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: .8rem;
    width: 68px;
    height: 22px;
    line-height: 22px;
    background: #367FB15E;
    color: #FFFFFF;
    border-radius: 5px;
    user-select: none;
}

.d-presentation-block {
    border: 1px dotted #FFFFFF;
    border-radius: 3px;
    font-family: Arial Bold, sans-serif;
    width: 99%;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    overflow: hidden;
    white-space: pre;
    color: #FFFFFFCF;
}

.d-small-block {
    font-family: Arial Bold, sans-serif;
    font-size: .9rem;
    width: 100%;
    height: 19px;
    line-height: 22px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: 0;
    white-space: pre;
}

.d-medium-block {
    font-family: Arial Bold, sans-serif;
    font-size: 2.065rem;
    width: 100%;
    height: 38px;
    line-height: 41px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: -.03rem;
    white-space: pre;
}

.d-large-block {
    font-family: Arial Bold, sans-serif;
    font-size: 3.1rem;
    width: 100%;
    height: 57px;
    line-height: 60px;
    background: rgba(255, 255, 255, 0);
    position: absolute;
    left: 0;
    text-indent: -.06rem;
    white-space: pre;
}

.d-conf-title {
    font-size: .85rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #5B5B5B;
}

.button-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 13px;
}

.button-wrap option {
    font-weight: bold;
}

.button-label-str {
    width: 20px;
}

.button-label-font {
    width: 60px;
}

.button-label {
    display: flex;
    justify-content: center;
    font-size: .75rem;
    font-weight: bold;
    height: 20px;
    padding: 0 0;
    margin: 0 7px;
    cursor: pointer;
    color: #5B5B5B;
    border-radius: 5px;
    background: #EFEFEF;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button-label:hover {
    background: #D6D6D6;
    color: #101010;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .32);
}

.button-label:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -1px 0 rgba(0, 0, 0, .22);
}

.d-wrap-page input[type="radio"]:checked + .button-label {
    background: #378FCC;
    color: #EFEFEF;
}

.d-wrap-page input[type="radio"]:checked + .button-label:hover {
    background: #3A9BD7;
    color: #E2E2E2;
}

.hidden {
    display: none;
}

.d-user-text {
    border: 1px solid #DDDDDD;
    outline: none;
    background: #EFEFEF;
    border-radius: 7px;
    height: 18px;
    line-height: 18px;
    color: #5B5B5B;
    width: 160px;
    padding: 0 10px;
    font-size: .75rem;
    font-weight: bold;
}

.d-user-text::placeholder {
    color: #AAAAAA;
}

.d-select {
    width: 184px;
    height: 20px;
    line-height: 18px;
    color: #5B5B5B;
    border: 1px solid #DDDDDD;
    border-radius: 7px;
    padding-left: 5px;
    outline: none;
    background: #EFEFEF;
    font-size: .75rem;
    font-weight: bold;
}

.d-sys-module-select optgroup {
    font-weight: bold;
}

.d-interval-title {
    position: absolute;
    bottom: 27px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 150px;
    font-size: .78rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 7px;
    color: #FFFFFF;
}

.d-select-interval {
    outline: none;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 66px;
    height: 18px;
    line-height: 18px;
    color: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 5px;
    padding-left: 5px;
    background: #145E8C;
    font-size: .72rem;
}

.sync-screen {
    padding: 0 15px;
    line-height: 30px;
    width: 140px;
    height: 32px;
    margin: 30px auto 30px auto;
    background: #117C4B;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2), inset 0 -3px 0 rgba(0, 0, 0, .22);
    transition: .15s;
    user-select: none;
}

.sync-screen:hover {
    background: #16A364 !important;
}

.sync-screen:active {
    transform: scale(.95, .95);
}

/* !DISPLAY_END! */

/* !DEBUG_START! */
.debug-btn,
.comparison-btn {
    display: inline-block;
    background: #378FCC;
    color: #FFFFFF;
    padding: 4px 14px;
    margin-top: 5px;
    cursor: pointer;
    border: 1px solid #CCCCCC;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

.debug-box {
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    max-height: 550px;
    overflow: hidden;
    overflow-y: scroll;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.wrap-comparison-box {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.comparison-box-device,
.comparison-box-web {
    border: 1px solid #D7DEE8;
    border-radius: 6px;
    min-height: 20px;
    width: 49.5%;
}

.string {
    color: #008000;
}

.number {
    color: #FF8C00;
}

.boolean {
    color: #0000FF;
}

.null {
    color: #FF00FF;
}

.key {
    color: #FF0000;
}
/* !DEBUG_END! */

/* !PROFILE_START! */
.profile-desc {
    margin-top: 10px;
}

.profile-page h3 {
    margin: 10px 0;
    font-size: .95rem;
}

.profile-page h2 {
    font-size: 1.1rem;
    text-transform: inherit;
}

.profile-page ul {
    margin: 10px 0 0 0;
    list-style-type: none;
}

.telega-code span {
    display: block;
    width: 200px;
    text-align: center;
    font-size: 2rem;
    padding: 10px 0;
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    background: #C8DCF3;
    margin: 10px 0;
}

.telega-disable-btn-link,
.alice-disable-btn-link{
    display: none;
    color: #BE0000;
    text-decoration: underline;
    cursor: pointer;
}

.alice-disable-btn-link{
    display: inline-block;
}

.telega-disable-btn-link:hover,
.alice-disable-btn-link:hover
{
    text-decoration: none;
}

.auth-factor-disable {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #BE0000;
    color: #BE0000;
    font-size: .9rem;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-transform: none;
}

.auth-factor-disable-btn {
    display: none;
    color: #BE0000;
    text-decoration: underline;
    cursor: pointer;
}

.auth-factor-disable-btn:hover {
    text-decoration: none;
}

.auth-factor-enable-status {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #159B5F;
    color: #159B5F;
    font-size: .9rem;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-transform: none;
}

.auth-factor-enable {
    display: block;
    padding: 10px 10px;
    border: 1px solid #159B5F;
    background: #159B5F;
    color: #FFFFFF;
    font-size: .9rem;
    cursor: pointer;
    margin-top: 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.auth-factor-enable:hover {
    background: #16763C;
}

h1.profile-line {
    padding-bottom: 10px;
    border-bottom: 2px solid #378FCC;
}

.profile-qr {
    float: right;
    width: 200px;
    text-align: center;
}

.profile-password {
    margin: 10px 0 40px;
}

.profile-password input {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #AAAAAA;
    height: 30px;
    padding: 0 10px;
}

.profile-password input[type=submit] {
    background: #378FCC;
    border: 1px solid #378FCC;
    color: #FFFFFF;
    cursor: pointer;
}

.profile-password input[type=submit]:hover {
    background: #3BA0E1;
}

.limit-sms {
    width: 48px;
    text-align: center;
    padding:  0;
}

.profile-parameters li {
    margin-bottom:  4px;
}

.profile-parameters input[name=phone] {
    width: 130px;
}

.my-list-devices {
    display: flex;
    flex-wrap: wrap;
    margin: 10px -5px 0 -5px !important;
}

.my-list-devices li {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    width: 24%;
    box-sizing: border-box;
    padding: 20px;
    margin: .5%;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.device-dostup {
    display: block;
    width: 160px;
    border: 1px solid #CCCCCC;
    padding: 2px 5px;
    margin: 15px auto 0;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.device-dostup:hover {
    background: #378FCC;
    color: #FFFFFF;
    border: 1px solid #378FCC;
}

.select-category-permission input {
    -webkit-appearance: checkbox;
}

.select-category-permission {
    display: flex;
    flex-wrap: wrap;
}

.select-category-permission li {
    width: 33%;
}

.permission-email {
    display: block;
    margin: 15px 0;
    border: 1px solid #CCCCCC;
    padding: 5px 7px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.user-permissions-device {
    margin-top: 15px;
}

.user-permissions-device-remove-list,
.user-permissions-device-edit {
    color: #BE0000;
    text-decoration: underline;
    cursor: pointer;
}

.user-permissions-device-remove-list:hover,
.user-permissions-device-edit:hover {
    text-decoration: none;
}

.modal-user-name-perm{
    font-size: 1.6rem;
}
/* !PROFILE_END! */

/* !LOGIN_START! */
.authorization {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    min-height: 300px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    margin: -150px 0 0 -170px;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.authorization-title {
    font-weight: 600;
    margin-top: 40px;
    text-align: center;
    font-size: 1.2rem;
}

.authorization input {
    display: block;
    width: 240px;
    margin: 15px auto 0 auto;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    padding: 10px 10px;
}

.authorization input[type=submit] {
    background: #378FCC;
    color: #FFFFFF;
    width: 100px;
    cursor: pointer;
}

.authorization input[type=submit]:hover {
    background: #2C78AB;
}

.auth-err {
    display: none;
    background: rgba(204, 65, 37, .61);
    color: #FFFFFF;
    text-align: center;
    padding: 10px 0;
    margin-top: 5px;
}

.auth-err li {
    list-style-type: none;
}

.auth-err li:first-child {
    padding-top: 10px;
}

.auth-err li:last-child {
    padding-bottom: 10px;
}

.auth-form-code {
    display: none;
}

.auth-title-dop {
    margin: 10px 0;
    text-align: center;
}

.pass-recovery {
    text-align: center;
    margin-top: 10px;
}

.authorization input[type=submit].btn-recovery-pass {
    width: 160px;
}

.authorization.recovery {
    width: 400px;
    margin-left: -200px;
}

.desc-recovery {
    margin: 5px 40px;
    text-align: left;
    font-size: .8rem;
}

.recovery input[name=email] {
    width: 302px;
    box-sizing: border-box;
}

.g-recaptcha {
    text-align: center;
    margin: 10px 0 0 49px;
}

.success-recovery-text {
    display: none;
    margin: 15px 30px 0;
}

.recovery-success-icon {
    width: 70px;
    height: 70px;
    background: url(../svg/success.svg) 50% 50% no-repeat;
    background-size: cover;
    margin: 30px auto 0;
}

.recovery-error-icon {
    width: 70px;
    height: 70px;
    background: #BE0000;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    background-size: cover;
    margin: 30px auto 0;
    position: relative;
}

.recovery-error-icon::after {
    position: absolute;
    top: 30px;
    left: 20px;
    content: '';
    height: 10px;
    width: 30px;
    background: #FFFFFF;
}
/* !LOGIN_END! */

/* !ALICE! */
input[name=device_status] {
    -webkit-appearance: checkbox;
}

.control-smart-home-device {
    -webkit-appearance: checkbox;
}
.config-line.alice {
    display: block;
}
.alice-voice-settings{
    list-style-type: none;
}
.alice-voice-settings li form {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    line-height: 2rem;
}

.alice-voice-settings li form input[type=text] {
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 20px;
    height: 20px;
    padding: 5px 10px;
    margin: 5px 0;
}

.alice-voice-settings li form input[type=radio] {
    -webkit-appearance: radio;
}

.alice-voice-settings li form div:nth-child(2) {
    width: 220px;
}

.alice-voice-settings li form div:nth-child(3) {
    width: 180px;
}

.alice-voice-settings li form select {
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 30px;
    height: 30px;
    margin: 5px 0;
}

input[name=email_yandex] {
    width: 30%;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    line-height: 20px;
    height: 20px;
    padding: 5px 10px;
    margin: 5px 0;
}

@media all and (max-width: 944px) {
    .alice-voice-settings li form {
        display: block;
    }

    .alice-voice-settings li {
        margin-bottom: 24px;
    }
}
/* !ALICE_END! */

/* ms edge */
@supports (-ms-ime-align:auto) {
    input[type=range] {
        pointer-events: auto;
    }
}

/* ie 11 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    input[type=range] {
        pointer-events: auto;
    }
}

/* !MEDIA_QUERIES_START! */
@media all and (max-width: 1268px) {
    .box-center {
        padding: 0 15px;
    }

    .modal.modal-status-error {
        width: 98%;
        height: 95%;
        margin: 0 0 0 1%;
        left: 0;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        z-index: 1000;
    }

    .modal.modal-status-error .modal-close {
        right: 25px;
        top: 25px;
        width: 16px;
        height: 16px;
    }
}

@media all and (max-width: 1152px) {
    .reg-key-plus {
        width: 65%;
        left: 17%;
    }
}

@media all and (max-width: 1100px) {
    .box-content {
        margin-top: 20px;
    }

    .device-category {
        border-bottom: none;
        padding-bottom: 0;
    }

    .device-category dd {
        margin-top: 55px;
        display: block;
        text-align: center;
    }

    .device-category li a {
        padding-left: 0;
        line-height: normal;
        height: 80px;
    }

    .device-category li a span {
        left: 50%;
        margin-left: -16px;
    }

    .sensor {
        float: left;
        width: 49%;
        box-sizing: border-box;
    }

    .sensor:first-child {
        margin-right: 1%;
    }

    .sensor:last-child {
        margin-left: 1%;
    }

    .sensor-list > li {
        width: 32%;
    }

    .sensor-list .sensor {
        width: 100%;
    }

    .satellit-line {
        width: 49%;
    }
}

@media all and (max-width: 1052px) {
    .w-wrap {
        flex-basis: 18.9%;
        margin: .5% .8% 0 0;
    }

    .empty-space-widget {
        flex-basis: 18.9%;
        margin: .5% .8% 0 0;
    }

    .w-wrap-all {
        flex-basis: 19%;
        margin: 30px 0 0 .8%;
    }
}

@media all and (max-width: 992px) {
    .header {
        position: static;
    }

    body.no-index {
        background: none;
    }

    .box-main.no-index {
        display: none;
    }

    .box-main {
        padding-top: 0;
    }

    input, textarea, select {
        font-size: 16px;
    }

    .form-fields-select,
    .selected-field {
        font-size: 16px;
    }

    .newrule-add-list select,
    .newrule-add-list input {
        font-size: .9rem;
        height: 30px;
    }

    .footer {
        height: 120px;
    }

    .main .device-category {
        display: none;
    }

    h1 {
        margin-top: 15px;
    }

    .menu-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        background: rgba(6, 32, 49, .97);
        font-size: .9rem;
        -webkit-box-shadow: 0 2px 5px 0 rgba(50, 50, 50, .25);
        -moz-box-shadow: 0 2px 5px 0 rgba(50, 50, 50, .25);
        box-shadow: 0 2px 5px 0 rgba(50, 50, 50, .25);
        z-index: 9999;
        margin: 0 auto;
        overflow-y: auto;
    }

    .menu-mobile .device-category li {
        width: 48%;
    }

    .menu-mobile .device-category li a {
        border: 1px solid #2B6D9B;
        background: none;
        color: #FFFFFF;
    }

    .menu-mobile .device-category li a.active {
        background: rgba(55, 143, 204, .65);
    }


    .menu-mobile .device-category li:last-child {
        width: 100%;
        margin-bottom: 50px;
    }

    .menu-mobile .device-category {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-control {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        height: 50px;
        overflow: hidden;
        width: 100%;
        z-index: 10000;
    }

    .menu-control-circle {
        background: url('../images/arrow-up-menu-control.png') 50% 15px no-repeat rgba(6, 32, 49, .95);
        height: 210%;
        -webkit-border-radius: 100%;
        -moz-border-radius: 100%;
        border-radius: 100%;
    }

    .menu-control.menu-control-active .menu-control-circle {
        background: url('../images/arrow-down-menu-control.png') 50% 15px no-repeat rgba(6, 32, 49, .95);
    }

    .control-window {
        top: 0;
    }

    .control-warning {
        position: absolute;
    }

    .selected-field {
        width: 233px;
    }

    .datepicker {
        width: 18%;
    }

    .w-wrap {
        flex-basis: 23.9%;
        margin: .5% .8% 0 0;
    }

    .empty-space-widget {
        flex-basis: 23.9%;
        margin: .5% .8% 0 0;
    }

    .notification-list li ul li:nth-child(3) {
        width: 20%;
    }

    .control-window {
        position: relative;
    }

    .modal.modal-status-error {
        padding-bottom: 50px;
    }

    .config-line-add li select, .config-line-add li input, .config-line li select, .config-line li input {
        font-size: .9rem;
    }

    .modal.modal-status-error {
        width: 100%;
        top: 0;
        margin: 0;
    }

    .modal-status-error h2 {
        margin-top: 0;
        font-weight: bold;
        font-size: 1.2rem;
        padding-bottom: 16px;
        border-bottom: 2px solid #378FCC;
    }

    .modal.modal-status-error .modal-close {
        right: 15px;
        top: 15px;
        width: 16px;
        height: 16px;
    }

    .modal.modal-status-error {
        padding: 15px 15px 125px 15px;
    }

    .notification-list li ul li:nth-child(3){
        width: 23%;
    }

    .notification-list li ul li:nth-child(2){
        width: 20%;
    }

    .notification-list li ul li:nth-child(4){
        width: 10%;
    }

    .notification-list li ul li:nth-child(5){
        width: 10%;
    }

    .notification-list li ul li:nth-child(7){
        width: 10%;
        text-align: left;
    }

    .event-if-do-wrap {
        flex-direction: column;
    }

    .user-event-if-wrapper {
        border-right: 0;
        width: 100%;
    }

    .user-event-do-wrapper {
        width: 100%;
    }

    .ip-error-text{
        height: auto;
        line-height: inherit;
    }

    .my-list-devices li{
        width: 49%;
    }
}

@media all and (max-width: 800px) {
    .device-category li a {
        font-size: .8rem;
    }

    .sensor-list > li {
        width: 49%;
    }

    .ui-state-default.newrule-line {
        display: block;
    }

    .newrule-line .line-col {
        width: 100% !important;
    }

    .line-col.left {
        text-align: center;
    }

    .line-col.right {
        text-align: center;
        padding-bottom: 10px;
    }

    .newrules-if-list-item {
        margin-bottom: 5px;
    }

    .device-config > li {
        width: 100%;
        margin-right: 0;
    }

    .w-wrap-all {
        flex-basis: 17.6%;
        margin: 30px 0 0 2%;
    }

    .modal.info-modal {
        width: 100%;
        height: 100%;
        margin: 0;
        left: 0 !important;
        top: 0 !important;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        z-index: 1000;
    }

    .modal.info-modal .modal-close {
        top: 25px;
        right: 25px;
    }

    .satellit-line {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .line-col-condition {
        border-right: none;
        width: 100%;
        padding: 18px 18px 6px 18px;
    }

    .line-col-action {
        width: 100%;
        padding: 0 18px 18px 18px;
    }

    .newrule-add-if {
        margin: 10px 0 5px;
    }

    .line-widget .line-col-condition {
        border-right: none;
    }

    .device-config-app{
        display: block;
    }
}

@media all and (max-width: 718px) {
    .w-wrap {
        flex-basis: 32%;
        margin: .5% .8% 0 0;
    }

    .empty-space-widget {
        flex-basis: 32%;
        margin: .5% .8% 0 0;
    }

    .form-w-settings .range-value {
        top: -18px;
        left: 47%;
        font-size: 1.2rem;
        height: 28px;
        line-height: 28px;
    }

    .temp-l-arrow {
        left: -50px;
        top: 4px;
        width: 50px;
        height: 20px;
    }

    .temp-r-arrow {
        right: -50px;
        top: 4px;
        width: 50px;
        height: 20px;
    }

    .form-w-settings .range-min {
        bottom: 12px;
        left: 10px;
        width: 20px;
        height: 20px;
        font-size: .9rem;
        color: #FFFFFF;
    }

    .form-w-settings .range-max {
        bottom: 12px;
        right: 10px;
        width: 20px;
        height: 20px;
        font-size: .9rem;
        color: #FFFFFF;
    }
}

@media all and (max-width: 667px) {
    .box-content {
        margin-top: 5px;
    }

    .device-settings input[name=name],
    .device-settings input[name=voice_name],
    .device-settings input[name=device_address] {
        width: 70%;
    }

    .device-files-box {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    .device-settings label {
        line-height: 40px;
        margin-right: 10px;
    }

    .device-list-btn {
        text-align: center;
    }

    .modal-status-error-text table,
    .modal-status-error-text tr,
    .modal-status-error-text td {
        display: block;
        width: 100%;
        border-bottom: none;
        text-align: center;
        box-sizing: border-box;
    }

    .modal-status-error-text tr.geterror-table {
        display: none;
    }

    .modal-status-error-text td:first-child {
        font-weight: bold;
    }

    .modal-status-error-text td:last-child {
        border-bottom: 1px solid #CCCCCC;
    }
}

@media all and (max-width: 600px) {
    .header {
        position: static;
    }

    .box-main {
        padding-top: 0;
    }

    .main-box-list ul:first-child {
        display: none;
    }

    .device-category li {
        float: none;
    }

    .device-category li:last-child {
        float: none;
        margin-right: 0;
        width: 31%;
    }

    .device-category.clearfix::after {
        content: none;
    }

    .menu > ul li {
        text-align: center;
    }

    .authorization input {
        margin-top: 10px;
    }

    .footer {
        height: 120px;
    }

    .no-device-text {
        position: absolute;
        top: 37%;
        left: 50%;
        width: 300px;
        margin: -80px 0 0 -150px;
        font-size: 1.2rem;
    }

    .no-device-text::after {
        display: none;
    }

    .w-wrap-all {
        flex-basis: 21.2%;
        margin: 30px 0 0 3%;
    }

    .device-config-app{
        text-align: center;
    }

    .device-config-app .device-config-app-btn{
        margin-left: 0;
    }

    .device-config-save-btn.sunc-satellite{
        margin-top: 8px;
    }
}

@media all and (max-width: 544px) {
    .mobile-disable-scroll {
        position: fixed;
        width: 100%;
    }

    .sensor {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .modal {
        width: 96%;
        margin-left: 0;
        left: 2%;
    }

    .menu {
        padding-top: 60px;
        width: 100%;
    }

    .menu > ul {
        margin-top: 0;
    }

    .menu li a {
        font-size: 1.6rem;
        text-decoration: none;
    }

    .main {
        min-height: 93vh;
        margin-bottom: 0;
    }

    .authorization {
        width: 100%;
        border: none;
        position: absolute;
        top: 50%;
        left: 0;
        margin: -150px 0 0 0;
    }

    .footer {
        height: 12vh;
        margin-top: 2vh;
        padding-top: 10px;
    }

    .footer-line {
        margin: 0;
    }

    .sensor-list > li {
        width: 99%;
    }

    .main-box-list ul:nth-child(2) {
        display: none;
    }

    .w-add:before {
        content: "+";
        font-size: 1.5rem;
        padding: 1px 15px;
    }

    .w-wrap {
        flex-basis: 48.6%;
        margin: .5% .8% 0 0;
    }

    .empty-space-widget {
        flex-basis: 48.6%;
        margin: .5% .8% 0 0;
    }

    .unsync-widget-fon span {
        top: 32%;
        font-size: .75rem;
    }

    .w-wrap-all {
        flex-basis: 29.3%;
        margin: 30px 0 0 3%;
    }

    .form-w-settings .range-min {
        bottom: 12px;
        left: 0;
        width: 20px;
        height: 20px;
        font-size: .9rem;
        color: #FFFFFF;
    }

    .form-w-settings .range-max {
        bottom: 12px;
        right: 0;
        width: 20px;
        height: 20px;
        font-size: .9rem;
        color: #FFFFFF;
    }

    .form-w-settings .range-value {
        top: -18px;
        left: 37%;
        font-size: 1.2rem;
        height: 28px;
        line-height: 28px;
    }

    .form-w-settings {
        padding: 20px;
        width: 70%;
    }

    .w-btn-send {
        width: 156px;
        padding: 7px;
        font-size: .7rem;
    }

    .control-send {
        right: 0;
    }

    .w-data-send-time {
        font-size: .5rem;
        right: 0;
    }

    .control-window span {
        font-size: .9rem;
    }

    .device-config-add-satellit-btn {
        width: 140px;
    }

    .satellit-line-box,.satellit-ip {
        font-size: .8rem;
    }

    .line-col-condition {
        font-size: .8rem;
        padding-top: 6px;
    }

    .line-col-action {
        font-size: .8rem;
    }

    .rele-layout-btn li {
        display: none;
    }

    .rele-layout-btn li.active {
        display: block;
        position: relative;
        padding-right: 24px;
        background: url('../svg/arrow-down-select.svg') 96% 50% no-repeat #2C78AB;
        background-size: 12px 8px;
    }

    .rele-layout-btn.list {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #FFFFFF;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 40px;
    }

    .rele-layout-box {
        padding: 0 10px 10px 10px;
    }

    .rele-layout-btn.list li {
        display: block;
        background: #FFFFFF;
        padding: 20px;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .rele-layout-btn.list li {
        margin-top: -1px;
        font-size: 1rem;
    }

    .rele-layout-btn.list li:last-child {
        margin-bottom: 80px;
        border-bottom: none;
    }

    .rele-layout-btn.list li:first-child {
        border-bottom: none;
        border-top: none;
    }

    .rele-layout-btn.list li:nth-child(2) {
        border-top: none;
    }

    .rele-layout-btn.list li.active {
        background: #378FCC;
    }

    .rele-layout-btn-close {
        background: url(../images/menu-close.png) 0 0 no-repeat;
        position: absolute;
        top: 25px;
        right: 20px;
        width: 22px;
        height: 22px;
        cursor: pointer;
    }

    .rele-layout-btn-change-box {
        display: flex;
        align-items: center;
    }

    .newrule-add-list {
        text-align: center;
    }

    .newrule-line-code {
        width: 100%;
    }

    .newrule-add-list select {
        width: 100%;
    }

    .newrule-add-list input:not([type=submit]) {
        width: 100%;
    }

    .newrule-add-btn {
        margin-top: 5px;
    }

    .rules-remove,
    .rules-handle.wi {
        right: 15px;
    }

    .modal.modal-add-if-rule {
        top: 0;
        height: 100%;
        width: 100%;
        left: 0;
        margin-top: 0;
        padding-top: 45px;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    .newrules .w-data-send-time {
        display: none;
    }

    .newrules .control-send {
        display: none;
    }

    .device-settings .config-line {
        display: block;
    }

    .device-settings .config-line label {
        display: block;
        line-height: 16px;
    }

    .device-settings .config-line input {
        display: block;
        width: 90%;
    }

    .ip-error-text {
        margin-left: 0;
        line-height: normal;
        height: auto;
    }

    .notice-form-add {
        margin-top: 10px;
    }

    .notification-list li ul li:first-child {
        background: #EEEEEE;
    }

    .notification-list > li > ul {
        display: block;
    }

    .notification-list li ul li {
        display: inline-block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .notice-form-add input {
        font-size: .9rem;
    }

    .notice-form-add select {
        width: 100% !important;
        font-size: .9rem;
    }

    .notice-form-add select {
        margin: 5px 0;
    }

    .notice-form-add input[type=submit] {
        display: block;
        margin: 10px auto 0 auto;

    }

    .user-event-src {
        text-align: left;
        padding-left: 10px;
        font-size: .8rem;
    }

    .user-event-src-widget {
        text-align: left;
        padding-left: 10px;
        font-size: .8rem;
    }

    .user-event-src:hover {
        background: #ADC5E4;
    }

    .user-event-src-widget:hover {
        background: #F0E68C;
    }

    .event-src-name {
        width: 60%;
        margin-left: 10px;
    }

    .user-id-src {
        width: 20%;
        font-size: .6rem;
    }

    .user-event-if,
    .user-event-do {
        margin: 4px 0 0 20px;
        font-size: .85rem;
    }

    .event-empty {
        font-size: .7rem;
    }

    .event-name {
        font-size: .7rem;
    }

    .event-src select,
    .event-src input,
    .event-do select,
    .event-do input,
    .event-if select,
    .event-if input {
        font-size: .8rem;
        height: 24px;
        margin-bottom: 8px;
    }

    .event-short-comment {
        max-width: 41%;
        font-size: .6rem;
        top: 8px;
    }

    .user-variable {
        height: 34px;
        line-height: 34px;
        font-size: .6rem;
    }

    .variable-box-content input {
        min-width: 0;
        width: 134px;
        height: 20px;
        line-height: 20px;
        border: 1px solid #CCCCCC;
        color: #333333;
        padding-left: 5px;
        margin-left: 5px;
        outline: none;
        font-size: .6rem;
    }

    .var-delete {
        right: 6px;
        top: 7px;
        height: 14px;
        line-height: 14px;
        width: auto;
        padding: 3px 5px;
        font-size: .6rem;
    }

    .var-add-btn {
        padding: 4px 14px;
        margin: 5px 0 0 10px;
        font-size: .6rem;
    }

    .main-empty-widget {
        font-size: .75rem;
    }

    .add-sensor {
        font-size: .7rem;
        width: 28%;
    }

    .main-empty-sensor {
        font-size: .75rem;
    }

    .empty-onewire-sensor {
        padding: 15px 0 28px 0;
    }

    .authorization.recovery {
        width: 100%;
        margin-left: 0;
        text-align: left;
        box-sizing: border-box;
        padding: 0 20px;
    }

    .g-recaptcha {
        margin-left: 0;
    }

    .desc-recovery {
        margin: 10px 0;
    }

    .recovery input[name=email] {
        width: 100%;
    }

    .profile-password input[type=submit] {
        display: block;
        margin: 12px auto 0;
    }

    .desc-recovery.finish {
        margin: 0 20px;
    }

    .profile-qr {
        float: none;
        margin-top: 12px;
        width: 100%;
    }

    .auth-factor-enable {
        width: 200px;
        margin: 5px auto 0;
    }

    .device-name a {
        overflow: hidden;
    }

    .my-list-devices li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    input[name=new_password] {
        margin-top: 5px;
    }

    .auth-factor-disable {
        display: block;
        width: 180px;
        text-align: center;
        margin-top: 10px;
    }
}

@media all and (max-width: 400px) {
    .no-device {
        top: 53%;
        width: 280px;
        height: 140px;
        margin: -80px 0 0 -140px;
    }

    .no-device-text {
        font-size: 1.1rem;
    }

    .w-wrap {
        flex-basis: 48.3%;
        margin: 2% 1% 0 0;
    }

    .empty-space-widget {
        flex-basis: 48.3%;
        margin: 2% 1% 0 0;
    }

    .relay-state {
        position: absolute;
        top: 4px;
        left: 38%;
    }

    .w-help-modal-disc .w-disc-text {
        width: 85%;
        font-size: .85rem;
    }

    .w-rel-name {
        font-size: .68rem;
        font-weight: bold;
    }
}

@media all and (max-width: 360px) {
    .main-box {
        width: 100%;
        margin-left: 10px;
        float: none;
    }

    .box-main {
        height: 170px;
    }

    .main-box-list ul {
        margin-left: 0;
        width: 50%;
        overflow: hidden;
    }

    .main-box-title {
        margin-right: 15px;
    }

    .sensor-list {
        font-size: .9rem;
    }

    .main-empty-sensor {
        font-size: .75rem;
    }

    .empty-onewire-sensor {
        padding: 15px 0 30px 0;
    }

    .del-all-not-reg-keys-btn {
        right: 20px;
        top: 9px;
    }
}

@media all and (max-width: 320px) {
    .satellit-line-box,.satellit-ip{
        font-size: .65rem;
    }

    .newrules-if-list-item-widget-name {
        display: none;
    }
}
/* !MEDIA_QUERIES_END! */