/* Goal catalogue and dedicated detail view follow the existing customer theme. */
.wp .wf-queue.wp-save-bar{align-items:center;gap:14px}.wp .wf-queue.wp-save-bar>strong{flex:1 1 240px;min-width:0;line-height:1.5;overflow-wrap:anywhere}.wp .wf-queue.wp-save-bar>.wf-btn{flex:0 0 auto;min-width:140px;min-height:46px;white-space:nowrap}
@media(max-width:700px){.wp .wf-queue.wp-save-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px))}.wp .wf-queue.wp-save-bar>strong{margin:0;font-size:13px}.wp .wf-queue.wp-save-bar>.wf-btn{width:100%;min-width:0;min-height:48px;padding:12px 18px;font-size:14px;line-height:1.5}}
.wp .wp-goal-card{display:flex;flex-direction:column;gap:12px;min-width:0;cursor:default}.wp .wp-goal-card>.wf-btn{align-self:stretch;margin-top:auto}.wp .wp-goal-card .wp-goal-heading{align-items:flex-start}.wp .wp-goal-card strong{overflow-wrap:anywhere}.wp .wp-unsold-setting{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.wp .wp-unsold-setting .wf-check{align-items:flex-start;line-height:1.6}.wp .wp-unsold-setting .wf-note{font-size:12px;line-height:1.6;margin-bottom:0}.wp .wf-heading h2:focus{outline:none}.wp .wp-goal-details{min-width:0}.wp .wp-goal-details>.wp-selected-heading{padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:18px}
.wp-steps {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  gap: .6rem;
  padding: 0;
  margin: 0 0 1rem;
}
.wp-steps li {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--muted-text);
  font-size: .82rem;
  overflow-wrap: anywhere;
}
.wp-steps li span {
  display: grid;
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}
.wp-steps li[aria-current="step"] {
  border-color: var(--brand);
  background: var(--brand-faint);
  color: var(--brand-deep);
  font-weight: 700;
}
.wp-steps li[aria-current="step"] span {
  background: var(--brand);
  color: var(--brand-on);
}
.wp-steps li.done span { background: var(--brand-soft); color: var(--brand-deep); }
.wp-step-fields { display: grid; gap: 1rem; }
.wp-goal-stock-settings {
  display: grid;
  gap: .5rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface-2);
}
.wp-goal-stock-settings .wf-note { margin: 0; }
.wp-step-actions { display: flex; justify-content: space-between; gap: .65rem; margin-top: 1.2rem; }
.wp-step-actions .wf-btn { min-height: 44px; }
.wp-step h3:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.wp-color-plan { display: grid; gap: .45rem; padding: .65rem; }
.wp-color-row {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap: .55rem;
  align-items: stretch;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
}
.wp-color-title,.wp-color-metric { display: grid; align-content: center; gap: .2rem; min-width: 0; overflow-wrap: anywhere; }
.wp-color-title small,.wp-color-metric span { color: var(--muted-text); font-size: .77rem; }
.wp-color-metric { padding: .45rem; border-radius: .45rem; }
.wp-color-needed { background: var(--brand-faint); color: var(--brand-deep); }
.wp-color-needed strong { font-size: 1.15rem; }
.wp-color-needed.wp-production-complete,
.wp .wf-card.wp-production-complete,
.wp .wp-badge.wp-production-complete {
  background: var(--success-bg);
  color: var(--success);
}
.wp-color-needed.wp-production-complete > span,
.wp .wf-card.wp-production-complete > :is(span, small) { color: inherit; }
.wp-color-completion { font-size: .72rem; font-weight: 650; }
.wp-complete-text { color: var(--success); }
.wp-plan-extra { display: grid; min-width: 0; }
.wp-plan-extra > summary {
  cursor: pointer;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}
.wp-plan-extra > section { margin-top: .8rem; }
.wp-save-bar .wf-actions { margin: 0; }
.wg-stock-ranking { min-width: 0; }
.wg-stock-ranking .panel-heading { margin-bottom: .7rem; }
.wg-stock-rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  align-items: start;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wg-stock-rank-list + button { margin-top: .65rem; }
.wg-stock-rank-card {
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--surface-2);
}
.wg-stock-rank-header, .wg-stock-rank-colors li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem;
}
.wg-stock-rank-header { flex-wrap: wrap; margin-bottom: .35rem; }
.wg-stock-rank-header h4 { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.wg-stock-rank-quantity { color: var(--brand-deep); font-size: .9rem; font-variant-numeric: tabular-nums; }
.wg-stock-rank-unit { font-size: .72rem; font-weight: 550; }
.wg-stock-rank-colors { margin: 0; padding: 0; list-style: none; }
.wg-stock-rank-colors li { padding: .21rem 0; border-top: 1px solid var(--line); font-size: .77rem; }
.wg-stock-rank-colors span { min-width: 0; overflow-wrap: anywhere; }
.wg-stock-rank-colors b { flex: none; font-variant-numeric: tabular-nums; }
.wg-stock-rank-more { margin-top: .25rem; min-height: 2rem; padding: .25rem .35rem; color: var(--brand-deep); }
.wg-alert-content { min-width: 0; overflow-wrap: anywhere; }
.wg-alert-movement { width: fit-content; max-width: 100%; min-height: 2.35rem; margin-top: .7rem; }
@media (max-width:700px) {
  .wg-stock-rank-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.75rem), 1fr)); }
  .wp-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wp-step-actions { flex-wrap: wrap; }
  .wp-step-actions > button { flex: 1 1 130px; }
  .wp-color-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .wp-color-title { grid-column: 1 / -1; }
  .wp-save-bar .wf-actions { display: grid; width: 100%; }
}
