/* Plan Dashboard — three-card "what needs my attention" page */

.plan-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .plan-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-dashboard-grid > .card:last-child {
    grid-column: 1 / -1;
  }
}

/* Program switcher in the page header */
.plan-dashboard-program-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.plan-dashboard-program-switcher label {
  font-weight: 500;
  color: var(--medium-gray, #6c757d);
  font-size: 0.875rem;
}

/* Cycle Outlook — gap row distinction */
.plan-dashboard-gap-row {
  background-color: var(--light-gray, #f8f9fa);
  color: var(--medium-gray, #6c757d);
  font-style: italic;
}

.plan-dashboard-gap-row td:first-child {
  font-weight: 500;
}

/* Weekly Planning Gaps — compact stacked list */
.plan-dashboard-week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-dashboard-week {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.9375rem;
}

.plan-dashboard-week strong {
  font-weight: 600;
  min-width: 8.5rem;
}

.plan-dashboard-week a {
  margin-left: auto;
  font-size: 0.875rem;
}

.plan-dashboard-week-no_plan {
  border-left: 3px solid var(--alert-warning-border, #fbbf24);
}

.plan-dashboard-week-draft {
  border-left: 3px solid var(--primary-color, #007bff);
}

.plan-dashboard-week-ready {
  color: var(--medium-gray, #6c757d);
  border-left: 3px solid var(--alert-success-border, #16a34a);
}

/* Sessions Needing Attention — uses the shared .tiled-cards grid
   and basecoat .badge / .btn primitives for tile contents. */

/* The .card stretches to row height in the grid; let .card-content
   absorb any extra space so the footer pins to the bottom edge. */
.plan-dashboard-session-tile > .card-content {
  flex: 1;
}

.plan-dashboard-session-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

.plan-dashboard-session-row-label {
  font-weight: 600;
  color: var(--medium-gray, #6c757d);
  flex-shrink: 0;
}

.plan-dashboard-session-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.plan-dashboard-session-missing-row .plan-dashboard-session-row-label {
  color: var(--danger-color, #dc3545);
}

.plan-dashboard-session-scheduled-link {
  display: inline-flex;
  text-decoration: none;
}

.plan-dashboard-session-scheduled-link:hover .badge,
.plan-dashboard-session-scheduled-link:focus-visible .badge {
  outline: 2px solid var(--dark-gray, #1f2937);
  outline-offset: 1px;
}
