.period-analytics-phase6 {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(64, 91, 104, 0.18);
  border-radius: 18px;
  background: #f5f8f8;
  color: #1f2a37;
}

.period-phase6-heading,
.period-phase6-toolbar,
.period-phase6-card > header,
.period-phase6-chart > header,
.period-phase6-maturity article > div,
.period-phase6-timeline-list article,
.period-phase6-timeline-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.period-phase6-heading {
  align-items: flex-start;
}

.period-phase6-heading h3,
.period-phase6-card h4 {
  margin: 4px 0 5px;
  color: #14272b;
}

.period-phase6-heading p,
.period-phase6-card header span,
.period-phase6-toolbar > span,
.period-phase6-scope-note,
.period-phase6-contract {
  margin: 0;
  color: #64747a;
  font-size: 12px;
  line-height: 1.65;
}

.period-phase6-eyebrow {
  color: #006c67;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.period-phase6-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 18px 0 12px;
  padding: 12px;
  border: 1px solid rgba(64, 91, 104, 0.14);
  border-radius: 12px;
  background: #fff;
}

.period-phase6-toolbar > div {
  display: grid;
  flex: 1 1 320px;
  gap: 3px;
}

.period-phase6-toolbar > div span {
  color: #738087;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.period-phase6-toolbar > div strong {
  color: #1d3438;
  font-size: 13px;
}

.period-phase6-toolbar > span {
  margin-left: auto;
  text-align: right;
}

.period-phase6-scope-note {
  margin: -3px 0 12px;
  color: #8c5c24;
}

.period-phase6-state {
  padding: 30px 18px;
  border: 1px dashed #bac8ca;
  border-radius: 12px;
  background: #fff;
  color: #64747a;
  text-align: center;
}

.period-phase6-state.compact {
  padding: 20px 16px;
  border-radius: 10px;
}

.period-phase6-state strong {
  display: block;
  margin-bottom: 5px;
  color: #24373b;
}

.period-phase6-state p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.period-phase6-state.error {
  border-color: #d7a2a2;
  background: #fff7f7;
}

.period-phase6-maturity {
  display: grid;
  grid-template-columns: 1.18fr repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.period-phase6-maturity > article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(64, 91, 104, 0.13);
  border-top: 3px solid #98a5a7;
  border-radius: 11px;
  background: #fff;
}

.period-phase6-maturity > article.ready {
  border-top-color: #006c67;
  background: #f4fbfa;
}

.period-phase6-maturity-summary {
  border-top-color: #3b65a7 !important;
  background: #f5f8fd !important;
}

.period-phase6-maturity span {
  color: #6a797e;
  font-size: 10px;
}

.period-phase6-maturity b {
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf1f1;
  color: #53676a;
  font-size: 9px;
}

.period-phase6-maturity .ready b {
  background: #dcefeb;
  color: #00635f;
}

.period-phase6-maturity strong {
  display: block;
  min-height: 34px;
  margin: 6px 0 3px;
  color: #1d3337;
  font-size: 14px;
  line-height: 1.35;
}

.period-phase6-maturity-summary strong {
  font-size: 19px;
}

.period-phase6-maturity p {
  margin: 0;
  color: #718085;
  font-size: 10px;
  line-height: 1.5;
}

.period-phase6-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px;
}

.period-phase6-main-grid > *,
.period-phase6-card,
.period-phase6-charts > * {
  min-width: 0;
}

.period-phase6-card {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid rgba(64, 91, 104, 0.14);
  border-radius: 13px;
  background: #fff;
}

.period-phase6-main-grid > .period-phase6-card {
  margin-top: 0;
}

.period-phase6-card > header {
  align-items: flex-start;
  margin-bottom: 13px;
}

.period-phase6-card > header h4 {
  margin-top: 0;
}

.period-phase6-card > header b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf2f2;
  color: #3c5559;
  font-size: 11px;
  white-space: nowrap;
}

.period-phase6-timeline-list {
  display: grid;
  gap: 0;
}

.period-phase6-timeline-list > article {
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  gap: 11px;
  min-width: 0;
}

.period-phase6-timeline-list > article > div:last-child {
  min-width: 0;
  flex: 1;
  padding: 0 0 15px;
}

.period-phase6-timeline-marker {
  position: relative;
  display: flex;
  flex: 0 0 28px;
  justify-content: center;
}

.period-phase6-timeline-marker::after {
  position: absolute;
  top: 27px;
  bottom: 0;
  width: 1px;
  background: #ccd5d6;
  content: "";
}

.period-phase6-timeline-list > article:last-child .period-phase6-timeline-marker::after {
  display: none;
}

.period-phase6-timeline-marker span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #176d69;
  box-shadow: 0 0 0 1px #9ab9b7;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.period-phase6-timeline-list header {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.period-phase6-timeline-list header strong {
  color: #203438;
  font-size: 12px;
}

.period-phase6-timeline-list header span {
  color: #718085;
  font-size: 10px;
  white-space: nowrap;
}

.period-phase6-timeline-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f9f9;
}

.period-phase6-timeline-metrics span {
  color: #718085;
  font-size: 10px;
}

.period-phase6-timeline-metrics b {
  margin-left: 3px;
  color: #263d41;
}

.period-phase6-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.period-phase6-chart {
  min-height: 190px;
  padding: 11px;
  border: 1px solid rgba(64, 91, 104, 0.12);
  border-radius: 10px;
  background: #f9fbfb;
}

.period-phase6-chart > header {
  align-items: flex-start;
  gap: 6px;
}

.period-phase6-chart header > div {
  display: grid;
  gap: 2px;
}

.period-phase6-chart header strong {
  color: #263b40;
  font-size: 11px;
}

.period-phase6-chart header span,
.period-phase6-chart.empty p {
  margin: 0;
  color: #7a888c;
  font-size: 9px;
  line-height: 1.5;
}

.period-phase6-chart header b {
  color: #263b40;
  font-size: 11px;
  white-space: nowrap;
}

.period-phase6-chart svg {
  display: block;
  width: 100%;
  height: 138px;
  margin-top: 5px;
  overflow: visible;
}

.period-phase6-chart svg .axis {
  stroke: #d4dddd;
  stroke-width: 1;
}

.period-phase6-chart svg .trend {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.period-phase6-chart svg .trend.teal {
  stroke: #006c67;
}

.period-phase6-chart svg .trend.blue {
  stroke: #3b65a7;
}

.period-phase6-chart svg .trend.amber {
  stroke: #9b5b1d;
}

.period-phase6-chart svg circle {
  stroke: #fff;
  stroke-width: 2;
}

.period-phase6-chart svg circle.teal {
  fill: #006c67;
}

.period-phase6-chart svg circle.blue {
  fill: #3b65a7;
}

.period-phase6-chart svg circle.amber {
  fill: #9b5b1d;
}

.period-phase6-chart svg text {
  fill: #748286;
  font-size: 8px;
}

.period-phase6-chart svg .direct-label {
  fill: #293e43;
  font-size: 8px;
  font-weight: 800;
}

.period-phase6-chart.empty {
  display: grid;
  min-height: 150px;
  align-content: start;
}

.period-phase6-chart.empty p {
  margin-top: 28px;
  text-align: center;
}

.period-phase6-recurrence-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 11px;
}

.period-phase6-recurrence-summary article {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f6f9f9;
}

.period-phase6-recurrence-summary span {
  display: block;
  color: #6e7c81;
  font-size: 10px;
}

.period-phase6-recurrence-summary strong {
  display: block;
  margin-top: 4px;
  color: #22383d;
  font-size: 18px;
}

.period-phase6-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.period-phase6-table-wrap table {
  min-width: 820px;
}

.period-phase6-table-wrap td {
  vertical-align: top;
}

.period-phase6-table-wrap td strong,
.period-phase6-table-wrap td small {
  display: block;
}

.period-phase6-table-wrap td small {
  margin-top: 3px;
  color: #748286;
}

.period-phase6-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf1f1;
  color: #506367;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.period-phase6-status.ongoing {
  background: #f8e6e0;
  color: #9e4428;
}

.period-phase6-status.resurfaced {
  background: #fff0d9;
  color: #8b571b;
}

.period-phase6-status.not-triggered {
  background: #e0f0ed;
  color: #07665f;
}

.period-phase6-frequency {
  width: 130px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9e9;
}

.period-phase6-frequency span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3b65a7;
}

.period-phase6-contract {
  margin: 11px 2px 0;
}

@media (max-width: 1180px) {
  .period-phase6-maturity {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .period-phase6-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .period-analytics-phase6 {
    padding: 16px;
  }

  .period-phase6-heading,
  .period-phase6-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .period-phase6-toolbar > span {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .period-phase6-maturity,
  .period-phase6-charts {
    grid-template-columns: 1fr;
  }

  .period-phase6-maturity-summary {
    grid-column: auto;
  }

  .period-phase6-recurrence-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .period-phase6-timeline-metrics,
  .period-phase6-recurrence-summary {
    grid-template-columns: 1fr;
  }

  .period-phase6-toolbar .secondary-button {
    flex: 1 1 auto;
  }
}
