html {
    font-size: 14px;
    background-color: #F3F4F6
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

ol, ol * {
    list-style: none;
    padding: 0;
}

#btn-logout {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    padding-right: 1px;
    background-color: #fff;
    color: red;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-tonal-white {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-tonal::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
}

.form-check-input {
    width: 24px;
    height: 24px;
    margin-top: 0;
}

#document-page .page {
    padding: 50px 40px;
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: var(--hover-shadow-1);
}

.level::before {
    display: block;
    content: " ";
    margin-top: -50px;
    height: 50px;
    visibility: hidden;
    pointer-events: none;
}

#summary-nav {
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: scroll;
    overflow-x: hidden;
}

    #summary-nav .nav-link {
        padding: 0.25rem 1rem;
    }

        #summary-nav .nav-link:hover{
            text-decoration: underline;
        }

        #summary-nav .nav-link:not(.active) {
            color: var(--primary);
        }

    #summary-nav .nav-pills .nav-link.active,
    #summary-nav .nav-pills .show > .nav-link {
        background-color: var(--primary);
    }

    #summary-nav .nav .nav {
        padding-left: 8px;
    }

    #summary-nav .nav .nav-link:not(:last-child) {
        margin-bottom: 6px;
    }

    #summary-nav .nav .nav .nav-link:not(.active) {
        /*display: none;*/
    }

    #summary-nav .nav-link.active + .nav > .nav-link,
    #summary-nav:hover .nav-link {
        display: block !important;
    }

    #summary-nav .nav:first-child > .nav-link.active + .nav {
        background: #eee;
        padding: 10px;
    }

#document-page img {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    #navbar-top {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 9999;
    }

    #document-page {
        width: 100%;
    }

        #document-page img {
            width: 100%;
            height: auto;
        }

        #document-page::after {
            content: "";
            display: block;
            clear: both;
        }
}

@media screen and (max-width: 992px) {
    html body {
        /* padding-top: 0 !important; */
    }

    .container {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    #navbar-top .navbar-inner .nav-item {
        padding: 0 !important;
        padding-top: 10px !important;
        width: 100%;
        text-align: center;
    }

    #navbar-top .navbar-inner .btn {
        width: 100%;
        padding: 10px;
        font-size: .875rem;
        height: auto;
        line-height: 1.5;
        border-radius: 0.2rem;
    }

    #navbar-top .navbar-inner {
        padding-bottom: 20px;
    }

    footer {
        text-align: center;
    }

    #main-title {
        text-align: center;
    }

    #doc-nav-off {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
        border-radius: 100%;
        width: 50px;
        height: 50px;
        box-shadow: 0px 2px 9px 1px rgba(0,0,0,1);
    }

    .offcanvas-bottom {
        height: auto;
        max-height: 60vh;
    }

    #summary-nav .nav,
    html body #summary-nav .nav-link {
        display: block !important;
        font-size: 16px;
    }
}

@media screen and (min-width: 993px) {
    #document-page {
        max-width: 800px;
        width: 100%;
    }
}
