/* What moved the book, what made and lost the money over a period, and the benchmark choice (src/dashboard/attribution.js). Colours come from app.css's variables, so dark mode follows.
   The bars are drawn left to right, a loss to the left of the line and a gain to the right, in Hebrew too: a number line does not turn round. */
.att-card .att-sentence { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.att-card .att-detail { margin: 4px 0 0; }
.att-rows { display: flex; flex-direction: column; margin: 10px 0 0; padding: 0; list-style: none; }
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name amt" "bar bar"; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.att-row:last-child { border-bottom: 0; }
.att-name { grid-area: name; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.att-name a { color: var(--text); font-weight: 600; }
.att-state { font-size: 12px; color: var(--muted); }
.att-amt { grid-area: amt; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.att-amt small { display: block; font-size: 12px; color: var(--muted); }
.att-track { grid-area: bar; display: flex; direction: ltr; height: 8px; align-items: center; }
.att-half { flex: 1 1 50%; display: flex; height: 100%; }
.att-half.neg { justify-content: flex-end; border-inline-end: 1px solid var(--line); }
.att-bar { height: 100%; border-radius: 2px; min-width: 1px; }
.att-bar.pos { background: var(--pos); }
.att-bar.neg { background: var(--neg); }
.att-bar.none { background: var(--line); }
.att-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; }
.att-controls .seg { flex-wrap: wrap; }
.att-since { display: inline-flex; gap: 6px; align-items: center; }
.att-lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.att-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.att-lab { min-width: 0; overflow-wrap: anywhere; }
.att-num { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.att-lines li.sum { font-weight: 600; border-top: 1px solid var(--muted); border-bottom: 0; }
.att-lines li.gap { color: var(--muted); }
.att-notes { margin: 8px 0 0; padding-inline-start: 18px; }
.att-notes li { margin: 2px 0; }
.att-bench { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
.att-bench select { max-width: 100%; }
.att-body > * { min-width: 0; }
@media (min-width: 720px) { .att-row { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; grid-template-areas: "name bar amt"; align-items: center; } }
