/* Reports-specific styles to ensure table headers are visible */

/* Force table header visibility with high specificity */
.reports .table th,
.reports .table thead th,
.table.table-striped th,
.table.table-bordered th,
.table.table-striped thead th,
.table.table-bordered thead th {
    background-color: #e9ecef !important;
    color: #495057 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 0.75rem !important;
    vertical-align: middle !important;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Ensure all table headers in reports are visible */
.container-fluid .table th,
.container-fluid .table thead th,
.card .table th,
.card .table thead th {
    background-color: #e9ecef !important;
    color: #495057 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 0.75rem !important;
    vertical-align: middle !important;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Table body styling */
.table.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.table.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0) !important;
}

.table.table-bordered th,
.table.table-bordered td {
    border: 1px solid #dee2e6 !important;
}

/* Hover effects */
.table.table-striped tbody tr:hover,
.table.table-bordered tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* Chart container styling */
.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

/* Report section headers */
.reports h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Export buttons styling */
.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Print styles */
@media print {
    body * {
        visibility: hidden !important;
    }
    .print-area, .print-area * {
        visibility: visible !important;
    }
    .print-area {
        position: absolute !important;
        left: 0; top: 0; width: 100% !important;
        background: white !important;
        box-shadow: none !important;
    }
    .navbar, .sidebar, .filters-section, .page-header, .footer, .advanced-filters, .report-header, .print-hide {
        display: none !important;
    }
    .table th,
    .table thead th {
        background-color: #e9ecef !important;
        color: #495057 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .btn-group {
        display: none !important;
    }
    
    .chart-container {
        page-break-inside: avoid;
    }
} 