/* ── Certification Checklist Styles ─────────────────────────────────────────
   Append to app/assets/stylesheets/site_dashboard.css
   ─────────────────────────────────────────────────────────────────────────── */

/* Step header icon */
.checklist-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.checklist-step-icon--pending        { background: var(--sd-border-solid, #e2e0d8); color: var(--sd-text-muted); }
.checklist-step-icon--in_progress    { background: var(--sd-info-lt, #dbeafe);      color: var(--sd-info, #1d4ed8); }
.checklist-step-icon--completed      { background: var(--sd-success-lt, #dcfce7);   color: var(--sd-success, #15803d); }
.checklist-step-icon--not_applicable { background: var(--sd-border-solid, #e2e0d8); color: var(--sd-text-muted); }

/* Caret for expand/collapse */
.checklist-caret {
  font-size: 0.85rem;
  color: var(--sd-text-muted);
  transition: transform 0.2s ease;
  display: inline-block;
}

.checklist-caret--open { transform: rotate(180deg); }

/* Hidden task list */
.checklist-tasks--hidden { display: none; }

/* Task type group heading */
.checklist-task-group {
  border-top: 1px solid var(--sd-border, rgba(255,255,255,0.125));
}

.checklist-task-group__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sd-text-muted);
  padding: 0.5rem 1rem 0.25rem;
  background: rgba(17, 25, 40, 0.04);
}

/* Individual task row */
.checklist-task-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--sd-border, rgba(255,255,255,0.125));
  transition: background 0.12s;
}

.checklist-task-row:last-child { border-bottom: none; }

.checklist-task-row:hover { background: rgba(17, 25, 40, 0.04); }

.checklist-task-row--completed      { background: rgba(0, 179, 104, 0.04); }
.checklist-task-row--not_applicable { opacity: 0.55; }

/* Checkbox icon */
.checklist-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.checklist-check--pending { border: 2px solid var(--sd-border-solid, #e2e0d8); color: transparent; }
.checklist-check--done    { background: var(--sd-success, #15803d); color: #fff; }
.checklist-check--na      { background: var(--sd-border-solid, #e2e0d8); color: var(--sd-text-muted); font-size: 0.75rem; }

/* Task body */
.checklist-task-row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checklist-task-row__name { font-size: 0.84rem; color: var(--sd-text); }
.checklist-task-row__name--done { text-decoration: line-through; color: var(--sd-text-muted); }
.checklist-task-row__name--na   { color: var(--sd-text-muted); }

.checklist-task-row__meta {
  font-size: 0.7rem;
  color: var(--sd-text-muted);
}

/* Action buttons */
.checklist-task-row__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
  align-items: center;
}
