
/* Only affect main layout grid */
.md-main .md-grid {
    margin-left: 0 !important;
    padding-left: 0 !important;
}


/* =========================================
   HEADER BAR REFINEMENT
   ========================================= */
.md-header {
    background-color: #1976d2;
    box-shadow: none;
}


/* =========================================
   SIDEBAR STYLING (SmartSDR-like)
   ========================================= */

/* Sidebar background */
.md-sidebar--primary {
    background-color: #e6e6e6 !important;
    border-right: 1px solid #d0d0d0;
}

/* Ensure full height coverage */
.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar--primary .md-nav {
    background-color: #e6e6e6 !important;
}

/* Hide site title in sidebar */
.md-sidebar--primary .md-nav__title {
    display: none !important;
}

/* Navigation spacing */
.md-nav__item {
    margin: 0.1em 0;
}

/* Nested indentation */
.md-nav__list .md-nav__list {
    margin-left: 0.5em;
}

/* Navigation links */
.md-nav__link {
    color: #222;
    font-size: 0.9rem;
}

/* Hover */
.md-nav__link:hover {
    background-color: #d0d0d0;
    color: #000;
}

/* ✅ FIXED ACTIVE ITEM (no layout shift) */
.md-nav__link--active {
    background-color: #c0c0c0;
    color: #000;
    font-weight: bold;
}


/* =========================================
   REMOVE RIGHT SIDEBAR (TOC)
   ========================================= */
.md-sidebar--secondary {
    display: none !important;
}


/* =========================================
   CONTENT WIDTH
   ========================================= */
.md-main__inner {
    max-width: 1000px;
}


/* =========================================
   FOOTER CLEANUP
   ========================================= */
.md-copyright {
    font-size: 0;
}

.md-copyright__highlight {
    font-size: 0.8rem;
    opacity: 0.8;
}


/* =========================================
   IMAGES (CENTERED + SCALED)
   ========================================= */

.md-typeset img {
    max-width: 75%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   TABLE STYLING
   ========================================= */

/* Zebra striping */
.md-typeset table tbody tr:nth-child(odd) {
    background-color: #f5f5f5;
}

.md-typeset table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Hover */
.md-typeset table tbody tr:hover {
    background-color: #e0e0e0;
}

/* Header */
.md-typeset table thead th {
    background-color: #e6e6e6;
    font-weight: bold;
}

/* Borders */
.md-typeset table,
.md-typeset table th,
.md-typeset table td {
    border: 1px solid #d0d0d0;
    border-collapse: collapse;
}

/* Spacing */
.md-typeset table {
    border-radius: 4px;
    overflow: hidden;
    margin: 1em 0;
}


/* =========================================
   TYPOGRAPHY
   ========================================= */
.md-typeset {
    font-size: 0.9rem;
    line-height: 1.6;
}

.md-typeset h1 {
    margin-bottom: 0.5em;
}

.md-typeset h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
