/* ======================================
   Dashboard UI Design Pass
   ====================================== */

.dashboard-page h2 {
  margin: 0 0 6px;
}

.dashboard-page p {
  margin: 0;
}

.dashboard-page.rdl-center-titles h1,
.dashboard-page .rdl-pagehead p {
  text-align: center;
}

.dashboard-page .rdl-panel h2,
.dashboard-page .rdl-panel h3,
.dashboard-page .rdl-panel p,
.dashboard-page .rdl-panel li,
.dashboard-page #reportDetail,
.dashboard-page #reportDetailEmpty {
  text-align: left;
}

.dashboard-page .rdl-panel {
  margin-top: 12px;
}

#reportsStatus,
#referralStatus {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
}

#reportsList {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none;
  display: grid;
  gap: 10px;
}

#reportsList li {
  margin: 0;
}

#reportsList button[data-report-id] {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 12px;
}

#reportDetail {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.report-meta {
  display: grid;
  gap: 10px;
}

.report-meta-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.report-meta-row strong {
  color: rgba(255, 255, 255, 0.82);
}

.report-summary {
  margin: 2px 0 0;
  padding: 10px 12px;
  line-height: 1.62;
  border-left: 2px solid rgba(120, 170, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

#reportDetail h3 {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.report-bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.62;
}

.report-bullets li {
  margin: 0 0 8px;
  padding-left: 2px;
}

#reportDetailJson {
  margin: 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  max-height: 360px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

#reportPdfBtn {
  min-width: 160px;
}

.report-actions {
  margin-top: 2px;
}

.report-raw {
  margin-top: 6px;
}

#reportDetailEmpty {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
}

#referralForm {
  margin-top: 6px;
}

#referralConfirmCard {
  margin-top: 12px;
}

#referralList {
  margin-top: 10px !important;
  padding-left: 0 !important;
  list-style: none;
  display: grid;
  gap: 8px;
}

#referralList li {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .report-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
