/* Print output for Planning + Actuals. Keep all print-only overrides isolated. */
@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--rst-ui-text);
  }

  body * {
    box-shadow: none;
    text-shadow: none;
  }

  .brand-page,
  .app-topbar-main,
  .rs-grid-toolbar,
  .rs-toast,
  .rs-modal,
  .rs-detail-dialog,
  .notif-panel,
  .pilot-guide-dialog {
    display: none;
  }

  body:not(.planning-mode):not(.actuals-mode) .app-shell {
    display: none;
  }

  .planning-mode .app-shell,
  .actuals-mode .app-shell,
  .planning-mode .planning-page,
  .actuals-mode .actuals-page,
  .rs-weekly-board,
  .rs-weekly-scroll {
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    overflow: visible;
    border: 0;
    background: var(--rst-ui-text);
  }

  .rs-metrics-row {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 6px;
    margin: 0 0 8px;
  }

  .rs-metric-card,
  .rs-frame {
    border: 1px solid var(--rst-state-neutral-text);
    background: var(--rst-ui-text);
    color: #0f172a;
  }

  .rs-icon-badge {
    display: none;
  }

  .rs-metric-card {
    min-height: 46px;
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .rs-metric-copy span,
  .rs-metric-copy small,
  .rs-metric-copy strong {
    color: #0f172a;
  }

  .rs-weekly-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    color: #0f172a;
  }

  .rs-weekly-table :is(th,td) {
    border: 1px solid var(--rst-state-neutral-text);
    background: var(--rst-ui-text);
    color: #0f172a;
  }

  .rs-weekly-table thead th,
  .rs-weekly-person-head,
  .rs-weekly-person-cell {
    position: static;
    background: #eef2f7;
  }

  .rs-weekly-day-cell,
  .rs-weekly-day-cell.day-alt,
  .rs-weekly-total-cell,
  .rs-weekly-total-head {
    background: var(--rst-ui-text);
  }

  .rs-weekly-day-head-copy strong,
  .rs-weekly-day-head-copy span,
  .rs-weekly-day-head-copy small,
  .rs-weekly-total-head-copy strong,
  .rs-weekly-total-head-copy span,
  .rs-weekly-person-copy strong,
  .rs-weekly-person-copy small,
  .rs-weekly-total-value strong,
  .rs-weekly-total-value small,
  .rs-weekly-total-value b,
  .planning-slot-card strong,
  .planning-slot-card small,
  .planning-slot-card em,
  .actuals-slot-card strong,
  .actuals-slot-card small,
  .actuals-slot-card em,
  .actuals-slot-card b {
    color: #0f172a;
  }

  .rs-weekly-avatar {
    border: 1px solid var(--rst-ui-muted);
    background: #e2e8f0;
    color: #0f172a;
  }

  .rs-calendar-card,
  .planning-slot-card,
  .actuals-slot-card {
    border: 1px solid var(--rst-ui-muted);
    background: var(--rst-ui-text);
    color: #0f172a;
  }

  .actuals-proof-dot,
  .planning-slot-empty,
  .planning-slot-time,
  .planning-slot-assignment {
    display: none;
  }
}
