.enterprise-statement {max-width:100%;min-width:0;}
.enterprise-statement table {table-layout:auto;min-width:820px;}
.enterprise-statement th,.enterprise-statement td,.enterprise-statement button {white-space:nowrap;word-break:normal;}
.enterprise-statement th:first-child,.enterprise-statement td:first-child {min-width:220px;}
.enterprise-statement th:last-child,.enterprise-statement td:last-child {min-width:100px;}
.equity-statement table {min-width:1580px;}
.equity-statement th:not(:first-child):not(:last-child),.equity-statement td:not(:first-child):not(:last-child) {text-align:right;min-width:125px;}
@media print {
 .enterprise-statement table {min-width:0;width:100%;font-size:9px;}
 .enterprise-statement th,.enterprise-statement td {min-width:0!important;padding:5px 3px;white-space:normal;}
 .enterprise-statement th:last-child,.enterprise-statement td:last-child {display:none;}
}

/* Counterparty detail: preserve readable columns without widening other dialogs. */
#modal:has(.counterparty-report){width:min(1280px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.counterparty-report table{min-width:760px}
.counterparty-report th,.counterparty-report td,.counterparty-report button{white-space:nowrap}
.counterparty-report td{max-width:36ch;overflow:hidden;text-overflow:ellipsis}
.counterparty-report .table-wrap{overflow-x:auto}
