/* ======================================================
   Excelergy Report Styles
   VERSION: v2026-MODERN-REPORT-71
   ====================================================== */

.report {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.report-header {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(23, 105, 255, .13), transparent 26rem),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, .09), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.94));
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 28px;
  padding: 42px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.report-header h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 0 14px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.report-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.report-actions { margin-top: 22px; }
.report-actions .primary { min-height: 50px; font-size: 15px; padding: 0 22px; }

.report-section {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.report-section h2 {
  margin: 0 0 16px;
  font-size: 19px;
  letter-spacing: -.03em;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading-row h2 { margin: 0; }

.table-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  color: #334155;
  font-size: 14px;
}

#reportAssumptions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.assumption-tile,
.report-tile {
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.assumption-tile h4,
.report-tile h4 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.assumption-tile p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0;
  color: #334155;
  font-size: 13px;
}

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

.report-tile {
  min-height: 94px;
  text-align: center;
  display: grid;
  place-items: center;
}

.report-tile div {
  color: var(--text);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.ledger-section { overflow: hidden; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.report-table {
  min-width: 1360px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

.report-table th,
.report-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf2f7;
  white-space: nowrap;
  text-align: right;
}

.report-table th:first-child,
.report-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: inherit;
  font-weight: 850;
}

.report-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #475569;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.report-table thead th:first-child { z-index: 3; background: #f8fafc; }
.report-table tbody tr:nth-child(even) { background: #fbfdff; }
.report-table tbody tr:hover { background: #f1f5f9; }
.report-table tbody tr:last-child td { border-bottom: 0; }

.chart-container { position: relative; height: 300px; margin-top: 8px; }

@media (max-width: 1050px) {
  .report { width: min(100% - 32px, 1480px); padding-top: 22px; }
  .report-summary, #reportAssumptions, .report-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .report { width: min(100% - 24px, 1480px); }
  .report-header { padding: 32px 18px; }
  .report-summary, #reportAssumptions, .report-tiles { grid-template-columns: 1fr; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
}

@media print {
  .topbar, .report-actions, .table-hint { display: none !important; }
  body { background: #fff; }
  .report { width: 100%; max-width: none; padding: 0; }
  .report-header, .report-section { box-shadow: none; border: 0; padding: 0; margin-bottom: 14px; }
  .table-scroll { overflow: visible; border: 0; }
  .report-table { min-width: 0; font-size: 9px; border-radius: 0; }
  .report-table th, .report-table td { padding: 4px; }
  .report-table th:first-child, .report-table td:first-child { position: static; }
  tr { page-break-inside: avoid; }
  @page { size: A4 landscape; margin: 12mm; }
}
