/* Overview pipeline: shared white surfaces, sky claim marks, and content-sized stages. */
.pipeline-overview .section-title {
  margin-bottom: 18px;
}
.pipeline-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #607184;
  font-size: 14px;
  flex-wrap: wrap;
}
.claims-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #e3e7e9;
  border-radius: 9px;
  background: #fff;
}
.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  gap: 20px;
  padding: 20px 16px 24px;
  border: 0;
  border-right: 1px solid #e3e7e9;
  border-radius: 0;
  text-align: left;
  min-width: 0;
}
.pipeline-stage:first-child {
  border-radius: 9px 0 0 9px;
}
.pipeline-stage:last-child {
  border-right: 0;
  border-radius: 0 9px 9px 0;
}
.pipeline-stage:hover {
  background: #f5f7fa;
  --connector-from: #f5f7fa;
}
.pipeline-stage:has(+ .pipeline-stage:hover) {
  --connector-to: #f5f7fa;
}
.pipeline-stage-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #12365a;
}
.pipeline-stage-heading strong {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -1.1px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pipeline-pool {
  display: flex;
  align-items: flex-end;
  min-height: 16px;
  flex: 1;
}
.pipeline-squares {
  display: grid;
  grid-template-columns: repeat(5, 11px);
  gap: 4px;
}
.pipeline-squares i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #77b8e3;
}
.pipeline-stage.is-complete .pipeline-squares i {
  background: #40a77f;
}
.pipeline-connector {
  position: absolute;
  right: -26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 19px;
  height: 24px;
  /* Each half belongs to the adjacent stage. Rotation carries this split
     into the vertical layout too. Let the stage underneath receive hover. */
  background: linear-gradient(
    to right,
    var(--connector-from, #fff) 50%,
    var(--connector-to, #fff) 50%
  );
  pointer-events: none;
  color: #607184;
  text-align: center;
}
.pipeline-stage:focus-visible {
  outline: 2px solid #12365a;
  outline-offset: -4px;
}
.pipeline-unknown {
  margin-top: 16px;
}
.pipeline-empty {
  padding: 16px 0;
}
.pipeline-attention {
  margin-top: 32px;
}
.attention-column-head,
.overview-attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 145px;
  gap: 24px;
  align-items: center;
}
.attention-column-head {
  font-size: 13px;
  font-weight: 500;
  color: #607184;
  padding: 12px 0;
}
.overview-attention-row {
  padding: 20px 0;
  border-top: 1px solid #e3e7e9;
  color: #12365a;
}
.overview-attention-row:hover {
  background: #f5f7fa;
}
.overview-attention-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.overview-attention-row strong {
  font-size: 16px;
  font-weight: 600;
}
.attention-context {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #607184;
}
.attention-context.attention-urgent {
  color: #a12e40;
}
.attention-claim {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.attention-action {
  font-size: 14px;
  font-weight: 500;
}
.overview-view-all {
  width: 100%;
  padding: 16px;
  border: 0;
  border-top: 1px solid #e3e7e9;
  border-radius: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
}

.pipeline-coverage:empty {
  display: none;
}
.pipeline-coverage {
  margin-top: 16px;
}
.pipeline-amount {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #607184;
  letter-spacing: 0;
}
.pipeline-amount-missing {
  font-size: 14px;
  font-weight: 400;
  color: #607184;
}
.pipeline-stage-heading .pipeline-value {
  font-size: clamp(22px, 2vw, 33px);
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .claims-pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
    gap: 6px 16px;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid #e3e7e9;
    align-items: center;
  }
  .pipeline-stage:first-child {
    border-radius: 9px 9px 0 0;
  }
  .pipeline-stage:last-child {
    border-bottom: 0;
    border-radius: 0 0 9px 9px;
  }
  .pipeline-stage-heading {
    display: contents;
  }
  .pipeline-stage-heading > span:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .pipeline-stage-heading .pipeline-value {
    grid-column: 2;
    grid-row: 1;
    font-size: 24px;
    text-align: right;
  }
  .pipeline-amount {
    position: static;
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    font-size: 14px;
  }
  .pipeline-amount-missing {
    grid-column: 1 / -1;
    text-align: right;
  }
  .pipeline-pool {
    grid-column: 1;
    grid-row: 2;
    min-height: 16px;
    align-items: center;
  }
  .pipeline-squares {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 160px;
  }
  .pipeline-squares i {
    width: 8px;
    height: 8px;
  }
  .pipeline-connector {
    right: auto;
    left: 12.5px;
    top: auto;
    bottom: -10px;
    height: 19px;
    font-size: 13px;
    transform: rotate(90deg);
  }
  .pipeline-attention {
    margin-top: 24px;
  }
}
@media (max-width: 650px) {
  .pipeline-overview .section-title {
    margin-bottom: 12px;
    gap: 12px;
  }
  .pipeline-legend {
    font-size: 13px;
    gap: 6px;
  }
  .pipeline-stage {
    padding: 12px 14px;
  }
  .pipeline-connector {
    left: 8.5px;
  }
  .pipeline-stage-heading .pipeline-value {
    font-size: 22px;
  }
  .attention-column-head {
    display: none;
  }
  .overview-attention-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 0;
    align-items: end;
  }
  .overview-attention-row > span:first-child {
    grid-column: 1 / -1;
  }
  .overview-attention-row > span:nth-child(2) {
    grid-column: 1;
  }
  .attention-action {
    grid-column: 2;
    font-size: 13px;
    white-space: nowrap;
  }
  .overview-attention-row strong {
    font-size: 16px;
  }
  .attention-context {
    margin-top: 4px;
  }
  .attention-claim {
    font-size: 14px;
  }
}

.attention-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-caught-up {
  text-align: center;
  padding: 24px 16px 32px;
  border-top: 1px solid #e3e7e9;
}
.overview-caught-up img {
  display: block;
  margin: 0 auto 12px;
}
.overview-caught-up h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #12365a;
}
.overview-caught-up p {
  margin: 8px 0 0;
  color: #607184;
  font-size: 14px;
}

.editable-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 36px;
  max-width: 100%;
  border: 1px solid #e3e7e9;
  border-radius: 6px;
  background: #fff;
  color: #12365a;
  font-size: 14px;
  text-align: left;
}
.filter-chip-label {
  padding: 8px 10px;
  color: #607184;
  border-right: 1px solid #e3e7e9;
  white-space: nowrap;
}
.filter-chip-value {
  padding: 8px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editable-filter-chip svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.editable-filter-chip.is-active {
  border-color: #b9cbdc;
}
.editable-filter-chip:hover,
.editable-filter-chip[aria-expanded="true"] {
  background: #f5f7fa;
  border-color: #92adc5;
}
.editable-filter-chip:focus-visible {
  outline: 2px solid #12365a;
  outline-offset: 2px;
}
.filter-chip-menu {
  width: 280px;
  max-width: calc(100vw - 24px);
}
.filter-chip-menu .popover-options button:focus-visible {
  background: #edf2f7;
  outline: 2px solid #12365a;
  outline-offset: -2px;
}
