/* ──────────────────────────────────────────────────────────
 * Admin: Ad Conversions Log view
 *
 * Reuses generic admin styles (.admin-table, .reg-filter-bar,
 * .reg-row-detail, .reg-detail*, .reg-answer-table) from admin.css.
 * Only this view's bespoke pieces live here.
 * ────────────────────────────────────────────────────────── */

.conv-row {
  cursor: pointer;
}

.conv-row td {
  transition: background-color 0.12s ease;
}

.conv-row:hover td {
  background-color: #f8fafc;
}

.conv-col-toggle {
  width: 32px;
}

.conv-col-created {
  width: 150px;
}

.conv-cell-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

/* ── Platform badge ──────────────────────────────────────── */

.conv-platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.conv-platform-badge--meta {
  background: #eef2ff;
  color: #2740c4;
  border-color: #d6ddfb;
}

.conv-platform-badge--google_ads {
  background: #fff8e1;
  color: #b45309;
  border-color: #fde68a;
}

/* ── Status pill ──────────────────────────────────────────── */

.conv-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.conv-status-pill--sent {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #bde9c1;
}

.conv-status-pill--failed {
  background: #fdecec;
  color: #c62828;
  border-color: #f5c6c6;
}

/* ── Detail-pane data table ──────────────────────────────── */

.conv-data-table {
  width: 100%;
  border-collapse: collapse;
}

.conv-data-table .reg-answer-q {
  width: 34%;
  color: #6b7280;
  font-weight: 500;
}

.conv-data-table .reg-answer-a {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

/* ── Pagination footer ───────────────────────────────────── */

.conv-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

.conv-pagination-info {
  font-size: 0.85rem;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.conv-pagination .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive (match the 768px breakpoint used elsewhere) ── */

@media (max-width: 768px) {
  .conv-pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .conv-pagination-info {
    text-align: center;
  }
}
