/*
  GKMS app overrides

  Why this file exists:
  The upstream template sets a fixed min-height on the <body> when the sidebar is collapsed:
    body[data-sidebar-size=sm] { min-height: 1000px; }
  and in boxed layout:
    body[data-layout-size=boxed][data-sidebar-size=sm] #layout-wrapper { min-height: 1200px; }

  On shorter pages this creates a large blank area you can scroll into past the footer.
  These overrides keep the minimum height tied to the viewport while preserving natural page growth.
*/

body[data-sidebar-size="sm"],
body[data-sidebar-size=sm] {
  min-height: 100vh !important;
}

@media (min-width: 992px) {
  body[data-layout-size="boxed"][data-sidebar-size="sm"] #layout-wrapper,
  body[data-layout-size=boxed][data-sidebar-size=sm] #layout-wrapper {
    min-height: 100vh !important;
  }
}

