.studio-accounting-journal-dialog .studio-version-row{flex-wrap:wrap;align-items:flex-start}
.studio-accounting-journal-dialog .studio-version-row>div:first-child{flex:1 1 360px;min-width:0;overflow-wrap:anywhere}
.studio-accounting-journal-dialog .studio-document-tools{flex-wrap:wrap;max-width:100%}
.journal-payment-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:12px;margin:8px 0 12px}
.journal-payment-totals>div{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid var(--line);border-radius:10px;min-width:0;overflow-wrap:anywhere}
.journal-payment-totals strong{font-size:20px}
.journal-payment-summary{margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}
.journal-payment-summary p{margin:6px 0;overflow-wrap:anywhere}
.journal-payment-paid{background:#b9efcb;color:#163d23}
.journal-payment-partial{background:#fff0b1;color:#5b4800}
.journal-payment-overpaid{background:#d0e9ff;color:#183852}
.journal-payment-cancelled{background:#e1e1e1;color:#333}
[data-theme="dark"] .journal-payment-paid{background:#10251a;color:#78ce9d}
[data-theme="dark"] .journal-payment-partial{background:#29220e;color:#dac36b}
[data-theme="dark"] .journal-payment-overpaid{background:#102433;color:#91bddd}
[data-theme="dark"] .journal-payment-cancelled{background:#222;color:#bbb}
