/* WGM CRM v203 — Follow-Ups only. */
.followup-page {
  --fu-border: #ded3c2;
  --fu-muted: #625c53;
  padding-bottom: 88px;
}

.followup-page-header {
  align-items: flex-start;
  margin-bottom: 18px;
}

.followup-page .page-sub {
  color: var(--fu-muted);
  font-size: 13px;
  margin-top: 4px;
}

.followup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.followup-summary-card {
  appearance: none;
  background: #fff;
  border: 1px solid var(--fu-border);
  border-left: 4px solid #9a9286;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  min-height: 92px;
  padding: 14px 15px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.followup-summary-card:hover,
.followup-summary-card:focus-visible {
  border-color: #9a7b34;
  box-shadow: 0 5px 18px rgba(45, 37, 25, .09);
  outline: none;
  transform: translateY(-1px);
}

.followup-summary-card span,
.followup-summary-card small {
  color: var(--fu-muted);
  display: block;
}

.followup-summary-card span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.followup-summary-card strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  line-height: 1.1;
  margin: 4px 0;
}

.followup-summary-card small { font-size: 11px; }
.followup-summary-card.is-danger { border-left-color: #c7443e; }
.followup-summary-card.is-today { border-left-color: #c58b22; }
.followup-summary-card.is-upcoming { border-left-color: #3978a8; }
.followup-summary-card.is-complete { border-left-color: #43835f; }

.followup-toolbar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--fu-border);
  border-radius: 12px;
  box-shadow: none;
  gap: 12px;
  margin-bottom: 12px;
}

.followup-toolbar .wgm-filter-row {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.followup-toolbar .search-input {
  border-color: var(--fu-border);
  color: var(--ink);
  flex: 0 1 310px;
  min-width: 220px;
}

.followup-toolbar .search-input::placeholder { color: #81796d; }

.followup-table-card {
  border-color: var(--fu-border);
  box-shadow: 0 8px 24px rgba(45, 37, 25, .06);
}

.followup-table-card .table-title { color: var(--ink); }
.followup-table { min-width: 1020px; }
.followup-table thead th {
  background: #f4eee4;
  color: #514a40;
  position: sticky;
  top: 0;
  z-index: 1;
}

.followup-table tbody tr:hover { background: #fffaf1; }
.followup-table td { color: #3f3a33; }

.followup-record-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #255f86;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 3px 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(37, 95, 134, .3);
  text-underline-offset: 3px;
}

.followup-record-link.is-project {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.followup-record-link:hover,
.followup-record-link:focus-visible {
  color: #173f5a;
  outline: 2px solid rgba(37, 95, 134, .25);
  outline-offset: 2px;
}

.followup-badge-today {
  background: #fff0c9;
  border: 1px solid #d6a33a;
  color: #6f4a00;
}

.followup-page .badge.b-red {
  background: #fde5e2;
  border: 1px solid #dc8c84;
  color: #8a2823;
}

.followup-page .badge.b-green {
  background: #e1f2e7;
  border: 1px solid #8fc5a2;
  color: #245c3a;
}

@media (max-width: 900px) {
  .followup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .followup-toolbar { align-items: stretch; flex-direction: column; }
  .followup-toolbar .search-input { flex-basis: auto; min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
  .followup-page-header { gap: 12px; }
  .followup-page-header .btn-primary { min-height: 44px; width: 100%; }
  .followup-summary-card { min-height: 84px; padding: 12px; }
  .followup-summary-card strong { font-size: 24px; }
  .followup-toolbar { padding: 10px; }
  .followup-table-card .table-toolbar { padding: 12px 14px; }
}
