/* "Sync with timesheets" modal (issue #308 Stage 2). Built on Bootstrap's
   CSS variables so it follows the light and dark themes. */

/* ── Stepper: full-width, one segment per step ───────────────────────── */
.ps-steps {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ps-step {
  flex: 1 1 0;
  min-width: 0;
}

.ps-step-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--bs-secondary-bg);
  margin-bottom: 0.6rem;
}

.ps-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.ps-step-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color);
}

.ps-step-label {
  font-weight: 600;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-step.is-current .ps-step-bar,
.ps-step.is-current .ps-step-dot { background: var(--bs-primary); color: #fff; }
.ps-step.is-current .ps-step-label { color: var(--bs-primary); }
.ps-step.is-done .ps-step-bar,
.ps-step.is-done .ps-step-dot { background: var(--bs-success); color: #fff; }
.ps-step.is-done .ps-step-label { color: var(--bs-body-color); }

/* ── Scope bar ───────────────────────────────────────────────────────── */
.ps-scope {
  background: var(--bs-tertiary-bg);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.ps-scope-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color);
}

/* ── Section cards (one per kind / effect) ───────────────────────────── */
.ps-section {
  border: 1px solid var(--bs-border-color-translucent);
  border-left: 4px solid var(--ps-tone, var(--bs-secondary));
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--bs-body-bg);
}

.ps-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.ps-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--ps-tone, var(--bs-secondary));
  background: color-mix(in srgb, var(--ps-tone, var(--bs-secondary)) 14%, transparent);
}

.ps-section-title {
  font-weight: 600;
  margin: 0;
}

.ps-tone-primary   { --ps-tone: var(--bs-primary); }
.ps-tone-success   { --ps-tone: var(--bs-success); }
.ps-tone-warning   { --ps-tone: var(--bs-warning); }
.ps-tone-danger    { --ps-tone: var(--bs-danger); }
.ps-tone-secondary { --ps-tone: var(--bs-secondary); }
.ps-tone-dark      { --ps-tone: var(--bs-dark-text-emphasis, var(--bs-dark)); }
.ps-tone-info      { --ps-tone: var(--bs-info); }

.ps-section table > :not(caption) > * > * {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.ps-section thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Inline chips ────────────────────────────────────────────────────── */
.ps-hours {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.badge.ps-hours {
  font-size: 0.8rem;
  padding: 0.35em 0.7em;
  border: 1px solid var(--bs-border-color-translucent);
}

.ps-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  flex-shrink: 0;
}

/* Resolution choices: a segmented control that wraps on narrow screens. */
.ps-choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ps-choices .btn {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
}

/* ── Confirm step ────────────────────────────────────────────────────── */
.ps-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--bs-primary-bg-subtle);
  margin-bottom: 1rem;
}

.ps-hero-number {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bs-primary-text-emphasis);
}

.ps-effect-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-effect-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.ps-effect-list li:last-child {
  border-bottom: 0;
}
