/* Org Admin dashboard — additional styles on top of analytics.css tokens */

/* Campaign tiles */
.oa-camp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--aq-line);
}
.oa-camp {
  display: flex;
  border-right: 1px solid var(--aq-line);
  border-bottom: 1px solid var(--aq-line);
  position: relative;
  background: rgba(255,255,255,0.005);
  transition: background 160ms;
  cursor: pointer;
}
.oa-camp:hover { background: var(--aq-surface-2); }
.oa-camp-grid > .oa-camp:nth-child(3n) { border-right: 0; }
.oa-camp-grid > .oa-camp:nth-last-child(-n+3) { border-bottom: 0; }
.oa-camp-bar {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  opacity: 0.85;
}
.oa-camp-body {
  padding: 14px 16px 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.oa-camp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-family: var(--aq-ff-mono);
}
.oa-camp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--aq-text-dim);
}
.oa-camp-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aq-text-faint);
}
.oa-camp-status.is-live { color: var(--aq-success); }
.oa-camp-status.is-live .dot { background: var(--aq-success); box-shadow: 0 0 6px var(--aq-success); }
.oa-camp-status.is-scheduled { color: var(--aq-accent); }
.oa-camp-status.is-scheduled .dot { background: var(--aq-accent); }
.oa-camp-status.is-draft { color: var(--aq-text-faint); }

.oa-camp-scope {
  color: var(--aq-text-faint);
  border-left: 1px solid var(--aq-line);
  padding-left: 8px;
}
.oa-camp-end {
  margin-left: auto;
  color: var(--aq-text-faint);
}
.oa-camp-name {
  font-family: var(--aq-ff-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--aq-text);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.oa-camp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.oa-camp-stat-label {
  font-size: 10.5px;
  color: var(--aq-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.oa-camp-stat-value {
  font-family: var(--aq-ff-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--aq-text);
}
.oa-camp-empty {
  font-size: 12px;
  color: var(--aq-text-faint);
  font-style: italic;
  padding: 12px 0;
}
.oa-camp-spark {
  width: 100%;
  height: 24px;
  margin-top: auto;
  display: block;
}

/* Sites table */
.oa-sites-head, .oa-sites-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.4fr) 110px 90px 80px minmax(0, 1.1fr) 60px 28px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--aq-line);
  font-size: 12.5px;
}
.oa-sites-head {
  font-size: 10.5px;
  color: var(--aq-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  background: rgba(255,255,255,0.012);
  padding: 8px 16px;
}
.oa-sites-row:hover { background: var(--aq-surface-2); }
.oa-sites-row:last-child { border-bottom: 0; }
.oa-site-name-cell { min-width: 0; }
.oa-site-name {
  color: var(--aq-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12.5px;
}
.oa-site-city {
  color: var(--aq-text-faint);
  font-size: 10.5px;
  margin-top: 1px;
}
.oa-site-warning {
  color: var(--aq-warn);
  font-size: 10px;
  font-family: var(--aq-ff-mono);
  margin-top: 3px;
}
.oa-site-exhibit {
  color: var(--aq-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

/* Approvals */
.oa-approval-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--aq-accent-soft);
  color: var(--aq-accent);
}
.oa-approval-icon[data-kind="creative"] {
  background: color-mix(in srgb, var(--aq-warn) 14%, transparent);
  color: var(--aq-warn);
}
.oa-approve-btn {
  height: 22px;
  padding: 0 10px;
  font: inherit;
  font-size: 11px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--aq-success) 38%, transparent);
  background: color-mix(in srgb, var(--aq-success) 14%, transparent);
  color: var(--aq-success);
  cursor: pointer;
}
.oa-approve-btn:hover { background: color-mix(in srgb, var(--aq-success) 22%, transparent); }

/* Activity */
.oa-activity {
  display: flex;
  flex-direction: column;
}
.oa-activity-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--aq-line);
  font-size: 12px;
  color: var(--aq-text-muted);
}
.oa-activity-row:last-child { border-bottom: 0; }
.oa-activity-row strong { color: var(--aq-text); font-weight: 500; }
.oa-activity-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aq-text-faint);
  margin: 0 auto;
}
.oa-activity-row.is-warn .oa-activity-dot { background: var(--aq-warn); box-shadow: 0 0 6px var(--aq-warn); }
.oa-activity-row.is-success .oa-activity-dot { background: var(--aq-success); }
.oa-activity-row.is-info .oa-activity-dot { background: var(--aq-accent); }

/* Revenue bars */
.oa-rev { display: flex; flex-direction: column; gap: 8px; }
.oa-rev-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 2fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.oa-rev-name {
  color: var(--aq-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-rev-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
}
.oa-rev-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--aq-accent), color-mix(in srgb, var(--aq-accent) 60%, var(--aq-success)));
  border-radius: 3px;
}
.oa-rev-amt {
  font-family: var(--aq-ff-mono);
  font-variant-numeric: tabular-nums;
  color: var(--aq-text);
  font-size: 12px;
}
