/* Checklists: the list, each checklist (also on the Events page and the dashboard) and the form
   (checklists spec). Mobile first; the form reuses .decision-form. */
.checklist-list {
  max-width: 720px;
  margin: 12px 0 16px;
}

.checklist {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.checklist--cancelled {
  opacity: 0.75;
}

/* Under an event, a checklist sits inside the event's own box. */
.event .checklist {
  margin: 8px 0 0;
  background: var(--color-bg);
}

.checklist__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.checklist__items {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 44px;
}

.checklist__item--ticked .checklist__text {
  color: var(--color-muted);
  text-decoration: line-through;
}

.checklist__tick-form {
  display: contents;
}

.checklist__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: 1.375rem;
  cursor: pointer;
}

.checklist__item--ticked .checklist__tick {
  color: var(--color-success);
}

.checklist__tick--static {
  cursor: default;
}

.checklist__text {
  flex: 1 1 8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.checklist__ticked-by,
.checklist__email {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.checklist__email {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.checklist__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.checklist__add {
  display: flex;
  flex: 1 1 100%;
  gap: 8px;
}

.checklist__add input[type="text"] {
  flex: 1;
  min-width: 0;
}

.checklist-form__for,
.checklist-form__items {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.checklist-form__choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checklist-form__choice select {
  flex: 1 1 12rem;
  max-width: 100%;
}

.checklist-form__rows {
  margin: 0 0 8px;
  padding-left: 1.5rem;
}

.checklist-form__row {
  margin-bottom: 8px;
}

.checklist-form__row input[type="text"] {
  width: calc(100% - 6rem);
  max-width: 100%;
}

.checklist-form__remove {
  margin-left: 8px;
  color: var(--color-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
