.master-ledger-page .master-ledger-account-filter {
	min-width: 220px;
	max-width: 320px;
}

.master-ledger-page .master-ledger-table-wrap {
	max-height: calc(100vh - 280px);
	overflow: auto;
}

.master-ledger-page .master-ledger-table-wrap .table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--bs-table-bg, #fff);
	white-space: nowrap;
	box-shadow: inset 0 -1px 0 var(--bs-table-border-color, #dee2e6);
}

.master-ledger-page .master-ledger-table-wrap tbody tr.master-ledger-row {
	cursor: pointer;
}

.master-ledger-page .master-ledger-actions {
	white-space: nowrap;
}

.master-ledger-page .master-ledger-actions .d-inline-flex {
	vertical-align: middle;
}

.master-ledger-page .master-ledger-table-wrap .amt-neg {
	color: #b42318;
}

.master-ledger-page .master-ledger-detail-grid {
	display: grid;
	grid-template-columns: minmax(140px, 38%) 1fr;
	gap: 0.35rem 1rem;
	font-size: 0.875rem;
}

.master-ledger-page .master-ledger-detail-grid dt {
	margin: 0;
	font-weight: 600;
	color: #6c757d;
}

.master-ledger-page .master-ledger-detail-grid dd {
	margin: 0 0 0.5rem;
	word-break: break-word;
}

.master-ledger-page .master-ledger-detail-notes {
	white-space: pre-wrap;
}

/* Edit modal — scrollable body, fixed header/footer */
.master-ledger-page #masterLedgerEditModal .master-ledger-edit-dialog {
	max-height: calc(100vh - 2rem);
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.master-ledger-page #masterLedgerEditModal .modal-content {
	max-height: calc(100vh - 2rem);
	overflow: hidden;
}

.master-ledger-page #masterLedgerEditModal .master-ledger-edit-modal-body {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	max-height: min(70vh, calc(100vh - 12rem));
}
