/* Special CSS fixes for reports section and table footer */

/* Override all dark backgrounds in reports */
.report-footer, 
.report-total, 
tfoot, 
.table tfoot, 
.table tfoot tr, 
.table tfoot tr td,
.table-footer-group,
.report-table-footer,
.table-dark,
.table-dark tr,
.table-dark td,
.table-dark tfoot,
.table-footer,
.bg-primary,
.bg-secondary,
.bg-dark,
.bg-navy,
.bg-info,
.bg-light,
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}

/* Special footer styling */
tfoot tr td {
    border-top: 2px solid #138808 !important;
    font-weight: bold !important;
    color: #000080 !important;
}

/* Make all text in report tables visible */
.report-table td,
.report-table th,
.table td,
.table th {
    color: #333 !important;
    background-color: #ffffff !important;
}

/* Fix for blue buttons text in reports */
.btn-primary {
    color: #000080 !important;
    background-color: #FF9933 !important;
    border-color: #FF9933 !important;
}

/* Fix for green buttons text in reports */
.btn-success {
    color: white !important;
    background-color: #138808 !important;
    border-color: #138808 !important; 
}

/* Fix for table footer */
.table tfoot tr:last-child td {
    background-color: #f8f9fa !important;
    color: #000080 !important;
    font-weight: bold !important;
    border-top: 2px solid #138808 !important;
}