/* Executive Summary — bold presentation slide */

.executive-summary {
  display: none;
  flex-direction: column;
  height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  background: #f7f9fc;
  color: #172b44;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

body.app-view-summary .dashboard {
  display: none !important;
}

body.app-view-summary .executive-summary {
  display: flex;
}

body.app-view-summary .tooltip {
  z-index: 2000;
}

.exec-accent-bar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #2f6bdb 0%, #1e4fa8 100%);
  z-index: 5;
}

.exec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px 4px 32px;
  flex-shrink: 0;
  background: #f7f9fc;
}
.exec-header h1 {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #4f5d73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exec-subtitle {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: #4f5d73;
}

.exec-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 28px 10px 32px;
  flex-shrink: 0;
  background: #f7f9fc;
}

.exec-toolbar .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.exec-toolbar .btn--exec-range {
  height: 40px;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 700;
}

.exec-toolbar .btn--week-active {
  background: #2f6bdb;
  color: #fff;
  border-color: #2f6bdb;
}

.exec-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 8px 28px 10px 32px;
  margin-bottom: 0;
  flex-shrink: 0;
  border-bottom: 1px solid #d8e0ea;
  background: #fff;
}

.exec-filters .toolbar-field {
  min-width: 120px;
}

.exec-canvas {
  flex: 1;
  min-height: 0;
  position: relative;
  margin: 0 20px 14px 32px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: auto;
}

.exec-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  --exec-zone-split: 25%;
  background:
    linear-gradient(
      90deg,
      rgba(46, 155, 71, 0.07) 0%,
      rgba(46, 155, 71, 0.07) var(--exec-zone-split),
      transparent var(--exec-zone-split)
    ),
    linear-gradient(
      90deg,
      transparent var(--exec-zone-split),
      rgba(47, 107, 219, 0.07) var(--exec-zone-split),
      rgba(47, 107, 219, 0.07) 100%
    ),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.exec-stage::before {
  content: "";
  position: absolute;
  left: var(--exec-zone-split);
  top: 72px;
  bottom: 88px;
  width: 2px;
  background: linear-gradient(180deg, transparent, #c5d0de 12%, #c5d0de 88%, transparent);
  pointer-events: none;
  z-index: 0;
  transform: translateX(-1px);
}

.exec-title-block {
  position: absolute;
  top: 14px;
  left: 32px;
  right: 32px;
  z-index: 2;
}

.exec-title-block h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #172b44;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.exec-slide-subtitle {
  margin: 6px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4f5d73;
}

.exec-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4f5d73;
  flex-shrink: 0;
}

.exec-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #fff1e6;
  border: 2px solid #e67e22;
}

/* ── Timeline ── */

.exec-timeline-wrap {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 100px;
  height: 5px;
  z-index: 1;
}

.exec-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  background: #4e607a;
  transform: translateY(-50%);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.exec-timeline-zone {
  position: absolute;
  bottom: -38px;
  font-size: 1.1875rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.exec-timeline-zone--delivered {
  left: 0;
  width: 25%;
  color: #2e9b47;
}

.exec-timeline-zone--planned {
  left: 25%;
  width: 75%;
  color: #2f6bdb;
}

.exec-today-marker {
  position: absolute;
  top: -36px;
  transform: translateX(-50%);
  z-index: 3;
}

.exec-today-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  width: 3px;
  height: 34px;
  background: #e53935;
  transform: translateX(-50%);
  border-radius: 2px;
}

.exec-today-marker__label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff0f0;
  border: 1.5px solid #f87171;
  font-size: 0.875rem;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  cursor: default;
}

.exec-today-marker__label[data-date]:hover::after {
  content: attr(data-date);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #172b44;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 12;
}

.exec-cards-layer {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 78px;
  bottom: 108px;
  pointer-events: none;
}

/* ── Milestone cards ── */

.exec-card {
  position: absolute;
  pointer-events: auto;
  width: 232px;
  padding: 16px 18px 15px;
  background: #fff;
  border: 2px solid #c7d8ee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(23, 43, 68, 0.12);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.exec-card:hover {
  box-shadow: 0 6px 20px rgba(23, 43, 68, 0.16);
  transform: translateY(-1px);
}

.exec-card--delivered {
  border-color: #2e9b47;
  border-left: 5px solid #2e9b47;
  background: #e7f6ea;
}

.exec-card--planned {
  border-color: #2f6bdb;
  border-left: 5px solid #2f6bdb;
  background: #eef4ff;
}

.exec-card--delayed,
.exec-card--risk {
  outline: none;
  background: #fff4e8;
  border: 2px solid #e67e22;
  border-left: 5px solid #e67e22;
  color: #7a3e00;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.2);
}

.exec-card--delayed .exec-card__name,
.exec-card--delayed .exec-card__project,
.exec-card--delayed .exec-card__flow,
.exec-card--delayed .exec-card__date,
.exec-card--risk .exec-card__name,
.exec-card--risk .exec-card__project,
.exec-card--risk .exec-card__flow,
.exec-card--risk .exec-card__date {
  color: #7a3e00;
}

.exec-card__date--change {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.exec-card__badge--delayed {
  background: #e67e22;
  color: #ffffff;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.exec-card--hidden-preview {
  opacity: 0.5;
}

.exec-card--group {
  width: 288px;
  padding: 16px 18px 15px;
}

.exec-card__check-row {
  margin-bottom: 6px;
}

.exec-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c8e6c9;
  color: #2e9b47;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.exec-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #172b44;
}

.exec-card__project {
  margin: 6px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2f6bdb;
  line-height: 1.3;
}

.exec-card__flow {
  margin: 5px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4f5d73;
  line-height: 1.35;
}

.exec-card__date {
  margin: 7px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #172b44;
  letter-spacing: 0.02em;
}

.exec-card__date-header {
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #172b44;
  border-bottom: 2px solid #b8c5d6;
  letter-spacing: 0.02em;
}

.exec-card__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exec-card__item {
  padding: 10px 4px 10px 2px;
  border-bottom: 1px solid rgba(23, 43, 68, 0.14);
}

.exec-card__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exec-card__item--delayed .exec-card__name {
  color: #c2410c;
}

.exec-card__item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  line-height: 1.35;
}

.exec-card__item-head .exec-card__name {
  font-size: 1.125rem;
}

.exec-card__item-head .exec-card__project {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2f6bdb;
}

.exec-card__item .exec-card__flow {
  display: block;
  margin: 4px 0 0 16px;
  font-size: 0.8125rem;
  color: #4f5d73;
}

.exec-card__bullet {
  flex-shrink: 0;
  width: 14px;
  font-size: 0.875rem;
  color: #2f6bdb;
  font-weight: 700;
}

.exec-card__bullet--delivered {
  color: #2e9b47;
  font-size: 0.75rem;
}

.exec-card__dash {
  color: #b0bac8;
  font-weight: 400;
}

.exec-card__more {
  margin: 8px 0 0;
  padding-top: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2f6bdb;
  border-top: 1.5px dashed #c5d0de;
}

.exec-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.exec-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exec-card__badge--delayed {
  background: #e67e22;
  color: #ffffff;
}

.exec-card__badge--hidden {
  background: #e8ecf2;
  color: #4f5d73;
}

/* ── Connectors ── */

.exec-connector {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.exec-connector-line {
  stroke: #5b8fc7;
  stroke-width: 2.5;
  fill: none;
}

.exec-connector-dot {
  fill: #2f6bdb;
  stroke: #fff;
  stroke-width: 1.5;
}

.exec-connector-date {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  fill: #172b44;
}

.exec-empty {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  font-size: 1.125rem;
  font-weight: 600;
  color: #4f5d73;
  text-align: center;
}

/* Edit panel */
.exec-edit-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid #d8e0ea;
  box-shadow: -4px 0 24px rgba(23, 43, 68, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.exec-edit-panel[hidden] {
  display: none !important;
}

.exec-edit-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #d8e0ea;
}

.exec-edit-panel__header h3 {
  margin: 0;
  font-size: 1rem;
}

.exec-edit-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 18px;
  border-bottom: 1px solid #d8e0ea;
}

.exec-edit-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
}

.exec-edit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.82rem;
}

.exec-edit-item label {
  flex: 1;
  cursor: pointer;
}

.exec-edit-item__name {
  font-weight: 600;
  color: #172b44;
}

.exec-edit-item__meta {
  margin-top: 2px;
  color: #4f5d73;
  font-size: 0.75rem;
}

/* Print */
@media print {
  body.app-view-summary {
    background: #fff;
  }

  .exec-accent-bar,
  .exec-header,
  .exec-toolbar,
  .exec-filters,
  .exec-edit-panel,
  #btn-exec-summary,
  .dashboard {
    display: none !important;
  }

  body.app-view-summary .executive-summary {
    display: block !important;
    height: auto;
    max-width: none;
    background: #fff;
  }

  .exec-canvas {
    margin: 0;
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .exec-stage {
    min-height: 680px;
  }

  .exec-card {
    box-shadow: 0 2px 8px rgba(23, 43, 68, 0.1);
  }

  .exec-title-block h2 {
    font-size: 2rem;
  }

  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}


/* Mockup timeline (permanent Executive Summary layout) */

.exec-mockup {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 16px;
}

.exec-mockup[hidden] {
  display: none !important;
}

.exec-mockup__board {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(23, 43, 68, 0.08);
  padding: 14px 18px 14px;
  min-height: 100%;
  box-sizing: border-box;
}

.exec-mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.exec-mockup__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #172b44;
  letter-spacing: -0.02em;
}

.exec-mockup__subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #4f5d73;
}

.exec-mockup__plot {
  position: relative;
  --mockup-lane-label: 0px;
}

.exec-mockup__zones {
  position: absolute;
  top: 0;
  bottom: 48px;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.exec-mockup__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.exec-mockup__zone span {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.exec-mockup__zone--delivered {
  background: rgba(46, 155, 71, 0.07);
  border-right: 1px dashed rgba(46, 155, 71, 0.25);
}

.exec-mockup__zone--delivered span { color: #2e9b47; }

.exec-mockup__zone--planned {
  background: rgba(47, 107, 219, 0.06);
}

.exec-mockup__zone--planned span {
  color: #2f6bdb;
  text-align: right;
  left: auto;
  right: 28px;
}

.exec-mockup__lanes {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
}

.exec-mockup-lane {
  display: block;
  border-bottom: 1px solid #e6edf5;
  min-height: 88px;
}

.exec-mockup-lane:last-child {
  border-bottom: none;
}

.exec-mockup-lane__label {
  display: none !important;
}

.exec-mockup-lane__track {
  position: relative;
  min-height: 88px;
  width: 100%;
}

.exec-mockup-pill {
  position: absolute;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 16px;
  border: 1.5px solid #c7d8ee;
  border-left-width: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(23, 43, 68, 0.07);
  font: inherit;
  color: #172b44;
  z-index: 2;
}

.exec-mockup-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 43, 68, 0.12);
}

.exec-mockup-pill--delivered {
  background: #e7f6ea;
  border-color: #2e9b47;
  border-left-color: #2e9b47;
}

.exec-mockup-pill--planned {
  background: #eef4ff;
  border-color: #2f6bdb;
  border-left-color: #2f6bdb;
}

.exec-mockup-pill--delayed,
.exec-mockup-pill--risk {
  background: #fff4e8;
  border-color: #e67e22;
  border-left-color: #e67e22;
}

.exec-mockup-pill__top {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.exec-mockup-pill__check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c8e6c9;
  color: #2e9b47;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.exec-mockup-pill__name {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.25;
  color: #172b44;
}

.exec-mockup-pill__project {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #172b44;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-mockup-pill__flow {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exec-mockup-pill__meta {
  display: none;
}

.exec-mockup-pill__foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.exec-mockup-pill__date {
  font-size: 0.875rem;
  font-weight: 800;
  color: #172b44;
  letter-spacing: 0.01em;
}

.exec-mockup-pill__badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e67e22;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exec-mockup__today {
  position: absolute;
  top: 0;
  bottom: 48px;
  width: 0;
  z-index: 3;
  pointer-events: none;
  transform: translateX(0);
}

.exec-mockup__today-cap {
  position: absolute;
  left: 0;
  width: 2px;
  background: #e53935;
  border-radius: 2px;
  transform: translateX(-1px);
}

.exec-mockup__today-cap--top {
  top: 0;
  height: 28px;
}

.exec-mockup__today-cap--bottom {
  bottom: 0;
  height: 24px;
}

.exec-mockup__today-label {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0f0;
  border: 1px solid #f87171;
  color: #dc2626;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 4;
}

.exec-mockup__axis {
  position: absolute;
  left: 0;
  right: 12px;
  bottom: 8px;
  height: 34px;
  z-index: 2;
}

.exec-mockup__axis-line {
  position: absolute;
  left: 0;
  right: 14px;
  top: 6px;
  height: 3px;
  background: #3d516b;
  border-radius: 2px;
}

.exec-mockup__axis-arrow {
  position: absolute;
  right: 0;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #3d516b;
}

.exec-mockup__ticks {
  position: absolute;
  inset: 0;
}

.exec-mockup__tick {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  font-weight: 800;
  color: #172b44;
  white-space: nowrap;
}

.tooltip.tooltip--exec-mockup {
  background: #ffffff;
  color: #172b44;
  border: 1px solid #d8e0ea;
  box-shadow: 0 8px 24px rgba(23, 43, 68, 0.14);
  border-radius: 10px;
}

.tooltip.tooltip--exec-mockup strong {
  color: #172b44;
}

.tooltip.tooltip--exec-mockup .tooltip-row {
  color: #4f5d73;
}

.tooltip.tooltip--exec-mockup .tooltip-delayed {
  color: #c2410c;
}

.tooltip.tooltip--exec-mockup .tooltip-scope {
  color: #0f766e;
}
