.profint-embedded-viewer {
  overflow: hidden;
  border: 1px solid #d7e3ea;
  border-radius: 10px;
  background: #fff;
}

.profint-embedded-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .72rem .9rem;
  border-bottom: 1px solid #e8eef3;
  background: #f8fbfc;
}

.profint-embedded-viewer__header h3 {
  margin: .08rem 0 0;
  color: #101828;
  font-size: .95rem;
  font-weight: 780;
}

.profint-embedded-viewer__label {
  display: block;
  color: #075985;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profint-embedded-viewer__body {
  max-height: min(56vh, 520px);
  overflow: auto;
  padding: .9rem;
  background: #fff;
}

.profint-embedded-viewer__loading,
.profint-embedded-viewer__empty,
.profint-embedded-viewer__error {
  padding: 1.5rem;
  border: 1px dashed #d7e3ea;
  border-radius: 8px;
  color: #5f708a;
  text-align: center;
}

.profint-embedded-viewer__error {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.profint-embedded-viewer__file {
  display: grid;
  gap: .75rem;
}

.profint-embedded-viewer__media,
.profint-embedded-viewer__document {
  display: block;
  width: 100%;
  min-height: 360px;
  max-height: 62vh;
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  background: #f8fbfc;
  object-fit: contain;
}

.profint-embedded-viewer__document {
  height: min(62vh, 720px);
}

.profint-embedded-viewer__file-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

.profint-embedded-viewer .card {
  box-shadow: none;
}

.profint-record-embed {
  display: grid;
  gap: .85rem;
  color: #101828;
}

.profint-record-embed__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
}

.profint-record-embed__summary > div,
.profint-record-embed__section {
  border: 1px solid #e8eef3;
  border-radius: 8px;
  background: #fff;
}

.profint-record-embed__summary > div {
  display: grid;
  gap: .16rem;
  min-height: 64px;
  padding: .65rem .75rem;
}

.profint-record-embed span {
  color: #5f708a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profint-record-embed strong {
  min-width: 0;
  color: #101828;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

.profint-record-embed__section {
  padding: .75rem;
}

.profint-record-embed__section h4 {
  margin: 0 0 .55rem;
  font-size: .92rem;
  font-weight: 780;
}

.profint-record-embed__section dl {
  display: grid;
  grid-template-columns: minmax(90px, .35fr) minmax(0, 1fr);
  gap: .35rem .75rem;
  margin: 0;
  font-size: .82rem;
}

.profint-record-embed__section dt {
  color: #5f708a;
  font-weight: 700;
}

.profint-record-embed__section dd,
.profint-record-embed__section p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profint-record-embed__muted {
  color: #5f708a;
}

.profint-record-embed__table {
  overflow: auto;
}

.profint-record-embed__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}

.profint-record-embed__table th {
  padding: .55rem .6rem;
  border-bottom: 1px solid #d7e3ea;
  color: #5f708a;
  font-size: .66rem;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.profint-record-embed__table td {
  padding: .65rem .6rem;
  border-bottom: 1px solid #eef3f6;
  vertical-align: middle;
}

.profint-record-embed__table td strong,
.profint-record-embed__table td small {
  display: block;
}

.profint-record-embed__actions {
  white-space: nowrap;
}

.profint-record-embed__table tr:last-child td {
  border-bottom: 0;
}
