/* V2.13.110（开发代号 107）妙手对应产品分析；V2.13.112 人工确认版（待确认提示 / 映射核对分组 / 导入） */
#allocationMiaoshouPane .section-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.ms-status { margin:2px 0 10px; padding:9px 12px; background:#fff; border:1px solid var(--line); border-radius:7px; font-size:13px; color:#3d5553; line-height:1.9; }
.ms-status a { color:var(--brand); font-weight:700; }
.ms-placeholder-strip { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; margin-bottom:12px; padding:8px 12px; border:1px dashed #e0b866; border-radius:7px; background:var(--orange-soft); font-size:12.5px; color:#5b4210; }
.ms-placeholder-strip a { margin-left:auto; color:var(--orange); font-weight:700; }
.ms-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ms-metrics .metric-card[data-ms-goto] { cursor:pointer; }
.ms-metrics .metric-card[data-ms-goto]:hover { border-color:var(--brand); }
.metric.red { color:var(--red); } .metric.orange { color:var(--orange); } .metric.yellow { color:var(--yellow); } .metric.green { color:var(--green); }
.ms-badge { display:inline-block; padding:1px 7px; border-radius:10px; font-size:12px; font-weight:700; white-space:nowrap; vertical-align:1px; }
.ms-badge-ok { background:var(--green-soft); color:var(--green); }
.ms-badge-warn { background:#fff6d8; color:var(--yellow); }
.ms-badge-todo { background:#ffe9e2; color:#b2431c; border:1px dashed #e3906f; }
.ms-toolbar .ms-check { display:flex; align-items:center; gap:6px; margin:0 0 8px; white-space:nowrap; font-size:13px; }
.ms-toolbar .ms-check input { width:16px; height:16px; }
.ms-table { min-width:0; }
#allocationMiaoshouPane .btn[disabled] { opacity:.45; cursor:not-allowed; }
.ms-table td { font-size:13px; }
.ms-table th,.ms-table td { padding:8px 8px; }
.ms-table .num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ms-img { width:44px; height:44px; object-fit:cover; border-radius:5px; border:1px solid var(--line); display:block; background:#f5f8f8; }
.ms-img-empty { display:flex; align-items:center; justify-content:center; font-size:11px; color:var(--muted); }
.ms-sku { font-family:Consolas,"Microsoft YaHei",monospace; }
.ms-muted { color:var(--muted); }
.ms-warn { color:var(--red); font-weight:700; }
.ms-ok { color:var(--green); font-weight:700; }
.ms-tag { display:inline-block; margin:1px 4px 1px 0; padding:1px 6px; border-radius:4px; font-size:12px; font-weight:650; background:#eef2f2; color:#4a5f5e; white-space:nowrap; }
.ms-tag.red { background:var(--red-soft); color:var(--red); } .ms-tag.orange { background:var(--orange-soft); color:var(--orange); } .ms-tag.yellow { background:#fff6d8; color:var(--yellow); } .ms-tag.green { background:var(--green-soft); color:var(--green); } .ms-tag.blue { background:#e7f0fb; color:#2d5f9a; }
.ms-bars { display:flex; align-items:flex-end; gap:2px; width:104px; height:30px; padding:2px; background:#f6faf9; border-radius:3px; }
.ms-bars i { flex:1; background:var(--brand); border-radius:1px 1px 0 0; min-height:1px; }
.ms-bars i.z { background:#d5e2df; }
.ms-open td { background:#f3faf8; }
.ms-detail > td { background:#fbfdfd; padding-top:4px; }
.ms-subtable { min-width:0; width:100%; border:1px solid var(--line); border-radius:6px; }
.ms-subtable th,.ms-subtable td { padding:6px 8px; font-size:12.5px; }
.ms-daily th { text-align:center; }
.ms-heat { background:rgba(12,116,98,var(--a)); color:#0f2e29; text-align:center!important; min-width:34px; }
.ms-note { margin:0 0 10px; color:#4f6666; line-height:1.7; }
.ms-h { margin:18px 0 8px; font-size:15px; }
.ms-empty { padding:24px; text-align:center; color:var(--muted); }
.ms-store-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; }
.ms-store-card { padding:12px 14px; border-left:4px solid var(--red); }
.ms-idle-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.ms-preview { white-space:pre-wrap; background:#f8fbfa; border:1px solid var(--line); border-radius:7px; padding:12px; font-size:12.5px; max-height:320px; overflow:auto; }
.ms-sugg { display:block; margin:2px 0; padding:4px 8px; text-align:left; min-height:0; }
.ms-pick { display:flex; gap:6px; align-items:center; }
.ms-pick input { width:150px; padding:6px 8px; border:1px solid var(--line); border-radius:5px; }
.ms-cfg { width:110px; padding:6px 8px; border:1px solid var(--line); border-radius:5px; }
.ms-rules { width:100%; max-width:520px; padding:8px; border:1px solid var(--line); border-radius:6px; font-family:Consolas,monospace; display:block; margin-bottom:8px; }
.ms-ph-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.ms-ph { padding:12px 14px; border-style:dashed; background:#fcfdfd; }
.ms-ph p { margin:6px 0 0; }
.ms-toast { position:fixed; right:24px; bottom:24px; z-index:50; padding:10px 14px; border-radius:7px; background:#0c3b33; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.18); font-size:13px; }
.ms-toast.bad { background:var(--red); }
@media (max-width:1100px) { .ms-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .ms-ph-cards { grid-template-columns:1fr; } }

/* V2.13.112 待确认（未计入）提示 */
.metric.purple { color:#6a3fb5; }
.ms-purple { color:#6a3fb5; font-weight:650; }
.ms-pending { display:inline-block; margin-top:3px; padding:2px 8px; border-radius:5px; background:#f1eafd; color:#5b2fa6; font-size:12.5px; font-weight:700; text-decoration:none; border:1px solid #d9c6f6; }
.ms-pending:hover { background:#e6d9fb; }
.ms-pending-banner { display:block; margin:0 0 12px; padding:10px 14px; border-radius:7px; background:#f1eafd; border:1px solid #c9b0f2; color:#4a2390; font-size:14px; font-weight:650; text-decoration:none; }
.ms-pending-banner:hover { background:#e9dcfc; }
.ms-pending-line { margin:0 0 10px; }
.ms-metrics .metric-card[data-ms-pend] { cursor:pointer; border-color:#d9c6f6; }
.ms-count-warn { background:#6a3fb5!important; color:#fff!important; }
.ms-tag.purple { background:#f1eafd; color:#5b2fa6; }
.ms-st { display:inline-block; padding:1px 7px; border-radius:10px; font-size:12px; font-weight:700; white-space:nowrap; }
.ms-st-pending { background:#f1eafd; color:#5b2fa6; } .ms-st-confirmed { background:var(--green-soft); color:var(--green); } .ms-st-ignored { background:#eef2f2; color:var(--muted); } .ms-st-unpaired { background:var(--orange-soft); color:var(--orange); }
/* 映射核对：按领星 SKU 分组 */
.ms-groups { display:grid; gap:10px; }
.ms-group { padding:10px 12px; }
.ms-group-special { border-left:4px solid var(--orange); }
.ms-group-head { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding-bottom:6px; border-bottom:1px solid var(--line); }
.ms-group-head > div:first-of-type { flex:1; min-width:260px; }
.ms-group-head .ms-img { display:inline-block; vertical-align:middle; margin-right:8px; }
.ms-group-stat { display:flex; gap:12px; align-items:center; font-size:13px; flex-wrap:wrap; }
.ms-goods { margin-top:8px; padding:6px 8px; border-radius:6px; background:#fbfdfd; border:1px solid #edf3f2; }
.ms-goods-pending { border-color:#d9c6f6; background:#fcfaff; }
.ms-goods-head { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ms-goods-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:6px 0; }
.ms-goods-actions .ms-sugg { display:inline-block; }
.ms-chip { display:inline-block; margin:1px 3px; padding:0 6px; border-radius:9px; background:#e7f0fb; color:#2d5f9a; font-size:12px; }
.ms-chip-warn { background:var(--orange-soft); color:var(--orange); }
.ms-sel { width:16px; height:16px; vertical-align:middle; }
.btn.btn-mini { min-height:0; padding:2px 8px; font-size:12px; margin-right:4px; }
.ms-tp { margin:0 0 10px; font-size:13px; } .ms-tp summary { cursor:pointer; font-weight:650; margin-bottom:6px; } .ms-tp-table { max-width:720px; }
/* 导入 */
.ms-imp-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ms-imp-card { padding:12px 14px; } .ms-imp-card p { margin:6px 0 10px; } .ms-imp-card .field { margin-bottom:8px; } .ms-imp-card .field input { width:100%; max-width:320px; }
.ms-imp-card label.btn { cursor:pointer; display:inline-flex; }
.ms-imp-preview { margin-top:12px; padding:12px 14px; display:grid; gap:8px; }
.ms-imp-map { max-width:640px; } .ms-imp-map select { min-width:240px; padding:4px 6px; }
.ms-imp-result { padding:8px 10px; border-radius:6px; background:var(--green-soft); color:#0d5a4b; font-weight:600; }
@media (max-width:1100px) { .ms-imp-cards { grid-template-columns:1fr; } }
/* V2.13.113：同步状态行 / 店铺发货核对 */
.ms-sync-line { font-size: 12px; color: #475569; }
.ms-shopcheck-banner { display: block; margin: 6px 0; padding: 8px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; text-decoration: none; font-weight: 600; }
.ms-row-warn td { background: #fff7ed; }
/* V2.13.113 重新设计：未配置提示 / 导入过期黄标 / 已闭店 / 妙手 API 设置 / 诊断说明 */
.ms-config-banner { display:block; margin:6px 0; padding:10px 14px; border-radius:8px; background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; text-decoration:none; font-weight:650; }
.ms-stale-banner { display:block; margin:6px 0; padding:8px 12px; border-radius:8px; background:#fefce8; border:1px solid #facc15; color:#854d0e; text-decoration:none; font-weight:600; }
.ms-imp-last { margin:0 0 10px; padding:6px 10px; border-radius:6px; background:#f8fafc; border:1px solid #e2e8f0; font-size:13px; }
.ms-imp-last.ms-imp-stale { background:#fefce8; border-color:#facc15; }
.ms-imp-flag { color:#854d0e; font-weight:600; margin-top:4px; }
.ms-row-closed td { background:#f4f4f5; color:#71717a; }
.ms-apiset { padding:12px 16px; margin:12px 0; }
.ms-apiset-grid { display:grid; grid-template-columns:repeat(2,minmax(0,320px)); gap:12px; align-items:end; margin-bottom:6px; }
.ms-apiset-grid .field input { width:100%; }
.ms-diag { margin:4px 0 12px 18px; padding:0; } .ms-diag li { margin:2px 0; }
.ms-layer-tabs { margin-bottom:12px; }
@media (max-width:900px) { .ms-apiset-grid { grid-template-columns:1fr; } }
/* V2.13.114「同步最新」：本页标题栏 / 妙手 API 设置 / 产品分析顶部（仅管理员） */
.ms-latest-zone { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-apiset-latest { margin: 8px 0 4px; }
.ms-latest-info { font-size: 12px; color: #64748b; }
.ms-latest-info .ms-warn { font-weight: 600; }
.ms-latest-btn[disabled] { opacity: .7; cursor: not-allowed; }
.ms-latest-top { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 8px; border: 1px solid #dbeafe; border-radius: 8px; background: #f8fbff; flex-wrap: wrap; }
.ms-latest-top .ms-latest-label { font-size: 12px; font-weight: 600; color: #1d4ed8; }
.ms-latest-top .btn-small, .ms-latest-zone .btn-small { padding: 3px 10px; font-size: 12px; }
.ms-apiset-grid3 { grid-template-columns: repeat(3, minmax(0, 300px)); }
.ms-apiset select { min-width: 140px; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.ms-est-table { margin-top: 6px; max-width: 720px; }
.ms-est-table .ms-row-cur td { background: #eff6ff; font-weight: 600; }
