/* Reports (UI-5), on the tokens of application.css; panels and the collapsible block come from
   counter.css and workshop.css. */

.report-filter { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.report-filter .label { align-self: center; }
.report-list li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.report-list li:last-child { border-bottom: 0; }
.report-list__link { font-weight: 600; }

.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.report-table thead th { text-align: left; white-space: nowrap; }
.report-table thead th.num, .report-table tfoot th.num { text-align: right; }
.report-table tfoot th { text-align: left; border-top: 2px solid var(--line); font-weight: 600; }
.report-table--dense th, .report-table--dense td { padding: 3px 6px; font-size: 13px; }
.report-table tr.is-selected td { background: var(--info-bg); }
.report-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.report-items { margin-top: 16px; }
.report-items .table-wrap { padding: 0 12px 12px; }

.metal-position__alloy th { background: var(--bg-muted); }
.metal-position__kind td { color: var(--ink-muted); }

.badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge--fail { background: var(--err-bg); color: var(--err-ink); }

.report-sort { color: inherit; text-decoration: none; }
.report-sort:hover { text-decoration: underline; }
.report-table th[aria-sort] .report-sort { font-weight: 700; }
.report-filter__check { display: inline-flex; align-items: center; gap: 6px; }
.anniversaries__related div + div { margin-top: 2px; }
