.view-header {
  margin-bottom: 24px;
}

.view-header h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 4px;
}

.loading-state, .error-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: var(--v1-text-muted);
}

.error-state {
  color: var(--hc-safety);
}

/* Status Glow Pills */
.pill-done {
  background: rgba(52, 211, 153, 0.15) !important;
  color: #34d399 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: var(--glow-green) !important;
}

.pill-blocked {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: var(--glow-orange) !important;
}

.pill-critical {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(248, 113, 113, 0.4) !important;
  box-shadow: var(--glow-red) !important;
}

.pill-progress, .pill-high {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  box-shadow: var(--glow-orange) !important;
}

/* Detail Fly-out & Side Panel */
.detail-flyout {
  position: fixed;
  top: 56px;
  right: -600px;
  width: 600px;
  height: calc(100vh - 56px);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  z-index: 150;
  transition: right 0.3s ease-out;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--v1-border);
}

.dashboard-detail .detail-flyout {
  position: static;
  width: 100%;
  height: 100%;
  right: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  border-left: none;
}

.detail-flyout.open {
  right: 0;
}

.detail-flyout-header {
  padding: 24px;
  border-bottom: 1px solid var(--v1-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.detail-flyout-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.detail-flyout-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--v1-border);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form refinement */
.flyout-field {
  margin-bottom: 20px;
}

.flyout-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--v1-text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flyout-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--v1-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.flyout-input:focus {
  outline: none;
  border-color: var(--v1-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Reports / Portfolio Multi-tab */
.reports-nav {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--v1-border);
}

.report-nav-item {
  padding: 10px 0;
  cursor: pointer;
  color: var(--v1-text-muted);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.report-nav-item:hover {
  color: #fff;
}

.report-nav-item.active {
  color: #39FF14; /* Neon Green */
  border-bottom-color: #39FF14;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.chart-canvas-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* RAID Card Wall */
.raid-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 24px;
}

.raid-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

/* Kanban / Storyboard */
.kanban-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  height: calc(100vh - 200px);
}

.kanban-column {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--v1-border);
  border-radius: var(--radius-lg);
  min-width: 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 12px 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--v1-text-muted);
  text-transform: uppercase;
}

.kanban-items {
  flex: 1;
  overflow-y: auto;
}

/* Bulk Operations */
.bulk-toolbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}
.bulk-toolbar.visible { display: flex; }
.bulk-toolbar-count { font-size: 12px; font-weight: 700; color: var(--v1-accent); }
.bulk-toggle-btn { font-size: 10px; cursor: pointer; }
.bulk-select { width: 160px; font-size: 11px; padding: 4px 8px; }
.bulk-apply-btn { background: var(--v1-accent); color: #000; border: none; cursor: pointer; font-weight: 700; }
.bulk-clear-btn { background: rgba(255,255,255,0.05); color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.bulk-checkbox { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; accent-color: var(--v1-accent); cursor: pointer; z-index: 5; }
.kanban-card.bulk-selected { border-color: var(--v1-accent); box-shadow: 0 0 0 1px var(--v1-accent), var(--glass-shadow); }

.kanban-card {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--v1-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--glass-shadow);
  transition: all 0.2s ease;
  cursor: grab;
}

.kanban-card:hover, .kanban-card:focus {
  transform: translateY(-4px);
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--v1-accent);
  outline: none;
}
.kanban-card:focus {
  box-shadow: 0 0 0 2px var(--v1-accent), var(--glass-shadow);
}

.kanban-card.item-done {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.05), 0 0 12px rgba(57, 255, 20, 0.15);
}
.kanban-card.item-done .kanban-card-title {
  font-size: 0.82rem;
}
.kanban-card.item-done .kanban-card-top span:first-child {
  font-size: 0.72rem;
}

.kanban-card.story-blocked {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.05), var(--glow-orange);
}

.kanban-card.dragging {
  opacity: 0.4;
}

.kanban-column.drag-over {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--v1-accent);
}

.kanban-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Nested Tasks */
.nested-tasks {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nested-task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #cbd5e1;
  transition: background 0.2s;
}

.nested-task-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.task-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}
.task-status-dot.status-done { background: #39FF14; box-shadow: 0 0 8px rgba(57, 255, 20, 0.5); }
.task-status-dot.status-blocked { background: #fbbf24; box-shadow: var(--glow-orange); }
.task-status-dot.status-in-progress { background: #fbbf24; box-shadow: var(--glow-orange); }

/* Reports */
.report-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

/* Resource Heatmap */
.heatmap-cell {
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.load-low { background: rgba(52, 211, 153, 0.1); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.2); }
.load-medium { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }
.load-high { background: rgba(248, 113, 113, 0.1); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.2); box-shadow: var(--glow-red); }

/* Dependency Ripple */
@keyframes ripplePulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.ripple-warning {
  border: 2px solid #f59e0b !important;
  animation: ripplePulse 2s infinite;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.link-item:hover { background: rgba(255,255,255,0.1); }

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.priority-critical { background: #f87171; box-shadow: var(--glow-red); }
.priority-high { background: #fbbf24; box-shadow: var(--glow-orange); }
.priority-medium { background: var(--hc-workflow); }
.priority-low { background: #34d399; box-shadow: var(--glow-green); }

/* Timeline / Gantt Styles */
.timeline-container {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: auto;
  position: relative;
  height: calc(100vh - 220px);
}

.timeline-header {
  display: flex;
  position: sticky;
  top: 0;
  background: #020617; /* Solid Dark to prevent overlap ghosting */
  z-index: 30; /* Higher than row labels */
  border-bottom: 1px solid var(--v1-border);
}

.timeline-date-marker {
  flex-shrink: 0;
  width: 100px;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--v1-text-muted);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 48px;
  align-items: center;
}

.timeline-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-label {
  position: sticky;
  left: 0;
  background: #020617; /* Solid Dark */
  width: 350px; /* Widened */
  min-width: 350px;
  padding: 0 16px;
  z-index: 20;
  font-size: 0.8rem; /* Slightly smaller for better fit */
  font-weight: 600;
  white-space: normal; /* Allow wrapping */
  line-height: 1.3;
  border-right: 1px solid var(--v1-border);
  height: 100%;
  display: flex;
  align-items: center;
}

.timeline-track {
  flex: 1;
  position: relative;
  height: 100%;
  min-width: 3000px; /* Large width for horizontal scroll */
}

.timeline-bar {
  position: absolute;
  height: 12px;
  border-radius: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--hc-workflow);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: transform 0.1s;
}

.timeline-bar:hover {
  transform: translateY(-50%) scaleY(1.3);
  filter: brightness(1.2);
}

.timeline-bar.project { background: var(--v1-accent); box-shadow: 0 0 12px rgba(57, 255, 20, 0.3); }
.timeline-bar.story { background: #818cf8; }
.timeline-bar.task { background: #64748b; height: 6px; }
.timeline-bar-done { background: #39FF14 !important; box-shadow: 0 0 14px rgba(57, 255, 20, 0.4) !important; }
.timeline-row-done .timeline-label { color: #39FF14; }

.timeline-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
  z-index: 15;
  pointer-events: none;
}
.timeline-today-line::before {
  content: 'TODAY';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 900;
  color: #f43f5e;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Daily Calendar */
.daily-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--v1-border);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.calendar-day.today {
  border-color: var(--v1-accent);
  background: rgba(57, 255, 20, 0.05);
}

.day-header {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--v1-text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.calendar-tasks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.calendar-task-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.calendar-task-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

/* Phase Progress Bubbles */
.phase-step-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.phase-bubble {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.phase-bubble.active {
  background: var(--hc-workflow);
  box-shadow: 0 0 10px var(--hc-workflow);
  border-color: #fff;
}

.phase-bubble.done {
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  border-color: #fff;
}

.phase-bubble.blocked {
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  border-color: #fff;
}

.phase-bubble:hover::after {
  content: attr(data-phase);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 100;
}

/* ===========================
   Extracted Inline Styles
   =========================== */

/* -- Layout Grids -- */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-2col-tight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* -- Section Dividers -- */
.detail-section-divider {
  margin-top: 32px;
  border-top: 1px solid var(--v1-border);
  padding-top: 24px;
}

/* -- Section Headings -- */
.section-heading {
  margin-bottom: 16px;
  color: #fff;
}

/* -- Flex Utilities -- */
.flex-col-gap-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flex-col-gap-10 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.flex-row-between {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.flex-grow {
  flex: 1;
}

.margin-right-auto {
  margin-right: auto;
}

/* -- Card Backgrounds -- */
.bg-subtle {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
}

.bg-dark {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
}

/* -- Micro Labels -- */
.micro-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.micro-label-light {
  font-size: 10px;
  font-weight: bold;
  color: var(--v1-text-muted);
  text-transform: uppercase;
}

.micro-label-accent {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -- Loading / Placeholder States -- */
.loading-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--v1-text-muted);
}

.loading-dots-lg {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* -- DetailFlyout: Financial Intelligence -- */
.financial-section {
  background: rgba(57, 255, 20, 0.03);
  border: 1px solid rgba(57, 255, 20, 0.15);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.financial-section-title {
  font-size: 10px;
  font-weight: 900;
  color: #39FF14;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.financial-label {
  color: #39FF14;
  opacity: 0.8;
}

.financial-input-green {
  border-color: rgba(57, 255, 20, 0.2);
}

.financial-input-red {
  border-color: rgba(244, 63, 94, 0.3);
}

.financial-label-red {
  color: #f43f5e;
}

.financial-label-orange {
  color: #fb923c;
}

.flyout-field-no-mb {
  margin-bottom: 0;
}

.denial-range-input {
  padding: 0;
  background: transparent;
  height: 20px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--v1-text-muted);
}

/* -- DetailFlyout: ML Prediction -- */
.ml-prediction-box {
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.ml-prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ml-prediction-score {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.ml-prediction-factor {
  font-size: 11px;
  color: var(--v1-text-muted);
}

/* -- DetailFlyout: Comment Section -- */
.comment-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
}

.comment-author {
  font-size: 0.8rem;
  color: var(--v1-accent);
}

.comment-date {
  font-size: 0.7rem;
}

.comment-body {
  font-size: 0.85rem;
  margin: 0;
  color: #cbd5e1;
}

.comment-composer {
  margin-bottom: 24px;
}

.comment-textarea {
  height: 80px;
  margin-bottom: 8px;
}

.pill-action {
  border: none;
  cursor: pointer;
}

.pill-action-primary {
  background: var(--hc-workflow);
  color: white;
  border: none;
  cursor: pointer;
}

.pill-action-accent {
  background: var(--v1-accent);
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
}

/* -- DetailFlyout: RACI Table -- */
.raci-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.raci-table th,
.raci-table td {
  padding: 8px 0;
}

.raci-table thead tr {
  text-align: left;
  color: var(--v1-text-muted);
}

.raci-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.raci-table td.cell-white {
  color: #fff;
}

.raci-table td.cell-right {
  text-align: right;
}

.raci-pill {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.1);
}

.delete-raci-btn {
  background: none;
  border: none;
  color: var(--hc-safety);
  cursor: pointer;
}

.raci-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px;
  border-radius: 8px;
}

.governance-pill {
  font-size: 10px;
  border-color: var(--v1-accent);
  color: var(--v1-accent);
}

/* -- DetailFlyout: Change Log -- */
.change-log-entry {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.change-log-type {
  font-size: 8px;
  border-color: var(--hc-workflow);
  color: var(--hc-workflow);
}

.change-log-date {
  font-size: 8px;
}

.change-log-values {
  color: #fff;
  margin-bottom: 4px;
}

.change-log-reason {
  font-style: italic;
}

/* -- DetailFlyout: Textarea Height -- */
.flyout-textarea-tall {
  height: 100px;
}

/* -- DetailFlyout: Flag Pills -- */
.pill-flag-safety {
  background: var(--hc-safety);
  color: white;
  border: none;
}

.pill-flag-compliance {
  background: var(--hc-compliance);
  color: white;
  border: none;
}

/* -- DetailFlyout: Footer Buttons -- */
.btn-delete {
  color: var(--hc-safety);
  margin-right: auto;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.btn-save {
  background: var(--hc-workflow);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: var(--glow-blue);
}

/* -- KanbanBoard -- */
.kanban-card-type-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  color: var(--v1-accent);
}

.kanban-ripple-tag {
  color: #f59e0b;
  margin-left: 6px;
}

.kanban-risk-tag {
  margin-left: 6px;
}

.kanban-card-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quick-add-btn {
  background: none;
  border: none;
  color: var(--v1-accent);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  padding: 0 4px;
}

.kanban-card-date {
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--v1-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blocker-notifier {
  margin-top: 8px;
  padding: 8px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 6px;
  font-size: 11px;
  color: #f87171;
  line-height: 1.3;
  display: flex;
  gap: 6px;
}

.blocker-detail {
  margin-top: 2px;
  font-style: italic;
  opacity: 0.9;
}

.kanban-card-meta {
  margin-top: 12px;
}

.toggle-done-btn {
  width: 100%;
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.25);
  color: #39FF14;
  cursor: pointer;
  margin-top: 8px;
}

/* -- Dashboard -- */
.dashboard-view {
  display: grid;
}

.dashboard-board {
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.dashboard-tabs {
  margin-top: 12px;
  border-bottom: none;
  margin-bottom: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.dashboard-board-content {
  flex: 1;
  overflow: visible;
}

.pill-pdf {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  cursor: pointer;
}

.pill-steerco {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  cursor: pointer;
}

.pill-weekly {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  cursor: pointer;
}

.pill-suggest-timeline {
  background: rgba(57, 255, 20, 0.1);
  border-color: #39FF14;
  color: #39FF14;
  cursor: pointer;
}

.project-selector-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.project-selector-input {
  width: 250px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-placeholder {
  padding: 48px;
  text-align: center;
  color: var(--v1-text-muted);
}

.dashboard-detail-panel {
  position: relative;
  overflow: visible;
  border-left: 1px solid var(--v1-border);
}

.toggle-detail-btn {
  position: absolute;
  left: -18px;
  top: 24px;
  z-index: 200;
  padding: 4px 8px;
  min-width: 32px;
  background: #38bdf8;
  border: none;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  font-weight: bold;
}

.collapsed-label {
  writing-mode: vertical-rl;
  padding: 60px 15px;
  color: var(--v1-text-muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3em;
  cursor: pointer;
}

/* -- Dashboard: AI Insights Panel -- */
.ai-insights-panel {
  margin: 20px 35px;
  width: 380px;
  padding: 20px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.ai-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ai-insights-title {
  margin: 0;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ai-retrain-btn {
  font-size: 9px;
  padding: 2px 8px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-untrained-notice {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.ai-untrained-text {
  font-size: 11px;
  color: var(--v1-text-muted);
}

.ai-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-stat-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: 8px;
}

.ai-stat-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.ai-stat-sub {
  font-size: 11px;
}

.ai-insight-box {
  background: rgba(56, 189, 248, 0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  gap: 10px;
}

.ai-insight-icon {
  width: 16px;
  height: 16px;
  color: #38bdf8;
  flex-shrink: 0;
}

.ai-insight-label {
  color: #38bdf8;
}

.ai-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-stat-text {
  color: #e2e8f0;
}

/* -- Shell -- */
.shell-agility-label {
  color: #39FF14;
  font-size: 1.25rem;
  font-weight: 800;
  margin-left: -40px;
  position: relative;
  top: -1px;
}

.shell-search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 32px;
}

.shell-search-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.shell-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.shell-context-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--v1-border);
}

.shell-context-select {
  width: 100%;
  margin-top: 8px;
  padding: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* -- Shell: SteerCo Modal -- */
.steerco-modal {
  right: -800px;
  width: 800px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--v1-accent);
}

.steerco-modal-header {
  background: rgba(56, 189, 248, 0.05);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.steerco-modal-title {
  color: var(--v1-accent);
  letter-spacing: 0.05em;
}

.steerco-modal-body {
  background: transparent;
  padding: 40px;
}

.steerco-report-text {
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  white-space: normal;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.steerco-modal-footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-copy-report {
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--v1-accent);
  background: transparent;
}

/* -- Portfolio Pulse (aero glass report, white body) -- */
.steerco-modal.pulse-mode {
  background: rgba(248, 250, 252, 0.75) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  border-left: 1px solid rgba(96, 165, 250, 0.15) !important;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12), inset 0 0 60px rgba(255, 255, 255, 0.3) !important;
}
.steerco-modal.pulse-mode .steerco-modal-body {
  padding: 12px;
  background: transparent;
}
.steerco-modal.pulse-mode .steerco-report-text {
  background: rgba(255, 255, 255, 0.6);
  color: #1e293b;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 16px 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.steerco-modal.pulse-mode .steerco-report-text br {
  display: block;
  content: "";
  margin: 0;
  line-height: 4px;
}
.pulse-section-wrap {
  margin: 18px 0 10px 0;
}
/* Pulse section indicator dots */
.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
}
.pulse-dot-red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulse-blink 1.2s ease-in-out infinite;
}
.pulse-dot-green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
.pulse-dot-blue {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}
.pulse-dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
  animation: pulse-blink 1.5s ease-in-out infinite;
}
@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.steerco-modal.pulse-mode .steerco-modal-header {
  background: #0c1222;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
  padding: 12px 16px;
}
.steerco-modal.pulse-mode .steerco-modal-title {
  color: #f1f5f9;
  width: 100%;
}
.pulse-header-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pulse-agility-label {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #39ff14;
  letter-spacing: -0.02em;
  margin-left: -6px;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}
.pulse-divider {
  color: rgba(148, 163, 184, 0.2);
  font-size: 18px;
  font-weight: 300;
  margin: 0 6px;
}
.pulse-title-text {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}
.steerco-modal.pulse-mode .close-flyout {
  color: #94a3b8 !important;
}
.steerco-modal.pulse-mode .steerco-modal-footer {
  background: #0c1222;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
}
.steerco-modal.pulse-mode .steerco-modal-footer button {
  color: #cbd5e1;
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.steerco-modal.pulse-mode .steerco-modal-footer button:hover {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.15);
}

/* -- Timeline -- */
.timeline-view-header {
  padding: 24px 32px 0 32px;
}

.timeline-view-body {
  padding: 0 32px 32px 32px;
}

.timeline-label-bg {
  background: #020617;
  border-bottom: 1px solid var(--v1-border);
  z-index: 40;
}

.timeline-header .timeline-track {
  overflow: hidden;
}

.timeline-dot-spacer {
  margin-right: 8px;
}

/* ============================================
   Activity Summary Card — War Room
   ============================================ */
.activity-summary-card {
  margin: 0 24px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.activity-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.activity-summary-badge {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

.activity-summary-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  min-width: 36px;
  text-align: right;
}

.activity-progress-bar {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.activity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.activity-summary-body {
  padding: 12px 16px 14px;
}

.activity-summary-empty {
  padding: 14px 16px;
  font-size: 12px;
  color: #475569;
  text-align: center;
}

.activity-stats-row {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.activity-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.03);
}

.activity-stat-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.activity-stat-label {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.activity-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #cbd5e1;
  transition: background 0.15s;
}

.activity-feed-item:hover {
  background: rgba(255,255,255,0.03);
}

.activity-feed-icon {
  font-size: 12px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.activity-feed-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-feed-text strong {
  color: #f1f5f9;
  font-weight: 600;
}

.activity-feed-time {
  font-size: 10px;
  color: #475569;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

/* ============================================
   Executive Dashboard — CEO/CFO View
   ============================================ */
.exec-dashboard { min-height: 100vh; }

.exec-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exec-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  animation: execPulse 2s ease-in-out infinite;
}

@keyframes execPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.exec-live-label {
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 1px;
}

.exec-range-toggle {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}

.exec-range-btn {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.exec-range-btn.active {
  color: #f1f5f9;
  background: rgba(56,189,248,0.15);
}

.exec-range-btn:hover:not(.active) { color: #94a3b8; }

/* KPI Row */
.exec-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.exec-kpi-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exec-kpi-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exec-kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
}

.exec-kpi-sub {
  font-size: 12px;
  color: #64748b;
}

.exec-kpi-breakdown {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #475569;
}

.exec-sparkline {
  margin-top: 4px;
  width: 100%;
  max-width: 200px;
}

/* Charts Row */
.exec-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.exec-charts-row:last-of-type {
  grid-template-columns: 1fr 1fr 1fr;
}

.exec-chart-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px;
}

.exec-chart-wide { grid-column: 1 / -1; }

.exec-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 10px;
}

.exec-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 8px;
}

.exec-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}

.exec-chart { width: 100%; }

/* Horizontal bars (AR aging) */
.exec-ar-bars { display: flex; flex-direction: column; gap: 8px; }

.exec-hbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exec-hbar-label {
  font-size: 11px;
  color: #94a3b8;
  width: 80px;
  flex-shrink: 0;
}

.exec-hbar-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  overflow: hidden;
}

.exec-hbar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.exec-hbar-value {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  width: 60px;
  text-align: right;
}

/* Denial list */
.exec-denial-list { display: flex; flex-direction: column; gap: 10px; }

.exec-denial-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exec-denial-rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(244,63,94,0.1);
  color: #f43f5e;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exec-denial-info { flex: 1; }

.exec-denial-reason {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
}

.exec-denial-meta {
  font-size: 10px;
  color: #64748b;
}

/* Location list */
.exec-location-list { display: flex; flex-direction: column; gap: 6px; }

.exec-location-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
}

.exec-location-name {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
}

.exec-location-stats {
  display: flex;
  gap: 14px;
  align-items: center;
}

.exec-location-census {
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
}

.exec-location-bill {
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
}

/* Payer mix */
.exec-payer-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.exec-payer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.exec-payer-name { flex: 1; color: #cbd5e1; }
.exec-payer-pct { color: #94a3b8; font-weight: 600; width: 35px; text-align: right; }
.exec-payer-amt { color: #e2e8f0; font-weight: 600; width: 55px; text-align: right; }

.exec-payer-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

/* Cash flow */
.exec-cashflow { display: flex; flex-direction: column; gap: 8px; }

.exec-cf-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
  padding: 2px 0;
}

.exec-cf-divider {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 4px 0;
}

.exec-cf-net { padding-top: 4px; }

/* Watermark */
.exec-watermark {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

/* Section Headers */
.exec-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px 0;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

/* Exec Tables */
.exec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.exec-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  border-bottom: 1px solid #1e293b;
  font-weight: 600;
}
.exec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #0f172a;
  color: #e2e8f0;
}
.exec-table tr:hover td {
  background: #1e293b40;
}
.exec-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

/* Workforce Grid */
.exec-workforce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.exec-wf-item {
  background: #0f172a;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #1e293b;
}
.exec-wf-item.exec-wf-alert {
  border-color: #f43f5e30;
}
.exec-wf-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.exec-wf-value {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
}
.exec-wf-delta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.exec-wf-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

/* Growth Section */
.exec-growth-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.exec-growth-stat {
  text-align: center;
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
}
.exec-growth-value {
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
}
.exec-growth-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.exec-growth-delta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.exec-subsection-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.exec-leakage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exec-leakage-row {
  display: flex;
  align-items: center;
  font-size: 12px;
}
.exec-leakage-name {
  color: #e2e8f0;
  min-width: 140px;
}
.exec-leakage-pct {
  color: #f43f5e;
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}

/* Service Line Summary */
.exec-sl-summary {
  display: flex;
  justify-content: space-around;
  padding: 14px 0 4px;
  margin-top: 12px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1400px) {
  .exec-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .exec-charts-row:last-of-type { grid-template-columns: 1fr 1fr; }
  .exec-workforce-grid { grid-template-columns: 1fr 1fr; }
  .exec-growth-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .exec-workforce-grid { grid-template-columns: 1fr; }
  .exec-growth-kpis { grid-template-columns: 1fr; }
  .exec-sl-summary { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Financial Entry Form ───────────────────────────────────────── */
.fin-entry {
  max-width: 1200px;
}
.fin-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.fin-entry-header h3 {
  color: #f1f5f9;
  font-size: 18px;
  margin: 0;
}
.fin-entry-tabs {
  display: flex;
  gap: 4px;
}
.fin-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #1e293b;
}
.fin-date-nav {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.fin-date-nav:hover { background: #334155; color: #f1f5f9; }
.fin-date-label {
  color: #94a3b8;
  font-size: 13px;
  margin-left: 8px;
}
.fin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.fin-section {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 16px;
}
.fin-section-full {
  grid-column: 1 / -1;
}
.fin-section-green { border-color: #22c55e20; }
.fin-section-red { border-color: #f43f5e20; }
.fin-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin: 0 0 14px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.fin-field {
  margin-bottom: 12px;
}
.fin-field label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.fin-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
}
.fin-prefix {
  position: absolute;
  left: 10px;
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}
.fin-money {
  padding-left: 24px !important;
}
.fin-calc {
  padding: 10px 12px;
  background: #1e293b;
  border-radius: 6px;
  margin-top: 8px;
}
.fin-calc label {
  margin-bottom: 2px;
}
.fin-calc-value {
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
}
.fin-calc-big .fin-calc-value {
  font-size: 22px;
}
.fin-actions {
  display: flex;
  gap: 10px;
}
.fin-actions .btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.fin-actions .btn-primary:hover { background: #2563eb; }
.fin-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.fin-actions .btn-secondary {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.fin-actions .btn-secondary:hover { background: #334155; }
.fin-message {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
}
.fin-message.success { background: #22c55e15; color: #22c55e; border: 1px solid #22c55e30; }
.fin-message.error { background: #f43f5e15; color: #f43f5e; border: 1px solid #f43f5e30; }
.fin-empty {
  text-align: center;
  padding: 48px;
  color: #64748b;
  font-size: 14px;
}
.fin-entry textarea {
  width: 100%;
  resize: vertical;
}

@media (max-width: 1100px) {
  .fin-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .fin-form-grid { grid-template-columns: 1fr; }
}

/* ── Tooltip (exec-tip) ──────────────────────────────────── */
.exec-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: help;
}
.exec-tip-icon {
  width: 14px;
  height: 14px;
  color: #475569;
  transition: color 0.15s;
}
.exec-tip:hover .exec-tip-icon {
  color: #94a3b8;
}
.exec-tip-box {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 10px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
  pointer-events: none;
  white-space: normal;
}
.exec-tip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #334155;
}
.exec-tip:hover .exec-tip-box {
  display: block;
}
/* Keep tooltips on right-side cards from overflowing viewport */
.exec-kpi-card:last-child .exec-tip-box,
.exec-kpi-card:nth-last-child(2) .exec-tip-box {
  left: auto;
  right: 0;
  transform: none;
}
.exec-kpi-card:last-child .exec-tip-box::after,
.exec-kpi-card:nth-last-child(2) .exec-tip-box::after {
  left: auto;
  right: 16px;
  transform: none;
}
