﻿.ledger-container {
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Sticky filter section */
.sticky-filters {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f8f9fa;
    padding-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sticky table header just below filter */
.ledger-table-wrapper .mud-table thead th {
    position: sticky;
    top: 0px; /* match filter height (adjust) */
    background: #fff;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* Enable horizontal scrolling */
.mud-table-scroll {
    overflow-x: auto;
    width: 100%;
}

/* Make header text bold for MudTable and MudDataGrid */
.mud-table thead th,
.mud-table-head {
    font-weight: bold;
}

/* Sticky header for MudTable */
.sticky-mud-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
}

/* Sticky header for MudDataGrid */
.mud-table-head {
    position: sticky;
    top: 0;
    z-index: 3; /* higher than rows */
    background-color: #fff;
}

/* Optional: Sticky footer (for totals in MudTable) */
.sticky-mud-table tfoot {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background-color: #f9f9f9;
}