#viewer-page > .title-panel > .title-panel-flex-indicator > .icon-view-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 1;
    flex-shrink: 0;
    border: 1px solid transparent;
    border-radius: 20%;
    color: #52677d;
    cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s;
    svg {
        display: block;
        width: 80%;
        height: 80%;
        fill: currentColor;
        pointer-events: none;
    }
    &:hover {
        color: #246b9e;
        background: #eaf2fa;
        border-color: #d8e6f2;
        .toolip-view-window {
            display: block;
        }
    }
    &:active {
        color: #1d5078;
        background: #dceaf6;
    }
    .toolip-view-window {
        display: none;
        position: fixed;
        top: 38px;
        right: 9px;
        z-index: 10;
        width: min(300px, calc(100vw - 16px));
        max-height: min(360px, calc(100dvh - 58px));
        overflow: auto;
        overscroll-behavior: contain;
        padding: 6px;
        border: 1px solid #e1e5e9;
        border-radius: 10px;
        background: #fff;
        color: #34495e;
        box-shadow: 0 10px 40px #203e5b24;
        font-size: 13px;
        line-height: 1.6;
        text-align: left;
        overflow-wrap: anywhere;
        cursor: default;
        
        &::before {
            content: '';
            position: fixed;
            top: 42px;
            right: 9px;
            width: min(300px, calc(100vw - 16px));
            height: 8px;
        }
        span{
            /*для перечислений информации в столбик*/
            display: block;
            margin: 0;
            padding: 4px 6px;
            transition: background-color .15s;
            color: #23364b;
            &.error{color:#b45c56}
            &.warning{color:#ae7b29}
            &.success{color:#45866b}
            
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            &:hover {
                background: #edf5fc;
                color: #246b9e;
            }
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 90%;
            line-height: inherit;
            th, td {
                padding: 8px 10px;
                transition: background-color .15s, color .15s, box-shadow .15s;
                border-bottom: 1px solid #edf1f5;
                text-align: left;
                vertical-align: top;
                & + th, & + td {
                    padding-left: 12px;
                }
            }
            th {
                color: #23364b;
                font-weight: 600;
            }
            td:first-child, th:first-child {
                color: #738395;
                white-space: nowrap;
                vertical-align: middle;
                font-weight: 600;
            }
            tr:hover {
                th, td {
                    background: #edf5fc;
                    color: #246b9e;
                    &:first-child {
                        box-shadow: inset 3px 0 #78a9cf;
                    }
                }
            }
            tbody:last-child tr:last-child, & > tr:last-child {
                th, td {
                    border-bottom: 0;
                }
            }
        }
    }
    .toolip-view-help-info {
        position: fixed;
        top: 49px;
        right: 9px;
        z-index: 11;
        max-width: min(240px, calc(100vw - 18px));
        padding: 5px 9px;
        border-radius: 5px;
        background: #34495e;
        color: #fff;
        box-shadow: 0 3px 10px #203e5b20;
        font-size: 12px;
        line-height: 1.4;
        text-align: left;
        overflow-wrap: anywhere;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity .05s, visibility .05s;
    }
    &:hover, &:focus-visible {
        .toolip-view-help-info {
            visibility: visible;
            opacity: 1;
            transition-delay: .2s;
        }
    }
}
/* Состояния задаются классами на кнопке или строках её таблицы. */
#viewer-page > .title-panel > .title-panel-flex-indicator > .icon-view-button:has(> svg use[href="#icon-view-internet"]) {
    --status-color: #738395;
    color: var(--status-color);
    &.status-ok, &:has(tr.status-ok) {
        --status-color: #45866b;
    }
    &.status-saving, &:has(tr.status-saving) {
        --status-color: #738395;
    }
    &.status-warning, &:has(tr.status-warning) {
        --status-color: #ae7b29;
    }
    &.status-error, &:has(tr.status-error) {
        --status-color: #b45c56;
    }
    &.status-saving, &.status-warning, &.status-error,
    &:has(tr.status-saving, tr.status-warning, tr.status-error) {
        > svg {
            animation: viewer-status-pulse 1.4s ease-in-out infinite;
        }
    }
    &:hover, &:active {
        color: var(--status-color);
    }
    .toolip-view-window table tr {
        &.status-ok {
            --row-color: #45866b;
        }
        &.status-warning {
            --row-color: #ae7b29;
        }
        &.status-error {
            --row-color: #b45c56;
        }
        &.status-saving, &.status-checking {
            --row-color: #738395;
        }
        &.status-ok, &.status-warning, &.status-error, &.status-saving, &.status-checking {
            td:last-child {
                color: var(--row-color);
            }
            &:hover td:first-child {
                box-shadow: inset 3px 0 var(--row-color);
            }
        }
    }
}
@keyframes viewer-status-pulse {
    50% {
        opacity: .4;
    }
}
@media (prefers-reduced-motion: reduce) {
    #viewer-page > .title-panel > .title-panel-flex-indicator > .icon-view-button:has(> svg use[href="#icon-view-internet"]) > svg {
        animation: none;
    }
}
