.period-analytics-phase7 {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(65, 84, 111, 0.18);
  border-radius: 18px;
  background: #f6f7fa;
  color: #1f2a37;
}

.period-phase7-heading,
.period-phase7-toolbar,
.period-phase7-card > header,
.period-phase7-insight,
.period-phase7-history,
.period-phase7-history > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.period-phase7-heading h3,
.period-phase7-card h4 {
  margin: 4px 0 5px;
  color: #17263d;
}

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

.period-phase7-eyebrow {
  color: #345b9b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.period-phase7-toolbar {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 18px 0 12px;
  padding: 12px;
  border: 1px solid rgba(65, 84, 111, 0.14);
  border-radius: 12px;
  background: #fff;
}

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

.period-phase7-segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  padding: 3px;
  border-radius: 9px;
  background: #edf0f5;
}

.period-phase7-segmented button {
  min-height: 31px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #607086;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.period-phase7-segmented button.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(39, 59, 91, 0.14);
  color: #254f91;
}

.period-phase7-state {
  padding: 30px 18px;
  border: 1px dashed #bdc6d5;
  border-radius: 12px;
  background: #fff;
  color: #667286;
  text-align: center;
}

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

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

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

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

.period-phase7-insight {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 15px 17px;
  border-left: 4px solid #345b9b;
  border-radius: 10px;
  background: #eef3fb;
}

.period-phase7-insight span {
  color: #345b9b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.period-phase7-insight strong {
  color: #1c3151;
  font-size: 14px;
  line-height: 1.55;
}

.period-phase7-insight p {
  margin: 0;
  color: #65738a;
  font-size: 10px;
  line-height: 1.5;
}

.period-phase7-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.period-phase7-kpis > article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(65, 84, 111, 0.13);
  border-top: 3px solid #8c9aad;
  border-radius: 11px;
  background: #fff;
}

.period-phase7-kpis > article.high,
.period-phase7-kpis > article.risk {
  border-top-color: #b65b36;
}

.period-phase7-kpis > article.medium {
  border-top-color: #b17a25;
}

.period-phase7-kpis > article.low {
  border-top-color: #16736d;
}

.period-phase7-kpis span,
.period-phase7-kpis small {
  display: block;
  color: #6b7789;
  font-size: 10px;
}

.period-phase7-kpis strong {
  display: block;
  margin: 5px 0 3px;
  color: #182a45;
  font-size: 20px;
  line-height: 1.2;
}

.period-phase7-history {
  align-items: flex-start;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(65, 84, 111, 0.12);
  border-radius: 10px;
  background: #fff;
}

.period-phase7-history > div {
  justify-content: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.period-phase7-history span {
  color: #637187;
  font-size: 10px;
  font-weight: 800;
}

.period-phase7-history strong {
  color: #263b5c;
  font-size: 11px;
}

.period-phase7-history p {
  max-width: 620px;
  margin: 0;
  color: #6c788a;
  font-size: 10px;
  line-height: 1.55;
  text-align: right;
}

.period-phase7-history.building {
  border-color: #e0cba9;
  background: #fffaf2;
}

.period-phase7-history.ready {
  border-color: #b9d6d1;
  background: #f5fbfa;
}

.period-phase7-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

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

.period-phase7-card {
  margin-top: 12px;
  padding: 17px;
  border: 1px solid rgba(65, 84, 111, 0.14);
  border-radius: 13px;
  background: #fff;
}

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

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

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

.period-phase7-card > header b {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #405575;
  font-size: 11px;
  white-space: nowrap;
}

.period-phase7-bars,
.period-phase7-delta-bars {
  display: grid;
  gap: 9px;
}

.period-phase7-bar-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(120px, 1.8fr) minmax(86px, 0.75fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.period-phase7-bar-label,
.period-phase7-bar-value {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.period-phase7-bar-label strong,
.period-phase7-bar-value strong {
  overflow: hidden;
  color: #26364f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-phase7-bar-label span,
.period-phase7-bar-value span {
  color: #748094;
  font-size: 9px;
}

.period-phase7-bar-value {
  text-align: right;
}

.period-phase7-bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecf2;
}

.period-phase7-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #426aa7;
}

.period-phase7-delta-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.85fr) minmax(150px, 1.7fr) minmax(70px, 0.65fr);
  align-items: center;
  gap: 9px;
}

.period-phase7-delta-row > strong {
  overflow: hidden;
  color: #26364f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-phase7-delta-row > b {
  font-size: 10px;
  text-align: right;
}

.period-phase7-delta-track {
  position: relative;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7eeee 0 49.7%, #eef1f5 49.7% 50.3%, #eef5f4 50.3%);
}

.period-phase7-delta-track i {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  background: #7d8795;
}

.period-phase7-delta-track span {
  position: absolute;
  top: 0;
  height: 100%;
}

.period-phase7-delta-track span.positive {
  border-radius: 0 999px 999px 0;
  background: #16736d;
}

.period-phase7-delta-track span.negative {
  border-radius: 999px 0 0 999px;
  background: #b65b36;
}

.period-phase7-delta.positive,
.period-phase7-delta-row > b.positive {
  color: #116a64;
}

.period-phase7-delta.negative,
.period-phase7-delta-row > b.negative {
  color: #a44b2e;
}

.period-phase7-chart-note {
  margin-top: 10px;
  font-size: 10px;
}

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

.period-phase7-table-wrap table {
  min-width: 960px;
}

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

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

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

.period-phase7-delta {
  display: block;
  font-weight: 800;
}

.period-phase7-class {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #53647d;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.period-phase7-class.leader {
  background: #def0ec;
  color: #08665f;
}

.period-phase7-class.growth {
  background: #e7eef9;
  color: #345b9b;
}

.period-phase7-class.scale-risk {
  background: #f8e7e0;
  color: #9e482c;
}

.period-phase7-class.watch {
  background: #fff0d9;
  color: #8b571b;
}

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

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

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

  .period-phase7-history {
    flex-direction: column;
  }

  .period-phase7-history p {
    max-width: none;
    text-align: left;
  }
}

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

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

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

  .period-phase7-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .period-phase7-segmented {
    width: 100%;
  }

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

  .period-phase7-kpis {
    grid-template-columns: 1fr;
  }

  .period-phase7-bar-row {
    grid-template-columns: minmax(85px, 0.9fr) minmax(80px, 1.2fr) minmax(72px, 0.8fr);
    gap: 6px;
  }

  .period-phase7-delta-row {
    grid-template-columns: minmax(76px, 0.8fr) minmax(90px, 1.2fr) minmax(60px, 0.7fr);
    gap: 6px;
  }
}
