html {
    /* csslint ignore:start */
    /* The nav header is 3.5rem high, plus 20px for the margin-top of the
       main container. */
    scroll-padding-top: calc(3.5rem + 20px);
    /* csslint ignore:end */
}

.source-links {
    float: right;
}

#main-content img {
    max-width: 100%;
    display: inline-block;
    padding: 0px;
    line-height: 1.428571429;
    background-color: #ffffff;
    border: 0px solid #ffffff;
    border-radius: 0px;
    margin: 5px auto 5px auto;
}


hr {
    border-top: 1px solid #aaa;
}

pre, .rst-content tt {
    max-width: 100%;
    background: #fff;
    border: solid 1px #e1e4e5;
    color: #333;
    overflow-x: auto;
}

code.code-large, .rst-content tt.code-large {
    font-size: 90%;
}

code {
    padding: 2px 5px;
    background: #fff;
    border: solid 1px #e1e4e5;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre code {
    display: block;
    background: transparent;
    border: none;
    white-space: pre;
    word-wrap: normal;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

kbd {
    padding: 2px 4px;
    font-size: 90%;
    color: #fff;
    background-color: #333;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
}

a code {
    color: #2FA4E7;
}

a:hover code, a:focus code {
    color: #157AB5;
}

.modal-dialog {
    margin-top: 60px;
}

/*
 * Side navigation
 *
 * Scrollspy and affixed enhanced navigation to highlight sections and secondary
 * sections of docs content.
 */

.bs-sidebar.affix { /* csslint allow: adjoining-classes */
    /* csslint ignore:start */
    position: -webkit-sticky;
    position: sticky;
    /* csslint ignore:end */
    /* The nav header is 3.5rem high, plus 20px for the margin-top of the
       main container. */
    top: calc(3.5rem + 20px);
}

.bs-sidebar.card { /* csslint allow: adjoining-classes */
    padding: 0;
    max-height: 90%;
    overflow-y: auto;
}

/* Toggle (vertically flip) sidebar collapse icon */
.bs-sidebar .navbar-toggler span {
    -moz-transform: scale(1, -1);
    -webkit-transform: scale(1, -1);
    -o-transform: scale(1, -1);
    -ms-transform: scale(1, -1);
    transform: scale(1, -1);
}

.bs-sidebar .navbar-toggler.collapsed span { /* csslint allow: adjoining-classes */
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
}

/* First level of nav */
.bs-sidebar > .navbar-collapse > .nav {
    padding-top:    10px;
    padding-bottom: 10px;
    border-radius: 5px;
    width: 100%;
}

/* All levels of nav */
.bs-sidebar .nav > li > a {
    display: block;
    padding: 5px 20px;
    z-index: 1;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
    text-decoration: none;
    border-right: 1px solid;
}
.bs-sidebar .nav > li > a.active,
.bs-sidebar .nav > li > a.active:hover,
.bs-sidebar .nav > li > a.active:focus {
    font-weight: bold;
    background-color: transparent;
    border-right: 1px solid;
}

.bs-sidebar .nav .nav .nav {
    margin-left: 1em;
}

.bs-sidebar .nav > li > a {
    font-weight: bold;
}

.bs-sidebar .nav .nav > li > a {
    font-weight: normal;
}

.headerlink {
    font-family: FontAwesome;
    font-size: 14px;
    display: none;
    padding-left: .5em;
}

h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink{
    display:inline-block;
}



.admonition {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: left;
}

.admonition.note { /* csslint allow: adjoining-classes */
    color: #3a87ad;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.admonition.warning { /* csslint allow: adjoining-classes */
    color: #c09853;
    background-color: #fcf8e3;
    border-color: #fbeed5;
}

.admonition.danger { /* csslint allow: adjoining-classes */
    color: #b94a48;
    background-color: #f2dede;
    border-color: #eed3d7;
}

.admonition-title {
    font-weight: bold;
    text-align: left;
}

@media (max-width: 991.98px) {
    .navbar-collapse.show { /* csslint allow: adjoining-classes */
        overflow-y: auto;
        max-height: calc(100vh - 3.5rem);
    }
}

.dropdown-item.open { /* csslint allow: adjoining-classes */
    color: #fff;
    background-color: #2FA4E7;
}

.dropdown-submenu > .dropdown-menu {
    margin: 0 0 0 1.5rem;
    padding: 0;
    border-width: 0;
}

.dropdown-submenu > a::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a::after {
    border-left-color: #fff;
}

@media (min-width: 992px) {
    .dropdown-menu {
        overflow-y: auto;
        max-height: calc(100vh - 3.5rem);
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-menu {
        /* csslint ignore:start */
        position: fixed !important;
        /* csslint ignore:end */
        margin-top: -9px;
        margin-left: -2px;
        border-width: 1px;
        padding: 0.5rem 0;
    }

    .dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
        float: none;
    }

    .dropdown-submenu.pull-left > .dropdown-menu { /* csslint allow: adjoining-classes */
        left: -100%;
        margin-left: 10px;
    }
}

@media print {
    /* Remove sidebar when print */
    #sidebar-holder { display: none; }
}

/* =====================================================
   TYPOGRAPHY IMPROVEMENTS
   ===================================================== */

/* Main body text */
body {
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #2b2f33;
}

/* Better paragraph and list readability */
p,
li {
    line-height: 1.7;
}

/* Paragraph spacing */
p {
    margin-bottom: 1rem;
}

/* =====================================================
   HEADER HIERARCHY
   ===================================================== */

h1 {
    font-size: 2.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    font-weight: 600;
    color: #1f3b57;
    border-bottom: 1px solid #d9e2ec;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: #2c4c6b;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3b5d7e;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #4b6f91;
}

/* Slightly softer spacing for smaller headers */
h5,
h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #5c7085;
}

/* =====================================================
   CONTENT WIDTH & SPACING
   ===================================================== */

/* Prevent lines becoming too wide */
#main-content {
    max-width: 900px;
}

/* More breathing room between sections */
section {
    margin-bottom: 4rem;
}

/* =====================================================
   SIDEBAR CLEANUP
   ===================================================== */

/* Sidebar overall */
.bs-sidebar {
    font-size: 0.95rem;
    max-width: 255px;
    margin-top: 1.8rem;
}

/* Sidebar container */
.bs-sidebar.card {
    padding-right: 0;
}

/* Main navigation items */
.bs-sidebar .nav > li > a {
    color: #33475b;
}

/* Hover state */
.bs-sidebar .nav > li > a:hover {
    background-color: #f5f7fa;
    color: #1f3b57;
    border-right: 2px solid #d6dee6;
}

/* Active/current page */
.bs-sidebar .nav > li > a.active,
.bs-sidebar .nav > li > a.active:hover {
    color: #1f3b57;
    border-right: 2px solid #4b6f91;
    background-color: #f8fafc;
}

/* Nested navigation */
.bs-sidebar .nav .nav > li > a {
    color: #55697d;
}

/* Third-level navigation */
.bs-sidebar .nav .nav .nav > li > a {
    color: #6b7d90;
}

.bs-sidebar.affix {
    position: sticky;
    top: 110px;
}

.bs-sidebar {
    font-size: 0.95rem;
    max-width: 255px;
}

/* =====================================================
   TABLE IMPROVEMENTS
   ===================================================== */

/* Table wrapper */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.8rem;
    margin-bottom: 2;
    font-size: 0.95rem;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03);
}

/* Header row */
thead {
    background-color: #f4f7fa;
}

th {
    text-align: left;
    font-weight: 600;
    color: #1f3b57;
    padding: 10px 14px;
    border-bottom: 1px solid #d9e2ec;
}

/* Table cells */
td {
    padding: 9px 14px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    color: #2b2f33;
}

/* Zebra striping */
tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

/* Hover effect */
tbody tr:hover {
    background-color: #f4f8fb;
}

/* Remove heavy final border */
tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   IMAGE IMPROVEMENTS
   ===================================================== */

#main-content img {
    max-width: 95%;
    height: auto;
    display: block;

    margin: 1rem auto;
    padding: 0;

    background-color: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03);
}

/* Better spacing around image paragraphs */
#main-content p:has(img) {
    margin: 2rem 0;
}

/* =====================================================
   CODE BLOCK IMPROVEMENTS
   ===================================================== */

pre code {
    font-size: 13px;
    line-height: 1.5;
}

/* Inline code readability */
code {
    font-size: 0.95em;
}

/* =====================================================
   MOBILE READABILITY
   ===================================================== */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    #main-content {
        max-width: 100%;
    }

    .bs-sidebar {
        max-width: 100%;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 8px 10px;
    }
}

/* =====================================================
   DROPDOWN / DETAILS STYLING
   ===================================================== */

   details {
    margin-top: 1rem;
    margin-bottom: 1.5rem;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03);

    overflow: hidden;
}

/* Clickable button */
details summary {
    cursor: pointer;
    list-style: none;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 20px;

    font-weight: 280;
    color: #2c4c6b;

    background: #ffffff;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

/* Remove default browser arrow */
details summary::-webkit-details-marker {
    display: none;
}

/* Custom arrow */
details summary::after {
    content: "▸";
    font-size: 1.5rem;
    color: #4b6f91;
    transition: transform 0.2s ease;
}

/* Hover state */
details summary:hover {
    transform: translateY(-1px);

    border-color: #cbd5e1;

    box-shadow:
        0 4px 8px rgba(0,0,0,0.05),
        0 8px 20px rgba(0,0,0,0.04);
}

/* Open state */
details[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

/* Rotate arrow when open */
details[open] summary::after {
    transform: rotate(90deg);
}

/* Content container */
details table,
details p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Dropdown content */
details[open] > *:not(summary) {
    background: #ffffff;

    border-left: 0px solid #e2e8f0;
    border-right: 0px solid #e2e8f0;
}

/* Bottom of card */
details[open] > *:last-child {
    border-bottom: 0px solid #e2e8f0;

    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;

    margin-bottom: 0;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03);
}

/* Table becomes part of dropdown card */
details table {
    margin: 0;
    border-top: none;

    border-radius: 0 0 14px 14px;

    box-shadow: none;
}

/* =====================================================
   KNOWLEDGE BASE PRODUCT BUTTONS
   ===================================================== */

.kb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.kb-product-card {
    display: flex;
    flex-direction: column;

    padding: 1.25rem;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 12px rgba(0,0,0,0.03);

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.kb-product-card strong {
    color: #1f3b57;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.kb-product-card span {
    color: #5c7085;
    font-size: 0.9rem;
    line-height: 1.4;
}

.kb-product-card:hover {
    transform: translateY(-2px);

    border-color: #cbd5e1;

    box-shadow:
        0 4px 8px rgba(0,0,0,0.05),
        0 8px 20px rgba(0,0,0,0.04);
}

@media (max-width: 992px) {
    .kb-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .kb-product-grid {
        grid-template-columns: 1fr;
    }
}

/* Changelog cards */

.kb-changelog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (max-width: 992px) {
    .kb-changelog-grid {
        grid-template-columns: 1fr;
    }
}

.search-btn {
    margin-top: 0.1rem;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}