/* Évolution de la bankroll : marges et alignements alignés sur les autres panneaux. */
.bankroll-history { position:relative; margin-block:1rem; min-width:0; padding:22px; font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased; text-rendering:geometricPrecision; }
.bankroll-history>h2 { margin:0 0 6px; font-size:16px; line-height:1.3; }
.bankroll-history>p.muted { margin:0; font-size:12px; line-height:1.7; max-width:62ch; }
.bankroll-history>.fine-print { margin:10px 0 0; }
.bh-chart { position:relative; margin:16px 0 0; }
.bankroll-history .bh-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.bankroll-history .bh-chart svg:focus-visible { outline:1px solid var(--accent); outline-offset:2px; border-radius:4px; }
/* Départ / solde actuel : deux blocs alignés aux deux bords du graphique. */
.bankroll-history-axis { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.bh-stat { display:flex; flex-direction:column; gap:3px; min-width:0; }
.bh-stat small { font-size:12px; line-height:1.4; color:var(--muted); }
.bh-stat strong { font-size:15px; line-height:1.3; font-weight:650; overflow-wrap:anywhere; }
.bh-stat.end { text-align:right; align-items:flex-end; }
.bankroll-history details { margin-top:16px; border-top:1px solid var(--border); }
.bankroll-history summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; cursor:pointer; list-style:none; font-size:12px; color:var(--muted); }
.bankroll-history summary::-webkit-details-marker { display:none; }
.bankroll-history summary::after { content:""; flex:none; width:7px; height:7px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .2s ease; margin-right:3px; }
.bankroll-history details[open] summary::after { transform:rotate(-135deg); }
.bankroll-history summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.bankroll-history table { width:100%; min-width:0; margin:0 0 4px; border-collapse:collapse; }
.bankroll-history th,.bankroll-history td { padding:9px 0; font-size:12px; font-weight:400; text-align:left; border-top:1px solid var(--border); }
.bankroll-history thead th { font-size:12px; color:var(--muted); border-top:0; }
.bankroll-history td:last-child,.bankroll-history thead th:last-child { text-align:right; }
.bankroll-history tbody td { font-weight:600; }
@media(max-width:600px) { .bankroll-history { padding:17px; } .bh-stat strong { font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .bankroll-history summary::after { transition:none; } }
/* Tableau des soldes : pas de fond de colonne, variation en couleur sans barre (les dégradés ont été retirés à la demande du propriétaire) */
.bankroll-history table th { background:none; padding-inline:0; border-bottom:0; }
.bankroll-history thead th:nth-child(2) { text-align:right; padding-right:28px; }
.bankroll-history tbody th { color:#cdb6ba; font-size:13px; }
.bankroll-history tbody td { font-size:13px; }
.bankroll-history .bh-row { transition:background-color .15s; }
@media(hover:hover){ .bankroll-history .bh-row:hover { background:#ffffff06; } }
.bankroll-history .bh-delta { position:relative; width:46%; padding-right:28px; text-align:right; font-weight:600; }
.bankroll-history .bh-delta b { font-weight:650; font-variant-numeric:tabular-nums; }
.bankroll-history .bh-bar { display:none; }
.bankroll-history .bh-up .bh-delta { color:var(--positive); }
.bankroll-history .bh-down .bh-delta { color:var(--red); }
.bankroll-history .bh-start { color:var(--muted); font-weight:400; }
@media(max-width:600px){ .bankroll-history .bh-delta { width:auto; padding-right:16px; } .bankroll-history .bh-bar { right:16px; } .bankroll-history thead th:nth-child(2) { padding-right:16px; } }
