/* Q94Y: the existing plain history ledger; no new menu or horizontal scroll. */
#app .expense-history-query { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; margin:10px 0; }
#app .expense-history-query label { display:block; flex:1 1 145px; min-width:0; font-size:14px; font-weight:400; }
#app .expense-history-query .expense-history-keyword { flex:2 1 220px; }
#app .expense-history-query label > :is(input,select) { display:block; width:100%; min-width:0; box-sizing:border-box; min-height:34px; margin:4px 0 0; padding:5px 7px; font-size:14px; border:1px solid #bfc6ce; border-radius:2px; background:#fff; }
#app .expense-history-query-actions,#app .expense-history-pagination { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#app .expense-history-pagination { margin:10px 0; }
#app .expense-history-query button,#app .expense-history-pagination button { min-height:34px; padding:5px 12px; font-size:14px; }
#app .expense-history-boundary,#app #expenseHistorySummary { font-size:14px; line-height:1.6; white-space:normal; overflow-wrap:anywhere; }
#app .expense-history-page .expense-sheet-scroll { min-width:0; max-width:100%; overflow:visible; }
#app .expense-history-page .expense-sheet-history { width:100%; min-width:0!important; table-layout:fixed; }
#app .expense-history-page .expense-sheet-history :is(th,td) { font-size:14px; padding:6px; overflow-wrap:anywhere; white-space:normal; }
#app .expense-history-page .expense-history-results th:nth-child(1) { width:15%; }
#app .expense-history-page .expense-history-results th:nth-child(2) { width:23%; }
#app .expense-history-page .expense-history-results th:nth-child(3) { width:20%; }
#app .expense-history-page .expense-history-results th:nth-child(7) { width:14%; }
#app .expense-history-page .expense-history-results td:nth-child(n+4):nth-child(-n+6) { text-align:right; font-variant-numeric:tabular-nums; }
#app .expense-history-page .expense-sheet-history button { min-height:32px; padding:4px 7px; font-size:14px; white-space:normal; }
#app .expense-history-page #expenseSavedDrafts { display:block; }
@media(max-width:900px) {
 #app .expense-history-page .expense-sheet-history,#app .expense-history-page .expense-sheet-history tbody { display:block; }
 #app .expense-history-page .expense-sheet-history thead { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); }
 #app .expense-history-page .expense-sheet-history tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-bottom:1px solid #cbd1d8; padding:8px 0; }
 #app .expense-history-page .expense-sheet-history tbody td { display:block; min-width:0; padding:4px 8px; border:0; text-align:left!important; }
 #app .expense-history-page .expense-sheet-history td[data-label]::before { content:attr(data-label); display:block; color:#59616d; font-size:13px; margin-bottom:3px; }
 #app .expense-history-page .expense-history-results td:nth-child(2),#app .expense-history-page .expense-history-results td:nth-child(3),#app .expense-history-page .expense-history-results td:last-child,#app .expense-history-page .expense-sheet-history td[colspan] { grid-column:1/-1; }
}
@media(max-width:520px) {
 #app .expense-history-query label { flex:1 1 100%; }
 #app .expense-history-query label > :is(input,select),#app .expense-history-page button { min-height:44px; font-size:16px; }
 #app .expense-history-query-actions { width:100%; }
 #app .expense-history-query-actions button { flex:1; }
}
/* Scoped original details: all thirteen fields, grouped into labelled lines. */
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-scroll { overflow:visible; min-width:0; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history,body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody { display:block!important; width:100%!important; min-width:0!important; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history thead { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip-path:inset(50%)!important; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody tr { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:0!important; margin:0!important; padding:8px!important; border-bottom:1px solid #bfc6ce!important; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody td { display:block!important; grid-column:auto!important; grid-row:auto!important; width:auto!important; min-width:0!important; border:0!important; padding:6px!important; font-size:14px; white-space:normal!important; overflow-wrap:anywhere!important; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody td::before { display:block!important; content:attr(data-label)!important; color:#59616d; margin:0 0 3px!important; font-size:13px; }
body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody td:last-child { grid-column:1/-1!important; }
@media(max-width:700px) {
 body.classic #app .expense-readonly-detail.classic-expense-record .expense-sheet-history tbody tr { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
