/* ======================================================
   REPORT LAYOUT & PRINT
   ====================================================== */

.report {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.report-header {
  margin-bottom: 16px;
}

.report-meta {
  font-size: 12px;
  color: #6b7280;
}

.report-section {
  margin-bottom: 20px;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 20px;
  font-size: 12px;
}

/* Assumption tiles */
#reportAssumptions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.assumption-tile {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 11px;
}

.assumption-tile h4 {
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.assumption-tile p {
  display: flex;
  justify-content: space-between;
  margin: 2px 0;
}

/* Snapshot tiles */
.report-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.report-tile {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.report-tile h4 {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.report-tile div {
  font-size: 18px;
  font-weight: 700;
}

/* Tables */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.report-table th,
.report-table td {
  padding: 4px 5px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.report-table thead th {
  background: #f3f4f6;
  font-weight: 600;
}

/* Print */
@media print {
  .topbar { display: none; }

  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  tr { page-break-inside: avoid; }
}

.report-actions {
  margin-top: 10px;
}

/* Hide button when printing */
@media print {
  .report-actions {
    display: none !important;
  }
}
