.document-view-intro {
  margin: 0 0 1rem;
}

.document-view-card {
  border: 1px solid #d9dee7;
  border-radius: 12px;
  padding: 1rem;
  margin: 0 0 1rem;
  background: #fff;
}

.document-view-card-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .9rem;
}

.document-view-card-header h5 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.document-view-id {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
  color: #697386;
}

.document-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-end;
}

.document-view-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eef2f7;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

.document-view-basis-normative {
  background: #e7f5ec;
}

.document-view-basis-mixed {
  background: #fff4d6;
}

.document-view-basis-dmki_recommendation {
  background: #edf2ff;
}

.document-view-section h6 {
  margin: .75rem 0 .35rem;
  font-size: .9rem;
}

.document-view-details,
.document-view-related {
  margin-top: .75rem;
}

.document-view-details > summary,
.document-view-related > summary {
  cursor: pointer;
  font-weight: 600;
}

.document-view-list {
  margin: .65rem 0 0 1.25rem;
  padding: 0;
}

.document-view-list li {
  margin: .35rem 0;
}

.document-view-relations {
  margin-top: .75rem;
  border-top: 1px solid #e5e9f0;
  padding-top: .25rem;
}

.document-view-related-list {
  padding: .5rem 0 .25rem .25rem;
}

.document-view-related-row {
  padding: .45rem 0;
  border-bottom: 1px solid #f0f2f5;
}

.document-view-related-row:last-child {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .document-view-card-header {
    flex-direction: column;
  }

  .document-view-badges {
    justify-content: flex-start;
  }
}
