/* RC16 shared, theme-aware presentation. Business data remains server-owned. */
#schoolIdentityTrigger #topSchoolName { color:var(--color-text-primary,var(--text-primary)); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#globalBackButton { flex:0 0 auto; }
.nsd-kpi-shell { margin-bottom:var(--space-4,16px); }
.nsd-table-card td { overflow-wrap:anywhere; }
.nsd-recent-activity-table .nsd-col-date { width:12%; }
.nsd-recent-activity-table .nsd-col-activity-type { width:12%; }
.nsd-recent-activity-table .nsd-col-student { width:23%; }
.nsd-recent-activity-table .nsd-col-class { width:15%; }
.nsd-recent-activity-table .nsd-col-detail { width:24%; }
.nsd-recent-activity-table .nsd-col-status { width:9%; }
.nsd-recent-activity-table .nsd-col-actions { width:5%; }
.nsd-recent-finance-table .nsd-col-date { width:11%; }
.nsd-recent-finance-table .nsd-col-reference { width:13%; }
.nsd-recent-finance-table .nsd-col-student { width:23%; }
.nsd-recent-finance-table .nsd-col-class { width:10%; }
.nsd-recent-finance-table .nsd-col-finance-type { width:10%; }
.nsd-recent-finance-table .nsd-col-amount { width:12%; }
.nsd-recent-finance-table .nsd-col-mode { width:9%; }
.nsd-recent-finance-table .nsd-col-status { width:8%; }
.nsd-recent-finance-table .nsd-col-actions { width:4%; }
.nsd-table-card .nsd-nowrap { white-space:normal; overflow-wrap:anywhere; }
.cf-custom-dates { display:flex; flex-wrap:wrap; gap:var(--space-3,12px); padding-top:12px; }
.cf-custom-dates>label { flex:1; min-width:150px; }
.cf-expense-register { isolation:isolate; }
.cf-expense-register th:nth-last-child(2),.cf-expense-register td:nth-last-child(2) { position:sticky;right:76px;min-width:120px;width:120px;background:var(--color-surface,var(--surface,#fff));z-index:2;box-shadow:-1px 0 var(--border-color); }
.cf-expense-register th:last-child,.cf-expense-register td:last-child { position:sticky;right:0;width:76px;min-width:76px;background:var(--color-surface,var(--surface,#fff));z-index:2; }
.cf-expense-register thead th:nth-last-child(-n+2) { z-index:4;background:var(--table-header,var(--surface)); }
.cf-selection { width:40px;min-width:40px;text-align:center; }
[data-expense-selection]:not([hidden]) { display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border:1px solid var(--border-color);border-radius:8px;margin-block:10px; }
.cf-reconcile-top-scroll { overflow-x:auto;overflow-y:hidden;min-height:18px;width:100%;background:var(--surface); }
.cf-reconcile-top-scroll>div { height:1px; }
.ns-page-size { display:flex;align-items:center;gap:6px;white-space:nowrap; }
.ns-page-size select { width:auto;min-width:65px; }
.table-pagination { flex-wrap:wrap;gap:10px; }
.cr-operation-pages { flex-wrap:wrap; }
/* Keep operations wide enough for amounts; move the summary below on normal laptops. */
@media(min-width:1101px) and (max-width:1750px){.cr-workspace .cr-self-dashboard{grid-template-columns:minmax(0,1fr)}.cr-workspace .cr-self-dashboard>.cr-cash-summary{grid-column:1;position:static}}
.cr-workspace table.cr-operations-table{width:100%;min-width:0;table-layout:fixed}
.cr-operations-table td:nth-child(4)>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cr-operations-table .cr-amount{font-size:13px;white-space:normal;overflow-wrap:anywhere;overflow:visible}
.fcw-fee-selector{position:sticky;top:12px;align-self:start;max-height:70vh;overflow:auto}
@media(max-width:900px){.fcw-fee-selector{position:static;max-height:230px}}
@media(max-width:700px){.cr-workspace table.cr-operations-table{min-width:750px}}
@media(max-width:700px){.ns-page-size{white-space:normal}.nsd-table-card table{min-width:720px}}
