/* Comprehensive Responsive Styles for All Devices */

/* ============================================
   Breakpoints:
   - Mobile: < 640px
   - Tablet: 640px - 1024px
   - Desktop: > 1024px
   ============================================ */

/* ============================================
   MOBILE MENU & SIDEBAR
   ============================================ */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    width: 44px;
    height: 44px;
    cursor: pointer;
    box-shadow: var(--card-shadow-hover);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Sidebar Mobile */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: var(--sidebar-width);
        max-width: 85vw;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(4px);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .dashboard-content {
        margin-left: 0;
        width: 100%;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .dashboard-header {
        margin-top: 60px;
    }
    
    .sidebar-header {
        position: sticky;
        top: 0;
        background: var(--card-bg);
        z-index: 1;
    }
}

/* ============================================
   TABLES RESPONSIVE
   ============================================ */

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--spacing-lg) 0;
}

.data-table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .data-table th:nth-child(n+4),
    .data-table td:nth-child(n+4) {
        display: none;
    }
    
    /* Show important columns on mobile */
    .data-table th:first-child,
    .data-table td:first-child,
    .data-table th:nth-child(2),
    .data-table td:nth-child(2),
    .data-table th:last-child,
    .data-table td:last-child {
        display: table-cell;
    }
    
    /* Stack action buttons */
    .data-table .btn-group {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .data-table .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Card-based table for mobile */
@media (max-width: 640px) {
    .table-container {
        overflow: visible;
    }
    
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tr {
        margin-bottom: var(--spacing-md);
        background: var(--card-bg);
        border: 1px solid var(--border-light);
        border-radius: var(--border-radius);
        padding: var(--spacing-md);
        box-shadow: var(--card-shadow);
    }
    
    .data-table td {
        border: none;
        padding: var(--spacing-xs) 0;
        text-align: left;
        position: relative;
        padding-left: 40%;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 35%;
        font-weight: var(--font-weight-semibold);
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .data-table td:last-child {
        padding-top: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        border-top: 1px solid var(--border-light);
    }
}

/* ============================================
   FORMS RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .form-group {
        margin-bottom: var(--spacing-lg);
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .service-item-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-item-row .form-group:last-child {
        display: flex;
        align-items: center;
    }
    
    .form-container {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .form-container {
        padding: var(--spacing-md);
        border-radius: var(--border-radius);
    }
    
    .form-section-title {
        font-size: 1rem;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ============================================
   CARDS & GRIDS
   ============================================ */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .stat-card {
        padding: var(--spacing-lg);
    }
    
    .card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .features-grid,
    .benefits-list,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ============================================
   NAVBAR RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .navbar-brand a {
        font-size: 1.25rem;
    }
    
    .navbar-menu {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .navbar-user {
        font-size: 0.875rem;
    }
    
    .navbar-menu .btn {
        width: 100%;
    }
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .quick-actions .btn {
        width: 100%;
    }
}

/* ============================================
   APPOINTMENTS & LISTS
   ============================================ */

@media (max-width: 768px) {
    .appointment-card {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .appointment-date {
        flex-direction: row;
        justify-content: flex-start;
        min-width: auto;
        width: 100%;
    }
    
    .appointment-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: var(--spacing-sm);
    }
    
    .appointment-actions .btn {
        flex: 1;
    }
    
    .customer-item,
    .completed-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .customer-revenue {
        text-align: left;
        width: 100%;
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--border-light);
    }
}

/* ============================================
   CHARTS & VISUALIZATIONS
   ============================================ */

@media (max-width: 768px) {
    .chart-container {
        padding: var(--spacing-md);
    }
    
    .revenue-chart {
        height: 150px;
        gap: var(--spacing-xs);
    }
    
    .bar-label {
        font-size: 0.625rem;
    }
    
    .bar-tooltip {
        font-size: 0.625rem;
        padding: 2px 6px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* ============================================
   LANDING PAGE
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-2xl) var(--spacing-lg);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
        margin: 0;
    }
    
    .section {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block;
    }
}

/* Spacing adjustments */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .dashboard-content {
        padding: var(--spacing-md);
    }
}

/* ============================================
   TOUCH FRIENDLY
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn,
    .data-table .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .sidebar-menu-item {
        min-height: 48px;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

/* ============================================
   REPORTS PAGE RESPONSIVE - REFINED FOR ALL DEVICES
   ============================================ */

/* Reports Page - General Responsive Rules */
.dashboard-layout.reports-page .dashboard-content {
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Smooth transitions for specific elements only (better performance) */
.dashboard-layout.reports-page .dashboard-section,
.dashboard-layout.reports-page .stat-card,
.dashboard-layout.reports-page .filter-section,
.dashboard-layout.reports-page .dashboard-header {
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dashboard-layout.reports-page h1,
.dashboard-layout.reports-page h2,
.dashboard-layout.reports-page .stat-value,
.dashboard-layout.reports-page .stat-label {
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Improve focus states visibility for accessibility */
.dashboard-layout.reports-page .btn:focus-visible {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
}

.dashboard-layout.reports-page input:focus-visible,
.dashboard-layout.reports-page select:focus-visible {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Prevent text selection on interactive elements for better UX */
.dashboard-layout.reports-page .btn,
.dashboard-layout.reports-page .stat-card {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Allow text selection in readable content */
.dashboard-layout.reports-page .stat-value,
.dashboard-layout.reports-page .stat-label,
.dashboard-layout.reports-page .table td {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Improve focus states visibility */
.dashboard-layout.reports-page .btn:focus-visible {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

.dashboard-layout.reports-page input:focus-visible,
.dashboard-layout.reports-page select:focus-visible {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Prevent layout shift during responsive changes */
.dashboard-layout.reports-page .stat-card,
.dashboard-layout.reports-page .dashboard-section {
    will-change: transform, box-shadow;
}

/* Date Range Filter Responsive */
/* Tablet Landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .dashboard-layout.reports-page .dashboard-section.filter-section form,
    .dashboard-section form[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem !important;
        align-items: stretch !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .filter-actions,
    .dashboard-section form > div:last-child {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.875rem !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .form-group,
    .dashboard-section form .form-group {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Tablet Portrait & Below */
@media (max-width: 1024px) {
    .dashboard-layout.reports-page .dashboard-section.filter-section form,
    .dashboard-section form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .form-group,
    .dashboard-section form .form-group {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .filter-actions,
    .dashboard-section form > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .btn,
    .dashboard-section form .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 44px !important; /* Touch-friendly */
    }
}

/* Mobile Large - Filter Improvements */
@media (max-width: 768px) {
    .dashboard-layout.reports-page .dashboard-section.filter-section {
        padding: 1.25rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form,
    .dashboard-section form {
        padding: 0 !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form,
    .dashboard-section form[style*="grid-template-columns"] {
        gap: 1rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form label,
    .dashboard-section form label {
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .dashboard-layout.reports-page .filter-section .filter-actions {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .dashboard-layout.reports-page .filter-section input[type="date"] {
        padding: 0.8125rem 0.9375rem !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Mobile Medium - Enhanced Filter Styling */
@media (max-width: 640px) {
    .dashboard-layout.reports-page .dashboard-section.filter-section {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .filter-actions,
    .dashboard-section form > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form label,
    .dashboard-section form label {
        font-size: 0.6875rem !important;
        margin-bottom: 0.4375rem !important;
    }
    
    .dashboard-layout.reports-page .filter-section label svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form input[type="date"],
    .dashboard-section form input[type="date"] {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.75rem 0.875rem !important;
        border-radius: 8px !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section.filter-section form .btn,
    .dashboard-section form .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.8125rem !important;
        min-height: 44px !important;
        border-radius: 8px !important;
    }
    
    .dashboard-layout.reports-page .filter-section .btn svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }
    
    /* Fine-tune spacing for better alignment */
    .dashboard-layout.reports-page .filter-section .form-group:last-of-type {
        margin-bottom: 0.5rem !important;
    }
}

/* Stats Grid Responsive for Reports */
@media (max-width: 1200px) {
    .dashboard-layout.reports-page .stats-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .dashboard-layout.reports-page .stats-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .dashboard-layout.reports-page .stat-card,
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .dashboard-layout.reports-page .stat-card .stat-value,
    .stat-card .stat-value {
        font-size: 1.75rem !important;
    }
    
    .dashboard-layout.reports-page .stat-card .stat-icon-wrapper,
    .stat-card .stat-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Dashboard Grid (Two Column Layout) Responsive */
@media (max-width: 1200px) {
    .dashboard-layout.reports-page .dashboard-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-column,
    .dashboard-column {
        width: 100% !important;
    }
    
    .dashboard-layout.reports-page .dashboard-column .dashboard-section,
    .dashboard-column .dashboard-section {
        margin-top: 0 !important;
    }
    
    .dashboard-layout.reports-page .dashboard-column .dashboard-section:first-child,
    .dashboard-column .dashboard-section:first-child {
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .dashboard-layout.reports-page .dashboard-grid,
    .dashboard-grid {
        gap: 1.25rem !important;
    }
}

/* Charts Responsive */
@media (max-width: 1024px) {
    .dashboard-layout.reports-page .revenue-chart,
    .revenue-chart {
        height: 200px !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .dashboard-layout.reports-page .chart-bar,
    .chart-bar {
        min-width: 30px !important;
    }
    
    .dashboard-layout.reports-page .bar-label,
    .bar-label {
        font-size: 0.7rem !important;
        transform: rotate(-45deg) !important;
        transform-origin: center !important;
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .revenue-chart {
        height: 180px !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        overflow-x: auto !important;
    }
    
    .chart-container {
        padding: 1rem !important;
        overflow-x: auto !important;
    }
    
    .chart-bar {
        min-width: 25px !important;
        flex-shrink: 0 !important;
    }
    
    .bar-value {
        min-width: 25px !important;
    }
    
    .bar-label {
        font-size: 0.625rem !important;
        margin-top: 1rem !important;
    }
    
    .bar-tooltip {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .revenue-chart {
        height: 150px !important;
        gap: 0.375rem !important;
    }
    
    .chart-bar {
        min-width: 20px !important;
    }
    
    .bar-label {
        font-size: 0.5625rem !important;
    }
    
    /* Hide tooltips on very small screens - replace with tap to show */
    .bar-tooltip {
        display: none !important;
    }
    
    /* Alternative: Show value on tap for mobile */
    .chart-bar:active .bar-value::after {
        content: attr(data-value);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(30, 41, 59, 0.9);
        color: white;
        padding: 0.375rem 0.5rem;
        border-radius: 6px;
        font-size: 0.6875rem;
        white-space: nowrap;
        z-index: 10;
        margin-bottom: 0.5rem;
    }
}

/* Tables in Reports Responsive */
@media (max-width: 768px) {
    .dashboard-layout.reports-page .dashboard-section .table-responsive,
    .dashboard-section .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .table,
    .dashboard-section .table {
        font-size: 0.875rem !important;
        min-width: 500px !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .table th,
    .dashboard-layout.reports-page .dashboard-section .table td,
    .dashboard-section .table th,
    .dashboard-section .table td {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .dashboard-layout.reports-page .dashboard-section .table,
    .dashboard-section .table {
        font-size: 0.8125rem !important;
        min-width: 450px !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .table th,
    .dashboard-layout.reports-page .dashboard-section .table td,
    .dashboard-section .table th,
    .dashboard-section .table td {
        padding: 0.625rem 0.75rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .badge,
    .dashboard-section .badge {
        font-size: 0.6875rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* Top Customers List Responsive */
@media (max-width: 768px) {
    .top-customers-list {
        gap: 0.625rem !important;
    }
    
    .customer-item {
        padding: 0.875rem !important;
        flex-wrap: wrap !important;
    }
    
    .customer-rank {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8125rem !important;
    }
    
    .customer-info h4 {
        font-size: 0.875rem !important;
    }
    
    .customer-info p {
        font-size: 0.75rem !important;
    }
    
    .customer-revenue {
        width: 100% !important;
        text-align: left !important;
        padding-top: 0.5rem !important;
        margin-top: 0.5rem !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    .customer-revenue strong {
        font-size: 1rem !important;
    }
}

/* Dashboard Section Spacing Responsive */
@media (max-width: 768px) {
    .dashboard-layout.reports-page .dashboard-section,
    .dashboard-section {
        margin-bottom: 1.5rem !important;
        padding: 1.25rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section + .dashboard-section,
    .dashboard-section + .dashboard-section {
        margin-top: 1rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .section-header h2,
    .section-header h2 {
        font-size: 1.125rem !important;
    }
    
    .dashboard-layout.reports-page .dashboard-section .section-header .section-subtitle,
    .section-subtitle {
        font-size: 0.8125rem !important;
    }
}

/* Empty State Responsive */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem !important;
    }
    
    .empty-state .empty-icon {
        margin-bottom: 0.75rem !important;
    }
    
    .empty-state .empty-icon svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .empty-state h3 {
        font-size: 1rem !important;
    }
    
    .empty-state p {
        font-size: 0.8125rem !important;
    }
}

/* Dashboard Header in Reports Responsive */
@media (max-width: 768px) {
    .dashboard-header .welcome-section h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-header .welcome-text {
        font-size: 0.875rem !important;
    }
}

/* Section Header Responsive */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .section-header h2 {
        font-size: 1.125rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
    }
    
    .section-header h2 svg {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0 !important;
    }
    
    .section-subtitle {
        font-size: 0.8125rem !important;
        display: block !important;
        margin-top: 0.25rem !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1rem !important;
    }
    
    .section-header h2 svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .section-subtitle {
        font-size: 0.75rem !important;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .mobile-menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }
    
    .dashboard-content {
        margin-left: 0;
        width: 100%;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .revenue-chart {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .dashboard-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

