﻿.documentation-layout {
    min-height: 100vh;
}

.documentation-sidebar {
    width: 320px;
    min-width: 320px;
    background: var(--mdb-body-bg);
}

.offcanvas {
    z-index: 2000;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas .documentation-sidebar {
    position: static !important;
    height: auto !important;
}

.documentation-content {
    min-width: 0;
    overflow-x: auto;
}


.documentation-content h1,
.documentation-content h2,
.documentation-content h3 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.documentation-content pre {
    background: #1e1e1e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.documentation-sidebar .active {
    font-weight: 600;
}

.documentation-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
}

.documentation-content th,
.documentation-content td {
    border: 1px solid #495057;
    padding: .85rem;
    white-space: nowrap;
}

.documentation-content th {
    background-color: rgba(255,255,255,.05);
    font-weight: 600;
}

.documentation-content tr:nth-child(even) {
    background-color: rgba(255,255,255,.02); 
}

.documentation-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.documentation-content p em {
    display: block;
    text-align: center;
    opacity: .75;
    margin-top: -.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {

    .documentation-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        flex-shrink: 0;
    }
}
