/* Email Dashboard Specific Styles - Prefixed to avoid conflicts */
.email-dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .email-dashboard-stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .email-dashboard-stat-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
  }
  
  .email-dashboard-stat-info h3[style*="cursor: pointer"] {
    transition: color 0.3s ease;
    cursor: pointer;
  }
  
  .email-dashboard-stat-info h3[style*="cursor: pointer"]:hover {
    color: #007bff;
  }
  
  .email-dashboard-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
  }
  
  .email-dashboard-stat-icon {
    font-size: 24px;
    opacity: 0.7;
  }
  
  .email-dashboard-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .email-dashboard-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #495057;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .email-dashboard-filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
  }
  
  .email-dashboard-filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
  }
  
  .email-dashboard-email-container {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .email-dashboard-email-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  }
  
  .email-dashboard-email-container.expanded {
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
  }
  
  .email-dashboard-email-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .email-dashboard-email-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    transform: translateY(-1px);
  }
  
  .email-dashboard-email-header:active {
    transform: translateY(0);
  }
  
  .email-dashboard-email-header::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #6c757d;
    transition: transform 0.2s ease;
    opacity: 0.6;
  }
  
  .email-dashboard-email-header:hover::after {
    opacity: 1;
  }
  
  .email-dashboard-email-header.expanded::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  .email-dashboard-email-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
    min-height: 0;
  }
  
  .email-dashboard-email-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  
  .email-dashboard-email-subject {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 8px;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .email-dashboard-email-subject:hover {
    color: #0056b3;
    text-decoration: underline;
  }
  
  .email-dashboard-email-meta {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 13px;
    flex-wrap: wrap;
  }
  
  .email-dashboard-email-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .email-dashboard-email-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
  }
  
  .email-dashboard-overall-status {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .email-dashboard-status-success {
    background: #d4edda;
    color: #155724;
  }
  
  .email-dashboard-status-warning {
    background: #fff3cd;
    color: #856404;
  }
  
  .email-dashboard-status-danger {
    background: #f8d7da;
    color: #721c24;
  }
  
  .email-dashboard-status-info {
    background: #d1ecf1;
    color: #0c5460;
  }
  
  .email-dashboard-attachment-count {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #bbdefb;
  }
  
  .email-dashboard-vendor-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
  }
  
  .email-dashboard-email-summary {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }
  
  .email-dashboard-attachment-summary {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }
  
  .email-dashboard-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }
  
  .email-dashboard-summary-count {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
  }
  
  .email-dashboard-count-processed { background: #28a745; }
  .email-dashboard-count-failed { background: #dc3545; }
  .email-dashboard-count-pending { background: #ffc107; color: #333; }
  .email-dashboard-count-exception { background: #17a2b8; }
  .email-dashboard-count-missing-info { background: #dc3545; }
  .email-dashboard-count-under-review { background: #ffc107; color: #333; }
  .email-dashboard-count-awaiting-approval { background: #17a2b8; }
  .email-dashboard-count-billed { background: #28a745; }
  
  .email-dashboard-count-extracted-successfully { background: #28a745; }
  .email-dashboard-count-failed-to-extract { background: #dc3545; }
  .email-dashboard-count-processing { background: #17a2b8; }
  .email-dashboard-count-duplicate { background: #6c757d; }
  .email-dashboard-count-missing-information { background: #dc3545; }
  
  .email-dashboard-attachments-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    animation: emailDashboardSlideDown 0.3s ease-out;
    overflow: hidden;
  }
  
  @keyframes emailDashboardSlideDown {
    from {
      opacity: 0;
      max-height: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      max-height: 1000px;
      transform: translateY(0);
    }
  }
  
  .email-dashboard-attachment-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #dee2e6;
    transition: all 0.2s ease;
  }
  
  .email-dashboard-attachment-card:hover {
    background: #e9ecef;
    transform: translateX(2px);
  }
  
  .email-dashboard-attachment-card.status-processed {
    border-left-color: #28a745;
    background: #f8fff9;
  }
  
  .email-dashboard-attachment-card.status-failed {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-attachment-card.status-exception {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-attachment-card.status-duplicate {
    border-left-color: #6c757d;
    background: #f8f9fa;
  }
  
  .email-dashboard-attachment-card.status-missing-info {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-attachment-card.status-under-review {
    border-left-color: #ffc107;
    background: #fffef8;
  }
  
  .email-dashboard-attachment-card.status-awaiting-approval {
    border-left-color: #17a2b8;
    background: #f8fdff;
  }
  
  .email-dashboard-attachment-card.status-billed {
    border-left-color: #28a745;
    background: #f8fff9;
  }
  
  .email-dashboard-attachment-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
  }
  
  .email-dashboard-attachment-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .email-dashboard-attachment-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .email-dashboard-attachment-filename {
    font-size: 13px;
    color: #6c757d;
    word-break: break-all;
  }
  
  .email-dashboard-attachment-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    min-height: 28px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  
  .email-dashboard-status-processed-badge {
    background: #d4edda;
    color: #155724;
  }
  
  .email-dashboard-status-failed-badge {
    background: #f8d7da;
    color: #721c24;
  }
  
  .email-dashboard-status-exception-badge {
    background: #f8d7da;
    color: #721c24;
  }
  
  .email-dashboard-status-duplicate-badge {
    background: #e2e3e5;
    color: #383d41;
  }
  
  .email-dashboard-status-missing-info-badge {
    background: #f8d7da;
    color: #721c24;
  }
  
  .email-dashboard-status-under-review-badge {
    background: #fff3cd;
    color: #856404;
  }
  
  .email-dashboard-status-awaiting-approval-badge {
    background: #d1ecf1;
    color: #0c5460;
  }
  
  .email-dashboard-status-billed-badge {
    background: #d4edda;
    color: #155724;
  }
  
  .email-dashboard-attachment-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
  }
  
  .email-dashboard-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }
  
  .email-dashboard-meta-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
  }
  
  .email-dashboard-meta-label {
    color: #6c757d;
    font-weight: 500;
    min-width: 50px;
    font-size: 14px;
  }
  
  .email-dashboard-meta-value {
    font-weight: 600;
  }
  
  .email-dashboard-invoice-amount-item .email-dashboard-meta-value {
    font-weight: 700;
    color: #28a745;
    font-size: 14px;
  }
  
  .email-dashboard-attachment-exception {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .email-dashboard-exception-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  .email-dashboard-exception-icon {
    font-size: 14px;
  }
  
  .email-dashboard-exception-code {
    background: #e53e3e;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .email-dashboard-exception-message {
    color: #c53030;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  .email-dashboard-exception-timestamp {
    color: #718096;
    font-size: 12px;
    font-style: italic;
  }
  
  .email-dashboard-attachment-remarks {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }
  
  .email-dashboard-remarks-icon {
    font-size: 14px;
    margin-top: 1px;
  }
  
  .email-dashboard-attachment-log {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  
  .email-dashboard-log-icon {
    font-size: 16px;
    margin-top: 1px;
    color: #6c757d;
  }
  
  .email-dashboard-log-content {
    flex: 1;
  }
  
  .email-dashboard-log-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
  }
  
  .email-dashboard-log-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .email-dashboard-refresh-btn {
    transition: background 0.2s ease;
    margin-left: auto;
  }
  
  .email-dashboard-date-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .email-dashboard-filterItem {
    min-width: 200px;
  }
  
  .email-dashboard-filterItem .btn {
    width: 100%;
    text-align: left;
    position: relative;
  }
  
  .email-dashboard-filterItem .btn::after {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  @media (max-width: 768px) {
    .email-dashboard-stats-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
    }
    
    .email-dashboard-attachments-grid {
      grid-template-columns: 1fr;
      padding: 15px;
    }
    
    .email-dashboard-email-header-top {
      flex-direction: column;
      gap: 15px;
      align-items: stretch;
    }
    
    .email-dashboard-email-status {
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  }
  
  @media (max-width: 480px) {
    .email-dashboard-email-subject {
      font-size: 14px;
    }
    
    .email-dashboard-email-meta {
      gap: 15px;
    }
    
    .email-dashboard-attachments-grid {
      padding: 10px;
      gap: 10px;
    }
    
    .email-dashboard-attachment-card {
      padding: 12px;
    }
  }
  
  /* Restore missing important styles */
  .email-dashboard-attachment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
  }
  
  .email-dashboard-attachment-vendor {
    font-size: 12px;
    color: #495057;
  }
  
  .email-dashboard-attachment-error {
    font-size: 11px;
    color: #dc3545;
    margin-top: 5px;
    font-style: italic;
  }
  
  .email-dashboard-attachment-main-info {
    flex: 1;
  }
  
  .email-dashboard-attachment-sender {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #495057;
  }
  
  .email-dashboard-sender-icon {
    font-size: 10px;
  }
  
  .email-dashboard-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .email-dashboard-left-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .email-dashboard-date-input {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    background: white;
    transition: border-color 0.3s ease;
  }
  
  .email-dashboard-date-input:focus {
    outline: none;
    border-color: #007bff;
  }
  
  .email-dashboard-results-info {
    color: #6c757d;
    font-size: 14px;
  }
  
  .email-dashboard-attachment-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
  }
  
  .email-dashboard-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .email-dashboard-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  
  .email-dashboard-retrigger-btn {
    background: #4299e1;
    color: white;
  }
  
  .email-dashboard-retrigger-btn:hover {
    background: #3182ce;
  }
  
  .email-dashboard-edit-btn {
    background: #48bb78;
    color: white;
  }
  
  .email-dashboard-edit-btn:hover {
    background: #38a169;
  }
  
  .email-dashboard-action-icon {
    font-size: 11px;
  }
  
  /* Invoice Aggregate Status Styles */
  .email-dashboard-invoice-aggregate-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin: 0;
    min-height: 28px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
  }
  
  .email-dashboard-invoice-aggregate-status .status-icon {
    font-size: 14px;
  }
  
  .email-dashboard-invoice-aggregate-status .status-label {
    color: #6c757d;
    font-weight: 600;
  }
  
  .email-dashboard-invoice-aggregate-status .status-value {
    font-weight: 700;
  }
  
  /* Add missing status icon, label, and value classes */
  .email-dashboard-status-icon {
    font-size: 14px;
  }
  
  .email-dashboard-status-label {
    color: #6c757d;
    font-weight: 600;
  }
  
  .email-dashboard-status-value {
    font-weight: 700;
  }
  
  /* Dynamic status classes for attachment cards */
  .email-dashboard-status-processed {
    border-left-color: #28a745;
    background: #f8fff9;
  }
  
  .email-dashboard-status-failed {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-status-exception {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-status-duplicate {
    border-left-color: #6c757d;
    background: #f8f9fa;
  }
  
  .email-dashboard-status-missing-info {
    border-left-color: #dc3545;
    background: #fff8f8;
  }
  
  .email-dashboard-status-under-review {
    border-left-color: #ffc107;
    background: #fffef8;
  }
  
  .email-dashboard-status-awaiting-approval {
    border-left-color: #17a2b8;
    background: #f8fdff;
  }
  
  .email-dashboard-status-billed {
    border-left-color: #28a745;
    background: #f8fff9;
  }
  
  .email-dashboard-status-unknown {
    border-left-color: #6c757d;
    background: #f8f9fa;
  }
  
  .email-dashboard-status-pending {
    border-left-color: #ffc107;
    background: #fffef8;
  }
  
  .email-dashboard-status-processing {
    border-left-color: #17a2b8;
    background: #f8fdff;
  }

  /* Email Dashboard Attachment Background Colors Based on Invoice Status */
  /* Using maximum specificity to override ALL existing status-based styles */
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-success,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-success:hover {
    background-color: #f0f9f4 !important; /* Light greenish background */
    background: #f0f9f4 !important; /* Alternative background property */
    border-left: 4px solid #10b981 !important; /* Green left border */
    border-left-color: #10b981 !important; /* Alternative border property */
  }

  .email-dashboard-attachment-card.email-dashboard-attachment-bg-pending,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-pending:hover {
    background-color: #f0f8ff !important; /* Light blueish background */
    background: #f0f8ff !important; /* Alternative background property */
    border-left: 4px solid #3b82f6 !important; /* Blue left border */
    border-left-color: #3b82f6 !important; /* Alternative border property */
  }

  .email-dashboard-attachment-card.email-dashboard-attachment-bg-error,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-error:hover {
    background-color: #fef2f2 !important; /* Light reddish background */
    background: #fef2f2 !important; /* Alternative background property */
    border-left: 4px solid #ef4444 !important; /* Red left border */
    border-left-color: #ef4444 !important; /* Alternative border property */
  }

  .email-dashboard-attachment-card.email-dashboard-attachment-bg-failed,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-failed:hover {
    background-color: #fef2f2 !important; /* Light reddish background */
    background: #fef2f2 !important; /* Alternative background property */
    border-left: 4px solid #dc2626 !important; /* Dark red left border */
    border-left-color: #dc2626 !important; /* Alternative border property */
  }

  .email-dashboard-attachment-card.email-dashboard-attachment-bg-fetching,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-fetching:hover {
    background-color: #f8fafc !important; /* Light gray background */
    background: #f8fafc !important; /* Alternative background property */
    border-left: 4px solid #64748b !important; /* Gray left border */
    border-left-color: #64748b !important; /* Alternative border property */
  }

  .email-dashboard-attachment-card.email-dashboard-attachment-bg-default,
  .email-dashboard-attachment-card.email-dashboard-attachment-bg-default:hover {
    background-color: #ffffff !important; /* White background */
    background: #ffffff !important; /* Alternative background property */
    border-left: 4px solid #e5e7eb !important; /* Light gray left border */
    border-left-color: #e5e7eb !important; /* Alternative border property */
  }
  
  /* Status-specific colors */
  .email-dashboard-invoice-aggregate-status.status-success {
    background: #d4edda;
    color: #155724;
  }
  
  .email-dashboard-invoice-aggregate-status.status-warning {
    background: #fff3cd;
    color: #856404;
  }
  
  .email-dashboard-invoice-aggregate-status.status-danger {
    background: #f8d7da;
    color: #721c24;
  }
  
  .email-dashboard-invoice-aggregate-status.status-info {
    background: #d1ecf1;
    color: #0c5460;
  }
  
  /* Pagination Footer Styles */
  .email-dashboard-pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
  }

  /* Additional responsive styles */
  @media (max-width: 768px) {
    .email-dashboard-container-fluid {
      padding: 10px;
    }
    
    .email-dashboard-actions-bar {
      flex-direction: column;
      align-items: stretch;
    }
    
    .email-dashboard-filters, .email-dashboard-date-filters {
      justify-content: center;
    }
    
    .email-dashboard-overall-status, .email-dashboard-attachment-count {
      font-size: 11px;
      padding: 6px 12px;
    }
  }
  
  @media (max-width: 480px) {
    .email-dashboard-email-status {
      gap: 8px;
    }
    
    .email-dashboard-overall-status, .email-dashboard-attachment-count {
      font-size: 10px;
      padding: 5px 10px;
    }
    
    .email-dashboard-attachment-status-line {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    
    .email-dashboard-attachment-status,
    .email-dashboard-invoice-aggregate-status {
      width: 100%;
      justify-content: center;
    }
  }
  
  .email-dashboard-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: visible;
  }
  
  .email-dashboard-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .email-dashboard-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  
  .email-dashboard-date-filters .email-dashboard-filterItem {
    display: inline-flex;
    align-items: center;
  }
  
  /* If space is tight, allow horizontal scroll rather than wrapping */
  .email-dashboard-top-controls {
    overflow-x: visible;
  }
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 768px) {
    .email-dashboard-top-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    
    .email-dashboard-right-controls {
      justify-content: center;
    }
    
    .email-dashboard-filters {
      justify-content: center;
    }
  }
  
  