/* Reports Page Styles */

.reports-container {
    padding: 0;
}

.reports-header {
    padding: 25px;
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    color: white;
    border-radius: 12px 12px 0 0;
}

.reports-header h2 {
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Reports Tabs */
.reports-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 20px;
}

.reports-tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-tab-btn:hover {
    color: #A67C52;
    background: rgba(166, 124, 82, 0.05);
}

.reports-tab-btn.active {
    color: #A67C52;
    border-bottom-color: #A67C52;
    background: white;
}

.reports-tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.reports-tab-content {
    display: none;
    padding: 25px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.reports-tab-content.active {
    display: block;
}

/* Report Filters */
.report-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.filter-input {
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #A67C52;
    color: white;
}

.filter-btn:hover {
    background: #8B6F47;
}

.export-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #10b981;
    color: white;
}

.export-btn:hover {
    background: #059669;
}

/* Financial Summary Cards */
.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.financial-card {
    background: #F5E6D3;
    border: 2px solid #A67C52;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.financial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.2);
}

.financial-card.highlight {
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    border-color: #8B6F47;
}

.financial-card.highlight .financial-icon {
    display: none;
}

.financial-card.highlight .financial-info {
    color: white;
}

.financial-card.success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #059669;
}

.financial-card.success .financial-icon {
    display: none;
}

.financial-card.success .financial-info {
    color: white;
}

.financial-card.success .financial-label {
    color: rgba(255,255,255,0.9);
}

.financial-card.success .financial-value {
    color: white;
}

.financial-icon {
    display: none;
}

.financial-info {
    flex: 1;
    text-align: center;
}

.financial-label {
    font-size: 14px;
    color: #8B6F47;
    margin-bottom: 8px;
    font-weight: 600;
}

.financial-card.highlight .financial-label {
    color: rgba(255,255,255,0.9);
}

.financial-value {
    font-size: 28px;
    font-weight: 700;
    color: #6B4423;
}

.financial-card.highlight .financial-value {
    color: white;
}

.financial-card.success .financial-label {
    color: rgba(255,255,255,0.9);
}

.financial-card.success .financial-value {
    color: white;
}

/* Inventory Summary Cards */
.inventory-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inventory-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.inventory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.inventory-card.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.inventory-card.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.inventory-card.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.inventory-card.success .inventory-icon,
.inventory-card.warning .inventory-icon,
.inventory-card.danger .inventory-icon {
    background: rgba(255,255,255,0.2);
    color: white;
}

.inventory-card.success .inventory-info,
.inventory-card.warning .inventory-info,
.inventory-card.danger .inventory-info {
    color: white;
}

.inventory-icon {
    width: 60px;
    height: 60px;
    background: rgba(166, 124, 82, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A67C52;
    font-size: 24px;
    flex-shrink: 0;
}

.inventory-info {
    flex: 1;
}

.inventory-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.inventory-card.success .inventory-label,
.inventory-card.warning .inventory-label,
.inventory-card.danger .inventory-label {
    color: rgba(255,255,255,0.9);
}

.inventory-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.inventory-card.success .inventory-value,
.inventory-card.warning .inventory-value,
.inventory-card.danger .inventory-value {
    color: white;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: linear-gradient(135deg, #FFFFFF, #FFF8E7);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(166, 124, 82, 0.1);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-card h3 i {
    color: var(--primary-brown);
}

.chart-card canvas {
    max-height: 350px;
}

@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

/* Details Section */
.financial-details,
.inventory-details,
.product-revenue-details {
    margin-top: 30px;
}

.financial-details h3,
.inventory-details h3,
.product-revenue-details h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.table-container {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table thead {
    background: linear-gradient(135deg, #A67C52, #8B6F47);
    color: white;
}

.report-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.report-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.report-table tbody tr:hover {
    background: #f8f9fa;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.report-total-row {
    background: #f8f9fa;
    font-weight: 700;
}

.report-total-row td {
    border-top: 2px solid #A67C52;
    padding: 20px 15px;
    font-size: 16px;
    color: #A67C52;
    text-align: center;
}

.empty-report {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-report i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.success {
    background: #d1fae5;
    color: #059669;
}

.status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .reports-tabs {
        padding: 0 10px;
    }
    
    .reports-tab-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .report-filters {
        flex-direction: column;
    }
    
    .filter-input {
        width: 100%;
    }
    
    .financial-summary,
    .inventory-summary {
        grid-template-columns: 1fr;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .report-table {
        min-width: 600px;
    }
}
