/* ═══════════════════════════════════════════════════════════════════════════
   Shared document styles (.doc-*)
   Presentational classes for documents produced by js/documents.js. The print
   reveal rules (#print-sheet visibility, .print-only, .no-print) live in app.css;
   this file only styles the document body, so new printouts need no new CSS.
   ═══════════════════════════════════════════════════════════════════════════ */

@page { margin: 14mm; }

#print-sheet { font-size: 12px; color: #000; }
.doc-mono { font-family: 'Courier New', monospace; }

.doc-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.doc-title { font-size: 18px; font-weight: 700; letter-spacing: .4px; }
.doc-ref { font-family: 'Courier New', monospace; font-size: 15px; font-weight: 700; }

.doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-bottom: 14px; }
.doc-meta-label { color: #444; }

.doc-table-block { margin-bottom: 14px; break-inside: avoid; }
.doc-table-title { font-weight: 700; font-size: 12px; margin: 6px 0 4px; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th, .doc-table td { border: 1px solid #000; padding: 5px 7px; text-align: left; vertical-align: top; }
.doc-table th { background: #eaeaea; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-empty { text-align: center; color: #666; padding: 14px; }
.doc-check-col { width: 34px; text-align: center; }
.doc-check { text-align: center; }
.doc-checkbox { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #000; }

.doc-section { margin: 14px 0; break-inside: avoid; }
.doc-section-title { font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.doc-section-text { margin-bottom: 6px; white-space: pre-wrap; }
.doc-rule { border-bottom: 1px solid #999; height: 22px; }

.doc-sign { display: flex; gap: 32px; margin-top: 32px; break-inside: avoid; }
.doc-sign-line { flex: 1; }
.doc-sign-rule { border-bottom: 1px solid #000; height: 30px; margin-bottom: 4px; }
.doc-sign-line span { font-size: 11px; color: #444; }

.doc-footer { margin-top: 22px; padding-top: 6px; border-top: 1px solid #ccc; font-size: 10px; color: #555; text-align: right; }

/* ── List reports (shared engine: js/documents.js renderListReport) ──────────
   Landscape, dense, mono-safe. Only .doc-report opts into the landscape page, so
   the portrait issue note above is unaffected. */
@page report { size: A4 landscape; margin: 9mm; }
.doc-report { page: report; font-size: 10px; }

.doc-subtitle { color: #555; font-size: 11px; margin-top: 2px; }
.doc-stamp { text-align: right; color: #555; font-size: 10px; line-height: 1.4; white-space: nowrap; }

.doc-report-filters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 24px;
  margin: 10px 0 8px; font-size: 10px;
}

.doc-report-table { font-size: 10px; table-layout: auto; }
.doc-report-table th, .doc-report-table td { border: 1px solid #bbb; padding: 3px 6px; }
.doc-report-table th { background: #ececec; }
.doc-report-table tbody tr { break-inside: avoid; }

.doc-tag { white-space: nowrap; }
.doc-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 4px; vertical-align: baseline;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

.doc-report-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 6px; border-top: 1px solid #999;
  font-size: 10px; color: #333;
}
