.survey-report-page {
  color: #fdfdfd;
  padding: 18px 12px 40px;
}

.survey-report-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.survey-report-title {
  font-size: 28px;
  font-weight: 650;
  margin: 0;
}

.survey-report-subtitle,
.survey-report-muted,
.survey-report-metric-detail {
  color: rgba(253, 253, 253, 0.72);
}

.survey-report-refresh-button {
  border-radius: 8px;
  flex-shrink: 0;
}

.survey-report-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.survey-report-filter-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
}

.survey-report-filter-label {
  color: rgba(253, 253, 253, 0.86);
  font-size: 13px;
  font-weight: 650;
  margin: 0;
  white-space: nowrap;
}

.survey-report-filter-input {
  background: #151735;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fdfdfd;
  font: inherit;
  min-width: 230px;
  padding: 9px 10px;
}

.survey-report-loading-message {
  align-items: center;
  background: rgba(24, 240, 255, 0.12);
  border: 1px solid rgba(24, 240, 255, 0.35);
  border-radius: 8px;
  color: #fdfdfd;
  font-weight: 650;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.survey-report-loading-message::before {
  animation: survey-report-spin 0.9s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #18f0ff;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 16px;
  width: 16px;
}

.survey-report-warning-note {
  background: rgba(255, 214, 102, 0.14);
  border: 1px solid rgba(255, 214, 102, 0.35);
  border-radius: 8px;
  color: #fdfdfd;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 4px;
  padding: 10px 12px;
}

.survey-report-warning-note strong {
  color: #ffd666;
}

@keyframes survey-report-spin {
  to {
    transform: rotate(360deg);
  }
}

.survey-report-metrics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.survey-report-metric,
.survey-report-panel {
  background: #1b1d3c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.survey-report-metric {
  min-height: 112px;
  padding: 18px;
}

.survey-report-metric-label {
  color: rgba(253, 253, 253, 0.76);
  font-size: 13px;
  text-transform: uppercase;
}

.survey-report-metric-value {
  color: #18f0ff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 8px;
}

.survey-report-metric-detail {
  font-size: 12px;
  margin-top: 8px;
}

.survey-report-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  margin-bottom: 14px;
}

.survey-report-panel {
  min-height: 0;
  padding: 16px;
}

.survey-report-panel .dash-graph {
  height: 520px;
  max-height: 520px;
}

.survey-report-panel .dash-table-container {
  max-height: 560px;
  overflow: auto;
}

.survey-report-panel-title {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
}

.survey-report-subpanel-title {
  color: rgba(253, 253, 253, 0.86);
  font-size: 14px;
  font-weight: 650;
  margin: 14px 0 10px;
}

.survey-report-dropout-summary {
  margin-bottom: 8px;
}

.survey-report-dropout-highlight {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.survey-report-dropout-highlight strong {
  color: #d8b836;
  font-size: 28px;
}

.survey-report-dropout-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
}

.survey-report-dropout-table-wrap {
  min-width: 0;
}

.survey-report-logic-badge {
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding: 8px 10px;
}

.survey-report-logic-badge.is-pass {
  background: rgba(0, 255, 64, 0.12);
  color: #74ff91;
}

.survey-report-logic-badge.is-fail {
  background: rgba(255, 118, 117, 0.14);
  color: #ff9b99;
}

.survey-report-logic-stats {
  display: grid;
  gap: 10px;
}

.survey-report-logic-stats > div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.survey-report-logic-stats strong {
  color: #d8b836;
  font-size: 22px;
}

@media (max-width: 1100px) {
  .survey-report-metrics-grid,
  .survey-report-grid,
  .survey-report-dropout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .survey-report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .survey-report-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-report-filter-input {
    min-width: 0;
    width: 100%;
  }

  .survey-report-metrics-grid,
  .survey-report-grid,
  .survey-report-dropout-grid {
    grid-template-columns: 1fr;
  }
}
