.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
    scroll-margin-top: 80px;
}

.markdown-body .anchor {
    text-decoration: none;
    color: #1961b2;
    margin-left: 0px;
    margin-right: 5px;
}

.markdown-body table {
    width: 100%;
    margin-bottom: 1rem;
}

.markdown-body th {
    background-color: #f8f9fa;
}

.docs-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.docs-menu a {
    display: block;
    padding: 4px 10px;
    text-decoration: none;
    color: #495057;
    border-radius: 2px;
    font-size: 14px;
}

.docs-menu a:hover {
    color: #212529;
    background-color: #e9ecef;
}

.docs-menu a.active {
    color: #3b7ddd;
    background-color: #e0ecfd;
}

/* @INFO Dodane ze względu na problem ze Sticky Box (nadpisanie klasy main) */
.main {
    overflow: visible !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.docs-overflow > div:last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 1200px) {
    .sticky-top {
        position: sticky !important;
        top: 20px !important;
        z-index: 10 !important; 
    }

    .sticky-top .docs-overflow {
        overflow-x: hidden;
        overflow-y: auto;
        max-height: calc(100vh - 290px);
    }
}

@media (max-width: 1199.98px) {
    .sticky-top {
        position: static !important;
    }

    .sticky-top .docs-overflow {
        max-height: none !important;
        overflow: visible !important;
    }
}
