/* ==========================================================================
   mobile-responsive.css — LabCare Elite
   Full responsive system: Mobile (< 768px) | Tablet (768–1023px) | Desktop (≥ 1024px)
   ========================================================================== */

/* ==========================================================================
   1. MOBILE TOP BAR  (shown only on mobile)
   ========================================================================== */
.mobile-top-bar {
    display: none; /* hidden on desktop by default */
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 9998;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.mobile-brand {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.3px;
}

.mobile-hamburger-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: #4f46e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.mobile-hamburger-btn:active {
    background: #e0e7ff;
}

/* ==========================================================================
   2. MOBILE BACKDROP OVERLAY
   ========================================================================== */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   3. GLOBAL BASE RESETS
   ========================================================================== */
* {
    box-sizing: border-box;
}

/* ==========================================================================
   4. MOBILE  (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

    /* ── Root Layout: fluid height, enabled vertical scroll ── */
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #lc-app-root {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* ── Mobile top bar: never grows/shrinks ── */
    .mobile-top-bar {
        display: flex !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 9998 !important;
    }

    /* ── Show mobile backdrop only when active ── */
    .mobile-backdrop {
        display: none;
    }
    .mobile-backdrop.active {
        display: block !important;
    }

    /* ── Sidebar as slide-out drawer — NON-scrollable outer container ── */
    #sidebar.sidebar-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 260px !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.18) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #sidebar.sidebar-wrapper.mobile-open {
        left: 0 !important;
    }

    /* Branding row — pinned at top of drawer, never scrolls */
    #sidebar .sidebar-branding {
        flex-shrink: 0 !important;
        background: #f1f5f9 !important;
    }

    /* Menu area — ONLY this part scrolls inside the drawer */
    #sidebar .menu-scroll {
        flex: 1 1 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        min-height: 0 !important;
        padding-bottom: 180px !important;
    }

    /* Footer (user profile + logout) — pinned at bottom of drawer */
    #sidebar .sidebar-footer {
        flex-shrink: 0 !important;
        background: #f1f5f9 !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    /* ── Main content column & Page Containers: fully scrollable ── */
    #main-content {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }

    /* ── Workspace tab bar — sticky at top of main content ── */
    #main-content .workspace-tabs-bar {
        flex-shrink: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
    }

    /* ── Inner page content area & All Page Wrappers ── */
    #main-content > div.flex-1,
    .dch-page-container,
    .billing-page-wrapper,
    .rate-master-page,
    .lc-page-wrapper,
    .content {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }


    /* ── Workspace tab bar — horizontal scroll, condensed ── */
    .workspace-tabs-bar {
        padding: 4px 8px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 4px !important;
    }

    .workspace-tab {
        flex-shrink: 0 !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    .workspace-tab-title {
        max-width: 90px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* ───────────────────────────────────────────
       PAGE WRAPPERS
       ─────────────────────────────────────────── */
    .lc-page-wrapper {
        padding: 10px 12px !important;
        gap: 12px !important;
    }

    .content {
        padding: 10px 12px !important;
    }

    /* ───────────────────────────────────────────
       CARDS — full-width, proper padding
       ─────────────────────────────────────────── */
    /* ── Shared base card ── */
    .lc-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Registration & Master page card mobile enhancements */
    .register-container {
        min-width: 100% !important;
        width: 100% !important;
        padding: 12px 8px !important;
        overflow-x: hidden !important;
    }

    .register-container::before,
    .register-container::after {
        display: none !important;
    }

    .register-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }

    .lc-card-header {
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .lc-card-body {
        padding: 12px 14px !important;
    }

    /* Billing cards & layout */
    .billing-page-wrapper {
        width: 100% !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 90px !important;
    }

    .bl-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
        box-sizing: border-box !important;
        /* Reduce card internal padding on mobile */
        padding: 12px 12px !important;
    }

    /* Card section titles — smaller on mobile */
    .bl-card-title {
        font-size: 11px !important;
        letter-spacing: 0.03em !important;
        margin-bottom: 10px !important;
    }

    .bl-card-title .material-symbols-outlined,
    .bl-card-title .text-blue {
        font-size: 15px !important;
    }

    .bl-main-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    /* Tests table — compact & horizontally scrollable on mobile */
    .bl-table-container {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        max-height: 300px !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 8px !important;
    }

    /* Make bl-table cells compact */
    .bl-table th {
        font-size: 9px !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }
    .bl-table td {
        font-size: 10px !important;
        padding: 5px 8px !important;
        white-space: nowrap !important;
    }
    .bl-table .test-name {
        font-size: 10px !important;
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .bl-table {
        min-width: 460px !important;
    }

    /* Referral section — compact inputs */
    .referral-card .bl-input,
    .referral-card .bl-select {
        height: 30px !important;
        font-size: 11px !important;
        padding: 2px 8px !important;
    }
    .referral-card .bl-input-label {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }

    /* Tests card search bar */
    .bl-search-test-row {
        margin-top: 10px !important;
    }
    .bl-test-search {
        font-size: 11px !important;
        height: 32px !important;
    }

    /* Remarks row under tests table */
    .bl-remarks-row {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .bl-report-date {
        width: 100% !important;
        font-size: 11px !important;
    }
    .bl-remarks-row .bl-input {
        height: 30px !important;
        font-size: 11px !important;
    }

    /* Tests card stats badge */
    .bl-tests-stats {
        font-size: 10px !important;
    }
    .stat-item .stat-val {
        font-size: 13px !important;
    }
    .stat-item .stat-lbl {
        font-size: 8px !important;
    }


    /* Rate master cards */
    .rm-header-card,
    .rm-controls-card,
    .rm-footer-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 12px !important;
        border-radius: 12px !important;
    }

    /* Due collection stat cards */
    .dc-stat-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Header/title areas inside cards */
    .lc-master-header {
        height: auto !important;
        padding: 12px 14px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        position: relative !important;  /* unstick on mobile to save space */
    }

    .header-left-content {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    .header-controls {
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .search-input-field {
        width: 100% !important;
        min-width: unset !important;
    }

    /* ───────────────────────────────────────────
       GRID LAYOUTS — collapse to single column
       ─────────────────────────────────────────── */
    .bl-careof-grid {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 8px;
    }

    .bl-dob-gender-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bl-scheme-commission-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bl-referral-grid {
        display: grid;
        grid-template-columns: 1fr 1.3fr 1.3fr;
        gap: 8px;
    }

    .referral-card,
    .tests-card,
    .patient-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .lc-form-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .bl-main-grid,
    .rm-grid-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* ───────────────────────────────────────────
       BILLING HEADER BAR
       ─────────────────────────────────────────── */
    .bl-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }

    .bl-header-item,
    .header-select,
    .branch-select-width {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* ───────────────────────────────────────────
       TABLES — ALL wrappers get horizontal scroll
       Covers every variant used across all pages:
       table-wrapper, dc-table-wrapper, dch-table-wrapper,
       sc-table-wrapper, re-table-wrapper, re-fv-table-wrapper,
       bl-table-wrapper, lc-table-container
       ─────────────────────────────────────────── */
    .table-wrapper,
    .dc-table-wrapper,
    .dch-table-wrapper,
    .sc-table-wrapper,
    .re-table-wrapper,
    .re-fv-table-wrapper,
    .bl-table-wrapper,
    .lc-table-container,
    .dc-table-container,
    .vb-table-container,
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        /* remove any fixed heights that clip on mobile */
        max-height: none !important;
    }

    /* All actual table elements: let them be as wide as needed */
    .table-wrapper table,
    .dc-table-wrapper table,
    .dch-table-wrapper table,
    .sc-table-wrapper table,
    .re-table-wrapper table,
    .re-fv-table-wrapper table,
    .bl-table-wrapper table,
    .lc-table-container table,
    .dc-table-container table,
    .vb-table-container table,
    .directory-table,
    .dc-table,
    .vb-table,
    .dch-table,
    .lc-table {
        min-width: 900px !important; /* Ensures all table columns render horizontally without vertical letter wrapping */
        width: 100% !important;
        table-layout: auto !important;
    }

    /* Force horizontal cell text display for all ViewBills & DueCollection table cells */
    .dch-table td,
    .dch-table th,
    .dch-table-td,
    .dch-table-td-dark,
    .dch-table-td-blue,
    .dch-table-td-bold,
    .dch-table-td-center,
    .dc-table td,
    .dc-table th,
    .vb-table td,
    .vb-table th {
        white-space: nowrap !important;
        word-break: normal !important;
        writing-mode: horizontal-tb !important;
    }

    /* Fix pagination footer layout on mobile viewports */
    .dch-pagination-container,
    .pagination-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 12px 8px !important;
    }

    .pagination-info {
        text-align: center !important;
        font-size: 11px !important;
    }

    .pagination-btns {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    /* ───────────────────────────────────────────
       STAT / FOOTER CARDS & VIEWBILLS RESPONSIVE
       ─────────────────────────────────────────── */
    .dc-footers {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .dch-footer-summary-container {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .dch-filter-grid-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dch-filter-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .dch-actions-left,
    .dch-actions-right {
        width: 100% !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    /* ───────────────────────────────────────────
       MODALS & DIALOGS — full-width
       ─────────────────────────────────────────── */
    .branch-modal-card,
    .bl-doctor-modal-card,
    .tm-modal-content,
    .access-denied-card,
    .lc-modal {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        margin: 12px !important;
        border-radius: 14px !important;
    }
    [class*="modal-content"],
    [class*="dialog-card"] {
        width: calc(100vw - 24px) !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        margin: 12px !important;
        border-radius: 14px !important;
    }

    /* ─────────────────────────────────────────
       INPUTS, SELECTS, BUTTONS
       ───────────────────────────────────────── */
    input, select, textarea {
        font-size: 16px !important; /* prevents iOS zoom */
        touch-action: manipulation;
        max-width: 100%;
    }

    button {
        touch-action: manipulation;
        min-height: 38px;
    }

    /* ───────────────────────────────────────────
       FLOATING ELEMENTS (.fab-container) & INLINE OVERRIDES (< 768px)
       ─────────────────────────────────────────── */
    /* Bottom action bar responsive wrapping */
    .bl-bottom-bar {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        border-top: 2px solid #e2e8f0 !important;
        padding: 8px 10px !important;
        z-index: 950 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box !important;
    }

    .bbar-actions {
        margin-left: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
    }

    /* SAVE and CLEAR fill the top row */
    .bbar-actions .bl-btn-save,
    .bbar-actions .bl-btn-clear {
        grid-column: span 1 !important;
    }

    /* Letterhead label takes a compact row */
    .bbar-actions label {
        grid-column: span 1 !important;
        font-size: 11px !important;
        height: auto !important;
        margin: 0 !important;
        justify-content: center !important;
    }

    /* PREVIEW and PRINT share the next row */
    .bbar-actions .bl-btn-preview,
    .bbar-actions .bl-btn-print {
        grid-column: span 1 !important;
    }

    .bbar-actions .bl-btn {
        width: 100% !important;
        min-width: unset !important;
        height: 34px !important;
        font-size: 11px !important;
        padding: 0 8px !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .fab-container,
    [class*="fab-container"],
    .floating-action-button {
        position: static !important;
        transform: none !important;
        margin: 12px 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        z-index: 10 !important;
    }

    .dch-table-wrapper[style*="overflow: visible"],
    [class*="-table-wrapper"][style*="overflow: visible"] {
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Prevent floating badges from overlapping search boxes */
    [class*="badge"],
    .floating-badge,
    .main-branch-badge,
    div[style*="background-color: rgb(0, 200"],
    div[style*="background-color: #00c8"],
    div[style*="Main Branch"] {
        position: static !important;
        transform: none !important;
        margin-top: 8px !important;
        margin-left: 0 !important;
        display: inline-flex !important;
        max-width: 100% !important;
        z-index: 1 !important;
    }


    /* Accessibility Focus & ARIA touch enhancements */
    a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex="0"]:focus {
        outline: 2px solid #4f46e5 !important;
        outline-offset: 2px !important;
    }

    /* Customer Master & Directory Page Mobile Layout */
    .master-search-bar,
    .search-customers-wrapper,
    [class*="header-card"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .master-search-bar input,
    .search-customers-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ───────────────────────────────────────────
       TYPOGRAPHY SCALE DOWN
       ─────────────────────────────────────────── */
    h1, .lc-page-title {
        font-size: 20px !important;
    }

    h2, .lc-section-title {
        font-size: 16px !important;
    }

    h3, .card-title, .bl-card-title {
        font-size: 10px !important;
    }


    /* ─────────────────────────────────────────
       HIDE NON-ESSENTIAL UI ON MOBILE
       ───────────────────────────────────────── */
    .sidebar-toggle-btn {
        display: none !important;
    }
}

/* ── Extra small phones (< 400px) ── */
@media (max-width: 399px) {
    html, body, #lc-app-root {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #main-content,
    #main-content > div.flex-1,
    .lc-page-wrapper,
    .content,
    .billing-page-wrapper,
    .rate-master-page,
    .dc-bottom-section,
    .mobile-card-list,
    .bl-main-grid {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: none !important;
    }

    .dc-footers,
    [class*="stat-grid"] {
        grid-template-columns: 1fr !important;
    }

    .bl-careof-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .bl-dob-gender-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .bl-scheme-commission-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .bl-referral-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Footer bar: 2x2 grid layout at 399px */
    .bbar-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px !important;
    }

    .bbar-actions .bl-btn {
        height: 30px !important;
        font-size: 10px !important;
        padding: 0 6px !important;
    }

    .bbar-actions label {
        font-size: 10px !important;
    }

    /* Tests table further compact at 399px */
    .bl-table th {
        font-size: 8px !important;
        padding: 4px 6px !important;
    }
    .bl-table td {
        font-size: 9px !important;
        padding: 4px 6px !important;
    }
    .bl-table {
        min-width: 400px !important;
    }

    .workspace-tab-title {
        max-width: 64px !important;
    }
}


/* ==========================================================================
   5. TABLET  (768px – 1023px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px) {

    /* ── Layout stays side-by-side but sidebar is narrower ── */
    #lc-app-root {
        flex-direction: row !important;
    }

    /* ── Content padding ── */
    .content {
        padding: 16px 20px !important;
    }

    /* ── Cards adapt ── */
    .lc-card,
    .bl-card,
    [class*="-card"]:not(.mobile-hamburger-btn):not(.profile-avatar) {
        padding: 18px 16px !important;
    }

    /* ── Two-column grids collapse to two columns (keep them) ── */
    .bl-main-grid,
    .rm-grid-container {
        gap: 16px !important;
    }

    /* ── Billing header wraps ── */
    .bl-header-bar {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .header-select,
    .branch-select-width {
        min-width: 140px !important;
    }

    /* ── Stat footer cards — 2 per row ── */
    .dc-footers {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ── ViewBills Filter Grid adaptation on Tablet (768-1023px) ── */
    .dch-filter-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .dch-footer-summary-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* ── Tables scroll if wide ── */
    .dc-table-wrapper,
    .dch-table-wrapper,
    .table-responsive,
    .grid-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Modals narrow on tablet ── */
    .branch-modal-card,
    .bl-doctor-modal-card,
    .tm-modal-content,
    [class*="modal-card"],
    [class*="modal-content"] {
        max-width: 480px !important;
        width: calc(100vw - 48px) !important;
    }

    /* ── Mobile bar stays hidden on tablet ── */
    .mobile-top-bar {
        display: none !important;
    }

    .mobile-backdrop {
        display: none !important;
    }
}

/* ==========================================================================
   6. DESKTOP  (≥ 1024px)  — ensure mobile elements are hidden
   ========================================================================== */
@media (min-width: 1024px) {
    .mobile-top-bar {
        display: none !important;
    }

    .mobile-backdrop {
        display: none !important;
    }

    #sidebar.sidebar-wrapper {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-self: stretch !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
}
