.admin-reports-shell {
  max-width: 1060px;
}

.admin-reports-card {
  max-width: 1060px;
}

.admin-reports-back {
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
}

.admin-reports-heading,
.reports-toolbar,
.report-card-top,
.report-actions,
.reports-pagination,
.reports-modal-actions {
  display: flex;
  align-items: center;
}

.admin-reports-heading {
  justify-content: space-between;
  gap: 16px;
}

.reports-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef3f8;
  color: #42637d;
}

.reports-toolbar {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.reports-toolbar label {
  display: grid;
  gap: 5px;
  color: #667487;
  font-size: 12px;
  font-weight: 700;
}

.reports-toolbar select,
.reports-review-form select,
.reports-review-form textarea {
  border: 1px solid #c8d3df;
  border-radius: 6px;
  background: #fff;
  color: #394d60;
  font: inherit;
}

.reports-toolbar select {
  min-width: 150px;
  height: 36px;
  padding: 0 9px;
}

.reports-list {
  display: grid;
  gap: 12px;
}

.report-card {
  padding: 14px;
  border: 1px solid #dde4eb;
  border-radius: 9px;
  background: #fff;
}

.report-card-top {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.report-card-top time {
  margin-left: auto;
  color: #7b8793;
  font-size: 11px;
}

.report-type-badge,
.report-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.report-type-badge.profile {
  background: #edf4fa;
  color: #426784;
}

.report-type-badge.community {
  background: #f4f0fa;
  color: #66518a;
}

.status-pending {
  background: #fff4dc;
  color: #8a6418;
}

.status-reviewed {
  background: #edf4fa;
  color: #426784;
}

.status-dismissed {
  background: #f1f2f4;
  color: #69717d;
}

.status-actioned {
  background: #e9f7ee;
  color: #22733e;
}

.report-target-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.report-target-avatar {
  display: block;
}

.reports-avatar {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  background: #eef2f6;
}

.reports-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #53677a;
  font-size: 20px;
  font-weight: 700;
}

.report-target-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.report-target-info small,
.report-target-info span {
  color: #7a8692;
  font-size: 11px;
}

.report-target-info a,
.report-reporter a {
  color: #356b8b;
  font-weight: 700;
  text-decoration: none;
}

.report-details {
  margin-top: 12px;
  padding: 11px;
  border-radius: 7px;
  background: #f7f9fb;
  color: #465564;
  font-size: 13px;
  line-height: 1.5;
}

.report-details p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-no-details {
  color: #84909b;
}

.report-reporter,
.report-admin-note {
  margin-top: 10px;
  color: #667482;
  font-size: 12px;
}

.report-reporter small {
  color: #8b96a1;
}

.report-admin-note {
  padding: 10px;
  border-left: 3px solid #a9bbc9;
  background: #f6f9fb;
}

.report-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.report-actions a {
  text-decoration: none;
}

.admin-reports-empty {
  margin: 0;
  padding: 14px 0;
  color: #788592;
}

.admin-reports-error {
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 6px;
  background: #fff0f2;
  color: #9f2942;
}

.reports-pagination {
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.reports-pagination[hidden] {
  display: none;
}

.reports-pagination span {
  color: #657482;
  font-size: 12px;
  font-weight: 700;
}

.reports-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 27, 36, .62);
}

.reports-overlay[hidden] {
  display: none;
}

.reports-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 10px;
  background: #fff;
}

.reports-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 17px;
  border-bottom: 1px solid #e1e6ec;
}

.reports-modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.reports-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef2f6;
  font-size: 22px;
  cursor: pointer;
}

.reports-review-form {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.reports-review-form label {
  margin-top: 4px;
  color: #536372;
  font-size: 12px;
  font-weight: 700;
}

.reports-review-form select {
  height: 40px;
  padding: 0 9px;
}

.reports-review-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: 9px;
  resize: vertical;
}

.reports-review-message {
  min-height: 18px;
  color: #647280;
  font-size: 12px;
}

.reports-review-message.error {
  color: #9f2942;
}

.reports-modal-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

body.reports-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .admin-reports-heading {
    align-items: flex-start;
  }

  .reports-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .reports-toolbar label,
  .reports-toolbar select,
  .reports-toolbar button {
    width: 100%;
  }

  .report-card-top time {
    width: 100%;
    margin-left: 0;
  }

  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .report-actions a,
  .report-actions button {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }

  .reports-pagination {
    gap: 7px;
  }

  .reports-pagination button {
    flex: 1;
  }

  .reports-modal-actions {
    flex-direction: column-reverse;
  }

  .reports-modal-actions button {
    width: 100%;
  }
}


.report-content-excerpt {
  margin-top: 11px;
  padding: 10px;
  border-left: 3px solid #b7c6d3;
  background: #f6f9fb;
  color: #4c5d6c;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-type-badge.topic,
.report-type-badge.topic_reply {
  background: #edf4fa;
  color: #426784;
}

.report-content-label {
  display: block;
  margin-bottom: 6px;
  color: #40566a;
  font-size: 12px;
}
.report-content-full {
  color: #465767;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}


.report-community-origin {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f3f7fa;
  color: #647586;
  font-size: 12px;
}

.report-community-origin span {
  font-weight: 700;
}

.report-community-origin a {
  color: #356b8b;
  font-weight: 700;
  text-decoration: none;
}

.report-community-origin a:hover {
  text-decoration: underline;
}


.report-photo-evidence {
  display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px;
  align-items:start; margin-top:11px; padding:10px;
  border-radius:7px; background:#f5f8fa;
}
.report-photo-evidence img {
  display:block; width:150px; max-height:150px; object-fit:contain;
  border:1px solid #d5dfe7; background:#fff;
}
.report-photo-evidence-info {
  min-width:0; color:#596a79; font-size:12px; line-height:1.5;
}
.report-photo-evidence-info strong { display:block; margin-bottom:4px; }
.report-photo-evidence-info a { color:#356b8b; font-weight:700; text-decoration:none; }
.report-photo-evidence-info small { color:#85909a; }
.report-type-badge.photo,.report-type-badge.photo_comment {
  background:#edf4fa; color:#426784;
}
@media (max-width:520px) {
  .report-photo-evidence { grid-template-columns:1fr; }
  .report-photo-evidence img { width:100%; max-height:280px; }
}
