/*
 * Stable paper contract. Printing never inherits a future dark UI theme.
 * Keep this file small: document-specific layout stays next to each document.
 */
@media print {
  :root,
  :root[data-theme] {
    color-scheme: light only !important;
    --erudelis-color-background: #ffffff !important;
    --erudelis-color-surface: #ffffff !important;
    --erudelis-color-text: #172322 !important;
    --erudelis-color-text-secondary: #536461 !important;
    --erudelis-color-border: #d7e2df !important;
    --admin-bg: #ffffff !important;
    --admin-surface: #ffffff !important;
    --admin-text: #172322 !important;
    --admin-muted: #536461 !important;
    --admin-line: #d7e2df !important;
    --bg: #ffffff !important;
    --surface: #ffffff !important;
    --text: #172322 !important;
    --ink: #172322 !important;
    --muted: #536461 !important;
    --line: #d7e2df !important;
  }

  html,
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #172322 !important;
  }

  [data-print-hidden],
  .no-print,
  .admin-header,
  .admin-context-banner,
  .admin-task-dashboard,
  .admin-live-notification {
    display: none !important;
  }

  a {
    color: #172322 !important;
    text-decoration: underline;
  }

  figure,
  tr,
  [data-print-keep] {
    break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }
}
