@media print {
  html, body, #app, #workspace-shell, #workspace-shell .app-layout, #workspace-shell #main { display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; background: #fff !important; color: #17233b !important; }
  #workspace-shell .masthead, #workspace-shell .sidebar, #workspace-shell .mobile-dock, #workspace-shell .heading-actions, #workspace-shell .footer, #action-form, .print-hidden, .attachment-upload, #notes-form, #assignment-form { display: none !important; }
  #workspace-shell #main { padding: 0 !important; }
  .workspace-split, .operation-grid, .support-grid { display: block !important; }
  .workspace-aside { display: none !important; }
  .surface, .operation-card, .record-meta, .audit-list li { box-shadow: none !important; break-inside: avoid; border-color: #cbd0db !important; }
  .table-wrap { overflow: visible !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  h1 { font-size: 22pt !important; }
  @page { size: A4; margin: 14mm; }
}

/* Staff accounts: stacked rows on phones so Manage stays on screen. */
.staff-table .staff-name { font-size: .87rem; font-weight: 700; }
@media (max-width: 520px) {
  .staff-table table, .staff-table tbody, .staff-table tr, .staff-table th, .staff-table td { display: block; width: 100%; min-width: 0; }
  .staff-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .staff-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .staff-table tr:last-child { border-bottom: 0; }
  #main .staff-table :is(th, td) { padding: 2px 0; border: 0; background: none; text-align: left; overflow-wrap: anywhere; }
  .staff-table td[data-label]::before { content: attr(data-label) " · "; color: var(--muted); font-size: .78rem; }
  .staff-table .staff-name { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; }
  .staff-table .staff-action { padding-top: 8px; }
  .staff-table .staff-action .button { width: 100%; min-height: 44px; }
}
