/* Service-grade report page. Scoped to avoid changing other analysis screens. */
.analysis-report-service-page{
  --report-ink: #172521;
  --report-green: #16352f;
  --report-green-soft: #e9f0ed;
  --report-line: #dce3df;
  --report-paper: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-workbench{
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr);
  gap: 32px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid #d9e1dd;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(122, 173, 151, .28), transparent 28%),
    linear-gradient(135deg, #102a25 0%, #193d35 60%, #285448 100%);
  box-shadow: 0 12px 36px rgba(18, 47, 40, .12);
}

.report-workbench-kicker,
.report-section-eyebrow,
.report-document-brand,
.report-document-no,
.report-tabs-label{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.report-workbench-kicker{ color: #a9c9bd; }

.report-workbench-title{
  margin: 8px 0 10px !important;
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
}

.report-workbench-desc{
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.7;
}

.report-workbench-form{
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.report-workbench .filter-label{
  color: rgba(255,255,255,.76);
  font-weight: 700;
}

.report-search-control{ margin-bottom: 14px; }

.report-input{
  height: 46px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
}

.report-input:focus{
  border-color: #9fc7b8;
  box-shadow: 0 0 0 3px rgba(174, 215, 200, .18);
}

.report-search-btn{
  height: 46px;
  padding: 0 22px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: var(--report-green);
  font-size: 12px;
}

.report-input-help{
  margin-top: 7px;
  color: rgba(255,255,255,.56);
  font-size: 11px;
}

.report-favorites-block .help-text{ color: rgba(255,255,255,.6); }

.report-favorite-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.analysis-report-service-page .report-favorite-chip{
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 11px;
}

.report-document{
  padding: 0 42px;
  border: 1px solid #dfe4e1;
  border-radius: 4px;
  background: var(--report-paper);
  box-shadow: 0 18px 52px rgba(32, 46, 41, .09);
}

.report-document-masthead{
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--report-ink);
}

.report-document-identity,
.report-document-actions,
.report-document-meta,
.report-overview-grid,
.report-document-footer{
  display: flex;
  align-items: center;
}

.report-document-identity{ gap: 12px; }
.report-document-brand{ color: var(--report-green); }
.report-document-type{ color: #77817d; font-size: 11px; }
.report-document-actions{ gap: 10px; }

.report-print-btn{
  padding: 7px 12px;
  border: 1px solid var(--report-line);
  border-radius: 6px;
  background: #fff;
  color: var(--report-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.report-print-btn:hover{ background: #f3f6f4; }

.report-confidential-badge{
  padding: 6px 9px;
  color: #fff;
  background: var(--report-green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.report-document-header{
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--report-line);
}

.report-document-titleline{
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.report-document-no{ color: #6f7b76; }
.report-document-label{ color: var(--report-ink); font-size: 18px; font-weight: 800; }
.report-document-meta{ gap: 18px; color: #66716d; font-size: 10px; white-space: nowrap; }
.report-report-shell{ gap: 28px; padding: 30px 0 38px; }

.report-placeholder{
  padding: 64px 20px;
  border-color: #bdcbc5;
  border-radius: 4px;
  background: #f7f9f8;
}

.report-overview-card{
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.report-overview-head{
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 150px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, #173830, #244d42);
}

.report-overview-titlegroup{ max-width: 75%; }
.report-section-eyebrow{ margin-bottom: 14px; color: #66867b; }
.report-overview-head .report-section-eyebrow{ color: #9fc5b7; }

.report-overview-address{
  max-width: 760px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
}

.report-overview-grid{
  gap: 16px;
  margin-top: 18px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.report-cover-mark{ text-align: right; }
.report-cover-mark-label{ color: #9fc5b7; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.report-cover-mark-number{ margin-top: 4px; color: rgba(255,255,255,.18); font-size: 58px; font-weight: 800; line-height: 1; }

.report-meta-grid{ gap: 0; border: 1px solid var(--report-line); }
.report-meta-card{ border: 0; border-radius: 0; padding: 18px 20px; }
.report-meta-card + .report-meta-card{ border-left: 1px solid var(--report-line); }
.report-meta-title{ color: #71807a; font-size: 9px; letter-spacing: 1.2px; }
.report-risk-chip{ min-height: 28px; border-radius: 3px; background: var(--report-green-soft); color: var(--report-green); font-size: 10px; }

.report-report-summary{ gap: 0; border-top: 2px solid var(--report-ink); }
.report-report-summary > .report-ai-section{
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, .72fr);
  gap: 28px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--report-line);
  border-radius: 0;
  background: #fff;
}

.report-report-summary .report-section-title{ margin: 0; }
.report-ai-section{ border-color: var(--report-line); border-radius: 4px; background: #f7f9f8; }
.report-section-title{ color: var(--report-ink); font-size: 13px; }
.report-body-text, .report-bullet-list{ color: #46524d; font-size: 12px; line-height: 1.85; }

.report-prototype-note{
  border: 0;
  border-left: 3px solid #9a7b47;
  border-radius: 0;
  background: #faf7f1;
  color: #665a47;
}

.report-tabs-wrap{ border-top: 1px solid var(--report-ink); }
.report-tabs-label{ padding-top: 18px; color: #75807c; }
.report-tabs{ margin-top: 12px; }
.report-tabs .tab-container{ gap: 0; border-bottom: 1px solid var(--report-line); }
.report-tabs .tab > span,
.report-tabs .tab--selected > span{
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #74807b;
  font-size: 11px;
}

.report-tabs .tab--selected > span{
  border-bottom: 2px solid var(--report-green);
  background: #fff;
  color: var(--report-green);
}

.report-tab-pane{ padding-top: 30px; }
.report-chapter-head, .report-appendix-head{ margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--report-line); }
.report-chapter-title, .report-appendix-title{ margin: 0 0 8px !important; color: var(--report-ink); font-size: 24px; }
.report-chapter-desc, .report-appendix-desc{ margin: 0; color: #6e7974; font-size: 12px; }

.report-kpi-grid{ gap: 10px; }
.report-kpi-card{
  min-height: 112px;
  padding: 16px;
  border-color: var(--report-line);
  border-radius: 4px;
  box-shadow: none;
}
.report-kpi-value{ color: var(--report-green); font-size: clamp(22px, 2vw, 30px); }

.report-story-card{
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--report-ink);
  border-radius: 0;
}
.report-block-title{ color: var(--report-ink); font-size: 18px; }
.report-chart-card{ border-color: var(--report-line); border-radius: 4px; }
.report-ai-grid{ gap: 10px; }
.report-ai-grid .report-ai-section{ padding: 16px; }

.report-summary-card,
.report-json-wrap,
.report-llm-status-card{
  border-color: var(--report-line);
  border-radius: 4px;
  box-shadow: none;
}

.report-kv-row{ border-color: var(--report-line); border-radius: 3px; }
.report-document-footer{
  justify-content: space-between;
  min-height: 58px;
  border-top: 1px solid var(--report-ink);
  color: #7a8580;
  font-size: 9px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

@media (max-width: 1200px){
  .report-workbench{ grid-template-columns: 1fr; }
  .report-document-header{ flex-direction: column; }
  .report-document-meta{ flex-wrap: wrap; }
}

@media (max-width: 900px){
  .report-document{ padding: 0 24px; }
  .report-overview-head{ flex-direction: column; }
  .report-overview-titlegroup{ max-width: 100%; }
  .report-cover-mark{ display: none; }
  .report-report-summary > .report-ai-section{ grid-template-columns: 1fr; gap: 12px; }
}

@media print{
  @page{ size: A4; margin: 12mm; }
  body{ background: #fff !important; }
  .app-header,
  .analysis-sidebar,
  .analysis-subnav,
  .page-header,
  .report-workbench,
  .report-print-btn,
  .report-tabs-label,
  .report-tabs .tab-container,
  .report-document-actions,
  .report-document-footer{
    display: none !important;
  }
  .analysis29{
    max-width: none !important;
    padding: 0 !important;
  }
  .analysis-shell{ display: block !important; }
  .report-document{
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .report-overview-card,
  .report-story-card,
  .report-kpi-card,
  .report-ai-section{
    break-inside: avoid;
  }
}
