/**
 * PROJECT REPORT PRESENTATION
 * Polite Platform :: Control Plane
 * Path: /control-plane/public/assets/project-reports.css
 * Description: Bounded report summaries within the shared operator workspace.
 * Context: UI
 * Author: Polite Platform Team
 * Date: 2026-10-14T22:43:41Z
 * Generated by: GPT-6 Codex
 */
.project-reports { min-width: 0; }
.project-reports label { display: grid; gap: 8px; max-width: 560px; margin: 20px 0; }
.project-reports select { min-height: 44px; width: 100%; min-width: 0; }
.project-reports-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color, #36363c); }
.project-reports-heading > div { min-width: 0; }
.project-reports-heading h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.project-reports-heading a { flex-shrink: 0; text-decoration: none; }
.project-report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.project-report-metric { padding: 16px; border: 1px solid var(--border-color, #36363c); border-radius: 8px; background: var(--bg-primary, #17171a); min-width: 0; }
.project-report-metric h4 { margin: 0 0 12px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.project-report-metric strong { display: block; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.project-report-metric[data-tier="secondary"] strong { font-size: 24px; }
.project-report-metric[data-status="updating"] strong { font-size: 18px; color: #dfbd76; }
.project-report-metric .helper { margin-bottom: 0; }

/* Keep the report controls compact so published results lead the workspace. */
.project-reports-toolbar { align-items: center; }
.project-reports-toolbar h2 { display: flex; gap: 10px; align-items: center; margin: 0; }
.project-reports-toolbar .helper { margin: 4px 0 0; }
.project-reports-mark { color: var(--accent, #b38df4); font-size: 24px; }
.project-reports-heading .helper { margin: 6px 0 0; }
#project-report-publication { font-size: 12px; margin: 8px 0 18px; }
.project-report-navigation { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.project-report-modes { display: flex; gap: 4px; border: 1px solid var(--border-color, #36363c); background: var(--bg-primary, #131315); padding: 4px; border-radius: 8px; }
#project-report-modes button { border: 0; border-radius: 5px; background: transparent; color: var(--text-secondary, #aaa6b4); min-height: 44px; padding: 8px 18px; font: inherit; cursor: pointer; }
#project-report-modes button[aria-pressed="true"] { color: var(--text-primary, #f1f0f4); background: var(--bg-elevated, #2b2a30); }
#project-report-modes button:disabled { opacity: .45; cursor: default; }
.project-reports .project-report-navigation label { margin: 0; min-width: 220px; font-size: 12px; gap: 4px; }
.project-report-period-heading { margin: 20px 0 14px; }
.project-report-period-heading h3 { font-size: 16px; margin: 0; }
.project-report-period-heading .helper { margin: 5px 0 0; }
.project-report-metric[data-tier="secondary"] { background: transparent; }
.project-report-metric[data-tier="primary"] { border-top: 2px solid var(--accent, #b38df4); }
.project-report-activity { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color, #36363c); }
.project-report-activity-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.project-report-activity-heading h3 { font-size: 16px; margin: 0; }
.project-report-activity-heading .helper { margin: 6px 0 0; }
.project-reports .project-report-activity-heading label { margin: 0; gap: 4px; font-size: 12px; min-width: 180px; }
.project-report-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.project-report-table caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 12px; }
.project-report-table th, .project-report-table td { border-bottom: 1px solid var(--border-color, #36363c); text-align: left; padding: 10px 12px; overflow-wrap: anywhere; }
.project-report-table thead th { color: var(--text-secondary, #aaa6b4); font-weight: 500; font-size: 12px; }
.project-report-table tbody th { font-weight: 400; }
.project-report-table tbody tr:hover { background: var(--bg-elevated, #252529); }
.project-report-value span { font-variant-numeric: tabular-nums; position: relative; }
.project-report-value meter { display: inline-block; width: 55%; height: 12px; margin-right: 12px; vertical-align: middle; border: 0; background: transparent; }
.project-report-value meter::-webkit-meter-bar { background: var(--bg-elevated, #2b2a30); border: 0; border-radius: 3px; }
.project-report-value meter::-webkit-meter-optimum-value { background: #a58ad6; border-radius: 3px; }
.project-report-value meter::-moz-meter-bar { background: #a58ad6; border-radius: 3px; }
.project-report-value.is-unavailable { color: var(--text-secondary, #aaa6b4); font-size: 12px; }
.project-report-day { color: var(--text-primary, #f1f0f4); font: inherit; background: transparent; border: 0; text-align: left; min-height: 44px; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.project-report-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#project-report-freshness { margin-top: 20px; border-top: 1px solid var(--border-color, #36363c); padding-top: 14px; font-size: 12px; }
@media (max-width: 600px) {
  .project-reports-heading { flex-direction: column; }
  .project-report-navigation { align-items: stretch; }
  .project-report-modes { width: 100%; box-sizing: border-box; gap: 2px; }
  #project-report-modes button { min-width: 0; flex: 1 1 0; font-size: 13px; padding: 8px 6px; }
  .project-reports .project-report-navigation label, .project-reports .project-report-activity-heading label { min-width: 0; width: 100%; }
  .project-report-table { font-size: 12px; }
  .project-report-table th, .project-report-table td { padding: 8px 5px; }
  .project-report-value meter { display: block; width: 90%; margin: 0 0 6px; }
  .project-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-report-metric { padding: 12px; }
  .project-report-metric strong { font-size: 26px; }
  .project-report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .project-report-table tbody { display: block; }
  .project-report-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border-color, #36363c); }
  .project-report-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; }
  .project-report-table tbody td { border: 0; padding: 0; }
  .project-report-value::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-secondary, #aaa6b4); margin-bottom: 6px; }
  .project-report-value span { font-size: 15px; }
  .project-report-value.is-unavailable span { font-size: 12px; }
}
@media (max-width: 420px) {
  #project-report-modes button { font-size: 12px; padding: 8px 4px; }
  .project-report-metrics { grid-template-columns: minmax(0, 1fr); }
  .project-report-metric { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .project-report-metric h4 { flex: 1; margin: 0; font-size: 13px; }
  .project-report-metric strong { font-size: 24px; }
  .project-report-metric .helper { flex-basis: 100%; }
  .project-report-metric[data-status="updating"] strong { font-size: 16px; }
}
