/*
  The Microsoft To Do import wizard, after the import screen of the approved mock (docs/mockup/hauswerk-prototyp.html,
  source grid and step markers). Builds on the tokens of hauswerk.css, so light and dark follow the theme.
*/

/* --- steps ------------------------------------------------------------------------- */

.hw-import-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.hw-import-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  text-align: center;
  color: var(--bsft-color-muted);
}

.hw-import-step i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--bsft-color-border);
  font-style: normal;
  font-weight: 700;
}

.hw-import-step.is-current {
  color: var(--bsft-color-text);
  font-weight: 700;
}

.hw-import-step.is-current i {
  border-color: var(--bsft-color-primary);
  color: var(--bsft-color-primary);
}

.hw-import-step.is-done i {
  background: var(--bsft-color-primary);
  border-color: var(--bsft-color-primary);
  color: var(--bsft-color-primary-contrast);
}

/* --- source ------------------------------------------------------------------------ */

.hw-import-sources {
  margin: 12px 0 0;
}

/* --- lists and text ---------------------------------------------------------------- */

.hw-import select,
.hw-import-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  background: var(--bsft-color-surface);
  color: var(--bsft-color-text);
  border: 1px solid var(--bsft-color-border);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}

.hw-import-text {
  resize: vertical;
}

/* --- preview ----------------------------------------------------------------------- */

.hw-import-count {
  font-size: 13px;
  color: var(--bsft-color-muted);
  white-space: nowrap;
}

.hw-import-lines {
  margin-top: 8px;
}

.hw-import-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hw-import-line.is-skipped .hw-import-name {
  color: var(--bsft-color-muted);
}

.hw-import-qty {
  font-family: var(--hw-font-mono, inherit);
  font-size: 13px;
}

.hw-import-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hw-surface-2);
  color: var(--bsft-color-muted);
}

.hw-import-chip.is-new {
  background: var(--hw-accent-soft);
  color: var(--bsft-color-primary);
  font-weight: 700;
}

.hw-import-result {
  margin: 12px 0;
}

.hw-import-result dd {
  font-weight: 700;
}

/* The preview's actions follow both lists, so the decision comes after reading them. */
.hw-import-actions {
  justify-content: flex-end;
  margin: 4px 0 12px;
}

/* Every step's actions keep a clear gap to the choices or fields above them. */
.hw-import .bsft-form-actions {
  margin-top: 16px;
}
