:root {
    --black: #202124;
    --gray: #5f6162;
    --red: #e63948;
}

a {
    color: var(--gray);
    text-decoration: none;
    transition: color.2s ease-in;
}

a:hover {
    color: var(--black);
}

h1, .h1 {
    font-size: 40px;
    line-height: 48px;
}

h2, .h2 {
    font-size: 32px;
    line-height: 40px;
}

h3, .h3 {
    font-size: 24px;
    line-height: 26px;
}

h4, .h4 {
    font-size: 20px;
    line-height: 26px;
}

@media screen and (max-width: 768px) {
    h1, .h1 {
        font-size: 26px;
        line-height: 30px;
    }
    h2, .h2 {
        font-size: 22px;
        line-height: 32px;
    }
    h3, .h3 {
        font-size: 20px;
        line-height: 22px;
    }
    h4, .h4 {
        font-size: 18px;
        line-height: 24px;
    }
}

.ZButton {
    border: none;
    padding: 16px;
    width: 100%;
    transition: 0.2s;
    background: unset;
    text-align: left;
    color: var(--black);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

    .ZButton:hover {
        background: #EF8206;
        color: #fff;
    }
    
@media screen and (max-width: 768px) {
    .close-icon {
        width: 24px;
        height: 24px;
    }
}
    
.label {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 4px;
    color: var(--gray);
}

input.form-control, textarea.form-control {
    border: none;
    border-bottom: 1px solid var(--gray);
    font-size: 20px;
    line-height: 24px;
    padding: 0 0 4px 0;
    margin-bottom: 24px;
    border-radius: unset;
}

input::placeholder.form-control, textarea::placeholder.form-control {
    color: var(--gray);
}

input.form-control:focus, textarea.form-control {
    border-bottom-width: 1px !important;
    border-bottom-color: var(--gray) !important;
    box-shadow: none !important;
}

.btn:focus, .btn-check:focus+.btn {
    box-shadow: none;
}
    
.ZSButton {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    padding: 16px 40px;
    background-color: #FF7A1B;
    border: none;
    outline: none;
}

.ClearBtn {
    border: none;
    background: unset;
}

.Active {
    border-left: #EF8206;
    border-left-width: 10px;
    border-left-style: solid;
}

.Notices {
    flex: none !important;
    /*border-right-style: solid;
    border-right-width: 1px;
    border-color: #DEE1E6;*/
}

.Notice {
    /* padding: 10px; */
    cursor: pointer;
    position: relative;
    padding-left: 10px;
}

    .Notice > span > label {
        position: absolute;
        z-index: 1;
        color: white;
        width: 100%;
        top: 1px;
    }

    .Notice > span {
        position: absolute;
        transform: translateX(-5px);
        text-align: center;
    }

@media (max-width: 850px) {
    .Notice {
        padding-left: unset;
    }

        .Notice > svg:last-of-type {
            height: 25px;
        }
}

.MenuBtn {
    flex: none !important;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .MenuBtn svg{
        width: 24px;
        height: 24px;
    }
}

.Menu {
    /*overflow: hidden;*/
    width: 635px !important;
    margin-left: 0px;
    transition: transform 0.5s, width .1s, margin-left .4s, box-shadow .6s;
    top: 0;
    right: 0;
    position: fixed;
    z-index: 3;
    background: white;
    height: 100%;
    display: flex;
    flex-flow: column;
    transform: translateX(100%);
    box-shadow: 2px 1px 4px 0px rgba(65, 63, 88, 0.7);
}

.Menu__head {
    padding: 24px 16px;
}

@media screen and (max-width: 768px){
    .Menu__head {
        padding: 16px;
    }
}

.Menu .CardMenu {
    gap: 40px;
    font-size: 20px;
    line-height: 26px ;
}

.Menu .CardMenu > div {
    margin-top: 0;
}

@media  screen and (max-width: 768px){
    .Menu .CardMenu {
        gap: 24px; 
    }
}

    .Menu > :first-child {
        display: flex;
        justify-content: space-between;
    }
    
    .Menu .ZSButton {
        margin: 0 14px;
    }

    .Menu > h1 {
        margin-left: 14px;
        font-size: 40px;
        font-weight: bold;
        line-height: 52px;
        color: var(--black);
    }
    
    @media screen and (max-width: 768px) {
        .Menu > h1 {
            font-size: 26px;
            line-height: 30px;
        }
    }

.MenuActive {
    margin-left: 35px !important;
    
    transform: translateX(0px);
}

@media screen and  (max-width: 768px) {
    .MenuActive {
        width: 100% !important;
    }
}

.BackMenuBtn {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    background: rgba(95, 97, 98, 0.4);
    border: unset;
}

.MenuBtnActive {
    display: inline-block;
}

.MenuTitle {
    font-size: 48px;
}

.MenuEl {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--black);
}

    .MenuEl > :first-child {
        margin-right: 10px;
    }

    .MenuEl:hover {
        background: #e6e6e670;
    }

    .MenuEl > h3 {
        user-select: none;
    }

.CardList {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: center;
    transition: width .1s;
    /*max-height: fit-content;*/
    /* margin-bottom: 40px; */
}

.BigCard {
    padding: 16px ;
    border: #DFE2E7;
    border-style: solid;
    border-width: 1px;
    position: relative;
    width: 302px;
    cursor: pointer;
    margin: 0 10px 10px 0;
    /*background-color: aqua;*/
}

.BigCard__head {
    position:relative;
    margin-right: 32px;
    margin-bottom: 8px;
}


@media (max-width: 680px) {
    .BigCard {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

.BigCard > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

    /*Image And Title*/
    .BigCard > div > :first-child {
        display: flex;
    }

        /*Title*/
        .BigCard > div > :first-child > :last-child {
            color: var(--black);
            font-size: 20px;
            margin-left: 10px;
        }

    .BigCard > div :nth-child(2) {
    }

        .BigCard > div :nth-child(2) > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .BigCard > div :nth-child(2) > div > :first-child {
                font-size: 16px;
                height: 50%;
            }

            .BigCard > div :nth-child(2) > div :last-child {
                font-size: 16px;
                font-weight: 700;
            }

.ZDesc {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.SettingsButton {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #EE8B1B;
    position: absolute;
    right: 0;
    top: 0;
}

.SettingsButton svg {
    fill: #EE8B1B;
}

    .SettingsButton path {
        transition: fill 0.2s ease-in-out 0s;
    }

.ZImage > svg {
    width: 56px;
    height: 56px;
}

@media screen and (max-width: 768px) {
    .ZImage > svg {
        width: 40px;
        height: 40px;
    }
}

.CardMenu {
    display: flex;
    gap: 80px;
    text-align: left;
    user-select: none;
    margin: 0 0 1px 0;
    border-bottom: 1px solid var(--black);
    overflow-x: auto;
    font-size: 32px;
    line-height: 40px;
}

.CardMenu .active {
    font-weight: 500;
}

.CardMenu::-webkit-scrollbar {
    height: 4px;
}

@media  screen and (max-width: 768px) {
    .CardMenu {
        font-size: 22px;
        line-height: 32px;
        gap: 24px;
    }
}

    .CardMenu > div {
        height: auto;
        margin-top: 10px;
        cursor: pointer;
    }

        .CardMenu > div > div {
            border-bottom: solid;
            border-color: #FF7A1B;
            width: 100%;
            height: 10px;
            margin: auto;
        }

        .CardMenu > div > span {
            display: flex;
            gap: 0 6px;
            flex-direction: row;
            justify-content: center;
            align-items: center;
        }

            .CardMenu > div > span > a {
                color: var(--black);
            }
            
.ZSlider {
    position: relative;
    cursor: default;
    user-select: none;
    /*padding: 6px;*/
    /* margin-bottom: 10px; */
    padding-bottom: 10px;
}

    .ZSlider > h4 {
        font-size: 20px;
        line-height: 26px;
    }
    
    @media screen and (max-width: 768px) {
        .ZSlider > h4 {
            font-size: 18px;
            line-height: 24px;
        }
    }

    .ZSlider > div {
        position: relative;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 30px;
    }

    .ZSlider > span {
        position: absolute;
        color: #A1A1A1;
        margin: 5px;
        bottom: 0;
        pointer-events: none;
    }

    .ZSlider > div > svg {
        position: absolute;
        top: 48%;
    }

    .ZSlider .Pointer {
        position: relative;
        width: 40px;
        cursor: pointer;
        transform: translateX(-20px) translateY(2px);
    }

    .ZSlider .Down {
        transform: translateX(-20px) translateY(2px) scale(1.5);
    }

    .ZSlider #Default {
        position: absolute;
        transform: translateX(-5px) translateY(10px);
    }

    .ZSlider > div > div > span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        color: white;
        font-size: large;
        pointer-events: none;
    }

.ZSwitch {
    display: flex;
    gap: 16px;
    align-items: center;
    user-select: none;
    padding-bottom: 10px;
    cursor: pointer;
}

.ZSwitch > svg {
    flex-shrink: 0;
}

    .ZSwitch > svg > rect {
        transition: all .2s;
    }
    
.ZSwitch__title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 0;
    color: var(--black)
}
    
.ZSelector__title {
    font-size: 16px;
    line-height: 26px;
}

    .ZSelector > :last-child {
        /*max-height: 30vh;*/
        overflow: auto;
    }

.SettingsBorder {
    /*border-bottom: #ffffff3d;*/
    /*border-bottom-style: groove;*/
    /* border-top-style: ridge; */
    /*border-block-width: 2px;*/
}

.SActive > svg > :first-child {
    fill: #EF8206;
}

.SActive > svg > :last-child {
    transform: translateX(24px);
}

.TmTime {
    font-size: x-large;
    color: black;
    padding: 18px;
    user-select: none;
    cursor: pointer;
    text-shadow: 0px 1px 10px #00000073;
    position: relative;
    min-width: 60px;
    margin-bottom: 50px;
    border-bottom: dashed;
    border-width: 1px;
}

    .TmTime:last-child {
        border-bottom: none;
        border-width: 1px;
    }

    .TmTime > div:first-child {
        position: absolute;
        height: 120%;
        border: solid;
        border-width: 1px;
        top: 0px;
        left: 0px;
    }

    .TmTime > span {
        position: absolute;
        left: -10%;
        top: 100%;
        text-align: center;
    }

.TmTimeEn {
    background: #EF8206;
}

.TmTimeDis {
    cursor: not-allowed;
    background: #ff000047;
}

.TmSelectTime {
    font-size: xx-large;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 10px;
}

    .TmSelectTime > div {
        border-color: #ef8206;
        border-style: outset;
        border-width: medium;
        border-radius: 10px;
        box-shadow: 1px 1px 4px 0px black;
    }

        .TmSelectTime > div > span {
            user-select: none;
        }

        .TmSelectTime > div > select {
            border: none;
        }

.TmActiveEdit {
    margin: 15px;
    border: #0030ff29;
    border-style: ridge;
}

.TmHeader {
    display: flex;
    justify-content: space-around;
}

    .TmHeader > :first-child > svg {
        max-width: 60px;
    }

    .TmHeader > div {
        width: 25%;
        text-align: center;
    }

.TmPeriodHeader {
    display: flex;
    justify-content: space-around;
    font-size: large;
    font-size: xx-large;
    user-select: none;
    cursor: pointer;
    padding:5px;
}

    .TmPeriodHeader > div {
        width: 25%;
        text-align: center;
    }

/*size: xx-large;
user-select: none;
cursor: pointer;
}*/
.InfoChart {
    position: relative;
    min-height: 250px;
    margin: 30px;
}

    .InfoChart > :nth-child(1) {
        position: absolute;
        bottom: 0px;
        width: 100%;
        /* left: -20px; */
    }

    .InfoChart > :nth-child(2) {
        height: 100%;
        flex-direction: column;
        display: flex;
        left: -17px;
        position: absolute;
        top: 10px;
    }

    .InfoChart > :nth-child(3) {
        height: 100%;
        width: 100%;
        min-height: 250px;
    }

        .InfoChart > :nth-child(3) > svg {
            height: 300px;
            width: 100%;
            overflow: visible;
            stroke-linecap: round;
        }

    .InfoChart > div > span {
        position: absolute;
        flex: auto;
        transform: translateX(-10px);
    }
/*Scheme*/
.hexagon {
    position: relative;
    width: 200px;
    height: 115.47px;
    background-color: #ffffff;
    margin: 57.74px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

    .hexagon:before,
    .hexagon:after {
        content: "";
        position: absolute;
        z-index: 1;
        width: 141.42px;
        height: 141.42px;
        -webkit-transform: scaleY(0.5774) rotate(-45deg);
        -ms-transform: scaleY(0.5774) rotate(-45deg);
        transform: scaleY(0.5774) rotate(-45deg);
        background-color: inherit;
        left: 29.2893px;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }

    .hexagon:before {
        top: -70.7107px;
    }

    .hexagon:after {
        bottom: -70.7107px;
    }

    /*cover up extra shadows*/
    .hexagon span {
        display: block;
        position: absolute;
        top: 0px;
        left: 0;
        width: 200px;
        height: 115.4701px;
        z-index: 2;
        background: inherit;
    }

.Sensor {
    position: absolute;
    /* align-items: center; */
    text-align: center;
    /* box-shadow: -1px 4px 20px 1px black; */
    opacity: 0.95;
    /* width: 5%!important; */
    min-height: 115px;
}

    .Sensor > svg {
        width: 90%;
        filter: drop-shadow(1px 1px 2px #616161f0);
        fill: white;
    }

        .Sensor > svg > g > path:first-child {
            fill: #fff;
        }

        .Sensor > svg > g > path:last-child {
            fill: #b3b3b3;
        }


    .Sensor > div {
        left: 50%;
        transform: translateX(-50%);
        font-size: revert;
        position: absolute;
    }

        .Sensor > div:first-of-type {
            top: -16%;
            box-shadow: -1px 3px 18px 2px #7b7b7b24;
            background-color: #ffffffa8;
            /* text-shadow: 0 1px 13px #828282, 0 2px 4px #c9c9c9; */
            /* transform: translate(-50%, -10px); */
            /* display: none; */
            color: #525252;
            width: 110%;
            z-index: 1;
            line-height: normal;
        }

        .Sensor > div:last-child {
            top: 50%;
            transform: translate(-50%,-50%);
            /* font-size: 2.4vw; */
            background: #ffffff42;
            border-radius: 20px;
            /* width: 110%; */
            /* opacity: 0.9; */
            /* text-shadow: 0 0 4px #0000005c; */
        }

.WaterSensor {
    fill: #f1f3f6;
    stroke: #1a1a1a;
    stroke-miterlimit: 10;
    stroke-width: 4px;
}


@media (min-width: 1912px) {
    .Sensor > div:last-child {
        font-size: 44px;
    }

    .Sensor > div {
        font-size: 18px;
    }
}

.ZNotifications {
    position: absolute;
    left: 2%;
    bottom: 2%;
    z-index: 10;
    flex-direction: column;
    opacity: 0.8;
    color: white;
    pointer-events: none;
}

    .ZNotifications > div {
        /* border-radius: 30px; */
        text-shadow: 0px 1px 10px #00000073;
    }

        .ZNotifications > div > div {
        }

.BoilerChart {
    min-height: 500px;
    width: 100%;
    flex-shrink: 1;
    height: auto;
    position: relative;
    padding: 0;
    overflow: clip;
}

.BoilerChart > div > svg {
    width: 100%;
    height: 100%;
}

.BoilerChart > div > span {
    font-size: medium;
    transform: translateX(-50%);
    position: absolute;
    max-width: 74px;
    text-align: center;
}

.BoilerChart > div {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    overflow: visible;
}

.BoilerChart__head {
    display: block !important;
    margin-bottom: 50px;
}

.BoilerChart__count {
    max-width: 80px;
}

.BoilerChart__title {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 16px;
    margin-bottom: 24px;
}

.BoilerChart > svg > g {
    width: 100%;
    height: 522px;
}

#TempDiv, #TempX {
    width: calc(100% - 100px);
    margin: 0 auto;
}

#TempSvg {
    min-height: 65vh;
    overflow: visible;
}

@media(max-width: 960px) {
    #TempSvg {
        min-height: 50vh;
    }
}

#TempSvg > #Temp {
    pointer-events: none;
}

#TempX {
    transform: translateY(10px);
    margin-bottom: 80px;
    pointer-events: auto;
}

#TempY {
    position: absolute;
    height: 100%;
    display: flex;
    width: 100%;
    pointer-events: none;
}

    #TempY > span {
        position: absolute;
        left: -20px;
        transform: translate(-50%, -50%);
    }

#PowerSvg {
    min-height: 250px;
}

#PowerX {
    transform: translateY(10px);
    height: auto;
    margin-bottom: 80px;
}

#PowerY {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    pointer-events: none;
}

    #PowerY > span {
        position: absolute;
        left: -20px;
        transform: translate(-50%, 50%);
    }

.ChartName {
    font-size: xx-large !important;
    max-width: none !important;
    margin-bottom: 24px;
}

#Checks {
    flex-wrap: wrap;
}

@media  screen and (max-width: 680px) {
    #Checks {
        flex-direction: column;
    }
}

#DateBlock {
    height: fit-content;
    /* padding-bottom: 40px; */
}

#DateBlock {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

    #DateBlock > div {
        display: flex;
        flex-flow: column;
        flex-wrap: wrap;
        /* width: 100%; */
    }

        #DateBlock > div > label {
            margin: 0px;
            pointer-events: none;
            cursor: none;
            /*font-size: x-large;
            text-align: center;*/
        }

        #DateBlock > div > div {
            flex-wrap: wrap;
            display: flex;
            flex-flow: row;
        }

            #DateBlock > div > div > svg {
                cursor: pointer;
            }

footer, .Footer {
    z-index: 100;
    background-color: #ffffffd6;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    opacity: 0.9;
}

.Footer {
    margin: 16px auto;
}

@media screen and (max-width: 1200px) {
    footer, .Footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.Footer__left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
}

@media screen and (max-width: 768px) {
    .Footer__left {
        flex-direction: column;
        align-items: stretch;
    }
    .Footer__right {
        flex-direction: column;
    }
}

.Footer__right {
    display: flex;
    gap: 8px 16px;
    align-items: baseline;
}

.Footer__manufacturer {
    margin-left: auto;
}

.Footer p {
    margin-bottom: 0;
}

.Footer button {
    padding: 0;
}

.Footer__copyright {
    padding-left: 5px;
    white-space: nowrap;
}

.Footer__old-site {
    padding: 0px;
    padding-right: 10px;
    white-space: nowrap;
}

.AddButton {
    margin-bottom: 40px;
}

@media (max-width: 960px) {
    .AddButton {
        margin-bottom: 0px;
    }
}

.MobileMenu {
    max-width: 600px;
    width: 100%;
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: space-around; */
    /* background: ghostwhite; */
}

    .MobileMenu > div {
        margin: 1.5rem 0 !important;
    }

/*    .MobileMenu input {
        margin-left: 10px;
    }*/

/*.MobileMenu .ZSwitch {
        display: flex;
        margin-bottom: auto;
        margin-right: 10px;
    }

        .MobileMenu .ZSwitch > h3 {
            margin-right: 10px;*/
/* margin-bottom: 0; */
/*}*/

.ZCircle {
    width: 30px;
    height: 30px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    text-align: center;
    margin: auto;
}

.RTSPCamera {
}

    .RTSPCamera > div > iframe {
        width: 100%;
        height: 300px;
    }
    
.RTSPCamera__buttons {
    gap: 16px;
}

@media (max-width: 768px) {

    .RTSPCamera > div > iframe {
        width: auto;
        height: auto;
    }
}

.Firmwares {
    width: 100%;
    max-width: 800px;
}

.form-add-camera {
    max-width: 600px;
    padding: 0;
}

.CascadeEditBoiler {
    cursor: pointer;
}

    .CascadeEditBoiler:hover {
        background: #EF8206;
    }
@media screen and (max-width: 768px){
    .zota-logo {
        width: 100%;
        height: auto;
    }
}

.circle-top-right {
    width: 16px; /* ширина круга */
    height: 16px; /* высота круга */
    background-color: #ff00009e; /* цвет фона круга */
    border-radius: 50%; /* закругляем углы, делая фигуру круглой */
    position: absolute; /* позиция внутри ячейки */
    top: 0; /* вверху */
    right: 0; /* справа */
}