.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 19px;
  background: #fff;
  border: 1px solid #dce6e2;
  border-radius: 12px;
}

.metric > span {
  color: #526760;
  font-size: 12px;
  font-weight: 650;
}

.metric > strong {
  color: #16352d;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metric > small,
.metric > strong > small {
  color: #60756e;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.planning-matrix-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.planning-matrix-meta > span {
  font-size: 13px;
}

.matrix-cell {
  min-width: 61px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 9px;
  background: #f1f4f2;
  color: #52645e;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.matrix-cell:hover,
.matrix-cell:focus-visible {
  border-color: #28755e;
  color: #164f40;
  outline: 2px solid #b4dacc;
  outline-offset: 1px;
}

.matrix-cell--required {
  background: #e4f3eb;
  color: #216446;
}

.matrix-cell--optional {
  background: #fff1d9;
  color: #85590c;
}

.planning-task-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.planning-row-actions {
  flex-wrap: nowrap;
}

.planning-form-section {
  display: grid;
  gap: 10px;
  border: 1px solid #dce6e2;
  border-radius: 10px;
  padding: 13px;
}

.detail-list {
  margin: 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: minmax(90px, 30%) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #e8eeeb;
}

.detail-list > div:first-child {
  padding-top: 0;
}

.detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list dt {
  color: #60756e;
  font-size: 13px;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

@media (max-width: 700px) {
  .metric-grid {
    gap: 8px;
  }

  .metric {
    padding: 11px;
  }

  .metric > strong {
    font-size: 18px;
  }

  .metric > small {
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
