.movement-history{max-width:none;width:100%;box-sizing:border-box}
.movement-history.editor-page>h2{display:none}
.editor-page-open main:has(.movement-history)>.finance-legal-links{display:none}
.movement-history>p{max-width:100ch}
.history-source{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:10px 12px;background:var(--surface-soft,#f1f7f5);border-radius:8px;margin:12px 0;font-size:.86rem}
.history-change{display:grid;gap:2px;margin:3px 0;white-space:normal;overflow-wrap:anywhere}
.history-change>strong{font-size:.75rem;color:var(--muted,#64736f)}
.history-selection{margin:12px 0;flex-wrap:wrap}
.history-selection strong{font-size:.85rem}
.movement-history .history-table{width:100%;min-width:0;table-layout:fixed;font-size:.82rem}
.movement-history .history-table th,.movement-history .history-table td{padding:8px;white-space:normal;vertical-align:top;overflow-wrap:anywhere}
.history-table th:nth-child(1){width:44px}
.history-table th:nth-child(2){width:100px}
.history-table th:nth-child(3){width:25%}
.history-table th:nth-child(4){width:105px}
.history-table input[type=checkbox]{width:18px;height:18px;margin:3px;accent-color:var(--accent,#15766a)}
.history-table small{display:block;margin-top:4px;color:var(--muted,#64736f)}
.history-error{color:#a62121;background:#fff1f1;padding:12px;border-radius:8px}
.history-pages{justify-content:center;flex-wrap:wrap;font-size:.8rem;margin:12px 0}
.movement-history .form-actions{position:sticky;bottom:0;padding:12px 0;background:var(--surface,#fff);flex-wrap:wrap;border-top:1px solid #dce7e3;z-index:1}
@media(max-width:650px){
 .history-source{display:block}
 .movement-history .history-table,.history-table tbody{display:block}
 .history-table thead{display:none}
 .history-table tr{display:grid;grid-template-columns:32px 1fr auto;border-bottom:1px solid #dce7e3;padding:8px 0}
 .movement-history .history-table td{border:0;padding:4px;min-width:0}
 .history-table td:first-child{grid-row:1 / 4}
 .history-table td:nth-child(2){grid-column:2;font-size:.75rem}
 .history-table td:nth-child(3){grid-column:2;grid-row:2}
 .history-table td:nth-child(4){grid-column:3;grid-row:1 / 3;max-width:100px}
 .history-table td:nth-child(5){grid-column:2 / 4}
 .movement-history .form-actions button{flex:1 1 180px;white-space:normal}
}
