/**
 * SAMP v4.10.135-r3 — Reports 940 seven-day default / short-content footer fix.
 * Scope: Reports 940 page only. The global footer remains normal document flow.
 */

/* Root CSS zoom scales 100dvh itself. event-bindings publishes the inverse-
   compensated viewport height so the Reports 940 shell still reaches the
   physical bottom edge at 80%, 90%, 100%, 110% and 125%. */
body:not(.auth-locked).dashboard-active main {
  min-height: var(--samp-zoom-compensated-viewport-height, 100dvh) !important;
}

body:not(.auth-locked).dashboard-active main > #dashboard-view.active:not([hidden]) {
  flex: 1 0 auto !important;
}

/* Keep the IP footer after content. Auto margin consumes only unused shell
   space; long tables naturally push it below the content instead. */
body:not(.auth-locked).dashboard-active .platform-footer {
  position: static !important;
  inset: auto !important;
  margin-top: auto !important;
}

@supports not (height: 100dvh) {
  body:not(.auth-locked).dashboard-active main {
    min-height: var(--samp-zoom-compensated-viewport-height, 100vh) !important;
  }
}
