/* Critical responsive compatibility loader. */

/* The authenticated application now uses the header-only navigation shell.
   Do not retain the old centered/sidebar-constrained desktop canvas: every
   standard page must consume the complete width exposed by .mm-page-host. */
.mm-app-body.mm-app-body--header-shell .mm-page-shell {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

@media (max-width: 767.98px),
       (max-width: 991.98px) and (hover: none) and (pointer: coarse) {
    html {
        font-size: 14px;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    html,
    body,
    body.mm-body {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.mm-app-body,
    .mm-sidebar-collapsed body.mm-app-body {
        padding-left: 0 !important;
        padding-inline-start: 0 !important;
    }

    .mm-app-body .mm-app-main,
    .mm-app-body .mm-main-content,
    .mm-app-body .mm-page-host,
    .mm-app-body .mm-page-shell,
    .mm-app-body .mm-page-shell > *,
    .mm-public-content,
    .mm-public-content > *,
    .mm-public-header,
    .mm-public-header .mm-public-header__navbar,
    .mm-public-header .mm-public-header__container {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .mm-app-body .table-responsive,
    .mm-public-content .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .mm-public-header .navbar-brand,
    .mm-public-header .brand-logo--header {
        min-width: 0 !important;
        max-width: calc(100vw - 5.25rem) !important;
    }

    img,
    video,
    canvas,
    svg {
        max-width: 100%;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        max-width: 100%;
        font-size: 16px !important;
    }
}

@supports (overflow: clip) {
    @media (max-width: 767.98px),
           (max-width: 991.98px) and (hover: none) and (pointer: coarse) {
        html,
        body,
        body.mm-body {
            overflow-x: clip !important;
        }
    }
}
