/* ============================================
   DASHBOARD - Stats, Analytics, Charts, KPIs
   ============================================ */

/* Stats Container */
.stats-container h2 {
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.stats-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

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

.date-range {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

/* Stat Card */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.stat-card > h3 + * {
  flex: 1;
  min-height: 0;
}

.stat-card > h3 + .chart-container {
  flex: 0 0 250px;
  min-height: 250px;
}

.stat-card.wide {
  grid-column: span 2;
}

.stat-card.funnel-card {
  grid-row: span 2;
}

.stat-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.stat-row.highlight {
  background: var(--bg);
  margin: 10px -20px -20px;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat-row.highlight strong {
  color: var(--primary);
  font-size: 18px;
}

/* Urgent Card (Overdue WVL) */
.stat-card.urgent {
  border-left: 4px solid var(--danger);
}

.stat-card.urgent h3 {
  color: var(--danger);
}

/* Dashboard Section Container */
.dashboard-section {
  margin-bottom: 30px;
}

.dashboard-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}

/* Funnel Filter */
.funnel-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.funnel-filter label {
  font-size: 13px;
  color: var(--text-secondary);
}

.funnel-filter select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface);
  min-width: 150px;
}

/* Multi-select dropdown */
.multi-select {
  position: relative;
  min-width: 150px;
}

.multi-select-display {
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-card);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  color: var(--text);
}

.multi-select-display::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top: 5px solid var(--text-light);
}

.multi-select.open .multi-select-display {
  border-color: var(--primary);
}

.multi-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 4px 0;
}

.multi-select.open .multi-select-dropdown {
  display: block;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.multi-select-option:hover {
  background: var(--bg-subtle);
}

.multi-select-option input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.multi-select-option.select-all {
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
}

/* Funnel Row (side by side) */
.funnel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Funnel Chart */
.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.funnel-group-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 2px;
}

.funnel-group-label:first-child {
  margin-top: 0;
}

.funnel-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.1s;
}

.funnel-stage:not(.funnel-total):hover {
  transform: translateX(4px);
}

.funnel-stage.funnel-dim {
  opacity: 0.4;
}

.funnel-stage.funnel-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.funnel-label {
  width: 70px;
  font-size: 12px;
  font-weight: 500;
}

.funnel-total .funnel-label {
  font-weight: 700;
}

.funnel-bar {
  flex: 1;
  height: 22px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.funnel-fill {
  height: 100%;
  border-radius: var(--radius);
  transition: width 0.3s;
}

.funnel-count {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
}

.funnel-pct {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

.funnel-dropoff {
  font-weight: 500;
  color: var(--danger);
  font-size: 10px;
  margin-left: 4px;
}

.funnel-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.funnel-bar-wrapper .funnel-bar {
  flex: none;
}

/* Subtle inline time metric */
.funnel-time-metric {
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.funnel-time-metric[data-theme="healthy"] {
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.funnel-time-metric[data-theme="attention"] {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.funnel-time-metric[data-theme="critical"] {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.funnel-total .funnel-count {
  font-weight: 700;
  color: white;
}

/* Professional Sales Funnel */
.pro-funnel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.pro-funnel-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.pro-funnel-row.funnel-dim {
  opacity: 0.5;
}

.pro-funnel-label {
  width: 80px;
  min-width: 80px;
  text-align: right;
  font-weight: 600;
  font-size: 11px;
  color: #64748b;
}

.pro-funnel-bar-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.pro-funnel-bar {
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pro-funnel-bar:hover {
  transform: scaleX(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pro-funnel-bar.pro-funnel-total {
  cursor: default;
}

.pro-funnel-bar.pro-funnel-total:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pro-funnel-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
  min-width: 120px;
}

.pro-funnel-count {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.pro-funnel-pct {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}

.pro-funnel-dropoff {
  font-weight: 600;
  color: #dc2626;
  font-size: 10px;
  background: #fee2e2;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding-top: 20px;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 40px;
  background: var(--primary);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: height 0.3s;
}

.bar-label {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 5px;
  text-align: center;
}

.bar-value {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Conversion Rate */
.conversion-rate {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.conversion-rate strong {
  color: var(--success);
  font-size: 18px;
}

/* Task Management Grid */
.task-management-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.task-card-header h3 {
  margin: 0;
  font-size: 13px;
}

.task-filter-select {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.task-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.task-filter-select:hover {
  border-color: var(--primary-muted);
}

.task-filters-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-management-grid .stat-card {
  padding: 12px;
}

.task-management-grid .task-list {
  max-height: 200px;
  overflow-y: auto;
}

/* Responsive: 2 columns on smaller screens */
@media (max-width: 1200px) {
  .task-management-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .task-management-grid {
    grid-template-columns: 1fr;
  }
}

/* Task Management Compact Grid (2 cards only) */
.task-management-compact .task-management-grid-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .task-management-compact .task-management-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Task List Styling */
.task-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.task-list li {
  padding: 8px 10px;
  background: var(--bg);
  margin-bottom: 4px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  transition: background 0.15s;
}

.task-list li:hover {
  background: var(--border);
}

.task-list li:last-child {
  margin-bottom: 0;
}

.task-list .task-name {
  font-weight: 500;
  flex: 1;
}

.task-list .task-meta {
  color: var(--text-light);
  font-size: 11px;
  margin-left: 10px;
}

/* Overdue Appointment Styling */
.task-list li.overdue {
  background: #fef2f2;
  border-left: 3px solid var(--danger);
}

.task-list li.overdue:hover {
  background: #fee2e2;
}

.task-list li.overdue .task-meta {
  color: var(--danger);
  font-weight: 600;
}

.task-list .task-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.task-list .task-note {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Task List Resize Handle */
.task-list-resize-handle {
  height: 8px;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background 0.15s;
}

.task-list-resize-handle::after {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}

.task-list-resize-handle:hover,
.task-list-resize-handle.dragging {
  background: var(--bg);
}

.task-list-resize-handle:hover::after,
.task-list-resize-handle.dragging::after {
  background: var(--primary);
}

/* Appointment Stats Grid */
.appt-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Appointment Breakdown Container */
.appt-breakdown-container {
  display: block;
}

.appt-stat-item {
  text-align: center;
  padding: 12px 10px;
  background: var(--bg);
  border-radius: var(--radius);
}

.appt-stat-item .value {
  font-size: 24px;
  font-weight: 600;
  display: block;
}

.appt-stat-item .label {
  font-size: 11px;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.appt-stat-item.success .value {
  color: var(--success);
}

.appt-stat-item.danger .value {
  color: var(--danger);
}

.appt-stat-item.highlight {
  background: var(--primary);
  color: white;
}

.appt-stat-item.highlight .value {
  color: white;
}

.appt-stat-item.highlight .label {
  color: rgba(255,255,255,0.8);
}

/* Show Rate large display */
.show-rate-display {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.show-rate-display .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.show-rate-display .label {
  font-size: 12px;
  color: var(--text-light);
}

/* Show Rate Badge */
.show-rate-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--primary);
  border-radius: var(--radius);
  color: white;
}

.show-rate-badge .rate-value {
  font-size: 20px;
  font-weight: 700;
}

.show-rate-badge .rate-label {
  font-size: 11px;
  opacity: 0.9;
}

/* Concepts Dashboard */
.concepts-breakdown-container {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 300px;
}

.concept-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.concept-section:last-child {
  margin-bottom: 0;
}

.concept-section .concepts-breakdown-table {
  flex: 1;
  overflow-y: auto;
}

.concept-section h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* EH Summary Grid */
.eh-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.eh-row:last-child {
  border-bottom: none;
}

.eh-row .eh-label {
  color: var(--text-light);
  font-size: 13px;
}

.eh-row .eh-value {
  font-weight: 600;
  font-size: 16px;
}

.eh-row.cancelled .eh-value {
  color: var(--danger);
}

.eh-row.net {
  background: var(--bg);
  margin: 10px -20px -20px;
  padding: 15px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}

.eh-row.net .eh-label {
  font-weight: 600;
  color: var(--text);
}

.eh-row.net .eh-value {
  font-size: 20px;
  color: var(--success);
}

/* Top Clients List */
.top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: top-counter;
}

.top-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  counter-increment: top-counter;
}

.top-list li:hover {
  background: var(--bg);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.top-list li:last-child {
  border-bottom: none;
}

.top-list li::before {
  content: counter(top-counter) ".";
  width: 24px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 12px;
}

.top-list .client-name {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
}

.top-list .client-eh {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  font-size: 13px;
}

.empty-state-icon {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 250px;
  min-height: 250px;
  flex-shrink: 0;
}

/* Week/Month Period Badge */
.period-badge {
  font-size: 10px;
  color: var(--text-light);
  font-weight: normal;
  display: block;
  margin-top: 2px;
}

/* Analytics Controls */
.analytics-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.berater-subtabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px 0;
  flex-wrap: wrap;
}

.berater-subtabs:empty {
  display: none;
}

.berater-subtabs .filter-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.filter-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}

.filter-btn:hover {
  background: var(--border);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-spacer {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
}

.date-range-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-range-picker span {
  color: var(--text-light);
  font-size: 12px;
}

.date-input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  background: var(--bg-card);
}

.date-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Shared Analytics Controls */
.analytics-shared-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

/* Activity Analytics Grid */
.activity-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.activity-analytics-grid .stat-card {
  margin: 0;
  padding: 15px;
}

.activity-analytics-grid .stat-card h3 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Card header row (title + inline controls) */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.card-header-row h3 {
  margin-bottom: 0 !important;
}

.card-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-analytics-grid .analytics-table {
  font-size: 11px;
}

.activity-analytics-grid .analytics-table th,
.activity-analytics-grid .analytics-table td {
  padding: 5px 6px;
}

.activity-analytics-grid .analytics-table th:first-child,
.activity-analytics-grid .analytics-table td:first-child,
.activity-analytics-grid .analytics-table th:last-child,
.activity-analytics-grid .analytics-table td:last-child {
  background: var(--bg-subtle);
  font-weight: 600;
}

.activity-analytics-grid .analytics-summary {
  padding: 10px;
  gap: 6px;
  margin-top: 10px;
}

.activity-analytics-grid .summary-item .value {
  font-size: 16px;
}

.activity-analytics-grid .summary-item .label {
  font-size: 9px;
}

.activity-analytics-grid .analytics-content {
  min-height: auto;
}

.activity-analytics-grid .analytics-date-range {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

/* Analytics KPI Bar */
.analytics-kpi-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.analytics-kpi-bar .kpi-chip {
  flex: 1;
  min-width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  transition: box-shadow var(--transition-fast);
}

.analytics-kpi-bar .kpi-chip:hover {
  box-shadow: var(--shadow-sm);
}

.analytics-kpi-bar .kpi-chip .kpi-chip-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.analytics-kpi-bar .kpi-chip .kpi-chip-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  margin-top: 2px;
}

.analytics-kpi-bar .kpi-chip.highlight {
  border-color: var(--primary-muted);
  background: var(--primary-subtle);
}

.analytics-kpi-bar .kpi-chip.highlight .kpi-chip-value {
  color: var(--primary);
}

/* View Selector */
.view-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.view-selector label {
  font-size: 10px;
  color: var(--text-light);
  white-space: nowrap;
}

.view-selector select {
  padding: 3px 5px;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

.view-selector select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Responsive: 4 → 2 → 1 */
@media (max-width: 1600px) {
  .activity-analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .activity-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .stat-card.wide {
    grid-column: span 1;
  }
}

.analytics-content {
  min-height: 200px;
}

.analytics-date-range {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}


/* Pipeline Calculator */
#pipelineRatesBar {
  margin-bottom: 20px;
}

#pipelineCalculatorCard {
  margin-bottom: 24px;
}

.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 12px 4px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 70px;
  flex: 1;
  padding: 10px 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
}

.pipeline-step-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.pipeline-step-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 2px;
}

.pipeline-step.highlight {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-muted);
}

.pipeline-step.highlight .pipeline-step-value {
  color: var(--primary);
}

.pipeline-step.highlight-green {
  box-shadow: 0 0 0 2px var(--success-muted);
}

.pipeline-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 4px;
  gap: 1px;
}

.pipeline-arrow-icon {
  font-size: 16px;
  color: var(--text-muted);
}

.pipeline-arrow-rate {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
}

/* WVL List */
.wvl-section {
  margin-bottom: 15px;
}

.wvl-section h4 {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.wvl-list {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
}

.wvl-list li {
  padding: 6px 8px;
  background: var(--bg);
  margin-bottom: 4px;
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
}

.wvl-list li:hover {
  background: var(--border);
}

/* Overdue WVL warning */
.wvl-overdue {
  color: var(--danger) !important;
  font-weight: 600;
}

.wvl-overdue-cell {
  background-color: #fef2f2;
}

.wvl-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* WVL Display in Lead Detail */
.wvl-display {
  margin-top: 10px;
}

.wvl-display-item {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
}

.wvl-display-item.wvl-overdue-box {
  border-left-color: var(--danger);
  background: #fef2f2;
}

.wvl-display-item.wvl-soon-box {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.wvl-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wvl-label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.wvl-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* WVL Log */
.wvl-log {
  margin-top: 10px;
}

.wvl-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

.wvl-history-header:hover {
  background: var(--border);
}

.wvl-history-list {
  margin-top: 6px;
}

/* ============================================
   YELLOW-PERSONALITY ANALYTICS REDESIGN
   Playful, Visual, Sales-Oriented Dashboard
   ============================================ */

/* ---- Keyframe Animations ---- */
@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes progressFill {
  from {
    width: 0%;
  }
}

@keyframes ringFill {
  from {
    --progress: 0;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- Action Center Section ---- */
.needs-attention-section {
  margin-bottom: 24px;
}

.needs-attention-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid #ef4444;
}

.needs-attention-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.needs-attention-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.needs-attention-total {
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.needs-attention-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .needs-attention-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact cards for Needs Attention */
.needs-attention-section {
  display: flex;
  flex-direction: column;
}

.needs-attention-section .needs-attention-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.needs-attention-section .needs-attention-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.needs-attention-section .needs-attention-total-count {
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.attention-column {
  background: white;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #dc2626;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

.attention-column:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left-color: #b91c1c;
}

.attention-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.attention-column-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.attention-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
}

.attention-count.wvl,
.attention-count.stuck,
.attention-count.concepts,
.attention-count.nocontact { background: #dc2626; }

/* Task management card counters */
.task-count {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
  vertical-align: middle;
}

.task-count.appt,
.task-count.wvl { background: #16a34a; }

.attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 180px;
  overflow-y: auto;
}

.attention-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  margin-bottom: 4px;
}

.attention-list li:hover {
  background: #f9fafb;
}

.attention-item-name {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.attention-item-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 8px;
  white-space: nowrap;
}

.attention-item-meta.overdue {
  color: #dc2626;
}

.stage-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

.attention-list .empty-state {
  color: #10b981;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 20px 12px;
}

/* Keep old classes for backward compatibility */
.action-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.action-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-item-meta.overdue {
  color: #dc2626;
  font-weight: 600;
}

/* ---- Motivational Badges ---- */
.motivational-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  animation: bounce 2s ease-in-out infinite;
}

.motivational-badge.best-week {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.motivational-badge.best-week::before {
  content: '🏆';
}

.motivational-badge.on-fire {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.motivational-badge.on-fire::before {
  content: '🔥';
}

.motivational-badge.goal-reached {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #047857;
}

.motivational-badge.goal-reached::before {
  content: '🎯';
}

.motivational-badge.streak {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #4338ca;
}

.motivational-badge.streak::before {
  content: '⚡';
}

/* ---- Enhanced Table Styles ---- */
.analytics-table-enhanced {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.analytics-table-enhanced th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.analytics-table-enhanced td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.analytics-table-enhanced tbody tr:hover {
  background: #f8fafc;
}

.analytics-table-enhanced .total-row {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  font-weight: 600;
}

.analytics-table-enhanced .total-row td {
  border-bottom: none;
  padding: 12px;
}

/* Color-coded value cells */
.value-cell {
  font-weight: 600;
}

.value-cell.excellent {
  color: #15803d;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 4px;
}

.value-cell.good {
  color: #166534;
}

.value-cell.warning {
  color: #b45309;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 4px;
}

.value-cell.critical {
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Inline progress bars in tables */
.inline-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.inline-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.inline-progress-fill.green {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.inline-progress-fill.amber {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.inline-progress-fill.red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.inline-progress-value {
  font-size: 11px;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* Change indicators */
.change-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
}

.change-indicator.up {
  color: #15803d;
}

.change-indicator.down {
  color: #dc2626;
}

/* Mini status badges in tables */
.status-badge-mini {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge-mini.excellent {
  background: #dcfce7;
  color: #15803d;
}

.status-badge-mini.good {
  background: #f0fdf4;
  color: #166534;
}

.status-badge-mini.warning {
  background: #fef3c7;
  color: #b45309;
}

.status-badge-mini.critical {
  background: #fee2e2;
  color: #dc2626;
}

/* ---- Revenue Celebration Section ---- */
.revenue-celebration {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  border: 2px solid #10b981;
  position: relative;
  overflow: hidden;
}

.revenue-celebration.has-achievement {
  animation: pulse 2s infinite;
}

.revenue-celebration::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  pointer-events: none;
}

.revenue-big-number {
  font-size: 48px;
  font-weight: 800;
  color: #047857;
  line-height: 1;
  margin-bottom: 8px;
}

.revenue-big-number span {
  font-size: 24px;
  color: #10b981;
}

.revenue-label {
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 16px;
}

.revenue-goal-progress {
  max-width: 400px;
  margin: 0 auto;
}

.revenue-goal-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.revenue-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.revenue-goal-text {
  font-size: 12px;
  color: #065f46;
}

.revenue-top-wins {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.revenue-win-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.revenue-win-chip .emoji {
  font-size: 14px;
}

/* ---- Celebration Sparkles ---- */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 25%; left: 20%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 0.9s; }

/* ---- Empty State Enhancements ---- */
.empty-state-friendly {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-light);
}

.empty-state-friendly .emoji {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.empty-state-friendly .message {
  font-size: 14px;
  margin-bottom: 8px;
}

.empty-state-friendly .hint {
  font-size: 12px;
  color: #9ca3af;
}

/* ---- Section Headers with Badges ---- */
.section-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.section-header-enhanced h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  border: none;
  padding: 0;
}

.section-header-enhanced .section-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ---- Quick Stats Row ---- */
.quick-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.quick-stat-icon {
  font-size: 16px;
}

.quick-stat-value {
  font-weight: 700;
  color: var(--primary);
}

.quick-stat-label {
  color: var(--text-light);
}

/* ---- Period Comparison Cards ---- */
.period-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.period-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.period-card.current {
  border: 2px solid var(--primary);
}

.period-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.period-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.period-card-change {
  font-size: 13px;
  font-weight: 600;
}

.period-card-change.positive {
  color: #15803d;
}

.period-card-change.negative {
  color: #dc2626;
}

/* ============================================
   TARGETS SETTINGS
   ============================================ */

.targets-year-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.targets-year-selector label {
  font-weight: 600;
  color: var(--text);
}

.targets-year-selector select {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
}

.targets-grid-container {
  margin-bottom: 20px;
  overflow-x: auto;
}

.targets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.targets-table th,
.targets-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.targets-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-light);
}

.targets-table th:not(:first-child),
.targets-table td:not(:first-child) {
  text-align: center;
}

.targets-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.targets-table input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  transition: border-color 0.2s;
}

.targets-table input[type="number"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.targets-total-row {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.targets-total-row td {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  border-top: 2px solid var(--primary);
}

.targets-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Current month highlight in targets table */
.targets-table tr.current-month {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.targets-table tr.current-month td:first-child {
  position: relative;
  padding-left: 20px;
}

.targets-table tr.current-month td:first-child::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ============================================
   SALES-FOCUSED HERO CARDS - Bold & Motivating
   Designed for yellow/I personalities
   ============================================ */

/* Keyframes for celebrations */
@keyframes celebratePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.6);
  }
}

@keyframes confettiBurst {
  0% { opacity: 1; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-20px) rotate(180deg); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.6); }
}

@keyframes numberPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes ringProgress {
  from { stroke-dashoffset: 251.2; }
}

/* Dashboard row for side-by-side sections */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

/* Base Hero Card - Sales Style */
.hero-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  animation: heroEnter 0.6s ease-out both;
}

/* Staggered entrance animation */
.hero-card:nth-child(1) { animation-delay: 0s; }
.hero-card:nth-child(2) { animation-delay: 0.1s; }
.hero-card:nth-child(3) { animation-delay: 0.2s; }
.hero-card:nth-child(4) { animation-delay: 0.3s; }

.hero-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Performance-based card styles */
.hero-card.status-crushing {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
}

/* Celebration pulse effect via pseudo-element so it doesn't conflict with entrance */
.hero-card.status-crushing::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid #10b981;
  animation: celebratePulse 2s ease-in-out infinite;
  pointer-events: none;
}

.hero-card.status-winning {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
}

.hero-card.status-pushing {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

.hero-card.status-grinding {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #ef4444;
}

.hero-card.status-new {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: var(--border);
}

/* Card Layout - Centered focus */
.hero-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Radial Progress Gauge */
.hero-gauge {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.hero-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-gauge-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 8;
}

.hero-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation: ringProgress 1.5s ease-out;
}

/* Gradient strokes are applied inline by JavaScript - no CSS override needed */

.gb-pipeline-note {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: inline-block;
}

.gb-pipeline-note.on-track {
  background: #f0fdf4;
  color: #15803d;
}

.gb-pipeline-note.needs-more {
  background: #fef3c7;
  color: #b45309;
}

/* TTV caller breakdown note */
.ttv-caller-note {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: inline-block;
  background: #f0f9ff;
  color: #0369a1;
}

/* Big Number in Center of Gauge */
.hero-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-gauge-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

.hero-gauge-percent {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  margin-top: 2px;
}

/* Card Title */
.hero-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Target Info */
.hero-card-target {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-card-target strong {
  font-weight: 700;
  color: var(--text);
}

/* Berater target breakdown (org view) */
.hero-berater-targets {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
}
.hero-berater-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2px;
  margin-bottom: 2px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
}
.hero-berater-line {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: var(--text-secondary);
}
.hero-berater-line span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* Motivational Message - THE KEY ELEMENT */
.hero-card-message {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-card-message.crushing {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  animation: glowPulse 2s ease-in-out infinite;
}

.hero-card-message.winning {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.hero-card-message.pushing {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.hero-card-message.grinding {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.hero-card-message.new {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

/* Achievement Badge - Shows when target hit */
.hero-achievement {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  animation: numberPop 0.5s ease-out;
}

/* Streak indicator */
.hero-streak {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card-specific accent colors */
.hero-card.eh-month-card .hero-gauge-value { color: #059669; }
.hero-card.eh-year-card .hero-gauge-value { color: #047857; }
.hero-card.gb-card .hero-gauge-value { color: var(--text); }
.hero-card.ttv-card .hero-gauge-value { color: #0284c7; }

/* Decorative background shapes */
.hero-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-card.eh-month-card::before { background: radial-gradient(circle, #10b981 0%, transparent 70%); }
.hero-card.eh-year-card::before { background: radial-gradient(circle, #059669 0%, transparent 70%); }
.hero-card.gb-card::before { background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); }
.hero-card.ttv-card::before { background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); }

/* Confetti particles for celebrations */
.hero-confetti {
  position: absolute;
  pointer-events: none;
}

.hero-confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: confettiBurst 1s ease-out forwards;
}

/* Quick Stats Row under gauge */
.hero-quick-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  justify-content: center;
}

.hero-quick-stat {
  text-align: center;
}

.hero-quick-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.hero-quick-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   REPORTS TAB - Monthly Line Charts
   ============================================ */

.reports-year-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.reports-year-selector label {
  font-weight: 600;
  color: var(--text);
}

.reports-year-selector select {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
}

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

@media (max-width: 900px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
}

.report-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.report-card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.report-date-by {
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-date-by label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
}

.report-date-by select {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.report-date-by select:focus {
  outline: none;
  border-color: var(--primary);
}

.report-chart-container {
  position: relative;
  height: 320px;
}

/* SVG Gradients (will be added via JS) */
.hero-gradients {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
