.right-report-sidebar {
    position: fixed;
    top: var(--right-sidebar-top-current, var(--right-sidebar-top, 56px));
    right: 0;
    bottom: 0;
    width: var(--right-report-sidebar-width, 230px);
    background: linear-gradient(180deg, #f7faff 0%, #f2f6fd 100%);
    color: #1f2a37;
    z-index: 1042;
    transform: translateX(100%);
    transition: transform 0.24s cubic-bezier(.22,.61,.36,1), box-shadow 0.24s cubic-bezier(.22,.61,.36,1), width 0.24s cubic-bezier(.22,.61,.36,1);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

body {
    --right-report-sidebar-space: 0px;
    --right-report-sidebar-collapsed-width: 88px;
    --right-report-tooltip-bg: rgba(14, 28, 53, 0.95);
    --right-report-tooltip-color: #f7fbff;
    --right-report-tooltip-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
    --right-report-tooltip-font-size: 0.77rem;
    --right-report-tooltip-offset: 14px;
}

.right-report-sidebar.is-open {
    transform: translateX(0);
    box-shadow: -10px 0 26px rgba(15, 23, 42, 0.12), -2px 0 8px rgba(30, 64, 175, 0.08);
}

.right-report-sidebar__header {
    position: relative;
    isolation: isolate;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--top-nav-h, 59px);
    min-height: var(--top-nav-h, 59px);
    padding: 8px 12px;
    background: var(--top-nav-bg, linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%));
    border-bottom: 2px solid rgba(96, 165, 250, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--top-nav-shadow, none);
}

.right-report-sidebar__header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
    pointer-events: none;
    z-index: 0;
}

.right-report-sidebar__header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0), rgba(30, 64, 175, 0.34), rgba(30, 64, 175, 0));
    z-index: 1;
    pointer-events: none;
}

.right-report-sidebar__title {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 570;
    letter-spacing: 0;
    color: var(--top-nav-link-color, #041126);
    text-shadow: 0 1px 0 rgba(255,255,255,.25);
    line-height: 1;
}

.right-report-sidebar__title i {
    line-height: 1;
    width: 15px;
    min-width: 15px;
    text-align: center;
    transform: translateY(-0.5px);
}

.right-report-sidebar__title i.mr-2 {
    margin-right: 0.35rem !important;
}

.right-report-sidebar__close {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: var(--top-nav-push-border, 1px solid rgba(148, 163, 184, 0.35));
    background: var(--top-nav-push-bg, rgba(255, 255, 255, 0.8));
    color: var(--top-nav-link-color, #041126);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--top-nav-push-shadow, 0 6px 16px rgba(15, 23, 42, 0.11));
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform 0.18s ease;
}

.right-report-sidebar__close:hover {
    background: var(--top-nav-push-bg-hover, rgba(255, 255, 255, 0.95));
    color: var(--top-nav-link-hover-color, #132e68);
    transform: translateY(-1px);
}

/* right-report-sidebar close button tooltip is rendered via JS floating tooltip. */

.right-report-sidebar__close i {
    line-height: 1;
    width: 15px;
    min-width: 15px;
    text-align: center;
    transform: translateY(-0.5px);
}

body.theme-darker .right-report-sidebar__header {
    background: var(--top-nav-bg, linear-gradient(180deg, #0f1d3a 0%, #0f1d3a 100%));
}

body.theme-darker {
    --right-report-tooltip-bg: rgba(10, 18, 34, 0.97);
    --right-report-tooltip-color: #e8f1ff;
    --right-report-tooltip-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.right-report-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
    padding: 6px 4px 20px 6px;
}

.right-report-sidebar__nav::-webkit-scrollbar {
    width: 2px;
}

.right-report-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.right-report-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border-radius: 999px;
}

.right-report-sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.68);
}

.right-report-floating-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(calc(-100% - 14px), -50%) translateX(6px);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    background: var(--right-report-tooltip-bg, rgba(14, 28, 53, 0.95));
    color: var(--right-report-tooltip-color, #f7fbff);
    font-size: var(--right-report-tooltip-font-size, 0.77rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    padding: 8px 11px;
    border-radius: 10px;
    box-shadow: var(--right-report-tooltip-shadow, 0 10px 24px rgba(2, 6, 23, 0.28));
    z-index: 1200;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.right-report-floating-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--right-report-tooltip-bg, rgba(14, 28, 53, 0.95));
}

.right-report-floating-tooltip.is-visible {
    opacity: 1;
    transform: translate(calc(-100% - 14px), -50%) translateX(0);
}

.right-report-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.right-report-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 15px;
    padding: 11px 11px;
    color: #1f2d3d;
    text-decoration: none;
    border: 1px solid #d5dfec;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 35, 70, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.right-report-sidebar__link:hover {
    color: #0b2f59;
    border-color: #9bb8dc;
    background: linear-gradient(180deg, #f5f9ff 0%, #eaf2ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(30, 64, 175, 0.16);
}

.right-report-sidebar__link:hover .right-report-sidebar__icon,
.right-report-sidebar__link:focus-visible .right-report-sidebar__icon {
    background: #2f75df;
    color: #fff;
    border-color: rgba(30, 64, 175, 0.34);
    box-shadow: 0 6px 12px rgba(30, 64, 175, 0.28);
    transform: translateY(-1px);
}

.right-report-sidebar__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #eaf2fd;
    color: #1e4f86;
    flex: 0 0 38px;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.right-report-sidebar__label {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 600;
    color: inherit;
    margin: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.right-report-sidebar__link.active {
    background: linear-gradient(180deg, #f7fbff 0%, #eaf2ff 100%);
    border-color: #bed5f6;
    color: #12345d;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.14);
}

.right-report-sidebar__link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.right-report-sidebar__link.active .right-report-sidebar__icon {
    background: #2f75df;
    color: #fff;
}

.right-report-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1041;
    background: rgba(14, 24, 38, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.right-report-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.has-right-report-sidebar-open {
    overflow: hidden;
}

body:not(.has-right-report-page) .right-report-sidebar {
    top: 0 !important;
}

body.has-right-report-sidebar-open:not(.has-right-report-page) .fab-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1366px) {
    body.has-right-report-page .right-report-sidebar {
        top: 0 !important;
    }

    body.has-right-report-page.has-right-report-sidebar-open {
        --right-report-sidebar-space: var(--right-report-sidebar-width, 230px);
        overflow: auto;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed {
        --right-report-sidebar-space: var(--right-report-sidebar-collapsed-width, 88px);
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar {
        width: var(--right-report-sidebar-collapsed-width, 88px);
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__title {
        display: none;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__header {
        justify-content: center;
        padding: 8px 6px;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__nav {
        padding: 6px 4px 30px 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable both-edges;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__list {
        gap: 8px;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__label {
        display: none;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link {
        justify-content: center;
        width: 64px;
        min-width: 64px;
        height: 64px;
        min-height: 64px;
        padding: 0;
        margin: 0 auto;
        border-radius: 13px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(15, 35, 70, 0.07);
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__icon {
        position: relative;
        margin: 0;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__icon::after {
        content: attr(data-tooltip);
        position: absolute;
        right: calc(100% + var(--right-report-tooltip-offset, 14px));
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
        background: var(--right-report-tooltip-bg, rgba(14, 28, 53, 0.95));
        color: var(--right-report-tooltip-color, #f7fbff);
        font-size: var(--right-report-tooltip-font-size, 0.77rem);
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: 0.01em;
        padding: 8px 11px;
        border-radius: 10px;
        box-shadow: var(--right-report-tooltip-shadow, 0 10px 24px rgba(2, 6, 23, 0.28));
        z-index: 1105;
        transition: opacity 0.16s ease, transform 0.16s ease;
        display: none;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__icon::before {
        content: "";
        position: absolute;
        right: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%) translateX(6px);
        opacity: 0;
        pointer-events: none;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 6px solid var(--right-report-tooltip-bg, rgba(14, 28, 53, 0.95));
        z-index: 1105;
        transition: opacity 0.16s ease, transform 0.16s ease;
        display: none;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:hover .right-report-sidebar__icon::after,
    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:hover .right-report-sidebar__icon::before,
    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:focus-visible .right-report-sidebar__icon::after,
    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:focus-visible .right-report-sidebar__icon::before {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    body.right-report-tooltip-suppressed.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__icon::after,
    body.right-report-tooltip-suppressed.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__icon::before {
        opacity: 0 !important;
        transform: translateY(-50%) translateX(6px) !important;
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:hover .right-report-sidebar__icon,
    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link:focus-visible .right-report-sidebar__icon {
        background: #2f75df;
        color: #fff;
        border-color: rgba(30, 64, 175, 0.34);
        box-shadow: 0 6px 12px rgba(30, 64, 175, 0.28);
        transform: translateY(-1px);
    }

    body.has-right-report-page.has-right-report-sidebar-open.has-right-report-sidebar-collapsed .right-report-sidebar__link.active::before {
        left: 0;
        right: auto;
        top: 9px;
        bottom: 9px;
        width: 4px;
        height: auto;
        border-radius: 0 4px 4px 0;
    }

    body.has-right-report-page.has-right-report-sidebar-open .right-report-backdrop {
        display: none !important;
    }

    body.has-right-report-page.has-right-report-sidebar-open .main-header,
    body.has-right-report-page.has-right-report-sidebar-open .content-wrapper {
        margin-right: 0 !important;
        padding-right: var(--right-report-sidebar-space) !important;
        box-sizing: border-box;
        transition: padding-right 0.26s ease;
    }

    body.has-right-report-page.has-right-report-sidebar-open .main-header {
        padding-right: calc(var(--right-report-sidebar-space) + 10px) !important;
    }

    body.has-right-report-page.has-right-report-sidebar-open .main-footer {
        margin-right: 0 !important;
        padding-right: calc(var(--right-report-sidebar-space) + 12px) !important;
        box-sizing: border-box;
        transition: padding-right 0.26s ease;
    }

    body.has-right-report-page.has-right-report-sidebar-open .sticky-filter-bar {
        right: var(--right-report-sidebar-space) !important;
        transition: right 0.26s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease, margin-left 0.3s ease;
    }

    body.has-right-report-page.has-right-report-sidebar-open .fab-container {
        right: calc(var(--right-report-sidebar-space) + 20px);
        transition: right 0.26s ease;
    }
}

@media (max-width: 991.98px) {
    .right-report-sidebar {
        top: var(--right-sidebar-top, 56px);
        width: min(var(--right-report-sidebar-width, 230px), 90vw);
        z-index: 1080;
    }

    .right-report-backdrop {
        z-index: 1079;
    }

    .right-report-sidebar__title {
        font-size: 0.95rem;
    }
}
