/* Document Storage Detail --------------------*/
.document-storage-content {
  position: relative;
  border: 1px solid #dee2e6;
  border-top: none;
  border-radius: 0 0 0.25rem 0.25rem;
  background: #f8f9fa;
  max-height: 70vh;
  overflow: auto;
}

.document-storage-content pre {
  margin: 0;
  padding: 1rem;
  background: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  outline: none;
}

.document-storage-content pre pre.pretty-json {
  padding: 0;
}

.document-storage-type-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* Document Detail ---------------------------*/
.document-detail-actions {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .document-detail-actions {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .document-detail-actions > div {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .document-detail-actions > div > .btn {
    flex: 1;
  }
}

.document-timeline-container {
  max-height: 70vh;
  overflow-y: auto;
}

/* Skeleton loading --------------------------*/
@keyframes skeleton-pulse {
  0% { opacity: 0.15; }
  50% { opacity: 0.25; }
  100% { opacity: 0.15; }
}

.skeleton {
  background: #6c757d;
  border-radius: 0.25rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-title {
  height: 2rem;
  width: 50%;
}

.skeleton-line {
  height: 0.9rem;
  width: 100%;
}

.skeleton-badge {
  height: 2rem;
  width: 6rem;
  border-radius: 0.5rem;
}

.skeleton-table {
  height: 12rem;
  width: 100%;
}

.skeleton-step {
  height: 4.5rem;
  width: 100%;
  border-radius: 0.375rem;
}
