/* report.css — clean printable reports for the workspace screens.
   The paper twin of the Excel export: same rows, a page-shaped layout, printed
   by the browser's own engine. Margins come from the container's own padding so
   this never has to redeclare @page and fight the quotation's full-bleed print. */

.report {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 210mm;
  padding: 14mm;
  box-sizing: border-box;
  background: #fff;
  color: #14181f;
  font: 12px/1.45 'Inter', system-ui, -apple-system, sans-serif;
}
.report * { box-sizing: border-box; }

.r-top { border-bottom: 2px solid #2f6b4f; padding-bottom: 10px; margin-bottom: 16px; }
.r-brand { font-weight: 700; color: #2f6b4f; letter-spacing: .05em; text-transform: uppercase; font-size: 12px; }
.r-title { margin: 4px 0 0; font-size: 24px; font-weight: 700; }
.r-meta { color: #6b7280; font-size: 11px; margin-top: 3px; }

.r-sheet { margin: 0 0 18px; }
.r-sheet-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #374151; margin: 14px 0 6px; }

.r-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.r-cell {
  padding: 5px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.r-head { background: #2f6b4f; color: #fff; font-weight: 600; border-bottom: none; }
.r-money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-date { white-space: nowrap; }
.r-bold { font-weight: 700; }
.r-urgent { color: #b3261e; font-weight: 600; }
.r-done { color: #9aa5b1; }
.r-wrap { white-space: normal; }
.r-gap td { height: 8px; border: 0; padding: 0; }
.r-foot { margin-top: 16px; border-top: 1px solid #e5e7eb; padding-top: 6px; color: #9aa5b1; font-size: 10px; text-align: center; }

.r-table tr, .r-headrow { break-inside: avoid; }

@media print {
  body.printing-report > *:not(.report) { display: none !important; }
  body.printing-report .report { position: static; left: 0; }
  /* Colours must survive the print engine's ink-saving default. */
  .report, .r-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
