.alfresco-pj-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 30, 50, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alfresco-pj-viewer-modal {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90vw;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.alfresco-pj-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}

.alfresco-pj-viewer-title {
  font-weight: 600;
  color: #1a2e45;
  font-size: 1rem;
}

.alfresco-pj-viewer-close {
  background: none;
  border: none;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 2px;
  display: flex;
  align-items: center;
}

.alfresco-pj-viewer-close:hover {
  color: #222;
}

.alfresco-pj-viewer-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alfresco-pj-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.alfresco-pj-viewer-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.alfresco-pj-viewer-spinner__ring {
  width: 48px;
  height: 48px;
  border: 4px solid #e9ecef;
  border-top-color: #1a5276;
  border-radius: 50%;
  animation: alfresco-pj-spin 0.7s linear infinite;
}

@keyframes alfresco-pj-spin {
  to { transform: rotate(360deg); }
}

body.alfresco-pj-viewer-open {
  overflow: hidden;
}
