/* Compact card movements; native details preserve keyboard interaction. */
#card-history .card-history-item{border:1px solid var(--line);border-radius:9px;padding:0;margin:7px 0;overflow:hidden}
#card-history .card-history-row{display:grid;grid-template-columns:12px 88px 82px minmax(0,1fr) auto;align-items:baseline;gap:10px;padding:12px 14px;list-style:none;font-weight:400}
#card-history .card-history-row::-webkit-details-marker{display:none}
#card-history .card-history-row::before{content:"▸";font-size:13px}
#card-history .card-history-item[open]>.card-history-row::before{content:"▾"}
#card-history .card-history-row:hover{background:#f6f8fb}
#card-history .card-history-row:focus-visible{outline:2px solid #224e7e;outline-offset:-3px}
#card-history .card-history-date,#card-history .card-history-kind{font-size:12px}
#card-history .card-history-kind{color:#506884}
#card-history .card-history-concept{font-weight:600;overflow-wrap:anywhere}
#card-history .card-history-amount{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
#card-history .card-history-body{padding:4px 16px 12px 36px;border-top:1px solid var(--line);background:#fafbfd}
#card-history .card-history-body p{margin:8px 0;overflow-wrap:anywhere}
#card-history .card-history-body details{padding:6px 0 0;margin-top:10px}
#card-history .card-history-body summary{padding:6px 0;font-size:13px}
@media(max-width:600px){
 #card-history .card-history-row{grid-template-columns:10px 1fr auto;gap:5px 8px;padding:10px}
 #card-history .card-history-date{grid-column:2;grid-row:1}
 #card-history .card-history-kind{grid-column:3;grid-row:1;text-align:right}
 #card-history .card-history-concept{grid-column:2;grid-row:2}
 #card-history .card-history-amount{grid-column:3;grid-row:2}
 #card-history .card-history-body{padding-left:28px}
}
