/* Compact transaction layout and matching Non-Expense / Non-Rev controls. No data or handler changes. */
@media screen and (min-width: 701px) {
 body .workbench-deal[data-ledger=true] { width: 100%; max-width: 1100px; margin-inline: auto; }
 body .workbench-deal[data-ledger=true] .transaction-table { min-width: 920px; width: 100%; table-layout: fixed; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(1) { width: 32px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(2) { width: 100px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(3) { width: auto; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(4),
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(5) { width: 108px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(6) { width: 252px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(7) { width: 144px; }
 body .workbench-deal[data-ledger=true] .transaction-table td { height: auto; padding: 4px 8px; font-size: 14px; vertical-align: middle; }
 body .workbench-deal[data-ledger=true] .transaction-table td:first-child { padding-left: 8px; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(2) { font-size: 14px; white-space: nowrap; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(3) > textarea { font-size: 14px; line-height: 21px; min-height: 22px; height: auto; max-height: 42px; overflow-y: auto; field-sizing: content; resize: vertical; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(3) > textarea:focus { min-height: 42px; max-height: 180px; }
 body .workbench-deal[data-ledger=true] .transaction-table .amount-heat { font-size: 15px; white-space: nowrap; }
 body .workbench-deal[data-ledger=true] .transaction-table .keyword-badge { font-size: 10px; line-height: 16px; padding: 0 6px; margin-top: 2px; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(3) > small { font-size: 11px; line-height: 17px; }
 body .workbench-deal[data-ledger=true] .category-control button { min-height: 34px; height: 34px; font-size: 13px; padding: 5px 4px; }
 body .workbench-deal[data-ledger=true] .row-actions { flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; }
 body .workbench-deal[data-ledger=true] .row-actions .compact-action { min-height: 30px; height: 30px; padding: 4px 6px; font-size: 11px; }
 body .workbench-deal[data-ledger=true] .workbench-date-action { font-size: 11px; line-height: 17px; margin-top: 1px; text-align: left; }
 body .workbench-deal[data-ledger=true] .ledger-header-columns { min-height: 38px; font-size: 13px; }
 body .workbench-deal[data-ledger=true] .ledger-header-columns > span { font-size: 13px; padding: 8px; }
 body .workbench-deal[data-ledger=true] .workbench-totals { margin: 6px 14px 10px; }
 body .workbench-deal[data-ledger=true] .transaction-panel .filter-grid { margin: 0 14px 10px; grid-template-columns: minmax(180px,1fr) 160px 100px 150px !important; gap: 10px; }
 body .workbench-deal[data-ledger=true] .filter-grid select,
 body .workbench-deal[data-ledger=true] .filter-grid input,
 body .workbench-deal[data-ledger=true] .filter-grid > button { min-height: 38px; height: 38px; font-size: 14px; }
 body .workbench-deal[data-ledger=true] .sticky-save { padding-inline: max(24px, calc((100vw - 1220px) / 2)); }
}

/* Non-Expense uses the same existing gold treatment as Non-Rev at every width. */
@media screen {
 body .workbench-deal .category-control .selected.transfer,
 body .workbench-deal .bulk-classification.category-transfer,
 body .workbench-deal .bulk-classification option.category-transfer { background: var(--tx-yellow); color: #30200a; }
}
