/* ============================================================
   Dashboard — Apex reskin (page-specific)
   ------------------------------------------------------------
   Loads AFTER main.css so these rules override the global
   card/widget styles for the "/" dashboard ONLY. Built purely
   on the :root tokens from main.css + the shared ax-ui layer.
   No DOM is changed; every selector below already exists in
   the markup or is emitted by dashboard.js.
   ============================================================ */

/* ---- Welcome banner: calm surface, drop the heavy gradient ---- */
.content .welcome-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  color: var(--text-dark);
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
}

.content .welcome-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.content .welcome-card p {
  font-size: 14px;
  color: var(--text-muted);
  opacity: 1;
}

/* ---- Stat cards ---- */
.content .stats-grid {
  gap: 16px;
  margin-bottom: 28px;
}

.content .stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.content .stat-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.06);
}

.content .stat-icon {
  width: 44px;
  height: 44px;
  /* Brand-tinted tile. --primary-50 is derived from the tenant's brand colour
     by nav.js when brand theming is on (rosewood for NOMAE); it is unset for
     every other tenant, so the --green-50 fallback keeps their tile identical. */
  background: var(--primary-50, var(--green-50));
  border: 1px solid var(--green-100);
  border-radius: 12px;
}

.content .stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 2;
}

.content .stat-info h3 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.1;
}

.content .stat-info p {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ---- Clients Needing Attention widget ---- */
.content .attention-widget {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
}

.content .attention-title h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.content .attention-count {
  background: var(--error);
}

.content .attention-toggle {
  color: var(--primary);
  font-weight: 600;
}

.content .attention-summary-item {
  color: var(--text-medium);
}

.content .attention-list {
  border-top: 1px solid var(--border-light);
}

.content .attention-patient {
  border-bottom: 1px solid var(--border-light);
}

.content .attention-patient:hover {
  background: var(--bg-light);
}

.content .attention-patient-name {
  color: var(--text-dark);
}

/* ---- Today's Overview: two editorial cards ---- */
.content .today-overview-col {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
}

.content .today-overview-header {
  color: var(--primary);
  margin-bottom: 16px;
}

.content .today-overview-header h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.content .today-appt-item,
.content .today-task-item {
  background: var(--bg-light);
  border-radius: 10px;
}

.content .today-appt-item:hover,
.content .today-task-item:hover {
  background: var(--green-50);
}

.content .today-appt-time {
  color: var(--primary);
}

.content .today-appt-client,
.content .today-task-title {
  color: var(--text-dark);
}

.content .today-overview-more {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Quick Actions ---- */
.content .quick-actions h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.content .action-grid {
  gap: 16px;
}

.content .action-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.content .action-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 31, 26, 0.08);
}

.content .action-icon {
  width: 44px;
  height: 44px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
}

.content .action-icon svg {
  stroke: var(--primary);
  stroke-width: 2;
}

.content .action-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.content .action-card p {
  font-size: 13px;
  color: var(--text-muted);
}
