/* 叫貨設定 →「原料對應」頁(public/proc-map-ui.js)。外框、卡片、勾選清單沿用 proc-ui.css。舊 WebView:不用 grid、flex gap。 */
.pmap { max-width: 760px; }
.pmap-lead { margin: 0 0 10px; }
.pmap-step { margin: 0 0 14px; }
.pmap-st { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; }
.pmap-no { display: inline-block; width: 26px; height: 26px; line-height: 26px; margin-right: 8px; border-radius: 50%; background: var(--accent, #2f54c9); color: #fff; text-align: center; font-size: 14px; vertical-align: 1px; }
.pmap-cnt { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.pmap-mat select { min-width: 220px; max-width: 100%; }
.pmap-step .proc-arch { margin-left: 4px; }

/* 已經設好的對應 */
.pmap-list { margin: 0 0 12px; }
.pmap-card-t b { font-size: 15.5px; }
.pmap-card.pmap-on { border-color: var(--accent, #2f54c9); box-shadow: inset 3px 0 0 var(--accent, #2f54c9); }

/* 表單:2、3 兩步 + 試算 */
.pmap-form { padding: 12px 14px; }
.pmap-form-t { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.pmap-q { font-size: 16px; line-height: 44px; }
.pmap-q select, .pmap-q input { display: inline-block; width: auto; min-height: 44px; margin: 0 6px; vertical-align: middle; font-size: 16px; box-sizing: border-box; }
.pmap-q select { min-width: 190px; max-width: 280px; }
.pmap-q input { width: 96px; text-align: right; }
.pmap-picker { max-height: 250px; }
.pmap-scope { display: block; margin: 0 0 12px; }
.pmap-scope select { display: block; margin-top: 4px; min-height: 44px; }

.pmap-out { margin: 4px 0 12px; padding: 10px 12px; border-radius: 10px; background: #f3f8f2; border: 1px solid #cfe5cc; }
.pmap-sum { font-size: 16px; line-height: 1.5; margin: 0 0 4px; }
.pmap-try { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.pmap-wait { color: var(--muted); font-size: 14px; }
.pmap-wait.pmap-bad { color: #b42318; font-weight: 700; }
.pmap-btns { text-align: right; }
.pmap-btns button { min-height: 44px; margin: 4px 0 0 8px; }

/* 進階(預設收起來) */
.pmap-adv { margin: 18px 0 0; border-top: 1px solid var(--line, #e3e7ee); padding-top: 8px; }
.pmap-adv > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; font-size: 15px; line-height: 1.5; }
.pmap-adv > summary small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.pmap-adv-b { padding: 4px 0 8px; }

@media (max-width: 560px) {
  .pmap-mat select { min-width: 0; width: 100%; }
  .pmap-q { line-height: 1.6; }
  .pmap-q select { width: calc(100% - 26px); min-width: 0; max-width: none; margin: 6px 0 6px 6px; }
  .pmap-q input { margin: 6px 6px 6px 0; }
  .pmap-btns { text-align: left; }
  .pmap-btns button { margin: 6px 8px 0 0; }
}

/* 進度:已對應幾個 / 共幾個 + 還沒對應的原料(點了跳過去) */
.pmap-prog { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line, #e3e7ee); border-radius: 12px; background: #f7f9fc; }
.pmap-prog-t { display: flex; align-items: center; flex-wrap: wrap; }
.pmap-prog-t b { font-size: 15.5px; margin-right: 12px; }
.pmap-bar { flex: 1 1 120px; max-width: 260px; height: 8px; border-radius: 999px; background: #e3e7ee; overflow: hidden; }
.pmap-bar i { display: block; height: 100%; background: var(--accent, #2f54c9); }
.pmap-todo { margin-top: 6px; line-height: 1.4; }
.pmap-todo .hint { margin-right: 4px; }
.pmap-chip { display: inline-block; min-height: 44px; margin: 4px 6px 0 0; padding: 0 14px; border: 1px solid var(--line, #d5dbe5); border-radius: 999px; background: #fff; color: var(--ink, #1f2937); font-size: 14.5px; cursor: pointer; }
.pmap-chip.on { border-color: var(--accent, #2f54c9); color: var(--accent, #2f54c9); font-weight: 700; }
.pmap-sug { margin: 0 0 6px; color: #14539a; }

/* 一次配好(收起來,打開才列) */
.pmap-bulk { margin: 0 0 14px; border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 0 12px; }
.pmap-bulk > summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; font-size: 15px; line-height: 1.5; }
.pmap-bulk > summary small { display: block; font-weight: 400; font-size: 13px; color: var(--muted, #6a7180); }
.pmap-bulk-b { padding: 0 0 10px; }
.pmap-brow { display: flex; flex-wrap: wrap; align-items: center; padding: 6px 0; border-top: 1px solid var(--line, #eef1f5); }
.pmap-brow > .proc-check { flex: 0 0 auto; min-width: 140px; margin: 0 10px 0 0; }
.pmap-bitems { flex: 1 1 160px; min-width: 0; color: var(--muted, #6a7180); font-size: 14px; overflow-wrap: anywhere; }
.pmap-bq { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }
.pmap-bq input { width: 64px; min-height: 44px; margin: 0 4px; text-align: right; font-size: 16px; }

/* 規格別份數:正常份 20 份 / 加大 11 份(同一張表單裡) */
.pmap-spec { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #f7f9fc; border: 1px solid var(--line, #e3e7ee); }
.pmap-spec-t { font-size: 15px; line-height: 1.5; margin: 0 0 4px; }
.pmap-spec-t small { display: block; font-size: 13px; color: var(--muted, #6a7180); }
.pmap-spec-g { line-height: 44px; }
.pmap-spec-n { display: inline-block; min-width: 56px; margin-right: 8px; font-weight: 700; font-size: 14px; color: var(--muted, #6a7180); }
.pmap-spec-o { display: inline-block; margin: 0 14px 0 0; white-space: nowrap; font-size: 15px; }
.pmap-spec-o input { width: 72px; min-height: 44px; margin: 0 4px; text-align: right; font-size: 16px; }
.pmap-spec-more > summary { cursor: pointer; min-height: 44px; line-height: 44px; font-size: 14px; color: var(--muted, #6a7180); }
.pmap-spec-sum { margin-top: 4px; font-size: 14.5px; color: #14539a; }
.pmap-all { margin-top: 8px; }
.pmap-all > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent, #2f54c9); font-weight: 700; }
.pmap-cat { margin: 8px 0 4px; padding-top: 8px; border-top: 1px solid var(--line, #e5e9f0); }
.pmap-cat-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pmap-nomap { margin-top: 8px; }
