/* KEMET Sidebar Mobile HF1. Match Tailwind lg (1024px), not Bootstrap md. */
.kemet-sidebar-backdrop[hidden], .kemet-sidebar-close {
    display: none !important;
}
@media (max-width: 1023px) {
    body.kemet-sidebar-mobile-open { overflow: hidden; }
    .thetop > .side-bar:not(.small-view-side-active) { display: none !important; }
    .thetop > .side-bar.small-view-side-active {
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 256px;
        max-width: calc(100vw - 56px);
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1040;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 0 24px rgba(0, 0, 0, .25);
        -webkit-overflow-scrolling: touch;
    }
    [dir="rtl"] .thetop > .side-bar.small-view-side-active { left: auto; right: 0; }
    .thetop > .side-bar.small-view-side-active > #side-bar { height: auto; flex-shrink: 0; }
    .kemet-sidebar-backdrop:not([hidden]) {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 1035;
        background: rgba(0, 0, 0, .45);
        touch-action: none;
    }
    .thetop > .side-bar.small-view-side-active > .kemet-sidebar-close {
        display: block !important;
        align-self: flex-end;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        margin: 4px;
        border-radius: 8px;
        background: #f3f4f6;
        color: #1f2937;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }
    .kemet-sidebar-close:focus-visible { outline: 2px solid #2f5e3e; outline-offset: 1px; }
}
@media (min-width: 1024px) {
    body.kemet-sidebar-collapsed .thetop > .side-bar { display: none !important; }
}
@media print {
    .thetop > .side-bar.small-view-side-active, .kemet-sidebar-backdrop, .kemet-sidebar-close { display: none !important; }
    body.kemet-sidebar-mobile-open { overflow: visible; }
}
