@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'foundry_monoline_ot3bold_';
    src: url('Fonts/FoundryMonolineOT3-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'foundry_monoline_ot3light_';
    src: url('Fonts/FoundryMonolineOT3-Light.otf') format('opentype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'foundry_monoline_ot3medium_';
    src: url('Fonts/FoundryMonolineOT3-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    color: var(--black);
    width: -webkit-fill-available;
    height: 100%;
    font-size: 20px;
    line-height: 26px;
    font-family: foundry_monoline_ot3medium_;
    font-weight: normal;
}

app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.validation-message,
.validation-summary-errors {
    font-size: 16px !important;
    line-height: 20px;
    font-weight: 700;
    color: var(--red);
    padding: 0 !important;
    margin: 16px 0 !important;
}

.main {
    display: flex;
    flex-flow: column;
    min-height: 100vh;
    width: 100%;
    transition: filter .1s;
    overflow-x: hidden;
}

.inner-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

    .inner-container:not(.service) {
        max-width: none;
    }

.caption {
    font-size: 16px;
    line-height: 20px;
}

.row > * {
    padding: 0;
}

@media screen and (max-width: 768px) {
    .inner-container {
        padding: 0 16px;
    }
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--black);
}

.form-check-input:checked {
    background-color: #FF7A1B;
    border-color: #FF7A1B;
}

@media screen and (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 0.35em;
    }

    ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 6px rgb(0 0 0 / 21%);
    }

    ::-webkit-scrollbar-thumb {
        background-color: #a9a9a978;
        outline: 1px solid #7080907d;
    }
}

#blazor-error-ui {
    background: #ffff86;
    bottom: 36px;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.ZFilter {
    filter: blur(2px);
}

.Body {
    display: flex;
    flex-flow: column;
    flex-grow: 1;
}

.zota-route-skeleton {
    --zota-skeleton-base: #e5e9ef;
    --zota-skeleton-highlight: #f5f7fa;
    display: grid;
    align-content: start;
    gap: 16px;
    width: 100%;
    padding: 24px 0;
}

.zota-route-skeleton__heading,
.zota-route-skeleton__toolbar,
.zota-route-skeleton__grid > div {
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--zota-skeleton-base) 25%,
        var(--zota-skeleton-highlight) 50%,
        var(--zota-skeleton-base) 75%);
    background-size: 200% 100%;
    animation: zota-skeleton-pulse 1.2s ease-in-out infinite;
}

.zota-route-skeleton__heading {
    width: min(360px, 55%);
    height: 38px;
}

.zota-route-skeleton__toolbar {
    width: 100%;
    height: 48px;
}

.zota-route-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.zota-route-skeleton__grid > div {
    min-height: 180px;
}

@keyframes zota-skeleton-pulse {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

@media (max-width: 768px) {
    .zota-route-skeleton__grid {
        grid-template-columns: 1fr;
    }

    .zota-route-skeleton__grid > div {
        min-height: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zota-route-skeleton__heading,
    .zota-route-skeleton__toolbar,
    .zota-route-skeleton__grid > div {
        animation: none;
    }
}

.form-control::-webkit-input-placeholder {
    color: rgba(139, 143, 161, 0.45);
}

.ZOrange {
    color: #EF8206;
}

.ZBlue {
    fill: #007eb3;
    color: #004887;
}

.ZGray {
    fill: #007eb3;
    color: var(--gray);
}

.ZBlack {
    color: var(--black);
}

.User-Menu {
    border-bottom: solid;
    border-color: #00000021;
    border-width: thin;
    padding: 8px 0;
    font-size: 20px;
    line-height: 26px;
}

.User-Menu__description {
    display: flex;
    justify-content: space-evenly;
    flex-flow: row;
    flex-wrap: wrap;
    flex: 1 1 auto;
    gap: 0 16px;
}

@media screen and (max-width: 768px) {
    .User-Menu__description {
        flex-direction: column;
        align-items: flex-start;
    }
}

.table-wrapper {
    overflow-x: auto;
}

.User-Menu h1 {
    color: var(--black);
}

.User-Menu__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
}

@media screen and (max-width: 768px) {
    .User-Menu__container {
        flex-direction: column;
        gap: 8px;
    }
}

.User-Menu__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex: auto;
}

.User-Menu__right {
    gap: 8px;
}

.User-Menu__info {
    color: var(--gray);
}

    .User-Menu__info h6 {
        margin-bottom: 0;
    }

.User-Menu__image-wrapper {
    flex-shrink: 0;
    border-radius: 20px;
    max-width: 220px;
    position: relative;
}

    .User-Menu__image-wrapper svg {
        width: 100%;
        height: auto;
    }

@media screen and (max-width: 768px) {
    .User-Menu__image-wrapper {
        max-width: 100px;
    }
}

.User-Menu h3 {
    margin: 0;
}

.User-Menu__settings {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--black);
    max-width: 300px;
}

    .User-Menu__settings svg {
        flex-shrink: 0;
    }

    .User-Menu__settings span {
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

#ListBtnText {
    height: 100%;
    width: 100%;
    position: absolute;
    text-align: center;
    font-size: 28px;
    background: rgb(0 72 135 / 90%);
    padding: 1px;
    padding-top: 12px;
    top: 0;
    border-radius: 50px;
    text-shadow: 0 0 1px #00000057;
}

.nav {
    gap: 8px 16px;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
    }
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.login-container {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 40px;
    width: 100%;
    align-content: center;
}

.login-title {
    align-self: center;
    margin-bottom: 30px;
    /* width: 70%; */
}

.login-subtitle {
    align-self: center;
    padding-bottom: 114px;
}

.login-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-signin {
    width: 100%;
    margin: auto;
    /* height: 100%; */
    /* border: aqua; */
    /* border-color: aliceblue; */
    /* border-style: dashed; */
}

    .form-signin > h2 {
        margin-bottom: 24px;
        color: var(--black);
    }

    .form-signin > label {
        padding-left: 10px;
        padding-top: 20px;
    }

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control {
        position: relative;
        box-sizing: border-box;
        height: auto;
        padding: 0;
        /* flex-wrap: wrap; */
    }

        .form-signin .form-control:focus {
            z-index: 2;
        }

    .form-signin input {
        margin-bottom: 5px;
        border: 3px;
        border-bottom: #331c013b;
        border-bottom-style: solid;
        border-bottom-width: 2px;
    }

        .form-signin input:focus {
            border-bottom: #28C168;
            border-bottom-style: solid;
            border-bottom-width: 2px;
        }

#PassEye {
    top: 0;
    right: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
}

.MobFooter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .MobFooter {
        gap: 16px;
    }
}

.Split {
    height: 100%;
    width: 50%;
    position: fixed;
    top: 0;
    margin-bottom: 30px;
}

.DeleteButton {
    stroke: #ff000075;
    transition: all 1s;
    display: inline-block;
    /* height: 26px; */
    width: 34px;
}

    .DeleteButton:hover {
        transform: scale(1.5);
    }

.EditButton {
    transition: all 1s;
    height: 30px;
    /* position: absolute; */
    /* top: -5px; */
}

    .EditButton:hover {
        transform: scale(1.5);
    }

.Scheme {
    position: relative;
}

    .Scheme > img:first-of-type {
        position: static;
        left: 0;
        top: 0;
        height: 100%;
        visibility: hidden;
    }

    .Scheme > img {
        position: absolute;
        left: 0;
        top: 0;
        pointer-events: none;
        height: 100%;
    }

    .Scheme > h4 {
        position: absolute;
        left: 2.4%;
        max-width: 8%;
    }

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }
}

.BoilersTable {
}

/*Переименовать на другой класс и добавить его к основному*/
@media (max-width: 1500px) {
    .BoilersTable tr > :nth-child(6) {
        display: none;
    }
}

@media (max-width: 1350px) {
    .BoilersTable tr > :nth-child(11) {
        display: none;
    }
}

.table > :not(:first-child) {
    border-top: 1px solid currentColor;
}

.tab-table__head {
    width: 100%;
    gap: 8px 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-table__wrapper {
    width: 100%;
    max-height: 80vh;
    overflow: auto;
}

@media (max-width: 1200px) {
    .Split {
        position: initial;
        width: 100%;
        height: auto;
    }

    /*    .form-signin > :first-child {
        display: none;
    }*/

    .BoilerList tr > :nth-child(10) {
        display: none;
    }
}

.BoilerList {
    transition: width 2s, height 2s;
}

    .BoilerList > thead > tr > th {
        color: var(--black);
        font-size: 20px;
        vertical-align: baseline;
        /* min-width: 84px; */
        /* max-width: 94px; */
        /* max-height: 94px; */
        transition: width 5s, height 5s;
    }

        .BoilerList > thead > tr > th > span {
            white-space: nowrap;
        }

    .BoilerList > tr:nth-child(4) > td:nth-child(3) > p {
        position: absolute;
        background: #ffffffd4;
        left: 50%;
        transform: translateX(-50%);
        border: #d4d4d4;
        border-style: solid;
        border-radius: 10px;
    }

@media (max-width: 1100px) {
    .BoilerList tr > :nth-child(9) {
        display: none;
    }
}

@media (max-width: 1000px) {
    .BoilerList tr > :nth-child(8) {
        display: none;
    }
}

@media (max-width: 900px) {
    .BoilerList tr > :nth-child(2) {
        display: none;
    }
}

@media (max-width: 850px) {
    .BoilerList tr > :nth-child(7) {
        display: none;
    }

    .BoilerList tr > :nth-child(1) {
        display: none;
    }

    .BoilerList > thead > tr > th {
        font-size: 14px;
        padding: 0.1rem;
    }
}

.BoilerList > tbody > tr > td {
    padding-bottom: 0.4rem;
    padding-top: 0.5rem;
    transition: width 5s, height 5s;
}

.BoilerList > tbody > tr > :nth-child(3) {
    /* justify-content: space-between; */
    /* display: flex; */
    align-items: center;
    /* padding: 3px; */
    flex-wrap: wrap;
    /* min-height: 78px; */
    /* min-width: 228px; */
    /* width: 187px; */
}

.BoilerList > tbody > tr > td > p {
    /* transform: translateY(50%); */
    /* top: 0.25rem; */
    /* position: absolute; */
    /* overflow-wrap: anywhere; */
    margin-bottom: 0;
}

.BoilerList > tbody > tr > :nth-child(3) > img {
    transform: scale(1) translateX(0%);
    transition: all 1s;
}

.BoilerList > tbody > tr:hover > :nth-child(3) > img {
    transform: scale(2.6) translateX(0%);
    z-index: 2;
    box-shadow: 0px 0px 20px 20px #ffffff8c;
    background: #ffffff8c;
    transition: all 1s;
}

.BoilerList > tbody > tr > :nth-child(3) > span {
    /* top: 0px; */
    position: absolute;
    right: 0;
    font-weight: 100;
    bottom: 0;
}

.BoilerList > tbody > tr > :nth-child(4) { /* margin: auto; */
}

.BoilerList > tbody > tr:hover {
    box-shadow: inset 0px 0px 4px 4px #ff8800c2;
}

.BoilerList > tbody > tr > td:nth-child(13) {
    padding: 0.2rem;
}

.BoilerImage {
    max-height: 86px;
}

input:-ms-input-placeholder {
    color: #9B9B9B;
    opacity: 0.5;
}

.Errors-title {
}

.login {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 24px;
    margin-bottom: auto;
}

.login__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: auto;
}

@media screen and (max-width: 991px) {
    .login__wrapper {
        grid-template-columns: 1fr;
    }
}

.login__logo {
    margin-top: 32px;
}

@media screen and (max-width: 768px) {
    .login__logo {
        max-width: 100px;
        margin-top: 16px;
    }
}

.boiler-cameras {
    margin: 16px 0;
}

.boiler-cameras__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-gap: 16px;
}

@media screen and (max-width: 768px) {
    .boiler-cameras__wrapper {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.boiler-cameras__add {
    max-width: 600px;
}

.boiler-cameras__toolbar,
.boiler-cameras__available {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.boiler-cameras__available h2 {
    flex-basis: 100%;
}

.boiler-cameras__editor {
    display: grid;
    max-width: 720px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.boiler-cameras__editor > div,
.boiler-cameras__editor .validation-summary-errors {
    grid-column: 1 / -1;
}

.boiler-cameras__wrapper article {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

@media screen and (max-width: 768px) {
    .boiler-cameras__editor {
        grid-template-columns: 1fr;
    }
}

/* Administration workspace ------------------------------------------------ */
.zota-admin-workspace {
    --admin-ink: #172033;
    --admin-muted: #697386;
    --admin-line: #e6e9ef;
    --admin-surface: #f6f7f9;
    --admin-accent: #ef8206;
    --admin-sidebar-width: 248px;
    --admin-sidebar-surface: #fff;
    display: grid;
    flex: 1 0 auto;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    min-height: calc(100dvh - 150px);
    margin: 0 -20px;
    background:
        linear-gradient(to right,
            var(--admin-sidebar-surface) 0,
            var(--admin-sidebar-surface) calc(var(--admin-sidebar-width) - 1px),
            var(--admin-line) calc(var(--admin-sidebar-width) - 1px),
            var(--admin-line) var(--admin-sidebar-width),
            var(--admin-surface) var(--admin-sidebar-width));
    color: var(--admin-ink);
}

.zota-admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100dvh - 88px);
    padding: 22px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--admin-line);
    background: #fff;
}

.zota-admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 6px 28px;
    color: var(--admin-ink);
    text-decoration: none;
}

.zota-admin-brand:hover {
    color: var(--admin-ink);
}

.zota-admin-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #ff9d32, #e36e00);
    box-shadow: 0 8px 20px rgb(239 130 6 / 20%);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.zota-admin-brand strong,
.zota-admin-brand small {
    display: block;
}

.zota-admin-brand strong {
    font-size: 17px;
    line-height: 21px;
}

.zota-admin-brand small {
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 17px;
}

.zota-admin-navigation {
    display: grid;
    gap: 10px;
}

.zota-admin-nav-group {
    margin-top: 10px;
}

.zota-admin-nav-group h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 5px;
    color: #9aa1af;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 18px;
    text-transform: uppercase;
}

.zota-admin-nav-group h2 i {
    font-size: 13px;
}

.zota-admin-nav-items {
    display: grid;
    gap: 2px;
}

.zota-admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #4a5568;
    font-size: 15px;
    line-height: 20px;
    text-decoration: none;
}

.zota-admin-nav-link:hover {
    background: #f5f6f8;
    color: var(--admin-ink);
}

.zota-admin-nav-link.active {
    background: #fff3e6;
    color: #bd6000;
    font-weight: 700;
}

.zota-admin-content {
    min-width: 0;
    padding: 30px clamp(18px, 3vw, 48px) 48px;
}

.zota-admin-content > h1,
.zota-admin-page-header h1 {
    margin: 0;
    color: var(--admin-ink);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
}

.zota-admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.zota-admin-page-header p {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 16px;
}

.zota-admin-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.zota-admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.zota-admin-metric {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgb(26 32 44 / 4%);
}

.zota-admin-metric > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--admin-muted);
    font-size: 14px;
}

.zota-admin-metric > strong {
    display: block;
    margin-top: 10px;
    color: var(--admin-ink);
    font-size: 32px;
    line-height: 1;
}

.zota-admin-metric small {
    display: block;
    margin-top: 8px;
    color: var(--admin-muted);
    font-size: 13px;
}

.zota-admin-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zota-admin-section-card {
    display: flex;
    min-height: 148px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: #fff;
    color: var(--admin-ink);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.zota-admin-section-card:hover {
    border-color: rgb(239 130 6 / 50%);
    box-shadow: 0 12px 30px rgb(23 32 51 / 8%);
    color: var(--admin-ink);
    transform: translateY(-2px);
}

.zota-admin-section-card > i {
    color: var(--admin-accent);
    font-size: 24px;
}

.zota-admin-section-card h2 {
    margin: 12px 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.zota-admin-section-card p {
    margin: 0 0 14px;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 20px;
}

.zota-admin-section-card small {
    margin-top: auto;
    color: #bd6000;
    font-weight: 700;
}

.zota-admin-content .table-responsive,
.zota-admin-content .zota-service-table-shell,
.zota-admin-content .card,
.zota-admin-content pre.bg-body-tertiary {
    border-color: var(--admin-line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: 0 3px 14px rgb(26 32 44 / 4%);
}

.zota-admin-content .table {
    font-size: 16px;
}

.zota-admin-content .table > thead > tr > th {
    padding: 12px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.zota-admin-content .table > tbody > tr > td {
    padding: 12px;
}

.zota-admin-content .form-control,
.zota-admin-content .form-select,
.zota-admin-content .btn {
    border-radius: 9px;
    font-size: 15px;
}

.zota-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.zota-user-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: -4px 0 14px;
    padding: 0;
    border: 0;
}

.zota-user-filters legend {
    width: auto;
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 650;
}

.zota-user-role-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zota-user-role-filters label {
    cursor: pointer;
}

.zota-user-role-filters input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zota-user-role-filters span {
    display: block;
    padding: 5px 10px;
    border: 1px solid #d8dde5;
    border-radius: 999px;
    background: #fff;
    color: #697386;
    font-size: 13px;
}

.zota-user-role-filters input:checked + span {
    border-color: #1769ff;
    background: #edf4ff;
    color: #0d5bdd;
}

.zota-user-role-filters input:focus-visible + span {
    outline: 2px solid #1769ff;
    outline-offset: 2px;
}

.zota-service-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    color: #697386;
    font-size: 14px;
}

.zota-presence-tabs > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: #1769ff;
}

.zota-presence-tabs ul {
    display: grid;
    gap: 6px;
    min-width: 300px;
    margin: 9px 0 0;
    padding: 10px;
    border: 1px solid #e1e5ea;
    border-radius: 9px;
    background: #f8fafc;
    list-style: none;
}

.zota-presence-tabs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

.zota-presence-tabs a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-presence-tabs time {
    color: #8a929e;
    font-size: 12px;
    white-space: nowrap;
}

.zota-search-field {
    position: relative;
    display: flex;
    min-height: 44px;
    align-items: center;
    width: min(100%, 520px);
    border: 1px solid #d5dae2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(23 32 51 / 5%);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.zota-search-field:hover {
    border-color: #aeb6c3;
}

.zota-search-field:focus-within {
    border-color: var(--admin-accent, #ef8206);
    box-shadow: 0 0 0 3px rgb(239 130 6 / 14%);
}

.zota-search-field > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: #7d8796;
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.zota-search-field > input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 42px 0 42px;
    border: 0;
    outline: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--admin-ink, #172033);
    font: inherit;
    line-height: 42px;
}

.zota-search-field > input::placeholder {
    color: #8b94a3;
    opacity: 1;
}

.zota-search-field > input::-webkit-search-cancel-button {
    display: none;
}

.zota-search-field > button {
    position: absolute;
    right: 7px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7d8796;
}

.zota-search-field > button:hover,
.zota-search-field > button:focus-visible {
    background: #f0f2f5;
    color: #172033;
}

.zota-search-field-grow {
    width: min(100%, 560px);
    flex: 1 1 24rem;
}

.zota-active-boiler-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.zota-active-boiler-filter {
    display: grid;
    min-width: 210px;
    gap: 4px;
    color: var(--admin-muted);
    font-size: 13px;
}

.zota-active-boiler-filter .form-select {
    min-height: 44px;
    border-color: #d5dae2;
    border-radius: 10px;
    font-size: 15px;
}

.zota-active-boiler-table {
    max-height: calc(100dvh - 300px);
    overflow: auto;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
}

.zota-active-boiler-table thead {
    position: sticky;
    z-index: 2;
    top: 0;
    background: rgb(255 255 255 / 96%);
}

@media (max-width: 760px) {
    .zota-active-boiler-filter,
    .zota-active-boiler-filters .zota-search-field {
        width: 100%;
    }

    .zota-active-boiler-table {
        max-height: none;
    }
}

.zota-search-field-compact {
    min-width: 170px;
    min-height: 36px;
    border-radius: 8px;
    box-shadow: none;
}

.zota-search-field-compact > input {
    height: 34px;
    padding-left: 36px;
    line-height: 34px;
}

.zota-search-field-compact > i {
    left: 11px;
}

.zota-admin-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zota-admin-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: #fafbfc;
    font-size: 13px;
    white-space: nowrap;
}

.zota-admin-role-chip .form-check-input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.zota-admin-template-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.zota-admin-template-list button {
    padding: 6px 11px;
    border: 1px solid #f2c48f;
    border-radius: 999px;
    background: #fff8ef;
    color: #a65300;
    font-size: 13px;
}

.zota-admin-template-list button:hover,
.zota-admin-template-list button:focus-visible {
    border-color: var(--admin-accent);
    background: #fff3e6;
}

.zota-admin-preview {
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 14px rgb(26 32 44 / 4%);
}

@media screen and (max-width: 1180px) {
    .zota-admin-workspace {
        --admin-sidebar-width: 210px;
    }

    .zota-admin-metric-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .zota-admin-workspace {
        display: block;
        margin: 0 -16px;
        background: var(--admin-surface);
    }

    .zota-admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px 16px 10px;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .zota-admin-brand {
        margin: 0 0 12px;
    }

    .zota-admin-navigation {
        display: flex;
        gap: 6px;
        padding-bottom: 5px;
        overflow-x: auto;
    }

    .zota-admin-nav-group {
        display: contents;
    }

    .zota-admin-nav-group h2 {
        display: none;
    }

    .zota-admin-nav-items {
        display: contents;
    }

    .zota-admin-nav-link {
        min-height: 36px;
        flex: 0 0 auto;
        padding: 7px 11px;
        border: 1px solid var(--admin-line);
        white-space: nowrap;
    }

    .zota-admin-content {
        padding: 22px 16px 36px;
    }

    .zota-admin-page-header {
        display: block;
    }

    .zota-admin-metric-grid,
    .zota-admin-section-grid {
        grid-template-columns: 1fr;
    }
}

.edit-boiler__desc-list {
    margin-bottom: 16px;
}

/* Presentation новой архитектуры сохраняет привычную оболочку Control ZOTA. */
.zota-back-link {
    display: flex;
    width: 42px;
    height: 54px;
    align-items: center;
    justify-content: center;
}

.zota-page-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: auto;
    text-align: center;
}

.zota-header-status {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: none;
}

.zota-main-menu {
    position: relative;
    flex: none;
}

.zota-main-menu > summary {
    display: block;
    list-style: none;
    padding: 8px 0 8px 12px;
}

.zota-main-menu > summary::-webkit-details-marker {
    display: none;
}

.zota-main-menu__content {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    padding: 12px;
    background: #fff;
    border: 1px solid #dfe2e7;
    box-shadow: 0 8px 30px rgb(32 33 36 / 20%);
}

.zota-main-menu__content form {
    margin: 0;
}

.BackMenuBtn.zota-panel-backdrop {
    display: block;
    inset: 0;
    z-index: 2000;
    width: 100vw;
    height: 100dvh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility 0s linear .35s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.BackMenuBtn.zota-panel-backdrop.MenuBtnActive {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.Menu.zota-settings-panel,
.Menu.zota-main-settings-panel,
.Menu.zota-edit-panel,
.Menu.zota-add-panel,
.Menu.zota-profile-panel,
.Menu.zota-alerts-panel {
    z-index: 2001;
    height: 100dvh;
}

body:has(.Menu.zota-settings-panel.MenuActive),
body:has(.Menu.zota-main-settings-panel.MenuActive),
body:has(.Menu.zota-edit-panel.MenuActive),
body:has(.Menu.zota-add-panel.MenuActive),
body:has(.Menu.zota-profile-panel.MenuActive),
body:has(.Menu.zota-alerts-panel.MenuActive) {
    overflow: hidden;
}

.zota-add-panel {
    max-width: 100%;
}

.zota-history-upload-control {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.zota-history-upload-control .zota-setting-switch-row {
    flex: 0 1 auto;
    width: auto;
    padding: 0;
}

button.zota-help-button {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #fff;
    background: #ef8206;
    border: 1px solid #ef8206;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

button.zota-help-button:hover,
button.zota-help-button:focus-visible {
    color: #fff;
    background: #ff7a1b;
    box-shadow: 0 0 0 3px rgb(239 130 6 / 20%);
}

.zota-history-upload-hint {
    margin: 6px 0 16px;
}

.zota-panel-info-sheet {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 100%;
    display: flex;
    flex-direction: column;
    width: min(600px, calc(100vw - 635px));
    min-width: 480px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 18px rgb(32 33 36 / 18%);
    animation: zota-panel-info-sheet-in .24s ease-out;
}

.zota-panel-info-sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
}

.zota-panel-info-sheet-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 20px 28px;
    overflow-y: auto;
}

.zota-panel-info-sheet-content h2 {
    margin: 0 0 20px;
    font-size: 34px;
}

@keyframes zota-panel-info-sheet-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zota-qr-scanner {
    display: grid;
    gap: 10px;
}

.zota-qr-video-frame {
    position: relative;
    display: grid;
    min-height: 260px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    place-items: center;
}

.zota-qr-video {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.zota-qr-status {
    position: absolute;
    max-width: 420px;
    margin: 0;
    padding: 16px;
    color: var(--gray);
    text-align: center;
}

.zota-qr-result {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
}

.zota-qr-result p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 6px;
}

.zota-qr-result p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 1120px) {
    .zota-panel-info-sheet {
        right: 0;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }
}

.zota-edit-boiler-summary {
    margin-bottom: 22px;
}

.zota-edit-boiler-summary p {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 0 4px;
}

.zota-edit-boiler-summary span {
    flex: 0 0 120px;
    color: var(--gray);
}

.zota-edit-boiler-summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.zota-edit-boiler-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zota-edit-boiler-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--gray);
}

.zota-line-control {
    width: 100%;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--gray);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--black);
    font: inherit;
}

.zota-line-control:focus {
    border-bottom-color: #ef8206;
}

.zota-edit-boiler-save,
.zota-delete-boiler-submit {
    width: 100%;
    margin: 8px 0 0;
}

.zota-edit-boiler-access-code small {
    margin-top: 4px;
    line-height: 20px;
}

.zota-validated-control {
    position: relative;
    min-width: 0;
}

.zota-access-code-control .zota-line-control {
    padding-right: 38px;
}

.zota-access-code-reset {
    position: absolute;
    top: 50%;
    right: 2px;
    display: grid;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #77808e;
    cursor: pointer;
    transform: translateY(-50%);
}

.zota-access-code-reset:hover,
.zota-access-code-reset:focus-visible {
    outline: 0;
    background: rgb(239 130 6 / 12%);
    color: #d66f00;
}

.zota-access-code-reset:focus-visible {
    box-shadow: 0 0 0 2px rgb(239 130 6 / 28%);
}

.zota-edit-boiler-form .zota-line-control.valid.modified {
    outline: 0;
}

.zota-edit-boiler-form .zota-line-control.invalid {
    border-bottom-color: #dc3545;
    outline: 0;
    background: rgb(220 53 69 / 7%);
    box-shadow: 0 1px 0 #dc3545;
}

.zota-field-validation-tooltip {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 8px;
    display: none;
    width: max-content;
    max-width: min(360px, calc(100vw - 64px));
    border-radius: 7px;
    background: #c92d3b;
    box-shadow: 0 8px 24px rgb(92 19 27 / 24%);
}

.zota-field-validation-tooltip:not(:empty) {
    display: block;
}

.zota-field-validation-tooltip::before {
    position: absolute;
    top: -5px;
    left: 14px;
    width: 10px;
    height: 10px;
    background: inherit;
    content: "";
    transform: rotate(45deg);
}

.zota-field-validation-tooltip .validation-message {
    position: relative;
    margin: 0 !important;
    padding: 7px 10px !important;
    color: #fff;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 18px;
}

.zota-panel-result {
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 6px solid var(--gray);
}

.zota-panel-result.success {
    border-left-color: #28c168;
}

.zota-panel-result.error {
    border-left-color: var(--red);
}

.zota-delete-boiler-question {
    margin: 0 0 24px;
    font-size: 22px;
    line-height: 30px;
}

.zota-panel-content {
    overflow-y: auto;
    padding: 14px;
}

.zota-panel-close {
    color: #ef8206;
    font-size: 54px;
    font-weight: 100;
    line-height: 40px;
}

.zota-inline-panel {
    width: min(635px, 100%);
    margin: 24px auto;
    padding: 16px;
    border: 1px solid #dfe2e7;
}

.zota-inline-panel > h1 {
    margin: 0 14px 24px;
}

.zota-boiler-row {
    cursor: pointer;
}

.zota-online {
    background: #75b63d;
}

.zota-offline {
    background: #ec3d4f;
}

.BoilerList .ZCircle,
.zota-service-boiler-table .ZCircle {
    display: block;
}

.zota-filter-checkbox {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #0065b3;
    vertical-align: middle;
}

.zota-filter-checkbox.active::after {
    content: "";
    display: block;
    width: 14px;
    height: 8px;
    margin: 5px 4px;
    border-left: 2px solid #ef8206;
    border-bottom: 2px solid #ef8206;
    transform: rotate(-45deg);
}

.zota-row-actions {
    width: 46px;
    min-width: 46px;
    white-space: nowrap;
}

.zota-row-action-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.zota-edit-icon,
.zota-delete-icon {
    font-size: 28px;
    line-height: 30px;
}

.zota-edit-icon {
    color: #7d8796;
}

.zota-delete-icon {
    color: #e63948;
}

.zota-boiler-notifications {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 98px;
    color: #ef8206;
}

.zota-notification-icon {
    position: relative;
    display: inline-flex;
    opacity: .72;
    color: inherit;
}

.zota-notification-icon:hover,
.zota-notification-icon:focus-visible {
    opacity: 1;
}

.zota-notification-count {
    position: absolute;
    right: -5px;
    bottom: -2px;
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    place-items: center;
    border-radius: 10px;
    background: #0067a8;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.BoilerList > tbody > tr > td {
    padding-top: .72rem;
    padding-bottom: .72rem;
    font-size: 18px;
    line-height: 24px;
    vertical-align: middle;
}

.BoilerList > thead > tr > th,
.BoilerList > thead .form-control {
    font-size: 19px;
}

.zota-boiler-tabs {
    display: flex;
    width: 100%;
    gap: 24px 64px;
    overflow-x: auto;
    margin: 8px 0 12px;
    border-bottom: 1px solid var(--black);
    white-space: nowrap;
}

.zota-boiler-tabs a,
.zota-boiler-tabs button {
    padding: 8px 0 10px;
    color: var(--black);
    font-size: 30px;
    line-height: 38px;
    text-decoration: none;
}

.zota-boiler-tabs .active {
    border-bottom: 3px solid #ef8206;
}

.zota-boiler-tabs button {
    border: 0;
    background: transparent;
}

.zota-boiler-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 0;
}

.zota-live-cards {
    align-items: stretch;
}

.zota-live-cards .BigCard {
    width: calc(16.666% - 10px);
    min-width: 280px;
    flex-grow: 0;
}

.zota-live-cards .BigCard h3 {
    margin: 0;
}

.zota-live-card .BigCard__head {
    min-height: 58px;
    align-items: flex-start;
}

.zota-live-card {
    cursor: default;
}

.zota-live-card .BigCard__head h3 {
    margin: 0 34px 0 10px;
    font-size: 20px;
    line-height: 26px;
}

.zota-card-icon {
    width: 56px;
    height: 56px;
    flex: none;
    object-fit: contain;
}

.zota-legacy-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zota-legacy-card-icon > .ZImage,
.zota-legacy-card-icon > .ZImage > svg {
    max-width: 56px;
    max-height: 56px;
}

.zota-card-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef8206;
    font-size: 42px;
}

.zota-semantic-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zota-semantic-card-icon svg {
    width: 52px;
    height: 52px;
    overflow: visible;
    fill: none;
    stroke: #004887;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zota-semantic-card-icon svg .orange {
    stroke: #ef8206;
}

.zota-semantic-card-icon svg .orange-fill {
    fill: #ef8206;
    stroke: #ef8206;
}

.zota-semantic-card-icon svg text {
    fill: #ef8206;
    stroke: none;
    font-size: 8px;
    text-anchor: middle;
}

.zota-card-settings {
    position: absolute;
    top: -2px;
    right: -30px;
    color: #d8dce2;
    font-size: 28px;
    line-height: 1;
}

.zota-card-settings:hover,
.zota-card-settings:focus-visible {
    color: #ef8206;
}

.zota-tab-panel {
    min-height: 180px;
}

.zota-tab-empty,
.zota-live-loading {
    margin: 28px 0;
}

.zota-live-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.zota-live-cards .BigCard table {
    width: 100%;
    table-layout: fixed;
    font-size: 16px;
    line-height: 20px;
}

.zota-live-card .zota-indication-label,
.zota-live-card .zota-indication-value {
    min-width: 0;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

.zota-live-card .zota-indication-label {
    width: 54%;
    padding-right: 8px !important;
}

.zota-live-card .zota-indication-value {
    width: 46%;
    white-space: normal;
}

.zota-indication-value {
    font-weight: 600;
}

.zota-stale-data-note {
    margin: 8px 0 12px;
    padding: 8px 12px;
    border-left: 3px solid #ef8206;
    background: #fff8ef;
    color: #6e6e6e;
}

.zota-live-cards .BigCard table > :not(caption) > * > * {
    padding: 4px 0;
    border: 0;
}

.zota-card-mark {
    display: block;
    width: 4px;
    min-height: 44px;
    margin-right: 10px;
    background: #ef8206;
}

.zota-boiler-summary-card dl {
    font-size: 16px;
    line-height: 22px;
}

.zota-boiler-summary-card dt,
.zota-boiler-summary-card dd {
    display: inline;
}

.zota-boiler-summary-card dd::after {
    content: "";
    display: block;
}

.zota-offline-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 16px;
    color: var(--gray);
    border: 1px solid #dfe2e7;
}

.zota-offline-message .ZCircle {
    display: inline-block;
    flex: none;
}

.zota-panel-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 16px 28px;
    overflow-y: auto;
}

.zota-panel-close {
    color: #ef8206;
    font-size: 48px;
    font-weight: 200;
    line-height: 32px;
}

.zota-panel-back {
    color: #ef8206;
    font-size: 18px;
}

.zota-settings-panel {
    width: min(640px, 100%) !important;
}

.zota-main-settings-panel {
    width: min(640px, 100%) !important;
}

.zota-main-settings-actions {
    margin-bottom: 24px;
}

.zota-main-settings-help {
    display: grid;
    gap: 12px;
}

.zota-main-settings-help article {
    padding: 16px;
    border: 1px solid #dfe2e7;
}

.zota-main-settings-help h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 400;
}

.zota-main-settings-help p {
    margin: 0;
    color: var(--gray);
}

.zota-settings-panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.zota-setting-operation {
    margin: 0 0 28px;
}

.zota-setting-operation-tabs {
    display: flex;
    align-items: flex-end;
    gap: 34px;
    margin: 8px 0 0;
    border-bottom: 1px solid var(--black);
}

.zota-setting-operation-tabs button {
    margin: 0 0 -1px;
    padding: 8px 0 9px;
    border-bottom: 3px solid transparent;
    color: var(--gray);
    font-size: 18px;
}

.zota-setting-operation-tabs button.active {
    border-bottom-color: #ff7a1b;
    color: var(--black);
}

.zota-setting-notice {
    margin: 12px 0 18px;
    color: var(--black);
    font-size: 17px;
    line-height: 1.35;
}

.zota-setting-operation h3 {
    margin: 18px 0 14px;
    font-size: 22px;
}

.zota-setting-choice {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.zota-setting-choice legend,
.zota-setting-slider-title {
    margin-bottom: 8px;
    font-size: 17px;
}

.zota-setting-choice-option {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin: 0 0 10px;
    color: var(--gray);
    font-size: 16px;
    line-height: 26px;
    text-align: left;
}

.zota-thermostat-compact-programs {
    display: grid;
    gap: 18px;
    margin: 10px 0 22px;
}

.zota-thermostat-compact-program {
    min-width: 0;
}

.zota-thermostat-program-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 4px 0 8px;
    padding: 0;
    color: var(--black);
    font-size: 24px;
    text-align: left;
}

.zota-thermostat-program-heading .zota-card-icon,
.zota-thermostat-program-heading .ZImage {
    width: 48px;
    height: 52px;
    flex: none;
}

.zota-thermostat-summary-grid {
    display: grid;
    grid-template-columns: repeat(var(--zota-thermostat-columns), minmax(0, 1fr));
    align-items: center;
    width: 100%;
}

.zota-thermostat-summary-header {
    min-height: 58px;
    margin-bottom: 2px;
}

.zota-thermostat-summary-header > * {
    display: flex;
    justify-content: center;
}

.zota-thermostat-summary-header .zota-card-icon,
.zota-thermostat-summary-header .ZImage {
    width: 48px;
    height: 52px;
}

.zota-thermostat-summary-header svg {
    max-width: 48px;
    max-height: 52px;
}

.zota-thermostat-summary-row {
    padding: 5px 0;
    color: var(--black);
    font-size: 27px;
    line-height: 1.2;
    cursor: pointer;
}

.zota-thermostat-summary-row:hover,
.zota-thermostat-summary-row:focus-visible {
    background: rgb(255 122 27 / 7%);
}

.zota-thermostat-summary-row > span {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-thermostat-period-editor {
    margin: 8px 0 14px;
    padding: 14px;
    border: 1px solid #d9dde3;
    border-radius: 7px;
}

.zota-thermostat-period-sheet {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 100%;
    display: flex;
    flex-direction: column;
    width: min(600px, calc(100vw - 640px));
    min-width: 480px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 18px rgb(32 33 36 / 18%);
    animation: zota-thermostat-period-sheet-in .24s ease-out;
}

.zota-settings-panel .zota-panel-content:has(.zota-thermostat-period-sheet) {
    overflow: visible;
}

.zota-thermostat-period-sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
}

.zota-thermostat-period-sheet-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 20px 28px;
    overflow-y: auto;
}

.zota-thermostat-period-sheet-content h2 {
    margin: 0 0 6px;
    font-size: 34px;
}

.zota-thermostat-period-context {
    margin: 0 0 20px;
    color: var(--gray);
}

.zota-thermostat-period-sheet .zota-thermostat-period-editor {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
}

@keyframes zota-thermostat-period-sheet-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 1120px) {
    .zota-thermostat-period-sheet {
        right: 0;
        width: 100%;
        min-width: 0;
        box-shadow: none;
    }
}

@media screen and (max-width: 768px) {
    .zota-thermostat-period-sheet-head {
        padding: 16px;
    }

    .zota-thermostat-period-sheet-content h2 {
        font-size: 28px;
    }
}

.zota-thermostat-text-action {
    display: block;
    margin: 16px 0 0;
    padding: 8px 6px;
    color: var(--black);
    font-size: 22px;
    text-align: left;
}

.zota-thermostat-text-action:hover,
.zota-thermostat-text-action:focus-visible {
    color: #ff7a1b;
}

.zota-thermostat-occupied {
    margin: 12px 0 0;
}

.zota-thermostat-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.zota-thermostat-actions .zota-settings-apply {
    width: 100%;
    margin: 0;
}

.zota-setting-radio {
    position: relative;
    width: 24px;
    height: 24px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: #e0e0e0;
}

.zota-setting-radio.active {
    background: #ff7a1b;
}

.zota-setting-radio.active::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
}

.zota-setting-switch-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0 0 10px;
    color: var(--black);
    font-size: 20px;
    line-height: 26px;
    text-align: left;
}

.zota-setting-switch {
    position: relative;
    width: 48px;
    height: 24px;
    flex: none;
    border-radius: 12px;
    background: #e0e0e0;
}

.zota-setting-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}

.zota-setting-switch.active {
    background: #ff7a1b;
}

.zota-setting-switch.active::after {
    transform: translateX(24px);
}

.zota-setting-action {
    width: 100%;
    margin: 8px 0 14px;
    padding: 15px 16px;
    border-left: 9px solid #ff7a1b;
    color: var(--black);
    font-size: 22px;
    line-height: 1.3;
    text-align: left;
}

.zota-setting-action:hover,
.zota-setting-action:focus-visible {
    background: rgb(255 122 27 / 8%);
}

.zota-setting-slider {
    display: block;
    margin: 0 0 18px;
}

.zota-setting-slider-control {
    position: relative;
    display: block;
    height: 40px;
    margin: 0 20px;
}

.zota-setting-slider-track {
    position: absolute;
    top: 17px;
    left: 0;
    width: 100%;
    height: 7px;
    border-radius: 5px;
    background: linear-gradient(to right,
        #151515 0 var(--zota-slider-active-min-position),
        #ff7a1b var(--zota-slider-active-min-position) var(--zota-slider-active-position),
        rgb(139 143 161 / 26%) var(--zota-slider-active-position) 100%);
}

.zota-setting-slider output {
    position: absolute;
    z-index: 1;
    top: 0;
    left: var(--zota-slider-position);
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ff7a1b;
    color: #fff;
    font-size: 17px;
    text-align: center;
    pointer-events: none;
}

.zota-setting-slider-default {
    position: absolute;
    z-index: 1;
    top: 29px;
    left: var(--zota-slider-default-position);
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ef8206;
    pointer-events: none;
}

.zota-setting-slider input[type="range"] {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.zota-setting-slider-control:has(input[type="range"]:focus-visible) output {
    outline: 2px solid #0065ff;
    outline-offset: 2px;
}

.zota-setting-range {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 20px;
    color: #aaa;
}

.zota-setting-range.with-off .zota-setting-active-minimum {
    position: absolute;
    left: max(var(--zota-slider-active-min-position), 3.5rem);
    transform: translateX(-50%);
    padding: 0 4px;
    background: #fff;
}

.zota-setting-datetime {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.zota-setting-datetime .form-control {
    font-size: 18px;
}

.zota-setting-local-time {
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid #ff7a1b;
    color: #ff7a1b;
    font-size: 17px;
}

.zota-setting-local-time:hover,
.zota-setting-local-time:focus-visible {
    background: #ff7a1b;
    color: #fff;
}

.zota-setting-number {
    display: block;
    margin: 0 0 20px;
}

.zota-setting-number .form-control {
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--gray);
    border-radius: 0;
}

.zota-settings-apply {
    flex: 0 0 auto;
    width: auto;
    min-height: 54px;
    margin: 0 16px;
    padding: 14px 16px;
    border: 0;
    background: #ff7a1b;
    color: #fff;
    font-size: 18px;
}

.zota-settings-apply:disabled {
    background: #d7d7d7;
    color: #888;
}

.zota-settings-panel .zota-panel-content {
    flex: 0 1 auto;
    padding-bottom: 14px;
}

.zota-profile-panel {
    width: min(635px, 100%) !important;
}

.zota-alerts-panel {
    width: min(635px, 100%) !important;
}

.zota-alerts-empty {
    margin: 8px 4px;
    color: var(--gray);
    font-size: 22px;
}

.zota-alerts-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.zota-alerts-list li {
    padding: 12px 14px;
    border-left: 5px solid #ef8206;
    background: #fff8ef;
    font-size: 18px;
}

.zota-alerts-list.problems li {
    border-left-color: #e63948;
    background: #fff1f2;
}

.zota-profile-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
}

.zota-profile-actions button {
    width: 100%;
    padding: 12px 0;
    color: var(--black);
    text-align: left;
    font-size: 24px;
}

.zota-profile-actions button:hover,
.zota-profile-actions button:focus-visible {
    color: #ef8206;
}

.zota-profile-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
}

.zota-profile-fields.one-column {
    grid-template-columns: 1fr;
}

.zota-profile-fields label {
    color: var(--gray);
}

.zota-profile-fields .form-control {
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid var(--gray);
    border-radius: 0;
    background: transparent;
    color: var(--black);
}

@media (max-width: 620px) {
    .zota-profile-fields {
        grid-template-columns: 1fr;
    }
}

.zota-settings-sections {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 16px 0 24px;
}

.zota-settings-section {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 0;
    color: var(--black);
    text-align: left;
    font-size: 24px;
}

.zota-settings-section:hover,
.zota-settings-section:focus-visible {
    color: #ef8206;
}

.zota-service-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(170px, 1fr));
    gap: 10px;
    margin: 8px 4px 12px;
}

.zota-service-card {
    min-height: 112px;
    padding: 12px;
    color: var(--black);
    border: 1px solid #cfd2d6;
    border-radius: 8px;
    background: #fff;
}

.zota-service-card h2 {
    margin: -12px -12px 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #cfd2d6;
    font-size: 20px;
    line-height: 26px;
}

.zota-boiler-diagnostics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.zota-boiler-diagnostics-header h1 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.15;
}

.zota-boiler-diagnostics-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.zota-boiler-more-actions {
    position: relative;
}

.zota-boiler-more-actions > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.zota-boiler-more-actions > summary::-webkit-details-marker {
    display: none;
}

.zota-boiler-more-actions-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    padding: 15px;
    border: 1px solid #dce1e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 42px rgb(23 32 51 / 18%);
}

.zota-boiler-more-actions-panel p {
    margin: 5px 0 12px;
    color: #697386;
    font-size: 13px;
    line-height: 1.45;
}

.zota-boiler-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    align-items: start;
    gap: 10px;
}

.zota-boiler-overview-card,
.zota-boiler-owners,
.zota-boiler-snapshot {
    min-width: 0;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(23 32 51 / 4%);
}

.zota-boiler-overview-card {
    padding: 13px 14px;
}

.zota-boiler-overview-card > header,
.zota-boiler-owners > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf0f3;
}

.zota-boiler-overview-card > header > span,
.zota-boiler-owners > summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #263246;
    font-weight: 650;
}

.zota-boiler-overview-card > header i,
.zota-boiler-owners > summary i {
    color: #ef8206;
}

.zota-boiler-overview-card > header > strong {
    overflow: hidden;
    color: #4f5b6a;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-boiler-overview-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(80px, auto);
    gap: 7px 12px;
    margin: 11px 0 0;
    font-size: 14px;
}

.zota-boiler-overview-card dt {
    min-width: 0;
    color: #77808e;
    font-weight: 400;
}

.zota-boiler-overview-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #263246;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.zota-boiler-owners {
    overflow: hidden;
}

.zota-boiler-owners > summary {
    padding: 13px 14px;
    border-bottom: 0;
    cursor: pointer;
    list-style: none;
}

.zota-boiler-owners > summary::-webkit-details-marker {
    display: none;
}

.zota-boiler-owners > summary::after {
    margin-left: auto;
    color: #77808e;
    content: "\F282";
    font-family: bootstrap-icons;
    transition: transform .15s ease;
}

.zota-boiler-owners[open] > summary {
    border-bottom: 1px solid #edf0f3;
}

.zota-boiler-owners[open] > summary::after {
    transform: rotate(180deg);
}

.zota-boiler-owners-content {
    padding: 13px 14px 0;
}

.zota-boiler-owners-table {
    max-height: 230px;
    margin: 0 -14px;
    overflow: auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.zota-boiler-owners-table table {
    font-size: 14px !important;
}

.zota-boiler-owners-table thead {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #fff;
}

.zota-boiler-snapshot {
    overflow: hidden;
}

.zota-boiler-snapshot > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    cursor: pointer;
}

.zota-boiler-snapshot > summary > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #263246;
    font-weight: 650;
}

.zota-boiler-snapshot > summary i {
    color: #ef8206;
}

.zota-boiler-snapshot > summary small {
    overflow: hidden;
    color: #77808e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-boiler-snapshot-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    padding: 9px 14px;
    border-top: 1px solid #edf0f3;
    background: #f8f9fb;
}

.zota-boiler-snapshot pre {
    max-height: 52vh;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-top: 1px solid #edf0f3;
    background: #172033;
    color: #eaf0fa;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .zota-boiler-diagnostics-header {
        align-items: stretch;
        flex-direction: column;
    }

    .zota-boiler-diagnostics-actions {
        justify-content: flex-start;
    }

    .zota-boiler-more-actions-panel {
        right: auto;
        left: 0;
    }
}

@media (max-width: 560px) {
    .zota-boiler-diagnostics-actions .btn {
        flex: 1 1 auto;
    }

    .zota-boiler-more-actions > summary span {
        display: none;
    }

    .zota-boiler-overview-grid {
        grid-template-columns: 1fr;
    }
}

.zota-runtime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.zota-runtime-header h1 {
    margin-bottom: 2px;
}

.zota-runtime-refresh {
    width: auto;
    flex: 0 0 auto;
}

.zota-runtime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    align-items: start;
    justify-content: start;
    gap: 14px;
}

.zota-runtime-card {
    padding: 14px 16px;
    border: 1px solid #cfd2d6;
    border-radius: 6px;
    background: #fff;
}

.zota-runtime-card h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ef8206;
    font-size: 20px;
}

.zota-runtime-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 7px 14px;
    margin: 0;
}

.zota-runtime-card dt {
    min-width: 0;
    color: var(--gray);
    font-weight: 400;
}

.zota-runtime-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 600;
}

.zota-service-actions {
    display: flex;
    justify-content: space-around;
    gap: 8px 24px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 3px solid #dfe2e7;
}

.zota-service-boilers {
    margin-top: 10px;
}

.zota-service-boiler-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.zota-service-boiler-toolbar > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 4px 12px;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
}

.zota-service-invalid {
    color: var(--gray);
    font-size: 14px;
}

.zota-service-boiler-title {
    font-size: 42px;
    line-height: 46px;
}

.zota-service-counter {
    font-size: 34px;
    font-weight: 700;
}

.zota-service-counter small {
    margin-left: 4px;
    color: var(--gray);
    font-size: 14px;
}

.zota-service-online-count,
.zota-service-offline-count {
    min-width: 96px;
    color: #fff;
    border: 0 !important;
    font-size: 32px;
    font-weight: 700;
}

.zota-service-online-count { background: #198754; }
.zota-service-offline-count { background: #dc3545; }

.zota-service-refresh {
    min-width: 56px;
    font-size: 24px;
}

.zota-service-table-shell {
    max-height: 68vh;
    overflow: auto;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
}

.zota-service-boiler-table-shell {
    height: 68vh;
    min-height: 420px;
}

.zota-service-boiler-table {
    min-width: 1120px;
    text-align: center;
}

.zota-service-boiler-table thead {
    position: sticky;
    z-index: 1;
    top: 0;
    background: rgba(255, 255, 255, .95);
}

.zota-service-boiler-table th {
    min-width: 120px;
    font-weight: 400;
}

.zota-service-boiler-table th:first-child {
    min-width: 70px;
}

.zota-service-boiler-table td {
    vertical-align: middle;
}

.zota-service-boiler-row {
    cursor: pointer;
    height: 70px;
}

@media screen and (max-width: 768px) {
    .zota-service-boiler-table-shell {
        height: 62vh;
        min-height: 360px;
    }
}

.zota-service-boiler-row:focus-visible {
    outline: 2px solid #1769ff;
    outline-offset: -2px;
}

.zota-service-window {
    min-height: 100dvh;
    padding: 18px;
    background: #f6f7f9;
    color: var(--black);
}

.zota-network-history-header {
    align-items: center;
}

.zota-network-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.zota-network-history-view-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #f2f4f7;
}

.zota-network-history-view-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #697386;
    font: inherit;
    white-space: nowrap;
}

.zota-network-history-view-button:hover,
.zota-network-history-view-button:focus-visible {
    color: #172033;
}

.zota-network-history-view-button:focus-visible {
    outline: 2px solid #1769ff;
    outline-offset: 1px;
}

.zota-network-history-view-button.active {
    background: #fff;
    color: #1769ff;
    box-shadow: 0 1px 4px rgb(23 32 51 / 12%);
}

.zota-network-history-export {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
}

.zota-network-history-chart-card {
    overflow: hidden;
}

.zota-network-history-chart {
    position: relative;
    width: 100%;
    height: clamp(300px, 42vh, 460px);
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
}

.zota-network-history-table {
    max-height: calc(100dvh - 270px);
    min-height: 220px;
}

.zota-network-history-table thead {
    position: sticky;
    z-index: 1;
    top: 0;
    background: rgb(255 255 255 / 96%);
}

@media (max-width: 760px) {
    .zota-network-history-header {
        align-items: stretch;
        flex-direction: column;
    }

    .zota-network-history-toolbar {
        justify-content: flex-start;
    }

    .zota-network-history-table {
        max-height: none;
    }
}

.zota-service-row-placeholder {
    height: 70px;
}

.zota-boiler-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zota-boiler-activity .zota-service-card {
    min-width: 0;
    background: #fff;
}

.zota-boiler-activity .table {
    font-size: 14px;
}

.zota-boiler-activity .table > :not(caption) > * > * {
    padding: 8px 10px;
}

.zota-boiler-activity-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: var(--gray);
    font-size: 14px;
}

.zota-boiler-gateway-summary {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(190px, .8fr);
    gap: 18px;
    margin: 4px 0 16px;
    padding: 12px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #f8f9fb;
}

.zota-boiler-gateway-summary h3 {
    margin: 0 0 10px;
    color: #697386;
    font-size: 13px;
    font-weight: 650;
}

.zota-boiler-chart-switch {
    position: relative;
    display: grid;
    max-width: 330px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
    padding: 3px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #eef1f5;
}

.zota-boiler-chart-switch > i {
    position: absolute;
    z-index: 0;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 3);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 4px rgb(23 32 51 / 14%);
    transform: translateX(calc(var(--active-chart) * 100%));
    transition: transform .18s ease;
}

.zota-boiler-chart-switch > button {
    z-index: 1;
    min-width: 0;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #697386;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.zota-boiler-chart-switch > button.active {
    color: #263246;
}

.zota-boiler-pie-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.zota-boiler-pie {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dfe3e8;
}

.zota-boiler-pie-legend {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zota-boiler-pie-legend li {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    color: #697386;
    font-size: 12px;
}

.zota-boiler-pie-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--legend-color);
}

.zota-boiler-pie-legend strong {
    color: #263246;
    font-variant-numeric: tabular-nums;
}

.zota-boiler-gateway-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 9px 12px;
    margin: 0;
    font-size: 13px;
}

.zota-boiler-gateway-metrics dt {
    color: #697386;
    font-weight: 400;
}

.zota-boiler-gateway-metrics dd {
    margin: 0;
    color: #263246;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}

.zota-boiler-recent-errors {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf0f3;
}

.zota-boiler-recent-errors h3 {
    margin: 0 0 8px;
    color: #697386;
    font-size: 13px;
    font-weight: 650;
}

.zota-boiler-recent-errors p {
    margin: 0;
    color: #8a929e;
    font-size: 13px;
}

.zota-boiler-recent-errors ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zota-boiler-recent-errors li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
}

.zota-boiler-recent-errors time,
.zota-boiler-recent-errors small {
    color: #8a929e;
    white-space: nowrap;
}

.zota-boiler-recent-errors strong {
    overflow: hidden;
    color: #263246;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-boiler-activity-scroll {
    max-height: 280px;
    overflow: auto;
}

.zota-boiler-packet-scroll {
    max-height: 440px;
    overflow: auto;
}

@media screen and (max-width: 1050px) {
    .zota-boiler-activity-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 620px) {
    .zota-boiler-gateway-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .zota-boiler-recent-errors li {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .zota-boiler-recent-errors small {
        display: none;
    }
}

@media screen and (max-width: 520px) {
    .zota-runtime-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .zota-runtime-card dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .zota-runtime-card dd {
        margin-bottom: 9px;
        text-align: left;
    }
}

.zota-service-status-column {
    min-width: 190px !important;
}

.zota-service-status-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.zota-service-status-filter .btn {
    padding: 4px 6px;
}

@media screen and (max-width: 1500px) {
    .zota-service-summary {
        grid-template-columns: repeat(4, minmax(170px, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .User-Menu__left {
        width: 100%;
    }

    .User-Menu__right {
        width: 100%;
        justify-content: flex-end;
    }

    .zota-page-heading {
        margin-left: 0;
        text-align: left;
    }

    .zota-boiler-tabs {
        gap: 24px;
    }

    .zota-boiler-tabs a,
    .zota-boiler-tabs button {
        font-size: 21px;
        line-height: 28px;
    }

    .zota-service-summary {
        grid-template-columns: 1fr;
    }
}

    .edit-boiler__desc-list p {
        margin-bottom: 0;
    }

.network-settings__info p {
    margin-bottom: 0;
}

.firmware-head {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.network-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
    padding: 24px 0;
}

.network-settings__controls {
    display: grid;
    gap: 20px;
    min-width: min(100%, 360px);
}

.network-settings__controls label:not(.form-check) {
    display: grid;
    gap: 6px;
}

.zota-statistics-panel {
    padding: 16px 0 28px;
}

.zota-statistics-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.zota-statistics-period {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    min-width: 0;
}

.zota-statistics-period label {
    display: grid;
    gap: 4px;
    color: var(--gray);
}

.zota-statistics-end-label {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.zota-statistics-end-label button {
    color: var(--orange);
}

.zota-statistics-count {
    padding-bottom: 8px;
    color: var(--gray);
    white-space: nowrap;
}

.zota-statistics-period input {
    min-width: 220px;
    padding: 7px 10px;
    border: 1px solid var(--light-gray);
    background: white;
}

.zota-statistics-period input.zota-statistics-point-limit {
    width: 120px;
    min-width: 120px;
}

.zota-statistics-show.ZSButton {
    flex: 0 0 auto;
    width: auto;
    min-width: 116px;
    padding: 8px 22px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

.zota-statistics-show.ZSButton:hover,
.zota-statistics-show.ZSButton:focus-visible {
    background-color: #ef8206;
    color: white;
    opacity: 1;
}

.zota-statistics-show.ZSButton:disabled {
    cursor: wait;
    opacity: .55;
}

.zota-statistics-view-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    margin-inline-start: auto;
    padding: 3px;
    border: 1px solid #d8dce0;
    border-radius: 5px;
    background: #f4f5f6;
}

.zota-statistics-view-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 12px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #737a82;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.zota-statistics-view-button:hover,
.zota-statistics-view-button:focus-visible {
    color: var(--orange);
}

.zota-statistics-view-button.active {
    background: white;
    color: var(--orange);
    box-shadow: 0 1px 4px rgb(37 43 49 / 16%);
}

.zota-statistics-series {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    padding: 4px 0 10px;
}

.zota-statistics-series-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.zota-statistics-series-button:hover,
.zota-statistics-series-button:focus-visible {
    background: #f3f4f5;
    color: var(--black);
}

.zota-statistics-series-button:not(.active) {
    opacity: .55;
}

.zota-series-mark {
    width: 18px;
    height: 4px;
    background: #c8ccd1;
}

.zota-statistics-series-button.active .zota-series-mark {
    background: var(--series-color);
}

.zota-statistics-chart-header {
    border-bottom: 1px solid var(--gray);
}

.zota-statistics-chart-header h2 {
    margin: 4px 0;
    font-size: 1.35rem;
    font-weight: 400;
}

.zota-statistics-warning {
    margin: 8px 0;
    color: var(--orange);
}

.zota-history-chart {
    padding: 18px 0 8px;
}

.zota-history-chart__canvas {
    position: relative;
    width: 100%;
    height: clamp(340px, 38vw, 520px);
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e4e7;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}

.zota-history-chart__canvas .uplot {
    font-family: inherit;
}

.zota-history-chart__canvas .u-cursor-x,
.zota-history-chart__canvas .u-cursor-y {
    border-color: #9ba1a7 !important;
    border-style: dashed;
}

.zota-chart-visible-interval {
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 16px;
    padding: 4px 8px;
    border: 1px solid #e1e4e7;
    border-radius: 3px;
    background: rgb(255 255 255 / 92%);
    color: #737a82;
    font-size: .8rem;
    line-height: 1.2;
    pointer-events: none;
}

.zota-chart-tooltip {
    position: absolute;
    z-index: 5;
    min-width: 220px;
    max-width: min(360px, calc(100% - 24px));
    padding: 10px 12px;
    border: 1px solid rgb(255 122 27 / 55%);
    border-radius: 5px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 8px 28px rgb(29 36 43 / 18%);
    color: var(--black);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.zota-chart-tooltip__time {
    margin-bottom: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e4e6e8;
    color: #737a82;
    font-size: .86rem;
}

.zota-chart-tooltip__row,
.zota-chart-tooltip__label {
    display: flex;
    align-items: center;
}

.zota-chart-tooltip__row {
    justify-content: space-between;
    gap: 18px;
    min-height: 24px;
}

.zota-chart-tooltip__label {
    min-width: 0;
    gap: 7px;
}

.zota-chart-tooltip__mark {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.zota-chart-tooltip__value {
    flex: 0 0 auto;
    font-weight: 600;
}

.zota-history-table {
    display: flex;
    width: 100%;
    margin-top: 4px;
    flex-direction: column;
    align-items: center;
}

.zota-history-table__head {
    display: grid;
    width: 100%;
    margin-bottom: 12px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.zota-history-table__head h2 {
    grid-column: 2;
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
}

.zota-history-table__head .zota-history-export {
    display: inline-flex;
    width: auto;
    min-width: 170px;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

.zota-history-table__head .zota-history-export:hover,
.zota-history-table__head .zota-history-export:focus-visible {
    background-color: #ef8206;
    color: white;
}

.zota-history-table__wrapper {
    width: 100%;
    max-height: 80vh;
    overflow: auto;
}

.zota-history-table__grid {
    width: 100%;
    border-collapse: collapse;
    color: var(--black);
    font-size: 16px;
    line-height: 1.5;
}

.zota-history-table__grid th,
.zota-history-table__grid td {
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    text-align: left;
}

.zota-history-table__grid th {
    font-weight: 700;
}

.zota-history-table__grid thead {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #ffcba6;
}

.zota-history-table__grid tbody tr:nth-child(odd) {
    background: rgb(0 0 0 / 5%);
}

.zota-history-table__grid tbody tr:hover {
    background: #fff3ea;
}

.zota-history-table__grid td:first-child,
.zota-history-table__grid th:first-child {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .zota-statistics-toolbar,
    .zota-statistics-period {
        flex-wrap: wrap;
    }

    .zota-statistics-view-switch {
        align-self: flex-end;
    }
}

@media (max-width: 640px) {
    .zota-statistics-period,
    .zota-statistics-period label,
    .zota-statistics-period input {
        width: 100%;
    }

    .zota-statistics-period input.zota-statistics-point-limit {
        width: 100%;
        min-width: 100%;
    }

    .zota-statistics-view-button span {
        display: none;
    }

    .zota-history-chart__canvas {
        height: 360px;
    }

    .zota-history-table__head {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

.zota-scheme-canvas {
    width: 100%;
    min-height: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.zota-static-scheme img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
}

.zota-scheme-canvas.Scheme > img:first-of-type {
    width: 100%;
    height: auto;
}

.zota-scheme-canvas.Scheme > img {
    width: 100%;
    height: auto;
}

.zota-scheme-canvas .Sensor > div:last-child {
    white-space: nowrap;
}

.zota-weather-curve {
    margin: .5rem 0 1.25rem;
}

.zota-weather-curve-chart {
    width: 100%;
    max-width: 38rem;
    height: 350px;
    background: #fff;
}

.zota-weather-curve figcaption {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.35;
}

.zota-weather-curve-hint {
    color: var(--gray);
}

.zota-weather-curve-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.zota-weather-curve-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zota-weather-curve-legend i {
    display: inline-block;
    width: 32px;
    border-top: 3px solid #101dff;
}

.zota-weather-curve-legend i.source {
    border-top-style: dashed;
}

.zota-command-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    background: #f5f7fa;
    scrollbar-width: thin;
}

.zota-command-tabs button {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4f5b6a;
    white-space: nowrap;
}

.zota-command-tabs button:hover {
    background: #e9edf3;
    color: #182234;
}

.zota-command-tabs button.active {
    background: #1769ff;
    box-shadow: 0 4px 12px rgb(23 105 255 / 20%);
    color: #fff;
}

.zota-command-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.zota-command-metric-card {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dce1e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgb(22 32 48 / 5%);
}

.zota-command-metric-value {
    display: block;
    margin: 3px 0 8px;
    color: #182234;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 650;
    line-height: 1.1;
}

.zota-command-metric-value small {
    font-size: .9rem;
    font-weight: 500;
}

.zota-command-metric-card dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    margin: 0;
}

.zota-command-metric-card dt {
    min-width: 0;
    color: #687281;
    font-weight: 400;
}

.zota-command-metric-card dd {
    min-width: 4.5rem;
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.zota-command-donut-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zota-command-donut {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    place-items: center;
    border-radius: 50%;
}

.zota-command-donut::before {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    content: "";
    grid-area: 1 / 1;
}

.zota-command-donut span {
    z-index: 1;
    grid-area: 1 / 1;
    font-weight: 700;
}

.zota-command-legend {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zota-command-legend li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    color: #687281;
    font-size: .82rem;
}

.zota-command-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--legend-color);
}

.zota-command-legend strong {
    color: #182234;
    font-variant-numeric: tabular-nums;
}

.zota-command-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 10px;
}

.zota-command-chart-grid .zota-service-card {
    min-width: 0;
    min-height: 0;
}

.zota-command-rate-chart {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 6px;
}

.zota-command-histogram {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
}

.zota-command-histogram-row {
    display: grid;
    grid-template-columns: 58px minmax(50px, 1fr) 58px;
    align-items: center;
    gap: 6px;
    color: #687281;
    font-size: .75rem;
}

.zota-command-histogram-row > div {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf3;
}

.zota-command-histogram-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1769ff;
}

.zota-command-histogram-row strong {
    overflow: hidden;
    color: #4f5b6a;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zota-command-table-scroll {
    max-height: calc(100vh - 250px);
    overflow: auto;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
}

.zota-command-table-scroll thead {
    position: sticky;
    z-index: 2;
    top: 0;
}

.zota-command-table-scroll th,
.zota-command-table-scroll td {
    vertical-align: middle;
    white-space: nowrap;
}

.zota-table-sort {
    display: inline-flex;
    align-items: center;
    justify-content: inherit;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.zota-table-sort:hover,
.zota-table-sort:focus-visible {
    color: #1769ff;
}

.zota-command-owner-row > td {
    padding: 0 14px 14px;
    background: #f8fafc;
}

.zota-command-owner-row .zota-service-card {
    margin-top: 10px !important;
}

@media (max-width: 1350px) {
    .zota-command-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zota-command-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .zota-command-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .zota-command-donut-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .zota-command-rate-chart {
        height: 220px;
    }

    .zota-command-histogram {
        grid-template-columns: minmax(0, 1fr);
    }
}
