
/* Venda+ V5.2.3 - definitive vertical scroll owner */
html {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    position: static !important;
}
body,
body.v5 {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    position: static !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}
body.v5::before,
body.v5::after { max-height:none !important; }

.v5-shell,
.v5-main,
.v5-content,
.vm-inst,
.installer-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative;
}

.vm-inst,
.installer-wrap {
    padding-bottom: 100px !important;
}

/* Only these components may have their own scroll */
.v5-side {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
.v5-table {
    overflow-x: auto !important;
    overflow-y: visible !important;
    max-height: none !important;
}

/* Remove common full-screen locks from legacy/prototype rules */
body.v5 .app,
body.v5 .dashboard,
body.v5 .main,
body.v5 main {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

@media (max-width: 920px) {
    html {
        height: auto !important;
        min-height: 100% !important;
        overflow-y: scroll !important;
    }
    body, body.v5 {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: visible !important;
        position: static !important;
    }
    .v5-main,.v5-content,.v5-shell,.vm-inst,.installer-wrap {
        height:auto !important;
        max-height:none !important;
        overflow:visible !important;
    }
    .v5-content,.vm-inst,.installer-wrap {
        padding-bottom: max(110px, calc(90px + env(safe-area-inset-bottom))) !important;
    }
}
