/* Full-budget print: every section expanded on a white, ink-friendly page.
   Active only while body.print-full is set (Print Full Budget button or the browser's own Print). */
.print-full-header,
.print-all-tiers { display: none; }

@media print {
  body.print-full { background: #fff !important; color: #182f43; padding: 0 !important; }
  body.print-full,
  body.print-full main {
    --bg: #fff; --card: #fff; --surface: #f6f9fb; --text: #182f43; --text-light: #435766; --text-lighter: #435766;
    --border: #cbd5dd; --accent: #1c6795; --accent-bg: #eef4f9; --none-bg: #fff; --shadow: none; --shadow-lg: none;
  }

  /* Swap the summary document for the whole page. */
  body.print-full #summaryModal,
  body.print-full #summaryModal .modal,
  body.print-full #summaryModal .modal-body { display: none !important; }
  body.print-full main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.print-full header,
  body.print-full .summary-bar,
  body.print-full .toast,
  body.print-full #sharedBanner,
  body.print-full .project-details,
  body.print-full .category-chevron,
  body.print-full .cat-modifier,
  body.print-full .required-selection-bar,
  body.print-full .tier-btn.none-btn,
  body.print-full .comparison-mobile-panel,
  body.print-full .comparison-tier-card:not(.selected) .comparison-tier-state,
  body.print-full .clear-selection-btn,
  body.print-full .extras-section > .btn,
  body.print-full #modifiersContainer button,
  body.print-full .no-print { display: none !important; }

  /* Header block with the project details and totals. */
  body.print-full .print-full-header { display: block !important; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid #133f5c; }
  body.print-full .print-full-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  body.print-full .print-full-brand img { height: 30px; width: auto; }
  body.print-full .print-full-title { font-size: 20pt; font-weight: 600; color: #133f5c; margin: 10px 0 6px; }
  body.print-full .print-full-meta { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 12px; font-size: 10.5pt; }
  body.print-full .print-full-meta dt { color: #435766; font-weight: 500; }
  body.print-full .print-full-meta dd { margin: 0; font-weight: 600; color: #182f43; }
  body.print-full .print-full-totals { text-align: right; font-size: 10.5pt; color: #435766; }
  body.print-full .print-full-totals strong { display: block; font-size: 18pt; color: #133f5c; }

  /* Every section open, flat and white. */
  body.print-full .categories-header { margin: 4px 0 6px !important; }
  body.print-full .categories-header h2,
  body.print-full .section-header h3 { background-image: none !important; color: #133f5c !important; }
  body.print-full .section-header { margin: 16px 0 8px !important; break-after: avoid; }
  body.print-full .category-card { background: #fff !important; box-shadow: none !important; border: 1px solid #cbd5dd !important; border-radius: 8px !important; margin-bottom: 10px !important; break-inside: auto; }
  body.print-full .category-card.disabled { opacity: 1 !important; }
  body.print-full .category-header { background: #fff !important; padding: 10px 14px !important; break-after: avoid; break-inside: avoid; border-radius: 8px 8px 0 0 !important; }
  body.print-full .category-body { display: block !important; padding: 4px 14px 12px !important; }
  body.print-full .category-price,
  body.print-full .category-name,
  body.print-full .category-selection { color: #182f43 !important; }

  /* List-mode options. */
  body.print-full .tier-selector { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; break-inside: avoid; }
  body.print-full .tier-btn { background: #fff !important; border: 1px solid #cbd5dd !important; box-shadow: none !important; }
  body.print-full .tier-btn.selected { border: 2px solid #133f5c !important; }
  body.print-full .tier-btn .tier-label,
  body.print-full .tier-btn .tier-price,
  body.print-full .tier-btn .tier-tag { color: #182f43 !important; }
  body.print-full .tier-details { background: #fff !important; border: 1px solid #e1e8ee; break-inside: avoid; }
  body.print-full .tier-details-empty { display: none !important; }
  body.print-full .print-all-tiers { display: block !important; }
  body.print-full .print-all-tiers .tier-details { margin-top: 8px; }

  /* Comparison tables: one option header per table (Chrome leaves repeated button headers blank); no sticky headers or tints. */
  body.print-full .comparison-matrix { --comparison-feature-width: 30%; }
  body.print-full .comparison-desktop-panel { display: none !important; }
  body.print-full .comparison-table-scroll { overflow: visible !important; }
  body.print-full .comparison-table { width: 100% !important; min-width: 0 !important; }
  body.print-full .comparison-table thead { display: table-row-group !important; break-inside: avoid; break-after: avoid; }
  body.print-full .comparison-matrix-header { break-after: avoid; }
  body.print-full .comparison-table thead th { position: static !important; background: #fff !important; }
  body.print-full .comparison-table tr { break-inside: avoid; }
  body.print-full .comparison-table .selected-col { background: transparent !important; }
  body.print-full .comparison-tier-card,
  body.print-full .comparison-tier-card.selected { background: #fff !important; color: #182f43 !important; border: 1px solid #cbd5dd !important; }
  body.print-full .comparison-tier-card.selected { border: 2px solid #133f5c !important; }
  body.print-full .comparison-tier-card * { color: #182f43 !important; }
  body.print-full .comparison-tier-card .comparison-tier-tag { display: block !important; letter-spacing: .02em !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; -webkit-line-clamp: unset !important; overflow-wrap: normal; word-break: normal; hyphens: none; }
  body.print-full .comparison-tier-card .comparison-tier-state { font-size: 9pt !important; font-weight: 600; }
  body.print-full .matrix-included-label { display: inline-block !important; white-space: normal !important; overflow-wrap: normal; line-height: 1.25 !important; max-width: 100%; }
  body.print-full .matrix-addon-toggle { background: #fff !important; color: #182f43 !important; border: 1px solid #cbd5dd !important; }

  /* Extras and custom lines read as a list. */
  body.print-full .extras-section { background: #fff !important; box-shadow: none !important; border: 1px solid #cbd5dd; border-radius: 8px; padding: 12px 14px !important; margin-top: 12px !important; break-inside: avoid; }
  body.print-full .extras-section > p { display: none; }
  body.print-full .extras-section:has(#modifiersContainer:empty) { display: none !important; }
  body.print-full .extra-item { background: #fff !important; box-shadow: none !important; border: 1px solid #cbd5dd !important; break-inside: avoid; }
  body.print-full main input { background: #fff !important; border: 0 !important; color: #182f43 !important; padding: 2px 0 !important; }

  body.print-full * { box-shadow: none !important; text-shadow: none !important; transition: none !important; animation: none !important; }
}

/* Phones print from the summary window; keep the four-button bar. */
@media screen and (max-width: 600px) {
  .summary-actions .print-full-btn { display: none; }
}
