/* Reports View Scoped Styles - Does NOT affect Dashboard */

/* CSS Variables for Reports */
:root {
    --success: var(--primary-color, #6366F1);
    --error: var(--red, #EF4444);
}

#reports-view { padding: 24px 32px; position: relative; }

/* Reports Filter Toggle Button */
#reports-toggle-filters-btn {
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 1000;
    width: 36px;
    height: 36px;
    border-radius: 0 8px 8px 0;
    background: var(--surface-color, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-left: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 4px 6px 4px 2px;
    overflow: visible;
}


#reports-toggle-filters-btn svg {
    width: 18px;
    height: 18px;
    transition: stroke 0.2s ease-in-out;
}

#reports-toggle-filters-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

body.dark-mode #reports-toggle-filters-btn {
    background-color: var(--dm-surface-color);
    border-color: var(--dm-border-color);
}

body.dark-mode #reports-toggle-filters-btn svg {
    stroke: var(--dm-text-primary);
}

/* Reports Filters Panel */
#reports-filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--surface-color);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
}

#reports-filters-panel .filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
}

#reports-filters-panel .filters-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

#reports-filters-panel .close-filters-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#reports-filters-panel .close-filters-btn:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

body.dark-mode #reports-filters-panel .filters-header {
    background: var(--dm-surface-color);
    border-bottom-color: var(--dm-border-color);
}

body.dark-mode #reports-filters-panel .filters-header h3 {
    color: var(--dm-text-primary);
}

#reports-filters-panel.open {
    transform: translateX(0);
}

#reports-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#reports-filters-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#reports-filter-bar {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#reports-filter-bar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#reports-filter-bar .filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#reports-filter-bar .filter-group input,
#reports-filter-bar .filter-group select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-light);
    color: var(--text-primary);
    width: 100%;
}

#reports-filter-bar .date-range-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#reports-filter-bar .date-range-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#reports-filter-bar .date-range-group input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-light);
    color: var(--text-primary);
    width: 100%;
}

#reports-filter-bar .enhanced-multiselect {
    position: relative;
    width: 100%;
}

#reports-filter-bar .select-toggle {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-light);
    color: var(--text-primary);
}

#reports-filter-bar .filter-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#reports-filter-bar .action-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

#reports-filter-bar .action-btn.primary {
    background: var(--primary-color);
    color: white;
}

#reports-filter-bar .action-btn.primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#reports-filter-bar .action-btn.secondary {
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

#reports-filter-bar .action-btn.secondary:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode #reports-filters-panel {
    background: var(--dm-surface-color);
}

body.dark-mode #reports-filter-bar .filter-group input,
body.dark-mode #reports-filter-bar .filter-group select {
    background: var(--dm-background-light);
    border-color: var(--dm-border-color);
    color: var(--dm-text-primary);
}
#reports-view .report-dashboard { padding: 20px 0; }
#reports-view .dashboard-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
#reports-view .dashboard-header h1 { font-size: 2rem; font-weight: 700; margin: 0; color: var(--text-primary); }
#reports-view .report-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
#reports-view .report-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 32px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
#reports-view .report-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); border-color: var(--primary-color); }
#reports-view .report-card-icon { font-size: 3rem; margin-bottom: 16px; }
#reports-view .report-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 16px 0; color: var(--text-primary); }
#reports-view .report-card-btn { background: var(--primary-color); color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 500; cursor: pointer; }
#reports-view .report-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
#reports-view .back-btn { background: var(--surface-color); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 8px; }
#reports-view .back-btn:hover { background: var(--background-light); color: var(--text-primary); }
#reports-view .report-toggle-container { display: flex; gap: 8px; background: var(--background-light); padding: 4px; border-radius: 10px; width: fit-content; }
#reports-view .report-toggle-btn { background: transparent; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; color: var(--text-secondary); }
#reports-view .report-toggle-btn.active { background: var(--surface-color); color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
#reports-view .reports-filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 20px; background: var(--surface-color); border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 24px; }
#reports-view .filter-group { display: flex; flex-direction: column; gap: 6px; }
#reports-view .filter-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
#reports-view .filter-group select, #reports-view .filter-group input { padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; min-width: 180px; }
#reports-view .filter-actions { display: flex; gap: 8px; margin-left: auto; }
#reports-view .action-btn { padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; }
#reports-view .action-btn.primary { background: var(--primary-color); color: white; }
#reports-view .action-btn.secondary { background: var(--surface-color); color: var(--text-secondary); border: 1px solid var(--border-color); }
#reports-view .enhanced-multiselect { position: relative; }
#reports-view .select-toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; min-width: 180px; background: var(--surface-color); }
#reports-view .select-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100; max-height: 250px; overflow-y: auto; }
#reports-view .select-option { display: flex; justify-content: space-between; padding: 10px 14px; cursor: pointer; }
#reports-view .select-option:hover { background: var(--background-light); }
#reports-view .select-option.selected { background: var(--primary-light); }
#reports-view .select-option .option-check { display: none; color: var(--primary-color); }
#reports-view .select-option.selected .option-check { display: inline; }
#reports-view .chart-container { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
#reports-view .chart-container h3 { font-size: 1rem; font-weight: 600; margin: 0 0 16px 0; color: var(--text-primary); }
#reports-view .chart-container canvas { max-width: 100%; }
#reports-view .report-charts-grid { display: grid; gap: 24px; }
#reports-view .overall-header-stats { display: grid; grid-template-columns: auto 1fr auto 2fr; gap: 24px; margin-bottom: 32px; align-items: center; }
#reports-view .stats-connection { display: flex; align-items: center; justify-content: center; padding: 0 8px; }
#reports-view .connection-arrow { width: 32px; height: 32px; color: var(--primary-color); opacity: 0.6; flex-shrink: 0; }
#reports-view .big-number-card, #reports-view .progress-bars-card, #reports-view .donut-chart-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
#reports-view .big-number-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#reports-view .small-number-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; }
#reports-view .small-number { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
#reports-view .small-number-label { font-size: 0.875rem; color: var(--text-secondary); margin-top: 6px; text-align: center; }
#reports-view .big-number-card-inline { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; }
#reports-view .big-number { font-size: 4rem; font-weight: 700; color: var(--primary-color); }
#reports-view .big-number-label { font-size: 1rem; color: var(--text-secondary); margin-top: 8px; }
#reports-view .progress-bar-item { display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; gap: 16px; margin-bottom: 16px; }
#reports-view .progress-bar-info { display: flex; flex-direction: column; }
#reports-view .progress-bar-track { height: 8px; background: var(--background-light); border-radius: 4px; overflow: hidden; }
#reports-view .progress-bar-fill { height: 100%; border-radius: 4px; }
#reports-view .progress-bar-fill.success { background: var(--success); }
#reports-view .progress-bar-fill.unsuccess { background: var(--error); }
#reports-view .progress-bar-count { text-align: right; font-weight: 600; }
#reports-view .donut-charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#reports-view .donut-chart-card h3 { margin: 0 0 4px 0; font-size: 1rem; }
#reports-view .donut-chart-card p { margin: 0 0 16px 0; color: var(--text-secondary); font-size: 0.875rem; }
#reports-view .chart-container-horizontal { display: flex; align-items: center; gap: 16px; }
#reports-view .chart-area { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
#reports-view .chart-area canvas { max-width: 150px; max-height: 150px; }
#reports-view .chart-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 0; width: auto; }
#reports-view .legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
#reports-view .legend-color { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
#reports-view .legend-label { color: var(--text-secondary); }
#reports-view .hour-cell { display: flex; flex-wrap: wrap; gap: 3px; }
#reports-view .action-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; cursor: pointer; }
#reports-view .dot-answered { background: var(--success); }
#reports-view .dot-not-answered { background: var(--error); }
#reports-view .dot-whatsapp { background: #25D366; }
#reports-view .dot-default { background: var(--text-muted); }
#reports-view .stats-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 12px; 
}

/* Clean stats grid layout - no cards, minimal design */
#reports-view #reports-summary-cards.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

/* Hide summary cards when in table view */
#reports-view #reports-summary-cards.stats-container.hide-view {
    display: none !important;
}

/* Hide charts grid when in table view */
#reports-view #reports-charts-grid.hide-view {
    display: none !important;
}

/* Hide table container when in graph view */
#reports-view #reports-table-container.hide-view {
    display: none !important;
}

/* Mobile: 2 columns for better space utilization */
@media (max-width: 768px) {
    #reports-view #reports-summary-cards.stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small mobile: still 2 columns */
@media (max-width: 480px) {
    #reports-view #reports-summary-cards.stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
#reports-view .stat-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; text-align: center; }
#reports-view .stat-card h4 { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin: 0 0 8px 0; text-transform: uppercase; }
#reports-view .stat-card p { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); margin: 0; }

/* Clean stat item design - minimal, easy to scan */
#reports-view .marketer-stat-item {
    background: var(--surface-color);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease;
    min-height: 65px;
    justify-content: center;
}

#reports-view .marketer-stat-item:hover {
    background: var(--background-light);
}

#reports-view .marketer-stat-item .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

#reports-view .marketer-stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* Small variant for summary metrics */
#reports-view .marketer-stat-item.stat-item-small {
    min-height: 55px;
    padding: 10px 12px;
}

#reports-view .marketer-stat-item.stat-item-small .stat-label {
    font-size: 0.65rem;
}

#reports-view .marketer-stat-item.stat-item-small .stat-value {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Color coding using Dashboard.css colors - matching exactly */
/* These colors match Dashboard.css stat-card border colors */
#reports-view .marketer-stat-item.stat-color-blue { border-left-color: #2563EB; }
#reports-view .marketer-stat-item.stat-color-green { border-left-color: #059669; }
#reports-view .marketer-stat-item.stat-color-orange { border-left-color: #D97706; }
#reports-view .marketer-stat-item.stat-color-red { border-left-color: #DC2626; }
#reports-view .marketer-stat-item.stat-color-gray { border-left-color: #475569; }

/* Stat value colors - using same colors as dashboard borders */
#reports-view .marketer-stat-item.stat-color-blue .stat-value { color: #2563EB; }
#reports-view .marketer-stat-item.stat-color-green .stat-value { color: #059669; }
#reports-view .marketer-stat-item.stat-color-orange .stat-value { color: #D97706; }
#reports-view .marketer-stat-item.stat-color-red .stat-value { color: #DC2626; }
#reports-view .marketer-stat-item.stat-color-gray .stat-value { color: #475569; }

/* Mobile optimizations */
@media (max-width: 768px) {
    #reports-view .marketer-stat-item {
        padding: 10px 12px;
        min-height: 58px;
        gap: 5px;
    }
    
    #reports-view .marketer-stat-item .stat-label {
        font-size: 0.65rem;
    }
    
    #reports-view .marketer-stat-item .stat-value {
        font-size: 1.3rem;
    }
    
    #reports-view .marketer-stat-item.stat-item-small {
        min-height: 50px;
        padding: 8px 10px;
    }
    
    #reports-view .marketer-stat-item.stat-item-small .stat-label {
        font-size: 0.6rem;
    }
    
    #reports-view .marketer-stat-item.stat-item-small .stat-value {
        font-size: 1.1rem;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    #reports-view .marketer-stat-item {
        padding: 8px 10px;
        min-height: 55px;
        gap: 4px;
    }
    
    #reports-view .marketer-stat-item .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.2px;
    }
    
    #reports-view .marketer-stat-item .stat-value {
        font-size: 1.2rem;
    }
    
    #reports-view .marketer-stat-item.stat-item-small {
        min-height: 48px;
        padding: 7px 8px;
    }
    
    #reports-view .marketer-stat-item.stat-item-small .stat-label {
        font-size: 0.55rem;
    }
    
    #reports-view .marketer-stat-item.stat-item-small .stat-value {
        font-size: 1rem;
    }
}

/* Loading skeleton */
#reports-view .marketer-loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

#reports-view .skeleton-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    height: 100px;
    background: linear-gradient(90deg, var(--background-light) 25%, var(--border-color) 50%, var(--background-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Empty state */
#reports-view .marketer-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

#reports-view .marketer-empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Table improvements */
#reports-view .marketer-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#reports-view .marketer-performance-table {
    width: 100%;
    border-collapse: collapse;
}

#reports-view .marketer-performance-table th {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--surface-color) 100%);
    padding: 14px 16px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

#reports-view .marketer-performance-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--surface-color) 100%);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    text-align: left;
}

#reports-view .marketer-performance-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: center;
}

#reports-view .marketer-performance-table td:first-child {
    font-weight: 600;
    color: var(--primary-color) !important;
    position: sticky;
    left: 0;
    background: var(--surface-color);
    z-index: 1;
    text-align: left;
}

#reports-view .marketer-performance-table tbody tr:hover td:first-child {
    background: var(--background-light);
}

#reports-view .marketer-performance-table tbody tr {
    transition: background-color 0.2s ease;
}

#reports-view .marketer-performance-table tbody tr:hover {
    background: var(--background-light);
}

#reports-view .marketer-performance-table tbody tr:hover td:first-child {
    background: var(--background-light);
}

/* Column colors matching graph view */
#reports-view .marketer-performance-table th.col-color-gray,
#reports-view .marketer-performance-table td.col-color-gray {
    color: #475569;
}

#reports-view .marketer-performance-table th.col-color-green,
#reports-view .marketer-performance-table td.col-color-green {
    color: #059669;
}

#reports-view .marketer-performance-table th.col-color-blue,
#reports-view .marketer-performance-table td.col-color-blue {
    color: #2563EB;
}

#reports-view .marketer-performance-table th.col-color-red,
#reports-view .marketer-performance-table td.col-color-red {
    color: #DC2626;
}

#reports-view .marketer-performance-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    #reports-view .marketer-stat-card {
        padding: 16px;
    }
    
    #reports-view .marketer-stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    #reports-view .marketer-stat-card .stat-card-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    #reports-view .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    #reports-view .marketer-stat-card {
        padding: 6px 8px;
    }
    
    #reports-view .marketer-stat-card .stat-card-icon {
        margin-left: 0;
        margin-top: 8px;
        font-size: 1.25rem;
    }
    
    #reports-view .marketer-performance-table {
        font-size: 0.75rem;
    }
    
    #reports-view .marketer-performance-table th,
    #reports-view .marketer-performance-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    #reports-view .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    #reports-view #reports-summary-cards.stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    #reports-view .marketer-stat-card {
        padding: 5px 6px;
    }
}

/* Dark mode support */
body.dark-mode #reports-view #reports-summary-cards.stats-container {
    background: var(--dm-border-color);
    border-color: var(--dm-border-color);
}

body.dark-mode #reports-view .marketer-stat-item {
    background: var(--dm-surface-color);
}

body.dark-mode #reports-view .marketer-stat-item:hover {
    background: var(--dm-background-light);
}

body.dark-mode #reports-view .marketer-stat-item .stat-label {
    color: var(--dm-text-secondary);
}

body.dark-mode #reports-view .marketer-stat-item .stat-value {
    color: var(--dm-text-primary);
}

body.dark-mode #reports-view .marketer-stat-item.stat-item-small .stat-value {
    color: var(--dm-text-secondary);
}

body.dark-mode #reports-view .skeleton-card {
    background: linear-gradient(90deg, var(--dm-background-light) 25%, var(--dm-border-color) 50%, var(--dm-background-light) 75%);
    background-size: 200% 100%;
}

body.dark-mode #reports-view .marketer-performance-table th {
    background: linear-gradient(135deg, var(--dm-background-light) 0%, var(--dm-surface-color) 100%);
    color: var(--dm-text-primary);
    border-color: var(--dm-border-color);
}

body.dark-mode #reports-view .marketer-performance-table td {
    color: var(--dm-text-primary);
    border-color: var(--dm-border-color);
}

body.dark-mode #reports-view .marketer-performance-table tbody tr:hover {
    background: var(--dm-background-light);
}

body.dark-mode #reports-view .marketer-performance-table tbody tr:hover td:first-child {
    background: var(--dm-background-light);
}

body.dark-mode #reports-view .marketer-performance-table th:first-child {
    background: linear-gradient(135deg, var(--dm-surface-color) 0%, var(--dm-background-color) 100%);
}

body.dark-mode #reports-view .marketer-performance-table td:first-child {
    background: var(--dm-surface-color);
}

body.dark-mode #reports-view .marketer-performance-table th:nth-child(2),
body.dark-mode #reports-view .marketer-performance-table td:nth-child(2) {
    color: #818CF8;
}

body.dark-mode #reports-view .marketer-performance-table th:nth-child(3),
body.dark-mode #reports-view .marketer-performance-table td:nth-child(3) {
    color: #60A5FA;
}
#reports-view .table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); }
#reports-view .crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#reports-view .crm-table th { background: var(--background-light); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
#reports-view .crm-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
#reports-view .crm-table tbody tr:hover { background: var(--background-light); }
#reports-view .crm-table tbody tr:last-child td { border-bottom: none; }
#reports-view .assign-btn { background: var(--primary-color); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-weight: 500; cursor: pointer; }
#reports-view .assign-btn:hover { background: var(--primary-hover); }
#reports-view .details-btn { background: var(--surface-color); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
#reports-view .details-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
#reports-view .date-range-group { display: flex; align-items: center; gap: 12px; }
#reports-view .date-range-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
#reports-view .date-range-group input { padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; min-width: 200px; }
#reports-view .report-table-container { margin-top: 24px; }
#reports-view .skeleton { background: linear-gradient(90deg, var(--background-light) 25%, var(--border-color) 50%, var(--background-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 768px) { #reports-view .report-cards-grid { grid-template-columns: 1fr; } #reports-view .overall-header-stats { grid-template-columns: 1fr; } #reports-view .stats-connection { display: none; } #reports-view .small-number-card { min-width: auto; width: 100%; } #reports-view .donut-charts-grid { grid-template-columns: 1fr; } #reports-view .reports-filter-bar { flex-direction: column; } #reports-view .stats-container { grid-template-columns: repeat(2, 1fr); } }
body.dark-mode #reports-view .report-card, body.dark-mode #reports-view .chart-container, body.dark-mode #reports-view .big-number-card, body.dark-mode #reports-view .progress-bars-card, body.dark-mode #reports-view .donut-chart-card, body.dark-mode #reports-view .reports-filter-bar { background: var(--dm-surface-color); border-color: var(--dm-border-color); }
body.dark-mode #reports-view .dashboard-header h1, body.dark-mode #reports-view .report-card h3, body.dark-mode #reports-view .chart-container h3, body.dark-mode #reports-view .donut-chart-card h3 { color: var(--dm-text-primary); }
body.dark-mode #reports-view .back-btn, body.dark-mode #reports-view .action-btn.secondary { background: var(--dm-surface-color); border-color: var(--dm-border-color); color: var(--dm-text-secondary); }
body.dark-mode #reports-view .select-toggle, body.dark-mode #reports-view .select-dropdown, body.dark-mode #reports-view .filter-group select, body.dark-mode #reports-view .filter-group input { background: var(--dm-background-light); border-color: var(--dm-border-color); color: var(--dm-text-primary); }
body.dark-mode #reports-view .report-toggle-container { background: var(--dm-background-light); }
body.dark-mode #reports-view .report-toggle-btn.active { background: var(--dm-surface-color); }
body.dark-mode #reports-view .stat-card { background: var(--dm-surface-color); border-color: var(--dm-border-color); }
body.dark-mode #reports-view .stat-card h4 { color: var(--dm-text-secondary); }
body.dark-mode #reports-view .stat-card p { color: var(--dm-primary-color); }
body.dark-mode #reports-view .crm-table th { background: var(--dm-background-light); color: var(--dm-text-primary); border-color: var(--dm-border-color); }
body.dark-mode #reports-view .crm-table td { color: var(--dm-text-primary); border-color: var(--dm-border-color); }
body.dark-mode #reports-view .crm-table tbody tr:hover { background: var(--dm-background-light); }
body.dark-mode #reports-view .table-wrapper { border-color: var(--dm-border-color); }
body.dark-mode #reports-view .details-btn { background: var(--dm-surface-color); border-color: var(--dm-border-color); color: var(--dm-text-secondary); }
body.dark-mode #reports-view .date-range-group input { background: var(--dm-background-light); border-color: var(--dm-border-color); color: var(--dm-text-primary); }


