<!-- Dashboard Styles -->

  @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
  
  .dashboard-container {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    padding: 1.5rem;
  }
  
  /* Stats Cards */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  @media (max-width: 1200px) {
    .stats-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /*.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
  }*/

 /* REPLACE your existing .stat-card block with this */
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* Use cubic-bezier for a "bouncy" premium feel */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

  
 /* REPLACE your .stat-card:hover block with this */
.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  /* Uses the accent color glow we define below */
  box-shadow: 0 15px 30px -10px var(--card-accent-soft);
  border-color: var(--card-accent);
}
  
  .stat-card.active {
    border-color: var(--card-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
  
 /* 1. Base state: Top border is invisible/hidden */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* Hidden by default */
  background: var(--card-accent);
  border-radius: 0;
  transition: height 0.25s ease; /* Smooth "slide down" effect */
  z-index: 2;
}

/* 2. Hover / Active state: Top border appears */
.stat-card:hover::before,
.stat-card.active::before {
  height: 5px; /* Border becomes visible */
}

/* 3. Ensure the card border itself reacts to the active state */
.stat-card.active {
  border-color: var(--card-accent);
  box-shadow: 0 10px 25px -5px var(--card-accent-soft);
  transform: translateY(-4px); /* Keep it slightly raised when selected */
}

/* 4. Keep the count text pop animation for better feedback */
.stat-card.active #count-favourite #count-pending #count-overdue #count-upcoming #count-uploaded, 
.stat-card.active [id^="count-"] {
  display: inline-block;
  animation: countPop 0.4s ease-out;
  color: var(--card-accent); 
  font-weight: 800;
}
  
/* ADD these variable definitions to your color classes */
.stat-card--favourite { --card-accent: #3b82f6; --card-accent-soft: rgba(59, 130, 246, 0.3); }
.stat-card--pending { --card-accent: #f59e0b; --card-accent-soft: rgba(245, 158, 11, 0.3); }
.stat-card--overdue { --card-accent: #ef4444; --card-accent-soft: rgba(239, 68, 68, 0.3); }
.stat-card--upcoming { --card-accent: #5b21b6; --card-accent-soft: rgba(91, 33, 182, 0.3); }
.stat-card--uploaded { --card-accent: #10b981; --card-accent-soft: rgba(16, 185, 129, 0.3); }

.stat-card:hover .stat-card__icon {
  transform: rotate(-8deg) scale(1.1);
  transition: transform 0.3s ease;
}
  
  /*.stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }*/

  .stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

  
  .stat-card--favourite .stat-card__icon { background: #dbeafe; color: #3b82f6; }
  .stat-card--pending .stat-card__icon { background: #fef3c7; color: #f59e0b; }
  .stat-card--overdue .stat-card__icon { background: #fee2e2; color: #ef4444; }
  .stat-card--upcoming .stat-card__icon { background: #e0e7ff; color: #5b21b6; }
  .stat-card--uploaded .stat-card__icon { background: #d1fae5; color: #10b981; }
  
  .stat-card__count {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
  }
  
  .stat-card__label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
  }

  .stat-card__label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Hide old stacked layout */
.stat-card__count,
.stat-card__label {
  display: none !important;
}

/* New badge (count + label) */
.stat-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Badge colors */
.stat-card--favourite .stat-card__badge {
  background: #dbeafe;
  color: #2563eb;
}

.stat-card--pending .stat-card__badge {
  background: #fef3c7;
  color: #d97706;
}

.stat-card--overdue .stat-card__badge {
  background: #fee2e2;
  color: #dc2626;
}

.stat-card--upcoming .stat-card__badge {
  background: #e0e7ff;
  color: #5b21b6;
}

.stat-card--uploaded .stat-card__badge {
  background: #d1fae5;
  color: #059669;
}

  
  /* Tab Content Area */
  .tab-content-area {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
  }
  
  .tab-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
  }
  
  /* Tab-specific header colors */
  .tab-header--favourite { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
  .tab-header--pending { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
  .tab-header--overdue { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
  .tab-header--upcoming { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
  .tab-header--uploaded { background: linear-gradient(135deg,  #10b981 0%, #059669 100%); }
  
  .tab-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .tab-header__badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  /* Sortable table headers */
  .data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
  }
  
  .data-table th.sortable:hover {
    background: #e2e8f0;
  }
  
  .data-table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 0.5rem;
    opacity: 0.3;
    font-size: 0.7rem;
  }
  
  .data-table th.sortable.sort-asc::after {
    content: '↑';
    opacity: 1;
  }
  
  .data-table th.sortable.sort-desc::after {
    content: '↓';
    opacity: 1;
  }
  
  /* Reset search button */
  .btn-reset-search {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
  
  .btn-reset-search:hover {
    background: rgba(255,255,255,0.25);
  }
  
  .tab-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .tab-actions .btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .tab-actions .btn:hover {
    background: rgba(255,255,255,0.25);
  }
  
  .tab-body {
    padding: 0;
    max-height: 500px;
    overflow-y: auto;
  }
  
  /* Table Styles */
  .data-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .data-table thead {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
  }
  
  .data-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }
  
  .data-table tbody tr:hover {
    background: #f8fafc;
  }
  
  .data-table tbody tr:last-child td {
    border-bottom: none;
  }

  /* Column Search Row */
  .data-table thead tr.column-search th {
    padding: 0.5rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
  }

  .column-search-input {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #334155;
    background: #fff;
    transition: all 0.2s;
  }

  .column-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  }

  .column-search-input::placeholder {
    color: #94a3b8;
  }

  /* Hide rows that don't match */
  .data-table tbody tr.hidden-row {
    display: none;
  }
  
  /* Document Pills */
  .doc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  
  .doc-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  .doc-pill--uploaded {
    background: #d1fae5;
    color: #059669;
  }
  
  .doc-pill--pending {
    background: #fee2e2;
    color: #dc2626;
  }
  
  .doc-count {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
  }
  
  .doc-count--uploaded {
    background: #d1fae5;
    color: #059669;
  }
  
  .doc-count--pending {
    background: #fee2e2;
    color: #dc2626;
  }
  
  /* Frequency Badge */
  .frequency-badge {
    display: inline-block;
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Status Badges */
  .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .status-badge--overdue {
    background: #fee2e2;
    color: #dc2626;
  }
  
  .status-badge--pending {
    background: #fef3c7;
    color: #d97706;
  }

  .status-badge--upcoming {
    background: #e0e7ff;
    color: #5b21b6;
  }
  
  /* Favourite Button */
  .fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: #cbd5e1;
    transition: all 0.2s;
    padding: 0.25rem;
  }
  
  .fav-btn:hover {
    color: #f59e0b;
    /*transform: scale(1.1);*/
  }
  
  .fav-btn.active {
    color: #f59e0b;
  }
  
  /* Due Date Styles */
  .due-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
  }
  
  .due-date__day {
    background: #fee2e2;
    color: #dc2626;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
  }

  .due-date__day_pending {
    background: #fef3c7;
    color: #d97706;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
  }

  .due-date__day_upcoming {
    background: #e0e7ff;
    color: #5b21b6;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
  }
  
  .due-date span:last-child {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .due-date--upcoming .due-date__day {
    background: #d1fae5;
    color: #059669;
  }
  
  /* Empty State */
  .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
  }
  
  .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .empty-state p {
    font-size: 0.875rem;
    margin: 0;
  }
  
  /* Loading Spinner */
  .tab-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* Month Badge */
  .month-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Company Badge */
  .company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Action buttons */
  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    background: #f1f5f9;
  }
  
  .action-btn:hover {
    background: #e2e8f0;
    color: #334155;
  }
  
  .action-btn--view:hover { color: #3b82f6; }
  .action-btn--download:hover { color: #10b981; }
  .action-btn--pdf { color: #dc2626; }
  .action-btn--pdf:hover { color: #b91c1c; }
  .action-btn--menu { 
    cursor: pointer;
  }
  
  /* Dashboard Action Dropdown Wrapper */
  .action-dropdown-wrapper {
    position: relative;
    display: inline-block;
  }
  .action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 140px;
    z-index: 1000;
    display: none;
    padding: 6px 0;
    margin-top: 4px;
  }
  .action-dropdown-wrapper.open .action-dropdown-menu {
    display: block;
  }
  .action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #374151;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
  }
  .action-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
  }
  .action-dropdown-item i {
    width: 16px;
    text-align: center;
  }
  .action-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
  }
  
  /* Action Dropdown Styles */
  .action-dropdown {
    position: relative;
    display: inline-block;
  }
  
  .action-dropdown__btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
  }
  
  .action-dropdown__btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
  }
  
  .action-dropdown__btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  }
  
  .action-dropdown__btn--danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  }

  .action-dropdown__btn--info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  }
  
  .action-dropdown__btn--info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  }

  .action-dropdown__btn--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  
  .action-dropdown__btn--warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  }
  
  .action-dropdown__btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }
  
  .action-dropdown__btn--success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }
  
  .action-dropdown__menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }
  
  .action-dropdown.open .action-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
  }
  
  .action-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
  }
  
  .action-dropdown__item:first-child {
    border-radius: 8px 8px 0 0;
  }
  
  .action-dropdown__item:last-child {
    border-radius: 0 0 8px 8px;
  }
  
  .action-dropdown__item:hover {
    background: #f3f4f6;
    color: #111827;
  }
  
  .action-dropdown__item i {
    width: 16px;
    text-align: center;
  }
  
  .action-dropdown__item--view:hover { background: #dbeafe; color: #1d4ed8; }
  .action-dropdown__item--download:hover { background: #cffafe; color: #0891b2; }
  .action-dropdown__item--favourite:hover { background: #fef3c7; color: #d97706; }
  .action-dropdown__item--upload:hover { background: #dbeafe; color: #1d4ed8; }
  .action-dropdown__item--mail:hover { background: #fef3c7; color: #d97706; }
  .action-dropdown__item--whatsapp:hover { background: #d1fae5; color: #059669; }
  
  .action-dropdown__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
  }
  
  .action-dropdown__submenu-label {
    display: block;
    padding: 0.375rem 1rem;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Hide original dropdown menu - we use floating clone instead */
  .action-dropdown .action-dropdown__menu {
    display: none !important;
  }
  
  
  /* Dashboard Filters */
  .dashboard-filters {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .dashboard-filters__title {
    font-weight: 600;
    color: #1e3a5f;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .dashboard-filters__group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .dashboard-filters__label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
  }
  
  .dashboard-filters__select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
    background: #fff;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .dashboard-filters__select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .dashboard-filters__select[multiple] {
    min-height: 38px;
    max-height: 120px;
  }
  
  .dashboard-filters__btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
  }
  
  .dashboard-filters__btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
  }
  
  .dashboard-filters__btn--reset {
    background: #f1f5f9;
    color: #64748b;
  }
  
  .dashboard-filters__btn--reset:hover {
    background: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
  }
  
  .filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
  }
  
  .filter-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
  
  .filter-tag__remove {
    cursor: pointer;
    opacity: 0.7;
  }
  
  .filter-tag__remove:hover {
    opacity: 1;
  }
  
  .filter-tag--info {
    background: #dbeafe;
    color: #1d4ed8;
  }
  
  /* Custom Company Dropdown */
  .company-dropdown-wrapper {
    position: relative;
  }
  
  .company-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
  }
  
  .company-dropdown-btn:hover {
    border-color: #3b82f6;
    background: #f8fafc;
  }
  
  .company-dropdown-btn:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .company-dropdown-wrapper.open .company-dropdown-btn {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .company-dropdown-arrow {
    font-size: 0.7rem;
    color: #64748b;
    transition: transform 0.2s;
  }
  
  .company-dropdown-wrapper.open .company-dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .company-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    max-height: 300px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
  }
  
  .company-dropdown-wrapper.open .company-dropdown-menu {
    display: block !important;
  }
  
  .company-dropdown-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
  }
  
  .company-action-btn {
    flex: 1;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .company-action-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
  }
  
  .company-dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
  }
  
  .company-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
  }
  
  .company-checkbox-item:hover {
    background: #f1f5f9;
  }
  
  .company-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
  }
  
  .company-checkbox-item span {
    font-size: 0.85rem;
    color: #334155;
  }
  
  /* Company restriction note - shown inline in filters for non-admin users */
  .company-restriction-note {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: #fef3c7;
    border-radius: 6px;
    border: 1px solid #fcd34d;
  }
  
  .company-restriction-note i {
    color: #f59e0b;
    }

    .days-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}

.days-badge--remaining {
  background: #e0f2fe;
  color: #0369a1;
}

.days-badge--overdue {
  background: #fee2e2;
  color: #dc2626;
}

/* Upcoming tab action button */
.action-dropdown__btn--upcoming {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.action-dropdown__btn--upcoming:hover {
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

/* Pending / Current (Indigo) */
.action-dropdown__btn--pending {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}
.action-dropdown__btn--pending:hover {
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* Uploaded (Blue) */
.action-dropdown__btn--uploaded {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}
.action-dropdown__btn--uploaded:hover {
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.status-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;   /* ⬅ centers days to badge width */
  gap: 4px;
}

.status-days {
  font-size: 0.75rem;
  font-weight: 600;
  /*color: #dc2626;*/
  text-align: center;
}

.action-dropdown__btn--pending:hover,
.action-dropdown__btn--pending:focus,
.action-dropdown__btn--pending:active {
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  color: #fff;
}

.action-dropdown__btn--upcoming:hover,
.action-dropdown__btn--upcoming:focus,
.action-dropdown__btn--upcoming:active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

.due-adjusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: #fff3cd;
  color: #92400e;
  border: 1px solid #fcd34d;
  white-space: nowrap;
}

.due-adjusted-badge i {
  font-size: 0.8rem;
}

.due-adjusted-icon {
  margin-left: 4px;
  font-size: 0.8rem;
  color: #d97706;
  cursor: help;
  vertical-align: middle;
}

.due-adjusted-icon:hover {
  color: #92400e;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}