/* Reports Module Styles */

.reports-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.reports-header {
    margin-bottom: 30px;
}

.reports-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

/* Report Tabs */
.reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.report-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.report-tab:hover {
    color: #2196F3;
    background: #f5f5f5;
}

.report-tab.active {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

/* Report Panels */
.report-panel {
    display: none;
}

.report-panel.active {
    display: block;
}

.report-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.report-card h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 10px 0;
}

.report-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Report Filters */
.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group input[type="date"],
.filter-group select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-group input[type="date"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #2196F3;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Report Actions */
.report-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.export-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Report Results */
.report-results {
    margin-top: 30px;
}

.report-summary {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.report-summary h3 {
    margin: 0 0 15px 0;
    color: #1976D2;
    font-size: 1.2rem;
}

.report-summary p {
    margin: 8px 0;
    color: #555;
}

.report-summary p strong {
    color: #1976D2;
    font-size: 1.1rem;
}

/* Report Table */
.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.report-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.report-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.report-table tr:last-child td {
    border-bottom: none;
}

.report-table tbody tr {
    transition: background 0.2s;
}

.report-table tbody tr:hover {
    background: #f5f5f5;
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Loading State */
.report-results.loading {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.report-results.loading::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .reports-container {
        padding: 10px;
    }
    
    .report-card {
        padding: 20px;
    }
    
    .reports-tabs {
        flex-direction: column;
    }
    
    .report-tab {
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: none;
    }
    
    .report-tab.active {
        border-left-color: #2196F3;
        border-bottom-color: transparent;
    }
    
    .report-filters {
        grid-template-columns: 1fr;
    }
    
    .report-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-buttons {
        flex-direction: column;
    }
    
    .report-table {
        font-size: 0.85rem;
    }
    
    .report-table th,
    .report-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .reports-tabs,
    .report-filters,
    .report-actions {
        display: none;
    }
    
    .report-card {
        box-shadow: none;
        padding: 0;
    }
}

