.protocol-selection-list {
  display: grid;
  gap: 0.85rem;
}

.protocol-selection-item {
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.9rem;
}

.protocol-selection-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.protocol-selection-title strong {
  color: var(--app-text);
}

.protocol-selection-title span {
  color: var(--app-muted);
  font-size: 0.92rem;
}

.document-preview-group {
  display: grid;
  gap: 1rem;
}

.document-preview-modal {
  display: grid;
  gap: 1rem;
}

.document-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.document-preview-meta strong {
  color: var(--app-text);
}

.document-preview-meta span {
  color: var(--app-muted);
  font-size: 0.92rem;
}

.document-preview {
  border: 1px solid var(--app-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem;
}

.document-preview h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.document-preview pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--app-text);
  line-height: 1.45;
}

.document-preview:has(.pdf-preview-frame) {
  padding: 0;
  overflow: hidden;
}

.pdf-preview-frame {
  display: block;
  width: 100%;
  height: 70vh;
  border: none;
}

.image-preview {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  object-fit: contain;
}

.protocol-actions,
.protocol-action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.protocol-actions {
  margin-top: 1rem;
}

.document-category-tabs {
  gap: 0.4rem;
  border-bottom: 0;
  margin-bottom: 0;
}

.document-category-tabs .nav-link:not(.btn) {
  border: 1px solid var(--app-border);
  border-radius: 0.42rem;
  background: #fff;
  color: var(--app-text-soft);
  font-weight: 700;
  margin-bottom: 0;
  box-shadow: none;
}

.document-category-tabs .nav-link:not(.btn):hover {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary-dark);
  transform: none;
}

.document-category-tabs .nav-link:not(.btn).active,
.document-category-tabs .nav-link:not(.btn).active:hover {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 0.1rem 0.35rem rgba(var(--bs-primary-rgb), 0.22);
}

[data-template-mapping-field] .page-head h3 {
  font-size: 0.9rem;
  font-weight: 700;
}
