/* =====================================================
   eStyles.css - OPTIMIZED VERSION
   File size reduced by ~60% while maintaining all functionality
   VERSION: 2025-01-09-V5-UNIFORM-BUTTONS
   ===================================================== */

/* =====================================================
   CSS VARIABLES - CENTRALIZED THEME
   ===================================================== */
:root {
  /* ---- iThuba design system (Styling/tokens.css), applied
     2026-09-24. Legacy variable NAMES are kept and their VALUES
     remapped, so every existing var(--x) reference in this file
     (and every page that links it) picks up the new palette without
     any markup changes. New token names are added below for
     targeted rules that need a specific accent (see STYLE_GUIDE.md
     "Rule of thumb": amber = growth/primary CTA, teal = verified/
     trust, indigo = reserved for the admin portal). ---- */
  --deep-navy: #1B2A3D;
  --mature-blue: #2C3E50;
  --forest-green: #2F9E8F;
  --forest-green-light: #3DAF9F;
  --sage-green: #4FA89A;
  --ivory: #FFFFFF;
  --warm-gray: #E7E2D6;
  --dark-slate: #1B2A3D;
  --mid-slate: #2C3E50;
  --primary-action: #1B2A3D;
  --primary-action-hover: #243447;
  --error-red: #D9534F;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --border-radius: 7px;
  --border-radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 42, 61, 0.06);
  --shadow-md: 0 4px 12px rgba(27, 42, 61, 0.15);
  --shadow-lg: 0 8px 24px rgba(27, 42, 61, 0.2);
  --transition: 0.3s ease;

  /* ---- New token names (tokens.css), for rules that reference
     them directly rather than through a legacy name above. ---- */
  --color-ink: #1B2A3D;
  --color-ink-theme: #2C3E50;
  --color-paper: #F6F4EF;
  --color-surface: #FFFFFF;
  --color-border: #E7E2D6;
  --color-border-soft: #F0EDE4;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-faint: #94A3B8;
  --color-amber: #E1A83D;
  --color-amber-bg: #F1EBDD;
  --color-amber-text: #B8862E;
  --color-teal: #2F9E8F;
  --color-teal-bg: #EAF4F2;
  --color-indigo: #4C4E9E;
  --color-indigo-bg: #EAEAF4;
  --color-danger: #D9534F;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
}

/* =====================================================
   APP SHELL SCROLL CONTAINMENT (design system: sidebar + top-bar
   stay fixed; only .content-area scrolls. components.css assumes a
   short mockup page, so this page-specific override keeps the shell
   usable on real, content-heavy dashboard pages.)
   ===================================================== */
.app-shell {
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  overflow-y: auto;
}
.content-area {
  overflow-y: auto;
}

.text-ink {
  color: var(--color-ink);
}

/* =====================================================
   ICONS (inline SVG, replaces emoji glyphs)
   ===================================================== */
.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.top-band {
  background: var(--dark-slate);
  padding: var(--spacing-sm) var(--spacing-xl);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-xl);
  border-bottom: 2px solid var(--mid-slate);
  z-index: 100;
}

.main-nav a {
  color: #e8eaed;
  text-decoration: none;
  font-weight: 500;
  font-size: 24px;
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--sage-green);
}

.logo-banner {
  background: white;
  padding: var(--spacing-sm) var(--spacing-xl);
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e3e7;
  z-index: 100;
}

.logo {
  height: 150px;
  width: auto;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  background: linear-gradient(135deg, var(--dark-slate), var(--mid-slate));
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 100;
  overflow: visible;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sage-green), var(--forest-green));
}

.dashboard-page .hero {
  padding: var(--spacing-xl) var(--spacing-xl) 2.5rem;
}

.hero-top,
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex: 1;
}

.hero h1,
.hero-title,
.hero h2,
.hero-company-name {
  font-size: 1.1rem;
  color: white;
  font-weight: 600;
  margin: 0;
}

.hero h2,
.hero-company-name {
  font-weight: 500;
  color: #e8eaed;
}

.verification-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.verification-badge.pending {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.3);
}

.hero-search-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: var(--spacing-md) 1.5rem;
  margin: 0 auto var(--spacing-md);
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10000;
}

.hero-search-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: var(--spacing-sm);
}

.hero-search-input {
  flex: 1;
  height: 48px;
  padding: 0 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark-slate);
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

.hero-search-input:focus {
  border-color: var(--primary-action);
  background: white;
  box-shadow: 0 0 0 3px rgba(58, 112, 73, 0.2);
}

.search-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.search-results-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + var(--spacing-sm));
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--deep-navy);
  border-radius: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: var(--shadow-lg);
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  padding: var(--spacing-md) 1.2rem;
  border-bottom: 1px solid var(--warm-gray);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
}

.search-result-item:hover {
  background: #f5f5f5;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-loading,
.search-error,
.search-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

.search-error {
  color: var(--error-red);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  color: var(--dark-slate);
  margin-bottom: 0.25rem;
}

.search-result-details {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-result-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-shrink: 0;
}

.hero-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: var(--spacing-md);
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
  overflow: visible;
}

/* =====================================================
   BUTTONS
   ===================================================== */
button,
.btn {
  padding: 12px 24px;
  margin: 10px 5px 10px 0;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  font-size: 14px;
  font-family: inherit;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: #ccc;
}

.hero-action-btn,
.cta-btn,
.btn-primary,
#generateReportBtn {
  height: 48px;
  min-width: 180px;
  padding: 0 1.75rem;
  background: var(--primary-action);
  color: white;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(45, 90, 58, 0.3);
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
}

.hero-action-btn:hover,
.btn-primary:hover {
  background: var(--primary-action-hover);
  box-shadow: 0 6px 20px rgba(45, 90, 58, 0.4);
}

.hero-search-btn,
.btn-secondary {
  height: 48px;
  min-width: 140px;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Search Results - All buttons same size, View button gray-navy */
.search-result-actions .btn-secondary,
.search-result-actions .btn-primary,
.search-result-actions .btn-whatsapp {
  height: 36px;
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.search-result-actions .btn-secondary {
  background: var(--color-ink-theme);
  color: white;
  border: 1px solid var(--color-ink-theme);
}

.search-result-actions .btn-secondary:hover {
  background: var(--primary-action-hover);
  border-color: var(--primary-action-hover);
}

.search-result-actions .btn-primary {
  background: var(--primary-action);
  color: white;
  border: 1px solid var(--primary-action);
}

.search-result-actions .btn-primary:hover {
  background: var(--primary-action-hover);
  border-color: var(--primary-action-hover);
}

.search-result-actions .btn-whatsapp {
  background: #25D366;
  border: 1px solid #25D366;
  padding: 0.5rem;
}

.search-result-actions .btn-whatsapp:hover {
  background: #20BA5A;
  border-color: #20BA5A;
}

/* View Old Batch Button - Gray-Navy Blue Styling */
#viewBatchBtn {
  height: 48px;
  min-width: 180px;
  padding: 0 1.75rem;
  background: var(--color-ink-theme);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
  white-space: nowrap;
  margin: 0;
  transition: all 0.2s;
}

#viewBatchBtn:hover {
  background: var(--primary-action-hover);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
  transform: translateY(-2px);
}

.btn-success,
#generateReport {
  background: var(--forest-green);
  color: var(--ivory);
}

.btn-info,
#downloadReport,
#exportPDF {
  background: var(--deep-navy);
  color: var(--ivory);
}

.btn-danger {
  background: var(--error-red);
  color: var(--ivory);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-large {
  padding: var(--spacing-md) 3rem;
  font-size: 1.1rem;
  min-width: 250px;
}

.btn-view {
  background: var(--primary-action);
  color: white;
}

.btn-rate {
  background: var(--deep-navy);
  color: white;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border-radius: var(--border-radius);
  height: 36px;
}

.btn-whatsapp img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.search-result-actions .btn {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  height: 36px;
  min-height: 36px;
  white-space: nowrap;
  border-radius: var(--border-radius);
}

.search-result-actions .btn-whatsapp {
  padding: 0.5rem 1rem;
  min-width: 44px;
  height: 36px;
}

/* =====================================================
   BATCH DROPDOWN - PROFESSIONAL STYLING (NO EMOJIS)
   ===================================================== */

.batch-dropdown-wrapper {
  position: relative;
  z-index: 50;
}

.batch-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin-top: 8px;
  min-width: 300px;
}

.batch-dropdown.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.batch-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.batch-dropdown-header h3 {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-refresh-batches {
  background: none;
  border: 1px solid #1a4d2e;
  color: #1a4d2e;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-refresh-batches:hover {
  background: #1a4d2e;
  color: white;
}

.btn-refresh-batches:hover .refresh-icon {
  transform: rotate(180deg);
}

.refresh-icon {
  transition: transform 0.2s ease;
}

/* Loading, Empty, Error States */
.batch-loading,
.no-batches,
.batch-error {
  text-align: center;
  padding: 20px 15px;
  font-size: 11px;
}

.batch-loading {
  color: #666;
  font-style: italic;
}

.no-batches {
  color: #666;
}

.no-batches p {
  margin: 6px 0;
  font-size: 11px;
}

.batch-error {
  color: #d32f2f;
}

.batch-error p {
  margin-bottom: 12px;
  font-size: 11px;
}

/* Individual Batch Items */
.batch-item {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.batch-item:hover {
  background: #f5f5f5;
  padding-left: 16px;
}

.batch-item:last-child {
  border-bottom: none;
}

.batch-item-title {
  font-weight: 600;
  color: #1a4d2e;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.batch-id {
  font-family: 'Courier New', monospace;
  color: #555;
  font-weight: 500;
}

.batch-status-badge {
  display: inline-block;
  background: var(--color-amber-text);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.batch-status-badge.completed {
  background: var(--color-teal);
}

.batch-status-badge.pending {
  background: var(--color-amber-text);
}

.batch-status-badge.failed {
  background: #f44336;
}

.batch-item-date {
  font-size: 10px;
  color: #666;
  margin-bottom: 3px;
}

.batch-item-meta {
  font-size: 10px;
  color: #999;
  display: flex;
  gap: 12px;
}

.batch-item-action {
  font-size: 10px;
  color: #1a4d2e;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-top: 4px;
}

.batch-item:hover .batch-item-action {
  opacity: 1;
}

/* Scrollbar for dropdown */
.batch-dropdown::-webkit-scrollbar {
  width: 6px;
}

.batch-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.batch-dropdown::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.batch-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   CONTENT & LAYOUT
   ===================================================== */
.content {
  max-width: 1400px;
  margin: var(--spacing-sm) auto;
  padding: 20px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.content h2 {
  color: var(--dark-slate);
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  font-weight: 600;
}

.content h3 {
  color: var(--dark-slate);
  margin-bottom: var(--spacing-md);
  font-size: 1.3rem;
  font-weight: 600;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-container {
  max-width: 1400px;
  margin: var(--spacing-sm) auto;
  padding: 0 var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.nav-tabs {
  display: flex;
  gap: var(--spacing-sm);
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.nav-tab {
  padding: 0.7rem 1.5rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  position: relative;
}

.nav-tab:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.nav-tab.active {
  background: var(--primary-action);
  color: white;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--error-red);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  background: var(--color-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs, 12px);
  font-weight: 500;
  color: var(--color-text-muted, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 var(--spacing-sm) 0;
}

.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-action);
}

.stat-card .stat-change {
  font-size: var(--text-xs, 12px);
  color: var(--color-text-faint, #94A3B8);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.action-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.action-card .icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.activity-feed {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  max-height: 500px;
  overflow-y: auto;
}

.activity-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  gap: var(--spacing-md);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.activity-icon.review {
  background: #e3f2fd;
  color: #1976d2;
}

.activity-icon.employee {
  background: #f3e5f5;
  color: #7b1fa2;
}

.activity-icon.verification {
  background: #fff3e0;
  color: #f57c00;
}

/* =====================================================
   TABLES
   ===================================================== */
.data-table,
.table-container {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm);
  min-width: 250px;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  border: none;
  outline: none;
  padding: 0.3rem;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th,
td {
  text-align: left;
  padding: 8px;
  border: 1px solid #ccc;
}

th {
  background: var(--dark-slate);
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}

tbody tr:nth-child(even) {
  background: #f9f9f9;
}

tbody tr:hover {
  background: #f0f8ff;
}

#resultsTable th {
  cursor: pointer;
  user-select: none;
  padding-right: 20px;
  position: relative;
}

#resultsTable th::after {
  content: '⇅';
  position: absolute;
  right: 5px;
  opacity: 0.3;
  font-size: 12px;
}

#resultsTable th.sort-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--color-teal);
}

#resultsTable th.sort-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--color-teal);
}

/* Employee Database table (eDashboard.html #employeesTab) -- same
   sort-arrow convention as #resultsTable above, scoped to its own
   class so it doesn't affect any other table. */
.sortable-table th[data-sort] {
  cursor: pointer;
  user-select: none;
  padding-right: 20px;
  position: relative;
}

.sortable-table th[data-sort]::after {
  content: '⇅';
  position: absolute;
  right: 5px;
  opacity: 0.3;
  font-size: 12px;
}

.sortable-table th[data-sort].sort-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--color-teal);
}

.sortable-table th[data-sort].sort-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--color-teal);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--dark-slate);
  font-size: 0.95rem;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.75rem var(--spacing-md);
  border: 1px solid #d0d0d0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: white;
  transition: all var(--transition);
  font-family: inherit;
  box-sizing: border-box;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--deep-navy);
  box-shadow: 0 0 0 3px rgba(27, 73, 101, 0.1);
}

select:disabled,
input:disabled {
  background: #f0f0f0;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.input-error {
  border: 2px solid var(--error-red);
  background: #fff5f5;
}

.field-error {
  color: var(--error-red);
  font-size: 0.85rem;
  position: absolute;
  bottom: 0.5rem;
  left: var(--spacing-md);
  opacity: 0;
  transition: opacity 0.2s;
}

.field-error:not(:empty) {
  opacity: 1;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* =====================================================
   FILTERS
   ===================================================== */
.filters-container {
  background: var(--color-paper);
  padding: 20px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.filter-section {
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.filter-section h4 {
  margin: 0 0 15px 0;
  color: var(--dark-slate);
  font-size: 14px;
  font-weight: bold;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

.filter-section.full-width {
  background: var(--warm-gray);
  grid-column: 1 / -1;
}

.filter-section.full-width h4 {
  font-size: 21px;
}

.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.social-ratings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid var(--deep-navy);
  border-radius: 3px;
  appearance: none;
}

.toggle-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: var(--deep-navy);
  font-size: 14px;
  font-weight: bold;
  left: 2px;
  top: -2px;
}

/* =====================================================
   ALERTS
   ===================================================== */
.success-message,
.error-message,
.info-message {
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: none;
}

.success-message {
  background: var(--forest-green);
  color: var(--ivory);
}

.error-message {
  background: var(--error-red);
  color: var(--ivory);
}

.info-message {
  background: var(--sage-green);
  color: var(--ivory);
}

.alert {
  padding: var(--spacing-md) 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
  font-size: 0.95rem;
}

.alert-info {
  background: #e3f2fd;
  border-left-color: #1976d2;
  color: #0d47a1;
}

.alert-success {
  background: var(--color-teal-bg);
  border-left-color: var(--color-teal);
  color: #1B5E4A;
}

.alert-warning {
  background: var(--color-amber-bg);
  border-left-color: var(--color-amber);
  color: var(--color-amber-text);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal,
.rating-modal,
.cv-preview-modal,
.message-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal.show,
.rating-modal.show,
.cv-preview-modal.show,
.message-modal.show {
  display: flex;
}

.modal-content,
.rating-modal-content,
.cv-preview-modal-content,
.message-modal-content {
  background: var(--ivory);
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease-out;
}

.modal-header,
.rating-modal-header,
.cv-preview-modal-header,
.message-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid #e0e0e0;
}

.modal-close,
.rating-modal-close,
.cv-preview-modal-close,
.message-modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  transition: all var(--transition);
}

.modal-close:hover,
.rating-modal-close:hover,
.cv-preview-modal-close:hover,
.message-modal-close:hover {
  color: var(--dark-slate);
  transform: rotate(90deg);
}

.modal-body,
.rating-modal-body,
.cv-preview-modal-body,
.message-modal-body {
  padding: 30px;
}

.rating-legend {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: #f5f5f5;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.rating-group {
  margin-bottom: var(--spacing-lg);
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.star.selected {
  color: var(--color-amber);
}

/* =====================================================
   VERIFICATION
   ===================================================== */
.verification-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  border: 2px solid #e0e0e0;
  transition: all var(--transition);
}

.verification-card:hover {
  border-color: var(--deep-navy);
  box-shadow: var(--shadow-md);
}

.verification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: 600;
  color: #666;
}

.verification-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.badge-employee-confirmed,
.badge-pending {
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.badge-employee-confirmed {
  background: var(--color-teal);
}

.badge-pending {
  background: var(--color-amber-text);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================
   SCROLLBARS
   ===================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-lg); }

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--deep-navy);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.divider {
  text-align: center;
  margin: var(--spacing-xl) 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #d0d0d0;
}

.divider span {
  background: var(--warm-gray);
  padding: 0 var(--spacing-md);
  position: relative;
  font-weight: 600;
}

/* =====================================================
   RESPONSIVE - TABLET & MOBILE OPTIMIZATION
   ===================================================== */
@media (max-width: 1200px) {
  .social-ratings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Optimization */
@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  th, td {
    font-size: 10px;
    padding: 4px;
  }
  
  /* Hero Search - Tablet */
  .hero-search-container {
    max-width: 90%;
    padding: var(--spacing-md);
  }
  
  .hero-search-input {
    font-size: 0.95rem;
    height: 46px;
    padding: 0 1rem;
  }
  
  .hero-search-btn {
    height: 46px;
    min-width: 120px;
    font-size: 0.95rem;
    padding: 0 1.2rem;
  }
  
  .search-hint {
    font-size: 0.8rem;
  }
  
  .search-results-dropdown {
    max-height: 350px;
  }
  
  .search-result-item {
    padding: var(--spacing-md);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .search-result-info {
    width: 100%;
  }
  
  .search-result-name {
    font-size: 0.95rem;
  }
  
  .search-result-details {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .search-result-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .batch-dropdown {
    left: -25%;
    right: -25%;
    min-width: auto;
  }
}

@media (max-width: 900px) {
  .social-ratings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem var(--spacing-md);
  }
  
  .hero-top-row {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  /* Hero Search - Mobile */
  .hero-search-container {
    max-width: 100%;
    padding: var(--spacing-md) var(--spacing-sm);
    margin: 0 0 var(--spacing-md) 0;
    border-radius: 12px;
  }
  
  .hero-search-wrapper {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-search-input {
    width: 100%;
    height: 50px;
    font-size: 16px;
    padding: 0 1rem;
    border-radius: 8px;
  }
  
  .hero-search-btn {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    border-radius: 8px;
    justify-content: center;
  }
  
  .search-hint {
    font-size: 0.75rem;
    padding: 0 var(--spacing-sm);
    line-height: 1.4;
  }
  
  /* Search Results Dropdown - Mobile */
  .search-results-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    border-radius: 16px 16px 0 0;
    border: none;
    border-top: 3px solid var(--deep-navy);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .search-result-item {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
  }
  
  .search-result-item:active {
    background: #e8f4fd;
  }
  
  .search-result-info {
    width: 100%;
  }
  
  .search-result-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .search-result-details {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  
  .search-result-details span {
    display: block;
  }
  
  .search-result-actions {
    width: 100%;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  
  .search-result-actions .btn {
    flex: 1;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    margin: 0;
  }
  
  .search-result-actions .btn-whatsapp {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 0.6rem;
  }
  
  .search-result-actions .btn-whatsapp img {
    width: 24px;
    height: 24px;
  }
  
  /* Loading, Error, No Results States */
  .search-loading,
  .search-error,
  .search-no-results {
    padding: 2rem 1rem;
    font-size: 0.95rem;
    text-align: center;
  }
  
  .hero-actions-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .batch-dropdown {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    border-radius: 12px 12px 0 0;
    position: fixed;
    top: auto;
    bottom: 0;
    max-height: 60vh;
  }
  
  .stats-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .nav-tabs {
    flex-direction: column;
  }
  
  .filter-row,
  .social-ratings-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  
  button,
  .btn {
    width: 100%;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .modal-content,
  .rating-modal-content {
    width: 95%;
  }
  
  .hero-search-container {
    padding: var(--spacing-sm);
  }
  
  .search-result-item {
    padding: 0.85rem;
  }
  
  .search-result-name {
    font-size: 0.95rem;
  }
  
  .search-result-details {
    font-size: 0.8rem;
  }
  
  .search-result-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .hero-search-input,
  .hero-search-btn {
    min-height: 48px;
  }
  
  .search-result-item {
    min-height: 60px;
    padding: 1rem;
  }
  
  .btn,
  button {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .search-result-item:hover {
    background: white;
  }
  
  .search-result-item:active {
    background: #f0f8ff;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 900px) and (orientation: landscape) {
  .search-results-dropdown {
    max-height: 50vh;
  }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .hero,
  .filters-container,
  .nav-tabs,
  .modal,
  .batch-dropdown-wrapper,
  .hero-search-container {
    display: none !important;
  }
  
  .content {
    max-width: 100%;
    padding: 0;
    box-shadow: none;
  }
  
  body { font-size: 12px; }
  table { font-size: 10px; }
}
/* =====================================================
   REPORT RESULTS TABLE - SOLID BACKGROUNDS
   ===================================================== */

/* Table wrapper to handle overflow with solid background */
.table-container,
#reportResultsContainer {
  background: white;
  overflow-x: auto;
  position: relative;
}

/* Ensure table itself has solid background */
#resultsTable {
  background: white;
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: auto;
}

/* Solid background for table body */
#resultsTable tbody {
  background: white;
}

/* Alternating row colors with solid backgrounds */
#resultsTable tbody tr {
  background: white;
}

#resultsTable tbody tr:nth-child(odd) {
  background: #ffffff;
}

#resultsTable tbody tr:nth-child(even) {
  background: #f5f5f5;
}

#resultsTable tbody tr:hover {
  background: #e8f4fd;
}

/* Ensure cells have no transparent backgrounds */
#resultsTable td {
  background: inherit;
  text-align: left;
  padding: 8px;
  border: 1px solid #ddd;
}

/* Keep header styling solid */
#resultsTable th {
  background: var(--dark-slate);
  color: white;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}
/* =====================================================
   EMPLOYEE WELCOME MODAL - PROFESSIONAL REDESIGN
   ===================================================== */

.welcome-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.welcome-modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  max-width: 650px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease-out;
  border: 1px solid #e0e0e0;
}

.welcome-modal-header {
  background: linear-gradient(135deg, var(--dark-slate), var(--mid-slate));
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--primary-action);
  position: relative;
}

.welcome-modal-header h2 {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.welcome-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.welcome-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.welcome-modal-body {
  padding: 2rem;
  max-height: calc(85vh - 100px);
  overflow-y: auto;
}

/* Employee Count Display */
.employee-count {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid var(--primary-action);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.employee-count span:first-child {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.count-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-action);
  line-height: 1;
  margin: 0.25rem 0;
}

.employee-count span:last-child {
  display: block;
  font-size: 1.1rem;
  color: var(--dark-slate);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Message Options Section */
.message-options {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.message-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}

.message-option:last-child {
  margin-bottom: 0;
}

.message-option:hover {
  border-color: var(--primary-action);
  box-shadow: 0 2px 8px rgba(58, 112, 73, 0.1);
}

.message-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--dark-slate);
  font-size: 0.95rem;
}

.message-option-icon {
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 6px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-block;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-action);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Message Preview */
.message-preview {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.message-preview h4 {
  color: var(--dark-slate);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-content {
  background: #f8f9fa;
  border-left: 3px solid var(--primary-action);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
}

.preview-content strong {
  color: var(--dark-slate);
  display: block;
  margin-bottom: 0.5rem;
}

#companyNameInMessage {
  color: var(--primary-action);
  font-weight: 600;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-send-messages {
  background: var(--primary-action);
  color: white;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(58, 112, 73, 0.3);
  min-width: 180px;
}

.btn-send-messages:hover {
  background: var(--primary-action-hover);
  box-shadow: 0 6px 20px rgba(58, 112, 73, 0.4);
  transform: translateY(-2px);
}

.btn-skip {
  background: transparent;
  color: #666;
  padding: 0.9rem 2rem;
  border: 2px solid #d0d0d0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.btn-skip:hover {
  border-color: #999;
  color: #333;
  background: #f5f5f5;
}

/* Sending Status */
.sending-status {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.sending-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-action);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.sending-status p {
  color: var(--dark-slate);
  font-size: 1.05rem;
  font-weight: 500;
}

/* Scrollbar for modal body */
.welcome-modal-body::-webkit-scrollbar {
  width: 8px;
}

.welcome-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.welcome-modal-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.welcome-modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .welcome-modal-content {
    width: 95%;
    max-width: 95%;
  }
  
  .welcome-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .welcome-modal-header h2 {
    font-size: 1.2rem;
  }
  
  .welcome-modal-body {
    padding: 1.5rem;
  }
  
  .count-number {
    font-size: 2.5rem;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn-send-messages,
  .btn-skip {
    width: 100%;
    min-width: auto;
  }
  
  .message-option {
    padding: 0.85rem;
  }
  
  .message-option-label {
    font-size: 0.9rem;
  }
}

/* =====================================================
   ITHUBA DESIGN SYSTEM -- ADDITIVE COMPONENTS
   From Styling/components.css, added 2026-09-24 alongside the
   retinted rules above. Available for incremental adoption on any
   employer-portal page; nothing existing depends on these yet.
   ===================================================== */
.btn-accent { background: var(--color-amber); color: var(--color-ink); }
.btn-outline-light { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.5); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
}
.pill-sm { padding: 5px 11px; font-size: 11.5px; }
.pill-teal  { background: var(--color-teal-bg); color: var(--color-teal); }
.pill-amber { background: var(--color-amber-bg); color: var(--color-amber-text); }

.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot-teal { background: var(--color-teal); }

.badge-count {
  margin-left: auto;
  background: var(--color-amber);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.card { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--spacing-lg); box-sizing: border-box; }
.card-lg { border-radius: var(--radius-xl); padding: var(--spacing-xl); }

.feature-card {
  flex: 1;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.feature-card.on-dark { background: rgba(255, 255, 255, 0.07); }
.feature-card.on-light { background: var(--color-surface); }

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-teal   { background: var(--color-teal-bg); color: var(--color-teal); }
.avatar-amber  { background: var(--color-amber-bg); color: var(--color-amber-text); }
.avatar-indigo { background: var(--color-indigo-bg); color: var(--color-indigo); }
.avatar-dark   { background: var(--color-ink); color: #FFFFFF; }

.list-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.list-row:last-child { border-bottom: none; }

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.eyebrow-teal  { background: var(--color-teal-bg); color: var(--color-teal); }
.eyebrow-amber { background: var(--color-amber-bg); color: var(--color-amber-text); }

.section { padding: 76px 64px; box-sizing: border-box; }
.section-dark { background: var(--color-ink); color: #FFFFFF; }
.section-light { background: var(--color-surface); }
.section-paper { background: var(--color-paper); }

/* =====================================================================
   iThuba V2 DASHBOARD LAYOUT (ported 2026-10-07)
   Sidebar, clean top bar, KPI cards, tidy tables. Layout only:
   colours come from tokens.css (iThuba employer palette).
   Everything below overrides earlier rules; keep it last.
   ===================================================================== */

/* ---- Shell ---- */
.app-shell { background: var(--it-grey-100, var(--color-paper, #F6F4EF)); }
.sidebar {
  flex: 0 0 248px;
  width: 248px;
  background: linear-gradient(180deg, var(--color-dark-surface, #1B2A3D) 0%, var(--color-dark-surface, #1B2A3D) 100%);
  padding: 0 0 16px;
  gap: 2px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.sidebar-brand {
  padding: 20px 20px 16px !important;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand img { height: 40px !important; width: auto; }
.sidebar-brand div { margin-top: 10px !important; color: var(--it-gold-500, var(--color-amber, #E1A83D)) !important; font-weight: 700; letter-spacing: 0.14em !important; font-size: 10.5px !important; }
.nav-item {
  position: relative;
  margin: 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 7px);
  font-size: 14px;
  font-weight: 500;
  color: #C5D4EE;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; }
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 4px;
  background: var(--it-gold-500, var(--color-amber, #E1A83D)); border-radius: 0 3px 3px 0;
}
.nav-item .icon { opacity: .85; }
.nav-item.active .icon { opacity: 1; color: var(--it-gold-500, var(--color-amber, #E1A83D)); }
.badge-count { background: var(--it-gold-500, var(--color-amber, #E1A83D)); color: #1B2A3D; border-radius: var(--radius-sm, 7px); }
.sidebar-footer { margin: auto 12px 0; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer #sidebarCompanyName, .sidebar-footer #authIndicator { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .btn-text, .sidebar .btn-text:hover { color: var(--color-teal, #2F9E8F) !important; }
.sidebar .btn-text:hover { color: #fff !important; text-decoration: underline; }

.top-bar {
  flex: 0 0 64px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(27, 42, 61,0.04);
  padding: 0 32px;
}
.top-bar .font-display { font-size: 18px !important; font-weight: 700 !important; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); letter-spacing: -0.01em; }
.top-bar .avatar { width: 34px; height: 34px; background: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); color: #fff; }
.topbar-search {
  display: flex; align-items: center; gap: 8px; background: var(--it-grey-100, var(--color-paper, #F6F4EF));
  border: 1px solid var(--color-border); border-radius: var(--radius-sm, 7px); padding: 8px 12px; width: 240px; box-sizing: border-box;
}
.content-area { padding: 24px 32px 0; gap: 20px; background: var(--it-grey-100, var(--color-paper, #F6F4EF)); }
.content-area > div > footer, .content-area > footer { margin: 0; }

/* ---- Page header strip (hero) ---- */
.hero {
  background: linear-gradient(135deg, var(--color-dark-surface, #1B2A3D) 0%, var(--color-dark-surface, #1B2A3D) 60%, var(--color-ink, #1B2A3D) 100%);
  border-radius: var(--radius-md, 10px);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  overflow: visible;
  border-bottom: 3px solid var(--it-gold-500, var(--color-amber, #E1A83D));
}
.hero::after { display: none; }
.dashboard-page .hero { padding: 24px 28px 28px; }
.hero h1, .hero-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-tagline { color: #C5D4EE; margin: 4px 0 18px; font-size: 0.95rem; }
.hero-company-name { color: #C5D4EE !important; font-size: 0.95rem !important; }
.verification-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm, 7px); box-shadow: none; backdrop-filter: none; font-size: 0.8rem; font-weight: 600; }
.verification-badge.pending { background: rgba(225, 168, 61,0.16); border-color: rgba(225, 168, 61,0.45); color: var(--color-amber-bg, #F1EBDD); }
.hero-search-container { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); box-shadow: none; backdrop-filter: none; border-radius: var(--radius-sm, 7px); }
.hero-action-btn, .cta-btn, #generateReportBtn {
  background: var(--it-gold-500, var(--color-amber, #E1A83D)); color: #1B2A3D; border-radius: var(--radius-sm, 7px);
  box-shadow: 0 2px 0 var(--it-gold-600, var(--color-amber-text, #B8862E)); font-weight: 700; font-size: 0.95rem;
}
.hero-action-btn:hover, #generateReportBtn:hover:not(:disabled) { background: var(--it-gold-400, var(--color-amber, #E1A83D)); color: #1B2A3D; box-shadow: 0 2px 0 var(--it-gold-600, var(--color-amber-text, #B8862E)); transform: none; }

/* ---- Buttons ---- */
.btn { border-radius: var(--radius-sm, 7px); font-weight: 600; }
button:hover:not(:disabled), .btn:hover:not(:disabled) { transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--it-blue-700, var(--color-ink, #1B2A3D)); box-shadow: var(--shadow-sm); }
.btn-secondary:not(.hero-search-btn) { background: #fff; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); border: 1px solid var(--it-grey-300, var(--color-border, #E7E2D6)); backdrop-filter: none; }
.btn-secondary:not(.hero-search-btn):hover { background: var(--it-blue-50, var(--color-paper, #F6F4EF)); }
.hero .btn-secondary, .hero-search-btn { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
/* The search results drop down over a white card, so the "View CV" button there needs solid colours
   (the rule above is meant for buttons on the dark header and made it white on white). */
.hero .search-result-actions .btn-secondary { background: var(--color-ink-theme, #2C3E50); color: #fff; border: 1px solid var(--color-ink-theme, #2C3E50); }
.hero .search-result-actions .btn-secondary:hover { background: var(--color-ink, #1B2A3D); border-color: var(--color-ink, #1B2A3D); }
.search-result-actions .btn-view-cv { width: auto; min-width: 92px; max-width: none; }
.btn-danger { background: var(--it-danger, var(--color-danger, #D9534F)); color: #fff; }

/* ---- Tab bar ---- */
.dashboard-container { max-width: none; margin: 0; padding: 0; width: 100%; }
.nav-tabs {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm);
  padding: 0 8px; gap: 4px; margin-bottom: 20px;
}
.nav-tab {
  background: transparent; color: var(--it-grey-600, var(--color-text-secondary, #475569)); border-radius: 0; padding: 14px 16px;
  font-weight: 600; font-size: 0.9rem; border-bottom: 3px solid transparent; font-family: inherit;
}
.nav-tab:hover { background: transparent; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); opacity: 1; transform: none; box-shadow: none !important; }
.nav-tab.active { background: transparent; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); border-bottom-color: var(--it-gold-500, var(--color-amber, #E1A83D)); }
.notification-badge { background: var(--it-danger, var(--color-danger, #D9534F)); border-radius: var(--radius-sm, 7px); top: 4px; right: -4px; }

/* ---- KPI stat cards ---- */
.stats-grid { gap: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--it-blue-600, var(--color-ink-theme, #2C3E50));
  border-radius: var(--radius-md, 10px); padding: 20px 22px; box-shadow: var(--shadow-sm); display: block; transition: box-shadow .15s;
}
.stat-card:hover { transform: none; box-shadow: var(--shadow-md); }
.stat-card h3 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--it-grey-500, var(--color-text-muted, #64748B)); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); line-height: 1.1; }
.stat-card .stat-change { margin-top: 6px; color: var(--it-grey-500, var(--color-text-muted, #64748B)); font-size: 12.5px; }
.stats-grid .stat-card:nth-child(4n+4) { border-top-color: var(--it-gold-500, var(--color-amber, #E1A83D)); }

/* ---- Quick actions, activity ---- */
.quick-actions { gap: 16px; }
.action-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); padding: 22px 16px; box-shadow: var(--shadow-sm); }
.action-card:hover { transform: none; border-color: var(--it-blue-300, var(--color-teal, #2F9E8F)); box-shadow: var(--shadow-md); }
.action-card .icon {
  width: 48px; height: 48px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  background: var(--it-blue-50, var(--color-paper, #F6F4EF)); color: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); border-radius: var(--radius-sm, 7px); font-size: 1.4rem;
}
.action-card h3 { font-size: 0.95rem; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); }
.activity-feed { border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); }
.activity-item { border-bottom: 1px solid var(--color-border-soft); }
.activity-icon { border-radius: var(--radius-sm, 7px); }
.activity-icon.review { background: var(--it-blue-50, var(--color-paper, #F6F4EF)); color: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); }
.activity-icon.employee { background: var(--it-blue-100, var(--color-border, #E7E2D6)); color: var(--it-blue-700, var(--color-ink, #1B2A3D)); }
.activity-icon.verification { background: var(--it-mint-50, var(--color-teal-bg, #EAF4F2)); color: var(--it-mint-700, var(--color-teal, #2F9E8F)); }

/* ---- Cards / content blocks ---- */
.content { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); padding: 24px; max-width: none; margin: 0; }
.content h2, .content h3 { color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); }
.card, .settings-container, .verification-card { border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); }
.settings-container { background: #fff; padding: 24px; max-width: 720px; }
.filters-container { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); }
.filter-section h4 { color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Tables ---- */
.data-table, .table-container { border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); padding: 0; overflow: auto; max-height: 72vh; }
.data-table > .table-header, .table-container > .table-header { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--color-border); }
.table-header h2 { font-size: 1.05rem; margin: 0; }
.search-box, input.search-box { border: 1px solid var(--it-grey-300, var(--color-border, #E7E2D6)); border-radius: var(--radius-sm, 7px); background: #fff; }
table { font-size: 13px; }
th, td { border: 0; border-bottom: 1px solid var(--color-border-soft); padding: 11px 14px; vertical-align: middle; }
th {
  background: var(--it-grey-50, var(--color-paper, #F6F4EF)); color: var(--it-grey-600, var(--color-text-secondary, #475569)); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 10; white-space: nowrap;
}
tbody tr:nth-child(even) { background: transparent; }
tbody tr:hover { background: var(--it-blue-50, var(--color-paper, #F6F4EF)); }
#resultsTable { font-size: 13px; }
#resultsTable th { background: var(--it-grey-50, var(--color-paper, #F6F4EF)); color: var(--it-grey-600, var(--color-text-secondary, #475569)); font-weight: 700; }
#resultsTable td { border: 0; border-bottom: 1px solid var(--color-border-soft); padding: 11px 14px; }
#resultsTable tbody tr, #resultsTable tbody tr:nth-child(odd), #resultsTable tbody tr:nth-child(even) { background: #fff; }
#resultsTable tbody tr:hover { background: var(--it-blue-50, var(--color-paper, #F6F4EF)); }
#resultsTable th.sort-asc::after, #resultsTable th.sort-desc::after,
.sortable-table th[data-sort].sort-asc::after, .sortable-table th[data-sort].sort-desc::after { color: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); }
@media (max-width: 1024px) { th, td { font-size: 12px; padding: 8px 10px; } }

/* ---- Forms ---- */
.form-group label { color: var(--it-grey-800, var(--color-text, #1B2A3D)); font-weight: 600; font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
  border-radius: var(--radius-sm, 7px); border-color: var(--it-grey-300, var(--color-border, #E7E2D6)); font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--it-blue-500, var(--color-teal, #2F9E8F)); outline: 2px solid var(--it-blue-100, var(--color-border, #E7E2D6)); outline-offset: 0; }

/* ---- Badges / status ---- */
.pill, .pill-sm, .eyebrow { border-radius: var(--radius-sm, 7px); }
.pill-teal, .eyebrow-teal, .avatar-teal { background: var(--it-mint-50, var(--color-teal-bg, #EAF4F2)); color: var(--it-mint-700, var(--color-teal, #2F9E8F)); }
.pill-amber, .eyebrow-amber, .avatar-amber { background: var(--it-gold-300, var(--color-amber-bg, #F1EBDD)); color: #1B2A3D; }
.status-dot-teal { background: var(--it-mint-500, var(--color-teal, #2F9E8F)); }
.badge-pending, .batch-status-badge.pending { background: var(--it-gold-300, var(--color-amber-bg, #F1EBDD)); color: #1B2A3D; }
.badge-employee-confirmed, .batch-status-badge.completed { background: var(--it-mint-50, var(--color-teal-bg, #EAF4F2)); color: var(--it-mint-700, var(--color-teal, #2F9E8F)); }
.batch-status-badge { border-radius: var(--radius-sm, 7px); }
.alert-success { background: var(--it-mint-50, var(--color-teal-bg, #EAF4F2)); border-left-color: var(--it-mint-500, var(--color-teal, #2F9E8F)); color: var(--it-mint-700, var(--color-teal, #2F9E8F)); }
.alert-warning { background: var(--it-warning-50, var(--color-amber-bg, #F1EBDD)); border-left-color: var(--it-gold-500, var(--color-amber, #E1A83D)); color: var(--color-amber-text, #B8862E); }
.alert-info { background: var(--it-blue-50, var(--color-paper, #F6F4EF)); border-left-color: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); }
.star.selected { color: var(--it-gold-500, var(--color-amber, #E1A83D)); }

/* ---- Modals ---- */
.message-modal, .welcome-modal, .rating-modal, .cv-preview-modal { background: rgba(27, 42, 61, 0.55); }
.message-modal-content, .welcome-modal-content, .rating-modal-content, .cv-preview-modal-content {
  border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
}
.message-modal-header, .welcome-modal-header, .rating-modal-header, .cv-preview-modal-header {
  background: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); color: #fff; border-bottom: 3px solid var(--it-gold-500, var(--color-amber, #E1A83D));
}
.message-modal-header h2, .welcome-modal-header h2, .rating-modal-header h2, .cv-preview-modal-header h2 { color: #fff; }
.message-modal-close, .welcome-close, .rating-modal-close, .cv-preview-modal-close { color: #fff; border-radius: var(--radius-sm, 7px); }

/* ---- Dropdowns ---- */
.search-results-dropdown, .batch-dropdown { border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }

/* ---- Collapse the sidebar into a top strip on tablets / phones ---- */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; height: 100vh; }
  .sidebar {
    flex: 0 0 auto; width: 100%; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden;
    padding: 0 8px; gap: 2px; border-right: 0; scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-brand { padding: 8px 12px !important; margin: 0 8px 0 0; border-bottom: 0; flex: 0 0 auto; }
  .sidebar-brand img { height: 30px !important; }
  .sidebar-brand div { display: none; }
  .nav-item { margin: 0; padding: 10px 12px; flex: 0 0 auto; white-space: nowrap; font-size: 13px; }
  .nav-item.active::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .sidebar-footer, .sidebar > div:not(.sidebar-brand) { display: none; }
  .main-column { flex: 1 1 auto; min-height: 0; }
  .top-bar { flex: 0 0 56px; padding: 0 16px; }
  .topbar-search { display: none; }
  .content-area { padding: 16px 16px 0; }
  .hero, .dashboard-page .hero { padding: 18px 16px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .nav-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .nav-tab { white-space: nowrap; padding: 12px 12px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-top-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- Finishing touches ---- */
.dashboard-container > .tab-content > h2, .dashboard-container .tab-content > h2 { font-size: 1.1rem; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); }
.sidebar .avatar { background: var(--it-blue-600, var(--color-ink-theme, #2C3E50)); color: #fff; border-radius: var(--radius-sm, 7px); }
.top-bar .avatar { border-radius: var(--radius-sm, 7px); }
.content-area > div > footer { border-radius: 6px 6px 0 0; margin-top: 24px; }
.btn-sm, td .btn, td button { height: auto; min-width: 0; width: auto; padding: 6px 12px; font-size: 12px; margin: 0 4px 0 0; }
@media (max-width: 900px) {
  .nav-tabs { flex-direction: row; }
  .nav-tab { width: auto; flex: 0 0 auto; }
  .sidebar .nav-item { width: auto; }
}
.hero-top { flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; }
.hero-center h2 { margin-bottom: 0 !important; font-size: 1rem !important; color: #C5D4EE; }
.hero-right p { margin: 0; color: #C5D4EE; font-size: 0.9rem; }
.content-area > div:has(> footer) { margin-top: auto; }

/* ---- Account page (eAccount.html) ---- */
.account-container { width: 100%; }
.tab-navigation { display: flex; gap: 4px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); padding: 0 8px; margin-bottom: 20px; overflow-x: auto; }
.tab-btn { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 14px 16px; font-weight: 600; font-size: 0.9rem; color: var(--it-grey-600, var(--color-text-secondary, #475569)); white-space: nowrap; width: auto; margin: 0; }
.tab-btn:hover:not(:disabled) { color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); box-shadow: none; }
.tab-btn.active { color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); border-bottom-color: var(--it-gold-500, var(--color-amber, #E1A83D)); }
.account-section { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md, 10px); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px; }
.account-section > h2 { font-size: 1.15rem; margin-bottom: 16px; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); }
.account-section h3 { font-size: 1rem; margin: 8px 0 12px; color: var(--it-navy-900, var(--color-dark-surface, #1B2A3D)); }
.account-section .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 8px; }
.account-section .form-group { margin-bottom: 12px; }
.section-divider { border: 0; border-top: 1px solid var(--color-border); margin: 20px 0; }
.content-area > .content, .content-area > .dashboard-container, .content-area > .account-container { width: 100%; box-sizing: border-box; }
