/* SPEC-0009: prévia usa os tokens Solidez e mantém tabelas dentro do cartão. */
.weekly-report .replies-header { gap: 18px; align-items: flex-start; }
.weekly-report .replies-header > div { min-width: 0; }
.weekly-report .replies-header button { flex-shrink: 0; }
.weekly-preview { margin-top: 20px; min-width: 0; overflow-wrap: anywhere; }
.weekly-preview-header { border-bottom: 2px solid var(--accent); padding-bottom: 18px; }
.weekly-brand { color: var(--accent); font-size: var(--fs-2xs); letter-spacing: .12em; margin-bottom: 8px; }
.weekly-preview-header h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.weekly-section { margin-top: 26px; min-width: 0; }
.weekly-section > h3 { color: var(--accent); font-size: var(--fs-base); margin-bottom: 10px; }
.weekly-description { color: var(--text-secondary); font-size: var(--fs-xs); line-height: 1.65; }
.weekly-ai-note { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.65; margin-top: 12px; }
.weekly-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.weekly-kpi { padding: 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.weekly-kpi h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; }
.weekly-value { font-size: var(--fs-2xl); font-weight: 750; color: var(--text-primary); line-height: 1.3; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.weekly-comparison { margin-top: 10px; font-size: var(--fs-xs); line-height: 1.5; color: var(--accent); }
.weekly-kpi-overdue-now .weekly-value { color: var(--red); }
.weekly-kpi-received .weekly-value { color: var(--green); }
.weekly-table-wrap { width: 100%; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.weekly-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.weekly-table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: var(--fs-xs); }
.weekly-table th, .weekly-table td { padding: 12px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: top; }
.weekly-table th { color: var(--accent); font-size: var(--fs-2xs); font-weight: 600; background: var(--bg-glass); }
.weekly-table tr:last-child td { border-bottom: 0; }
.weekly-table td:nth-child(2), .weekly-table td:last-child { white-space: nowrap; }
.weekly-table td:first-child, .weekly-table th:first-child { width: 35%; }
.weekly-trend-legend { color: var(--text-secondary); font-size: var(--fs-xs); margin-top: 12px; }
.weekly-trend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.weekly-trend-row { padding: 12px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.weekly-trend-date { color: var(--text-primary); font-size: var(--fs-xs); font-weight: 600; margin-bottom: 8px; }
.weekly-trend-item { margin-top: 8px; font-size: var(--fs-2xs); color: var(--text-secondary); }
.weekly-bar-track { width: 100%; height: 6px; background: var(--bg-glass); border-radius: 4px; margin-top: 5px; }
.weekly-bar-fill { display: block; height: 6px; border-radius: 4px; background: var(--accent); }
.weekly-trend-item.is-overdue .weekly-bar-fill { background: var(--red); }
.weekly-actions { display: grid; gap: 14px; list-style: none; padding: 0; margin-top: 14px; }
.weekly-action { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 16px; background: var(--bg-glass); min-width: 0; }
.weekly-action h4 { color: var(--text-primary); font-size: var(--fs-md); margin-bottom: 12px; }
.weekly-action p { font-size: var(--fs-xs); color: var(--text-secondary); line-height: 1.7; margin-top: 8px; }
.weekly-action strong { color: var(--text-primary); }
.weekly-action .weekly-action-fact { color: var(--accent); }
.weekly-action .weekly-action-sources { font-size: var(--fs-2xs); }
.weekly-preview a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.weekly-preview a:hover { color: var(--accent-hover); }
.weekly-sources { padding-left: 18px; }
.weekly-sources li { margin-top: 16px; font-size: var(--fs-xs); line-height: 1.65; }
.weekly-sources p { margin-top: 5px; }
@media (max-width: 900px) {
    .weekly-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .weekly-report .replies-header { flex-direction: column; }
    .weekly-report .replies-header button { width: 100%; }
    .weekly-kpis, .weekly-trend { grid-template-columns: minmax(0, 1fr); }
    .weekly-section { margin-top: 22px; }
    .weekly-kpi, .weekly-action { padding: 14px; }
    .weekly-table { font-size: var(--fs-2xs); }
    .weekly-table th, .weekly-table td { padding: 8px 6px; }
    .weekly-table th { font-size: var(--fs-2xs); }
}
