/* PV-989 · 🇨🇳 国内订单 TAB 样式(独立文件,不与任何现有选择器重名) */
#tab-cndomestic .cnd-head { max-width: 1100px; margin: 0 auto; padding: 6px 4px 0; display: flex; flex-direction: column; gap: 8px; }
#tab-cndomestic .cnd-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--text); }
#tab-cndomestic .cnd-search { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 9px; border: .5px solid var(--border); background: var(--surface2); color: var(--text); font-family: inherit; font-size: 13px; }
#tab-cndomestic .cnd-groups { display: flex; flex-wrap: wrap; gap: 7px; }
#tab-cndomestic .cnd-group { background: var(--surface); border: .5px solid var(--border); color: var(--mid); border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
#tab-cndomestic .cnd-group-on { background: var(--text); color: var(--bg); border-color: var(--text); }
#tab-cndomestic .cnd-hint { font-size: 11px; line-height: 1.6; color: var(--dim); }
#tab-cndomestic .cnd-hint-mute { opacity: .8; }
#tab-cndomestic .cnd-list { max-width: 1100px; margin: 12px auto 0; padding: 0 4px 40px; display: flex; flex-direction: column; gap: 10px; }
#tab-cndomestic .cnd-empty { padding: 28px 0; text-align: center; font-size: 12px; color: var(--dim); }
#tab-cndomestic .cnd-card { background: var(--bg); border: .5px solid var(--border); border-radius: 10px; padding: 11px 14px; }
#tab-cndomestic .cnd-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
#tab-cndomestic .cnd-code { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text); }
#tab-cndomestic .cnd-qc { font-family: var(--font-mono); font-size: 14px; font-weight: 700; background: rgba(var(--accent-rgb), .12); border: .5px solid rgba(var(--accent-rgb), .25); border-radius: 5px; padding: 2px 9px; }
#tab-cndomestic .cnd-name { font-size: 13px; font-weight: 600; color: var(--text); }
#tab-cndomestic .cnd-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--mid); line-height: 1.6; margin-bottom: 8px; }
#tab-cndomestic .cnd-items { display: flex; flex-direction: column; gap: 8px; }
#tab-cndomestic .cnd-item { display: flex; gap: 10px; align-items: flex-start; }
#tab-cndomestic .cnd-thumb { width: 58px; height: 58px; flex: 0 0 58px; padding: 0; border: .5px solid var(--border); border-radius: 7px; background: var(--surface2); overflow: hidden; cursor: zoom-in; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--dim); font-family: inherit; }
#tab-cndomestic .cnd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
#tab-cndomestic .cnd-thumb-empty { cursor: default; }
#tab-cndomestic .cnd-item-body { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
#tab-cndomestic .cnd-item-name { font-size: 13px; font-weight: 700; color: var(--text); word-break: break-word; }
#tab-cndomestic .cnd-item-meta { font-family: var(--font-mono); font-size: 11px; color: var(--mid); }
#tab-cndomestic .cnd-item-time { font-size: 11px; color: var(--dim); }
#tab-cndomestic .cnd-qc-link { font-size: 11px; color: var(--text); text-decoration: underline; }
#tab-cndomestic .cnd-chip { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 8px; border: .5px solid var(--border); }
#tab-cndomestic .cnd-tone-ok { color: #168a45; border-color: rgba(22, 138, 69, .35); background: rgba(22, 138, 69, .08); }
#tab-cndomestic .cnd-tone-warn { color: #b45309; border-color: rgba(180, 83, 9, .35); background: rgba(180, 83, 9, .08); }
#tab-cndomestic .cnd-tone-danger { color: var(--c-oos); border-color: rgba(var(--c-oos-rgb), .35); background: rgba(var(--c-oos-rgb), .08); }
#tab-cndomestic .cnd-tone-mute { color: var(--dim); }
#tab-cndomestic .cnd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
#tab-cndomestic .cnd-btn { background: var(--surface); border: .5px solid var(--border); color: var(--mid); border-radius: 8px; padding: 7px 13px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
#tab-cndomestic .cnd-btn-go { background: var(--c-paid); border-color: var(--c-paid); color: #fff; }
#tab-cndomestic .cnd-btn-warn { background: rgba(180, 83, 9, .12); border-color: rgba(180, 83, 9, .4); color: #b45309; }
#tab-cndomestic .cnd-btn[disabled] { opacity: .55; cursor: default; }
#tab-cndomestic .cnd-trk { width: 210px; padding: 7px 10px; border-radius: 8px; border: .5px solid var(--border); background: var(--surface2); color: var(--text); font-family: var(--font-mono); font-size: 12px; }
#tab-cndomestic .cnd-note { font-size: 11px; color: var(--mid); }
#tab-cndomestic .cnd-note-danger { color: var(--c-oos); font-weight: 700; }
#tab-cndomestic .cnd-status { font-size: 11px; color: var(--mid); margin-top: 6px; min-height: 14px; }

/* PV-991 · 双栏工作台(左队列 / 右配货单)。所有选择器仍然带 #tab-cndomestic 前缀,不碰其它页面。 */
/* PV-991 · 只给本 TAB 取消入场动画:index.html 的 .tab-pane.active{animation:tabFadeIn .28s ... both}
   用了 fill-mode both,动画结束后 transform 会一直停在 matrix(1,0,0,1,0,0) 上。
   按 CSS Transforms 规范,带 transform 的元素会给 fixed 后代建立「包含块」——
   导出预览遮罩(.cnd-modal position:fixed)于是按这块面板定位(实测 x236 y413 width1204),而不是视口。
   index.html 里已有同一个坑的先例(html.oms-feed-active .tab-pane.active{animation:none}),这里照同样办法只作用于本 TAB。
   其它 TAB 的入场动画一个字没动。 */
#tab-cndomestic.tab-pane, #tab-cndomestic.tab-pane.active { animation: none !important; transform: none !important; }

#tab-cndomestic .cnd-head { max-width: 1400px; }
#tab-cndomestic .cnd-search-field { display: flex; flex-direction: column; gap: 4px; }
#tab-cndomestic .cnd-search-label { font-size: 11px; font-weight: 700; color: var(--mid); }
#tab-cndomestic .cnd-subfilters { margin-top: -2px; }
#tab-cndomestic .cnd-workbench { max-width: 1400px; margin: 10px auto 0; padding: 0 4px 12px; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 12px; align-items: start; }
#tab-cndomestic .cnd-queue { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#tab-cndomestic .cnd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11px; color: var(--mid); }
#tab-cndomestic .cnd-tools-count { font-weight: 700; color: var(--text); }
#tab-cndomestic .cnd-tools-note { color: var(--c-oos); font-weight: 700; }
#tab-cndomestic .cnd-list { max-width: none; margin: 0; padding: 0 2px 8px; gap: 6px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#tab-cndomestic .cnd-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; border: .5px solid rgba(180, 83, 9, .4); background: rgba(180, 83, 9, .1); font-size: 11px; font-weight: 700; color: #b45309; }
#tab-cndomestic .cnd-section { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
#tab-cndomestic .cnd-section-hd { font-size: 11px; font-weight: 800; color: var(--text); padding-top: 6px; }
#tab-cndomestic .cnd-section-why { font-size: 11px; color: var(--dim); line-height: 1.5; }
#tab-cndomestic .cnd-row { display: flex; align-items: flex-start; gap: 8px; background: var(--bg); border: .5px solid var(--border); border-radius: 9px; padding: 8px 10px; }
#tab-cndomestic .cnd-row-on { border-color: var(--text); box-shadow: inset 3px 0 0 var(--text); }
#tab-cndomestic .cnd-pick { width: 17px; height: 17px; margin-top: 6px; flex: 0 0 auto; accent-color: var(--text); cursor: pointer; }
#tab-cndomestic .cnd-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: inherit; color: var(--text); }
#tab-cndomestic .cnd-row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
#tab-cndomestic .cnd-row-facts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11px; color: var(--mid); }
#tab-cndomestic .cnd-row-badges { display: flex; flex-wrap: wrap; gap: 4px; }
#tab-cndomestic .cnd-row-main:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#tab-cndomestic .cnd-row-main, #tab-cndomestic .cnd-row-facts, #tab-cndomestic .cnd-row-top { word-break: break-word; overflow-wrap: anywhere; }
#tab-cndomestic .cnd-tools-note { flex: 1 1 100%; }
/* 高度由 JS 按真实可用空间钉在内联样式上(见 fitWorkbench);这里只留量不到时的保守兜底。 */
#tab-cndomestic .cnd-detail { min-width: 0; display: flex; flex-direction: column; max-height: 78vh; border: .5px solid var(--border); border-radius: 10px; background: var(--bg); }
#tab-cndomestic .cnd-detail-head { flex: 0 0 auto; padding: 9px 12px; margin: 0; border-bottom: .5px solid var(--border); background: var(--bg); border-radius: 10px 10px 0 0; }
#tab-cndomestic .cnd-detail-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px; }
#tab-cndomestic .cnd-detail .cnd-card { border: 0; }
#tab-cndomestic .cnd-actionbar { border-top: .5px solid var(--border); padding: 8px 12px 10px; background: var(--surface); border-radius: 0 0 10px 10px; }
#tab-cndomestic .cnd-actionbar .cnd-actions { margin-top: 0; }
#tab-cndomestic .cnd-field { display: flex; flex-direction: column; gap: 3px; }
#tab-cndomestic .cnd-field-label { font-size: 11px; color: var(--mid); }
#tab-cndomestic .cnd-block-hd { font-size: 11px; font-weight: 800; color: var(--text); margin: 10px 0 6px; }
#tab-cndomestic .cnd-block-off { color: var(--dim); }
#tab-cndomestic .cnd-ship-to, #tab-cndomestic .cnd-remark { font-size: 12px; line-height: 1.7; color: var(--text); word-break: break-word; }
#tab-cndomestic .cnd-item-meta { font-size: 14px; font-weight: 800; color: var(--text); }
#tab-cndomestic .cnd-qc-fold { margin-top: 12px; border-top: .5px solid var(--border); padding-top: 8px; }
#tab-cndomestic .cnd-qc-fold-body { display: none; margin-top: 6px; }
#tab-cndomestic .cnd-fold-open .cnd-qc-fold-body { display: block; }
#tab-cndomestic .cnd-fold-line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--mid); padding: 3px 0; }
#tab-cndomestic .cnd-btn-export { background: var(--text); border-color: var(--text); color: var(--bg); }
#tab-cndomestic .cnd-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
#tab-cndomestic .cnd-modal-card { width: min(560px, 100%); max-height: 80vh; overflow-y: auto; background: var(--bg); border: .5px solid var(--border); border-radius: 12px; padding: 16px; }
#tab-cndomestic .cnd-modal-hd { font-size: 14px; font-weight: 800; color: var(--text); }
#tab-cndomestic .cnd-modal-list { display: flex; flex-direction: column; gap: 3px; }
#tab-cndomestic .cnd-modal-line { font-size: 11px; color: var(--mid); line-height: 1.6; word-break: break-word; }
#tab-cndomestic .cnd-modal-sub { color: var(--dim); padding-left: 10px; font-family: var(--font-mono); }

@media (max-width: 860px) {
  #tab-cndomestic .cnd-workbench { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #tab-cndomestic .cnd-list { flex: 0 1 auto; max-height: 44vh; }
  #tab-cndomestic .cnd-detail { max-height: none; }
  #tab-cndomestic .cnd-detail-head { position: sticky; top: 0; z-index: 2; }
  #tab-cndomestic .cnd-detail-body { overflow-y: visible; }
  #tab-cndomestic .cnd-qc { font-size: 16px; }
  #tab-cndomestic .cnd-row-main { gap: 3px; }
  #tab-cndomestic .cnd-modal-card { max-height: 88vh; }
}
