/* Global print stylesheet — hide chrome, show only content */
@media print {
  .mud-drawer,
  .mud-appbar,
  .mud-navmenu,
  nav,
  header,
  footer,
  .no-print,
  .mud-snackbar-provider,
  .mud-overlay,
  .mud-dialog-container,
  .language-switcher,
  a[href]::after {
    display: none !important;
    content: none !important;
  }

  /* Stop browsers from appending URLs after links */
  a[href]:after,
  a[href][href]:after {
    content: "" !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mud-layout,
  .mud-main-content,
  main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mud-paper {
    box-shadow: none !important;
    border: none !important;
  }

  .print-only {
    display: block !important;
  }
}

.print-only {
  display: none;
}

/* Extra: never print navigation or URL decoration */
@media print {
  .admin-shell .mud-drawer-content,
  .admin-shell .mud-appbar-fixed,
  .public-nav,
  .public-header,
  .public-footer,
  .mud-input-control,
  .mud-button-root,
  button {
    display: none !important;
  }
  /* Keep explicit print buttons hidden */
  .no-print button,
  .no-print .mud-button-root {
    display: none !important;
  }
  /* Content area full width */
  .print-content {
    padding: 0 !important;
    margin: 0 !important;
  }
}
