/* ============ OVERVIEW / HOMEPAGE ============ */
.overview-container {
  padding: 20px 24px 40px;
}
.overview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.overview-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.overview-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.overview-card-danger { border-left-color: var(--danger); }
.overview-card-danger .overview-card-value { color: var(--danger); }
.overview-card-success { border-left-color: var(--success); }
.overview-card-success .overview-card-value { color: var(--success); }
.overview-card-primary { border-left-color: var(--primary); }
.overview-card-warning { border-left-color: var(--warning); }
.overview-card-warning .overview-card-value { color: var(--warning); }
.overview-card-gold { border-left-color: #F59E0B; }
.overview-card-gold .overview-card-value { color: #F59E0B; }
.overview-card-muted { border-left-color: var(--text-muted); }

/* Starting weight date */
.starting-weight-date {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: normal;
}

@media (max-width: 700px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-card-value { font-size: 22px; }
}


/* Needs attention: named patients per bucket */
.na-title { margin-top: 28px; }
.na-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.na-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.na-group-danger { border-top-color: var(--danger); }
.na-group-primary { border-top-color: var(--primary); }
.na-group-warning { border-top-color: var(--warning); }
.na-group-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); margin-bottom: 8px;
}
.na-count { background: var(--surface-alt); border-radius: 10px; padding: 1px 8px; color: var(--text); }
.na-list { list-style: none; margin: 0; padding: 0; }
.na-item {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
}
.na-item:hover { background: var(--primary-light); }
.na-name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.na-detail { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.na-urgent .na-detail { color: var(--danger); font-weight: 600; }
.na-empty { font-size: 13px; color: var(--text-light); padding: 6px 8px; }
.na-more {
  margin-top: 6px; background: none; border: none; padding: 4px 8px;
  color: var(--primary); font-size: 12px; font-weight: 600; cursor: pointer;
}
.na-more:hover { text-decoration: underline; }

/* Open-in-GHL link */
.ghl-link { color: var(--text-light); text-decoration: none; font-size: 12px; margin-left: 6px; }
.ghl-link:hover { color: var(--primary); }
