:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172c28;
  background: #eef4f3;
  --deep: #043c33;
  --deep-2: #125548;
  --brand: #0c7462;
  --gold: #efbd45;
  --ground: #eef4f3;
  --line: #dce7e4;
  --muted: #71837f;
  --danger: #c94f4f;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
[hidden] { display: none !important; }
svg { width: 19px; height: 19px; stroke-width: 2; flex: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { background: var(--deep); color: #c7ddd8; width: 264px; flex: 0 0 264px; min-height: 100vh; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 15; }
.brand { min-height: 106px; padding: 18px 20px; border-bottom: 1px solid #ffffff1c; display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 54px; height: 54px; border-radius: 14px; background: var(--gold); color: var(--deep); display: grid; place-items: center; font-size: 25px; font-weight: 800; flex: none; }
.brand strong, .brand small { display: block; }
.brand strong { color: #fff; font-size: 21px; white-space: nowrap; }
.brand small { color: #9fc0b9; font-size: 11px; margin-top: 4px; }
.nav-caption { padding: 29px 25px 10px; color: #8ebbb4; font-size: 12px; }
.sidebar nav { padding: 0 12px; display: grid; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 13px 17px; color: #c7ddd8; border-radius: 7px; text-decoration: none; font-size: 15px; font-weight: 650; }
.sidebar nav a:hover { background: #ffffff15; color: #fff; }
.sidebar nav a.active { background: #0d6c58; color: #fff; }
.nav-icon { display: grid; place-items: center; width: 20px; }
.sidebar-foot { border-top: 1px solid #ffffff24; margin: auto 20px 0; padding: 20px 0; font-size: 13px; color: #dfd7bd; line-height: 1.6; }
.sidebar-foot small { color: #9fc0b9; padding-left: 16px; }
.connection-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; }
.main-shell { min-width: 0; flex: 1; }
.topbar { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; }
.top-left, .top-right { display: flex; align-items: center; gap: 16px; }
.top-title { font-size: 15px; font-weight: 700; }
.top-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.preview-badge { font-size: 12px; color: #856512; background: #fff5d8; border: 1px solid #f3d477; border-radius: 5px; padding: 6px 10px; white-space: nowrap; }
.icon-button { border: 0; background: transparent; color: #36514b; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 5px; }
.icon-button:hover { background: #e8efed; }
.menu-toggle { display: none; }
.content { max-width: none; width: 100%; min-width: 0; margin: 0; padding: 32px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.overline { font-size: 12px; font-weight: 700; color: var(--brand); margin: 0 0 7px; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.page-heading p:last-child { color: var(--muted); margin: 0; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border-radius: 6px; border: 1px solid var(--line); font-weight: 650; min-height: 38px; text-decoration: none; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--deep-2); }
.button.secondary { background: #fff; color: var(--deep-2); }
.button.secondary:hover:not(:disabled) { border-color: var(--brand); }
.button.ghost { background: transparent; border-color: transparent; color: var(--brand); }
.button.small { min-height: 30px; padding: 5px 10px; font-size: 12px; }
.erp-login { max-width: 380px; }
.erp-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.erp-tab { padding: 10px 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); }
.erp-tab.selected { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.erp-query { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.erp-query .field { flex: 1 1 120px; min-width: 0; max-width: 210px; }
.erp-table td { overflow-wrap: anywhere; max-width: 270px; }
.erp-log { border-bottom: 1px solid var(--line); padding: 13px 20px; }
.erp-log summary { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; cursor: pointer; }
.erp-log summary time { color: var(--muted); margin-left: auto; font-size: 12px; }
.erp-log dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.erp-log dt { color: var(--muted); }
.erp-log dd { margin: 0; overflow-wrap: anywhere; }
.erp-task-audit { padding: 12px 20px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.erp-task-audit:last-child { border-bottom: 0; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #e8f3ef; border: 1px solid #bfdbd2; border-radius: 6px; margin: 0 0 24px; color: #20584c; line-height: 1.6; }
.notice svg { margin-top: 1px; }
.notice.warning { background: #fff8e8; border-color: #eedca7; color: #6c551b; }
.notice strong { display: block; color: #183b34; }
.summary-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 24px; }
.summary-item { border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; padding: 17px 20px; min-width: 0; }
.summary-item:last-child { border-right: 0; }
.summary-item:hover { background: #f7faf9; }
.summary-item span { display: block; color: var(--muted); font-size: 12px; }
.summary-item strong { display: block; font-size: 25px; margin-top: 3px; }
.summary-item strong.alert { color: var(--danger); }
.section { border-top: 3px solid var(--deep); background: #fff; margin-bottom: 22px; }
.section-heading { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-body { padding: 18px 20px; }
.task-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.task-link { display: flex; gap: 13px; align-items: center; background: #f8fbfa; border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-align: left; min-width: 0; }
.task-link:hover { border-color: var(--brand); background: #f0f8f5; }
.task-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--brand); background: #e2f3ec; border-radius: 6px; }
.task-icon.warn { background: #fff5d8; color: #856512; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong, .task-copy small { display: block; }
.task-copy strong { font-size: 14px; }
.task-copy small { color: var(--muted); margin-top: 3px; font-size: 12px; }
.task-link > svg { color: #90a09d; width: 16px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 28px; height: 28px; margin-bottom: 10px; color: #9eb0ac; }
.empty strong { display: block; color: #36514b; font-size: 15px; margin-bottom: 5px; }
.empty p { margin-bottom: 14px; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 5px; height: 36px; background: #fff; padding: 0 10px; color: #172c28; }
.toolbar input { width: min(310px, 100%); }
.toolbar .toolbar-end { margin-left: auto; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
.data-table { border-collapse: collapse; width: 100%; min-width: 730px; }
.data-table th, .data-table td { text-align: left; padding: 13px 15px; border-bottom: 1px solid #edf2f1; vertical-align: middle; }
.data-table th { font-size: 12px; color: #657873; background: #f8fbfa; font-weight: 650; }
.data-table td { font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfa; }
.cell-muted { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.tag { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; white-space: nowrap; font-size: 11px; background: #edf2f1; color: #4b635e; }
.tag.amber { background: #fff1d7; color: #946716; }
.tag.teal { background: #e2f3ec; color: #08765c; }
.tag.red { background: #fde7e5; color: #b63e3e; }
.tag.gray { background: #eef2f1; color: #65736f; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr); gap: 20px; }
.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.read-field span, .read-field strong { display: block; overflow-wrap: anywhere; }
.read-field span { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.read-field strong { font-size: 14px; font-weight: 600; }
.form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; color: #36514b; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #cbdad6; border-radius: 5px; background: #fff; color: #172c28; font-weight: 400; }
.field textarea { resize: vertical; min-height: 84px; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; }
.form-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 5px; }
.blocked { padding: 14px; border-left: 3px solid var(--gold); background: #fff8e8; color: #6c551b; font-size: 13px; line-height: 1.6; }
.blocked strong { display: block; }
.steps { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 8px; color: #657873; font-size: 12px; }
.steps li:not(:last-child)::after { content: '→'; margin-left: 2px; color: #9eb0ac; }
.steps b { background: #e4f3ee; color: #08765c; border-radius: 4px; padding: 4px 7px; font-weight: 600; }
.muted-copy { color: var(--muted); line-height: 1.6; }
.audit-row { display: grid; grid-template-columns: 150px 1fr auto; align-items: start; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.audit-row:last-child { border-bottom: 0; }
.audit-row time { color: var(--muted); font-size: 12px; }
.audit-row strong { display: block; font-size: 13px; }
.audit-row small { display: block; color: var(--muted); margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(90vh, 800px); border: 0; border-radius: 8px; padding: 0; color: #172c28; box-shadow: 0 18px 46px #102c3840; }
.form-dialog::backdrop { background: #102c3866; }
.dialog-header, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 19px; }
.dialog-fields { display: grid; gap: 14px; padding: 20px 22px; max-height: 65vh; overflow-y: auto; }
.dialog-footer { border-top: 1px solid var(--line); border-bottom: 0; justify-content: flex-end; }
.form-error { margin: 0 22px 10px; color: var(--danger); font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--deep); color: #fff; border-radius: 5px; padding: 10px 14px; box-shadow: 0 6px 24px #0003; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; z-index: 40; }
.toast.visible { opacity: 1; transform: translateY(0); }
.mobile-overlay { display: none; }
@media (max-width: 1050px) {
  .sidebar { width: 222px; flex-basis: 222px; }
  .brand { padding: 16px 14px; gap: 9px; }
  .brand-mark { width: 44px; height: 44px; font-size: 20px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 10px; }
  .content { padding: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-item:nth-child(3) { border-right: 0; }
  .summary-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .erp-task-table { min-width: 0; width: 100%; }
  .erp-task-table thead { display: none; }
  .erp-task-table tbody tr { display: grid; border-bottom: 1px solid var(--line); padding: 12px 15px; gap: 10px; }
  .erp-task-table tbody tr:last-child { border-bottom: 0; }
  .erp-task-table td, .erp-task-table tr:last-child td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; }
  .erp-task-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
  .erp-task-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .sidebar { position: fixed; transform: translateX(-100%); transition: transform .2s; width: 264px; height: 100vh; }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay:not([hidden]) { display: block; position: fixed; inset: 0; background: #043c3370; z-index: 14; }
  .menu-toggle { display: inline-grid; }
  .topbar { height: 58px; padding: 0 14px; }
  .top-date { display: none; }
  .content { padding: 22px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 24px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item:nth-child(3) { border-right: 1px solid var(--line); }
  .summary-item:nth-child(even) { border-right: 0; }
  .summary-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .summary-item:last-child { grid-column: 1 / -1; }
  .task-links, .fields-grid { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr auto; }
  .audit-row time { grid-column: 1 / -1; }
}

/* V1.4.1 虚拟仓利润计算器 */
.calc-version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 11px 16px; margin-bottom: 18px; font-size: 13px; }
.calc-version strong { color: var(--deep-2); }
.calc-version span { color: var(--muted); }
.calc-group + .calc-group { margin-top: 18px; }
.calc-group-title { margin: 0 0 10px; font-size: 15px; color: var(--deep); }
.calc-group-title small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.calc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.calc-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 12px 14px; border: 1.5px solid #cbdad6; border-radius: 8px; background: #fff; min-height: 104px; transition: border-color .15s, background .15s; }
.calc-card:hover { border-color: var(--brand); }
.calc-card.selected { border: 2px solid var(--brand); background: #e6f4ef; box-shadow: 0 0 0 3px #0c746226; }
.calc-card.selected .calc-card-name::before { content: "✓ "; color: var(--brand); }
.calc-card.placeholder { background: #f3f5f4; border-style: dashed; color: #8a9893; }
.calc-card.placeholder.selected { background: #eceff0; border-color: #8a9893; box-shadow: none; }
.calc-card-name { font-weight: 700; font-size: 14px; color: #172c28; }
.calc-card.placeholder .calc-card-name { color: #7b8a86; }
.calc-card-price { font-size: 12px; color: #36514b; line-height: 1.5; }
.calc-date { display: inline-block; font-size: 11px; color: #08765c; background: #e2f3ec; border-radius: 4px; padding: 2px 6px; font-weight: 600; }
.calc-date.none { color: #7b8a86; background: #eef2f1; }
.calc-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 12px; }
.calc-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.calc-zones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #36514b; }
.calc-zone { border: 1px solid var(--line); background: #fff; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.calc-zone small { font-size: 11px; color: var(--muted); font-weight: 400; }
.calc-zone.selected { background: var(--deep-2); color: #fff; border-color: var(--deep-2); }
.calc-zone.selected small { color: #d8e8e2; }
.calc-zones em { font-style: normal; color: var(--muted); font-size: 12px; }
.calc-card-label { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.calc-zone.est { border-style: dashed; }
.calc-zone small.calc-est-mark { background: #fbe9c8; color: #8a5a00; padding: 0 4px; font-weight: 700; }
.calc-zone small.calc-default-mark { background: #dcefe7; color: #1f5a49; padding: 0 4px; font-weight: 700; }
.calc-zone-reason { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.calc-set-default { margin-left: 8px; vertical-align: baseline; border: 1px solid var(--deep); background: #e0f3ec; color: var(--deep); padding: 2px 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; border-radius: 4px; }
.calc-set-default:hover:not(:disabled) { background: var(--deep); color: #fff; }
.calc-set-default:disabled { opacity: 0.55; cursor: default; background: #eef4f1; border-color: #b7c9c1; color: #5b746c; }
.calc-src { display: inline-block; padding: 0 5px; font-size: 12px; font-weight: 600; }
.calc-src.official { background: #dcefe7; color: #1f5a49; }
.calc-src.estimated { background: #fbe9c8; color: #8a5a00; }
.calc-src.measured { background: #e3e6fb; color: #2f3c8f; }
.calc-zone-table th.calc-est, .calc-zone-table td.estimated { background: #fdf4e3; color: #8a5a00; }
.calc-zone-table td.measured { background: #eceefc; color: #2f3c8f; font-weight: 700; }
.calc-zone-table th small { margin-left: 3px; font-size: 11px; }
.calc-legend { font-size: 12px; color: var(--muted); margin: 8px 0; }
.calc-origin ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.calc-ref { margin: 12px 0 0; }
.calc-ref img { display: block; max-width: 100%; border: 1px solid var(--line); cursor: zoom-in; }
.calc-ref figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.calc-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.calc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #36514b; }
.calc-hero { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 8px; background: #e6f4ef; margin-bottom: 14px; }
.calc-hero.negative { background: #fde7e5; }
.calc-hero span { display: block; color: var(--muted); font-size: 12px; }
.calc-hero strong { font-size: 34px; line-height: 1.15; color: var(--brand); }
.calc-hero.negative strong { color: var(--danger); }
.calc-hero-meta { font-size: 13px; color: #36514b; line-height: 1.8; }
.calc-formula { color: #4b635e; }
.calc-value { font-weight: 700; white-space: nowrap; }
.positive { color: var(--brand); }
.negative { color: var(--danger); }
.calc-table { min-width: 0; }
.calc-fold { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.calc-fold summary { cursor: pointer; padding: 11px 14px; font-weight: 650; color: var(--deep-2); }
.calc-rules { padding: 10px 14px; }
.calc-rules p { margin: 4px 0; font-size: 13px; color: #36514b; }
@media (max-width: 1100px) { .calc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .calc-dims-field { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .calc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-card { min-height: 0; padding: 10px; }
  .calc-hero { grid-template-columns: 1fr 1fr; }
  .calc-hero-meta { grid-column: 1 / -1; }
  .calc-hero strong { font-size: 26px; }
  .calc-form-foot { flex-wrap: wrap; }
}

/* V1.5.0 员工入口 */
.calc-actions, .staff-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.calc-login { max-width: 420px; display: grid; gap: 12px; }
.account-hint { margin: 8px 0 0; color: var(--muted, #667085); font-size: 13px; }
.account-generated { margin: 12px 0; padding: 10px 12px; border: 1px dashed #f79009; border-radius: 8px; background: #fffaeb; display: grid; gap: 6px; }
.account-generated code { font-size: 16px; word-break: break-all; user-select: all; }
.form-error:not([hidden]) { color: #b42318; }
.button.danger { background: #fff; color: #b42318; border: 1px solid #f3b8b2; }
.button.danger:hover { background: #fde7e5; }
.staff-perms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.staff-perm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.staff-row { border: 1px solid var(--line, #e4e7ec); border-radius: 8px; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; }
.staff-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.staff-head small { color: var(--muted, #667085); margin-left: auto; }
.staff-edit, .staff-pw { display: grid; gap: 6px; }
.staff-edit .field, .staff-pw .field { max-width: 320px; }
.staff-edit > .button { justify-self: start; }
.top-user { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.top-user svg { width: 16px; height: 16px; }
@media (max-width: 760px) { #top-user-name { display: none; } }

/* V1.5.1 统一登录页 + 主账号/员工身份 */
[hidden] { display: none !important; }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, var(--deep), #1f6b4f); }
.login-card { width: 400px; max-width: 100%; background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 12px 40px #0003; display: flex; flex-direction: column; gap: 14px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 10px; }
.login-brand strong { color: var(--deep); font-size: 22px; margin-top: 6px; }
.login-brand small { color: var(--muted); font-size: 12px; }
.login-card .field input { width: 100%; }
.login-submit { width: 100%; padding: 11px; font-size: 16px; margin-top: 8px; }
.login-note { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.nav-sep { border-top: 1px solid #ffffff22; margin: 10px 6px; }
.nav-tag { font-size: 10px; background: var(--gold); color: var(--deep); padding: 1px 6px; border-radius: 3px; margin-left: auto; font-weight: 700; }
.top-user { display: inline-flex; align-items: center; gap: 12px; }
.user-badge { background: #e6f2ec; color: var(--deep-2); padding: 5px 12px; border-radius: 14px; font-weight: 650; white-space: nowrap; }
.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.staff-table th { color: var(--muted); font-weight: 600; background: #f8faf9; font-size: 13px; }
.staff-ops { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; }
.link-btn.danger { color: var(--danger); }
.staff-on { color: var(--brand); } .staff-off { color: var(--danger); }
.staff-editor td { background: #f8fbfa; }
.staff-editor form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.staff-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .staff-form-row { grid-template-columns: 1fr; } .staff-table-wrap { overflow-x: auto; } }
.staff-table tr.staff-row { display: table-row; border: 0; border-radius: 0; padding: 0; margin: 0; }
/* V1.5.2 规则参考：海鸥 / 云顶并排紧凑对照 */
.calc-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 12px 12px; }
.calc-rule-col { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.calc-rule-col h4 { margin: 2px 0 8px; font-size: 14px; color: var(--deep-2); }
.calc-rule-col h4 small { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }
.calc-rule-table { font-size: 12.5px; }
.calc-rule-table th, .calc-rule-table td { padding: 5px 8px; height: 30px; box-sizing: border-box; white-space: nowrap; }
.calc-rule-table td:first-child { white-space: normal; }
.calc-rule-table td small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-rule-table tr.calc-rule-first td { border-top: 1px solid var(--line); }
.calc-rule-table tr.calc-rule-pad td { color: var(--muted); }
.calc-rule-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 2px; font-size: 12.5px; line-height: 1.5; }
.calc-rule-facts dt { font-weight: 650; color: var(--deep-2); white-space: nowrap; }
.calc-rule-facts dd { margin: 0; color: var(--ink, #333); }
@media (max-width: 900px) { .calc-rule-grid { grid-template-columns: 1fr; } }
.calc-weight { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: #fbfcfb; }
.calc-weight-title { font-weight: 700; color: var(--deep-2); margin-bottom: 6px; }
.calc-weight dl { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 13px; }
.calc-weight dl > div { display: flex; gap: 6px; align-items: baseline; padding: 4px 10px; border-radius: 6px; background: #f1f4f2; }
.calc-weight dt { font-weight: 650; color: var(--muted); }
.calc-weight dd { margin: 0; }
.calc-weight dl > div.pick { background: #fff4d6; outline: 1px solid #f0c75e; }
.calc-weight dl > div.pick dd { font-weight: 700; }
.calc-weight-final { background: #e3f2ec !important; }
.calc-weight-final strong { color: var(--deep-2); font-size: 15px; }
.calc-rule-table { min-width: 0 !important; width: 100%; table-layout: fixed; }
.calc-rule-table th:nth-child(1) { width: 44%; } .calc-rule-table th:nth-child(2) { width: 26%; } .calc-rule-table th:nth-child(3), .calc-rule-table th:nth-child(4) { width: 15%; }
.calc-rule-table td { height: 28px; }
.calc-rule-table td.calc-rule-name { vertical-align: middle; border-right: 1px solid var(--line); }
.calc-rule-table tr.calc-rule-pad td { background: #fafbfa; }

/* V1.5.3 记住密码 */
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #36514b; margin: 2px 0 4px; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; accent-color: var(--brand); }
.password-field { position: relative; display: block; min-width: 0; }
.password-field input { padding-right: 42px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #36514b; display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 5px; cursor: pointer; }
.password-toggle:hover { background: #e8efed; }
.password-toggle:focus-visible { outline: 2px solid #0c7462; outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; display: block; }

/* V1.5.4 计算器两栏一屏（深绿主题）：左 45% 仓库切换 + 渠道卡片 + 输入；右 55% 吸顶结果 */
.calc-work { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.calc-work .section { margin-bottom: 0; }
.calc-right { position: sticky; top: 12px; }
.calc-work .section-heading { padding: 10px 14px; }
.calc-work .section-body { padding: 10px 14px; }
.calc-work .calc-pick-body { padding-bottom: 0; }
.calc-wh-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.calc-wh-tab { padding: 8px; border: 1.5px solid #cbdad6; background: #fff; color: #657873; font-weight: 700; font-size: 14px; cursor: pointer; }
.calc-wh-tab + .calc-wh-tab { border-left: 0; }
.calc-wh-tab.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.calc-groups { display: block; }
.calc-group[hidden] { display: none; }
.calc-group-title { display: none; }
.calc-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
.calc-card { min-height: 0; padding: 7px 10px; gap: 2px; opacity: .6; border: 1.5px solid #d5e0dd; }
.calc-card:hover { opacity: 1; }
.calc-card-name { font-size: 13px; }
.calc-card-price { font-size: 12px; line-height: 1.35; }
.calc-card-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 11px; }
.calc-card .calc-date { display: none; }
.calc-card.selected { opacity: 1; border: 3px solid var(--deep); background: #e0f3ec; box-shadow: 0 0 0 3px #0c746226; }
.calc-card.selected .calc-card-name, .calc-card.selected .calc-card-name::before { color: var(--deep); }
.calc-card.selected .calc-card-name::before { content: "✓ "; font-weight: 800; }
.calc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; margin: 0 0 10px; border-left: 8px solid var(--deep); background: #e0f3ec; border-radius: 6px; }
.section-heading .calc-pick { margin: 4px 0 0; padding: 3px 10px; border-left-width: 5px; }
.calc-pick-check { color: var(--deep); font-weight: 900; font-size: 20px; }
.calc-pick-name { font-size: 22px; color: var(--deep); }
.section-heading .calc-pick-name { font-size: 14px; }
.section-heading .calc-pick-check { font-size: 14px; }
.calc-pick-meta { flex-basis: 100%; font-size: 14px; color: #24413b; font-weight: 600; }
.calc-stale { margin: 0; padding: 12px; background: #fff4d6; border: 1px solid #e7b84a; border-radius: 6px; font-weight: 700; color: #8a5a00; }
.calc-work .calc-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calc-work .calc-dims-field { grid-column: 1 / -1; }
.calc-work .field input { padding: 7px 9px; }
.calc-work .calc-zones { gap: 4px; margin-top: 10px; }
.calc-work .calc-zone.selected small.calc-default-mark { background: #dcefe7; color: var(--deep); }
.calc-work .calc-hero { grid-template-columns: 1fr 1fr; padding: 10px 16px; gap: 10px; margin-bottom: 10px; }
.calc-work .calc-hero-meta { display: none; }
.calc-work .calc-hero strong { font-size: 32px; }
.calc-work .calc-weight { margin: 0 0 10px; padding: 8px 12px; }
.calc-work .data-table { min-width: 0; }
.calc-work .data-table th, .calc-work .data-table td { padding: 6px 8px; font-size: 12.5px; }
.calc-version { margin-bottom: 10px; padding: 7px 12px; }
@media (max-width: 1100px) { .calc-work { grid-template-columns: 1fr; } .calc-right { position: static; } }


/* V1.5.6 固定均价尾程 */
.calc-zone-flat { gap: 4px; }
.calc-flat-wrap { display: inline-flex; align-items: center; gap: 0; font-weight: 700; }
.calc-flat-usd { width: 4.2em; margin-left: 2px; padding: 2px 4px; border: 1px solid #9bb8ad; border-radius: 3px; font: inherit; font-weight: 700; color: inherit; background: #fff; }
.calc-zone-flat.selected .calc-flat-usd { border-color: #cfe6dc; background: #e8f6f0; color: var(--deep); }
.calc-flat-hint { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.calc-src.flat { background: #e8f0ff; color: #234a8a; }

/* V1.5.7 本地仓备货：沿用 section/button/field/tag/summary/table 组件。 */
.local-stock-rules { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; }
.local-stock-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.local-stock-input { display: flex; align-items: center; gap: 7px; }
.local-stock-input input { flex: 1; width: 70px; }
.local-stock-input > span { flex: none; font-size: 12px; color: var(--muted); font-weight: 400; }
.local-stock-formula { background: var(--ground); border: 1px dashed var(--line); border-radius: 6px; padding: 15px; font-size: 12px; line-height: 1.9; }
.local-stock-formula > strong { color: var(--deep); }
.local-stock-formula p { margin: 8px 0; }
.local-stock-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.local-stock-stats .summary-item { border-bottom: 0; }
.local-stock-high { color: #bc641e; }
.tag.orange { background: #fff0e1; color: #a75719; }
.local-stock-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.local-stock-toolbar { justify-content: space-between; }
.local-stock-source { margin: 12px 0 0; font-size: 12px; }
.local-stock-table { min-width: 1130px; }
.local-stock-table th, .local-stock-table td { padding: 12px 10px; }
.local-stock-table td:first-child, .local-stock-table th { white-space: nowrap; }
.local-stock-table td:nth-child(n+3):nth-child(-n+7), .local-stock-table th:nth-child(n+3):nth-child(-n+7), .local-stock-quantity { text-align: right; font-variant-numeric: tabular-nums; }
.local-stock-table td:nth-child(2) { min-width: 150px; }
.local-stock-table td:last-child { width: 122px; }
@media (max-width: 1250px) { .local-stock-rules { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .local-stock-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-stock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-stock-stats .summary-item:last-child { grid-column: auto; }
  .local-stock-stats .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .local-stock-rules { gap: 16px; }
}

/* V1.6.0 妙手发货 / 发货设置（预览版；V1.6.1 增补见文件末尾） */
.summary-strip.ship-s8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.summary-item small { display: block; }
.ship-c-today { color: #0c7462; } .ship-c-adv { color: #2f5fb3; } .ship-c-man { color: #b63e3e; } .ship-c-gray { color: #a3b1ae; }
.ship-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 0 20px; }
.ship-tabs button { padding: 13px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; }
.ship-tabs button.sel { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.ship-tabs em { font-style: normal; font-size: 11px; background: #eef2f1; color: #4b635e; border-radius: 9px; padding: 1px 7px; margin-left: 6px; }
.ship-tabs button.sel em { background: #e2f3ec; color: #08765c; }
.ship-tabs button.todo { color: #a3b1ae; } .ship-tabs button.todo em { background: #fff1d7; color: #946716; }
.ship-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #f8fbfa; }
.ship-hint { font-size: 12px; color: #946716; background: #fff5d8; border: 1px solid #f3d477; border-radius: 4px; padding: 5px 9px; }
.ship-rule { font-size: 12px; color: #0c5546; background: #e2f3ec; border: 1px solid #bfe0d3; border-radius: 4px; padding: 5px 9px; }
.ship-legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.ship-legend b { color: #36514b; }
.ship-flow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ship-flow i { font-style: normal; color: #b7c4c1; font-size: 11px; }
.ship-st { display: inline-flex; align-items: center; font-size: 12px; padding: 4px 8px; border-radius: 4px; border: 1px solid; white-space: nowrap; line-height: 1.2; }
.ship-st.done { background: #e2f3ec; border-color: #bfe0d3; color: #08765c; }
.ship-st.auto { background: #fff; border-color: #9fcfc0; color: #0c7462; border-style: dashed; }
.ship-st.ms { background: #e6f1fb; border-color: #8fbfe8; color: #1f63a8; font-weight: 700; }
.ship-st.hand { background: #fff5d8; border-color: #f0cf6e; color: #856512; font-weight: 700; }
.ship-st.bad { background: #fde7e5; border-color: #f1b5ae; color: #b63e3e; font-weight: 700; }
.ship-st.skip { background: #f3f5f4; border-color: #e1e7e5; color: #a3b1ae; text-decoration: line-through; }
.ship-kind { display: inline-block; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 5px; white-space: nowrap; color: #fff; }
.ship-kind.today { background: #0c7462; } .ship-kind.adv { background: #2f5fb3; } .ship-kind.cbt { background: #5b3fa6; } .ship-kind.unk { background: #8a9893; }
.ship-table td { vertical-align: top; }
.ship-gd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ship-gd + .ship-gd { margin-top: 8px; }
.ship-th { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); background: #f3f5f4; }
.ship-th.s { width: 36px; height: 36px; border-radius: 6px; }
.ship-th-empty { display: inline-grid; place-items: center; font-size: 10px; color: #a3b1ae; }
.ship-nm { min-width: 0; }
.ship-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; font-size: 13px; }
.ship-nowrap { white-space: nowrap; display: block; }
.ship-ok { color: #08765c; font-size: 12px; } .ship-red { color: #b63e3e; font-weight: 700; } .ship-fill { color: #946716; }
.ship-chan { font-weight: 700; display: block; }
.ship-foot { font-size: 12px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); padding: 14px 20px; }
.ship-pending { border: 2px dashed #e7cf8a; background: #fffaf0; border-radius: 8px; padding: 18px; margin: 16px 20px; text-align: center; color: #856512; }
.ship-pending strong { display: block; font-size: 15px; margin-bottom: 4px; color: #6c551b; }
.ship-preview { display: grid; gap: 10px; }
.ship-pv { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; font-size: 13px; }
.ship-pv.plan { border-left: 4px solid var(--brand); } .ship-pv.skip { border-left: 4px solid var(--danger); background: #fffafa; }
.ship-pv ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.ship-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ship-dims { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ship-dims input { width: 64px; padding: 6px 8px; border: 1px solid #cbdad6; border-radius: 5px; }
.ship-unit { display: inline-block; background: #eef2f1; color: #4b635e; border-radius: 4px; padding: 2px 7px; font-size: 12px; font-weight: 700; }
.ship-mini { min-width: 0; }
.ship-select { padding: 6px 8px; border: 1px solid #cbdad6; border-radius: 5px; background: #fff; }
.ship-cand .button { margin-left: auto; }
.ship-sku-search { display: flex; gap: 6px; margin-top: 8px; }
.ship-sku-search input { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid #cbdad6; border-radius: 5px; }
@media (max-width: 1050px) { .summary-strip.ship-s8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ship-two { grid-template-columns: 1fr; } }
.ship-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.ship-seg-group { display: inline-flex; border: 1px solid #cbdad6; border-radius: 6px; overflow: hidden; }
.ship-seg { border: 0; border-right: 1px solid #e1e9e7; background: #fff; padding: 6px 11px; font-size: 13px; color: #36514b; }
.ship-seg:last-child { border-right: 0; }
.ship-seg.on { background: var(--brand); color: #fff; font-weight: 700; }
.ship-date { font-size: 13px; color: #36514b; display: inline-flex; align-items: center; gap: 4px; }
.ship-date input { padding: 5px 7px; border: 1px solid #cbdad6; border-radius: 5px; }
.ship-search { flex: 1 1 240px; min-width: 200px; padding: 7px 10px; border: 1px solid #cbdad6; border-radius: 5px; }
/* V1.6.1 品类报关 / 自动学习 / 采购清单 */
.ship-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ship-cat input { width: 110px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; }
.ship-cat input[type=number] { width: 76px; }
.ship-cat input.ship-cat-kw { width: 220px; }
.ship-cat .ship-cat-bat { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.ship-cat .ship-cat-bat input { width: auto; }
.ship-miss { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ship-miss .ship-gd + .ship-gd { margin-top: 0; }
.ship-learn { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.purchase-table td { vertical-align: top; }
.purchase-ords { max-width: 320px; }
.purchase-ord { display: block; font-size: 12px; margin-bottom: 4px; }
.purchase-ord.gone { color: var(--muted); text-decoration: line-through; }
.purchase-rec { margin-top: 6px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.purchase-form { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px; padding: 8px 0; }
.purchase-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.purchase-form-row td { background: #f7faf9; }
.purchase-old { margin: 8px 2px 4px; }
@media (max-width: 760px) { .purchase-form { grid-template-columns: 1fr; } }
/* V1.6.4 提前单按日期 / 已发走 / 默认报关 */
.summary-strip.ship-s11 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
@media (max-width: 1250px) { .summary-strip.ship-s11 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ship-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ship-days-t { font-weight: 700; font-size: 13px; color: var(--muted); margin-right: 4px; }
.ship-day { border: 1px solid #c9d8f3; background: #f3f7ff; color: #2f5fb3; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: baseline; gap: 6px; }
.ship-day b { font-size: 15px; } .ship-day small { font-weight: 500; color: #6b7d9c; }
.ship-day.late { border-color: #f1c4c4; background: #fff5f5; color: #b3261e; } .ship-day.late small { color: #b3261e; }
.ship-day.on { background: #2f5fb3; color: #fff; border-color: #2f5fb3; } .ship-day.on small { color: #e3ecff; }
.ship-kind.sent { background: #5f6f6b; }
.ship-group td { background: #eef3fb; font-weight: 700; color: #2f5fb3; font-size: 13px; padding: 8px 14px; }
.ship-row-act { margin-top: 6px; }
.ship-def-t { margin-right: 6px; }
.ship-kind.new { background: #8a6d1f; }
/* V1.6.5 海外仓计算器 */
.oc-rate { border-top: 3px solid #0f6b55; }
.oc-rate.stale { background: #fff8e1; border-top-color: #d9a400; }
.oc-rate-main { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 18px 20px; }
.oc-rate-num { font-size: 2.6em; font-weight: 700; color: #0f6b55; line-height: 1; }
.oc-rate.stale .oc-rate-num { color: #9a6b00; }
.oc-rate-num small { display: block; font-size: 0.32em; font-weight: 500; color: #5b6b66; margin-top: 6px; }
.oc-rate-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 260px; }
.oc-warn { color: #9a6b00; font-weight: 600; }
.oc-rate-act { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.oc-lock { display: flex; gap: 6px; }
.oc-lock input { width: 8em; }
.oc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.oc-card { border: 1px solid #dfe7e4; border-top: 3px solid #0f6b55; border-radius: 8px; padding: 12px 14px; background: #fff; }
.oc-card-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.oc-card-h strong, .oc-card-h span { display: block; }
.oc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 8px; }
.oc-dl dt { color: #5b6b66; }
.oc-dl dd { margin: 0; font-weight: 600; }
.oc-dl dd small { display: block; font-weight: 400; color: #5b6b66; }
.oc-simple { margin: 0; font-size: 0.92em; color: #33433e; }
.oc-simple b { margin-right: 6px; }
.oc-quick, .oc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.oc-quick label, .oc-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92em; }
.oc-form .oc-wide { grid-column: 1 / -1; }
.oc-form textarea { width: 100%; font: inherit; }
.oc-btns { display: flex; gap: 8px; }
.oc-result { margin-top: 14px; padding: 12px 14px; background: #f2f8f6; border: 1px solid #d5e6e0; border-radius: 8px; }
.oc-res-n { display: flex; gap: 40px; }
.oc-res-n span { display: flex; flex-direction: column; color: #5b6b66; }
.oc-res-n strong { font-size: 1.8em; color: #0f6b55; }
.oc-act { white-space: nowrap; }
.oc-act .button { margin-right: 6px; }
.oc-foot { margin: 8px 4px 24px; }
/* V1.7.0 本地仓进销存 */
.inv-num { width: 5.5em; }
.inv-warn td { background: #fff6f4; }
.inv-bad td { background: #fff1ef; }
.inv-on td { background: #eef7f4; }
.inv-phs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.inv-ph img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #dfe7e4; display: block; }
.inv-up { cursor: pointer; }
.inv-confirm { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.inv-scan { gap: 10px; }
.inv-scan .ship-search { flex: 1; min-width: 320px; }
.summary-strip.inv-s5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.summary-item.inv-alert { background: #fff1ef; border-bottom: 3px solid #c0392b; }
.inv-types { display: flex; gap: 10px; }
.inv-type { flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid #dfe7e4; border-radius: 6px; padding: 6px 14px; font-weight: 500 !important; }
.inv-steps { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dfe7e4; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.inv-steps > div { flex: 1; display: flex; flex-direction: column; text-align: center; }
.inv-steps > div:nth-child(3) { background: #eef7f4; border-radius: 6px; padding: 6px; }
.inv-steps i { color: #8a9893; font-style: normal; }
.inv-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
.inv-stats { display: flex; gap: 26px; }
.inv-stats span { display: flex; flex-direction: column; color: #5b6b66; font-size: 0.9em; }
.inv-stats strong { font-size: 1.5em; color: #1d2b27; }
.inv-buy td { color: #5b6b66; }
/* V1.8.0 指令中心 / 利润预估 */
.tag.blue { background: #e4edfb; color: #2f5fb3; }
.ship-c-amber { color: #946716; }
.ship-tabs em.red { background: #fde7e5; color: #b63e3e; }
.summary-strip.inv-s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cmd-view { margin: -6px 0 14px; color: #5b6b66; font-size: 0.92em; }
.cmd-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cmd-grid { grid-template-columns: 1fr; } }
.cmd-pad { padding: 14px 18px; }
.cmd-form .oc-form { padding: 14px 18px; }
.cmd-wf { grid-template-columns: 1fr; }
.cmd-wf select, .cmd-wf input:not([type=radio]):not([type=checkbox]), .cmd-wf textarea { width: 100%; }
.cmd-table td:first-child { min-width: 118px; }
.cmd-table td:first-child strong { white-space: nowrap; }
.cmd-lb { display: block; font-weight: 600; font-size: 0.92em; margin-bottom: 6px; }
.cmd-picks { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow: auto; border: 1px solid #dfe7e4; border-radius: 6px; padding: 6px; margin-bottom: 8px; }
.cmd-pick { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; padding: 4px 6px; border-radius: 5px; font-weight: 500 !important; }
.cmd-pick.on { background: #e2f3ec; }
.cmd-table td .ship-gd { margin-top: 4px; }
.cmd-table td > .cell-muted, .cmd-table td > strong { display: block; }
.cmd-filter label { display: flex; align-items: center; gap: 4px; color: #5b6b66; }
.cmd-h3 { font-size: 0.95em; margin: 14px 0 8px; }
.cmd-check { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #f0dca8; background: #fffaf0; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.cmd-check.on { border-color: #b9dccf; background: #e9f5f0; }
.cmd-check > span { display: flex; flex-direction: column; }
.cmd-field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92em; margin-top: 12px; }
.cmd-field textarea, .cmd-field input, .cmd-field select { font: inherit; font-weight: 400; }
.cmd-wrap { flex-wrap: wrap; }
.cmd-info .read-field { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e7eeec; }
.cmd-shots .inv-ph img { width: 150px; height: 110px; }
.cmd-tl { list-style: none; margin: 0; padding: 14px 18px 4px 34px; position: relative; }
.cmd-tl::before { content: ''; position: absolute; left: 21px; top: 20px; bottom: 16px; border-left: 2px solid #dfe7e4; }
.cmd-tl li { position: relative; padding-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.cmd-tl li::before { content: ''; position: absolute; left: -18px; top: 3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; }
.cmd-tl li.bad::before { border-color: #c0392b; }
.cmd-tl p { margin: 0; color: #4b5b56; font-size: 0.92em; }
.cmd-now { margin: 0 18px 14px; color: #946716; font-weight: 600; }
.cmd-change { display: flex; gap: 14px; align-items: center; background: #f6faf8; border: 1px solid #dfe7e4; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.cmd-change > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cmd-change i { font-style: normal; color: #0f6b55; font-size: 1.4em; }
.cmd-change p { margin: 0; }
.cmd-bad { border-left: 4px solid #c0392b; }
.cmd-bad .section-heading h2 { color: #b42318; }
.purchase-oos { display: block; margin-top: 4px; }

/* V1.9.0 到货与打包 · 扫码称重分袋 */
.pk-tabs { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 16px; }
.pk-step { font-size: 13px; font-weight: 700; color: #36514b; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-bags { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.pk-bag { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 14px 18px; text-align: left; color: inherit; }
.pk-bag .pk-code { font-size: 30px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.pk-bag.haiou .pk-code { color: #1f63a8; } .pk-bag.yunding .pk-code { color: #946716; }
.pk-bag-t b { display: block; font-size: 18px; } .pk-bag-t small, .pk-bag-r small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.pk-bag-r { margin-left: auto; text-align: right; } .pk-bag-r b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pk-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbdad6; flex: none; }
.pk-bag.on { border-color: var(--brand); background: #f0f8f5; box-shadow: 0 0 0 3px #0c746222; } .pk-bag.on .pk-radio { border: 7px solid var(--brand); }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; border-radius: 5px; padding: 4px 9px; font-size: 13px; white-space: nowrap; background: #eef2f1; color: #4b635e; }
.pk-chip.haiou { background: #e6f1fb; color: #1f63a8; } .pk-chip.yunding { background: #fff1d7; color: #946716; }
.pk-scanbar { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pk-scan-in { flex: 1 1 320px; min-width: 0; border: 2px solid var(--brand); border-radius: 7px; padding: 11px 14px; font-size: 20px; font-variant-numeric: tabular-nums; background: #fbfdfc; }
.pk-scan-in:disabled { border-color: #cbdad6; background: #f2f5f4; }
.pk-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pk-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pk-pill.ok { background: #e2f3ec; color: #08765c; } .pk-pill.off { background: #fde7e5; color: #b63e3e; } .pk-pill.wait { background: #fff5d8; color: #946716; }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.pk-cur { padding: 0 20px 20px; }
.pk-ordno { font-size: 26px; font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: #36514b; font-size: 13px; margin: 6px 0 14px; }
.pk-items { display: grid; gap: 10px; }
.section > .pk-items { padding: 0 20px 20px; }
.pk-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fbfdfc; }
.pk-img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; background: #eef4f3; }
img.pk-img { cursor: zoom-in; }
.pk-img.s { width: 40px; height: 40px; border-radius: 6px; }
.pk-noimg { display: inline-grid; place-items: center; color: var(--muted); font-size: 12px; }
.pk-item-t { min-width: 0; line-height: 1.4; font-weight: 600; } .pk-spec { margin-top: 6px; font-size: 15px; font-weight: 800; color: #0c5546; }
.pk-item-t .cell-muted { display: block; font-weight: 400; margin-top: 2px; }
.pk-qty { margin-left: auto; font-size: 22px; font-weight: 800; padding: 0 10px; white-space: nowrap; }
.pk-weigh { border-radius: 10px; background: var(--deep); color: #fff; padding: 16px 20px; margin-top: 14px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pk-w { font-size: 54px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; min-width: 200px; } .pk-w small { font-size: 22px; margin-left: 4px; }
.pk-st { display: grid; gap: 5px; font-size: 12px; color: #c7ddd8; max-width: 240px; } .pk-st b { color: #7fe0c0; font-size: 14px; }
.pk-st b.pk-wait { color: #ffd27a; } .pk-st b.pk-bad { color: #ffb4b4; }
.pk-act { margin-left: auto; display: grid; gap: 6px; justify-items: end; } .pk-act small { color: #c7ddd8; font-size: 12px; } .pk-act span { display: flex; gap: 6px; }
.pk-big { padding: 14px 22px; font-size: 16px; font-weight: 800; }
.pk-manual { display: flex; align-items: center; gap: 8px; font-size: 30px; font-weight: 800; }
.pk-manual input { width: 200px; font-size: 32px; font-weight: 800; padding: 6px 12px; border-radius: 6px; border: 2px solid #e7cf8a; background: #fffaf0; color: #172c28; font-variant-numeric: tabular-nums; }
.pk-dev { margin-top: 10px; padding: 10px 14px; background: #fff8e8; border: 1px solid #e7cf8a; border-radius: 6px; color: #6c551b; font-weight: 700; font-size: 13px; }
.pk-after { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk-after div { border: 1px solid #bfe0d3; background: #f3faf7; border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.5; color: #36514b; }
.pk-after b { display: block; color: #08765c; font-size: 13px; margin-bottom: 2px; }
.pk-idle { padding: 18px 20px 22px; color: var(--muted); font-size: 14px; }
.pk-table { min-width: 0; } .pk-table td { vertical-align: middle; } .pk-table .cell-muted { display: block; }
.pk-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.pk-total td { background: #f8fbfa; font-weight: 800; }
.pk-thumbs { display: flex; gap: 4px; flex-wrap: wrap; }
.pk-sub > td { background: #f8fbfa; padding: 8px 12px 14px; }
.pk-log { list-style: none; margin: 0; padding: 0 20px 16px; font-size: 13px; }
.pk-log li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; } .pk-log li:last-child { border-bottom: 0; }
.pk-log time { color: var(--muted); font-variant-numeric: tabular-nums; width: 64px; flex: none; }
.pk-good { color: #08765c; font-weight: 700; } .pk-bad { color: #b63e3e; font-weight: 700; } .pk-warn { color: #946716; font-weight: 700; }
.pk-wrong { background: #c62828; color: #fff; border-radius: 12px; padding: 22px 26px; margin-bottom: 16px; box-shadow: 0 0 0 6px #c6282833; }
.pk-wrong-big { font-size: 44px; font-weight: 900; line-height: 1.2; letter-spacing: 1px; }
.pk-wrong-big em { font-style: normal; background: #fff; color: #c62828; border-radius: 8px; padding: 0 12px; margin: 0 6px; }
.pk-wrong-sub { font-size: 18px; margin-top: 10px; font-weight: 700; }
.pk-wrong-row { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; } .pk-wrong-row small { opacity: .85; }
.button.pk-ack { background: #fff; color: #c62828; border-color: #fff; font-weight: 800; font-size: 16px; padding: 12px 20px; }
.pk-dim { opacity: .6; }
.pk-yellow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff5d8; border: 2px solid #e7cf8a; border-left: 6px solid #d9a21b; border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; color: #6c551b; }
.pk-yellow b { font-size: 20px; } .pk-yellow .button { margin-left: auto; }
.pk-cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pk-pad { padding: 0 20px 20px; }
.pk-spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.pk-spec div { border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; background: #fbfdfc; font-size: 12px; color: var(--muted); } .pk-spec b { display: block; color: #172c28; font-size: 15px; margin-top: 3px; }
.pk-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.pk-params { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.pk-params label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #36514b; }
.pk-params select { padding: 8px 9px; border: 1px solid #cbdad6; border-radius: 5px; background: #fff; }
.pk-raw { background: #0f1f1c; color: #9ff0d0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; border-radius: 8px; padding: 12px 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 360px; overflow: auto; margin: 0 0 10px; }
@media (max-width: 1100px) { .pk-grid, .pk-cfg, .pk-bags { grid-template-columns: 1fr; } .pk-after, .pk-params, .pk-spec { grid-template-columns: 1fr 1fr; } .pk-wrong-big { font-size: 30px; } }

/* V1.9.1 左侧菜单分组：常用 / 本地仓库 / 计算器 / 不常用 / 设置（设置在最底下）；组名用浅色小字 */
.sidebar nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 10px; flex: 1; min-height: 0; overflow-y: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group[hidden] { display: none; }
.nav-group-bottom { margin-top: auto; padding-top: 6px; border-top: 1px solid #ffffff22; }
.nav-group-t { color: #8ebbb4; font-size: 12px; padding: 12px 13px 4px; }
.nav-group-b { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { padding: 8px 15px; font-size: 14.5px; }
.sidebar nav a[hidden] { display: none; }
.sidebar-foot { padding: 14px 0; }
.nav-badge { background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; margin-left: auto; }
.nav-badge[hidden] { display: none; }
.nav-badge:not([hidden]) + .nav-tag { margin-left: 6px; }
/* 进销存顶部子页签 */
.stock-tabs { margin-bottom: 14px; }
.stock-tabs em.inv-em-bad { background: #fde2e2; color: #c62828; }
/* 员工管理：可看页面按菜单分组勾选 */
.staff-perm-groups { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 12px; margin: 10px 0 4px; width: 100%; }
.staff-perm-group { border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; background: #fbfdfc; }
.staff-perm-gt { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.staff-perm-group .staff-perms { flex-direction: column; gap: 6px; margin: 4px 0 0; }
.staff-perm-note { font-size: 12px; color: var(--muted); margin: 4px 0 10px; width: 100%; }
.staff-edit .staff-perm-groups, .staff-edit .staff-perm-note { flex: 1 1 100%; }
@media (max-width: 900px) { .staff-perm-groups { grid-template-columns: 1fr 1fr; } }

/* V1.9.2 表格文字自动换行显示全（利润预估、妙手发货、进销存、指令中心、本地仓备货）：商品名不再截成两行省略号 */
.ship-title { display: block; -webkit-line-clamp: unset; -webkit-box-orient: initial; overflow: visible; white-space: normal; overflow-wrap: break-word; word-break: normal; max-width: 460px; line-height: 1.4; }
.data-table td, .cell-muted { overflow-wrap: break-word; }
.data-table td .cell-muted { white-space: normal; }
.local-stock-table td:first-child { white-space: normal; min-width: 240px; }
/* 利润预估与调价：海外仓 / 虚拟仓两个表不横向溢出 */
.profit-table { min-width: 0; table-layout: auto; }
.profit-table th, .profit-table td { padding: 10px 8px; vertical-align: top; }
.profit-table td:nth-child(1) { min-width: 100px; }
.profit-table td:nth-child(1) strong { white-space: nowrap; }
@media (max-width: 1200px) { .profit-table td:nth-child(1) strong { white-space: normal; word-break: break-all; } } /* 18 位订单号窄屏才折行 */
.profit-table td:nth-child(2) { min-width: 180px; }
.profit-table td:nth-child(2) .ship-title { max-width: none; }
.profit-table td:nth-child(3) { min-width: 64px; }
.profit-table td.oc-act { white-space: normal; min-width: 0; }
.profit-table td.oc-act .button { white-space: normal; }
.profit-table td.oc-act .button { margin: 0 4px 4px 0; }
.profit-table .ship-nm { flex: 1; }
/* 窄屏：统计卡片换行 */
@media (max-width: 1100px) { .summary-strip.inv-s5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .summary-strip.inv-s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .summary-strip.inv-s4, .summary-strip.inv-s5, .summary-strip.ship-s8, .summary-strip.ship-s11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip .summary-item { border-bottom: 1px solid var(--line); }
  .summary-strip.inv-s4 .summary-item:last-child, .summary-strip.ship-s8 .summary-item:last-child { grid-column: auto; } /* 偶数张卡片不让最后一张独占一行 */
  .summary-item small, .summary-item span { overflow-wrap: break-word; }
  .cmd-filter .ship-search { min-width: 0; flex-basis: 100%; }
  /* 利润表窄屏改成一单一块，不横向滚 */
  .profit-table thead { display: none; }
  .profit-table, .profit-table tbody, .profit-table tr, .profit-table td { display: block; width: 100%; box-sizing: border-box; }
  .profit-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .profit-table td { border: 0; padding: 4px 12px; min-width: 0 !important; }
  .profit-table td:nth-child(n+3):not(.oc-act)::before { content: attr(data-l); color: var(--muted); font-size: 11px; margin-right: 6px; }
}

/* V1.9.3 打包称重：扫码识别出的运单号、多单选择 */
.pk-lastscan { margin: -4px 0 14px; font-size: 13px; color: #36514b; word-break: break-all; }
.pk-lastscan code { background: #eef2f1; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.pk-lastscan b { color: #0c7462; font-size: 15px; }
.pk-choice { border-top: 1px solid var(--line); padding: 12px 20px; }
.pk-choice-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pk-choice-h .button { margin-left: auto; }
/* V1.9.3 扫码称重页顶部当天统计（按仓） */
.pk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.pk-stat { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px 14px; }
.pk-stat.haiou { border-top: 4px solid #2f7fb3; } .pk-stat.yunding { border-top: 4px solid #8a5cc2; }
.pk-stat-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pk-stat-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-stat-n div { background: #f6f9f8; border-radius: 8px; padding: 8px 10px; } .pk-stat-n span { display: block; font-size: 12px; color: var(--muted); } .pk-stat-n b { font-size: 24px; }
.pk-stat-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; } .pk-stat-act small { color: var(--muted); }
.pk-stat-days { list-style: none; margin: 0; padding: 0; font-size: 13px; } .pk-stat-days li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 5px 0; border-top: 1px dashed var(--line); }
.pk-stat-days li b { min-width: 28px; } .pk-stat-days li small { color: #946716; }
@media (max-width: 900px) { .pk-stats { grid-template-columns: 1fr; } }
/* ===== V1.9.5 全站统一控件样式：按钮（主 / 次 / 危险）、分段胶囊、状态胶囊、胶囊页签、带后缀输入、折叠公式 ===== */
.button { border-radius: 8px; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; box-shadow: 0 1px 0 rgba(4,60,51,.04); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(12,116,98,.25); }
.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(4,60,51,.18); }
.button.primary:hover:not(:disabled) { background: var(--deep-2); border-color: var(--deep-2); }
.button.secondary { background: #fff; border-color: #cfdcd8; color: var(--deep-2); }
.button.secondary:hover:not(:disabled) { background: #f0f7f5; border-color: var(--brand); color: var(--brand); }
.button.danger { background: #fff; border-color: #efc1bb; color: #b63e3e; }
.button.danger:hover:not(:disabled) { background: #fde7e5; border-color: #c94f4f; }
.button.small { min-height: 30px; padding: 4px 12px; font-size: 12.5px; border-radius: 7px; }
/* 分段胶囊 */
.seg-pill { display: inline-flex; gap: 2px; padding: 3px; background: #e6efed; border-radius: 999px; }
.seg-pill button { border: 0; background: transparent; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 650; color: #4b635e; transition: background .15s, color .15s; }
.seg-pill button:hover:not(.on) { background: #f5faf9; color: var(--brand); }
.seg-pill button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(4,60,51,.18); }
.filter-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 16px 0; }
.filter-bar .range-note { color: var(--muted); font-size: 12.5px; }
.search-box { flex: 1 1 260px; position: relative; } .search-box input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid #cfdcd8; border-radius: 999px; background: #f8fbfa; }
.search-box input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(12,116,98,.15); }
.search-box::before { content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-52%); color: #8aa19c; font-size: 16px; }
/* 阈值输入 + 元 后缀 */
.th-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px 6px; }
.th-row > span { font-weight: 650; color: #36514b; }
.input-suffix { display: inline-flex; align-items: stretch; border: 1px solid #cfdcd8; border-radius: 8px; overflow: hidden; background: #fff; height: 34px; }
.input-suffix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,116,98,.15); }
.input-suffix input { width: 88px; border: 0; padding: 0 10px; font-size: 15px; font-weight: 700; text-align: right; outline: none; }
.input-suffix em { font-style: normal; display: grid; place-items: center; padding: 0 10px; background: #f1f6f5; color: #4b635e; border-left: 1px solid #e1e9e7; font-size: 13px; }
.th-hint { color: var(--muted); font-size: 12.5px; }
/* 计算公式折叠区 */
.formula { margin: 8px 20px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfa; }
.formula summary { cursor: pointer; list-style: none; padding: 9px 14px; font-weight: 650; color: var(--deep-2); display: flex; align-items: center; gap: 8px; }
.formula summary::-webkit-details-marker { display: none; }
.formula summary::before { content: '▸'; transition: transform .15s; color: var(--brand); } .formula[open] summary::before { transform: rotate(90deg); }
.formula summary small { color: var(--muted); font-weight: 400; }
.formula-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 14px 14px; }
.formula-body h4 { margin: 0 0 6px; font-size: 13px; color: #36514b; } .formula-body ol { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: #36514b; }
.formula-body code { background: #fff; border: 1px solid #e1e9e7; border-radius: 4px; padding: 0 4px; font-family: inherit; }
.formula-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
/* 页签 */
.tab-pill { display: inline-flex; gap: 6px; padding: 12px 20px 4px; }
.tab-pill button { border: 1px solid #cfdcd8; background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 650; color: #4b635e; display: inline-flex; gap: 8px; align-items: center; }
.tab-pill button:hover:not(.sel) { border-color: var(--brand); color: var(--brand); }
.tab-pill button.sel { background: var(--deep-2); border-color: var(--deep-2); color: #fff; }
.tab-pill em { font-style: normal; min-width: 22px; padding: 0 6px; border-radius: 999px; background: #e6efed; color: #36514b; font-size: 12px; line-height: 20px; text-align: center; }
.tab-pill button.sel em { background: rgba(255,255,255,.2); color: #fff; } .tab-pill em.red { background: #c94f4f; color: #fff; }
/* 状态胶囊 */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.red { background: #fde7e5; color: #b63e3e; } .pill.amber { background: #fff1d7; color: #946716; } .pill.teal { background: #e2f3ec; color: #08765c; } .pill.gray { background: #eef2f1; color: #65736f; } .pill.blue { background: #e4edfb; color: #2f5fb3; }
/* 表格操作按钮统一大小 */
.profit-table td.oc-act { width: 132px; }
.act-stack { display: grid; gap: 6px; width: 120px; } .act-stack .button { width: 100%; margin: 0 !important; white-space: nowrap !important; }
.act-stack .act-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.profit-table tr.inv-bad td { background: #fff7f6; } .profit-table tr.inv-bad td:first-child { box-shadow: inset 3px 0 0 #c94f4f; }
/* 老的分段按钮（妙手发货、指令中心等）也换成胶囊样式 */
.ship-seg-group { border: 0; background: #e6efed; border-radius: 999px; padding: 3px; gap: 2px; overflow: visible; }
.ship-seg { border: 0 !important; border-radius: 999px; background: transparent; padding: 5px 14px; font-weight: 650; color: #4b635e; transition: background .15s, color .15s; }
.ship-seg:hover:not(.on) { background: #f5faf9; color: var(--brand); }
.ship-seg.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(4,60,51,.18); font-weight: 700; }
.ship-search { border-radius: 999px; padding: 7px 14px; border-color: #cfdcd8; background: #f8fbfa; }
.ship-search:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(12,116,98,.15); }
.tag { border-radius: 999px; padding: 3px 9px; font-weight: 650; }
/* V1.9.5 扫码记录 */
.pl-sum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.pl-sum div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; } .pl-sum span { display: block; font-size: 12px; color: var(--muted); } .pl-sum b { font-size: 22px; }
.pl-sum .r b { color: #b63e3e; } .pl-sum .a b { color: #946716; } .pl-sum .g b { color: #08765c; } .pl-sum .bl b { color: #2f5fb3; }
.filter-bar .lbl { font-size: 12.5px; color: #4b635e; font-weight: 650; }
.date-in, .sel-in { border: 1px solid #cfdcd8; border-radius: 8px; padding: 5px 8px; font-size: 13px; color: #36514b; background: #fff; }
.pl-table td { vertical-align: top; font-size: 13px; } .pl-table code { font-size: 12px; background: #f3f7f6; border-radius: 4px; padding: 1px 5px; word-break: break-all; }
.pl-table small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.pl-table td:nth-child(1), .pl-table td:nth-child(2), .pl-table td:nth-child(6), .pl-table td:nth-child(7), .pl-table td:nth-child(8), .pl-table td:nth-child(9) { white-space: nowrap; }
.pl-table td:nth-child(3) { min-width: 200px; max-width: 250px; } .pl-table td:nth-child(4) { min-width: 180px; } .pl-table td:nth-child(10) { min-width: 140px; max-width: 260px; } .pl-table th, .pl-table td { padding-left: 10px; padding-right: 10px; }
.pl-table tr.copy td { background: #f6f9ff; } .pl-table tr.bad td:first-child { box-shadow: inset 3px 0 0 #c94f4f; } .pl-table tr.warn td:first-child { box-shadow: inset 3px 0 0 #e0a42c; }
.pl-table .pk-img.s { width: 38px; height: 38px; }
.pl-nos { font-size: 12px; color: #36514b; line-height: 1.6; } .pl-nos summary { cursor: pointer; color: var(--brand); font-size: 12px; }
.src { font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-left: 4px; } .src.scale { background: #e2f3ec; color: #08765c; } .src.hand { background: #fff1d7; color: #946716; }
.pl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; color: var(--muted); font-size: 12.5px; }
.pager { display: inline-flex; gap: 4px; } .pager button { border: 1px solid #cfdcd8; background: #fff; border-radius: 7px; min-width: 30px; height: 28px; font-size: 12px; } .pager button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 900px) { .pl-sum { grid-template-columns: repeat(3, 1fr); } .formula-body { grid-template-columns: 1fr; } }
.alert-set .alert-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .alert-set .alert-row .button { min-width: 64px; }
/* V1.9.5 海外仓 CBT / 非CBT */
.os-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; max-width: 520px; }
.os-flow i { align-self: center; color: #9fb3ae; font-style: normal; }
.os-flow .st { display: block; flex: 1 1 110px; border: 1px solid #dce7e4; border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.45; background: #fff; color: #36514b; }
.os-flow .st b { display: block; font-size: 12px; }
.os-flow .st.done { background: #e2f3ec; border-color: #bfe0d3; color: #08765c; } .os-flow .st.hand { background: #fff5d8; border-color: #f0cf6e; color: #856512; }
.os-flow .st.man { background: #fde7e5; border-color: #e9a59d; color: #a83a3a; } .os-flow .st.bad { background: #fde7e5; border-color: #c94f4f; color: #b63e3e; font-weight: 650; }
.os-flow .st.wait { background: #f6f8fb; border-color: #cdd8e6; color: #4a5d78; }
.os-kind { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; color: #fff; } .os-kind.cbt { background: #5b3fa6; } .os-kind.noncbt { background: #1f63a8; } .os-kind.man { background: #c94f4f; }
.os-table td { vertical-align: top; } .os-table .cell-muted { white-space: normal; }
.os-res { font-size: 12px; line-height: 1.55; min-width: 230px; max-width: 300px; } .os-res b { display: block; font-size: 13px; }
.os-res.man b { color: #b63e3e; } .os-res.ok b { color: #08765c; } .os-res ol { margin: 4px 0 6px 16px; padding: 0; } .os-res small { display: block; color: var(--muted); margin-top: 3px; }
.os-res .os-chk { width: 100%; font-weight: 700; border-width: 2px; }
/* V1.9.5 配对第 1 步 */
.ship-unpaired { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: #fbfdfc; }
.ship-pairneed { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 8px; border: 1px dashed #e9a59d; border-radius: 8px; background: #fff7f6; font-size: 12px; max-width: 520px; }
.ship-pairneed b { margin-right: 6px; } .ship-pairneed span { flex: 1; min-width: 0; }
tr.pair-focus td { background: #fff5d8 !important; box-shadow: inset 0 0 0 2px #f0cf6e; }
/* V1.9.6 采购清单 */
.pl-sumgrid { margin-bottom: 16px; }
.pl-th { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--line); }
.pl-table2 td { vertical-align: top; }
.pl-table2 td:nth-child(1) { min-width: 260px; max-width: 340px; }
.pl-table2 td:nth-child(4) { min-width: 280px; max-width: 380px; }
.pl-table2 td:nth-child(5) { min-width: 260px; }
.pl-qty { font-size: 18px; }
.pl-pf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.pl-pf .cell-muted { flex-basis: 100%; white-space: normal; word-break: break-word; }
.pl-pf.low strong { font-size: 16px; }
tr.pl-low > td { background: #fff7f6; }
.pl-est { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.pl-est .input-suffix input { width: 76px; }
.pl-pills, .pl-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.pl-how { margin-top: 6px; }
.pl-steps { margin: 2px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted, #5f6f69); line-height: 1.55; }
.link-btn { border: 0; background: none; color: var(--accent, #0f6b4f); text-decoration: underline; cursor: pointer; padding: 0 2px; font-size: 12px; }
.purchase-olddrafts { margin-top: 18px; } .purchase-olddrafts > summary { cursor: pointer; color: var(--muted, #5f6f69); padding: 8px 0; }
.pill.green { background: #0f6b4f; color: #fff; }
.pl-est .input-suffix { height: 30px; } .pl-est .input-suffix input { font-size: 13px; }
@media (min-width: 900px) { .summary-strip.pl-sumgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* V1.9.7 打包称重：改重量、修改已装袋的单 */
.pk-weigh .pk-manual input { width: 120px; }
.pk-edit-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.pl-editbtn { margin-top: 4px; display: inline-flex; }
.pk-ed-mask { position: fixed; inset: 0; background: rgba(15, 30, 26, .35); z-index: 60; }
.pk-ed { position: fixed; z-index: 61; top: 8vh; left: 50%; transform: translateX(-50%); width: min(620px, 94vw); max-height: 84vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 16px 20px; }
.pk-ed-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 16px; }
.pk-ed-h { margin-bottom: 8px; } .pk-ed .pk-thumbs { margin-bottom: 10px; }
.pk-ed-f { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pk-ed-f label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4b635e; }
.pk-ed-f label.wide, .pk-ed-btns { grid-column: 1 / -1; }
.pk-ed-f select, .pk-ed-f label.wide input { height: 34px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 8px; }
.pk-ed-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pk-ed-hist { margin-top: 12px; padding: 8px 10px; background: #f6faf9; border-radius: 8px; font-size: 12.5px; line-height: 1.7; }

/* V1.9.7a 刚扫到的订单：运单号 / 仓 大字，运单号尾号后 6 位突出 */
/* V1.9.40 订单编号整串普通字号，去掉后 6 位绿底和放大（老板 14:47） */
.pk-ids { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; margin-bottom: 10px; } .pk-ids .pk-id-wh { order: -1; } .pk-ids .pk-id-track { grid-column: 1 / -1; }
.pk-id { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fbfdfc; min-width: 0; }
.pk-id span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.pk-id b { display: block; font-size: 24px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; color: #1d2b27; }
.pk-id-sn b { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.pk-id em.pk-tail { font-style: normal; font-size: 1.25em; font-weight: 800; color: #c2410c; background: #fff1e6; border-radius: 4px; padding: 0 2px; }
.pk-id-wh b { font-size: 26px; white-space: nowrap; }
.pk-id-wh.haiou { border-color: #9cc3f0; background: #eef5ff; } .pk-id-wh.haiou b { color: #1d5fae; }
.pk-id-wh.yunding { border-color: #e8cf8a; background: #fff8e6; } .pk-id-wh.yunding b { color: #8a5a00; }
@media (max-width: 700px) { .pk-ids { grid-template-columns: 1fr; } }

/* V1.9.8 扫码页一行摘要 / 快速备注 / 清除测试 */
.pk-sumline { margin: 0 0 14px; font-size: 13px; color: #5f6f69; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pk-sumline b.haiou { color: #1d5fae; } .pk-sumline b.yunding { color: #8a5a00; } .pk-sumline .sep { color: #b8c7c2; margin: 0 6px; }
.pk-linkbtn { margin-left: auto; border: 0; background: none; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.pk-nadd, .pk-nb { margin-left: 6px; font-size: 11.5px; border-radius: 10px; padding: 1px 8px; cursor: pointer; line-height: 1.6; }
.pk-nadd { color: var(--brand); border: 1px dashed #9cc9bb; background: #fff; }
.pk-nb { color: #c2410c; background: #fff1e6; border: 1px solid #f6c9a8; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.pk-log li.pk-note-li { display: block; padding-top: 0; }
.pk-note { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; padding: 8px 10px; border: 1px solid #9cc9bb; background: #f2faf7; border-radius: 8px; font-size: 12px; max-width: 820px; }
.pk-note input { flex: 1 1 160px; height: 30px; border: 1px solid #9cc9bb; border-radius: 6px; padding: 0 8px; font-size: 13px; min-width: 0; }
.pk-note .q { border: 1px solid #cfdcd8; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.pk-note .q.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pk-note .sv { background: var(--brand); color: #fff; border: 0; border-radius: 6px; padding: 5px 12px; cursor: pointer; }
.pk-note .cx { background: #fff; border: 1px solid #cfdcd8; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.pk-note small { width: 100%; color: var(--muted); }
.pl-notecell { margin-top: 4px; } .pl-notecell:empty { display: none; } .pl-notecell .pk-nadd, .pl-notecell .pk-nb { margin-left: 0; margin-right: 4px; }
.pl-chk { width: 34px; text-align: center; } .pl-chk input { width: 16px; height: 16px; cursor: pointer; }
.pl-test td { color: #8a9a95; background: #f6f7f7; } .pl-test td code { opacity: .7; }
.pl-noterow td { background: #f8fcfa; }
.pl-clear { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border: 1px dashed #e9a59d; background: #fff7f6; border-radius: 8px; font-size: 12.5px; color: #7a2e26; }

.pl-clear-btn { background: #b42318; color: #fff; border: 1px solid #b42318; } .pl-clear-btn:disabled { background: #f1b8b2; border-color: #f1b8b2; color: #fff; cursor: not-allowed; }
.pl-clear-btn2 { background: #fff; color: #b42318; border: 1px solid #b42318; }

/* V1.9.8b 每日统计日期条；扫码记录表 1440 不横向滚动（有勾选列时列号整体右移一位） */
.pk-daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.pk-daybar input[type=date] { height: 32px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 8px; }
.pl-table td:nth-child(3) { min-width: 140px; max-width: 190px; } .pl-table td:nth-child(4) { min-width: 160px; } .pl-table td:nth-child(10) { min-width: 120px; max-width: 220px; }
.pl-table.pl-haschk td:nth-child(n) { min-width: 0; max-width: none; white-space: normal; }
.pl-table.pl-haschk td:nth-child(2), .pl-table.pl-haschk td:nth-child(7), .pl-table.pl-haschk td:nth-child(8), .pl-table.pl-haschk td:nth-child(9), .pl-table.pl-haschk td:nth-child(10) { white-space: nowrap; }
.pl-table.pl-haschk td:nth-child(3) { min-width: 90px; } .pl-table.pl-haschk td:nth-child(4) { min-width: 130px; max-width: 180px; } .pl-table.pl-haschk td:nth-child(5) { min-width: 160px; } .pl-table.pl-haschk td:nth-child(11) { min-width: 110px; max-width: 200px; }
.pl-table th, .pl-table td { padding-left: 8px; padding-right: 8px; }

.pk-basenote { color: #8a5a00; font-size: 12px; margin-left: 8px; }

/* V1.9.9 按仓分页：海鸥 = 线上原来的蓝 #1f63a8，云顶 = 线上原来的金黄/棕 #946716 */
.pk-top { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.pk-wht { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 22px; border: 2px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: #e9eeed; color: #7b8a87; cursor: pointer; min-width: 200px; text-align: left; }
.pk-wht b { font-size: 19px; font-weight: 800; } .pk-wht small { font-size: 12px; }
.pk-wht.haiou:hover { color: #1f63a8; } .pk-wht.yunding:hover { color: #946716; }
.pk-wht.haiou.on { background: #fff; color: #1f63a8; border-color: #1f63a8; }
.pk-wht.yunding.on { background: #fff; color: #946716; border-color: #c99a2e; }
.pk-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; }
.pk-panel { background: #fff; border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 4px 18px 18px; margin-bottom: 16px; }
.pk-panel.haiou { border: 3px solid #1f63a8; box-shadow: inset 0 5px 0 #e6f1fb; }
.pk-panel.yunding { border: 3px solid #c99a2e; box-shadow: inset 0 5px 0 #fff1d7; }
.pk-panel .pk-subtabs { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; margin: 4px 0 14px; }
.pk-panel.haiou .pk-subtabs button.sel { color: #1f63a8; border-bottom-color: #1f63a8; }
.pk-panel.yunding .pk-subtabs button.sel { color: #946716; border-bottom-color: #c99a2e; }
.pk-panel.haiou .pk-scan-in { border-color: #1f63a8; } .pk-panel.yunding .pk-scan-in { border-color: #c99a2e; }
.pk-whname.haiou { color: #1f63a8; } .pk-whname.yunding { color: #946716; }
.pk-bags.one { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.pk-range { flex-wrap: wrap; } .pk-rlbl { font-weight: 700; color: var(--muted); }
.pk-listhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; } .pk-big-n { font-size: 28px; font-weight: 800; color: #b26a00; }
.pk-grp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f6f8f8; border-radius: 8px; padding: 8px 12px; margin: 14px 0 4px; } .pk-grp b { font-size: 15px; }
.pk-late { color: #b63e3e; font-weight: 700; }
.pk-ltable td { vertical-align: middle; } .pk-ltable .pk-thumbs img { width: 48px; height: 48px; }
.pk-ititle { display: block; max-width: 260px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-lno { font-family: ui-monospace, Menlo, monospace; white-space: nowrap; } .pk-lno em.pk-tail { font-style: normal; font-size: 18px; font-weight: 800; color: #c2410c; background: #fff1e6; border-radius: 4px; padding: 0 2px; } .pk-lno .cell-muted { display: block; font-family: inherit; white-space: normal; }

/* V1.9.10 海外仓计算器：快速试算左上角醒目，仓库参数右栏；统一控件样式 */
.oc-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.oc-top > div > .section { margin-top: 0; }
.oc-quick-card { border: 2px solid var(--brand) !important; box-shadow: 0 6px 18px rgba(12,116,98,.10); }
.oc-quick-card .section-heading h2 { font-size: 22px; }
.oc-in { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 12px; border: 1px solid #cbdad6; border-radius: 8px; background: #fff; color: #172c28; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.oc-in:hover { border-color: #9fbcb4; }
.oc-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12,116,98,.15); }
select.oc-in { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c7462' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.oc-in-s { width: 8em; padding: 5px 10px; font-size: 12.5px; border-radius: 7px; min-height: 30px; }
.oc-quick-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oc-quick-big label { min-width: 0; color: #36514b; }
.oc-quick-big .oc-in { font-size: 22px; font-weight: 700; height: 52px; }
.oc-quick-big select.oc-in { font-size: 20px; }
.oc-mrate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #f2faf6; border: 1px solid #cfe9dd; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.oc-mrate.stale { background: #fff8e1; border-color: #ecd48a; }
.oc-mrate-n { font-size: 30px; color: #0f6b55; font-family: ui-monospace, Menlo, monospace; line-height: 1; } .oc-mrate.stale .oc-mrate-n { color: #9a6b00; }
.oc-mrate-t { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #4b635e; flex: 1; min-width: 220px; }
.oc-mrate-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oc-big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oc-big > div { border-radius: 10px; padding: 12px 16px; background: #fff; border: 1px solid #d5e6e0; }
.oc-big span { display: block; font-size: 14px; color: #4b635e; font-weight: 700; }
.oc-big strong { display: block; font-size: 46px; line-height: 1.1; font-family: ui-monospace, Menlo, monospace; color: #0f6b55; }
.oc-big > div.low { background: #fdecec; border: 2px solid #d64545; } .oc-big > div.low strong { color: #c62828; }
.oc-big small { font-size: 12.5px; color: #b63e3e; font-weight: 700; }
.oc-th { margin: 10px 0 4px; font-size: 13px; color: #4b635e; }
.oc-top-r .oc-cards { grid-template-columns: 1fr; gap: 10px; }
.oc-top-r .oc-dl { grid-template-columns: auto 1fr auto 1fr; font-size: 13px; }
@media (max-width: 1180px) { .oc-top { grid-template-columns: 1fr; } .oc-top-r .oc-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .oc-top-r .oc-dl { grid-template-columns: auto 1fr; } }
@media (max-width: 640px) { .oc-quick-big { grid-template-columns: 1fr; } .oc-big { grid-template-columns: 1fr; } .oc-big strong { font-size: 36px; } }

/* V1.9.11 商品关联 */
.lk-card { border: 1px solid #dfe7e4; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.lk-card.weak { background: #fbfcfc; }
.lk-main { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed #dfe7e4; }
.lk-crown { flex: none; background: #fff1d7; color: #946716; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 3px 8px; margin-top: 4px; }
.lk-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px; margin-top: 8px; }
.lk-mem { display: flex; align-items: flex-start; gap: 8px; border: 1px solid #edf1f0; border-radius: 8px; padding: 8px; background: #fff; cursor: pointer; }
.lk-mem input { margin-top: 18px; }
.lk-prod { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1; }
.lk-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #e5ece9; flex: none; background: #f4f6f6; }
.lk-prod.big .lk-img { width: 64px; height: 64px; }
.lk-noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #9aa9a5; }
.lk-pt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-title { font-weight: 600; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-prod.big .lk-title { font-size: 14px; }
.lk-sim { font-size: 12px; font-weight: 700; } .lk-sim.hi { color: #08765c; } .lk-sim.mid { color: #946716; } .lk-sim.lo { color: #8a8f8d; }
.lk-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lk-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f3f2; }
.lk-search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } .lk-search .oc-in { max-width: 420px; }
.lk-h3 { font-size: 14px; margin: 14px 0 4px; }
.lk-focus { border: 2px solid var(--brand); }
.lk-weak summary { cursor: pointer; padding: 14px 20px; font-weight: 700; }
.link-btn.danger { color: #b63e3e; }
.button.lk-go { margin-left: 6px; } .button.lk-go svg { width: 14px; height: 14px; }

/* V1.9.12 商品关联区分更清楚 */
.lk-card.lk-g { border: 2px solid #cfdcd8; border-radius: 14px; box-shadow: 0 6px 18px rgba(4,60,51,.08); padding: 0; margin-bottom: 28px; overflow: hidden; }
.lk-gh { display: flex; align-items: center; gap: 10px; background: #0f6b55; color: #fff; padding: 10px 16px; font-size: 15px; flex-wrap: wrap; }
.lk-gh b { font-size: 17px; } .lk-gh-r { margin-left: auto; font-size: 12.5px; opacity: .9; }
.lk-g.weak .lk-gh { background: #5b6b66; }
.lk-gmain { display: flex; gap: 16px; align-items: flex-start; background: #fff8e6; border-bottom: 2px solid #f0dca6; padding: 14px 16px; }
.lk-gimg { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; border: 2px solid #e8cf8a; flex: none; background: #fff; }
.lk-gcrown { display: inline-block; background: #946716; color: #fff; font-weight: 800; font-size: 13px; border-radius: 6px; padding: 3px 10px; margin-bottom: 6px; }
.lk-gshop { font-size: 17px; font-weight: 800; color: #5c3f00; }
.lk-gm-t { min-width: 0; flex: 1; }
.lk-t2 { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; overflow-wrap: anywhere; } .lk-t2.s { font-size: 13px; }
.lk-sub { font-size: 12px; color: #8a9692; } .lk-sub .link-btn { font-size: 12px; }
.lk-gmems { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; padding: 14px 16px; background: #fff; }
.lk-gmem { display: flex; gap: 12px; align-items: flex-start; border: 2px solid #e3eae8; border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.lk-gmem:hover { border-color: #9fbcb4; }
.lk-gmem.on { border-color: #0c7462; background: #eef8f4; box-shadow: 0 0 0 3px rgba(12,116,98,.15); }
.lk-gmem input { width: 24px; height: 24px; margin-top: 4px; accent-color: #0c7462; flex: none; cursor: pointer; }
.lk-mimg { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid #e5ece9; flex: none; background: #f4f6f6; }
.lk-mshop { font-size: 15.5px; font-weight: 800; color: #172c28; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lk-tagrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.lk-tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.lk-tag.g { background: #dcf3e8; color: #08765c; border: 1px solid #9fd8be; } .lk-tag.y { background: #fff1d7; color: #946716; border: 1px solid #ecd48a; } .lk-tag.n { background: #eef1f0; color: #6b7774; border: 1px solid #d5dcda; }
.lk-tag.warn { background: #c62828; color: #fff; }
.lk-gact { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px 16px; background: #fff; border-top: 1px dashed #dfe7e4; }
.lk-gact .button.lk-yes { font-size: 15px; padding: 10px 20px; min-height: 44px; } .lk-gact .button.lk-no { min-height: 44px; }
@media (max-width: 900px) { .lk-gmems { grid-template-columns: 1fr; } .lk-gimg { width: 80px; height: 80px; } }

/* V1.9.13 提前单按天存档 */
.pk-arch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: #f6f8f8; border: 2px solid #d5dfdc; }
.pk-arch.yunding { background: #fff8e6; border-color: #e8cf8a; } .pk-arch.haiou { background: #eef5fc; border-color: #b9d3ee; }
.pk-arch-d { font-size: 20px; font-weight: 800; } .pk-arch.yunding .pk-arch-d { color: #8a5a00; } .pk-arch.haiou .pk-arch-d { color: #1d5fae; }
.pk-n-ok { color: #08765c; } .pk-n-red { color: #b63e3e; } .pk-n-dead { color: #6b7774; }
.pk-ast { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pk-ast.ok { background: #dcf3e8; color: #08765c; border: 1px solid #9fd8be; } .pk-ast.late { background: #fde8e8; color: #b63e3e; border: 1px solid #f1b5b5; } .pk-ast.dead { background: #eef1f0; color: #6b7774; border: 1px solid #d5dcda; }
.pk-asub { display: block; font-size: 12px; color: #8a9692; margin-top: 3px; }
.pk-achips { display: flex; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.pk-achips button { border: 1px solid #d5dcda; border-radius: 999px; padding: 4px 12px; font-size: 13px; background: #fff; cursor: pointer; font: inherit; }
.pk-panel.yunding .pk-achips button.on { background: #946716; color: #fff; border-color: #946716; } .pk-panel.haiou .pk-achips button.on { background: #1f63a8; color: #fff; border-color: #1f63a8; }
tr.pk-adead td { opacity: .55; } tr.pk-adead .pk-ititle, tr.pk-adead .pk-lno b { text-decoration: line-through; }

/* V1.9.13 商品关联分页 */
.lk-pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid #dfe7e4; border-radius: 10px; background: #f8fbfa; margin: 0 0 18px; }
.lk-pager.bottom { margin: 4px 0 0; } .lk-pinfo { font-size: 14px; margin-right: auto; } .lk-pinfo b { color: #0f6b55; }
.lk-pager .lk-pnum { min-width: 34px; } .lk-pjump, .lk-psize { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4f5d59; }
.lk-pjump input { width: 64px; padding: 5px 8px; } .lk-psize select { padding: 5px 8px; }
.lk-card.lk-g.lk-ghl { border-color: #c99a2e; box-shadow: 0 0 0 4px rgba(201,154,46,.25), 0 6px 18px rgba(4,60,51,.08); }
.lk-psize, .lk-pjump { white-space: nowrap; }

/* V1.9.14 商品关联新增提示 */
.lk-new { display: inline-block; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 8px; margin-right: 2px; }
.lk-newn { display: inline-block; background: #e5484d; color: #fff; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.lk-newn { font-style: normal; }
.lk-newn { white-space: nowrap; }

/* V1.9.14 利润预估：利润区间 + 分页 */
.pf-bands { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.pf-bands button { border: 1px solid #d5dcda; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; background: #fff; cursor: pointer; }
.pf-bands button em { font-style: normal; font-weight: 800; margin-left: 4px; color: #0f6b55; }
.pf-bands button.on { background: #0f6b55; color: #fff; border-color: #0f6b55; } .pf-bands button.on em { color: #fff; }
.pf-bands button[data-profit-band="lt30"] em { color: #b63e3e; } .pf-bands button.on[data-profit-band="lt30"] { background: #b63e3e; border-color: #b63e3e; } .pf-bands button.on[data-profit-band="lt30"] em { color: #fff; }
.pf-pager { margin: 0 0 10px; } .pf-pager.bottom { margin: 10px 0 0; }

/* V1.9.14c 商品关联顶部卡片可点 */
.summary-item.lk-tabc { cursor: pointer; position: relative; }
.summary-item.lk-tabc:hover::after { content: '点击查看'; position: absolute; right: 10px; top: 8px; font-size: 11px; color: var(--brand); }
.summary-item.lk-tabon { background: #eaf5f1; box-shadow: inset 0 -3px 0 var(--brand); }
.summary-item.lk-tabon span { color: var(--brand); font-weight: 700; }
.lk-out { margin-left: 6px; }
.lk-pt > .button.small, .lk-pt > .link-btn { width: auto; justify-self: start; align-self: flex-start; display: inline-flex; margin: 4px 6px 0 0; }
.lk-pt > span .tag { margin-right: 4px; }
/* V1.9.14d 疑似同款每组分两块 */
.lk-blk { background: #fff; } .lk-blkh { padding: 12px 16px 0; font-weight: 800; font-size: 14px; color: #0c5546; } .lk-blkh .cell-muted { font-weight: 400; margin-left: 6px; font-size: 12px; }
.lk-blk2 { background: #f4f6f6; border-top: 1px dashed #dfe7e4; } .lk-blk2 .lk-blkh { color: #4b5563; } .lk-blk2 .lk-gmems { background: transparent; }
.lk-blk2 .lk-gmem { background: #fafbfb; } .lk-blk2 .lk-gmem.on { background: #eef8f4; }
.lk-why { margin: 4px 0 2px; font-size: 12px; color: #8a5a00; background: #fff6e0; border-radius: 4px; padding: 2px 6px; display: inline-block; }
.lk-will { display: none; font-size: 12px; font-weight: 700; color: #0c7462; margin: 2px 0; } .lk-gmem.on .lk-will { display: block; }
.lk-cnt { font-size: 14px; color: #36514b; } .lk-cnt b { color: #0c7462; font-size: 16px; }

/* V1.9.15 缺采购成本 + 海运均摊 */
.pf-nocost { color: #8a949b; font-weight: 600; font-size: 13px; }
.th-gap { width: 18px; }
.oc-nocost strong { color: #8a949b !important; } .oc-nocost small { color: #6b7280; }

/* V1.9.15 妙手发货顶部卡片 = 快速筛选 */
.ship-cards .ship-card { font: inherit; text-align: left; cursor: pointer; position: relative; border: 1px solid transparent; background: inherit; transition: background .12s, box-shadow .12s; }
.ship-cards .ship-card:hover { background: #f1f7f5; box-shadow: inset 0 0 0 1px #b9d6cf; }
.ship-cards .ship-card.on { background: #e6f3ef; box-shadow: inset 0 0 0 2px var(--brand); }
.ship-card-tip { display: none; position: absolute; right: 8px; top: 6px; font-style: normal; font-size: 11px; color: var(--brand); font-weight: 700; }
.ship-card:hover .ship-card-tip { display: block; } .ship-card.on .ship-card-tip { display: none; }
.ship-card-hint { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: #f1f7f5; border-bottom: 1px solid #e1ebe8; font-size: 14px; color: #36514b; }

.summary-strip.ship-s11.ship-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { .summary-strip.ship-s11.ship-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* V1.9.15 打包称重配色 F（老板 11-11 21:48 选）：深灰配薄荷绿 —— 云顶深灰、海鸥薄荷绿；整页只用仓色 + 中性灰，真异常才用红；顶部整条仓色色条 */


.pk-panel .button.primary, body .pk-top .button.primary { background: var(--m); border-color: var(--m); box-shadow: none; }
.pk-panel .button.primary:hover:not(:disabled) { background: var(--m-ink); border-color: var(--m-ink); }
.pk-panel .button.secondary { border-color: #d5dbe0; color: #374151; }
.pk-panel .section { border-top: 1px solid #e5e7eb; border: 1px solid #e5e7eb; border-radius: 10px; }
.pk-panel .section-heading { border-bottom-color: #eef0f2; }
.pk-panel .pk-chip, .pk-panel .tag, .pk-panel .tag.amber, .pk-panel .tag.teal { background: #f1f3f5; color: #4b5563; }
.pk-panel .pk-chip.yunding, .pk-panel .pk-chip.haiou { background: var(--m-soft); color: var(--m-ink); }
.pk-id em.pk-tail { color: var(--m-ink); background: var(--m-soft); }
.pk-id-wh.yunding, .pk-id-wh.haiou { border-color: var(--m-line); background: var(--m-soft); } .pk-id-wh.yunding b, .pk-id-wh.haiou b { color: var(--m-ink); }
.pk-sumline { color: #6b7280; } .pk-sumline b.yunding, .pk-sumline b.haiou, .pk-whname { color: var(--m-ink) !important; }
.pk-basenote { color: #6b7280; } .pk-spec { color: #111827; }
.pk-pill.ok, .pk-pill.off, .pk-pill.wait { background: #f3f4f6; color: #4b5563; }
.pk-pill.ok::before { background: #16a34a; } .pk-pill.off::before { background: #9ca3af; } .pk-pill.wait::before { background: #9ca3af; }
.pk-item, .pk-id { background: #fff; border-color: #e5e7eb; }
.pk-step { color: #374151; }
.pk-panel .pk-subtabs button.sel { color: var(--m-ink) !important; border-bottom-color: var(--m) !important; }
.pk-wht.yunding.on, .pk-wht.haiou.on { color: var(--m-ink); }
.pk-wht.yunding.on { --m:#a8740f; --m-ink:#7a5308; --m-soft:#fbf4e3; border-color: #a8740f; } .pk-wht.haiou.on { --m-ink:#174c82; border-color: #1f63a8; }
.pk-panel .pk-scanbar { border-color: #e5e7eb; }
.pk-st b, .pk-st b.pk-wait { font-size: 13px; }
.pk-after > div { background: #f9fafb !important; border-color: #eef0f2 !important; color: #4b5563 !important; } .pk-after b { color: #374151 !important; }
.pk-manual input { border: 1px solid #d1d5db; background: #fff; color: #111827; }
.pk-panel .pk-scan-in:focus { box-shadow: none; outline: none; }
.pk-panel.yunding, body.wh-yunding { --m:#2f3640; --m-ink:#2f3640; --m-soft:#eef0f2; --m-line:#c7ccd2; --m-on:#fff; --pg:#f6f7f8; }
.pk-panel.haiou, body.wh-haiou { --m:#3fbf9b; --m-ink:#1d7d62; --m-soft:#e6f7f1; --m-line:#a8e0cf; --m-on:#08392b; --pg:#f4fbf8; }

.pk-panel.yunding, .pk-panel.haiou { border: 1px solid var(--m-line); box-shadow: inset 0 6px 0 var(--m); background: var(--pg); }
.pk-bag, .pk-bag.on { border: 1px solid var(--m-line); border-left: 6px solid var(--m); background: #fff; box-shadow: none; } .pk-bag.on .pk-radio { border-color: var(--m); }
.pk-bag .pk-code { color: var(--m-ink) !important; }
.pk-panel .pk-scanbar { background: #fff; border-color: var(--m-line); }
.pk-scan-in, .pk-scan-in:focus { border: 2px solid var(--m) !important; background: #fff; }
.pk-st { color: #6b7280; } .pk-act small { color: #6b7280; }
.pk-sumline { background: #fff; border-color: var(--m-line); }
.pk-panel .section { background: #fff; border-color: var(--m-line); }

.pk-weigh { background: #2f3640; color: #fff; border: none; }
.pk-panel.yunding .pk-w { color: #fff; } .pk-panel.haiou .pk-w { color: #6fe0bd; }
.pk-st, .pk-st b, .pk-st b.pk-wait, .pk-act small { color: #d1d5db !important; }
.pk-weigh .pk-manual input { background: #3a424d; border-color: #4b5563; color: #fff; }

/* 页签和顶部色条也用 F 配色 */
.pk-wht.yunding.on { --m:#2f3640; --m-ink:#2f3640; background:#fff; color:#2f3640; border-color:#2f3640; }
.pk-wht.haiou.on { --m:#3fbf9b; --m-ink:#1d7d62; background:#fff; color:#1d7d62; border-color:#3fbf9b; }
.pk-wht.yunding:hover { color:#2f3640; } .pk-wht.haiou:hover { color:#1d7d62; }
.pk-whbar { display:flex; align-items:center; gap:12px; margin:0 0 12px; padding:12px 18px; border-radius:10px; background:var(--m); color:var(--m-on); font-size:18px; font-weight:800; letter-spacing:.5px; }
.pk-whbar small { font-size:13px; font-weight:600; opacity:.85; }


/* V1.9.17 指令中心改版 */
.cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line, #e5e7eb); }
.cmd-chip { border: 1px solid #d0d5dd; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: #344054; }
.cmd-chip em { font-style: normal; color: #667085; margin-left: 2px; }
.cmd-chip.on { background: #155eef; border-color: #155eef; color: #fff; }
.cmd-chip.on em { color: #dbe6ff; }
.cmd-gap { width: 14px; }
.cmd-q { margin-left: auto; min-width: 260px; }
.cmd-filter { padding: 10px 16px 0; }
.cmd-rows { padding: 4px 16px 16px; }
.cmd-row { display: grid; grid-template-columns: 110px minmax(280px, 1fr) 130px 120px 150px 110px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef0f3; font-size: 14px; }
.cmd-row.h { color: #667085; font-size: 13px; padding: 8px 0; }
.cmd-row.bad { background: #fff6f5; }
.cmd-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-row small { font-size: 12px; color: #667085; }
.cmd-row .ship-red small { color: inherit; }
.cmd-p { flex-direction: row !important; gap: 10px !important; align-items: center; }
.cmd-p > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-tpl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 16px 16px; }
.cmd-tc { text-align: left; border: 2px solid #e4e7ec; border-radius: 10px; background: #fff; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.cmd-tc h3 { margin: 0; font-size: 17px; }
.cmd-tc p { margin: 0; color: #475467; font-size: 14px; line-height: 1.5; }
.cmd-tc small { color: #98a2b3; }
.cmd-tc.on { border-color: #155eef; background: #f5f8ff; }
.cmd-wf { padding: 0 16px; }
.cmd-sub { margin-top: 8px; }
.cmd-steps { margin: 0 16px 10px 36px; padding: 0; line-height: 1.9; font-size: 14px; }
.cmd-steps li.hot { color: #b42318; font-weight: 600; }
.cmd-accept { margin: 4px 16px 14px; padding: 10px 12px; background: #f6fef9; border: 1px solid #abefc6; border-radius: 8px; font-size: 14px; color: #344054; }
.cmd-fields { margin: 0 16px 10px 36px; line-height: 1.9; font-size: 14px; }
@media (max-width: 900px) { .cmd-row { grid-template-columns: 1fr 1fr; } .cmd-row.h { display: none; } .cmd-tpl { grid-template-columns: 1fr; } .cmd-q { min-width: 0; width: 100%; } }
.cmd-form .cmd-wf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; align-items: start; padding: 14px 18px; }
.cmd-wf select, .cmd-wf input:not([type=radio]):not([type=checkbox]), .cmd-wf textarea { border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 10px; font: inherit; font-weight: 400; background: #fff; min-height: 40px; }
.cmd-wf small { font-weight: 400; }
@media (max-width: 900px) { .cmd-form .cmd-wf { grid-template-columns: 1fr; } }

/* V1.9.18 进销存：货号、贴纸、扫码 */
.inv-code { display: inline-block; font: 700 13px/1.4 Consolas, "SFMono-Regular", monospace; color: #0b4a3b; background: #e7f6ef; border: 1px solid #b7e4cf; border-radius: 4px; padding: 0 6px; margin-top: 2px; width: fit-content; }
.inv-newcode { font-size: 12px; color: #b54708; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.inv-newcode select { font-size: 12px; padding: 2px 4px; border: 1px solid #f5c26b; border-radius: 4px; background: #fffaeb; }
.inv-lbls { display: flex; flex-wrap: wrap; gap: 14px; }
.inv-lbl-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.inv-lbl { width: 200px; height: 150px; box-sizing: border-box; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; padding: 8px 10px; display: flex; flex-direction: column; overflow: hidden; }
.inv-lbl-n { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-lbl-s { font-size: 12px; color: #475467; white-space: nowrap; overflow: hidden; }
.inv-lbl .c128 { width: 100%; height: 60px; margin-top: 6px; }
.inv-lbl-c { font: 700 14px Consolas, monospace; text-align: center; letter-spacing: .5px; }
.inv-codebox { display: flex; gap: 18px; align-items: flex-start; }
.inv-skulist { margin: 6px 0 0 18px; font-size: 13px; color: #475467; line-height: 1.7; max-height: 220px; overflow: auto; }
.inv-scanbar { display: flex; gap: 12px; align-items: center; }
.inv-scanf { flex: 1; }
.inv-scanf input { width: 100%; font-size: 16px; padding: 12px 14px; border: 2px solid #0f6e56; border-radius: 8px; }
.inv-last { display: flex; align-items: center; gap: 14px; border: 1px solid #e4e7ec; border-radius: 10px; padding: 12px 16px; }
.inv-last > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.inv-last b { font-size: 16px; }
.inv-last-n { text-align: right; display: flex; flex-direction: column; }
.inv-last-n strong { font-size: 40px; color: #0f6e56; line-height: 1; }
.inv-hit .ship-gd { gap: 12px; }
.inv-cat-in { width: 90px; padding: 6px 8px; border: 1px solid #d0d5dd; border-radius: 6px; }
.inv-cat-kw { width: 100%; min-width: 360px; padding: 6px 8px; border: 1px solid #d0d5dd; border-radius: 6px; }
#inv-sreason { flex: 1; min-width: 240px; }
/* V1.9.18 成本来源 */
.pf-src { display: block; margin-top: 3px; font-size: 12px; color: #475467; }
.pf-src.st { color: #0b5a46; font-weight: 600; }
.uc-cand { display: flex; gap: 8px; align-items: center; margin: 3px 0; }
.uc-cand > span { flex: 1; display: flex; flex-direction: column; }
/* V1.9.20 发货设置：标签分页 */
.shipset-tabs { display: flex; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line, #e3e8e6); border-radius: 12px; padding: 8px; margin: 14px 0; }
.shipset-tab { flex: 1 1 130px; min-width: 120px; text-align: left; border: 1px solid transparent; background: #f5f7f6; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; }
.shipset-tab:hover { background: #eef3f1; }
.shipset-tab.on { background: #eef7f3; border: 2px solid #0f5a45; padding: 9px 11px; }
.shipset-tn { font-size: 16px; font-weight: 700; color: #1d2b27; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shipset-ts { font-size: 12.5px; color: #5d6b66; }
.shipset-body > .section { border-top: 3px solid #0f5a45; }
.shipset-body .data-table td, .shipset-body .data-table th { font-size: 14px; }
.shipset-body .ship-title { font-size: 14.5px; }
.shipset-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.shipset-search { display: flex; gap: 6px; flex: 1 1 320px; }
.shipset-search input { flex: 1; min-width: 200px; padding: 8px 10px; border: 1px solid #cfd8d4; border-radius: 8px; font-size: 14px; }
.shipset-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.shipset-pill { border: 1px solid #cfd8d4; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.shipset-pill.on { background: #0f5a45; color: #fff; border-color: #0f5a45; }
.shipset-pill.ro { cursor: default; color: #5d6b66; background: #f5f7f6; }
.shipset-pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; padding: 12px 16px; }
@media (max-width: 760px) { .shipset-tab { flex-basis: 45%; } }
/* V1.9.21 商品关联：顶部子页标签 + 大字 */
.lk-tabs { display: flex; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid #d5dfdc; border-radius: 12px; padding: 8px; margin: 14px 0 12px; }
.lk-tab { flex: 1 1 150px; min-width: 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 2px solid transparent; border-radius: 10px; padding: 10px 16px; background: #f6f8f7; cursor: pointer; font: inherit; text-align: left; }
.lk-tab:hover { background: #eef3f1; }
.lk-tab.on { background: #e6f4ef; border-color: #0f6e56; }
.lk-tn { font-size: 18px; font-weight: 700; color: #1f2937; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .lk-tab.on .lk-tn { color: #0b5a46; }
.lk-ts { font-size: 14px; color: #4b5563; }
.lk-note { background: #f2f8f6; border: 1px solid #cfe5dc; border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; font-size: 15px; color: #1f3d34; }
.lk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #eef2f1; margin: 0; }
.lk-bar input.oc-in { flex: 1 1 280px; min-width: 240px; font-size: 16px; padding: 9px 12px; }
.lk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lk-chip { border: 1px solid #cfd8d6; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 15px; background: #fff; cursor: pointer; }
.lk-chip.on { background: #0f6e56; color: #fff; border-color: #0f6e56; }
.lk-empty { padding: 18px; font-size: 15px; }
.lk-body .section-heading h2, #lk-all ~ * h2 { font-size: 22px; }
.lk-body .lk-title, .lk-body .lk-t2, #lk-all .lk-title { font-size: 16px; }
.lk-body .lk-t2.s { font-size: 15px; }
.lk-body .cell-muted, #lk-all .cell-muted, .lk-body .lk-sub { font-size: 14px; }
.lk-body .pk-log li { font-size: 15px; padding: 8px 0; }

/* V1.9.21 打包称重配色 H（老板 11-11 22:51 选，替换 F）：墨绿 + 石板灰蓝 —— 去掉整条色块和深色称重台，按钮统一系统墨绿；两仓只在 页签下划线 / 面板左侧细边 / 袋子编号小圆点 / 尾号小标签 上区分 */
.pk-whbar { background: transparent !important; color: #1f2937 !important; padding: 0 0 2px !important; margin: 0 0 10px !important; font-size: 17px !important; letter-spacing: 0 !important; border-radius: 0 !important; }
.pk-whbar::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--m); display: inline-block; flex: none; }
.pk-whbar small { color: #6b7280 !important; opacity: 1 !important; }
.pk-top { background: transparent !important; padding: 0 !important; } .pk-top * { color: inherit !important; } .pk-top .button { background: #fff !important; border-color: #d5dbe0 !important; color: #374151 !important; }
.pk-panel.yunding, .pk-panel.haiou { background: #fff !important; box-shadow: none !important; border: 1px solid #e3e8e6 !important; border-left: 4px solid var(--m) !important; }
.pk-panel .button.primary, body .pk-top .button.primary { background: #0f5a45 !important; border-color: #0f5a45 !important; color: #fff !important; }
.pk-panel .button.primary:hover:not(:disabled) { background: #0b4636 !important; }
.pk-wht.yunding, .pk-wht.haiou { background: #f5f7f6 !important; border: 1px solid #e3e8e6 !important; color: #4b5563 !important; box-shadow: none !important; }
.pk-wht.yunding.on, .pk-wht.haiou.on { background: #fff !important; color: #1f2937 !important; border-color: #e3e8e6 !important; box-shadow: inset 0 -3px 0 var(--m) !important; }
.pk-wht.yunding.on { --m: var(--y); } .pk-wht.haiou.on { --m: var(--h); }
.pk-panel .pk-subtabs button.sel { color: #1f2937 !important; border-bottom-color: var(--m) !important; }
.pk-bag, .pk-bag.on { background: #fff !important; border: 1px solid #e3e8e6 !important; border-left: 3px solid var(--m) !important; box-shadow: none !important; }
.pk-bag .pk-code { color: #1f2937 !important; } .pk-bag.on .pk-radio { border-color: var(--m) !important; }
.pk-bag .pk-code::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--m); margin-right: 8px; vertical-align: middle; }
.pk-panel .pk-scanbar { background: #fff !important; border-color: #e3e8e6 !important; }
.pk-scan-in, .pk-scan-in:focus { border: 2px solid #cfd8d4 !important; background: #fff !important; } .pk-scan-in:focus { border-color: #0f5a45 !important; }
.pk-sumline, .pk-panel .section { background: #fff !important; border-color: #e3e8e6 !important; }
.pk-sumline b.yunding, .pk-sumline b.haiou, .pk-whname { color: #1f2937 !important; }
.pk-id-wh.yunding, .pk-id-wh.haiou { background: #f5f7f6 !important; border-color: #e3e8e6 !important; border-left: 3px solid var(--m) !important; } .pk-id-wh.yunding b, .pk-id-wh.haiou b { color: #1f2937 !important; }
.pk-panel .pk-chip.yunding, .pk-panel .pk-chip.haiou, .pk-id em.pk-tail { background: var(--m-soft) !important; color: var(--m-ink) !important; }
.pk-weigh { background: #f5f7f6 !important; color: #111827 !important; border: 1px solid #e3e8e6 !important; }
.pk-panel.yunding .pk-w, .pk-panel.haiou .pk-w { color: #0f3d30 !important; }
.pk-st, .pk-st b, .pk-st b.pk-wait, .pk-act small, .pk-weigh small, .pk-weigh p { color: #4b5563 !important; }
.pk-weigh .pk-manual input { background: #fff !important; border-color: #cfd8d4 !important; color: #111827 !important; }
.pk-weigh .button.secondary { background: #fff !important; }
body { --y:#2f6b57; --h:#5f7286; }
.pk-panel.yunding, body.wh-yunding { --m:#2f6b57; --m-soft:#e5f0eb; --m-ink:#2f6b57; }
.pk-panel.haiou, body.wh-haiou { --m:#5f7286; --m-soft:#eaeef3; --m-ink:#41556a; }

/* V1.9.23 待确认仓库：从妙手发货带入的仓高亮 */
.ship-wh-focus td { background: #eef5f1; }
.ship-wh-focus td:first-child { box-shadow: inset 3px 0 0 #2f6b57; }
.ship-whrule select { min-width: 160px; }

/* V1.9.24 商品关联紧凑小卡片（只用在商品关联 5 个标签，按 links-compact-mock） */
.lk-gwrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.lk-gbox { border: 1px solid #e3e9e6; border-radius: 10px; background: #fbfcfb; padding: 8px; min-width: 0; }
.lk-gbox.lk-ghl { border-color: #2f6b57; box-shadow: 0 0 0 2px #cfe3da; }
.lk-gbox.weak { background: #fcfbf7; }
.lk-gbh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #6b7280; margin: 0 0 6px; }
.lk-gbh b { color: #14352b; font-size: 13px; }
.lk-gbh .lk-gbr { margin-left: auto; }
.lk-gbact { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lk-gbact .lk-cnt { font-size: 12px; color: #6b7280; }
.lk-mg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lk-mg.lk-mg4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lk-mc { display: flex; gap: 8px; padding: 7px; border: 1px solid #dfe7e4; border-radius: 8px; background: #fff; min-width: 0; align-items: flex-start; position: relative; margin: 0; cursor: default; }
label.lk-mc { cursor: pointer; }
.lk-mc.main { border-color: #2f6b57; box-shadow: inset 3px 0 0 #2f6b57; }
.lk-mc.lk-gmem.on { background: #f1f7f4; border-color: #9cc3b2; }
.lk-mc.picked { border-color: #5f7286; box-shadow: inset 3px 0 0 #5f7286; background: #f4f6f9; }
.lk-mcimg { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; flex: none; background: #eef2f0; font-size: 11px; display: flex; align-items: center; justify-content: center; color: #9ca3af; }
.lk-mc .lk-mcchk { position: static; flex: none; align-self: center; width: 15px; height: 15px; min-width: 15px; margin: 0 -2px 0 0; accent-color: #2f6b57; }
.lk-mcb { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lk-mct { font-size: 13px; line-height: 1.3; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.lk-mcmain { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px; background: #e3efe9; color: #1f5a47; font-weight: 700; margin-right: 4px; }
.lk-mcm { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-mcm b { color: #1f2937; }
.lk-mctags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; }
.lk-mctags .lk-tag, .lk-mctags .tag, .lk-mctags .lk-sim { font-size: 11px; padding: 0 6px; line-height: 17px; }
.lk-mctags .link-btn { font-size: 11px; }
.lk-mcby { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lk-mcf { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 3px; }
.lk-mcf .button.small, .lk-mcf .lk-go { font-size: 11px; padding: 2px 8px; min-height: 0; line-height: 1.5; }
.lk-mcf .link-btn { font-size: 11px; }
.lk-body .pk-log.lk-log li { padding: 5px 4px; font-size: 13px; gap: 8px; flex-wrap: nowrap; }
.lk-body .pk-log.lk-log li span:not(.tag):not(.cell-muted) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
@media (max-width: 1100px) { .lk-gwrap { grid-template-columns: 1fr; } .lk-mg.lk-mg4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lk-body .pk-log.lk-log time { white-space: nowrap; flex: none; }

/* V1.9.26 已确认关联大图大卡片（和自动关联待确认同一套）；自动关联里候选图也放大到 88px */
.lk-mimg { width: 88px; height: 88px; }
.lk-gm-act { margin-left: auto; flex: none; }
.lk-linked .lk-gmain { align-items: center; }
.lk-gmem.lk-gmem-l { cursor: default; }
.lk-gmem.lk-gmem-l:hover { border-color: #e3eae8; }
.lk-gm-btns { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

/* V1.9.27 商品关联图片预览 */
.content .lk-gimg, .content .lk-mimg, .content .lk-mcimg, .content .lk-img { cursor: zoom-in; }
#lk-zoom { position: fixed; z-index: 2000; width: 312px; height: 312px; padding: 6px; background: #fff; border: 1px solid #dfe7e4; border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 40, 30, .18); pointer-events: none; }
#lk-zoom img { width: 300px; height: 300px; object-fit: contain; border-radius: 8px; display: block; background: #f6f8f7; }
#lk-zoom .lk-zoom-fail { display:grid; place-items:center; width:300px; height:300px; color:#6a7a76; font-size:13px; }
#lk-zoom .lk-zoom-fail[hidden], #lk-zoom img[hidden] { display:none; }
#lk-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(12, 24, 20, .82); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
#lk-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); cursor: default; }
.lk-lb-x { position: fixed; top: 18px; right: 24px; color: #fff; font-size: 14px; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 999px; }
#lk-lightbox img { width: min(90vw, 86vh, 760px); height: min(90vw, 86vh, 760px); }

/* V1.9.28 打包称重两仓页签区分颜色（老板 11-12 00:04）：云顶墨绿系、海鸥灰蓝系，各自常驻浅底；选中实色底白字；面板顶边 / 袋号圆点 / 标题圆点 / 扫码框聚焦跟当前仓颜色；不铺整条色块 */
.pk-wht.yunding, .pk-bag.yunding { --m: var(--y); --m-soft: #e5f0eb; --m-ink: #2f6b57; }
.pk-wht.haiou, .pk-bag.haiou { --m: var(--h); --m-soft: #e8edf3; --m-ink: #41556a; }
.pk-wht.yunding, .pk-wht.haiou { background: var(--m-soft) !important; color: var(--m-ink) !important; border: 1px solid transparent !important; box-shadow: none !important; }
.pk-wht.yunding small, .pk-wht.haiou small { color: var(--m-ink) !important; opacity: .8; }
.pk-wht.yunding:hover, .pk-wht.haiou:hover { border-color: var(--m) !important; color: var(--m-ink) !important; }
.pk-wht.yunding.on, .pk-wht.haiou.on { background: var(--m) !important; color: #fff !important; border-color: var(--m) !important; box-shadow: 0 2px 6px rgba(20, 40, 30, .12) !important; }
.pk-wht.yunding.on small, .pk-wht.haiou.on small { color: #fff !important; opacity: .85; }
.pk-panel.yunding, .pk-panel.haiou { border-top: 3px solid var(--m); padding-top: 12px; }
.pk-panel .pk-scan-in:focus { border-color: var(--m) !important; box-shadow: 0 0 0 3px var(--m-soft) !important; }
.pk-panel .pk-whname { color: var(--m-ink) !important; }

/* V1.9.29 虚拟仓推美区备货（预览版） */
.vwh-mode { display: flex; align-items: center; gap: 10px; margin: -8px 0 14px; }
.vwh-rules { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 14px 20px; }
.vwh-rules input, .vwh-rules select { padding: 6px 8px; border: 1px solid #cfdcd8; border-radius: 6px; }
.vwh-rules input[type=number] { width: 72px; }
.vwh-table td { vertical-align: middle; } .vwh-table .num { text-align: right; white-space: nowrap; }
.vwh-table tr.vwh-on td { background: #f4f9f6; }
.vwh-gd { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 420px; }
.vwh-img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid #e3e8e6; flex: none; background: #f4f6f6; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #9ca3af; }
img.vwh-img, .stk-imgs img { cursor: zoom-in; }
.vwh-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.vwh-big { font-size: 18px; }
.vwh-last { margin: 10px 2px; }
.vwh-modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 30, 26, .45); display: flex; align-items: center; justify-content: center; }
.vwh-dlg { background: #fff; border-radius: 12px; width: min(760px, 94vw); max-height: 90vh; overflow: auto; padding: 22px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.vwh-dh { display: flex; align-items: center; gap: 12px; } .vwh-dh h2 { margin: 0; font-size: 20px; }
.vwh-dtable { max-height: 300px; overflow: auto; margin: 10px 0; }
.vwh-h3 { font-size: 15px; margin: 14px 0 6px; }
.vwh-tasks { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.9; max-height: 180px; overflow: auto; }
.vwh-skip { margin-top: 10px; font-size: 12px; color: #6b7280; }
.vwh-dact { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.vwh-done { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #eef5f1; color: #24584a; font-size: 13px; }
.vwh-warn { color: #a65b52; }

/* V1.9.30 虚拟仓推美区：五档门槛 + 规则区控件统一（高 36px、圆角 8px、同一边框色、自定义下拉箭头） */
.vwh-cov { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: #24584a; background: #eef5f1; border: 1px solid #d4e6dc; border-radius: 8px; padding: 8px 12px; } .vwh-cov svg { width: 15px; height: 15px; flex: none; }
.vwh-rules2 { padding: 16px 20px 14px; display: flex; flex-direction: column; gap: 14px; --vh: 36px; --vr: 8px; --vb: #cfdcd8; }
.vwh-rrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vwh-lab { font-size: 13px; color: #5d6d69; white-space: nowrap; line-height: var(--vh); } .vwh-rrow > .vwh-lab:first-child { min-width: 76px; } .vwh-lab-s { margin: 0 -2px; }
.vwh-tiers { display: flex; gap: 10px; flex-wrap: wrap; }
.vwh-tier { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 138px; background: #fafcfb; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.vwh-tier:hover { border-color: #b9cfc8; }
.vwh-tier.on { border-color: var(--brand); background: #f1f8f5; box-shadow: 0 0 0 1px var(--brand) inset; }
.vwh-tl { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #10302a; }
.vwh-tin { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #44514d; }
.vwh-tier small { font-size: 11px; color: #7a8682; }
.vwh-ck { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #b7c9c3; border-radius: 5px; background: #fff; display: inline-grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; flex: none; }
.vwh-ck::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.vwh-ck:checked { background: var(--brand); border-color: var(--brand); } .vwh-ck:checked::after { opacity: 1; }
.vwh-ck:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(12, 116, 98, .22); }
.vwh-ctl { height: var(--vh, 36px); box-sizing: border-box; border: 1px solid var(--vb, #cfdcd8); border-radius: var(--vr, 8px); background: #fff; font: inherit; font-size: 13px; color: #10302a; padding: 0 10px; transition: border-color .15s, box-shadow .15s; }
.vwh-ctl:hover { border-color: #a9c1ba; }
.vwh-ctl:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(12, 116, 98, .16); }
.vwh-num { width: 72px; text-align: right; font-variant-numeric: tabular-nums; } .vwh-tin .vwh-num { width: 64px; height: 32px; }
.vwh-sel { position: relative; display: inline-flex; }
.vwh-sel select { appearance: none; -webkit-appearance: none; padding-right: 32px; min-width: 150px; cursor: pointer; }
.vwh-sel::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid #5d6d69; border-width: 0 1.6px 1.6px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.vwh-seg { display: inline-flex; height: var(--vh); box-sizing: border-box; border: 1px solid var(--vb); border-radius: var(--vr); background: #f3f7f6; padding: 2px; gap: 2px; }
.vwh-seg button { border: 0; background: transparent; border-radius: 6px; padding: 0 14px; font: inherit; font-size: 13px; color: #44514d; cursor: pointer; transition: background .15s, color .15s; }
.vwh-seg button:hover:not(.on) { background: #e6eeeb; }
.vwh-seg button.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(4, 60, 51, .2); }
.vwh-seg button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(12, 116, 98, .22); }
.vwh-save { margin-left: auto; height: var(--vh); display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--vr); background: var(--brand); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(4, 60, 51, .18); transition: background .15s, box-shadow .15s; }
.vwh-save svg { width: 15px; height: 15px; }
.vwh-save:hover { background: var(--deep-2); border-color: var(--deep-2); }
.vwh-save:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(12, 116, 98, .28); }
.vwh-formula { font-size: 12px; padding-left: 86px; }
.vwh-nums { display: flex; gap: 4px; } .vwh-nums span { display: flex; flex-direction: column; align-items: center; min-width: 38px; padding: 3px 4px; border-radius: 6px; background: #f4f6f5; }
.vwh-nums i { font-style: normal; font-size: 10px; color: #8a9591; } .vwh-nums b { font-size: 14px; color: #44514d; }
.vwh-nums span.hit { background: var(--brand); } .vwh-nums span.hit i { color: #cfe6dc; } .vwh-nums span.hit b { color: #fff; }
.vwh-nums span.off:not(.hit) { opacity: .45; }
.vwh-why { font-size: 12px; color: #24584a; background: #e5f0eb; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* V1.9.31 全部 SKU 销量明细 */
.vwh-allbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; --vh: 36px; --vr: 8px; --vb: #cfdcd8; } .vwh-allbar .vwh-save { margin-left: 0; }
.vwh-q { min-width: 280px; flex: 1; } .vwh-allnote { padding: 0 20px 14px; font-size: 12px; }
.vwh-allrow { cursor: pointer; } .vwh-allrow:hover td { background: #f6faf8; }
.vwh-cell { display: inline-block; min-width: 30px; text-align: center; padding: 2px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; } .vwh-cell.hit { background: var(--brand); color: #fff; font-weight: 700; }
.vwh-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 10px 16px; font-size: 13px; }
.vwh-dlg-w { width: min(980px, 95vw); } .vwh-dh .vwh-img { width: 56px; height: 56px; } .vwh-dx { margin-left: auto; }
.vwh-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vwh-bar { flex: 1; height: 100%; position: relative; } .vwh-bar:hover { background: #eef5f2; } .vwh-bar i { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: #0f6b57; border-radius: 2px 2px 0 0; }
.vwh-bar em { position: absolute; left: 50%; transform: translateX(-50%); top: -2px; font-style: normal; font-size: 9px; color: #5d6d69; display: none; } .vwh-bar:hover em { display: block; }
.vwh-bax { display: flex; justify-content: space-between; font-size: 11px; color: #8a9591; margin-top: 4px; }

.vwh-mut { color: var(--muted); font-size: 12px; }
/* 柱高（CSP 不允许行内 style，用 21 档 class） */
.vwh-bar i.vwh-h0 { height: 0%; } .vwh-bar i.vwh-h1 { height: 5%; } .vwh-bar i.vwh-h2 { height: 10%; } .vwh-bar i.vwh-h3 { height: 15%; } .vwh-bar i.vwh-h4 { height: 20%; } .vwh-bar i.vwh-h5 { height: 25%; } .vwh-bar i.vwh-h6 { height: 30%; } .vwh-bar i.vwh-h7 { height: 35%; } .vwh-bar i.vwh-h8 { height: 40%; } .vwh-bar i.vwh-h9 { height: 45%; } .vwh-bar i.vwh-h10 { height: 50%; } .vwh-bar i.vwh-h11 { height: 55%; } .vwh-bar i.vwh-h12 { height: 60%; } .vwh-bar i.vwh-h13 { height: 65%; } .vwh-bar i.vwh-h14 { height: 70%; } .vwh-bar i.vwh-h15 { height: 75%; } .vwh-bar i.vwh-h16 { height: 80%; } .vwh-bar i.vwh-h17 { height: 85%; } .vwh-bar i.vwh-h18 { height: 90%; } .vwh-bar i.vwh-h19 { height: 95%; } .vwh-bar i.vwh-h20 { height: 100%; }

/* V1.9.33 妙手发货新版（步骤条 + 5 仓卡片 + 可推进 / 要先处理 + 揽收超时 + 去报关） */
/* V1.9.96 只固定搜索/筛选/打印操作栏：窗口滚动、topbar 本身不固定故 top:0；不固定说明/仓卡。z-index 低于弹窗。 */
/* V1.9.96/97 待处理、待打单发货、交运/已发货搜索筛选操作栏共用吸顶；步骤条 .sf-steps、说明、仓卡片不吸顶。 */
.sf-bar { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; position: sticky; top: 0; z-index: 8; background: #f4f8f7; border: 1px solid #dce7e4; border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 16px #043c3314; }
.sf-search { flex: 1; min-width: 220px; height: 36px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 13px; background: #fff; }
@media (max-width: 760px) { .sf-search { min-width: 100%; } }
.sf-steps { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin-bottom: 14px; }
.sf-step { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 10px 14px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; }
.sf-step:hover { background: #f4f8f7; }
.sf-no { grid-row: 1 / span 3; width: 28px; height: 28px; border-radius: 50%; background: #e6eeeb; color: #44514d; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.sf-sn { font-size: 13px; color: #44514d; font-weight: 600; } .sf-step strong { font-size: 26px; line-height: 1.1; color: #10302a; } .sf-step small { font-size: 11px; color: #7a8682; }
.sf-step.on { background: var(--brand); } .sf-step.on .sf-no { background: #fff; color: var(--brand); } .sf-step.on .sf-sn, .sf-step.on strong { color: #fff; } .sf-step.on small { color: #cfe6dc; } .sf-step.on .sf-red { color: #ffd6cf; }
.sf-step.end:not(.on) strong { color: #7a8682; }
.sf-arrow { width: 18px; flex: none; position: relative; } .sf-arrow::after { content: ''; position: absolute; left: 3px; top: 50%; width: 9px; height: 9px; border: solid #b7c9c3; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.sf-red { color: #b4473b; }
.sf-whs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sf-wh { --c: #0f5c4d; text-align: left; background: #fff; border: 1px solid #dfe7e4; border-top: 3px solid var(--c); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.sf-wh.haiou { --c: #41556a; } .sf-wh.yunding { --c: #2f6b57; } .sf-wh.cbt { --c: #a8741e; } .sf-wh.noncbt { --c: #8d6331; }
.sf-wh.os90040 { --c: #a8741e; } .sf-wh.os91752 { --c: #8d6331; } .sf-wh.os08902 { --c: #3d6a9a; } .sf-wh.whq { --c: #8b8f94; }
.sf-wh.on { box-shadow: 0 0 0 2px var(--c) inset; background: color-mix(in srgb, var(--c) 6%, #fff); } .sf-wh.zero { opacity: .7; }
.sf-wh-h { display: flex; gap: 6px; align-items: center; font-size: 14px; } .sf-g { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.sf-wh-n strong { font-size: 30px; color: var(--c); line-height: 1; } .sf-wh-n span { font-size: 13px; color: #44514d; margin-left: 4px; } .sf-wh small { font-size: 12px; color: #6b7773; min-height: 17px; }
.sf-pics { display: flex; gap: 4px; min-height: 34px; } .sf-pics img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; }
.sf-gd { display: flex; gap: 10px; align-items: center; } .sf-img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; flex: none; } .sf-noimg { display: inline-grid; place-items: center; font-size: 11px; color: #9aa5a1; background: #f4f6f5; }
.sf-t { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.sf-tips { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; } .sf-tips span { font-size: 11px; color: #8a6d1f; background: #fbf4e2; padding: 1px 6px; border-radius: 4px; }
.sf-step-txt { font-size: 12px; max-width: 360px; }
.sf-delay { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 600; } .sf-delay.late { background: #fbecea; color: #b4473b; } .sf-delay.soon { background: #fdf1dc; color: #a8641e; } .sf-left { font-size: 12px; color: #5f6b67; }
.sf-why { display: inline-block; font-size: 12px; font-weight: 600; color: #b4473b; background: #fbecea; padding: 1px 8px; border-radius: 4px; margin-bottom: 2px; }
.sf-acts { white-space: nowrap; } .sf-acts .button { margin-left: 4px; }
.sf-more { padding: 8px 14px; font-size: 12px; color: #7a8682; }
.sf-shipnote { display: flex; gap: 10px; align-items: center; background: #eef5f1; border: 1px solid #d4e6dc; border-radius: 10px; padding: 14px; color: #24584a; }
.sf-logbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; } .sf-rule { font-size: 12px; color: #44514d; }
.sf-note { width: 160px; height: 30px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 8px; font-size: 12px; }
.sf-whs3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-whs5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .sf-whs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sf-whs5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sf-whs, .sf-whs5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-table td { vertical-align: middle; } .sf-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .sf-acts .button { margin-left: 0; }
.sv-oldbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #fdf6e3; border: 1px solid #f0e0b0; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; color: #6b5414; }
.sv-cdlg { width: min(760px, 94vw); } .sv-cimg { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1px solid #e3e8e6; flex: none; }
.sv-ct { font-size: 13px; font-weight: 600; color: #10302a; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-cnote { font-size: 12px; color: #44514d; background: #f4f8f7; border-radius: 8px; padding: 8px 10px; margin: 12px 0 8px; } .sv-chint { font-size: 12px; color: #a8641e; margin: 0 0 10px; } .sv-chint.muted { color: #7a8682; }
.sv-cform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; } .sv-cform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #44514d; font-weight: 600; }
.sv-cform input:not([type=checkbox]) { height: 36px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 400; }
.sv-cform input:focus { outline: 2px solid #0f6b57; outline-offset: 0; border-color: #0f6b57; }
.sv-cform .sv-cbat { flex-direction: row; align-items: center; gap: 6px; } .sv-cfoot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 4px; }
.sv-note { display: flex; gap: 4px; } .sv-note input { width: 150px; height: 30px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 8px; font-size: 12px; }
.sv-pkset { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: -4px 0 12px; flex-wrap: wrap; } .sv-pkset input[type=number] { width: 64px; height: 30px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 6px; }
.sv-pbar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; flex-wrap: wrap; } .sv-pbar input[name=q] { width: 280px; height: 34px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; } .sv-pbar .vwh-pager { margin-left: auto; }
/* V1.9.33 统计截止 / 每档日期范围 */
.vwh-asof { background: #f4f8f7; border: 1px solid #dde8e4; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.vwh-asof.compact { margin: 8px 0 10px; padding: 8px 10px; } .vwh-asof-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; } .vwh-asof-h b { font-size: 13px; color: #10302a; }
.vwh-wins { display: flex; gap: 6px; flex-wrap: wrap; } .vwh-win { background: #fff; border: 1px solid #dde8e4; border-radius: 6px; padding: 2px 8px; color: #44514d; } .vwh-win b { color: #0f5c4d; margin-right: 2px; }
.sf-nw { white-space: nowrap; }

/* V1.9.35 看整条链接 */
.lkm-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #0f6b57; background: #fff; color: #0f6b57; font-size: 12px; font-weight: 600; cursor: pointer; }
.lkm-btn:hover { background: #0f6b57; color: #fff; }
.lkm-dlg { width: min(1060px, 96vw); max-height: 92vh; display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.lkm-h { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e3ebe8; } .lkm-h img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid #e3e8e6; }
.lkm-h h2 { font-size: 15px; margin: 0 0 4px; line-height: 1.35; } .lkm-h .x { margin-left: auto; }
.lkm-sum { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px; background: #f4f8f7; font-size: 12px; color: #44514d; border-bottom: 1px solid #e3ebe8; } .lkm-sum b { color: #0f5c4d; }
.lkm-pill { background: #fff; border: 1px solid #dde8e4; border-radius: 6px; padding: 2px 8px; }
.lkm-body { overflow: auto; flex: 1; }
.lkm-t { width: 100%; border-collapse: collapse; font-size: 13px; } .lkm-t th { position: sticky; top: 0; background: #fbfcfc; font-size: 12px; color: #6b7773; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3ebe8; z-index: 1; }
.lkm-t td { padding: 7px 10px; border-bottom: 1px solid #eef2f1; vertical-align: middle; } .lkm-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.lkm-t tr.on { background: #f1f8f5; } .lkm-t tr.off td { color: #9aa5a1; }
.lkm-sp { display: flex; gap: 10px; align-items: center; } .lkm-sp img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; } .lkm-sp b { font-size: 13px; color: #10302a; }
.lkm-n { display: inline-block; min-width: 30px; text-align: center; padding: 1px 6px; border-radius: 5px; } .lkm-n.hit { background: #0f6b57; color: #fff; font-weight: 700; }
.lkm-q { width: 76px; height: 32px; border: 1px solid #cfdcd8; border-radius: 7px; padding: 0 8px; text-align: right; font: inherit; font-size: 13px; } .lkm-q.edit { border-color: #c98a1a; background: #fffaf0; } .lkm-q:disabled { background: #f4f6f5; color: #aab3b0; }
.lkm-tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e6f2ee; color: #0f5c4d; font-weight: 600; } .lkm-tag.man { background: #fdf1dc; color: #a8641e; } .lkm-tag.no { background: #f1f3f2; color: #7a8682; font-weight: 400; }
.lkm-ck { width: 18px; height: 18px; accent-color: #0f6b57; }
.lkm-f { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #e3ebe8; background: #fff; } .lkm-f .cell-muted { font-size: 12px; } .lkm-f .button { margin-left: auto; }
.lkm-src { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e6f2ee; color: #0f5c4d; font-weight: 600; } .lkm-src.man { background: #fdf1dc; color: #a8641e; }
.lkm-grp td { background: #f4f8f7 !important; font-size: 12px; color: #24584a; padding: 6px 12px !important; }

/* V1.10.0-dev 推到美区备货「新品待处理」 */
.stk-dlg { width: min(1500px, 97vw); max-height: 94vh; display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.stk-hd { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e3ebe8; } .stk-hd h2 { margin: 0 0 4px; font-size: 17px; }
.stk-owner { font-size: 12px; color: #44514d; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.stk-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 9px 20px; background: #f4f8f7; border-bottom: 1px solid #e3ebe8; font-size: 12.5px; } .stk-sum .g b { color: #0f6b57; } .stk-sum .r { color: #b42318; } .stk-sum .a { color: #a8641e; }
.stk-gate { margin: 8px 20px 0; padding: 8px 12px; border-radius: 8px; background: #fdf6e3; border: 1px solid #f0e0b0; color: #6b5414; font-size: 12.5px; } .stk-gate.r { background: #fff4f2; border-color: #f5c2bb; color: #b42318; }
.stk-tw { overflow: auto; flex: 1; } .stk-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stk-t th { position: sticky; top: 0; z-index: 1; background: #fbfcfc; font-size: 12px; color: #6b7773; text-align: left; padding: 8px 8px; border-bottom: 1px solid #e3ebe8; white-space: nowrap; font-weight: 600; }
.stk-t td { padding: 6px 8px; border-bottom: 1px solid #eef2f1; vertical-align: middle; } .stk-t .num { text-align: right; } .stk-t tr.bad td { background: #fff4f2; }
.stk-imgs { white-space: nowrap; } .stk-imgs img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; vertical-align: middle; } .stk-ic { display: block; font-size: 10.5px; color: #6b7773; }
.stk-noimg { width: 48px; height: 48px; border: 2px dashed #d92d20; border-radius: 6px; color: #b42318; font-size: 10px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; background: #fff; } .stk-noimg.wait { border-color: #cfdcd8; color: #6b7773; }
.stk-up { display: inline-block; margin-top: 3px; font-size: 11px; color: #0f6b57; cursor: pointer; text-decoration: underline; }
.stk-in { height: 30px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 7px; font: inherit; font-size: 12.5px; background: #fff; } .stk-in.w { width: 280px; } .stk-in.s { width: 140px; } .stk-in.s2 { width: 70px; } .stk-in.n { width: 66px; text-align: right; } .stk-in.d { width: 104px; } .stk-in.o { width: 110px; }
.stk-sk { font-size: 11.5px; white-space: nowrap; color: #8a9591; } .stk-sk.ok { color: #44514d; } .stk-sk.ok b { color: #0f6b57; }
.stk-wait { margin-top: 3px; font-size: 11.5px; color: #a8641e; background: #fdf6e6; border-radius: 4px; padding: 1px 6px; display: inline-block; white-space: nowrap; }
.stk-err { color: #b42318; font-weight: 700; } .stk-ok { color: #0f6b57; font-weight: 600; }
.stk-tasks { padding: 6px 20px; border-top: 1px solid #eef2f1; font-size: 12.5px; } .stk-tasks summary { cursor: pointer; color: #44514d; }
.stk-ft { display: flex; gap: 10px; align-items: center; padding: 12px 20px; border-top: 1px solid #e3ebe8; } .stk-ft .cell-muted { flex: 1; font-size: 12px; } .stk-ft .button { margin-left: 0; }
.stk-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: nowrap; }
.stk-st { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; background: #eef1f0; color: #44514d; } .stk-st.amber { background: #fdf1dc; color: #a8641e; } .stk-st.blue { background: #e0ecff; color: #1d4ed8; } .stk-st.red { background: #fde4e1; color: #b42318; } .stk-st.green { background: #dcf3e8; color: #0f6b57; } .stk-st.mute { background: #f1f3f2; color: #8a9591; text-decoration: line-through; }
.stk-lbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .stk-lbar .button { margin-left: auto; }

/* V1.9.36 海外仓成本候选显示美区备货商品图 */
.uc-img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; flex: none; background: #f4f6f5; }
.uc-noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #9aa5a1; }
.uc-cand > span.uc-noimg { flex: none; width: 44px; display: inline-flex; flex-direction: row; }
.stk-whl { margin: 6px 0; padding: 6px 10px; border-radius: 6px; background: #eef6f2; font-size: 12px; color: #285b45; }
.stk-whl.a { background: #fff6e5; color: #8a5a00; }
.stk-sk { white-space: normal; max-width: 260px; } .stk-sk b { word-break: break-all; }

/* V1.9.41 右侧扫码记录：改重量 / 备注 / 取消发货 */
.pk-log li.pk-rec { display:flex; gap:10px; align-items:flex-start; padding:10px 0; border-bottom:1px dashed var(--line); flex-wrap:nowrap; }
.pk-rec .pk-rec-m { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; line-height:1.45; }
.pk-rec .pk-rec-m b { font-size:13.5px; }
.pk-rec .pk-rec-m .tag { align-self:flex-start; margin:1px 0 2px; font-weight:600; }
.pk-rec .pk-rec-sub { color:#6b7280; font-size:12.5px; }
.pk-rec .pk-rec-act { display:flex; gap:6px; flex:none; align-items:center; margin-left:auto; }
.pk-rec .pk-rec-act .button { padding:3px 8px; font-size:12px; }
.pk-x { width:28px; height:28px; border:1px solid #e5e7eb; background:#fff; color:#9ca3af; border-radius:6px; cursor:pointer; font-size:14px; line-height:1; }
.pk-x:hover { color:#b91c1c; border-color:#f1c5c5; background:#fef2f2; }
.pk-rec.cancelled { opacity:.7; color:#6b7280; background:#fafafa; margin:0 -8px; padding:10px 8px; border-radius:8px; }
.pk-rec.cancelled .pk-rec-m b, .pk-rec.cancelled .pk-num, .pk-rec.cancelled .pk-rec-sub .sn, .pk-rec.cancelled .pk-rec-sub { text-decoration:line-through; }
.pk-rec.cancelled img { filter:grayscale(1); opacity:.7; }
.tag.canceled { background:#f3f4f6; color:#6b7280; border:1px solid #e5e7eb; }
.pk-audit { font-size:12px; color:#6b7280; }
.pk-wedit { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:6px 0 0; padding:10px; border:1px solid #9cc9bb; background:#f2faf7; border-radius:8px; font-size:13px; }
.pk-wedit label { display:flex; align-items:center; gap:6px; color:#36514b; }
.pk-wedit input { width:88px; height:32px; border:1px solid #9cc9bb; border-radius:6px; padding:0 8px; font-size:14px; font-weight:700; }
.pk-wedit .sv { background:var(--brand); color:#fff; border:0; border-radius:6px; padding:5px 12px; cursor:pointer; }
.pk-wedit .cx { background:#fff; border:1px solid #cfdcd8; border-radius:6px; padding:4px 10px; cursor:pointer; }
.pk-ed.pk-cancel-ed { width:min(560px, 94vw); }
.pk-cancel-ed .pk-ed-prod { display:flex; gap:12px; align-items:center; margin:8px 0 14px; padding:10px; background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; }
.pk-cancel-warn { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:8px; padding:10px 12px; font-size:13.5px; margin:0 0 12px; line-height:1.6; }
.pk-cancel-warn b { color:#7c2d12; }
.pk-cancel-f { grid-template-columns:1fr !important; }
.pk-cancel-qs { display:flex; flex-wrap:wrap; gap:6px; margin:-4px 0 8px; }
.pk-cancel-qs .q { border:1px solid #cfdcd8; background:#fff; border-radius:14px; padding:3px 10px; font-size:12px; cursor:pointer; }
.pk-cancel-qs .q.on { background:var(--brand); color:#fff; border-color:var(--brand); }

.tag.pending { background:#f3ebd2; color:#6e5a1e; border:1px solid #e4d6a4; font-weight:600; }
.tag.wh-bad { background:#fde8e8; color:#b42318; border:1px solid #f2c2c2; font-weight:700; }
.pk-chip.pending { background:#f3ebd2; color:#6e5a1e; border-color:#e4d6a4; }
.pk-rec.pk-whbad { background:#fff8f8; }
/* V1.9.47 只看待补数据 */
.pk-pendf { border-color:#e4d6a4; color:#6e5a1e; background:#fffdf6; }
.pk-pendf:hover { background:#f8f0d8; border-color:#c4a96a; }
.pk-pendf.on { background:#f3ebd2; border-color:#c4a96a; color:#6e5a1e; font-weight:700; }
.pk-pendf em { font-style:normal; font-size:11px; background:#f3ebd2; color:#6e5a1e; border-radius:9px; padding:1px 7px; margin-left:4px; font-weight:700; }
.pk-pendf.on em { background:#fff; }
.pk-rec-filter { display:flex; align-items:center; gap:10px; margin:0 0 8px; flex-wrap:wrap; }
.pk-pendrow { background:#fffdf6; }
.pk-daybar .pk-pendf { margin-left:4px; }

/* V1.9.48 改运单号 / 袋内分页与扫描时间 / 已封袋仍显示 */
.pk-bagtool { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 8px; }
.pk-bagpager { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 8px; color:#5b6570; font-size:12px; }
.pk-bagpager .pager { display:inline-flex; gap:4px; flex-wrap:wrap; }
.pk-bagpager .pager button { min-width:28px; height:28px; border:1px solid #d5dbe3; background:#fff; border-radius:6px; cursor:pointer; }
.pk-bagpager .pager button.on { background:#1f6f56; color:#fff; border-color:#1f6f56; }
.pk-bagpager .pager button:disabled { opacity:.4; cursor:default; }
.pk-table .pk-time { white-space:nowrap; font-variant-numeric:tabular-nums; color:#5b6570; font-size:12px; }
.pk-ln-err { color:#b42318; margin:6px 0; font-size:13px; }
.pk-ln-preview { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-start; background:#f3faf7; border:1px solid #cce8dc; border-radius:8px; padding:8px 10px; margin:8px 0; }
.pk-ln-ed { z-index:80; }

/* V1.9.50 虚拟仓推美区 · 推送记录页签 */
.vwh-subtabs { margin: 0 0 14px; }
a.vwh-plog-buy { white-space: nowrap; }
.vwh-table .pk-time { white-space: nowrap; font-variant-numeric: tabular-nums; color: #5b6570; font-size: 12px; }

/* V1.9.53 妙手发货：备注展示 / 不发货标记 */
.sf-rm { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf-rm .tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.tag.note { background: #e8f4f0; color: #0c7462; border: 1px solid #b7ddd4; }
.tag.buyer { background: #eef2fa; color: #34518a; border: 1px solid #c9d4ee; }
.tag.hold { background: #fbecea; color: #b4473b; border: 1px solid #f0c7c1; }
.sf-rm-txt { font-size: 12px; color: #2c4a44; background: #f4f8f7; border-radius: 4px; padding: 2px 8px; max-width: 420px; word-break: break-word; }
.sf-rm-txt b { color: #0c5c4e; font-weight: 650; margin-right: 4px; }
.sf-hold-meta { font-size: 12px; color: #6b7773; margin-top: 2px; width: 100%; }
.sf-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sf-filters .ship-seg em { font-style: normal; font-weight: 700; margin-left: 4px; opacity: .85; }
.sf-wh small .hold-hint { color: #b4473b; font-weight: 650; }
tr.hold-row { background: #fdf6f5; }
.sv-hold { width: min(560px, 94vw); background: #fff; border-radius: 12px; padding: 0; box-shadow: 0 16px 48px #0003; }
.sv-hold .vwh-dh { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 8px; }
.sv-hold h2 { margin: 0 0 2px; font-size: 18px; }
.sv-hold-body { padding: 0 18px 16px; }
.sv-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.sv-reasons label { display: flex; align-items: center; gap: 8px; border: 1px solid #d5e0dd; border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 650; color: #17332e; cursor: pointer; }
.sv-reasons label.on { border-color: #0c7462; background: #eef7f4; box-shadow: 0 0 0 2px #0c746233; }
.sv-hold-body textarea { width: 100%; min-height: 72px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; box-sizing: border-box; }
.sv-sync { margin: 12px 0; padding: 10px 12px; border: 1px dashed #c5b06a; background: #fffdf5; border-radius: 8px; }
.sv-sync label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #17332e; font-weight: 650; }
.sv-sync small { display: block; font-weight: 400; color: #6b5514; margin: 4px 0 0 24px; line-height: 1.5; }
.sv-hold-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* V1.9.54 系统测发（仅白名单一单） */
.sf-trial { margin-top: 8px; padding: 8px; background: #f4faf8; border: 1px dashed #9ec9bf; border-radius: 8px; }
.sv-hold.sv-trial { width: min(640px, 94vw); }
.sv-trial-body-txt code, .sv-trial-json { word-break: break-all; overflow-wrap: anywhere; }

.sf-trial-tag { font-size: 11px; font-weight: 700; color: #0c7462; margin-bottom: 6px; }
.sf-trial .sf-acts { margin-top: 0; }
.sf-trial .button[disabled] { opacity: .45; cursor: not-allowed; }
.sv-trial-dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.sv-trial-dims label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 650; color: #44514d; }
.sv-trial-dims input { height: 34px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 8px; font: inherit; }
.sv-trial-warn { margin: 10px 0 0; padding: 8px 10px; background: #fff4f0; border: 1px solid #f0b8aa; border-radius: 8px; color: #8a2b1a; }
.sv-trial-json { margin: 8px 0; padding: 8px 10px; background: #f6faf9; border: 1px dashed #c5d6d2; border-radius: 8px; font: 12px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; max-height: 220px; overflow: auto; }

/* V1.9.56 先关联再报关 */
.sf-why.unlink { color: #8a5a12; background: #fff4e0; }
.sf-why.nocustoms { color: #b4473b; background: #fbecea; }
.sf-topcounts { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; align-items: stretch; }
.sf-pill { background: #fff; border: 1px solid #dce7e4; border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; color: #17332e; display: inline-flex; align-items: baseline; gap: 4px; text-decoration: none; }
button.sf-pill { cursor: pointer; } button.sf-pill:hover, a.sf-pill:hover { border-color: #0f6b57; }
.sf-pill b { font-size: 18px; margin: 0 2px; } .sf-pill small { color: #6b7f7a; font-size: 11px; margin-left: 4px; }
.sf-pill.warn b { color: #c94f4f; } .sf-pill.on { border-color: #0f6b57; box-shadow: 0 0 0 2px #0f6b5733; background: #eef7f4; }
.sf-pill.link { color: #0f6b57; font-weight: 600; align-items: center; }
.page-actions .button.on, .button.secondary.on { border-color: #0f6b57; background: #eef7f4; }
.sv-hold.wide { width: min(720px, 96vw); }
.sv-lk-list { max-height: 46vh; overflow: auto; margin: 0 0 10px; }
.cand { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d5e0dd; border-radius: 8px; padding: 10px; margin: 0 0 8px; cursor: pointer; }
.cand input[type=radio] { margin-top: 20px; }
.cand.on { border-color: #0c7462; background: #eef7f4; box-shadow: 0 0 0 2px #0c746233; }
.cand img, .cand .sf-noimg { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #e3e8e6; flex: none; }
.cand b { display: block; font-size: 13px; line-height: 1.35; margin-top: 2px; }
.sim { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.sim.hi { background: #e3f3ee; color: #0c7462; } .sim.mid { background: #fff1d7; color: #946716; } .sim.low { background: #edf2f1; color: #4b635e; } .sim.ok { background: #e8f4f0; color: #0c5c4e; }
.sv-lk-q { display: flex; gap: 8px; margin: 0 0 6px; } .sv-lk-q input { flex: 1; height: 36px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; }
.sv-mt4 { margin-top: 4px; }
img.sv-zimg { cursor: zoom-in; }

/* V1.9.57 报关大类按钮（老板 11-14 15:31 批效果图） */
.sv-clab { font-size: 12px; font-weight: 700; color: #17332e; margin: 0 0 8px; }
.sv-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sv-cat { appearance: none; border: 1px solid #d5e0dd; background: #fff; border-radius: 8px; padding: 8px 12px; min-width: 86px; font: inherit; font-size: 13px; font-weight: 650; color: #17332e; cursor: pointer; text-align: center; line-height: 1.2; }
.sv-cat small { display: block; font-size: 10px; font-weight: 500; color: #71837f; margin-top: 2px; }
.sv-cat.on { border-color: #0c7462; background: #eef7f4; box-shadow: 0 0 0 2px #0c746233; color: #0c5c4e; }
.sv-cat.on small { color: #0c7462; font-weight: 650; }
.sv-cat.add { border-style: dashed; color: #0c7462; background: #f7fbfa; min-width: 110px; }
.sv-cnew { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 10px; align-items: end; margin: 0 0 14px; background: #f7fbfa; border: 1px dashed #0c7462; border-radius: 8px; padding: 10px; }
.sv-cnew label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #44514d; }
.sv-cnew input { height: 36px; border: 1px solid #cfdcd8; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 400; }
.sv-cnew-acts { display: flex; gap: 6px; }
.sv-cerr { grid-column: 1 / -1; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 0 0 12px; }
.sv-cfoot .button.secondary { margin-right: 4px; }


/* V1.9.59 每单报关按钮 + 试发分步 */
.sf-cus-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.sf-cus-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #edf2f1; color: #4b635e; }
.sf-cus-st.picked { background: #e3f3ee; color: #0c7462; }
.sf-cus-st.guessed { background: #fff1d7; color: #946716; }
.sf-cus-st.nocat, .sf-cus-st.missing { background: #fbecea; color: #b4473b; }
.sf-trial-steps { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; }
.sf-step-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 110px; }
.sf-step-col .button { margin: 0; }

/* V1.9.65 申请运单号前批量核对，沿用系统色系 */
.br-overlay { position: fixed; inset: 0; z-index: 40; background: #043c3370; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 40px; overflow: auto; }
.br-panel { width: min(1480px, 100%); margin: 12px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(4,60,51,.18); padding: 18px 20px 16px; }
.br-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.br-head, .br-head p, .br-note, .br-overlay .cell-muted, .br-cus-hd, .br-cus-from, .br-cus-sug {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.br-overlay .sf-pill, .br-cus-hd .sf-pill { white-space: nowrap; writing-mode: horizontal-tb; }

.br-head h2 { margin: 0 0 4px; font-size: 20px; color: var(--deep); }
.br-steps { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.br-step { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.br-step i { width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; background: #e6efed; color: #36514b; font-style: normal; font-size: 12px; }
.br-step.on, .br-step.done { color: var(--deep); }
.br-step.on i, .br-step.done i { background: var(--brand); color: #fff; }
.br-arrow { width: 28px; height: 2px; background: #dce7e4; display: inline-block; }
.br-note { margin: 0 0 12px; }
.br-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.br-table-wrap { max-height: min(58vh, 640px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.br-table { margin: 0; }
.br-table th { position: sticky; top: 0; background: #f8fbfa; z-index: 1; }
.br-row.wait { background: #fff8e8; }
.br-row.has { background: #f6f9ff; }
.br-row.ok { background: #fff; }
.br-ck { width: 36px; vertical-align: top; }
.br-ck input { accent-color: #0c7462; width: 16px; height: 16px; }
.br-gd-in { display: flex; gap: 10px; align-items: flex-start; }
.br-pic { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #eef4f3; flex: none; }
.br-t { display: block; max-width: 280px; }
.br-pill { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.br-pill.ok { background: #e2f3ec; color: #08765c; }
.br-pill.wait { background: #fff1d7; color: #946716; }
.br-pill.has { background: #e4edfb; color: #2f5fb3; }
.br-ch.ok { color: #0c7462; font-weight: 700; }
.br-ch.wait, .br-wait { color: #946716; font-weight: 700; }
.br-ch.bad, .br-bad { color: #b63e3e; font-weight: 700; }
.br-item + .br-item { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #edf2f1; }
.br-ispec { font-size: 12px; color: #36514b; margin-bottom: 4px; }
.br-cus label { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12px; color: #657873; margin: 0 8px 6px 0; }
.br-cus input { height: 30px; border: 1px solid #cfdcd8; border-radius: 6px; padding: 0 8px; min-width: 88px; font: inherit; }
.br-cus-acts { display: flex; gap: 8px; margin-top: 4px; }
.br-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; background: #f4efe3; border-radius: 10px; }
.br-foot-acts { display: flex; gap: 8px; }
.br-legal { margin: 10px 0 0; font-size: 12px; color: #657873; line-height: 1.55; }
.br-guides { margin: 14px 0 0; padding: 12px 14px; background: #e8f3ef; border: 1px solid #bfdbd2; border-radius: 10px; }
.br-guides h3 { margin: 0 0 6px; font-size: 15px; color: var(--deep); }
.br-guides ol { margin: 8px 0 0; padding-left: 20px; }
.br-out-guide { margin: 14px 0 0; padding: 12px 14px; background: #f4efe3; border: 1px solid #e2d3a8; border-radius: 10px; }
.br-out-guide h3 { margin: 0 0 6px; font-size: 15px; color: var(--deep); }
.br-out-guide ol { margin: 8px 0 0; padding-left: 20px; }
.br-blocked { margin-top: 8px; color: #946716; }
.br-batch-cus { margin-top: 12px; padding: 12px; border: 1px solid #b7ddd4; border-radius: 10px; background: #f8fbfa; }
.br-loading { padding: 8px 0; }
.sf-gd { position: relative; }
.sf-pick { margin: 0 8px 0 0; accent-color: #0c7462; width: 16px; height: 16px; flex: none; }
.sf-bar-br { margin-left: auto; }

/* V1.9.67 表头全选，沿用原勾选强调色 */
.sf-th-pick-lab { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.sf-th-pick-lab input { margin: 0; accent-color: #0c7462; width: 16px; height: 16px; flex: none; }

/* V1.9.68: move former inline styles out of markup so CSP style-src 'self' can stand */
.sv-cat-static { pointer-events: none; }
.sv-cats-gap { margin-bottom: 12px; }
.sf-acts-gap { margin-top: 6px; }
.sf-dlg-lab { margin: 0 0 4px; font-weight: 650; color: #17332e; }
.sf-dlg-note-lab { display: block; font-size: 12px; font-weight: 650; color: #44514d; margin-bottom: 4px; }
.sf-mt8 { margin-top: 8px; }
.sf-ml8 { margin-left: 8px; }
.sf-mt16 { margin-top: 16px; }
.sf-mt12 { margin-top: 12px; }

/* V1.9.68 批量核对：关联与报关分列，只展示实际资料 */
.br-link-pill, .sf-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.br-link-pill.ok, .sf-pill-ok { background: #e3f3ee; color: #0c7462; }
.br-link-pill.wait, .sf-pill-warn { background: #fff1d7; color: #946716; }
.sf-pill-bad { background: #fbecea; color: #b4473b; }
.sf-pill-info { background: #edf2f1; color: #4b635e; }
.br-cus-sku { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #e4eeeb; }
.br-cus-sku:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.br-cus-hd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.sf-cus-grid, .br-cus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.br-cus-field { display: flex; gap: 6px; font-size: 12px; }
.br-cus-k { color: #6a7c77; min-width: 2.5em; }
.br-cus-v { font-weight: 650; color: #17332e; }
.br-cus-field.miss .br-cus-v { color: #b4473b; font-weight: 700; }
.br-cus-from { margin-top: 4px; font-size: 11px; color: #6a7c77; }
.br-cus-sug { margin-top: 4px; font-size: 11px; color: #946716; }

/* V1.9.69 报关弹窗：区分系统建议与报关历史，不用内联 style */
.sv-cform label.sv-sug input { border-color: #efbd45; background: #fffdf6; }
.sv-cform label.sv-hist input { border-color: #0c7462; background: #f4faf8; }
.sv-sug-lab, .sv-hist-lab { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 4px; }
.sv-sug-lab { background: #fff1d7; color: #946716; }
.sv-hist-lab { background: #e3f3ee; color: #0c7462; }

/* V1.9.73 称重对账 */
.wr-page { display:flex; flex-direction:column; gap:16px; }
.wr-card { background:#fff; border:1px solid #d5e4e0; border-radius:12px; padding:16px 18px; }
.wr-card h3 { margin:0 0 8px; color:#043c33; }
.wr-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.wr-rules { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:12px 0; }
.wr-pills { display:flex; flex-wrap:wrap; gap:8px; }
.wr-pills span { background:#eef4f3; color:#043c33; border-radius:999px; padding:4px 10px; font-size:13px; }
.wr-tabs { display:flex; gap:8px; }
.wr-table .wr-mono { font-variant-numeric:tabular-nums; letter-spacing:0; }
.wr-st.ok { color:#0c7462; font-weight:600; }
.wr-st.review { color:#b06300; font-weight:600; }
.wr-st.conflict { color:#b63e3e; font-weight:600; }
.wr-st.miss,.wr-st.pending { color:#6a7a76; }
.wr-feegrid { display:grid; grid-template-columns:1fr 320px; gap:16px; align-items:start; }
.wr-side { background:#eef4f3; border-radius:12px; padding:14px; }
.wr-box { background:#fff; border-radius:8px; padding:10px 12px; margin:8px 0; }
.wr-foot { display:flex; justify-content:flex-end; }
.wr-modal { position:fixed; inset:0; background:#043c3370; z-index:40; display:flex; align-items:center; justify-content:center; padding:24px; }
.wr-dlg { background:#fff; border-radius:16px; max-width:1100px; width:100%; max-height:90vh; overflow:auto; padding:20px; }
.wr-dlg-h,.wr-dlg-f { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.wr-hr { width: 4em; }
.wr-map { display:grid; grid-template-columns:1fr 1fr; gap:10px 18px; margin:12px 0; }
@media (max-width: 900px) { .wr-rules,.wr-feegrid,.wr-map { grid-template-columns:1fr; } }

/* V1.9.76 账单拖放框 */
.wr-drop { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; min-height:132px; padding:22px 16px; margin-top:8px; text-align:center; cursor:pointer; border:2px dashed #0c7462; border-radius:12px; background:#f4faf8; color:#043c33; outline:none; }
.wr-drop:hover, .wr-drop:focus-visible { background:#e3f3ee; border-color:#043c33; }
.wr-drop.is-dragover { background:#d7efe8; border-color:#043c33; border-style:solid; box-shadow:inset 0 0 0 2px #0c7462; }
.wr-drop-title { margin:0; font-weight:700; color:#043c33; }
.wr-drop-hint { margin:0; }


/* V1.9.77 发货下一步操作列 + 批量核对双栏页脚 */
.sf-next { display:flex; flex-direction:column; gap:6px; min-width:220px; }
.sf-flow { display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; }
.sf-flow-step { position:relative; color:#6a7a76; font-size:12px; padding-left:14px; }
.sf-flow-step::before { content:""; position:absolute; left:0; top:5px; width:8px; height:8px; border-radius:50%; background:#d5e4e0; box-sizing:border-box; }
.sf-flow-step.is-done { color:#0c7462; font-weight:600; }
.sf-flow-step.is-done::before { background:#0c7462; }
.sf-flow-step.is-current { color:#043c33; font-weight:700; }
.sf-flow-step.is-current::before { background:#fff; border:2px solid #0c7462; }
.sf-next-title { font-weight:700; color:#043c33; }
.sf-bar-out { margin-left:8px; border-color:#0c7462; color:#043c33; background:#f4faf8; }
.br-foot-split { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch; background:transparent; padding:0; }
.br-card { background:#fff; border:1px solid #d5e4e0; border-radius:12px; padding:16px 18px; }
.br-card h3 { margin:0 0 8px; color:#043c33; }
.br-card-out { border:2px solid #0c7462; background:#f4faf8; }
.br-tag { display:inline-block; margin-left:6px; font-size:11px; font-weight:700; padding:2px 6px; border-radius:4px; background:#e3f3ee; color:#0c7462; vertical-align:middle; }
.br-next .sf-next-title { margin-bottom:4px; }
@media (max-width: 900px) { .br-foot-split { grid-template-columns:1fr; } }


/* V1.9.78 下一步操作列：主按钮突出，次行辅助，长说明折叠，不挤占发货时限 */
.sf-table th.sf-col-next, .sf-table td.sf-col-next { width: 26%; max-width: 300px; min-width: 180px; vertical-align: top; }
.sf-table th.sf-col-due, .sf-table td.sf-col-due { width: 16%; min-width: 110px; white-space: nowrap; vertical-align: top; }
.sf-next { display:flex; flex-direction:column; gap:8px; min-width:0; max-width:300px; width:100%; }
.sf-next .sf-flow { gap:6px 8px; }
.sf-next-title { font-weight:700; color:#043c33; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.sf-next-brief, .sf-next-long, .sf-next-detail { overflow-wrap:anywhere; white-space:normal; }
.sf-next-primary { display:flex; }
.sf-next-main { min-height:38px; padding:8px 14px; font-size:14px; }
.sf-next-secondary { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.sf-next-secondary .sf-acts, .sf-next .sf-acts { white-space:normal; margin:0; gap:8px; }
.sf-next-sub { font-weight:500; }
.sf-next-more { color:#6a7a76; font-size:13px; }
.sf-next-more summary { cursor:pointer; color:#0c7462; width:fit-content; list-style:revert; }
.sf-next-more .sf-next-long { margin-top:6px; }
@media (max-width: 1280px) {
  .sf-table th.sf-col-next, .sf-table td.sf-col-next { max-width: 260px; }
}
@media (max-width: 1080px) {
  .sf-table th.sf-col-next, .sf-table td.sf-col-next { max-width: 220px; min-width: 160px; }
}

/* V1.9.80 待打单发货 · 批量打印面单 */
.sf-print-note { margin: 0 0 10px; }
.sf-print-picked { margin-left: auto; }
.sf-lp { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; line-height: 1.4; }
.sf-lp.pending { background: #e6f4ee; color: #0f5c4d; }
.sf-lp.printed { background: #e8f0ff; color: #2a56c6; }
.sf-lp.fetched { background: #fff6e0; color: #8a5a00; }
.sf-lp.confirmed { background: #e8f0ff; color: #2a56c6; }
.sf-lp.failed { background: #fff1ee; color: #b4473b; }
.sf-print-ul { margin: 0 0 10px; padding-left: 18px; }
.sf-print-ul li { margin: 4px 0; }

/* V1.9.82 批量核对：待确认渠道快选 */
.br-chs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.br-chb{border:1px solid #cfd8d5;background:#fff;border-radius:7px;padding:4px 10px;font-size:12px;line-height:1.3;cursor:pointer;text-align:left;color:#1f2d2a}
.br-chb small{display:block;color:#8a9692;font-size:10px}
.br-chb:hover{border-color:#0f6e57;background:#e6f4ee;color:#0f6e57}
.br-chb.on{border-color:#0f6e57;background:#e6f4ee;color:#0f6e57;font-weight:600}
.br-chb:disabled{opacity:.5;cursor:default}
.br-ch-chg{border:0;background:none;color:#0f6e57;text-decoration:underline;font-size:12px;cursor:pointer;padding:0 2px}
.br-grp td{background:#fafbfb;padding:10px 12px}
.br-grp.warn td{border-left:4px solid #d98a1c;background:#fff8ee}
.br-grp.ok td{border-left:4px solid #2e9a6c}
.br-grp-act{float:right;display:inline-flex;gap:6px;align-items:center}
.br-ch-seg{margin-right:8px}

/* V1.9.87 报关编辑框常用品类快选 */
.br-cats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0 8px; }
.br-cats-lab { font-size: 12px; color: #657873; margin-right: 2px; }
.br-cat { border: 1px solid #cfdcd8; background: #fff; border-radius: 7px; padding: 3px 8px; font-size: 12px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.br-cat small { color: #7a8682; font-size: 10px; }
.br-cat:hover { border-color: var(--brand); }
.br-cat.on { background: var(--brand); border-color: var(--brand); color: #fff; } .br-cat.on small { color: #d8efe6; }
.br-en-row { display: inline-flex; gap: 4px; align-items: center; } .br-en-row .button { height: 30px; padding: 0 8px; }

/* V1.9.88 步骤提示 + 批量点发货 */
.notice.sf-guide { margin: 8px 0 10px; }
.notice.sf-guide b { margin-right: 8px; }
.sf-bs-wrap { max-height: 360px; overflow: auto; }
.sf-bar .sf-bar-bs { margin-left: 4px; }

/* V1.9.89 手动加常用品类 */
.br-cat.br-cat-add { border-style: dashed; color: #1f7a4d; background: transparent; }

/* V1.9.90 提示框盖在弹窗上面；新增常用小框 */
.toast { z-index: 5000 !important; }
.br-cat-form { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 3px 6px; border: 1px dashed #1f7a4d; border-radius: 7px; background: #f3faf6; }
.br-cat-form input { height: 28px; width: 120px; font-size: 12px; padding: 0 6px; }
.br-cat-form input[name="nc_en"] { width: 150px; }
.br-cat-form .button { height: 28px; padding: 0 8px; }

/* V1.9.93 复制所选订单号：不挤占原按钮，允许换行后单独成块 */
.sf-bar-copy { white-space: nowrap; flex: none; }
.sv-copy-fallback-text { width: 100%; min-height: 160px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px; border: 1px solid #cfdcd8; border-radius: 8px; box-sizing: border-box; }

/* V1.9.97 批量核对按仓+渠道分组 */
.br-grp.has td{border-left:4px solid #71837f;background:#f4f6f5}
.br-ghint{margin:0 12px 10px}
@media (max-width: 900px) { .br-grp-act{float:none;display:flex;flex-wrap:wrap;margin-top:8px} }

/* V1.9.99 工作人员备注编辑与冲突确认 */
.sf-rm-st { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.sf-rm-st.ok { background:#e2f3ec; color:#08765c; }
.sf-rm-st.wait { background:#fff1d7; color:#946716; }
.sf-rm-st.bad { background:#fde7e5; color:#b63e3e; }
.sf-rm-edit { margin-left:8px; }
.sv-note-side { position:fixed; top:64px; right:0; bottom:0; width:min(520px, 96vw); background:#f7fbfa; border-left:1px solid #dce7e4; box-shadow:-8px 0 24px rgba(16,44,40,.12); z-index:40; overflow:auto; padding:20px 22px 28px; }
.sv-note-side h2 { margin:0 0 4px; font-size:20px; color:#172c28; }
.sv-note-scope { background:#e8f3ef; border:1px solid #bfdbd2; color:#20584c; border-radius:8px; padding:10px 14px; font-weight:700; font-size:13px; margin:12px 0; }
.sv-note-ro, .sv-note-ed, .sv-note-st, .sv-note-acts { background:#fff; border:1px solid #dce7e4; border-radius:10px; padding:12px 14px; margin-bottom:12px; }
.sv-note-ed { border-color:#0c7462; }
.sv-note-ed textarea { width:100%; min-height:96px; border:1px solid #cfdcd8; border-radius:6px; padding:8px 10px; font:inherit; resize:vertical; }
.sv-note-acts .button { margin:0 8px 8px 0; }
.sv-note-conflict { width:min(820px, 94vw); }
.sv-note-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:16px 0; }
.sv-note-col { border-radius:10px; padding:14px 16px; min-height:160px; }
.sv-note-col.local { background:#fbfdfc; border:1.2px solid #0c7462; }
.sv-note-col.remote { background:#f7f9fd; border:1.2px solid #2f5fb3; }
.sv-note-conflict textarea { width:100%; min-height:72px; margin-top:8px; border:1px solid #cfdcd8; border-radius:6px; padding:8px 10px; font:inherit; }
@media (max-width: 720px) { .sv-note-cols { grid-template-columns:1fr; } }

/* V1.9.107 打包称重 · 打单核对 */
.pk-chk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0; }
.pk-chk-bar input[type="date"] { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.pk-chk-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pk-chk-pill { border: 1px solid #d1d5db; background: #fff; color: #374151; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.pk-chk-pill.on { background: #0f766e; color: #fff; border-color: #0f766e; }
.pk-chk-pill em { font-style: normal; opacity: .85; margin-left: 2px; }
.pk-chk-banner { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.pk-chk-banner.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pk-chk-banner.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.pk-chk-banner.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pk-chk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pk-chk-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.pk-chk-card span { font-size: 12px; color: #6b7280; }
.pk-chk-card b { font-size: 22px; color: #111827; line-height: 1.2; }
.pk-chk-card small { font-size: 11px; color: #6b7280; }
.pk-chk-card.err b { color: #dc2626; }
.pk-chk-card.warn b { color: #d97706; }
.pk-chk-card.ok b { color: #059669; }
.pk-chk-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pk-chk-tag.ok { background: #d1fae5; color: #065f46; }
.pk-chk-tag.warn { background: #fef3c7; color: #92400e; }
.pk-chk-tag.err { background: #fee2e2; color: #991b1b; }
.pk-chk-tbl tr.pk-chk-miss { background: #fff7f7; }
.pk-chk-tbl tr.pk-chk-done { opacity: .72; background: #f9fafb; }
.pk-chk-ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-chk-sel { padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; background: #fff; }
.pk-chk-inp { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; min-width: 150px; flex: 1; }
.pk-chk-trace { margin-top: 4px; font-size: 11px; }
.pk-chk-empty { padding: 28px; text-align: center; color: #6b7280; background: #f9fafb; border-radius: 8px; border: 1px dashed #d1d5db; }