/* Conservative print layer. Feature-owned PDF and service-folder rules retain geometry. */
html[data-pp-ui] body::before,
html[data-pp-ui] body::after,
html[data-pp-ui] .portal-app-shell::before,
html[data-pp-ui] .portal-app-shell::after,
html[data-pp-ui] .portal-login-bg {
  display: none !important;
}

html[data-pp-ui] :where(
  .portal-sidebar,
  .portal-mobile-bar,
  .no-print,
  .pp-no-print,
  .pp-toast-region,
  .gvg-help-modal,
  .gvg-footer-links button
) {
  display: none !important;
}

html[data-pp-ui] .portal-main,
html[data-pp-ui][data-pp-surface="workspace"] .portal-main,
html[data-pp-ui][data-pp-surface="workspace"] body > main:not(.portal-main),
html[data-pp-ui][data-pp-surface="workspace"] body > .shell > main {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-pp-ui] :where(
  .panel,
  .portal-panel,
  .case-panel,
  .account-card,
  .access-card,
  .family-card,
  .wizard-panel,
  .metric,
  .metric-card,
  .kpi,
  .portal-context-header,
  .workspace-hero,
  .case-hero,
  .billing-hero,
  .pp-state-card
):not(.virtual-folder-page):not(.form-preview):not(.virtual-folder-page *):not(.form-preview *) {
  box-shadow: none !important;
  backdrop-filter: none !important;
  break-inside: avoid;
}

html[data-pp-ui] :where(
  .pp-table-scroll,
  .table-scroll,
  .table-shell,
  .table-wrap,
  .records-table-wrap,
  .calendar-shell
):not(.virtual-folder-page *):not(.form-preview *) {
  overflow: visible !important;
  box-shadow: none !important;
}

html[data-pp-ui] .gvg-site-footer {
  margin: 1.5rem 0 0 !important;
  padding: 0.75rem 0 !important;
  box-shadow: none !important;
}
