table thead tr:first-child th,
table.table thead tr:first-child th,
table.dataTable thead tr:first-child th {
    padding: 0.5rem !important;
    vertical-align: middle !important;
    background-color: lightblue !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    min-height: 6.125rem !important;
    max-height: 6.125rem !important;
}

table thead tr:not(:first-child),
table.table thead tr:not(:first-child),
table.dataTable thead tr:not(:first-child) {
    display: none !important;
}

table thead tr,
table.table thead tr,
table.dataTable thead tr:first-child {
    height: 6.125rem !important;
    min-height: 6.125rem !important;
    max-height: 6.125rem !important;
    box-sizing: border-box !important;
}

table thead tr:first-child th,
table.table thead tr:first-child th,
table.dataTable thead tr:first-child th {
    height: 6.125rem !important;
}

/* Ensure card headers also have consistent height on larger screens */
@media (min-width: 992px) {
    .card-header {
        min-height: 4.5rem;
        display: flex;
        align-items: center;
    }
    
    .card-header .row {
        width: 100%;
        align-items: center;
        margin: 0;
    }
}

table tbody td,
table.table tbody td,
table.dataTable tbody td {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
    padding: 0.5rem !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

table tbody tr,
table.table tbody tr,
table.dataTable tbody tr {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
    box-sizing: border-box !important;
}

table tfoot td,
table tfoot th,
table.table tfoot td,
table.table tfoot th,
table.dataTable tfoot td,
table.dataTable tfoot th {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
    padding: 0.5rem !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

table tfoot tr,
table.table tfoot tr,
table.dataTable tfoot tr {
    height: 3.5rem !important;
    min-height: 3.5rem !important;
    max-height: 3.5rem !important;
    box-sizing: border-box !important;
}
