/* Reports Page Styles */

/* Page Header Card for Reports */
.page-header-card.reports-gradient {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow: 0 10px 40px -10px rgba(16, 185, 129, 0.4);
}

.page-header-card.reports-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.page-header-card .page-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
}

.page-header-card .page-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.page-header-card .page-header-text {
    color: white;
}

.page-header-card .page-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header-card .page-header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.header-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-export-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.header-export-btn.pdf:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.header-export-btn.excel:hover {
    background: #059669;
    border-color: #059669;
}

.header-export-btn.csv:hover {
    background: #2563eb;
    border-color: #2563eb;
}

@media (max-width: 768px) {
    .page-header-card.reports-gradient {
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-card .page-header-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .page-header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.reports-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reports-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.dark .reports-title {
    color: #f1f5f9;
}

/* Report Type Tabs */
.report-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.dark .report-tabs {
    background: #334155;
}

.report-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.report-tab:hover {
    color: #1e293b;
}

.dark .report-tab:hover {
    color: #f1f5f9;
}

.report-tab.active {
    background: white;
    color: #0ea5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .report-tab.active {
    background: #1e293b;
}

/* Date Range Filter */
.date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dark .date-filter {
    background: #1e293b;
    border-color: #334155;
}

/* Report Summary Cards */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.dark .summary-card {
    background: #1e293b;
    border-color: #334155;
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.summary-icon.green {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.summary-icon.yellow {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.summary-icon.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.dark .summary-value {
    color: #f1f5f9;
}

/* Report Chart */
.report-chart {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.dark .report-chart {
    background: #1e293b;
    border-color: #334155;
}

/* Report Table */
.report-table-container {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dark .report-table-container {
    background: #1e293b;
    border-color: #334155;
}

.report-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .report-table-header {
    border-color: #334155;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .export-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.export-btn:hover {
    background: #f1f5f9;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.dark .export-btn:hover {
    background: #475569;
}

.export-btn.pdf { color: #dc2626; }
.export-btn.excel { color: #059669; }
.export-btn.csv { color: #2563eb; }


/* Daily Detail Card */
.daily-detail-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .daily-detail-card {
    background: #1e293b;
    border-color: #334155;
}

.daily-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.dark .daily-detail-header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    border-color: #334155;
}

.daily-detail-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.daily-detail-title h3 {
    margin: 0;
}

.dark .daily-detail-title {
    color: #f1f5f9;
}

.daily-detail-badge {
    padding: 0.375rem 0.875rem;
    background: #0ea5e9;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.daily-detail-table {
    overflow-x: auto;
}

.daily-detail-table table {
    width: 100%;
    border-collapse: collapse;
}

.daily-detail-table th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.dark .daily-detail-table th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

.daily-detail-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dark .daily-detail-table td {
    border-color: #334155;
}

.daily-detail-table tbody tr {
    transition: background 0.15s ease;
}

.daily-detail-table tbody tr:hover {
    background: #f0f9ff;
}

.dark .daily-detail-table tbody tr:hover {
    background: #1e3a5f;
}

.daily-detail-table tbody tr:last-child td {
    border-bottom: none;
}

/* Date Cell */
.date-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.625rem;
}

.date-info {
    display: flex;
    flex-direction: column;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .date-month {
    color: #f1f5f9;
}

.date-weekday {
    font-size: 0.75rem;
    color: #64748b;
}

/* Status Numbers */
.total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    background: #1e293b;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

.dark .total-badge {
    background: #475569;
}

.status-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

.status-num.completed {
    background: #d1fae5;
    color: #059669;
}

.status-num.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-num.progress {
    background: #dbeafe;
    color: #2563eb;
}

/* Progress Cell */
.progress-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.dark .progress-bar {
    background: #475569;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    min-width: 36px;
}

/* Empty Row */
.empty-row {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #64748b;
    font-style: italic;
}

/* ========================================
   Mobile Card View for Daily Reports
   ======================================== */
.daily-cards-mobile {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

.daily-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dark .daily-card-item {
    background: #0f172a;
    border-color: #334155;
}

.daily-card-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.daily-card-date .date-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.daily-card-date .date-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.daily-card-date .date-month {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .daily-card-date .date-month {
    color: #f1f5f9;
}

.daily-card-date .date-weekday {
    font-size: 0.75rem;
    color: #64748b;
}

.daily-card-date .total-badge {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    background: #1e293b;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .daily-card-date .total-badge {
    background: #475569;
}

.daily-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.daily-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.daily-stat-item.completed {
    background: #d1fae5;
}

.dark .daily-stat-item.completed {
    background: rgba(16, 185, 129, 0.2);
}

.daily-stat-item.pending {
    background: #fef3c7;
}

.dark .daily-stat-item.pending {
    background: rgba(245, 158, 11, 0.2);
}

.daily-stat-item.progress {
    background: #dbeafe;
}

.dark .daily-stat-item.progress {
    background: rgba(59, 130, 246, 0.2);
}

.daily-stat-item .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.daily-stat-item.completed .stat-value {
    color: #059669;
}

.daily-stat-item.pending .stat-value {
    color: #d97706;
}

.daily-stat-item.progress .stat-value {
    color: #2563eb;
}

.daily-stat-item .stat-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.125rem;
    text-transform: uppercase;
}

.daily-card-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.daily-card-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.dark .daily-card-progress .progress-bar {
    background: #475569;
}

.daily-card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.daily-card-progress .progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

/* Show cards on mobile, hide table */
@media (max-width: 767px) {
    .daily-cards-mobile {
        display: flex;
    }
    
    .daily-detail-table.hide-mobile {
        display: none;
    }
}

/* Hide cards on desktop, show table */
@media (min-width: 768px) {
    .daily-cards-mobile {
        display: none;
    }
    
    .daily-detail-table.hide-mobile {
        display: block;
    }
}


/* Monthly Detail Card */
.monthly-detail-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .monthly-detail-card {
    background: #1e293b;
    border-color: #334155;
}

.monthly-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.dark .monthly-detail-header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    border-color: #334155;
}

.monthly-detail-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.monthly-detail-title h3 {
    margin: 0;
}

.dark .monthly-detail-title {
    color: #f1f5f9;
}

.monthly-detail-stats {
    display: flex;
    gap: 0.75rem;
}

.monthly-stat {
    padding: 0.375rem 0.875rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.monthly-stat.completed {
    background: #d1fae5;
    color: #059669;
}

.dark .monthly-stat {
    background: #334155;
    color: #94a3b8;
}

.monthly-detail-table {
    overflow-x: auto;
}

.monthly-detail-table table {
    width: 100%;
    border-collapse: collapse;
}

.monthly-detail-table th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.dark .monthly-detail-table th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

.monthly-detail-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dark .monthly-detail-table td {
    border-color: #334155;
}

.monthly-detail-table tbody tr {
    transition: background 0.15s ease;
}

.monthly-detail-table tbody tr:hover {
    background: #f0f9ff;
}

.dark .monthly-detail-table tbody tr:hover {
    background: #1e3a5f;
}

/* Month Cell */
.month-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.month-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.625rem;
}

.month-info {
    display: flex;
    flex-direction: column;
}

.month-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.dark .month-name {
    color: #f1f5f9;
}

.month-year {
    font-size: 0.75rem;
    color: #64748b;
}

/* History Detail Card */
.history-detail-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .history-detail-card {
    background: #1e293b;
    border-color: #334155;
}

.history-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.dark .history-detail-header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    border-color: #334155;
}

.history-detail-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.history-detail-title h3 {
    margin: 0;
}

.dark .history-detail-title {
    color: #f1f5f9;
}

.history-detail-badge {
    padding: 0.375rem 0.875rem;
    background: #8b5cf6;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.history-detail-table {
    overflow-x: auto;
}

.history-detail-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-detail-table th {
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

.dark .history-detail-table th {
    background: #0f172a;
    color: #94a3b8;
    border-color: #334155;
}

.history-detail-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.dark .history-detail-table td {
    border-color: #334155;
}

.history-detail-table tbody tr {
    transition: background 0.15s ease;
}

.history-detail-table tbody tr:hover {
    background: #faf5ff;
}

.dark .history-detail-table tbody tr:hover {
    background: #2e1065;
}

/* ID Badge */
.id-badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: #0ea5e9;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', monospace;
    border-radius: 0.375rem;
}

.dark .id-badge {
    background: #334155;
}

/* Date Cell Compact */
.date-cell-compact {
    display: flex;
    flex-direction: column;
}

.date-compact-day {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.dark .date-compact-day {
    color: #f1f5f9;
}

.date-compact-month {
    font-size: 0.75rem;
    color: #64748b;
}

/* Customer Cell */
.customer-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.customer-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.customer-name {
    font-weight: 500;
    color: #1e293b;
}

.dark .customer-name {
    color: #f1f5f9;
}

/* Location Text */
.location-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Notes Text */
.notes-text {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}


/* ========================================
   Mobile Responsive Enhancements
   ======================================== */

/* Prevent horizontal scroll on mobile */
@media (max-width: 767px) {
    .page-header-card.reports-gradient {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header-card .page-header-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .page-header-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
    
    .header-export-btn {
        justify-content: center;
    }
    
    /* CSV button spans full width */
    .header-export-btn.csv {
        grid-column: 1 / -1;
    }
    
    .report-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .date-filter {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .date-filter .form-group {
        width: 100%;
    }
    
    .date-filter .btn {
        width: 100%;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .page-header-card.reports-gradient {
        padding: 0.875rem;
    }
    
    .page-header-card .page-header-icon {
        width: 44px;
        height: 44px;
    }
    
    .page-header-card .page-header-title {
        font-size: 1.125rem;
    }
    
    .page-header-card .page-header-subtitle {
        font-size: 0.8125rem;
    }
    
    .page-header-actions {
        gap: 0.375rem;
    }
    
    .header-export-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .report-tabs {
        gap: 0.25rem;
        padding: 0.25rem;
        margin-bottom: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .report-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .date-filter {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .report-summary {
        gap: 0.5rem;
    }
    
    .summary-card {
        padding: 0.875rem;
        border-radius: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .summary-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin: 0 auto;
    }
    
    .summary-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
    
    .summary-label {
        font-size: 0.6875rem;
    }
    
    .daily-detail-card,
    .monthly-detail-card,
    .history-detail-card {
        border-radius: 0.75rem;
    }
    
    .daily-detail-header,
    .monthly-detail-header,
    .history-detail-header {
        padding: 0.875rem;
    }
    
    .daily-detail-title h3,
    .monthly-detail-title h3,
    .history-detail-title h3 {
        font-size: 0.875rem;
    }
    
    .daily-detail-badge,
    .history-detail-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .monthly-detail-stats {
        gap: 0.375rem;
    }
    
    .monthly-stat {
        font-size: 0.625rem;
        padding: 0.1875rem 0.5rem;
    }
}
