/**
 * App shell layout — footer sits directly under content at every viewport size.
 * Avoids flex + min-height: 100vh gap that grows as the window gets shorter/narrower.
 */

body.onduty-app-page,
body.onduty-app-page #page,
body.onduty-app-page #content,
body.onduty-app-page main#content,
body.onduty-app-page .site-content,
body.onduty-app-page .site-content .ast-container {
	min-height: 0 !important;
	height: auto !important;
}

body.onduty-app-page #page {
	display: block !important;
}

body.onduty-app-page #content,
body.onduty-app-page main#content,
body.onduty-app-page .site-content,
body.onduty-app-page .site-content .ast-container {
	flex: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

body.onduty-app-page .onduty-app-footer {
	display: none !important;
	margin-top: 0 !important;
}

body.page-template-on-duty-php #onduty-wizard,
body.page-template-on-duty-php .wizard-section {
	min-height: 0 !important;
	height: auto !important;
}

/* Auth / HR pages keep centered shells without stretching #page. */
body.onduty-app-page .onduty-login-standalone.onduty-app-shell,
body.onduty-app-page .onduty-register-standalone.onduty-app-shell,
body.onduty-app-page .onduty-password-reset-standalone.onduty-app-shell,
body.page-id-1060 .onduty-hr-standalone.onduty-app-shell {
	min-height: min(720px, calc(100vh - var(--od-header-height, 88px)));
	min-height: min(720px, calc(100dvh - var(--od-header-height, 88px)));
}
