/* css/page-activities.css — page-scoped styles for the Activities page
 * (js/pages/activities.js). Owned by the Activities page agent; add rules here so
 * page work never touches shared main.css / chrome.css / datatable.css. */

/* Header: title/subtitle on the left, primary action on the right. */
.act-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.act-header .act-new-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Four computed stat cards (reuses .stats-row/.stat-card from main.css). */
.act-stats {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .act-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Quick-filter pill row. */
.act-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.85rem;
}
.act-pill {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
  background: var(--bg-primary, #fff);
  color: var(--color-text-secondary, #6b7280);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.act-pill:hover {
  border-color: var(--color-primary, #4f46e5);
  color: var(--color-primary, #4f46e5);
}
.act-pill.active {
  background: var(--color-primary, #4f46e5);
  border-color: var(--color-primary, #4f46e5);
  color: #fff;
}

/* Table cell rendering. */
.act-subject { font-weight: 500; }
.act-subject-done {
  text-decoration: line-through;
  color: var(--text-muted, #9ca3af);
  font-weight: 400;
}
.act-overdue {
  color: var(--color-danger, #dc2626);
  font-weight: 600;
}
.act-muted { color: var(--text-muted, #9ca3af); }

.act-done-toggle {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary, #4f46e5);
  vertical-align: middle;
}

/* Linked-To chips. */
.act-chip {
  display: inline-block;
  max-width: 140px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.act-chip-deal    { background: #eef2ff; color: #4338ca; }
.act-chip-org     { background: #ecfeff; color: #0e7490; }
.act-chip-contact { background: #f0fdf4; color: #15803d; }

/* Editor / detail drawer form. */
.act-req { color: var(--color-danger, #dc2626); }
.act-form-row {
  display: flex;
  gap: 0.75rem;
}
.act-form-row .form-group {
  flex: 1;
  min-width: 0;
}
.act-done-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.act-done-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary, #4f46e5);
  cursor: pointer;
}

.act-drawer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.act-footer-right {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
