﻿:root {
    --footer-height: 61px;
    --navbar-offset: 0px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 19px;
    }

    .navbar.fixed-top-md {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
    }

    body {
        padding-top: 100px;
    }

    :root {
        --navbar-offset: 100px; /* синхронно с body padding-top */
    }
}

.ml-3 {
    margin-left: 3px;
}

.mr-3 {
    margin-right: 3px;
}

.mlr-3 {
    margin-left: 3px;
    margin-right: 3px;
}

.pb-8 {
    padding-bottom: 8px;
}

.pt-8 {
    padding-top: 8px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: var(--footer-height);
}

@media (min-width: 768px) {
    .navbar.fixed-top-md {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
    }

    body {
        padding-top: 100px;
    }
}

.header {

}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: var(--footer-height);
    background: linear-gradient(to bottom, #fff 1%, #0095DA 5%);
    color: white;
}


.logo-main {
    height: 50px;
}

.hidden-link {
    color: var(--bs-heading-color);
    text-decoration: unset;
    cursor: unset;
}

    .hidden-link:hover {
        --bs-link-color-rgb: unset;
    }

    .hidden-link:focus-visible {
        outline: unset;
    }

    .hidden-link:link:focus-visible {
        outline-offset: unset;
    }

/*body.dark-theme {
    background-color: #1f1f1f;
}*/

.page-header-text {
    font-size: 28px;
}

@media(min-width: 992px) {
    .page-header-text {
        display: none !important;
    }
}

nav.navbar {
    /*background-color: unset!important;*/
    background: linear-gradient(to bottom, #0095DA 95%, #ffffff 99%);
    color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .nav-link,.navbar-nav .dropdown-item {
    color: whitesmoke !important;
}

.navbar-nav .dropdown-menu {
    background: #0095DA !important;
}

.navbar-nav .dropdown-item:hover {
    background-color: #007bb5;
    color: #fff;
}

.footer .version-text {
    color: #04c0f0;
    position: absolute;
    right: 20px;
    bottom: 0;
}

.footer .version-text:hover {
    color: white;
}

.text-as-normal {
    color: inherit;
    text-decoration: none;
}

/* Полноэкранная область для viewer */
.viewer-fixed-wrapper {
    position: fixed;
    top: var(--navbar-offset);
    left: 0;
    right: 0;
    bottom: var(--footer-height);
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    z-index: 1; /* ниже footer (footer абсолютный, обычно позже в DOM) */
}

.viewer-fixed-wrapper .viewer-object {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Если нужно прокручиваться внутри содержимого <object> (иногда встраиваемый PDF игнорирует), можно обернуть его в div с overflow:auto */