html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* needed for container min-height */
    background: white;
    width: 100%;
}

/*внешний контейнер для всего сайта*/
.wrapper {
    max-width: 1200px;
    height: 100%;
    /*height: 1px;*/
    margin: auto;
    box-shadow: 0 0 35px #ccc;
}

/* навигационная панель */
nav.navbar-sensonet {
    background-color: #5B138B;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0;
    margin: 0;
    height: 80px;
}

.navbar-sensonet .navbar-brand {
    background: url(/web/img/navlogo.png) no-repeat;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-sensonet .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
}

.navbar-sensonet .rightside {
    background-color: #301217;
    height: 100%;
    display: flex;
    padding: 0;
    align-items: center;
}

.navbar-sensonet span.client-logo {
    /*display: table-cell;*/
    vertical-align: middle;
    /*height: 100%;*/

    width: 55px;
    padding: 0 5px 0 10px;
}

.navbar-sensonet span.name {
    color: #fff;
    flex-grow: 1;
}


.navbar-sensonet span.name span.user:before {
    content: "// "
}


.navbar-sensonet span.ctrl-panel {
    width: 230px;
    padding: 0 10px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.navbar-sensonet span.exit {

    display: inline-block;
    color: #fff;
    text-decoration: none;
}

.navbar-sensonet button.exit {
    border: none;
    width: 80px;
    height: 20px;
    text-align: left;
    line-height: 10px;
    background: url(/web/img/exit.png) 52px 0 no-repeat;
}

.navbar-sensonet .glyph_exit {
    background: url(/web/img/exit.png) 5px 0 no-repeat;
    width: 24px;
    height: 20px;
    display: none;
    margin-top: 10px;
    position: relative;
}


/* Меню панели управления */

/* контейнер меню панели управления */
.ctrl-panel .dropdown {
    border-radius: 20px !important;
    /*background: #e7e247 !important;*/
    width: 160px;
    border-color: #e7e247 !important;
    text-align: left;
    font-size: 16px;
}

/* кнопочка меню */
.ctrl-panel .dropdown .dropdown-toggle {
    border-radius: 20px !important;
    background: #e7e247 !important;
    width: 200px;
    border-color: #e7e247 !important;
    padding: 5px 20px;
    text-align: left;
    font-size: 16px;
}

/* при раскрытии меню нижние закругления убираем */
.ctrl-panel .dropdown.open, .ctrl-panel .dropdown.open .dropdown-toggle {
    border-radius: 20px 20px 0 0 !important;
}

/*выпадающее меню*/
.ctrl-panel .dropdown .dropdown-menu {
    width: 200px;
    margin: 0 !important;
    padding: 15px 0 !important;
    border: 0 !important;
    background: #e7e247 !important;
    border-radius: 0 0 20px 20px !important;
}

/*выделенный элемент*/
.ctrl-panel .dropdown a:hover {
    border-radius: 0;
    background: yellow;
}


/*контейнер - часть под хедером */
div.container {
    width: 100% !important;
    font-family: 'Open Sans', sans-serif;
    padding: 0 !important;
    margin: 0 !important;
    height: calc(100% - 80px);
}


div.container > div {
    overflow-y: auto;
    height: 100%;
    padding: 10px;
}

/* левая менюха - список в контейнере */
.sidebar {
    padding: 5px !important;
    overflow-y: auto;
    height: 100%;
}

div.sidebar hr {
    margin: 0 -5px;
}

.container .rightside {
    background: linear-gradient(to right, #eee, #fff 15px);
    height: 100%;
    padding-bottom: 40px;
    overflow-y: auto;
}

.points-view, .control-points-view {
    padding: 0 !important;
    height: 100%;
}

/* "ДЕРЕВО"-СПИСОК ПОДРАЗДЕЛЕНИЙ */


h4.facility-list-hdr, h4.subscribers-list-hdr {
    cursor: pointer;
}

h4.facility-list-hdr.open:before, h4.subscribers-list-hdr.open:before {
    height: 16px;
    width: 20px;
    content: " ";
    background: url(/web/img/list_open_icon.png) 3px 6px no-repeat;
    display: inline-block;
    cursor: pointer;
}

h4.facility-list-hdr.closed:before, h4.subscribers-list-hdr.closed:before {
    height: 16px;
    width: 20px;
    content: " ";
    background: url(/web/img/list_closed_icon.png) 5px 5px no-repeat;
    display: inline-block;
    cursor: pointer;
}

/* убираем точки слева и отступы */
ul.facility-list, ul.subscribers-list {
    list-style-type: none;
    padding: 0;
}

ul.facility-list li.facility-selector2 a, ul.facility-list, li.facility-selector2 a:hover, ul.facility-list, li.facility-selector2 a:visited {
    color: black;
    /*font-weight: bold;*/
}

ul.subscribers-list li a, ul.subscribers-list, li a:hover, ul.subscribers-list, li a:visited {
    color: black;
    font-weight: normal;
}

/* делаем все же небольшой отступ */
ul.facility-list li.facility-selector, ul.subscribers-list li {
    margin-left: 20px;
    cursor: pointer;
}

/*  */
ul.subscribers-list li a, ul.subscribers-list li a:hover, ul.subscribers-list li a:visited {
    color: inherit;
    text-decoration: none;
}

li.facility-selector ul li {
    display: none;
}

ul.subscribers-list li.selected a, ul.facility-list li.selected {
    font-weight: bold;
}


/* СЧЕТЧИКИ */

.schetchik {
    vertical-align: top;
    margin: 8px;
    width: 262px;
    /*height: 97px;*/
    display: inline-block;
    border: 1px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.schetchik-alert {
    background-color: #FFE0E1;
    border: 1px solid red;
}

.schetchik .edit {
    display: none;
}

.schetchik .img {
    vertical-align: top;
    display: inline-block;
    padding: 19px 8px;
}

.schetchik .info {
    vertical-align: top;
    display: inline-block;
    font-size: 12px;
    margin: 5px 0;
}

.schetchik .info span.label {
    color: black;
    padding: 0;
    font-weight: bold;
    font-size: inherit;
}

.schetchik .name {
    vertical-align: top;
    font-weight: 600;
}

div.schetchik.add_device div.add_device_text {
    margin-top: 33px;
    font-weight: bold;
    display: inline-block;
}

div.schetchik.add_device:hover div.add_device_buttons {
    margin-top: 10px;
    font-weight: bold;
    display: inline-block;
}

div.schetchik.add_device:hover div.add_device_buttons a {
    color: black;
    text-decoration: none;
}

div.schetchik.add_device:hover div.add_device_buttons a:hover {
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

div.schetchik.add_device:hover div.add_device_text,
div.schetchik.add_device div.add_device_buttons {
    display: none;
}

.schetchik .full {
    position: absolute;
    top: 75px;
    display: none;
}

.schetchik .full a {
    border: 1px solid #000;
    border-radius: 30px;
    font-weight: 600;
    color: #fff;
    background: #000;
    padding: 3px 16px;
}

.schetchik input[type="checkbox"] + label,
.schetchik input[type="radio"] + label {
    font: 18px bold;
    color: #444;
    cursor: pointer;
}

.schetchik input[type="checkbox"] + label::before,
.schetchik input[type="radio"] + label::before {
    content: "";
    display: inline-block;
    height: 30px;
    width: 50px;
    margin: 0 5px 0 0;
    background-image: url(/web/img/onoff.png);
    background-repeat: no-repeat;
}

.schetchik input[type="checkbox"] + label::before {
    background-position: 0px 0px;
}

.schetchik input[type="checkbox"]:checked + label::before {
    background-position: -115px 0px;
}

.schetchik .full .onoff {
    position: absolute;
    margin: -25px 110px;
}


/*.CtrlPointList .schetchik:hover .full {
    display: block;
}*/

.CtrlPointList .schetchik:hover {
    /* height: 130px;*/
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-color: #ddd;
    cursor: pointer;
}


.subscriber-control-points .CtrlPointList .schetchik {
    height: 96px;
}

/* скрываем лейблы в общем списке устройств в пользовательском виде */
.subscriber-control-points .CtrlPointList .schetchik .info .label {
    display: none;
}

/* текст вправо в пользовательсом виде */
.subscriber-control-points .CtrlPointList .schetchik {
    text-align: right;
}

.subscriber-control-points .CtrlPointList .schetchik .info {
    position: relative;
    padding-right: 5px;
    color: dimgray;
}

.subscriber-control-points .CtrlPointList .schetchik .img {
    float: left;
}

/* скрываем тип учета в общем списке устройств */
.subscriber-control-points .CtrlPointList .schetchik .info .controlType_descr {
    color: darkblue;
    text-transform: uppercase;
    font-size: 16px;
    font-family: impact, arial black, arial;
}

.subscriber-control-points .CtrlPointList .schetchik .info .currentValue {
    font-size: 24px;
    line-height: 20px;
    font-family: impact, arial black, arial;
}

.subscriber-control-points .CtrlPointList .schetchik .info .currentValue .units {
    display: none;
}

.subscriber-control-points .CtrlPointList .schetchik .info .currentValueTimestamp {
    font-size: 10px;
    line-height: 9px;
}


/* скрываем тип учета в общем списке устройств */
.control-points-view .CtrlPointList .schetchik .info .controlType_descr {
    display: none;
}

/* в расширенном варианте прячем кнопку вызова расширенного варианта*/
.CtrlPointFull .schetchik .info .full {
    display: none;
}

.CtrlPointFull .schetchik .info {
    font-size: 14px;
}

/* счетчик на всю ширину и повыше */
.CtrlPointFull .schetchik {
    width: 100%;
    margin: 10px 0 !important;
    /*height: 130px;*/
}

/* картиночку подальше от краев*/
.CtrlPointFull .schetchik .img {
    padding: 8px 15px;
}

/**/

.CtrlPointFull .schetchik .edit {
    float: right;
    display: block;
    padding-right: 10px;
    padding-top: 5px;
}


.CtrlPointList .schetchik .img img {
    width: 56px;
}

.CtrlPointFull .schetchik .img img {
    width: 112px;
}


.control-points-view div.sec-points-form,
.control-points-view div.control-points-form {
    vertical-align: top;
    margin: 20px 0;
    padding: 15px;
    width: 100%;
    display: inline-block;
    border: 1px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    border-radius: 10px;
}

.btn-delete-point {
    float: right;
}

/* селектор уровня детализации отчета */

.rep-lev-selector {
    padding: 30px 0;
}

.rep-lev-selector img.options-icon {
    vertical-align: top;
    display: inline-block;
    width: 20px;
    margin: 7px;
}

.rep-lev-selector ul.nav li:hover {
    background: yellow;
}

.rep-lev-selector ul.nav li a:hover {
    background: transparent;
    color: black;
}

.rep-lev-selector ul.nav li.active {
    background: #e7e247;
}

.rep-lev-selector ul.nav li.active a {
    border: 0;
    font-weight: bold;
}

.rep-lev-selector ul.nav li.active:hover {
    background: yellow;
}

.control-points-view ul.nav {
    border: 0 !important;
    display: inline-block
}

.control-points-view ul.nav li {
    margin: 0 !important;
    border: 1px solid #ccc;
    border-collapse: collapse;
    border-left: 0;
}

.control-points-view ul.nav li:first-child {
    border-radius: 20px 0 0 20px;
    border-left: 1px solid #ccc;
}

.control-points-view ul.nav li:last-child {
    border-radius: 0 20px 20px 0;
}

.control-points-view ul.nav li a {
    border: 0;
    border-radius: 0;
    padding: 6px 15px;
    margin: 0;
    background: transparent;
    color: black;
}

.period-selector ul.nav {
    border: 0 !important;
    display: inline-block
}

.period-selector ul.nav li {
    margin: 0 !important;
    border: 1px solid #ccc;
    border-collapse: collapse;
    border-left: 0;
}

.period-selector ul.nav li:first-child {
    border-radius: 20px 0 0 20px;
    border-left: 1px solid #ccc;
}

.period-selector ul.nav li:last-child {
    border-radius: 0 20px 20px 0;
}

.period-selector ul.nav li a {
    border: 0;
    border-radius: 0;
    padding: 6px 15px;
    margin: 0;
    background: transparent;
    color: black;
}


.subscriber_info {
    margin: 10px;
}


.site-login {
    margin: auto;
}


.login-form {
    width: 400px;
    height: 450px;
    border: 1px solid #fff;
    border-radius: 40px;
    margin: auto;
    padding: 60px;
    background-color: #fff;
}

.logo {
    background: url("/web/img/logo.png") no-repeat;
    width: 400px;
    height: 120px;
    background-size: 70%;

}


/* Маленький экран */
@media (max-width: 767px) {
    .wrapper {
        max-width: 1200px;
        min-height: 100%;
        margin: auto;
        box-shadow: none;
    }


    nav.navbar-sensonet {
        height: 50px !important;
    }

    .navbar-sensonet .rightside {
        width: 100%;
        background: transparent;
    }

    /* пододвигаем весь блок с именем повыше, чтобы увеличить шрифт */
    .navbar-sensonet span.name {
        margin-top: 9px;
        margin-bottom: 9px;
        font-size: 24px;
        text-overflow: ellipsis;
        /*margin-right: 80px;*/
        white-space: nowrap;
        overflow: hidden;
    }

    /*.navbar-sensonet span.exit {padding:15px 10px 0 0;}*/
    /* а иконку относительно него пониже */
    .navbar-sensonet span.name:before {
        left: -50px;
        top: -4px;
    }


    /* увеличиваем размер шрифта организации */
    /*.navbar-sensonet span.name span.company {
    }*/
    /* убираем имя пользователя из заголовка */
    .navbar-sensonet span.name span.user {
        display: none;
    }

    /* из контейнера убираем градиент, т.к. нет больше меню слева */
    .container .rightside {
        background: white;
        padding-bottom: 40px;
        min-height: 0;
        height: auto;
    }

    .container .sidebar {
        min-height: 0;
        height: auto;
    }

    .schetchik {
        height: auto;
    }

    .subscriber_info {
        margin: 5px;
    }

    .subscriber-control-points .subscriber_info .subscriber_name, .subscriber-control-points .subscriber_info .subscriber_addr {
        border-bottom: 1px dotted dimgray;
    }

    .control-points-view .grid-view .data-imp {
        display: none;
    }

}

/* Маленький экран */
@media (max-width: 384px) {
    /* прячем панель управления сверху */
    .navbar-sensonet span.ctrl-panel {
        display: none;
    }

    .schetchik {
        width: 100%;
        height: auto;
        min-width: 1px;
        margin: 5px 0;
    }

    .rightside h3 {
        display: none;
    }
}

.api-doc hr {
    margin: 0;
    padding: 0;
}

/*Margin and Padding helpers*/
/*xs*/
.p-xs { padding: .25em; }
.p-x-xs { padding: 0 .25em; }
.p-y-xs { padding: .25em 0 ; }
.p-t-xs { padding-top: .25em; }
.p-r-xs { padding-right: .25em; }
.p-b-xs { padding-bottom: .25em; }
.p-l-xs { padding-left: .25em; }
.m-xs { margin: .25em; }
.m-x-xs { margin: 0 .25em; }
.m-y-xs { margin: .25em 0 ; }
.m-r-xs { margin-right: .25em; }
.m-l-xs { margin-left: .25em; }
.m-t-xs { margin-top: .25em; }
.m-b-xs { margin-bottom: .25em; }
/*sm*/
@media (min-width:768px){
    /*sm*/
    .p-sm { padding: .5em; }
    .p-x-sm { padding: 0 .5em; }
    .p-y-sm { padding: .5em 0 ; }
    .p-t-sm { padding-top: .5em; }
    .p-r-sm { padding-right: .5em; }
    .p-b-sm { padding-bottom: .5em; }
    .p-l-sm { padding-left: .5em; }
    .m-sm { margin: .5em; }
    .m-x-sm { margin: 0 .5em; }
    .m-y-sm { margin: .5em 0 ; }
    .m-t-sm { margin-top: .5em; }
    .m-r-sm { margin-right: .5em; }
    .m-b-sm { margin-bottom: .5em; }
    .m-l-sm { margin-left: .5em; }
}

/*md*/
@media (min-width: 992px){
    .p-md { padding: 1em; }
    .p-x-md { padding: 0 1em; }
    .p-y-md { padding: 1em 0; }
    .p-t-md { padding-top: 1em; }
    .p-r-md { padding-right: 1em; }
    .p-b-md { padding-bottom: 1em; }
    .p-l-md { padding-left: 1em; }
    .m-md { margin: 1em; }
    .m-x-md { margin: 0 1em; }
    .m-y-md { margin: 1em 0 ; }
    .m-t-md { margin-top: 1em; }
    .m-r-md { margin-right: 1em; }
    .m-b-md { margin-bottom: 1em; }
    .m-l-md { margin-left: 1em; }
}

/*lg*/
@media (min-width: 1200px){
    .p-lg { padding: 1.5em; }
    .p-x-lg { padding: 0 1.5em; }
    .p-y-lg { padding: 1.5em 0; }
    .p-t-lg { padding-top: 1.5em; }
    .p-r-lg { padding-right: 1.5em; }
    .p-b-lg { padding-bottom: 1.5em; }
    .p-l-lg { padding-left: 1.5em; }
    .m-lg { margin: 1.5em; }
    .m-x-lg { margin: 0 1.5em; }
    .m-y-lg { margin: 1.5em 0; }
    .m-t-lg { margin-top: 1.5em; }
    .m-r-lg { margin-right: 1.5em; }
    .m-b-lg { margin-bottom: 1.5em; }
    .m-l-lg { margin-left: 1.5em; }
}
/*xl*/
.p-xl { padding: 3em; }
.p-x-xl { padding: 0 3em; }
.p-y-xl { padding: 3em 0 ; }
.p-t-xl { padding-top: 3em; }
.p-r-xl { padding-right: 3em; }
.p-b-xl { padding-bottom: 3em; }
.p-l-xl { padding-left: 3em; }
.m-xl { margin: 3em; }
.m-x-xl { margin: 0 3em; }
.m-y-xl { margin: 3em 0; }
.m-t-xl { margin-top: 3em; }
.m-r-xl { margin-right: 3em; }
.m-b-xl { margin-bottom: 3em; }
.m-l-xl { margin-left: 3em; }
