/* Flutter WebView – skjul web-navigasjon som appen har nativt */
body.mobil-innbygd .sidemeny,
body.mobil-innbygd #sidemeny-bunn,
body.mobil-innbygd .topp-bruker,
body.mobil-innbygd #impersonate-banner,
body.mobil-innbygd .topp {
    display: none !important;
}

/*
 * Android WebView scroller best på dokument-nivå, ikke inner div (.hovedinnhold).
 * Web bruker flex + overflow på .hovedinnhold – det fungerer dårlig innebygd.
 */
html.mobil-innbygd,
body.mobil-innbygd.app-layout {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.mobil-innbygd.app-layout {
    display: block !important;
}

body.mobil-innbygd .layout {
    display: block !important;
    overflow: visible !important;
    min-height: unset !important;
}

body.mobil-innbygd .hovedinnhold {
    overflow: visible !important;
    min-height: unset !important;
    height: auto !important;
    max-width: none;
    padding: 0.75rem;
}

body.mobil-innbygd .modal {
    z-index: 10000;
}

body.mobil-innbygd .modal-innhold {
    max-height: min(88vh, calc(100dvh - 2rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
