/* 11 · Relatórios. */
.rep-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rep-list ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rep-list a { display: block; padding: 11px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.rep-list a:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.rep-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rep-list a.on { border-color: var(--primary); box-shadow: inset 4px 0 0 var(--accent); background: var(--primary-50); }
.rep-list b { display: block; font-size: 13.5px; font-weight: 600; color: var(--primary-900); }
.rep-list span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.rep-panel { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rep-desc { margin-bottom: 14px; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rep-actions .btn:disabled { opacity: .55; cursor: wait; }
.rep-msg:empty { display: none; }
.rep-msg { margin-top: 12px; }
.rep-out { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.rep-out:empty { display: none; }
.rep-note { margin-bottom: 12px; }
.rep-meta, .rep-applied { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; overflow-wrap: anywhere; }
.rep-meta b, .rep-applied b { color: var(--primary-900); }
.rep-summary { margin: 12px 0 14px; }
.rep-summary h3 { font-size: 13px; font-weight: 600; color: var(--primary-900); margin-bottom: 8px; }
.rep-summary dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rep-summary dl > div { background: var(--primary-50); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.rep-summary dt { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.rep-summary dd { font-size: 15px; font-weight: 700; color: var(--primary-900); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rep-scroll { overflow: auto; max-height: 68vh; border: 1px solid var(--border); border-radius: 10px; }
.rep-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rep-table { width: max-content; min-width: 100%; }
.rep-table th { position: sticky; top: 0; z-index: 1; font-size: 11px; letter-spacing: .04em; }
.rep-table td { white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.rep-table .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.rep-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .rep-layout { grid-template-columns: minmax(0, 1fr); }
  .rep-list ul { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .rep-list li { flex: 0 0 210px; }
  .rep-list span { display: none; }
  .rep-out { padding: 14px; }
  .rep-actions .btn { flex: 1 1 140px; justify-content: center; }
  .rep-scroll { max-height: 60vh; }
}
