/* EDO Business R139 — desktop document panel bottom aligned with rounded sidebar.
 * Only the dashboard route, never login, document detail, create, trash or settings.
 * R137 gives sidebar 10px top/bottom and app-main 10px padding. Align the
 * dashboard's list card with that same inner bottom edge, with internal scrolling.
 */
@media (min-width: 961px) and (min-height: 601px) {
  html body #root > .app-shell > .app-main:not(.edo-r42-settings-active):not(:has(> #edo-r56-trash-page:not([hidden]))):has(> .dashboard-page.edo-r26-ready) {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow-y: hidden !important;
  }
  html body #root > .app-shell > .app-main:not(.edo-r42-settings-active):not(:has(> #edo-r56-trash-page:not([hidden]))) > .dashboard-page.edo-r26-ready {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }
  html body #root > .app-shell > .app-main > .dashboard-page.edo-r26-ready > .edo-r26-process {
    flex: 0 0 auto !important;
  }
  html body #root > .app-shell > .app-main:not(.edo-r42-settings-active):not(:has(> #edo-r56-trash-page:not([hidden]))) > .dashboard-page.edo-r26-ready > .table-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  html body #root > .app-shell > .app-main > .dashboard-page.edo-r26-ready > .table-card > .edo-r26-toolbar {
    flex: 0 0 auto !important;
  }
  html body #root > .app-shell > .app-main > .dashboard-page.edo-r26-ready > .table-card > .table-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  html body #root > .app-shell > .app-main > .dashboard-page.edo-r26-ready > .table-card > .table-footer {
    flex: 0 0 auto !important;
    margin-top: auto !important;
    background: inherit;
  }
}
/* Short desktop windows keep their ordinary page scrolling so controls remain reachable. */
