/* Darling's Real Conversations - Reports Section
 * Companion stylesheet for public/js/reports-view.js and the report modules.
 * Kept separate from styles.css, which is already well over the 1,000-line limit.
 */

/* ── Shared toolbar controls ────────────────────────────────────────────────── */
/* .ap-date / .ap-date-label / .ap-btn-link / .ap-btn are referenced by the Audit Log
 * toolbar but were only ever styled inline there. Defining them properly here gives
 * both views consistent controls. */

.ap-date-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ap-date {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.ap-date:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 64, 143, 0.1);
}

.ap-btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-family: inherit;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
}

.ap-btn-link:hover { text-decoration: underline; }

.ap-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.ap-btn:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }

.ap-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Report layout ──────────────────────────────────────────────────────────── */

.rpt-toolbar {
  flex-wrap: wrap;
}

/* The count chip already claims margin-left:auto, so the buttons that follow it sit
 * flush against the right edge without a second auto margin fighting it. */
.rpt-toolbar .ap-user-count + .ap-btn {
  margin-left: var(--space-sm);
}

.rpt-group {
  margin-bottom: var(--space-2xl);
}

.rpt-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--primary);
}

.rpt-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 var(--space-sm);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.rpt-location {
  margin-bottom: var(--space-xl);
}

.rpt-location-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.rpt-location-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.rpt-cell-name { font-weight: 600; }
.rpt-cell-date { white-space: nowrap; color: var(--text-secondary); }

.rpt-note {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
}
