/* Shared administration actions and agent activity audit. */
.agent-profile-heading { grid-template-columns: 54px minmax(0, 1fr) auto auto; }
.agent-profile-heading > .secondary-button { justify-self: end; }
.data-row > .secondary-button { flex: none; }
.status-row-button { min-height: 40px; border-radius: 8px; }
.config-page-heading > .secondary-button { min-height: 40px; }
.default-view-actions { flex-wrap: wrap; }
.default-view-actions > a,
.default-view-actions button,
.restore-default-views button,
.personal-view-order > form:last-child button,
.custom-views-panel article form button,
.macro-row form button,
.migration-jobs form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  border: 1px solid #c7d3cd;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--green-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.default-view-actions > a:hover,
.default-view-actions button:hover,
.restore-default-views button:hover,
.personal-view-order > form:last-child button:hover,
.custom-views-panel article form button:hover,
.macro-row form button:hover,
.migration-jobs form button:hover { border-color: #8eb9a0; background: #f5faf7; }
.default-view-actions button.danger { border-color: #e8c1bd; background: #fff7f6; color: #a13f36; }

.agent-activity-page { display: grid; gap: 20px; }
.agent-activity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.agent-activity-heading h1 { margin: 0; color: var(--green-dark); font-size: 28px; line-height: 1.25; letter-spacing: -.55px; }
.agent-activity-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.agent-activity-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.agent-activity-kpis article { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.agent-activity-kpis span { display: block; color: var(--muted); font-size: 11px; }
.agent-activity-kpis strong { display: block; margin-top: 7px; color: var(--green-dark); font-size: 23px; }
.agent-activity-panel { padding: 0; overflow: hidden; }
.agent-activity-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.agent-activity-panel h2 { margin: 0; color: var(--green-dark); font-size: 17px; }
.agent-activity-panel header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.agent-activity-table { overflow-x: auto; }
.agent-activity-table table { width: 100%; min-width: 780px; border-collapse: collapse; }
.agent-activity-table th,
.agent-activity-table td { padding: 13px 16px; border-bottom: 1px solid #edf1ef; text-align: left; font-size: 11px; vertical-align: top; }
.agent-activity-table th { background: #f8faf9; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .45px; }
.agent-activity-table td { color: #4f5e57; }
.agent-activity-table td:first-child,
.agent-activity-table td:nth-child(2) { white-space: nowrap; }
.agent-activity-note { display: flex; gap: 9px; margin: 0; padding: 14px 18px; color: var(--muted); background: #fbfcfb; font-size: 11px; line-height: 1.5; }
.agent-activity-note span { color: var(--green); }

@media (max-width: 850px) {
  .agent-activity-kpis { grid-template-columns: 1fr 1fr; }
  .agent-activity-heading { align-items: stretch; flex-direction: column; }
  .agent-activity-heading .secondary-button { width: 100%; }
}

@media (max-width: 650px) {
  .agent-profile-heading { grid-template-columns: 46px minmax(0, 1fr); }
  .agent-profile-heading > .status-pill { grid-column: 1 / -1; }
  .agent-profile-heading > .secondary-button { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .agent-activity-kpis { grid-template-columns: 1fr; }
}
