/* =========================================================
   Admin Reports (All Reports / Single Report View)
   Theme-first: uses global :root tokens from index.css
   Single column, full width, standardized containers
   ========================================================= */

.admin-reports-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px;
}

.admin-reports-filter {
  max-width: none;
  width: 100%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-reports-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-reports-table th,
.admin-reports-table td {
  vertical-align: top;
}

/* Header row */
.bg-gray-100 {
  background: rgba(255,255,255,.04);
}

.admin-reports-table tbody tr:hover {
  background: rgba(56,189,148,.06);
}

.report-view {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 18px;
}

.report-section-title {
  margin: 24px 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--title-color);
}

/* Standard surface for big text blocks shown in view/respond pages */
.report-block {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 14px;
}

.report-block-strong {
  background: var(--surface-bg-strong);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 14px;
}

.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-respond-form {
  max-width: none;
  width: 100%;
}

.report-close-form {
  margin-top: 16px;
}

/* === Added: report view tables (users-table, report-meta-table, report-responses-table) === */
/* Shared table container used in the report view (and reused elsewhere) */
.users-table {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: saturate(1.1) blur(2px);
  padding: 12px;
  overflow: auto;
}

.users-table table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.10);
}

.users-table th,
.users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(230,238,245,.08);
  vertical-align: top;
}

.users-table th {
  width: 180px;
  text-align: left;
  font-weight: 800;
  color: rgba(230,238,245,.82);
  background: linear-gradient(180deg, rgba(16,21,29,.95), rgba(16,21,29,.85));
}

.users-table tr:last-child th,
.users-table tr:last-child td {
  border-bottom: 0;
}

/* Make the meta table comfortable on smaller screens */
.report-meta-table table {
  min-width: 520px;
}

/* Responses table has multiple columns; keep headers sticky-ish readable */
.report-responses-table th {
  position: sticky;
  top: 0;
}



/* --- SPA admin reports list polish (responsive + wider layout) --- */
.settings-wrapper.admin-reports-page {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 14px;
}

.admin-reports-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: end;
}

.admin-reports-filter .account-label {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-reports-filter .field { margin: 0; }
.admin-reports-filter .btn { align-self: stretch; min-width: 120px; }

.admin-reports-list-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px;
  box-sizing: border-box;
}

.admin-reports-table { width: 100%; min-width: 760px; table-layout: auto; font-size: 0.82rem; }

.admin-reports-table th,
.admin-reports-table td {
  padding: 6px 8px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-reports-table th { white-space: nowrap; }

.admin-reports-col-id { min-width: 56px; }
.admin-reports-col-issuer { min-width: 96px; }
.admin-reports-col-target { min-width: 112px; }
.admin-reports-col-reason { min-width: 118px; max-width: 200px; }
.admin-reports-col-status { min-width: 74px; }
.admin-reports-col-responder { min-width: 96px; }
.admin-reports-col-action { min-width: 84px; white-space: nowrap; }

.admin-reports-target-link {
  color: var(--title-color);
  text-decoration: none;
  font-weight: 700;
}
.admin-reports-target-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .admin-reports-page { padding: 12px; }
  .settings-wrapper.admin-reports-page { padding: 12px; }
  .admin-reports-filter { grid-template-columns: 1fr; align-items: stretch; }
  .admin-reports-filter .btn { width: 100%; min-width: 0; }
  .admin-reports-list-card { padding: 8px; }
}
