/* =========================================================
   One-page professional report (+ print)
   ========================================================= */

.report-page {
  background: var(--color-background, #f6f8fb);
  min-height: 100vh;
  margin: 0;
  font-family: "Vazirmatn", system-ui, sans-serif;
  color: var(--text-primary, #101a2e);
}

.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.report-toolbar__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-sheet {
  max-width: 820px;
  margin: 24px auto 48px;
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 32px 36px 28px;
  box-shadow: 0 12px 40px rgba(16, 26, 46, 0.06);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-primary, #1b2a4a);
  margin-bottom: 24px;
}

.report-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.report-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #d97b3f, #ad5623);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.report-brand strong {
  display: block;
  font-size: 1.15rem;
}

.report-brand span {
  font-size: 0.85rem;
  color: var(--text-secondary, #4c5a73);
}

.report-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted, #8792a3);
}

.report-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}

.report-loading,
.report-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}

.report-empty h1 {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.report-block {
  margin-bottom: 28px;
}

.report-block h2 {
  font-size: 0.95rem;
  margin: 0 0 12px;
  color: var(--color-primary, #1b2a4a);
  letter-spacing: -0.01em;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.report-kpi {
  background: var(--color-surface-alt, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 14px 12px;
}

.report-kpi__label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.report-kpi__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.report-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.report-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.report-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color, #e2e8f0);
}

.report-dl dt {
  margin: 0;
  color: var(--text-secondary);
}

.report-dl dd {
  margin: 0;
  font-weight: 600;
}

.report-finance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.report-fin-card {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-fin-card span {
  font-size: 11px;
  color: var(--text-secondary);
}

.report-fin-card strong {
  font-size: 1rem;
}

.report-fin-card em {
  font-style: normal;
  font-size: 12px;
  color: #0d9488;
  font-weight: 600;
}

.report-fin-card:nth-child(2) {
  border-color: #0d9488;
  background: #f0fdfa;
}

.report-mini-table-wrap {
  overflow-x: auto;
}

.report-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.report-mini-table th,
.report-mini-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.report-mini-table th {
  background: var(--color-surface-alt, #f8fafc);
  font-weight: 600;
  color: var(--text-secondary);
}

.report-assumptions ul {
  margin: 0;
  padding-right: 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.report-disclaimer {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.report-footer strong {
  display: block;
  margin-bottom: 4px;
}

.report-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.report-footer__cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.report-foot-note {
  margin-top: 16px !important;
  font-size: 11px !important;
  color: var(--text-muted) !important;
}

@media (max-width: 720px) {
  .report-sheet { margin: 12px; padding: 20px 16px; }
  .report-kpis,
  .report-finance,
  .report-grid-2 { grid-template-columns: 1fr 1fr; }
  .report-header { flex-direction: column; }
  .report-meta { align-items: flex-start; text-align: right; }
}

@media (max-width: 480px) {
  .report-kpis,
  .report-finance,
  .report-grid-2 { grid-template-columns: 1fr; }
  .report-dl > div { grid-template-columns: 1fr; }
}

/* Print / PDF */
@media print {
  .no-print { display: none !important; }
  .report-page { background: #fff; }
  .report-sheet {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
  }
  .report-block { break-inside: avoid; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
