/* ─── RAY brand (aligned with RAY OEM Partner Portal) ─── */
:root {
  --sidebar-width: 260px;
  --sidebar-w: 260px;
  --sidebar-bg: #1a0a24;
  --sidebar-hover: #2d1440;
  --brand-primary: #961ccb;
  --brand-primary-dark: #6a0dad;
  --brand-primary-hover: #7b17b5;
  --brand-primary-rgb: 150, 28, 203;
  --brand-accent: #ff9900;
  --brand-accent-rgb: 255, 153, 0;
  --brand-gradient-dark: #1a0a24;
  --brand-gradient-mid: #5b1a8c;
  --sidebar-active: var(--brand-primary);
  --topbar-height: 56px;
  --body-bg: #f1f5f9;
  --surface: #f1f5f9;
  --brand: #961ccb;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --bs-primary: #961ccb;
  --bs-primary-rgb: 150, 28, 203;
  --bs-link-color: #961ccb;
  --bs-link-hover-color: #7b17b5;
}

[data-bs-theme="dark"] {
  --body-bg: #0f172a;
  --surface: #0f172a;
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --brand: #c084fc;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ─── Global ─── */
body.app-body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  min-height: 100vh;
}

#wrapper {
  min-height: 100vh;
}

/* ─── Sidebar (OEM dark brand rail) ─── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  height: 100vh;
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  flex-shrink: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  border-right: none !important;
}

.sidebar-brand a {
  color: #fff;
}

.sidebar-brand .fw-bold {
  color: #fff !important;
  font-size: 0.95rem;
}

.sidebar-brand small {
  color: rgba(255, 255, 255, 0.45) !important;
}

.sidebar-brand-logo {
  max-width: 148px;
  height: auto;
  display: block;
}

.sidebar-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sidebar-section,
.sidebar-section-title {
  padding: 1.1rem 0.75rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.65) !important;
  border-radius: 8px;
  padding: 0.6rem 1rem !important;
  margin-bottom: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link i {
  font-size: 1.05rem;
  opacity: 0.9;
}

.sidebar .nav-link:hover {
  color: #fff !important;
  background: var(--sidebar-hover);
}

.sidebar .nav-link.active {
  color: #fff !important;
  background: var(--sidebar-active);
  box-shadow: 0 2px 8px rgba(150, 28, 203, 0.4);
  font-weight: 600;
}

.sidebar .badge {
  font-size: 0.65rem;
}

.sidebar-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(150, 28, 203, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ─── Page shell ─── */
#page-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-width));
  background: var(--body-bg);
}

.main-content {
  flex: 1;
}

/* ─── Top navbar ─── */
.topbar {
  height: var(--topbar-height);
  z-index: 1020;
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] .topbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: cover;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

/* ─── Stat & chart cards ─── */
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-value,
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Colored metric icons for task stats */
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon.si-open {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}
.stat-icon.si-urgent {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}
.stat-icon.si-high {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
}
.stat-icon.si-overdue {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}
.stat-icon.si-mine {
  background: rgba(150, 28, 203, 0.12);
  color: #961ccb;
}
.stat-icon.si-done {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

[data-bs-theme="dark"] .stat-card {
  background: #1e293b;
  border-color: #334155 !important;
}

[data-bs-theme="dark"] .stat-card .stat-value,
[data-bs-theme="dark"] .stat-value {
  color: #f1f5f9;
}

.chart-card,
.table-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

[data-bs-theme="dark"] .chart-card,
[data-bs-theme="dark"] .table-card {
  background: #1e293b;
  border-color: #334155 !important;
}

.chart-wrap { position: relative; height: 260px; }
.chart-wrap-sm { height: 200px; }

.card {
  border-radius: 12px;
}

/* ─── Tables ─── */
.table > thead {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.table > tbody > tr {
  transition: background 0.15s ease;
}

/* ─── Forms / buttons ─── */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.15);
}

.btn-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline-primary:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

.movement-up { color: #198754; }
.movement-down { color: #dc3545; }
.movement-flat { color: #6c757d; }

.badge-status-published { background: #198754; }
.badge-status-missed, .badge-status-cancelled { background: #dc3545; }
.badge-status-delayed { background: #ffc107; color: #000; }
.badge-status-not_published, .badge-status-planned { background: #6c757d; }
.badge-status-in_progress { background: #0dcaf0; color: #000; }
.badge-status-ready_for_review { background: #6f42c1; }

/* ─── Calendar ─── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-cell {
  min-height: 88px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  font-size: 0.7rem;
  background: var(--bs-body-bg);
}

.calendar-cell.heat-pub { background: rgba(25, 135, 84, 0.15); border-color: #198754; }
.calendar-cell.heat-miss { background: rgba(220, 53, 69, 0.15); border-color: #dc3545; }
.calendar-cell.heat-delay { background: rgba(255, 193, 7, 0.2); border-color: #ffc107; }

/* ─── Task board (OEM deal-pipeline pattern) ─── */
.badge.priority-urgent { background: #b91c1c; color: #fff; }
.badge.priority-high { background: #ea580c; color: #fff; }
.badge.priority-normal { background: var(--brand-primary); color: #fff; }
.badge.priority-low { background: #6b7280; color: #fff; }
.priority-text-urgent { color: #b91c1c; font-weight: 600; }
.priority-text-high { color: #ea580c; font-weight: 600; }
.priority-text-normal { color: var(--brand-primary); }
.priority-text-low { color: #6b7280; }

.task-board {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  min-height: 70vh;
}

.task-col {
  min-width: 260px;
  flex: 1 0 240px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}

[data-bs-theme="dark"] .task-col {
  background: #1e293b;
  border-color: #334155;
}

.task-col-head {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  border-left: 3px solid var(--brand-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .task-col-head {
  background: #1e293b;
  border-bottom-color: #334155;
}

.task-col-body {
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.task-card-item {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.task-card-item:hover {
  border-color: rgba(var(--brand-primary-rgb), 0.45);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.12);
  transform: translateY(-1px);
}

.task-card-item.is-overdue {
  border-color: rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.04);
}

[data-bs-theme="dark"] .task-card-item {
  background: #0f172a;
  border-color: #334155;
}

/* ─── Misc ─── */
.health-bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}

.health-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #dc3545, var(--brand-accent), #198754);
}

.impersonate-bar {
  background: var(--brand-accent);
  color: #1a0a24;
  text-align: center;
  padding: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ─── Auth / login (OEM gradient) ─── */
.auth-page,
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-gradient-dark) 0%, var(--brand-gradient-mid) 55%, var(--brand-primary) 100%);
  padding: 1rem;
}

.auth-card,
.login-card {
  width: 100%;
  max-width: 440px;
  border: 0;
  border-radius: 16px;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-brand-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.notif-dropdown {
  min-width: 300px;
  max-width: 340px;
}

.page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
}

[data-bs-theme="dark"] .page-title {
  color: #f1f5f9;
}

.page-subtitle {
  color: #64748b;
}

.toolbar-actions .btn {
  white-space: nowrap;
}

.view-toggle .btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.filter-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  background: #fff;
}

[data-bs-theme="dark"] .filter-card {
  background: #1e293b;
  border-color: #334155 !important;
}

footer.app-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

[data-bs-theme="dark"] footer.app-footer {
  background: #1e293b;
  border-color: #334155;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    margin-left: 0;
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25);
  }
  #page-content {
    width: 100%;
  }
}

/* Employee-wise task workspace */
.emp-card {
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  border-top: 3px solid #94a3b8 !important;
}
.emp-card.load-ok { border-top-color: #16a34a !important; }
.emp-card.load-busy { border-top-color: #ea580c !important; }
.emp-card.load-overloaded { border-top-color: #b91c1c !important; }

.emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  object-fit: cover;
  flex-shrink: 0;
}
.emp-avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; border-radius: 14px; }
.emp-avatar-pool { background: linear-gradient(135deg, #64748b, #94a3b8); }

.workload-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.workload-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.25s ease;
}
.workload-bar .wl-ok { background: #16a34a; }
.workload-bar .wl-busy { background: #ea580c; }
.workload-bar .wl-overloaded { background: #b91c1c; }

.badge.load-badge-ok { background: #dcfce7; color: #166534; }
.badge.load-badge-busy { background: #ffedd5; color: #9a3412; }
.badge.load-badge-overloaded { background: #fee2e2; color: #991b1b; }

/* ─── Dashboard polish ─── */
.letter-space { letter-spacing: 0.06em; }

.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1a0a24 0%, #5b1a8c 48%, #961ccb 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(150, 28, 203, 0.28);
}

.dash-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
}

.dash-hero-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.dash-hero-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.dash-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  max-width: 40rem;
}

.dash-hero-sub strong { color: #fff; }

.dash-role-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.dash-hero-glow {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.dash-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.dash-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
.dash-hero .btn-light {
  color: #5b1a8c;
  font-weight: 600;
}

.dash-filter-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  background: #fff;
}

.dash-filter-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(150, 28, 203, 0.1);
  color: var(--brand-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.dash-metric {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  position: relative;
}
.dash-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.dash-metric:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
.dash-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.dash-metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
}
.dash-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.dash-tone-purple::before { background: #961ccb; }
.dash-tone-purple .dash-metric-icon { background: rgba(150, 28, 203, 0.12); color: #961ccb; }
.dash-tone-blue::before { background: #2563eb; }
.dash-tone-blue .dash-metric-icon { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.dash-tone-teal::before { background: #0d9488; }
.dash-tone-teal .dash-metric-icon { background: rgba(13, 148, 136, 0.12); color: #0d9488; }
.dash-tone-indigo::before { background: #4f46e5; }
.dash-tone-indigo .dash-metric-icon { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.dash-tone-orange::before { background: #ff9900; }
.dash-tone-orange .dash-metric-icon { background: rgba(255, 153, 0, 0.15); color: #c27800; }
.dash-tone-green::before { background: #16a34a; }
.dash-tone-green .dash-metric-icon { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.dash-tone-rose::before { background: #e11d48; }
.dash-tone-rose .dash-metric-icon { background: rgba(225, 29, 72, 0.12); color: #e11d48; }

.dash-insight {
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dash-insight:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.dash-insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.di-seo { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }
.di-social { background: rgba(255, 153, 0, 0.15); color: #c27800; }
.di-content { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.di-tasks { background: rgba(150, 28, 203, 0.12); color: #961ccb; }
.di-gmb { background: rgba(26, 115, 232, 0.12); color: #1a73e8; }

.dash-insight-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
  margin: 0.15rem 0 0.35rem;
}

.dash-progress {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.dash-progress .progress-bar { border-radius: 999px; }
.bg-social { background: linear-gradient(90deg, #ff9900, #f59e0b) !important; }
.bg-content { background: linear-gradient(90deg, #16a34a, #22c55e) !important; }
.bg-gmb { background: linear-gradient(90deg, #1a73e8, #4285f4) !important; }

.gmb-nav .nav-link {
  font-size: 0.85rem;
  color: #475569;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.gmb-nav .nav-link.active {
  background: #1a73e8;
  color: #fff;
}
.gmb-nav .nav-link:hover:not(.active) {
  background: rgba(26, 115, 232, 0.08);
  color: #1a73e8;
}

.badge-status-draft, .badge-status-scheduled { background: #0d6efd; }
.badge-status-expired { background: #adb5bd; color: #000; }
.badge-status-needs_reply, .badge-status-new { background: #e37400; }
.badge-status-replied, .badge-status-answered { background: #198754; }
.badge-status-unanswered, .badge-status-flagged { background: #dc3545; }
.badge-status-archived, .badge-status-inactive { background: #6c757d; }

.dash-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-weight: 600;
  font-size: 0.72rem;
}
.dash-pill.danger { background: #fee2e2; color: #991b1b; }
.dash-pill.warn { background: #ffedd5; color: #9a3412; }

.dash-task-list li { margin-bottom: 0.45rem; }
.dash-task-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  transition: background 0.15s ease;
}
.dash-task-item:hover { background: #f1e7fa; color: inherit; }
.dash-task-item.is-overdue { background: #fef2f2; }
.dash-task-title { flex: 1; min-width: 0; font-size: 0.85rem; font-weight: 500; }
.dash-task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.priority-dot-urgent { background: #b91c1c; }
.priority-dot-high { background: #ea580c; }
.priority-dot-normal { background: #961ccb; }
.priority-dot-low { background: #94a3b8; }

.dash-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
  border-bottom-width: 1px;
}
.dash-type-badge {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.dash-activity .list-group-item {
  border-color: #f1f5f9;
  padding: 0.85rem 1rem;
}
.dash-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(150, 28, 203, 0.1);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-empty {
  border: 1px dashed #cbd5e1 !important;
  border-radius: 16px;
  background: #fff;
}
.dash-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(150, 28, 203, 0.1);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

[data-bs-theme="dark"] .dash-filter-card,
[data-bs-theme="dark"] .dash-metric,
[data-bs-theme="dark"] .dash-insight,
[data-bs-theme="dark"] .dash-empty {
  background: #1e293b;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] .dash-metric-value,
[data-bs-theme="dark"] .dash-insight-value {
  color: #f8fafc;
}
[data-bs-theme="dark"] .dash-task-item {
  background: #0f172a;
}
[data-bs-theme="dark"] .dash-task-item:hover {
  background: rgba(150, 28, 203, 0.2);
}

@media (max-width: 767.98px) {
  .dash-hero-inner { padding: 1.15rem 1.2rem; }
  .dash-insight-value { font-size: 1.65rem; }
}
