/* ==========================================================================
   TenderBoard — Print stylesheet (print-friendly views, one-pager)
   Hides navigation & interactive chrome; renders clean document layout.
   ========================================================================== */
@media print {
  :root, [data-theme] {
    --bg-app: #fff; --bg-surface: #fff; --bg-surface-2: #fff; --bg-sunken: #fff;
    --text-strong: #000; --text-primary: #111; --text-secondary: #333; --text-muted: #555;
    --border-default: #ccc; --border-subtle: #ddd; --border-strong: #999;
    --shadow-xs:none; --shadow-sm:none; --shadow-md:none; --shadow-lg:none; --shadow-xl:none;
  }
  @page { margin: 16mm 14mm; }

  html, body { background:#fff !important; color:#111 !important; font-size:11pt; }

  /* Hide interactive chrome */
  .app__sidebar, .app__topbar, .skip-link, .toast-region,
  .no-print, [data-print-hide], .pagination, .page-head__actions,
  .btn, .menu, .tabs, .segmented, .search, .bulk-bar,
  nav, aside, footer, .sidebar, .filters-sidebar { display: none !important; }

  .app { display:block !important; }
  .app__main { padding:0 !important; }
  .container { max-width:none !important; }

  /* Cards print as plain bordered blocks, avoid breaks inside */
  .card, .table-wrap, .stat { box-shadow:none !important; border:1px solid #ccc !important; break-inside: avoid; page-break-inside: avoid; }
  .grid { display:block !important; }
  .grid > * { margin-bottom: 8mm; }

  h1,h2,h3,h4 { color:#000 !important; break-after: avoid; }
  a { color:#000 !important; text-decoration:underline; }
  a[href^="http"]::after { content:" (" attr(href) ")"; font-size:9pt; color:#555; }

  /* Table: full width, repeat headers, no sticky */
  .table { width:100% !important; font-size:9.5pt; }
  .table thead { display: table-header-group; }
  .table thead th { position:static !important; background:#f2f2f2 !important; color:#000 !important; border-bottom:1px solid #999 !important; }
  .table tbody tr { break-inside: avoid; }
  .table tbody td { border-bottom:1px solid #ddd !important; }

  /* Pills flatten for print legibility */
  .pill { border:1px solid #999 !important; background:#fff !important; color:#000 !important; }

  /* Tender one-pager header */
  .print-header { display:block !important; border-bottom:2px solid #000; padding-bottom:6mm; margin-bottom:8mm; }
  .print-header__brand { font-size:9pt; letter-spacing:.06em; text-transform:uppercase; color:#555; }
  .print-header__title { font-size:18pt; font-weight:700; margin:2mm 0 1mm; }
  .print-footer { display:block !important; margin-top:8mm; padding-top:4mm; border-top:1px solid #ccc; font-size:8.5pt; color:#666; }

  /* Force show print-only, hide screen-only */
  .print-only { display:block !important; }
  .screen-only { display:none !important; }

  /* Timeline prints linearly */
  .timeline__item { break-inside: avoid; }
  .timeline::before { background:#ccc !important; }

  /* Progress prints with solid fill */
  .progress__track { background:#eee !important; border:1px solid #ccc; }
  .progress__bar { background:#444 !important; }

  /* Expand details/summary in print */
  details { display:block; }
  details > summary { list-style:none; }
  details:not([open]) > *:not(summary) { display:revert !important; }
}

/* Print-only helpers (hidden on screen) */
.print-only { display:none; }
