/* The site header has z-index 10000. Keep the whole viewer above it. */
#participant-dashboard-modal {
  z-index: 30000 !important;
  padding: 16px !important;
  overflow: hidden;
}
#participant-dashboard-modal > .uk-modal-dialog {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 1600px !important;
  height: calc(100vh - 32px) !important;
  height: calc(100dvh - 32px) !important;
  max-height: calc(100dvh - 32px);
  margin: 0 auto !important;
  overflow: hidden;
}
#participant-dashboard-modal .uk-modal-header {
  flex: 0 0 auto;
  padding: 16px 68px 16px 20px;
  background: #fff;
}
#participant-dashboard-modal .uk-modal-title {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}
#participant-dashboard-modal [data-dashboard-standalone] {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: #005aa9;
  text-decoration: underline;
}
#participant-dashboard-modal .uk-modal-close-default {
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #172033;
  background: #f0f2f5;
  border: 1px solid #cbd2dc;
  border-radius: 6px;
}
#participant-dashboard-modal .uk-modal-close-default:focus-visible {
  outline: 3px solid #0066c7;
  outline-offset: -3px;
}
#participant-dashboard-modal .uk-modal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  padding: 0 !important;
}
#participant-dashboard-modal .dashboard-viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  color: #27332d;
  text-align: center;
}
#participant-dashboard-modal .dashboard-viewer-loading[hidden] {
  display: none;
}
#participant-dashboard-modal .dashboard-viewer-loading strong {
  font-size: 22px;
}
#participant-dashboard-modal .dashboard-viewer-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e7e2;
  border-top-color: #153c22;
  border-radius: 50%;
  animation: dashboard-viewer-spin 1s linear infinite;
}
@keyframes dashboard-viewer-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  #participant-dashboard-modal .dashboard-viewer-spinner { animation: none; }
}
#participant-dashboard-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
