/* Monthly report: the same GORDAN tokens, with compact, auditable results. */
#board-workspace { display: contents; }
#app-view > main > #report-view { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; padding: 0 6px 24px 0; --report-muted: #586880; }
#app-view[data-view="report"] .page-subtitle { display: block; color: var(--report-muted, #586880); }
.report-controls, .report-actions, .report-section-heading, .report-pagination { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.report-controls { margin-bottom:20px; }
.report-controls p { margin:0; font-size:15px; color:var(--ink); font-weight:600; }
.report-actions { gap:8px; }
.report-actions button { min-width:108px; }
.report-state { min-height:380px; padding:80px 20px; text-align:center; color:var(--report-muted); }
.report-overview { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); overflow:hidden; margin-bottom:16px; }
.report-result { padding:24px 28px 18px; }
#report-view .eyebrow { font-size:10px; letter-spacing:1.2px; color:var(--report-muted); }
.report-completed { display:flex; gap:18px; align-items:center; margin:10px 0 8px; }
.report-completed > strong { font-size:68px; line-height:1; letter-spacing:-3px; font-weight:650; font-variant-numeric:tabular-nums; }
.report-completed h2 { font-size:19px; line-height:1.5; font-weight:600; margin:0; }
.report-completed h2 small { font-size:13px; font-weight:400; color:var(--report-muted); }
.report-comparison { font-size:12px; color:var(--report-muted); margin:0 0 20px; }
.report-comparison span { margin-left:8px; }
.report-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0; padding:18px 0 12px; border-top:1px solid var(--line); }
.report-facts dt { font-size:12px; color:var(--report-muted); }
.report-facts dd { margin:6px 0 0; font-size:28px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.report-facts dd small { font-size:14px; font-weight:400; }
.report-positive { color:var(--success); } .report-negative { color:var(--danger); }
.report-note { font-size:11px; color:var(--report-muted); line-height:1.55; }
.report-kpi { padding:26px; background:linear-gradient(145deg,var(--surface) 30%,#f0f4ff); border-left:1px solid var(--line); }
.report-kpi-value { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:48px; letter-spacing:-1px; font-weight:650; margin:18px 0 6px; font-variant-numeric:tabular-nums; }
.report-kpi-value > small { font-size:24px; margin-left:-8px; }
.report-kpi > p { font-size:12px; line-height:1.6; }
.report-zone { padding:5px 9px; font-size:11px; letter-spacing:0; font-weight:600; border-radius:6px; color:var(--primary); background:#e8edff; }
.report-zone.wow { color:#08734e; background:#ddf5e9; }
.report-zone.below_min { color:var(--danger); background:#ffebe6; }
.report-thresholds { display:flex; justify-content:space-between; gap:12px; padding:18px 0 10px; margin-top:26px; border-top:1px solid #dfe6f4; color:var(--report-muted); font-size:10px; }
.report-middle { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:16px; margin-bottom:20px; }
.report-chart, .report-attention { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px 24px; min-width:0; }
#report-view h2 { letter-spacing:-.15px; }
.report-section-heading h2, .report-attention h2 { margin:0; font-size:15px; font-weight:650; }
.report-section-heading > span { font-size:11px; color:var(--report-muted); }
.report-days { display:flex; align-items:stretch; gap:5px; height:132px; padding-top:28px; margin-top:10px; }
.report-day { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:flex-end; position:relative; }
.report-day-bar { display:block; position:relative; height:var(--height); min-height:3px; background:#b9c9ff; border-radius:3px 3px 0 0; transition:background 150ms; }
.report-day:hover .report-day-bar { background:var(--primary); }
.report-day b { position:absolute; bottom:calc(100% + 4px); width:100%; text-align:center; font-size:10px; font-weight:600; color:var(--report-muted); }
.report-day > small { height:18px; margin-bottom:-18px; font-size:10px; padding-top:4px; color:var(--report-muted); }
.report-attention-link { display:flex; width:100%; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border:0; background:transparent; box-shadow:none; text-align:left; }
.report-attention-link:hover { background:#f5f7fb; transform:none; }
.report-attention-link strong { font-size:36px; font-variant-numeric:tabular-nums; }
.report-attention-link > span:first-of-type { flex:1; font-size:13px; }
.report-attention-link small, .report-attention > p, .report-attention > small { font-size:11px; color:var(--report-muted); line-height:1.5; }
.report-table-panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px 24px 0; }
.report-filters { display:flex; gap:8px; margin:18px 0 14px; flex-wrap:wrap; }
.report-filters button { border:0; background:#f2f4f8; color:var(--report-muted); padding:7px 12px; box-shadow:none; }
.report-filters button span { margin-left:7px; font-size:11px; }
.report-filters button.active { color:var(--primary); background:#eaf0ff; font-weight:600; }
.report-table-scroll { overflow:auto; max-height:510px; scrollbar-gutter:stable; }
.report-table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
.report-table th { position:sticky; top:0; z-index:1; background:#f7f9fc; color:var(--report-muted); font-size:11px; font-weight:600; }
.report-table th, .report-table td { padding:13px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.report-table th:nth-child(1) { width:42%; min-width:250px; }
.report-table td:not(:first-child) { white-space:nowrap; }
.report-table tr:hover td { background:#fafbfe; }
.report-task { display:block; text-align:left; border:0; box-shadow:none; padding:0; background:transparent; color:var(--ink); font-size:12px; line-height:1.6; min-height:0; overflow-wrap:anywhere; }
.report-task:hover { color:var(--primary); background:transparent; box-shadow:none; transform:none; text-decoration:underline; }
.report-task-id { color:var(--report-muted); font-size:10px; margin-right:8px; }
.report-archive { display:inline-block; font-size:10px; color:var(--report-muted); margin-top:3px; }
.report-duration { font-variant-numeric:tabular-nums; }
.report-outcome { font-size:10px; padding:4px 7px; border-radius:4px; color:var(--report-muted); background:#f0f3f7; display:inline-block; }
.report-outcome.on_time { color:#08734e; background:#e5f6ed; }
.report-outcome.late, .report-outcome.overdue { color:var(--danger); background:#fff0ed; }
.report-empty { height:150px; text-align:center; color:var(--report-muted); vertical-align:middle !important; }
.report-pagination { min-height:66px; padding:12px 0; font-size:11px; color:var(--report-muted); }
.report-pagination button { margin-left:8px; }
.report-method { margin-top:18px; color:var(--report-muted); font-size:12px; }
.report-method summary { cursor:pointer; width:fit-content; }
.report-method p { max-width:950px; line-height:1.7; }
.report-asof { margin-bottom:0; }
#report-view button:focus-visible, .report-table-scroll:focus-visible, .report-method summary:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media(max-width:1050px) {
 .report-overview, .report-middle { grid-template-columns:minmax(0,1fr); }
 .report-kpi { border-left:0; border-top:1px solid var(--line); }
 .report-kpi-value { margin-top:10px; }
 .report-thresholds { max-width:300px; margin-top:15px; }
}
@media(max-width:650px) {
 .report-controls, .report-section-heading { align-items:flex-start; flex-direction:column; gap:10px; }
 .report-result, .report-kpi, .report-table-panel, .report-chart, .report-attention { padding:18px 16px; }
 .report-facts { gap:12px; }
 .report-comparison span { display:block; margin:6px 0 0; }
 .report-completed > strong { font-size:56px; }
 .report-days { gap:3px; }
 .report-pagination { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce) { .report-day-bar { transition:none; } }
#app-view[data-view="report"] .header-period { flex: 0 0 auto; width: 166px; }
