#mobileOpenCaseScreen {
    display: none;
}

#mobileCaseNav {
    display: none;
}

#mobileUnavailableOverlay {
    display: none;
}

@media (max-width: 480px), (max-height: 480px) {
    #mobileOpenCaseScreen {
        display: block;
    }

    #searchForm {
        display: none;
    }

    #navUsersLink,
    #navManualLink,
    #navStatisticsLink,
    #navCasesManagementLink,
    #navAdminLink {
        display: none;
    }

    #navUsername {
        max-width: 30vw;
    }

    #navLogoutForm {
        margin-left: 1.5rem;
    }

    #mobileCaseNav {
        display: block;
        position: fixed;
        bottom: 5rem;
        right: 1rem;
        z-index: 1050;
        text-align: end;
    }

    #mobileCaseNavToggle {
        width: 3.2rem;
        height: 3.2rem;
        box-shadow: var(--ga-shadow, 0 4px 12px rgba(0, 0, 0, .25));
    }

    #mobileCaseNavMenu {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        margin-bottom: .75rem;
        min-width: 12rem;
        padding: .75rem;
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: .5rem;
        box-shadow: var(--ga-shadow, 0 4px 12px rgba(0, 0, 0, .25));
    }

    #mobileCaseNavMenu .btn {
        background-color: var(--bs-body-bg);
    }

    /* The #mobileCaseNavMenu .btn rule above (an ID selector) outranks
       Bootstrap's own .btn:hover rule on background-color, but not on
       color -- without this, hover ends up with Bootstrap's white hover
       text on our still-light background, making the label unreadable. */
    #mobileCaseNavMenu .btn:hover,
    #mobileCaseNavMenu .btn:focus {
        background-color: var(--bs-btn-hover-bg, #0d6efd);
        color: var(--bs-btn-hover-color, #fff);
    }

    #caseDescriptionSection,
    #meddream_iframe {
        display: none;
    }

    #caseDescriptionSection.mobile-section-visible,
    #meddream_iframe.mobile-section-visible {
        display: block;
        height: 70vh;
        max-height: none;
    }

    #caseViewActionsBar {
        display: none;
    }

    .qcm-side-panel {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
    }

    .qcm-resize-handle {
        display: none;
    }

    #mobileUnavailableOverlay {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 2000;
        background-color: var(--bs-body-bg);
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    #mobileUnavailableCard i {
        font-size: 3rem;
        color: var(--bs-secondary-color, #6c757d);
        margin-bottom: 1rem;
    }

    #casesManagementTableRow {
        display: none;
    }
}
