/* Full-height ONLYOFFICE editor without the Nextcloud navigation header. */
body#body-user:has(#content.app-onlyoffice) {
    overflow: hidden;
}

body#body-user:has(#content.app-onlyoffice) #header {
    display: none !important;
}

body#body-user:has(#content.app-onlyoffice) #content.app-onlyoffice {
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body#body-user:has(#content.app-onlyoffice) #content.app-onlyoffice #app,
body#body-user:has(#content.app-onlyoffice) #content.app-onlyoffice #iframeEditor {
    height: 100% !important;
    min-height: 100% !important;
}

body#body-user:has(#content.app-onlyoffice) #content.app-onlyoffice #app > iframe {
    top: 0 !important;
    height: 100dvh !important;
    margin-top: 0 !important;
}

/* Distraction-free Notes: keep new, search, note list and editor only. */
body#body-user:has(#content-vue.app-notes) {
    overflow: hidden;
}

body#body-user:has(#content-vue.app-notes) #header,
body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-navigation,
body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-navigation-toggle {
    display: none !important;
}

body#body-user:has(#content-vue.app-notes) #content-vue.app-notes {
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-content {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin-inline-start: 0 !important;
}

body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-content-wrapper,
body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-content-list,
body#body-user:has(#content-vue.app-notes) #content-vue.app-notes .app-content-details {
    height: 100% !important;
    min-height: 100% !important;
}