/* Remove rounded corners for applications */

:root {
  --body-container-margin: 0px;
  --body-container-radius: 0px;
}
 
/* Remove margins around the application frame */

#content, .content {
  margin-left:0 !important;
  margin-right:0 !important;
  margin-bottom:0 !important;
  width:100% !important;
  height: calc(var(--body-height) + var(--body-container-margin)) !important;
}

/* Fix visual glitches in the navigation area
   if no background image is selected */

#app-navigation, .app-navigation {
  backdrop-filter:none !important;
}

/* Remove rounded corners in the mobile view */

#content, #app-navigation {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

#content, .content {
  margin-left:0 !important;
  margin-right:0 !important;
  margin-bottom:0 !important;
  width:100% !important;
  height: calc(var(--body-height) + var(--body-container-margin)) !important;
}

/* Make quota display non-clickable since selecting this element
   does not do anything at all */

.app-files #quota {
  pointer-events:none;
}

/* Fix for "new" menu entries in the files app */

#content[class*=app-] .bubble li > button, #content[class*=app-] .bubble li > a, #content[class*=app-] .bubble li > .menuitem, #content[class*=app-] .app-navigation-entry-menu li > button, #content[class*=app-] .app-navigation-entry-menu li > a, #content[class*=app-] .app-navigation-entry-menu li > .menuitem, #content[class*=app-] .popovermenu li > button, #content[class*=app-] .popovermenu li > a, #content[class*=app-] .popovermenu li > .menuitem {
  width: 100%;
}

/* Fix for the third button in the calendar app */

.app-calendar .button-vue--vue-tertiary {
  margin-top: 4px;
}

.app-calendar .app-navigation-toggle {
  margin-top: 0px;
}

/* Fix for contacts menu: width of entries is limited to the
   available width of the menu */

#header .header-right > div#contactsmenu > .menu .contact .body {
  overflow-x: hidden;
}

/* Bigger font size for the text editor */

.text-editor__wrapper div.ProseMirror p {
  font-size:16px;
}

/* Fix unexpected left margin for headings in the text editor if
   they contain the word "Nextcloud" */

.text-editor__wrapper div.ProseMirror #nextcloud {
  padding-left: 0 !important;
}

/* Correct height for OnlyOffice (NC 25.0.0) */

#app > iframe {
  height:calc(100vh - 50px);
} 

/* Correct height for OnlyOffice (NC 25.0.1) */

#onlyofficeFrame {
  height:calc(100vh + 8px);
}
 
/* Draw.io without additional scroll bar */

.app-drawio > #app-content {
  overflow:hidden;
}