/* =========================================================
   CZ-YC精益生产系统
   ========================================================= */

:root {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e7eaf0;
  --line-soft: #f1f3f7;
  --nav: #0b1526;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --teal: #0d9488;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #12b76a;
  --purple: #7c3aed;
  --indigo: #4f46e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -18px rgba(16, 24, 40, .28);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------- 登录页 ---------------- */

.login {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(37, 99, 235, .38), transparent 62%),
    radial-gradient(700px 500px at 12% 100%, rgba(13, 148, 136, .28), transparent 60%),
    linear-gradient(150deg, #08111f 0%, #0c1c33 48%, #0a2233 100%);
}
.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 46px 58px 38px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #e6eefb;
  isolation: isolate;
  background: transparent;
}
.login-visual::before { display: none; }

.login-grid-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 180, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 230, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 500px at 60% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 500px at 60% 30%, #000 20%, transparent 78%);
}
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.login-brand strong { display: block; font-size: 19px; letter-spacing: .5px; color: #fff; }
.login-brand span { display: block; font-size: 12px; color: #8fa6c6; letter-spacing: 1.4px; }

.brand-logo {
  display: block;
  width: 40px; height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 6px 18px -6px rgba(168, 85, 247, .55);
}
.brand-logo.small { width: 34px; height: 34px; border-radius: 10px; }

.login-copy { position: relative; z-index: 2; margin-top: auto; padding-top: 28px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: #6f8bb3; margin-bottom: 14px; }
.login-copy h1 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 28px rgba(168, 130, 255, .55), 0 0 70px rgba(80, 190, 255, .28), 0 4px 24px rgba(0, 0, 0, .65);
}
.login-copy .lead {
  margin-top: 18px;
  max-width: 470px;
  color: #a9bdd7;
  font-size: 15px;
  line-height: 1.85;
}

.loc-cards {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
}
.loc-card {
  flex: 1;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(160, 190, 230, .16);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(6px);
}
.loc-card b { display: block; color: #fff; font-size: 17px; margin: 7px 0 1px; }
.loc-card small { color: #89a0bf; font-size: 12px; white-space: nowrap; }
.loc-arrow { display: flex; align-items: center; color: #4d6a92; font-size: 17px; }
.loc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.loc-dot.blue { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, .16); }
.loc-dot.amber { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
.loc-dot.green { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }

.login-foot { position: relative; z-index: 2; color: #8fa6c6; font-size: 12px; }
/* v1.23.1 备案号页脚：公网域名上线后必须展示 ICP 备案号（链接工信部） */
.login-icp { position: relative; z-index: 2; margin-top: 10px; font-size: 12px; color: #8fa6c6; }
.login-icp a, .app-icp a { color: inherit; text-decoration: none; }
.login-icp a:hover, .app-icp a:hover { text-decoration: underline; }
.icp-dot { margin: 0 6px; }
.app-icp { padding: 4px 0 16px; text-align: center; font-size: 12px; color: #98a2b3; }

.login-panel {
  position: absolute;
  z-index: 3;
  right: 58px;
  bottom: 72px;
  width: 390px;
  max-width: calc(100% - 40px);
  margin-top: 0;
  padding: 28px 28px 26px;
  border-radius: 18px;
  border: 1px solid rgba(160, 205, 255, .24);
  background: rgba(5, 13, 28, .55);
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.login-form { width: 100%; max-width: 380px; }
.login-form-head { margin-bottom: 24px; }
.login-form-head h2 { font-size: 27px; letter-spacing: -.5px; color: #fff; }
.login-form-head p { margin-top: 6px; color: #b8c8dd; font-size: 14px; }
.login-panel .field span { color: #c5d4e8; }
.login-panel .field input { background: rgba(255, 255, 255, .94); border-color: rgba(190, 215, 245, .55); color: #101828; -webkit-text-fill-color: #101828; caret-color: #101828; }
.login-panel .field input::placeholder { color: #8a93a3; }
.login-panel .field input:-webkit-autofill { -webkit-text-fill-color: #101828; box-shadow: 0 0 0 1000px #fff inset; }
.login-help { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: #a9bdd7; }
.login-help b { color: #dbe7f7; font-weight: 600; }
.profile-pw-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.login-form .field { margin-bottom: 16px; }
.login-error {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fef3f2;
  border: 1px solid #fee4e2;
  color: #b42318;
  font-size: 14px;
}
.login-hint { margin-top: 16px; font-size: 12px; color: var(--muted-2); text-align: center; }

.demo-box { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); }
.demo-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.demo-title span { color: var(--muted-2); font-size: 12px; margin-left: 4px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  transition: .15s;
}
.demo-item:hover { border-color: #bfd3f7; background: #f4f8ff; transform: translateY(-1px); }
.demo-item b { display: block; font-size: 13px; font-weight: 600; }
.demo-item small { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; letter-spacing: .2px; }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-visual { padding: 30px 26px; gap: 24px; }
  .login-copy { margin-top: 6px; }
  .login-copy h1 { font-size: 31px; }
  .login-copy .lead { margin-top: 10px; font-size: 14px; line-height: 1.7; }
  .loc-cards { margin-top: 8px; }
  .login-foot { display: none; }
  .login-panel { padding: 34px 24px 46px; }
}
@media (max-width: 560px) {
  .login-visual { padding: 22px 20px 26px; gap: 18px; }
  .login-copy h1 { font-size: 26px; }
  .login-copy .lead { display: none; }
  .loc-cards { gap: 6px; }
  .loc-arrow { display: none; }
  .loc-card { padding: 10px; }
  .loc-card small { font-size: 11px; white-space: normal; }
  .login-panel { padding: 26px 20px 40px; }
  .login-form-head h2 { font-size: 23px; }
}

/* ---------------- 应用骨架 ---------------- */

.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: 232px;
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  color: #b9c8dd;
  background: linear-gradient(180deg, #0a1424 0%, #0c1a2e 62%, #0a1f2c 100%);
  border-right: 1px solid rgba(148, 180, 230, .06);
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 22px; }
.side-brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: .3px; }
.side-brand span { display: block; color: #6f88a8; font-size: 11px; letter-spacing: .8px; }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #93a7c2;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s;
  position: relative;
  background: none;
  text-align: left;
  width: 100%;
}
.nav-item .ic { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #dbe6f5; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, .22), rgba(59, 130, 246, .07));
  color: #fff;
  border-color: rgba(96, 165, 250, .18);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 3px 3px 0; background: #3b82f6;
}
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: rgba(239, 68, 68, .18);
  color: #fca5a5;
  font-size: 11px; line-height: 18px; text-align: center;
}
.nav-badge.neutral { background: rgba(148, 163, 184, .16); color: #cbd5e1; }

.side-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(148, 180, 230, .09); }
.side-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #7f97b6; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .15); }
.side-locations { display: flex; gap: 10px; margin-top: 10px; font-size: 11px; color: #7f97b6; }
.side-locations span { display: flex; align-items: center; gap: 4px; }
.side-locations .loc-dot { width: 5px; height: 5px; }
.side-host { margin-top: 8px; font-size: 10px; color: #6f88a8; word-break: break-all; line-height: 1.4; }
.side-version { margin-top: 6px; font-size: 10px; color: #4c6584; letter-spacing: .5px; }

.side-mask { display: none; }

.main { margin-left: 232px; min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 70px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.page-heading h1 { font-size: 20px; letter-spacing: -.3px; font-weight: 700; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 1px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 20px;
  background: #f2f7f4; color: #3f7a5c;
  font-size: 11px; white-space: nowrap;
}
.sync-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: #12b76a; }
.sync-pill.off { background: #fef3f2; color: #b42318; }
.sync-pill.off .dot { background: #ef4444; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: .15s;
  flex: none;
}
.icon-btn:hover { background: #f2f4f7; color: var(--ink); }
.icon-btn .ic { width: 17px; height: 17px; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 4px 4px 6px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  font-size: 14px; font-weight: 700;
  flex: none;
}
.user-meta b { display: block; font-size: 13px; line-height: 1.3; }
.user-meta span { display: block; font-size: 11px; color: var(--muted); }
.logout-btn { width: 30px; height: 30px; margin-left: 2px; }

.view { width: 100%; max-width: 1640px; margin: 0 auto; padding: 24px 28px 60px; }

@media (max-width: 1100px) {
  .view { padding: 20px 20px 50px; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 248px; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(8, 17, 31, .45);
    opacity: 0; pointer-events: none; transition: opacity .22s;
  }
  .side-mask.show { opacity: 1; pointer-events: auto; }
  .topbar { padding: 10px 18px; }
}
@media (max-width: 720px) {
  .gantt-inner { min-width: 470px; }
  .page-heading p { display: none; }
  .sync-pill { display: none; }
  .user-meta { display: none; }
  .user-chip { padding-left: 10px; }
  .view { padding: 16px 14px 46px; }
  .topbar { min-height: 62px; padding: 8px 12px; gap: 8px; }
  .page-heading h1 { font-size: 17px; }
}

/* ---------------- 通用组件 ---------------- */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.page-head h2 { font-size: 22px; letter-spacing: -.4px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  text-decoration: none;
}
.btn:hover { border-color: #cfd8e6; background: #fafbfd; }
.btn .ic { width: 15px; height: 15px; }
.btn.primary {
  background: linear-gradient(180deg, #2f6fed, #2563eb);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .8);
}
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.soft { background: #eef4ff; border-color: #dbe8ff; color: #1d4ed8; }
.btn.soft:hover { background: #e3edff; }
.btn.danger { background: #fff5f4; border-color: #fee4e2; color: #b42318; }
.btn.danger:hover { background: #feeceb; }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 42px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { font-size: 15px; letter-spacing: -.2px; }
.card-head .muted { font-size: 12px; }
.card-body { padding: 16px 18px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11.5px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.b-gray { background: #f2f4f7; color: #475467; }
.b-blue { background: #eff6ff; color: #1d4ed8; }
.b-amber { background: #fffaeb; color: #b54708; }
.b-green { background: #ecfdf3; color: #027a48; }
.b-red { background: #fef3f2; color: #b42318; }
.b-purple { background: #f5f3ff; color: #6d28d9; }
.b-teal { background: #f0fdfa; color: #0f766e; }
.b-indigo { background: #eef2ff; color: #4338ca; }

.progress { height: 6px; border-radius: 6px; background: #eef1f5; overflow: hidden; min-width: 40px; }
.progress > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .4s; }
.progress.green > i { background: linear-gradient(90deg, #34d399, #059669); }
.progress.amber > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress.sm { height: 4px; }

.empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}
.empty .ic { width: 26px; height: 26px; display: block; margin: 0 auto 8px; opacity: .5; }

/* ---------------- 看板 ---------------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.kpi {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.kpi-icon .ic { width: 16px; height: 16px; }
.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.amber { background: #fffaeb; color: #d97706; }
.kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }
.kpi-icon.red { background: #fef3f2; color: #dc2626; }
.kpi-icon.green { background: #ecfdf3; color: #059669; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -.8px; margin-top: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }
.kpi-sub.warn { color: #b54708; }
.kpi-sub.danger { color: #b42318; }

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.grid-2.equal { grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .grid-2, .grid-2.equal { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-grid .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 12px 13px; }
  .kpi-value { font-size: 24px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* 图表 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 186px; padding-top: 8px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-num { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-fill {
  width: 100%; max-width: 34px; min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #7db2ff, #2f6fed);
  transition: height .5s;
}
.bar-col.today .bar-fill { background: linear-gradient(180deg, #34d399, #059669); }
.bar-fill.zero { opacity: .18; }
.bar-col.today .bar-day { color: #027a48; font-weight: 600; }
.bar-day { font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.load-list { display: flex; flex-direction: column; gap: 13px; padding-top: 2px; }
.load-row { display: grid; grid-template-columns: 66px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.load-row span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.load-row .progress { min-width: 0; }

.activity { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: #93c5fd; margin-top: 7px; flex: none; }
.activity-dot.office { background: #60a5fa; }
.activity-dot.factory { background: #fbbf24; }
.activity-dot.warehouse { background: #34d399; }
.activity-dot.admin { background: #c4b5fd; }
.activity-main { min-width: 0; }
.activity-main b { font-size: 13px; font-weight: 600; }
.activity-main p { font-size: 12px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; padding-top: 2px; }

/* ---------------- 表格 ---------------- */

.toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.search {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fbfcfe;
  min-width: 240px;
}
.search .ic { width: 15px; height: 15px; color: var(--muted-2); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 13px; }
.toolbar select, .select {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 13px; outline: none;
}
.toolbar-count { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--brand); }

.table-wrap { overflow-x: auto; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left;
  padding: 10px 14px;
  background: #fafbfd;
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #fafcff; }
table.data tbody tr.low-stock-row { background: #fffbf3; }
table.data tbody tr.low-stock-row:hover { background: #fff7e8; }
table.data td.num { font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.cell-actions { display: flex; gap: 4px; justify-content: flex-end; }
.cell-progress { min-width: 92px; }
.cell-progress .progress { margin-top: 5px; }
.cell-progress span { font-size: 11px; color: var(--muted-2); }

.due { white-space: nowrap; }
.due small { display: block; font-size: 11px; margin-top: 1px; }
.due.overdue small { color: #b42318; }
.due.soon small { color: #b54708; }

/* ---------------- 甘特图 ---------------- */

.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.legend .l-planned { background: #3b82f6; }
.legend .l-running { background: #f59e0b; }
.legend .l-done { background: #10b981; }
.legend .l-paused { background: #94a3b8; }

.gantt { overflow-x: auto; border-top: 1px solid var(--line-soft); }
.gantt-inner { min-width: 860px; }
.gantt-head { display: grid; grid-template-columns: 108px 1fr; background: #fafbfd; border-bottom: 1px solid var(--line); }
.gantt-head-label { padding: 8px 12px; font-size: 11px; color: var(--muted-2); display: flex; align-items: center; }
.gantt-days { display: grid; grid-template-columns: repeat(var(--gantt-days, 14), 1fr); }
.gantt-day { padding: 6px 2px 7px; text-align: center; font-size: 10.5px; color: var(--muted-2); border-left: 1px solid var(--line-soft); }
.gantt-day b { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; margin-top: 1px; }
.gantt-day.weekend { background: #f7f8fb; }
.gantt-day.today { background: #eff5ff; }
.gantt-day.today b { color: #1d4ed8; }
.gantt-row { display: grid; grid-template-columns: 108px 1fr; border-bottom: 1px solid var(--line-soft); }
.gantt-row:last-child { border-bottom: 0; }
.gantt-row-label {
  padding: 10px 12px; display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border-right: 1px solid var(--line-soft);
  background: #fff;
}
.gantt-row-label .dot { width: 6px; height: 6px; border-radius: 50%; background: #93c5fd; }
.gantt-track { position: relative; min-height: 56px; }
.gantt-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--gantt-days, 14), 1fr); }
.gantt-cell { border-left: 1px solid #f4f6fa; }
.gantt-cell.weekend { background: #fafbfd; }
.gantt-cell.today { background: #f3f7ff; }
.gantt-bar {
  position: absolute; height: 32px;
  border-radius: 7px;
  padding: 0 9px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 3px 8px -4px rgba(16, 24, 40, .45);
  transition: filter .15s, transform .15s;
  z-index: 2;
}
.gantt-bar:hover { filter: brightness(1.06); transform: translateY(-1px); z-index: 4; }
.gantt-bar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.gantt-bar small { opacity: .8; font-size: 10.5px; }
.gantt-bar.st-planned { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.gantt-bar.st-running { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.gantt-bar.st-done { background: linear-gradient(135deg, #10b981, #059669); }
.gantt-bar.st-paused { background: linear-gradient(135deg, #94a3b8, #64748b); }
.gantt-empty { padding: 30px; text-align: center; color: var(--muted-2); font-size: 13px; }

.unscheduled-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-soft);
}
.unscheduled-row:last-child { border-bottom: 0; }
.unscheduled-row .item-main { flex: 1; min-width: 0; }
.unscheduled-row .item-main b { font-size: 13px; display: block; }
.unscheduled-row .item-main span { font-size: 11.5px; color: var(--muted-2); }

/* ---------------- 生产报工 ---------------- */

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 18px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 11px;
}
.prod-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prod-card-top b { font-size: 14px; }
.prod-card-top .cell-sub { margin-top: 2px; }
.prod-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.prod-bar-row { display: flex; align-items: center; gap: 8px; }
.prod-bar-row .progress { flex: 1; }
.prod-bar-row span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prod-actions { display: flex; gap: 6px; }
.prod-qty { font-size: 13px; color: var(--muted); }
.prod-qty b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------------- 仓库 ---------------- */

.tabs { display: flex; gap: 4px; padding: 4px; background: #f2f4f8; border-radius: 10px; width: fit-content; }
.tab {
  border: 0; background: transparent; border-radius: 7px;
  padding: 7px 14px; font-size: 13px; color: var(--muted); cursor: pointer;
  white-space: nowrap;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); font-weight: 600; }

.stock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; padding: 16px; }
.stock-card { border: 1px solid var(--line-soft); border-radius: 11px; padding: 13px 14px; background: #fcfdff; }
.stock-card .code { font-size: 11px; color: var(--muted-2); letter-spacing: .4px; }
.stock-card .name { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.stock-card .qty { font-size: 24px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stock-card .qty small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.stock-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* ---------------- 基础资料 ---------------- */

.line-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.line-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; font-size: 13px;
}
.line-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }
.line-pill button { border: 0; background: none; color: var(--muted-2); cursor: pointer; padding: 0; display: flex; }
.line-pill button:hover { color: var(--red); }

.role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.role-badge i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.role-office i { background: #60a5fa; }
.role-factory i { background: #fbbf24; }
.role-warehouse i { background: #34d399; }
.role-admin i { background: #a78bfa; }

/* ---------------- 表单 / 弹窗 ---------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field > span em { color: var(--red); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #93b4f5;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.field .hint.warn { color: #b54708; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span2 { grid-column: span 2; }

.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 17, 31, .5);
  backdrop-filter: none;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .16s ease;
}
.modal {
  width: 100%; max-width: 540px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: popIn .18s ease;
  overflow: hidden;
}
.modal.wide { max-width: 780px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.modal-head h3 { font-size: 16px; }
.modal-head .muted { font-size: 12px; margin-top: 2px; }
.modal form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fcfdff;
  flex: none;
}
.modal-error-slot { margin-right: auto; }
.modal-error-slot:empty { display: none; }
.modal-foot .form-error { margin-right: auto; margin-left: 0; }
.form-error {
  padding: 8px 11px;
  border-radius: 8px;
  background: #fef3f2;
  border: 1px solid #fee4e2;
  color: #b42318;
  font-size: 13px;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.info-grid .full { grid-column: span 2; }
.info-item > span:first-child { display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 2px; }
.info-item b { font-size: 14px; font-weight: 600; }
.info-item p { font-size: 13.5px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-item { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: #fafbfd; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 12.5px; }
.mini-item .item-main { flex: 1; min-width: 0; }
.mini-item .item-main b { display: block; font-size: 12.5px; }
.mini-item .item-main span { font-size: 11px; color: var(--muted-2); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; animation: slideUp .2s ease; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .span2 { grid-column: span 1; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-grid .full { grid-column: span 1; }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------------- 提示 ---------------- */

.toast-root {
  position: fixed; z-index: 200; right: 20px; top: 84px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 8px;
  min-width: 220px; max-width: 340px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: toastIn .2s ease;
  line-height: 1.5;
}
.toast .ic { width: 15px; height: 15px; margin-top: 1px; color: #6ee7b7; }
.toast.err { background: #7a271a; }
.toast.err .ic { color: #fecaca; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .toast-root { left: 12px; right: 12px; top: 68px; }
  .toast { max-width: none; width: 100%; }
}

/* ---------------- 杂项 ---------------- */

.notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fffaeb;
  border: 1px solid #fef0c7;
  color: #93370d;
  font-size: 12.5px;
  line-height: 1.6;
}
.notice .ic { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.notice.blue { background: #eff6ff; border-color: #dbe8ff; color: #1e40af; }
.notice.green { background: #ecfdf3; border-color: #d1fadf; color: #027a48; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-strip .item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat-strip .item span { font-size: 11.5px; color: var(--muted); }
.stat-strip .item b { display: block; font-size: 21px; margin-top: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.split-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.split-head h3 { font-size: 14px; }
.split-head .legend { font-size: 11px; }

.foot-note { margin-top: 22px; font-size: 11.5px; color: var(--muted-2); display: flex; gap: 12px; flex-wrap: wrap; }
.foot-note code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.scroll-x { overflow-x: auto; }

@media (max-width: 720px) {
  .gantt-inner { min-width: 470px; }
}

/* ---------------- 商品图片 / 卡片 ---------------- */

.product-thumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 11px;
  overflow: hidden;
  background: #eef2f7;
  color: #98a2b3;
  font-size: 19px;
  font-weight: 700;
  flex: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-thumb[data-image] { cursor: zoom-in; }
.product-thumb[data-image]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(16, 24, 40, .45); }
.product-thumb.lg { width: 84px; height: 84px; border-radius: 13px; font-size: 23px; }
.product-thumb.xl { width: 180px; height: 180px; border-radius: 16px; font-size: 45px; }
.product-thumb .thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.product-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #eef2f7;
}

.product-cards { display: none; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.product-card-head { display: flex; align-items: flex-start; gap: 10px; }
.product-card-title { min-width: 0; flex: 1; }
.product-card-title .cell-main { font-size: 14px; }
.product-card-code { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); word-break: break-all; }
.product-card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.product-card-grid b { display: block; margin-top: 1px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.product-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft);
}
.product-card-foot .muted { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card .cell-actions { flex: none; }

.product-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-detail-title h3 { font-size: 19px; letter-spacing: -.3px; }
.product-detail-title p { color: var(--muted); font-size: 13px; margin: 3px 0 7px; }

.image-preview {
  min-height: 64px;
  margin-top: 8px;
  padding: 9px;
  border: 1px dashed #dfe4ec;
  border-radius: 9px;
  background: #fbfcfe;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.image-preview .preview-img { max-width: 180px; max-height: 120px; border-radius: 7px; object-fit: contain; }
.image-preview .preview-fallback { color: #b42318; font-size: 12px; }

@media (max-width: 1050px) {
  .product-table { display: none; }
  .product-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }
  .product-card .cell-main { font-size: 14px; }
}
@media (max-width: 720px) {
  .product-cards { grid-template-columns: 1fr; padding: 12px; }
  .product-detail-head { align-items: flex-start; }
  .product-thumb.xl { width: 120px; height: 120px; border-radius: 14px; font-size: 33px; }
}

.image-hover-preview {
  position: fixed;
  z-index: 3000;
  width: 300px;
  height: 300px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -18px rgba(16, 24, 40, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: previewIn .16s ease;
}
.image-hover-preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}
@keyframes previewIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
@media (hover: none) {
  .image-hover-preview { display: none; }
}

/* ---------------- v1.2.2 顶部导航 / 商品图片加大 ---------------- */

.app { display: flex; flex-direction: column; min-height: 100vh; }

.topnav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .brand-logo { width: 36px; height: 36px; border-radius: 10px; }
.brand-text strong { display: block; font-size: 16px; letter-spacing: -.2px; white-space: nowrap; }
.brand-text span { display: block; font-size: 10px; color: var(--muted-2); letter-spacing: .6px; }

.nav.nav-top {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.nav.nav-top::-webkit-scrollbar { display: none; }
.nav-top .nav-item {
  width: auto;
  flex: none;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #5b6b82;
  font-size: 14.5px;
  white-space: nowrap;
  background: transparent;
}
.nav-top .nav-item .ic { width: 15px; height: 15px; opacity: .8; }
.nav-top .nav-item:hover { background: #f2f5fa; color: #1d4ed8; }
.nav-top .nav-item.active {
  background: #eef4ff;
  border-color: #dbe8ff;
  color: #1d4ed8;
}
.nav-top .nav-item.active::before { display: none; }
.nav-top .nav-badge {
  min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px;
  margin-left: 4px; font-size: 10px;
}
.top-actions { margin-left: 0; flex: none; gap: 6px; }
.host-pill {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 20px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.view {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 22px 24px 54px;
  flex: 1;
}
.server-foot {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 商品图片：电脑 150，平板/手机 100，详情 240 */
.product-thumb { width: 150px; height: 150px; border-radius: 14px; font-size: 37px; }
.product-thumb.lg { width: 100px; height: 100px; border-radius: 13px; font-size: 27px; }
.product-thumb.xl { width: 240px; height: 240px; border-radius: 18px; font-size: 57px; }
.product-card-head { align-items: center; }
.product-card-grid { margin-top: 12px; }
.product-table table { min-width: 1200px; }

/* 悬停大图 800×800 */
.image-hover-preview {
  width: 800px;
  height: 800px;
  padding: 12px;
  border-radius: 18px;
}
.image-hover-preview img { max-width: 100%; max-height: 100%; }

@media (max-width: 1200px) {
  .brand-text span { display: none; }
  .host-pill { display: none; }
  .sync-pill { display: none; }
  .nav-top .nav-item { padding: 8px 9px; font-size: 13.5px; }
  .topnav-inner { gap: 10px; padding: 0 16px; }
}
@media (max-width: 900px) {
  .brand-text { display: none; }
  .topnav-inner { height: 58px; padding: 0 12px; }
  .top-actions { gap: 2px; }
  .view { padding: 16px 14px 46px; }
  .product-table { display: none; }
  .product-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .product-thumb.lg { width: 100px; height: 100px; }
}
@media (max-width: 720px) {
  .nav-top .nav-item { padding: 7px 8px; font-size: 13px; }
  .nav-top .nav-item .ic { width: 14px; height: 14px; }
  .product-cards { grid-template-columns: 1fr; padding: 12px; }
  .product-thumb.xl { width: 180px; height: 180px; border-radius: 16px; font-size: 43px; }
  .image-hover-preview { display: none; }
}

/* v1.2.2 商品搜索维度 */
.toolbar.toolbar-col {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.search-dims {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-dim {
  height: 29px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.search-dim:hover { border-color: #bfd3f7; color: #1d4ed8; }
.search-dim.active {
  background: #eef4ff;
  border-color: #bfd3f7;
  color: #1d4ed8;
  font-weight: 600;
}
.toolbar-row .search { flex: 0 1 320px; }
@media (max-width: 720px) {
  .toolbar-row .search { flex: 1 1 100%; min-width: 0; }
  .search-dim { height: 30px; padding: 0 11px; }
}

/* 1440 笔记本上隐藏数据源胶囊，保证 8 个导航全部可见；数据源在页面底部仍显示 */
@media (max-width: 1500px) {
  .host-pill { display: none; }
}
@media (max-width: 1350px) {
  .sync-pill { display: none; }
}
@media (min-width: 901px) {
  .nav-top .nav-item { font-size: 15px; padding: 8px 10px; }
}

/* 1440 及以下隐藏同步胶囊，让 8 个顶部导航完整显示；数据源/同步时间在页面底部 */
@media (max-width: 1550px) {
  .host-pill, .sync-pill { display: none; }
}

@media (max-width: 1200px) {
  .brand-text { display: none; }
  .nav-top .nav-item { padding: 8px 8px; }
}

/* 平板：顶部导航分两行，品牌/用户在上一行，8 个菜单在下一行完整显示 */
@media (max-width: 1500px) {
  .topnav-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 6px;
  }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .nav.nav-top {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 2px 0 0;
  }
  .nav-top .nav-item { padding: 8px 10px; }
}
@media (max-width: 620px) {
  .nav.nav-top {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

.local-db-warning {
  margin-bottom: 16px;
  background: #fff4ed;
  border-color: #ffd6ae;
  color: #93370d;
}
.host-pill.local { background: #fef3f2; color: #b42318; }

/* ---------------- v1.3.0 生产看板 / 商品物料关联 ---------------- */

.material-cell { display: flex; align-items: center; gap: 10px; }
.material-cell .product-thumb { width: 46px; height: 46px; border-radius: 9px; font-size: 15px; }

.material-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.material-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.material-option:has(input:checked) { border-color: #bfd3f7; background: #eef4ff; }
.material-option input { accent-color: #2563eb; }
.material-option .product-thumb { width: 32px; height: 32px; border-radius: 7px; font-size: 13px; }
.material-option span { display: flex; flex-direction: column; line-height: 1.3; }
.material-option b { font-weight: 600; color: var(--ink); }
.material-option small { color: var(--muted-2); font-size: 10.5px; }

.material-link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.material-link-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 5px 9px; background: #fbfcfe;
}
.material-link-chip .product-thumb { width: 38px; height: 38px; border-radius: 8px; font-size: 13px; }
.material-link-chip > span:last-child { display: flex; flex-direction: column; font-size: 12px; }
.material-link-chip small { color: var(--muted-2); font-size: 10.5px; }

.dash-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}
.dash-head h3 { font-size: 17px; letter-spacing: -.2px; }
.dash-head .muted { display: block; margin-top: 3px; font-size: 12px; }
.dash-count {
  flex: none;
  padding: 4px 9px;
  border-radius: 20px;
  background: #f2f4f7;
  color: #667085;
  font-size: 11.5px;
}
.dash-body { padding: 0 18px 18px; }
.dash-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 13px;
  margin-bottom: 13px;
  border-bottom: 1px dashed var(--line-soft);
}
.dash-search .search-dims { flex-wrap: wrap; }
.dash-search .search { flex: none; width: 340px; max-width: 100%; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dash-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.dash-card:hover { border-color: #d4e1f7; box-shadow: 0 12px 28px -20px rgba(16, 24, 40, .35); }
.dash-product { min-width: 0; }
.dash-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 40px;
  margin-bottom: 8px;
  color: var(--ink);
}
.dash-product-main { display: flex; align-items: flex-start; gap: 12px; }
.dash-product .product-thumb { width: 120px; height: 120px; border-radius: 12px; font-size: 31px; }
.dash-product-meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); }
.dash-product-meta b { font-size: 13.5px; color: var(--ink); }
.dash-product-meta small { word-break: break-word; }
.dash-materials {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-left: 22px;
  min-width: 0;
}
.dash-materials::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #dbe4f0;
}
.material-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.material-node::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #dbe4f0;
}
.material-node .product-thumb { width: 40px; height: 40px; border-radius: 9px; font-size: 14px; }
.material-node span:last-child {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-no-material { font-size: 11.5px; color: var(--muted-2); }
.dash-qty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.dash-qty input {
  width: 92px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.dash-qty input:focus { border-color: #93b4f5; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.dash-qty-tip { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }

.completed-trash {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 0;
  background: #101828;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 38px -12px rgba(16, 24, 40, .6);
  transition: transform .18s, background .18s;
}
.completed-trash:hover { transform: translateY(-3px); background: #1d2939; }
.completed-trash .ic { width: 23px; height: 23px; }
.trash-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 20px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
}
.trash-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
}

.completed-summary {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}
.completed-list { display: grid; gap: 9px; }
.completed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.completed-item .product-thumb { width: 64px; height: 64px; border-radius: 10px; font-size: 19px; }
.completed-main { min-width: 0; flex: 1; }
.completed-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.completed-tags b { color: var(--ink); font-weight: 600; }

@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dash-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .dash-product .product-thumb { width: 96px; height: 96px; }
  .dash-materials { flex-direction: row; flex-wrap: wrap; padding-left: 0; justify-content: flex-start; }
  .dash-materials::before, .material-node::before { display: none; }
  .material-node { flex: 0 1 auto; }
  .dash-qty { flex-wrap: wrap; }
  .dash-qty-tip { flex-basis: 100%; margin-left: 0; }
  .completed-trash { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .completed-item { align-items: flex-start; }
  .completed-item .product-thumb { width: 52px; height: 52px; }
}

/* ---------------- v1.4.0 左对齐 / 物料分类 / 时效 / 仓库 ---------------- */

.topnav-inner { max-width: 1920px; margin: 0; }
.view { max-width: 1920px; margin: 0; }

.material-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}
.material-cat {
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.material-cat span {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #eef2f7;
  color: var(--muted-2);
  font-size: 10.5px;
}
.material-cat.active { background: #eef4ff; border-color: #bfd3f7; color: #1d4ed8; font-weight: 600; }
.material-cat.active span { background: #dbe8ff; color: #1d4ed8; }
.material-stock-edit { display: flex; align-items: center; gap: 5px; }
.material-stock-edit input {
  width: 94px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.material-stock-edit span { font-size: 11px; color: var(--muted); }

.dash-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-2);
}
.ship-target.danger { color: #b42318; font-weight: 600; }
.ship-target.muted { color: #98a2b3; }
.ship-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}
.ship-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  text-align: center;
}
.ship-option input { display: none; }
.ship-option span { font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.ship-option.active { background: #eef4ff; border-color: #bfd3f7; }
.ship-option.active span { color: #1d4ed8; font-weight: 600; }
.ship-option.danger span { color: #b42318; font-weight: 600; }
.ship-option.muted span { color: #98a2b3; }
.ship-option.active.danger { background: #fef3f2; border-color: #fecdca; }
.ship-option.active.muted { background: #f2f4f7; border-color: #e4e7ec; }

.stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stock-card { padding: 14px; }
.stock-product { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.stock-product .product-thumb { width: 58px; height: 58px; border-radius: 10px; font-size: 18px; }
.stock-product .code { font-size: 11px; color: var(--muted-2); }
.stock-product .name { font-size: 14px; font-weight: 700; margin: 2px 0; }
.stock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stock-field { display: flex; flex-direction: column; gap: 4px; }
.stock-field > span { font-size: 11px; color: var(--muted); }
.stock-field b { font-size: 14px; }
.stock-input-wrap { display: flex; align-items: center; gap: 5px; }
.stock-input-wrap b { font-size: 12px; color: var(--muted); }
.stock-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.stock-card .foot { margin-top: 12px; }

@media (max-width: 1200px) {
  .stock-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ship-options { grid-template-columns: 1fr 1fr; }
  .stock-fields { grid-template-columns: 1fr; }
}

/* ---------------- v1.4.1 全宽卡片 / 大面板 ---------------- */

.topnav-inner, .view { max-width: none; width: 100%; margin: 0; }

.modal.square {
  width: min(900px, 92vw);
  height: min(900px, 90vh);
  max-width: 900px;
  max-height: 90vh;
}
.modal.square .modal-body { padding: 24px 26px; }
.modal.square .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.modal.square .form-grid .span2 { grid-column: span 2; }
@media (max-width: 560px) {
  .modal.square { width: 100%; height: 92vh; max-width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .modal.square .form-grid { grid-template-columns: 1fr; }
  .modal.square .form-grid .span2 { grid-column: span 1; }
}

.dash-grid { grid-template-columns: 1fr; }
.dash-card { grid-template-columns: minmax(0, 1fr) 300px; position: relative; }
.dash-title { padding-right: 150px; }
.dash-panel-label {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10.5px;
  letter-spacing: .2px;
  z-index: 2;
}
.dash-info { font-size: 12px; }
.ship-target { font-size: 12px; }
.ship-options { gap: 8px; padding-top: 13px; }
.ship-option {
  min-height: 48px;
  justify-content: flex-start;
  gap: 7px;
  padding: 7px 11px;
  background: #fff;
}
.ship-option input { display: none; }
.ship-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none; color: #667085; }
.ship-icon .ic { width: 16px; height: 16px; }
.ship-option span:last-child { font-size: 13px; line-height: 1.4; color: #101828; font-weight: 600; }
.ship-option.active { background: #eef4ff; border-color: #9fc0f5; }
.ship-option.active span:last-child { color: #1d4ed8; }
.ship-option.danger { border-color: #fecdca; background: #fffbfa; }
.ship-option.danger span:last-child, .ship-option.danger .ship-icon { color: #d92d20; font-weight: 700; }
.ship-option.active.danger { background: #fef3f2; border-color: #f97066; }
.ship-option.muted span:last-child, .ship-option.muted .ship-icon { color: #98a2b3; }
@media (max-width: 1200px) {
  .dash-card { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 720px) {
  .dash-card { grid-template-columns: 1fr; }
  .dash-title { padding-right: 0; padding-top: 18px; }
  .dash-panel-label { top: 8px; right: 10px; }
  .ship-option { min-height: 52px; }
  .ship-option span:last-child { font-size: 12.5px; }
}

.entity-list { display: flex; flex-direction: column; gap: 14px; }
.entity-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.entity-card:hover { border-color: #d4e1f7; box-shadow: 0 16px 36px -28px rgba(16, 24, 40, .35); }
.entity-card.low-stock-card { border-color: #fedf89; background: #fffdf8; }
.entity-media { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.entity-media .product-thumb { width: 220px; height: 220px; border-radius: 14px; font-size: 47px; }
.entity-media-code { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.entity-content { min-width: 0; }
.entity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.entity-head h3 { font-size: 19px; letter-spacing: -.3px; line-height: 1.35; }
.entity-head p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.entity-code-line { margin-top: 5px; font-size: 11.5px; color: var(--muted-2); }
.entity-badges { display: flex; gap: 5px; flex: none; }
.entity-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafcff;
  border: 1px solid var(--line-soft);
}
.entity-field { min-width: 0; }
.entity-field span { display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 2px; }
.entity-field b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.entity-field.full { grid-column: 1 / -1; }
.entity-url { font-size: 11.5px; font-weight: 400; color: var(--muted); word-break: break-all; }
.entity-section { margin-top: 11px; }
.entity-label { display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 5px; }
.entity-section .material-link-chip { padding: 4px 7px; }
.entity-section .material-link-chip .product-thumb { width: 32px; height: 32px; }
.entity-notes p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.entity-stock { display: flex; align-items: center; gap: 9px; }
.entity-stock .material-stock-input { width: 120px; height: 34px; font-size: 15px; }
.entity-stock b { font-size: 15px; }
.entity-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line-soft); }

@media (max-width: 1200px) {
  .entity-card { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
  .entity-media .product-thumb { width: 170px; height: 170px; }
}
@media (max-width: 720px) {
  .entity-card { grid-template-columns: 1fr; padding: 13px; gap: 12px; }
  .entity-media { flex-direction: row; align-items: center; gap: 10px; }
  .entity-media .product-thumb { width: 96px; height: 96px; border-radius: 11px; font-size: 25px; }
  .entity-head h3 { font-size: 16px; }
  .entity-fields { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .entity-badges { flex-direction: column; align-items: flex-end; }
  .entity-actions { justify-content: flex-start; flex-wrap: wrap; }
}

.dash-panel-label { font-size: 11.5px; color: #475467; font-weight: 600; }
.ship-option span:last-child { font-size: 14px; }
.ship-icon { width: 20px; height: 20px; }
.ship-icon .ic { width: 18px; height: 18px; }
.ship-target { font-size: 12.5px; font-weight: 600; }
@media (max-width: 1024px) {
  .ship-option span:last-child { font-size: 13px; }
}

/* 时效文字再放大（桌面） */
.dash-panel-label { font-size: 12px; }
.ship-target { font-size: 13.5px; }
.ship-option span:last-child { font-size: 15px; }
@media (max-width: 1200px) {
  .ship-option span:last-child { font-size: 13.5px; }
}
@media (max-width: 720px) {
  .ship-option span:last-child { font-size: 13px; }
}

/* v1.4.2 独立三大模块 / 面板收窄 */
.dash-card { max-width: 1280px; }
.dash-section.standalone { max-width: 100%; }
@media (max-width: 1500px) {
  .brand-text { display: none; }
  .nav-top .nav-item { font-size: 14px; padding: 8px 8px; }
}

.dash-section.standalone { max-width: 1280px; }

/* v1.4.3 三大模块全宽 / 面板更紧凑 / 标签更清晰 */
.dash-section.standalone,
.dash-card { max-width: none; width: 100%; }
.dash-card {
  padding: 12px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 280px;
}
.dash-title {
  min-height: 0;
  margin-bottom: 5px;
  padding-right: 190px;
  font-size: 14.5px;
}
.dash-panel-label {
  top: 10px;
  right: 12px;
  padding: 4px 9px;
  font-size: 15px;
  font-weight: 700;
  color: #344054;
}
.dash-product .product-thumb { width: 96px; height: 96px; border-radius: 10px; font-size: 27px; }
.dash-product-main { gap: 10px; }
.dash-info { margin-top: 5px; gap: 3px 10px; font-size: 11.5px; }
.ship-target { font-size: 12.5px; }
.dash-materials { gap: 6px; padding-left: 18px; }
.dash-materials::before { width: 14px; }
.material-node::before { left: -18px; width: 18px; }
.material-node .product-thumb { width: 36px; height: 36px; }
.dash-qty { padding-top: 8px; }
.dash-qty input { height: 30px; }
.ship-options { gap: 6px; padding-top: 9px; }
.ship-option { min-height: 40px; padding: 5px 9px; gap: 6px; }
.ship-option span:last-child { font-size: 15px; color: #101828; font-weight: 600; }
.ship-option.danger span:last-child,
.ship-option.danger .ship-icon { color: #d92d20; font-weight: 700; }
@media (max-width: 1200px) {
  .dash-card { grid-template-columns: minmax(0, 1fr) 250px; }
}
@media (max-width: 720px) {
  .dash-card { grid-template-columns: 1fr; }
  .dash-title { padding-right: 0; padding-top: 20px; }
  .dash-panel-label { font-size: 13px; }
  .dash-product .product-thumb { width: 84px; height: 84px; }
  .ship-option { min-height: 44px; }
  .ship-option span:last-child { font-size: 13.5px; }
}

.ship-target { color: #101828; }
.ship-target.danger { color: #d92d20; }
.ship-target.muted { color: #98a2b3; }
.completed-item { position: relative; padding-right: 12px; }
.completed-panel-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #344054;
}
.completed-main { padding-top: 3px; }

/* 选中状态只改背景，文字默认仍为黑色；临近/逾期才红 */
.ship-option.active span:last-child { color: #101828; }
.ship-option.active.danger span:last-child { color: #d92d20; }

.order-ship-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 5px;
}
.order-ship-options .ship-option { min-height: 44px; justify-content: flex-start; }
.order-delivery-date {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #f0f6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}
.hidden { display: none !important; }
@media (max-width: 720px) {
  .order-ship-options { grid-template-columns: 1fr; }
}

/* ---------------- v1.4.5 订单卡片 / 产品选择 / 单号前缀 ---------------- */

.order-product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.order-product-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.order-product-option:has(input:checked) { border-color: #9fc0f5; background: #eef4ff; }
.order-product-option input { accent-color: #2563eb; flex: none; }
.order-product-option .product-thumb { width: 54px; height: 54px; border-radius: 9px; font-size: 17px; }
.order-product-name { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.order-product-name b { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-product-name small { font-size: 11px; color: var(--muted-2); }

.order-prefix-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.order-prefix-option {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.order-prefix-option:has(input:checked) { border-color: #9fc0f5; background: #eef4ff; color: #1d4ed8; }
.order-prefix-option input { display: none; }

.order-card-list { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.order-card-full {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 13px 15px;
}
.order-card-full:hover { border-color: #d4e1f7; box-shadow: 0 14px 30px -26px rgba(16, 24, 40, .35); }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-number { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.order-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.order-status-group { display: flex; align-items: center; gap: 7px; flex: none; }
.order-work-status {
  height: 31px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.order-main { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; margin-top: 11px; }
.order-product { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.order-product .product-thumb { width: 82px; height: 82px; border-radius: 10px; font-size: 23px; }
.order-product > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-product b { font-size: 14px; line-height: 1.4; }
.order-product span { font-size: 11.5px; color: var(--muted); }
.order-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fafcff;
  border: 1px solid var(--line-soft);
}
.order-field span { display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 2px; }
.order-field b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.order-field.full { grid-column: 1 / -1; }
.order-ship-note { font-size: 11px; color: var(--muted-2); font-weight: 400; }
.order-ship-note.danger { color: #d92d20; }
.order-ship-note.muted { color: #98a2b3; }
.order-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-soft); }

@media (max-width: 1200px) {
  .order-main { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .order-main { grid-template-columns: 1fr; gap: 10px; }
  .order-card-list { padding: 10px; }
  .order-top { flex-direction: column; }
  .order-status-group { width: 100%; justify-content: space-between; }
  .order-product .product-thumb { width: 64px; height: 64px; }
  .order-fields { grid-template-columns: 1fr 1fr; }
  .order-actions { justify-content: flex-start; flex-wrap: wrap; }
}

.order-product-option input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  flex: none;
}

/* ---------------- v1.5.0 个人项目 / 入库管理 ---------------- */

.project-type-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.project-type {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.project-type.active { background: #eef4ff; border-color: #bfd3f7; color: #1d4ed8; font-weight: 600; }
.project-list { display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.project-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.project-type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f2f4f7;
  color: #475467;
  font-size: 11px;
  margin-bottom: 5px;
}
.project-card h3 { font-size: 15px; line-height: 1.4; }
.project-meta { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.project-notes { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.project-card-side { display: flex; align-items: center; gap: 6px; flex: none; }
.project-status-select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 12px; }
@media (max-width: 720px) {
  .project-card { flex-direction: column; }
  .project-card-side { width: 100%; flex-wrap: wrap; }
}

.inbound-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.inbound-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.inbound-type-btn:hover { border-color: #bfd3f7; background: #f8fbff; }
.inbound-type-btn .ic { width: 24px; height: 24px; color: #2563eb; }
.inbound-type-btn b { font-size: 21px; letter-spacing: -.3px; }
.inbound-type-btn span { font-size: 13px; color: var(--muted); }
.inbound-type-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .inbound-type-grid { grid-template-columns: 1fr; }
  .inbound-type-btn { min-height: 82px; }
  .inbound-type-btn b { font-size: 19px; }
}

.nav-item { text-decoration: none; }
.order-panel-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.order-panel-name { font-size: 15px; font-weight: 700; color: #344054; }
.order-status-control { display: flex; align-items: center; gap: 6px; }
.order-status-control > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.order-status-select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.flow-btn { margin-left: 8px; }
.order-flow-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 11.5px;
  color: var(--muted);
}
.flow-badge {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.flow-waiting { background: #f2f4f7; color: #475467; }
.flow-producing { background: #fff4e5; color: #b54708; }
.flow-completed { background: #ecfdf3; color: #027a48; }

.order-product-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.order-product-field {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.order-product-field.active { background: #eef4ff; border-color: #bfd3f7; color: #1d4ed8; font-weight: 600; }
.order-product-search input {
  flex: 1;
  min-width: 0;
  height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
  outline: none;
}

/* 删除模块介绍段落，节省空间 */
.page-head p { display: none; }
.page-head { margin-bottom: 12px; }

.order-flow-line { font-size: 11.5px; }
.flow-badge { font-size: 11.5px; }

/* 完整移除顶部导航和搜索框之间的模块标题/介绍，仅保留右侧操作按钮 */
.page-head { justify-content: flex-end; margin: 0 0 12px; }
.page-head > div:first-child { display: none; }
.page-head:not(:has(.head-actions .btn)) { display: none; }

.filter-label { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.recycle-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #667085;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

/* 订单回收站 */
.recycle-group { margin-bottom: 16px; }
.recycle-group h3 { font-size: 14px; margin-bottom: 7px; }
.recycle-group h3 span { font-size: 10px; color: var(--muted-2); margin-left: 4px; }
.recycle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.recycle-main { flex: 1; min-width: 0; }
.recycle-order { font-size: 13px; font-weight: 700; }
.recycle-sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.recycle-meta { margin-top: 3px; font-size: 10px; color: var(--muted-2); }
.recycle-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.recycle-days { font-size: 10.5px; color: var(--muted); }
.recycle-days.urgent { color: #d92d20; font-weight: 700; }
.completed-actions { margin-top: 8px; display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 720px) {
  .recycle-item { flex-direction: column; align-items: flex-start; }
  .recycle-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}

.inbound-order-list { display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.inbound-order-card { margin: 0; }
.inbound-order-card .order-main { grid-template-columns: 210px minmax(0, 1fr); }

.dash-section.standalone .dash-body { padding-top: 16px; }

.sales-order-list { display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.sales-order-card {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.sales-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sales-order-date { font-size: 10.5px; color: var(--muted-2); }
.sales-order-main { display: flex; gap: 13px; margin-top: 10px; align-items: flex-start; }
.sales-order-main .product-thumb { width: 82px; height: 82px; border-radius: 10px; font-size: 22px; }
.sales-order-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; color: var(--muted); }
.sales-order-info b { font-size: 13px; color: var(--ink); }
.sales-order-info span { overflow-wrap: anywhere; }
.page-head > div:not(.head-actions) { display: none; }

.page-head > .head-actions { display: flex; }

.page-head > div.head-actions { display: flex !important; }

.project-new-btn { margin-left: auto; }

.panel-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.linked-product-list { display: flex; flex-wrap: wrap; gap: 8px; }
.linked-product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
}
.linked-product .product-thumb { width: 48px; height: 48px; border-radius: 8px; font-size: 14px; }
.linked-product > div { display: flex; flex-direction: column; gap: 1px; }
.linked-product b { font-size: 11.5px; }
.linked-product span, .linked-product small { font-size: 10px; color: var(--muted-2); }

.customer-list { display: flex; flex-direction: column; gap: 10px; padding: 13px; }
.customer-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 13px 15px; }
.customer-head { display: flex; justify-content: space-between; gap: 12px; }
.customer-head h3 { font-size: 15px; }
.customer-head p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.customer-badges { display: flex; gap: 5px; flex: none; }
.customer-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fafcff;
  border: 1px solid var(--line-soft);
}
.customer-card .order-actions { justify-content: flex-end; }
@media (max-width: 720px) {
  .customer-head { flex-direction: column; }
  .customer-badges { justify-content: flex-start; }
}

.profit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profit-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 15px; }
.profit-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.profit-card-head h3 { font-size: 14px; }
.profit-card-head p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.profit-card-head > b { font-size: 18px; color: var(--ink); white-space: nowrap; }
.profit-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.profit-actions .btn { position: relative; }
.profit-actions input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 1200px) {
  .profit-grid { grid-template-columns: 1fr; }
}

.data-filter { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.data-range {
  height: 32px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 11.5px; cursor: pointer;
}
.data-range.active { background: #eef4ff; border-color: #bfd3f7; color: #1d4ed8; font-weight: 600; }
.data-filter input[type=date] { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; }
.data-period { font-size: 10.5px; color: var(--muted-2); margin-left: 5px; }
.data-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.data-kpi { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.data-kpi span { display: block; font-size: 10.5px; color: var(--muted); }
.data-kpi b { display: block; margin-top: 5px; font-size: 25px; letter-spacing: -.5px; }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.data-panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.data-panel-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.data-panel-head h3 { font-size: 13px; }
.data-panel-head .muted { font-size: 10px; color: var(--muted); }
.data-panel:first-child { grid-column: 1 / -1; }
@media (max-width: 1000px) { .data-grid { grid-template-columns: 1fr; } .data-kpis { grid-template-columns: 1fr; } }

.product-card-full .entity-media .product-thumb,
.material-card-full .entity-media .product-thumb { width: 146px; height: 146px; }
.product-card-full,
.material-card-full { padding: 12px; }

.order-selected-products { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.order-selected-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbff;
}
.order-selected-row > span { flex: 1; min-width: 0; font-size: 11px; }
.order-selected-row small { display: block; font-size: 9.5px; color: var(--muted-2); }
.order-selected-row input { width: 88px; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.order-product-option input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; flex: none; accent-color: #2563eb; }

.project-card { position: relative; }
.project-panel-label {
  position: absolute; top: 9px; right: 12px;
  padding: 3px 8px; border-radius: 5px; background: #eef4ff;
  color: #1d4ed8; font-size: 10px; font-weight: 600;
}
.project-extra { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; font-size: 10.5px; color: var(--muted); }

.orders-toolbar .search { flex: 0 1 640px; min-width: 640px; }
@media (max-width: 900px) { .orders-toolbar .search { min-width: 0; flex: 1 1 100%; } }

.process-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 13px; }
.process-card { display: flex; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: #fff; }
.process-media { width: 76px; height: 76px; flex: none; border-radius: 9px; overflow: hidden; background: #f4f7fb; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-media .ic { width: 26px; height: 26px; }
.process-body { flex: 1; min-width: 0; }
.process-head { display: flex; justify-content: space-between; gap: 8px; }
.process-head h3 { font-size: 13px; }
.process-head b { font-size: 13px; white-space: nowrap; }
.process-head small { font-size: 9px; color: var(--muted); }
.process-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.process-notes { margin-top: 4px; font-size: 10px; color: var(--muted); }
.process-card .order-actions { margin-top: 7px; justify-content: flex-end; }
.process-picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow: auto; }
.process-option { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 10.5px; cursor: pointer; }
.process-option img, .process-icon { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.process-option input { width: 14px; height: 14px; }
.process-option span { display: flex; flex-direction: column; }
.process-option small { font-size: 9px; color: var(--muted); }
.process-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.process-chip { padding: 3px 7px; border-radius: 5px; background: #eef4ff; color: #1d4ed8; font-size: 9.5px; }

.data-notes { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 14px 14px; font-size: 10px; color: var(--muted-2); }

.system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 13px; }
.system-card { border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #fbfcfe; }
.system-card b { font-size: 12px; }
.system-card p { margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.55; }

.sales-order-head-right { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.sales-order-card .order-actions { flex-wrap: wrap; }

.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .16);
  z-index: 80;
}
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: block; }
.nav-sub-item { display: block; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.nav-sub-item:hover, .nav-sub-item.active { background: #eef4ff; color: #1d4ed8; font-weight: 600; }
.nav-group > .nav-item { text-decoration: none; }

.inline-order-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px 10px; width: 100%; }
.inline-field { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; color: var(--muted); }
.inline-field.full { grid-column: 1 / -1; }
.inline-field input, .inline-field select, .inline-field textarea { height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; background: #fff; }
.inline-field textarea { height: 58px; padding: 6px 7px; resize: vertical; }
.order-card-full:has(.inline-order-form) { border-color: #93c5fd; box-shadow: 0 0 0 2px #dbeafe; }

.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; padding: 13px; }
.equipment-card { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.equipment-media { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; flex: none; }
.equipment-media img { width: 100%; height: 100%; object-fit: cover; }
.equipment-body { flex: 1; min-width: 0; }
.equipment-head { display: flex; justify-content: space-between; gap: 6px; }
.equipment-head h3 { font-size: 12px; }
.equipment-body p { margin-top: 3px; font-size: 10px; color: var(--muted); }
.equipment-qty { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 10px; color: var(--muted); }
.equipment-qty b { color: var(--ink); }
.equipment-qty .btn { height: 24px; padding: 0 7px; }

.order-profit-card { border: 1px solid #bfdbfe; border-radius: 13px; padding: 14px 16px; background: linear-gradient(120deg,#f8fcff,#eef6ff); margin-bottom: 15px; }
.order-profit-head { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: #2563eb; font-weight: 700; }
.order-profit-head small { color: var(--muted); font-weight: 400; }
.order-profit-main { display: flex; gap: 13px; align-items: center; margin-top: 10px; }
.order-profit-main .product-thumb { width: 78px; height: 78px; }
.order-profit-info h3 { font-size: 15px; }
.order-profit-info p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.order-profit-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.order-profit-tags span { padding: 3px 8px; border-radius: 5px; background: #fff; border: 1px solid #dbeafe; font-size: 10px; }
.order-profit-tags .gain { color: #027a48; font-weight: 700; }
.order-profit-tags .loss { color: #b42318; font-weight: 700; }

.nav.nav-top { overflow: visible; }
@media (max-width: 620px) { .nav.nav-top { overflow-x: auto; } }

.modal.confirm { max-width: 480px; height: auto; min-height: 0; }
.modal.confirm .modal-body { padding: 18px 20px; }
.card-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.line-head-actions { margin-left: auto; display: flex; gap: 7px; }

.salary-card { margin-top: 14px; }
.salary-table-wrap { overflow: auto; max-height: 520px; }
.salary-table { min-width: 2800px; font-size: 10px; }
.salary-table th, .salary-table td { white-space: nowrap; padding: 7px 8px; }
.salary-table thead tr:first-child th { background: #eef4ff; color: #1d4ed8; text-align: center; }
.salary-table .sticky-col { position: sticky; left: 0; z-index: 2; background: #fff; }
.salary-table thead .sticky-col { z-index: 3; background: #eef4ff; }
.salary-section-title { margin: 18px 0 9px; padding-bottom: 5px; border-bottom: 1px solid var(--line-soft); color: #1d4ed8; font-size: 12px; }
.salary-section-title:first-child { margin-top: 0; }

.salary-import-btn { position: relative; overflow: hidden; }
.salary-import-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.team-table-wrap { max-height: 520px; overflow: auto; }
.departed-toggle-row td { text-align: center; padding: 10px; background: #fafcff; }
.departed-toggle-row .btn { margin: 0 auto; }

.salary-table .sensitive-col { display: none; }
.salary-table.show-sensitive .sensitive-col { display: table-cell; }
.payroll-card { margin-top: 14px; }
.payroll-summary { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 0 14px 12px; }
.payroll-summary > div { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: var(--muted); }
.payroll-summary b { font-size: 16px; color: var(--ink); }
.payroll-formula { margin-left: auto; color: #1d4ed8 !important; font-size: 10px !important; }
.payroll-table-wrap { max-height: 540px; overflow: auto; }
.payroll-table { min-width: 2300px; font-size: 10px; }
.payroll-table th, .payroll-table td { white-space: nowrap; padding: 7px 8px; }
.text-red { color: #b42318; }

.rent-card { margin-top: 14px; }
.rent-table-wrap { max-height: 420px; overflow: auto; }
.rent-table { min-width: 1100px; }

.salary-calc-summary { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #f8fbff; border: 1px solid #dbeafe; font-size: 10.5px; color: var(--muted); }
.salary-calc-summary b { margin-left: 4px; color: var(--ink); font-size: 13px; }

.team-table-wrap thead th,
.salary-table-wrap thead th,
.payroll-table-wrap thead th,
.rent-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f8fafc;
  box-shadow: 0 1px 0 var(--line);
}
.salary-table-wrap thead .sticky-col { z-index: 14; background: #eef4ff; }
.salary-table-wrap thead th.sensitive-col { background: #f8fafc; }

.salary-table .profile-col { display: none; }
.salary-table.show-profile .profile-col { display: table-cell; }
.salary-table-wrap { max-height: 1040px; }
.salary-table { min-width: 0; width: 100%; table-layout: fixed; font-size: 8px; }
.salary-table th, .salary-table td { padding: 5px 3px; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.salary-table .sticky-col { width: 72px; min-width: 72px; }

.salary-table-wrap { width: 100%; }
.salary-table { width: 100%; min-width: 100%; table-layout: fixed; font-size: 7.5px; }
.salary-table th { font-size: 7px; white-space: normal; line-height: 1.2; }
.salary-table td { padding: 4px 2px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.salary-table td.num { white-space: nowrap; font-size: 7px; overflow-wrap: normal; }
.salary-table.show-any { width: max-content; min-width: 2800px; table-layout: auto; }
.salary-table.show-any td.num { white-space: nowrap; }

/* 员工薪资标准配置表：横向滚动 + 可读列宽 */
.salary-table-wrap { width: 100%; overflow: auto; max-height: 1040px; }
.salary-table {
  width: max-content;
  min-width: 3200px;
  table-layout: auto;
  font-size: 11px;
}
.salary-table th {
  padding: 9px 9px;
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.salary-table td {
  padding: 9px 9px;
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
}
.salary-table td.num {
  font-size: 11px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.salary-table .sticky-col { width: 90px; min-width: 90px; }
.salary-table.show-any { width: max-content; min-width: 3600px; table-layout: auto; }

.salary-card .card-head { flex-wrap: wrap; }
.salary-card .card-head-actions { flex: 1 1 auto; max-width: 100%; justify-content: flex-end; }
.salary-table-toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 10px 14px 0; }
.salary-table-toolbar .muted { font-size: 10px; }

.salary-card-head { align-items: center; }
.salary-title-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.salary-title-line h3 { margin-right: 3px; white-space: nowrap; }
.salary-card-head .card-head-actions { flex: 1 1 auto; justify-content: flex-end; }

.inline-user-row td { background: #f8fbff; padding: 12px !important; }
.inline-user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px 12px; }
.inline-user-form label { display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--muted); }
.inline-user-form input, .inline-user-form select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.inline-user-actions { display: flex; align-items: flex-end; gap: 7px; }

.team-search { width: 420px; max-width: 100%; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: #fff; }
.team-search:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px #eff6ff; }
.btn.ghost.danger { color: #b42318; border-color: #fecdca; background: #fff7f6; }
.team-table .cell-actions { min-width: 220px; }
.empty-inline { padding: 18px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .login-panel { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 18px; padding: 22px; }
  .login-copy { margin-top: auto; }
  .login-copy h1 { font-size: 40px; }
}
@media (max-width: 560px) {
  .login-copy h1 { font-size: 30px; letter-spacing: 1px; }
  .login-panel { padding: 18px 16px; border-radius: 14px; }
}

.paytype-grid { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 5px 12px; padding: 6px 0; }
.paytype-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: 11px; color: var(--ink); cursor: pointer; }
.paytype-option input { width: 14px; height: 14px; margin: 0; }
.inline-user-form .field.span2 { grid-column: 1 / -1; }

.ratio-edit { display: flex; gap: 10px; align-items: center; }
.ratio-edit label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); flex: 1; }
.ratio-edit input { flex: 1; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }

.payfield-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 5px 12px; padding: 6px 0; }
.payfield-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-size: 11px; color: var(--ink); cursor: pointer; }
.payfield-option input { width: 14px; height: 14px; margin: 0; }
.payfield-option input:disabled { cursor: not-allowed; }

.paytype-row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.paytype-row > label { flex: 0 0 auto; min-width: 150px; }
.paytype-row > .btn { margin-bottom: 1px; }
.payfield-panel { padding: 8px 10px; border: 1px solid #e4ebf5; border-radius: 8px; background: #f8fbff; }
.payfield-title { font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.payfield-grid { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)); gap: 2px 10px; padding: 2px 0; }
.payfield-option { display: flex; align-items: center; gap: 4px; min-height: 22px; font-size: 10.5px; color: var(--ink); width: max-content; max-width: 100%; }
.payfield-option input { width: 13px; height: 13px; margin: 0; flex: none; cursor: pointer; }
.payfield-option label { cursor: pointer; font-size: 10.5px; color: inherit; line-height: 1.25; margin: 0; display: inline; }
.payfield-option.is-disabled { color: #98a2b3; opacity: .75; }
.payfield-option.is-disabled input { cursor: not-allowed; }
.payfield-option.is-disabled label { cursor: not-allowed; }
.inline-user-form .payfield-option label { display: inline; }
.inline-user-form .paytype-row { grid-column: 1 / -1; }
.inline-user-form .payfield-panel { grid-column: 1 / -1; }
.payfield-option { cursor: default; }

.payfields-cell { max-width: 240px; white-space: normal !important; font-size: 10px; line-height: 1.3; color: #475467; }

.departed-divider td { padding: 7px 10px !important; text-align: left !important; font-size: 10.5px; color: #b42318; font-weight: 600; background: #fff7f6; border-top: 2px solid #fecdca !important; border-bottom: 1px solid #fecdca !important; }

.salary-table th,
.salary-table td,
.salary-table td.num,
.salary-table td.sticky-col {
  text-align: center !important;
  vertical-align: middle !important;
}
.salary-table .sticky-col .cell-main,
.salary-table .sticky-col .cell-sub { text-align: center; }
.salary-table th { line-height: 1.35; }

.modal.full { width: 100vw !important; max-width: 100vw !important; height: 100vh !important; max-height: 100vh !important; border-radius: 0 !important; }
.modal.full .modal-body { overflow: auto; max-height: calc(100vh - 150px); }
.batch-table-wrap { overflow: auto; max-height: calc(100vh - 430px); border: 1px solid var(--line); border-radius: 10px; }
.batch-table { min-width: 4300px; font-size: 10.5px; }
.batch-table th, .batch-table td { padding: 5px 5px; white-space: nowrap; text-align: center; }
.batch-table td:nth-child(2) { min-width: 80px; }
.batch-table input { width: 100%; min-width: 90px; height: 28px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 10.5px; }
.check-col { width: 34px; text-align: center; }
.team-filter { max-width: 130px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 10.5px; padding: 0 3px; color: var(--ink); }

.batch-salary-names { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: #f8fbff; border: 1px solid #e4ebf5; font-size: 11px; color: var(--muted); }
.batch-salary-fields { max-height: calc(100vh - 230px); overflow: auto; padding-right: 4px; }
.th-sort { border: 0; background: transparent; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; line-height: 1.3; }
.th-sort.active { color: #1d4ed8; font-weight: 700; }
.salary-filter { display: block; margin: 3px auto 0; max-width: 120px; height: 22px; font-size: 9.5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); }

.batch-table thead th { position: sticky; top: 0; z-index: 6; background: #f8fafc; box-shadow: 0 1px 0 var(--line); }

.attendance-paste-card { min-height: 700px; }
.attendance-paste-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 14px; padding: 14px; min-height: 620px; }
.attendance-paste-left, .attendance-paste-right { display: flex; flex-direction: column; min-height: 0; }
.attendance-textarea { width: 100%; flex: 1; min-height: 560px; resize: vertical; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: #fcfdff; white-space: pre; overflow: auto; }
.attendance-paste-left p { margin-top: 7px; font-size: 10.5px; color: var(--muted-2); }
.attendance-paste-right { border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; overflow: hidden; }
.attendance-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.attendance-result-head span { color: var(--muted); font-size: 10.5px; }
.attendance-result-wrap { flex: 1; overflow: auto; max-height: 560px; }
.attendance-result-table { min-width: 620px; font-size: 11px; }
.attendance-result-table th, .attendance-result-table td { padding: 7px 8px; text-align: center; }
.attendance-placeholder, .attendance-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 500px; padding: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.attendance-placeholder svg { width: 30px; height: 30px; color: #93c5fd; }
.attendance-placeholder b { color: var(--ink); font-size: 14px; }
.attendance-error { color: #b42318; }
.attendance-result-table .unmatched-row { background: #fffbf3; }
@media (max-width: 1100px) {
  .attendance-paste-card { min-height: auto; }
  .attendance-paste-layout { grid-template-columns: 1fr; min-height: auto; }
  .attendance-textarea { min-height: 500px; }
}

.attendance-rich-editor { width: 100%; flex: 1; min-height: 560px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: #fcfdff; overflow: auto; }
.attendance-rich-editor:empty:before { content: attr(data-placeholder); color: var(--muted-2); pointer-events: none; }
.attendance-rich-editor table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 10px; }
.attendance-rich-editor th, .attendance-rich-editor td { border: 1px solid #cfd8e6; padding: 3px 5px; white-space: nowrap; text-align: center; vertical-align: middle; min-width: 44px; }
.attendance-rich-editor th { background: #eef4ff; color: #1d4ed8; font-weight: 600; }
.attendance-rich-editor td:first-child { text-align: left; white-space: pre-line; min-width: 100px; }
.attendance-rich-editor img, .attendance-rich-editor style { display: none; }

.schedule-period { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; background: #fff; }
.schedule-help { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; background: #f8fbff; }
.schedule-table th, .schedule-table td { padding: 7px 8px; text-align: center; white-space: nowrap; }
.schedule-table td:nth-child(2) { text-align: left; }
.schedule-weekdays { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; }
.schedule-weekdays label { display: flex; align-items: center; gap: 4px; font-size: 11px; cursor: pointer; }
.schedule-weekdays input { width: 14px; height: 14px; }

.schedule-assign-toolbar { padding: 8px 14px; border-bottom: 1px solid var(--line-soft); }
.schedule-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; padding: 10px 14px 14px; }
.schedule-template-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfdff; display: flex; flex-direction: column; gap: 5px; }
.schedule-template-card > div:first-child { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.schedule-template-card p { margin: 0; font-size: 10.5px; color: var(--muted); }
.schedule-assign-form { display: flex; flex-direction: column; gap: 10px; }
.schedule-employee-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 3px 12px; max-height: calc(100vh - 330px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fbfdff; }
.schedule-employee-item { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 4px; cursor: pointer; }
.schedule-employee-item input { width: 14px; height: 14px; }

.team-table-wrap { max-height: 1040px; }
.batch-payfields { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdff; }
.batch-payfields .payfield-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); }

.inline-edit-row td { padding: 0 !important; background: #f7fbff; }
.inline-edit-form { padding: 0; border-top: 1px solid #dbeafe; }
.inline-edit-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e4ebf5; background: #eff6ff; }
.inline-edit-header b { font-size: 13px; color: #1e3a8a; }
.inline-edit-header span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.inline-edit-actions { display: flex; gap: 7px; flex: none; }
.inline-edit-sections { display: grid; grid-template-columns: 1.15fr .95fr; gap: 12px; padding: 14px 16px 16px; }
.inline-edit-section { border: 1px solid #e4ebf5; border-radius: 10px; background: #fff; padding: 11px 12px; min-width: 0; }
.inline-edit-section h4 { margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px solid #eef2f7; font-size: 11px; color: #344054; }
.inline-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 9px 10px; }
.inline-edit-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inline-edit-field > span { font-size: 9.5px; color: var(--muted); }
.inline-edit-field input, .inline-edit-field select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; background: #fff; color: var(--ink); min-width: 0; }
.inline-edit-field input:disabled { background: #f2f4f7; color: #98a2b3; cursor: not-allowed; }
.inline-edit-field.span2 { grid-column: span 2; }
.inline-edit-hint { font-size: 9.5px; margin-top: 5px; }
.inline-edit-section .paytype-row { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #e4ebf5; }
.inline-edit-section .paytype-row .inline-edit-field { flex: 1; }
@media (max-width: 1400px) {
  .inline-edit-sections { grid-template-columns: 1fr; }
  .inline-edit-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
}

.inline-edit-section-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-bottom:7px; margin-bottom:9px; border-bottom:1px solid #eef2f7; }
.inline-edit-section-head h4 { margin:0; padding:0; border:0; }
.batch-table th, .batch-table td { text-align: center; }
.batch-table input, .batch-table select { text-align: center; }

.batch-main-table { min-width: 2450px; }
.batch-pair-table { min-width: 2400px; }
.batch-head-control { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 108px; }
.batch-head-control > span { font-size: 10px; color: #344054; }
.batch-head-control select { height: 25px; font-size: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 0 3px; }
.batch-head-control .btn { height: 23px; font-size: 9px; padding: 0 4px; }
.batch-control-th, .pair-control-th { vertical-align: top; }
.batch-pair-hint { margin: -4px 0 8px; font-size: 10px; }
.batch-pair-wrap { max-height: 520px; }
.batch-table-wrap { max-height: 520px; }
.batch-main-table th.batch-freeze-1, .batch-main-table td.batch-freeze-1, .batch-pair-table th.batch-freeze-1, .batch-pair-table td.batch-freeze-1 { position: sticky; left: 0; z-index: 4; background: #fff; min-width: 72px; }
.batch-main-table th.batch-freeze-2, .batch-main-table td.batch-freeze-2, .batch-pair-table th.batch-freeze-2, .batch-pair-table td.batch-freeze-2 { position: sticky; left: 72px; z-index: 4; background: #fff; min-width: 80px; }
.batch-main-table thead th.batch-freeze-1, .batch-main-table thead th.batch-freeze-2, .batch-pair-table thead th.batch-freeze-1, .batch-pair-table thead th.batch-freeze-2 { z-index: 8; background: #f8fafc; }
.batch-table td select { height: 28px; font-size: 10px; border: 1px solid var(--line); border-radius: 5px; }
.batch-pair-table td { padding: 4px; }
.batch-pair-table input[type="checkbox"] { width: 14px; height: 14px; }

.inline-edit-section-head { flex-wrap: wrap; align-items: flex-end; }
.inline-paytype-field { width: 160px; flex: 0 0 160px; }
.inline-paytype-field select { width: 100%; }
.inline-edit-section-head h4 { flex: 1; margin-left: 4px; }
.inline-edit-section-head .btn { flex: none; }

.company-list-preview { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 0; }
.company-list-preview span { padding: 3px 7px; border-radius: 5px; background: #f2f6fc; color: var(--muted); font-size: 10.5px; }

.inline-edit-section-head h4 { flex: 0 0 auto; margin-left: 2px; }
.inline-edit-section-head .btn { flex: none; }

.inline-edit-section-head { justify-content: flex-start; gap: 9px; }
.inline-edit-section-head h4 { flex: 0 0 auto; margin: 0 0 0 2px; }
.inline-paytype-field { flex: 0 0 160px; width: 160px; }

.team-group-divider td, .logistics-divider td { padding: 5px 10px; background: #f1f5f9; color: #475467; font-size: 10.5px; font-weight: 600; text-align: left; letter-spacing: .3px; }
.departed-toggle-row td { display: flex; gap: 8px; justify-content: center; padding: 7px; }

.team-scroll-actions { position: sticky; top: 0; z-index: 9; display: flex; justify-content: center; gap: 8px; padding: 7px 10px; background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.salary-divider-th { width: 58px; min-width: 58px; padding: 0 !important; }
.salary-divider-head { display: flex; height: 100%; min-height: 48px; background: linear-gradient(to right, transparent calc(50% - 0.5px), #cbd5e1 calc(50% - 0.5px), #cbd5e1 calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.salary-divider-head span { width: 50%; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; text-orientation: upright; font-size: 9px; letter-spacing: 1px; color: #667085; line-height: 1; }
.salary-divider-td { width: 58px; min-width: 58px; padding: 0 !important; background: linear-gradient(to right, transparent calc(50% - 0.5px), #e4e7ec calc(50% - 0.5px), #e4e7ec calc(50% + 0.5px), transparent calc(50% + 0.5px)); }

.schedule-section-title { font-size: 13px !important; text-indent: 2em; font-weight: 700; color: #344054; }

.schedule-table th, .schedule-table td { text-align: center; vertical-align: middle; }
.schedule-table .cell-main { justify-content: center; }
.schedule-table .cell-actions { justify-content: center; }
.schedule-table .schedule-filter { min-width: 92px; }

.schedule-assign-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.schedule-assign-toolbar .schedule-table-title { margin: 0; flex: none; }
.schedule-picker-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.schedule-picker-filters select { height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 11px; background: #fff; }

.team-table-shell { display: flex; flex-direction: column; }
.team-bottom-actions { display: flex; justify-content: center; gap: 8px; padding: 8px 10px; background: #f8fafc; border-top: 1px solid var(--line); }

.schedule-cycle-note { grid-column: 1 / -1; padding: 7px 10px; border-radius: 7px; background: #eff6ff; color: #1e40af; font-size: 11px; border: 1px solid #bfdbfe; }

.schedule-table-caption { caption-side: top; text-align: left; padding: 8px 10px 6px; font-size: 12px; font-weight: 700; color: #344054; letter-spacing: .3px; }
.schedule-table th, .schedule-table td, .schedule-table th *, .schedule-table td * { text-align: center !important; }
.schedule-table .team-filter { display: block; margin: 0 auto; text-align: center !important; }
.schedule-table .cell-main, .schedule-table .cell-actions { justify-content: center !important; }
.schedule-table .badge { margin: 0 auto; }

.template-form-section { border: 1px solid #e4ebf5; border-radius: 9px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.template-form-section h4 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #eef2f7; font-size: 11px; color: #344054; }
.template-form-section .schedule-cycle-note { margin-bottom: 8px; }

.schedule-weekdays label { width: fit-content; }

.schedule-existing { color: #1d4ed8; font-weight: 600; font-size: 10.5px; }

.attendance-paste-card { min-height: 1040px; }
.attendance-paste-layout { min-height: 960px; }
.attendance-rich-editor { min-height: 900px; }
.attendance-placeholder { min-height: 900px; }

.attendance-paste-layout { align-items: stretch; }
.attendance-paste-left, .attendance-paste-right { height: 100%; }
.attendance-paste-right { align-self: stretch; }
.attendance-placeholder, .attendance-result-wrap { min-height: 100%; }

.hr-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding: 12px 14px; }
.hr-summary > div { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fbfdff; display: flex; flex-direction: column; gap: 3px; }
.hr-summary span { font-size: 10px; color: var(--muted); }
.hr-summary b { font-size: 17px; color: #1e3a8a; }
.hr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 14px; }
.hr-grid section { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; min-width: 0; }
.hr-grid h4 { margin: 0; padding: 9px 11px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 11px; }
.hr-table { min-width: 760px; }
.hr-rules-table { min-width: 1000px; }
.hr-rules-table input[type="number"] { width: 72px; height: 28px; border: 1px solid var(--line); border-radius: 5px; text-align: center; font-size: 11px; }
.hr-rules-table input[type="checkbox"] { width: 15px; height: 15px; }
@media (max-width: 1100px) { .hr-grid { grid-template-columns: 1fr; } .hr-summary { grid-template-columns: 1fr 1fr; } }

.attendance-daily-head { padding: 10px 14px 6px; font-size: 12px; font-weight: 700; color: #344054; border-top: 1px solid var(--line); background: #f8fafc; }
.attendance-daily-wrap { max-height: 520px; }
.attendance-result-table td, .attendance-result-table th { white-space: nowrap; }

.modal:not(.full) { min-width: 900px; min-height: 900px; }
.nav-sub { top: 100%; margin-top: 0; }
.nav-sub-group { position: relative; }
.nav-sub-group > .nav-sub { top: 0; left: 100%; margin-left: 4px; }
.nav-sub-group:hover > .nav-sub, .nav-sub-group:focus-within > .nav-sub { display: block; }
@media (max-width: 940px) {
  .modal:not(.full) { min-width: calc(100vw - 40px); width: calc(100vw - 40px); }
}

.salary-link-table { min-width: 1200px; }

.attendance-paste-right { overflow-y: auto !important; }
.attendance-paste-right .attendance-result-wrap { flex: none; max-height: none; overflow: visible; }
.attendance-paste-right .attendance-daily-wrap { max-height: none; }
.attendance-daily-jump { margin-left: 8px; }

.modal.draggable-modal .modal-head { cursor: move; user-select: none; }
.attendance-daily-modal-wrap { max-height: 620px; }

.attendance-paste-card, .attendance-paste-layout, .attendance-paste-left { overflow: hidden; min-width: 0; }
.attendance-rich-editor { resize: none !important; max-width: 100%; overscroll-behavior: contain; }
.attendance-paste-right { overflow-y: auto !important; overflow-x: hidden; }
.attendance-result-table { min-width: 100%; }

.schedule-year-option { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #344054; padding: 5px 0; }
.schedule-year-option input { width: 15px; height: 15px; }

.panel-search-input { width: 190px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 11px; }
.panel-search-input.hidden { display: none; }

.card.panel-collapsed > :not(.card-head) { display: none !important; }
.panel-collapse-toggle { flex: none; }

.card.panel-collapsed { min-height: 0 !important; height: auto !important; }
.card.panel-collapsed > .card-head { border-bottom: 0; margin-bottom: 0; }

body.background-scroll-modal #app { pointer-events: none; }
body.background-scroll-modal #attendance-paste { pointer-events: auto; user-select: none; }
body.background-scroll-modal .modal-mask { pointer-events: none; }
body.background-scroll-modal .modal { pointer-events: auto; }

.attendance-splitter { width: 8px; border-radius: 4px; background: #dbeafe; cursor: col-resize; align-self: stretch; position: relative; }
.attendance-splitter::after { content: ''; position: absolute; top: 38%; bottom: 38%; left: 3px; width: 2px; border-radius: 2px; background: #60a5fa; }
body.attendance-resizing { cursor: col-resize; user-select: none; }
@media (max-width: 1100px) {
  .attendance-splitter { display: none; }
  .attendance-paste-layout { grid-template-columns: 1fr !important; }
}

.attendance-paste-right { overflow-x: auto !important; }
.attendance-result-wrap { overflow-x: auto; }
.attendance-result-table { min-width: 1050px; }
.attendance-result-table th, .attendance-result-table td { padding: 6px 5px; font-size: 10px; white-space: nowrap; }
.attendance-result-table th:last-child, .attendance-result-table td:last-child { position: sticky; right: 0; z-index: 2; background: #fff; box-shadow: -4px 0 6px rgba(15,23,42,.08); }
.attendance-result-table thead th:last-child { z-index: 3; }

.attendance-adjust-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.attendance-unmatched-warning { color: #b42318; font-size: 11px; margin-left: 8px; }
.attendance-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.attendance-daily-modal-wrap { overflow: auto; }
.attendance-daily-modal-wrap thead th { position: sticky; top: 0; z-index: 4; background: #f8fafc; }
.attendance-daily-modal-wrap thead th:first-child { z-index: 5; }

.pay-field-off { color: #98a2b3; font-weight: 400; }

.salary-inline-cell { position: relative; padding: 3px 4px !important; }
.salary-inline-input { width: 76px; height: 26px; border: 1px solid transparent; border-radius: 4px; background: transparent; padding: 0 3px; font-size: 10.5px; color: #101828; text-align: right; }
.salary-inline-input:hover { border-color: #d0d5dd; background: #fff; }
.salary-inline-input:focus { outline: none; border-color: #1570ef; background: #fff; }
.salary-inline-input.is-editing { border-color: #1570ef; background: #fff; }
.salary-inline-save { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 5px; background: #1570ef; color: #fff; font-size: 12px; line-height: 22px; cursor: pointer; }
.salary-inline-save.hidden { display: none; }

.salary-table td.num { text-align: center; }
.salary-inline-input { text-align: center; padding-right: 3px; }
.salary-inline-save { right: 27px; }
.salary-inline-cancel { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 5px; background: #98a2b3; color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; }
.salary-inline-cancel.hidden { display: none; }

.batch-salary-table input, .batch-salary-table select { width: 88px; height: 28px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font-size: 10.5px; text-align: center; }
.batch-head-control input { width: 76px; height: 26px; border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; font-size: 10px; }
.salary-inline-save, .salary-inline-cancel { transform: translate(18px, -50%); }

.schedule-picker-all-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }

.modal.resizable-modal { resize: both; overflow: auto; min-width: 680px; min-height: 420px; }
.modal.auto-height-modal, .modal.square.auto-height-modal { height: auto; max-height: calc(100vh - 40px); min-height: 0; }
.modal.auto-height-modal .modal-body { max-height: calc(90vh - 170px); overflow: auto; }

.required-star { color: #d92d20; font-style: normal; font-weight: 700; }
.batch-required-banner { text-align: right; color: #d92d20; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.batch-salary-table th, .batch-salary-table td { text-align: center; }
.batch-salary-table .batch-head-control { align-items: center; justify-content: center; }
.batch-salary-table .batch-head-control span { text-align: center; }

.modal.auto-height-modal, .modal.square.auto-height-modal { height: min(900px, 90vh); max-height: 92vh; min-height: 420px; }
.modal.auto-height-modal .modal-body { flex: 1; min-height: 0; max-height: none; overflow: hidden; display: flex; flex-direction: column; }
.modal.auto-height-modal .attendance-adjust-actions { flex: none; }
.modal.auto-height-modal .attendance-daily-modal-wrap { flex: 1; min-height: 0; max-height: none; overflow: auto; }
.modal.full .batch-salary-wrap { height: calc(100vh - 250px); max-height: none; }

.phone-input-wrap { position: relative; display: flex; align-items: center; }
.phone-input-wrap input { padding-right: 26px; }
.phone-clear { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 0; border-radius: 50%; background: #d92d20; color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; padding: 0; }
.phone-clear.hidden { display: none; }

.salary-column-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.salary-column-order-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: grab; }
.salary-column-order-list li.dragging { opacity: .45; }
.drag-handle { color: #98a2b3; font-size: 14px; letter-spacing: -2px; }

.attendance-rest-picker { max-height: 420px; }

.modal.square.resizable-modal { width: min(1200px, 96vw); max-width: calc(100vw - 20px); }
.modal.resizable-modal { min-width: 680px; max-height: calc(100vh - 20px); }
.modal.auto-height-modal.resizable-modal { max-height: calc(100vh - 20px); }
.rest-day-status { color: #067647; font-weight: 700; }

.holiday-range-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.holiday-range-row input { flex: 1; }

.attendance-total-row th { background: #f2f8f5; color: #067647; font-weight: 700; white-space: nowrap; }

.penalty-tier-group { display: flex; flex-direction: column; gap: 8px; }
.penalty-tier-title { font-size: 12px; font-weight: 700; color: #344054; }
.penalty-tier-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; }
.penalty-tier-row strong { min-width: 56px; color: #344054; }
.penalty-tier-row label { display: flex; align-items: center; gap: 6px; color: #475467; white-space: nowrap; }
.penalty-tier-row input { width: 110px; }

.attendance-daily-modal-wrap { overflow: auto; }
.attendance-daily-modal-wrap .attendance-result-table thead tr:first-child th { position: sticky; top: 0; z-index: 4; background: #f2f8f5; }
.attendance-daily-modal-wrap .attendance-result-table thead tr:nth-child(2) th { position: sticky; top: 36px; z-index: 4; background: #f8fafc; }
.attendance-daily-modal-wrap .attendance-result-table thead th { box-shadow: inset 0 -1px 0 var(--line); }

.daily-warn { color: #d92d20 !important; font-weight: 700; }

.base-panels { display: flex; flex-direction: column; gap: 18px; }
.base-panels > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.daily-under { color: #d92d20 !important; font-weight: 700; }

.required-disabled { background: #f2f4f7 !important; color: #98a2b3 !important; cursor: not-allowed; }

.attendance-daily-modal-wrap, .attendance-daily-modal-wrap * { user-select: text !important; -webkit-user-select: text !important; }
.modal.resizable-modal .modal-body { user-select: text; -webkit-user-select: text; }

.penalty-section .penalty-enable-row { display: flex; align-items: center; }
.penalty-section .penalty-enable-row select { max-width: 260px; }
.penalty-section .penalty-template-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.penalty-section .penalty-template-fields:disabled { opacity: .65; }

.modal.draggable-modal .modal-head h3,
.modal.draggable-modal .modal-head p { user-select: text !important; -webkit-user-select: text !important; cursor: text; }

.fbp-row-reward td { background: #f0fdf4; }
.fbp-row-penalty td { background: #fef3f2; }
.fbp-row-reward select { color: #067647; font-weight: 700; }
.fbp-row-penalty select { color: #b42318; font-weight: 700; }

.fbp-order-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.fbp-order-pair { display: flex; align-items: center; gap: 6px; }
.fbp-order-pair input[data-fbp-order] { width: 130px; }
.fbp-order-pair input[data-fbp-order-note] { width: 180px; }

.fbp-template-table td { vertical-align: top; }
.fbp-template-table textarea[data-fbp-name] { width: 200px; min-height: 34px; resize: both; line-height: 1.45; }
.fbp-template-table textarea[data-fbp-order-note] { flex: 1; min-width: 220px; min-height: 34px; resize: both; line-height: 1.45; }
.fbp-template-table input[data-fbp-count], .fbp-template-table input[data-fbp-amount] { width: 64px; }
.fbp-template-table input[data-fbp-date] { width: 115px; }
.fbp-template-table input[data-fbp-order] { width: 120px; }
.fbp-template-table .fbp-order-pair { align-items: flex-start; padding: 6px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; }
.fbp-template-table tbody tr { border-radius: 10px; }
.fbp-template-table tbody tr.fbp-row-reward { background: #f0fdf4; }
.fbp-template-table tbody tr.fbp-row-penalty { background: #fef3f2; }

.auto-calc-input { background: #f2f4f7 !important; color: #667085 !important; cursor: not-allowed; }
.auto-calc-hint { display: block; margin-top: 4px; font-size: 11px; color: #98a2b3; }

.staging-performance-cell { display: flex; align-items: center; gap: 6px; }
.staging-performance-cell input { width: 90px; }
.perf-confirm { border: 1px solid #f04438; background: #fff5f4; color: #b42318; border-radius: 999px; padding: 2px 6px; font-size: 10.5px; cursor: pointer; white-space: nowrap; }
.perf-confirm.confirmed { border-color: #12b76a; background: #ecfdf3; color: #067647; }

.staging-group-row th { background: #eef4ff; color: #344054; font-size: 11.5px; text-align: center; }

.attendance-record-changed td { background: #fff5f4; color: #b42318; }

.fbp-note-wrap { display: flex; align-items: flex-start; gap: 6px; flex: 1; }
.fbp-order-note { min-width: 240px; min-height: 36px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; line-height: 1.5; white-space: pre-wrap; }
.fbp-order-note:empty::before { content: attr(data-placeholder); color: #98a2b3; }
.fbp-order-note img { max-width: 240px; max-height: 160px; border: 1px solid #e4e7ec; border-radius: 6px; margin: 4px 0; display: block; }
.fbp-image-upload { cursor: pointer; white-space: nowrap; }

.fbp-retention-note { color: #b42318; font-size: 11.5px; margin-left: 4px; }
.fbp-expire-warning { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }

.text-center { text-align: center !important; }

.order-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:12px 14px; border-bottom:1px solid var(--line); }
.order-tabs { display:flex; gap:4px; flex-wrap:wrap; }
.order-tab { border:0; background:transparent; padding:8px 12px; border-radius:8px; color:#475467; cursor:pointer; font-size:13px; }
.order-tab span { margin-left:6px; font-size:11px; color:#98a2b3; }
.order-tab.active { background:#eff4ff; color:#175cd3; font-weight:700; }
.order-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.order-batch-bar { display:flex; align-items:center; gap:10px; padding:8px 14px; background:#f8fafc; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.order-batch-bar .check-label { display:flex; align-items:center; gap:5px; font-size:12px; color:#475467; }
.order-table td { vertical-align:middle; }

.order-workspace { display:grid; grid-template-columns:220px minmax(0,1fr); gap:12px; align-items:start; }
.order-sidebar { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px; position:sticky; top:78px; }
.order-sidebar-search { margin-bottom:8px; }
.order-sidebar-search .search { width:100%; }
.order-side-title { font-size:11px; color:#98a2b3; padding:10px 8px 4px; font-weight:700; letter-spacing:.04em; }
.order-side-nav { display:flex; flex-direction:column; gap:2px; }
.order-side-item { display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; color:#475467; padding:8px 9px; border-radius:8px; cursor:pointer; font-size:12.5px; text-align:left; }
.order-side-item b { color:#98a2b3; font-weight:500; font-size:11px; }
.order-side-item.active { background:#eff4ff; color:#175cd3; font-weight:700; }
.order-side-item.active b { color:#175cd3; }
.order-workspace-main { min-width:0; }
.order-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.order-crumb { font-size:12px; color:#667085; }
.order-crumb span { margin:0 5px; color:#cbd5e1; }
.order-top-actions { display:flex; gap:6px; align-items:center; }
.order-filterbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding:10px 12px; background:#fff; border:1px solid var(--line); border-radius:10px; margin-bottom:8px; }
.order-filter { display:flex; align-items:center; gap:6px; font-size:12px; color:#475467; }
.order-filter select, .order-filter input { height:32px; border:1px solid #d0d5dd; border-radius:7px; padding:0 8px; background:#fff; min-width:130px; }
.order-filter-wide { flex:1; }
.order-filter-wide input { width:100%; }
.order-rulebar { display:flex; align-items:center; gap:8px; background:#eff8ff; color:#175cd3; padding:8px 12px; border:1px solid #b2ddff; border-radius:8px; font-size:12px; margin-bottom:8px; }
.order-actionbar { display:flex; align-items:center; gap:6px; background:#fff; border:1px solid var(--line); border-radius:10px 10px 0 0; padding:8px 12px; border-bottom:0; }
.order-result-count { margin-left:auto; color:#667085; font-size:12px; }
.order-table-pro td { vertical-align:top; }
.order-product-cell { display:flex; gap:8px; align-items:flex-start; min-width:260px; }
.order-product-info { min-width:0; }
.order-qty { color:#667085; font-weight:500; margin-left:6px; }
.order-money { font-weight:700; color:#101828; }
.order-row-actions { white-space:nowrap; }
@media (max-width:900px) { .order-workspace { grid-template-columns:1fr; } .order-sidebar { position:static; } }

.view { min-width: 0; }
.order-workspace { width: 100%; min-width: 0; }
.order-workspace-main { min-width: 0; overflow: hidden; }
.order-table-pro { width: 100%; }

.order-workspace-main { min-width: 0; }

.order-table-pro { table-layout: fixed; }
.order-table-pro th:nth-child(1), .order-table-pro td:nth-child(1) { width: 34px; }
.order-table-pro th:nth-child(2), .order-table-pro td:nth-child(2) { width: 30%; }
.order-table-pro th:nth-child(3), .order-table-pro td:nth-child(3) { width: 10%; }
.order-table-pro th:nth-child(4), .order-table-pro td:nth-child(4) { width: 18%; }
.order-table-pro th:nth-child(5), .order-table-pro td:nth-child(5) { width: 12%; }
.order-table-pro th:nth-child(6), .order-table-pro td:nth-child(6) { width: 10%; }
.order-table-pro th:nth-child(7), .order-table-pro td:nth-child(7) { width: 7%; }
.order-table-pro th:nth-child(8), .order-table-pro td:nth-child(8) { width: 12%; }
.order-table-pro .product-thumb { width: 52px; height: 52px; flex: 0 0 52px; }
.order-table-pro td { padding-top: 9px; padding-bottom: 9px; }

.demand-output-link { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.demand-output-link a { color:#175cd3; text-decoration:underline; }
.demand-output-edit { display:flex; align-items:center; gap:6px; min-width:260px; }
.demand-output-edit input { flex:1; height:32px; border:1px solid #d0d5dd; border-radius:7px; padding:0 8px; }

.supplier-searchbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 12px; border-bottom:1px solid var(--line); }
.supplier-search-type { display:flex; align-items:center; gap:6px; font-size:12px; color:#475467; }
.supplier-search-type select { height:32px; border:1px solid #d0d5dd; border-radius:7px; padding:0 8px; background:#fff; }
.supplier-search-input { flex:1; min-width:260px; }
.supplier-help { margin-left:auto; }
.supplier-status-tabs { display:flex; gap:4px; padding:8px 12px; border-bottom:1px solid var(--line); }
.supplier-status-tab { border:0; background:transparent; padding:8px 12px; border-radius:8px; color:#475467; cursor:pointer; font-size:12.5px; }
.supplier-status-tab span { margin-left:5px; color:#98a2b3; font-size:11px; }
.supplier-status-tab.active { background:#eff4ff; color:#175cd3; font-weight:700; }
.supplier-status-tab.active span { color:#175cd3; }
.supplier-db-table td { vertical-align:middle; }
.supplier-product-cell { display:flex; align-items:center; gap:8px; min-width:240px; }
.supplier-product-cell .product-thumb { flex:0 0 44px; width:44px; height:44px; }
.supplier-table-foot { padding:10px 12px; color:#667085; font-size:12px; border-top:1px solid var(--line); }

.supplier-db-card { padding:0; }
.supplier-filter-block { border-bottom:1px solid var(--line); padding:10px 12px 8px; }
.supplier-filter-row { display:flex; align-items:center; min-height:34px; gap:8px; font-size:12px; color:#475467; }
.supplier-filter-label { width:66px; flex:0 0 66px; }
.supplier-type-links { display:flex; gap:18px; flex-wrap:wrap; }
.supplier-type-link { border:0; background:transparent; color:#475467; padding:4px 2px; cursor:pointer; font-size:12px; border-bottom:2px solid transparent; }
.supplier-type-link.active { color:#1677ff; border-bottom-color:#1677ff; font-weight:600; }
.supplier-search-line { border-top:1px dashed #edf0f5; padding-top:6px; }
.supplier-search-box { width:360px; height:30px; border:1px solid #d0d5dd; border-radius:4px; padding:0 8px; }
.supplier-search-btn { border-radius:4px; min-width:60px; }
.supplier-status-inline { margin-left:auto; display:flex; align-items:center; gap:10px; }
.supplier-type-line { flex-wrap: wrap; row-gap: 4px; }
.supplier-status-label { color:#475467; white-space:nowrap; }
.supplier-status-tabs { display:flex; gap:18px; }
.supplier-status-tab { border:0; background:transparent; color:#475467; cursor:pointer; font-size:12px; padding:4px 2px; }
.supplier-status-tab span { color:#98a2b3; margin-left:4px; }
.supplier-status-tab.active { color:#1677ff; font-weight:600; }
.supplier-actionbar { display:flex; align-items:center; gap:12px; padding:8px 12px; border-bottom:1px solid var(--line); }
.supplier-add-btn { border-radius:4px; background:#1677ff; }
.supplier-add-btn .caret { font-size:10px; margin-left:4px; }
.supplier-page-count { margin-left:auto; color:#667085; font-size:12px; }
.supplier-db-table { table-layout:fixed; }
.supplier-db-table th, .supplier-db-table td { padding:8px 10px; }
.supplier-db-table th:nth-child(1), .supplier-db-table td:nth-child(1) { width:34px; }
.supplier-db-table th:nth-child(2), .supplier-db-table td:nth-child(2) { width:23%; }
.supplier-db-table th:nth-child(3), .supplier-db-table td:nth-child(3) { width:14%; }
.supplier-db-table th:nth-child(4), .supplier-db-table td:nth-child(4) { width:14%; }
.supplier-db-table th:nth-child(5), .supplier-db-table td:nth-child(5) { width:24%; }
.supplier-db-table th:nth-child(6), .supplier-db-table td:nth-child(6) { width:13%; }
.supplier-db-table th:nth-child(7), .supplier-db-table td:nth-child(7) { width:7%; }
.supplier-db-table th:nth-child(8), .supplier-db-table td:nth-child(8) { width:7%; }
.supplier-db-table th:nth-child(9), .supplier-db-table td:nth-child(9) { width:11%; }
.supplier-db-table th:nth-child(10), .supplier-db-table td:nth-child(10) { width:14%; }
.supplier-product-cell { display:flex; align-items:flex-start; gap:8px; }
.supplier-product-cell .product-thumb { flex:0 0 44px; width:44px; height:44px; }
.supplier-product-main { min-width:0; }
.supplier-product-title { color:#344054; line-height:1.45; word-break:break-all; }
.supplier-product-sub, .supplier-code { color:#98a2b3; font-size:11px; margin-top:3px; word-break:break-all; }
.supplier-name { color:#344054; }
.supplier-variant { color:#344054; line-height:1.55; }
.supplier-ops { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.supplier-op { border:0; background:transparent; color:#1677ff; cursor:pointer; padding:0; font-size:12px; }
.supplier-op.danger { color:#b42318; }

.supplier-db-table { table-layout: auto; }
.supplier-db-table th:nth-child(n), .supplier-db-table td:nth-child(n) { width: auto; }
.supplier-db-table th:nth-child(1), .supplier-db-table td:nth-child(1) { width: 34px; }

.supplier-link-line { display:flex; align-items:center; gap:10px; padding:16px 0 12px; }
.supplier-link-label { width:100px; flex:0 0 100px; color:#475467; font-size:13px; }
.supplier-link-line input { flex:1; height:36px; border:1px solid #d0d5dd; padding:0 10px; border-radius:2px; }
.supplier-fetch-btn { height:36px; padding:0 14px; background:#f58220; color:#fff; border:0; border-radius:2px; cursor:pointer; font-weight:600; }
.supplier-section-strip { background:#f0f2f5; color:#344054; font-weight:700; text-align:center; padding:9px 12px; font-size:13px; border:1px solid #e4e7ec; }
.supplier-detail-fields { margin-top:10px; }
.supplier-detail-fields summary { cursor:pointer; color:#667085; font-size:12px; padding:6px 0; }

.supplier-fetched { display:grid; grid-template-columns:120px minmax(220px,1fr) minmax(360px,1.4fr); gap:10px; border:1px solid #d9d9d9; border-top:0; padding:10px; align-items:start; }
.supplier-fetched-image { border:1px solid #eee; min-height:100px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.supplier-fetched-image img { max-width:100%; max-height:150px; object-fit:contain; }
.supplier-fetched-name { padding:10px 6px; color:#344054; line-height:1.7; font-size:13px; }
.supplier-fetched-variants { min-width:0; }
.supplier-variant-head { display:flex; justify-content:space-between; align-items:center; padding:4px 6px 8px; font-size:12px; color:#475467; border-bottom:1px solid #eee; margin-bottom:8px; }
.supplier-variant-grid { display:grid; grid-template-columns:repeat(2,minmax(150px,1fr)); gap:7px; max-height:220px; overflow:auto; }
.supplier-variant-card { display:flex; align-items:center; gap:6px; border:1px solid #e4e7ec; padding:5px; cursor:pointer; font-size:12px; min-width:0; }
.supplier-variant-thumb { width:38px; height:38px; flex:0 0 38px; display:flex; align-items:center; justify-content:center; border:1px solid #eee; overflow:hidden; }
.supplier-variant-thumb img { width:100%; height:100%; object-fit:cover; }


.bys-pick-current { background:#fffbe6; border:1px solid #ffe58f; padding:10px; display:flex; gap:12px; margin-bottom:10px; }
.bys-pick-current > span:first-child { color:#667085; font-size:12px; white-space:nowrap; }
.bys-pick-current-body { display:flex; gap:9px; align-items:center; }
.bys-pick-current-img { width:52px; height:52px; object-fit:contain; }
.bys-pick-search { border:1px solid #e4e7ec; padding:9px 10px; margin-bottom:8px; }
.bys-pick-types { display:flex; gap:18px; margin-bottom:8px; }
.bys-pick-type { border:0; background:transparent; color:#475467; cursor:pointer; padding:3px 1px; font-size:12px; }
.bys-pick-type.active { color:#1677ff; font-weight:700; }
.bys-pick-row { display:flex; gap:8px; align-items:center; }
.bys-pick-row input { flex:1; height:32px; border:1px solid #d0d5dd; padding:0 8px; }
.bys-pick-row select { height:32px; border:1px solid #d0d5dd; background:#fff; }
.bys-pick-category { display:flex; align-items:center; gap:8px; margin-top:8px; color:#475467; font-size:12px; }
.bys-pick-category select { height:30px; border:1px solid #d0d5dd; background:#fff; }
.bys-pick-table { table-layout:fixed; }
.bys-pick-table th:nth-child(1), .bys-pick-table th:nth-child(3) { width:42%; }
.bys-pick-table th:nth-child(2), .bys-pick-table th:nth-child(4) { width:8%; }
.bys-pick-product { display:flex; align-items:center; gap:7px; }
.bys-pick-info { flex:1; min-width:0; }
.bys-pick-name { color:#344054; font-size:12.5px; line-height:1.45; }
.bys-pick-code { color:#98a2b3; font-size:11px; margin-top:2px; }
.bys-pick-select { border:0; background:transparent; color:#1677ff; cursor:pointer; padding:0; font-size:12px; }
.bys-pick-pagination { display:flex; align-items:center; justify-content:center; gap:9px; padding-top:12px; color:#667085; font-size:12px; }
.bys-pick-pagination button { border:1px solid #d0d5dd; background:#fff; width:26px; height:26px; cursor:pointer; }
.bys-pick-pagination button:disabled { color:#cbd5e1; cursor:not-allowed; }
.bys-pick-pagination input { width:46px; height:26px; border:1px solid #d0d5dd; text-align:center; }


.supplier-code-cell { color:#475467; font-size:12px; word-break:break-all; }

.supplier-profile-top { display:flex; justify-content:flex-end; padding:0 4px 8px; border-bottom:1px solid #eee; margin-bottom:12px; }
.supplier-continue { display:flex; align-items:center; gap:6px; font-size:12px; color:#475467; }
.supplier-profile-section { border:1px solid #e4e7ec; border-radius:4px; margin-bottom:14px; padding:12px 14px; }
.supplier-profile-section h4 { margin:0 0 14px; font-size:13px; color:#344054; font-weight:700; }
.supplier-profile-form { display:flex; flex-direction:column; gap:10px; }
.supplier-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; }
.sp-row { display:flex; align-items:center; gap:10px; }
.sp-row > span { width:92px; flex:0 0 92px; text-align:right; color:#475467; font-size:12px; }
.sp-row input, .sp-row select, .sp-row textarea { flex:1; height:32px; border:1px solid #d0d5dd; padding:0 8px; font-size:12px; }
.sp-row textarea { height:62px; padding:6px 8px; resize:vertical; }
.sp-row.align-top { align-items:flex-start; }
.sp-row.align-top > span { padding-top:8px; }
.sp-row.required > span::before { content:'*'; color:#d92d20; margin-right:2px; }
.sp-link-row { padding-left:102px; }
.sp-link { border:0; background:transparent; color:#1677ff; cursor:pointer; font-size:12px; padding:0; }
@media (max-width:760px) { .supplier-contact-grid { grid-template-columns:1fr; } }

.product-compact-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.product-compact-head h2 { margin:0; font-size:20px; }
.product-compact-head .muted { margin-left:10px; }
.product-list-card { padding:0; }
.product-filter-panel { border-bottom:1px solid var(--line); padding:9px 12px; }
.product-filter-panel .search-dims { margin-bottom:6px; }
.product-filter-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.product-filter-row .search { flex:1; min-width:260px; }
.product-compact-table { table-layout:fixed; }
.product-compact-table th, .product-compact-table td { padding:8px 9px; vertical-align:middle; }
.product-compact-table th:nth-child(1) { width:105px; }
.product-compact-table th:nth-child(2) { width:33%; }
.product-compact-table th:nth-child(3) { width:9%; }
.product-compact-table th:nth-child(4) { width:9%; }
.product-compact-table th:nth-child(5) { width:10%; }
.product-compact-table th:nth-child(6) { width:8%; }
.product-compact-table th:nth-child(7) { width:10%; }
.product-compact-table th:nth-child(8) { width:9%; }
.product-table-thumb { display:flex; flex-direction:column; align-items:center; gap:3px; }
.product-table-thumb .product-thumb { width:48px; height:48px; }
.product-table-thumb > span { color:#98a2b3; font-size:10px; }
.product-table-main { min-width:0; }
.product-row-ops { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.product-pagination { display:flex; align-items:center; justify-content:flex-end; gap:9px; padding:10px 12px; border-top:1px solid var(--line); color:#667085; font-size:12px; }
.product-pagination button { border:1px solid #d0d5dd; background:#fff; width:26px; height:26px; cursor:pointer; }
.product-pagination button:disabled { color:#cbd5e1; cursor:not-allowed; }

.product-filter-title-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:6px; }
.product-inline-title { display:flex; align-items:baseline; gap:10px; flex:0 0 auto; }
.product-inline-title h2 { margin:0; font-size:18px; }
.product-inline-title span { color:#667085; font-size:12px; }
.product-head-actions { display:flex; align-items:center; gap:7px; margin-left:auto; }

.product-edit-tabs { display:flex; gap:2px; border-bottom:1px solid #e4e7ec; margin:-4px 0 14px; overflow-x:auto; }
.product-edit-tab { border:0; background:#f0f2f5; color:#475467; padding:9px 14px; cursor:pointer; font-size:12.5px; white-space:nowrap; }
.product-edit-tab.active { background:#fff; color:#1677ff; font-weight:700; box-shadow:inset 0 -2px 0 #1677ff; }
.product-edit-panel { display:none; }
.product-edit-panel.active { display:block; }
.pe-section { border:1px solid #e4e7ec; padding:12px 14px; margin-bottom:12px; }
.pe-section h4 { margin:0 0 12px; font-size:13px; color:#344054; }
.pe-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 18px; }
.pe-grid-3 { grid-template-columns:1fr 1fr 1fr; }
.pe-grid-2 { grid-template-columns:1fr 1fr; }
.pe-row { display:flex; align-items:center; gap:8px; min-width:0; }
.pe-row > span:first-child { width:100px; flex:0 0 100px; text-align:right; color:#475467; font-size:12px; }
.pe-row input:not([type=checkbox]):not([type=radio]):not([type=file]), .pe-row select { flex:1; min-width:0; height:32px; border:1px solid #d0d5dd; padding:0 8px; font-size:12px; }
.pe-row select[multiple] { height:90px; padding:5px; }
.pe-row.span2 { grid-column:1/-1; }
.pe-row.required > span:first-child::before { content:'*'; color:#d92d20; margin-right:2px; }
.pe-checks { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:#475467; }
.pe-checks label { display:flex; align-items:center; gap:4px; }
.pe-unit { color:#667085; font-size:12px; }
/* 商品编辑：成员选择器（开发员/采购员单选，销售员多选） */
.pe-member { position: relative; width: 100%; }
.pe-member-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.pe-member-box:focus-within { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.pe-member-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pe-member-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px;
  background: #eef4ff; color: #1d4ed8; font-size: 12px; user-select: text;
}
.pe-member-chip em { font-style: normal; color: #b54708; font-size: 10px; }
.pe-member-remove {
  border: 0; background: transparent; color: #1d4ed8; cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px;
}
.pe-member-remove:hover { color: #b42318; }
/* 覆盖 .pe-row input/select 的通用样式，保证搜索框和筛选下拉在框内 */
.pe-member-box .pe-member-search {
  flex: 1 1 140px !important; min-width: 120px !important; height: 24px !important;
  border: 0 !important; border-radius: 0 !important; padding: 0 !important;
  background: transparent !important; box-shadow: none !important; font-size: 12px;
}
.pe-member-box .pe-member-status {
  flex: none !important; width: auto !important; min-width: 78px; max-width: 100px; height: 24px !important;
  border: 0 !important; border-left: 1px solid var(--line-soft) !important; border-radius: 0 !important;
  background: transparent !important; color: #475467; font-size: 11.5px; outline: none;
  padding: 0 4px 0 8px !important;
}
.pe-member-empty { color: #98a2b3; font-size: 12px; }
.pe-member-results {
  position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .14); padding: 6px;
}
.pe-member-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  text-align: left; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
}
.pe-member-option:hover { background: #f4f7ff; }
.pe-member-option.is-selected { background: #eaf1ff; }
.pe-member-option b { font-size: 12.5px; color: #101828; font-weight: 600; }
.pe-member-option small { font-size: 11px; color: #667085; }
.pe-member-option i { font-style: normal; font-size: 10px; color: #b54708; }
/* 产品说明书 / 售后记录 / 采购备注（质检与供货页） */
.pe-file-box, .pe-after-file-area { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; }
.pe-file-box:focus, .pe-file-box:focus-within, .pe-after-card:focus, .pe-after-card:focus-within { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .06); }
.pe-file-list { display: flex; flex-direction: column; gap: 4px; }
.pe-file-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pe-file-row a { color: #1d4ed8; text-decoration: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-file-row a:hover { text-decoration: underline; }
.pe-file-row small { color: #98a2b3; font-size: 11px; }
.pe-file-del { margin-left: auto; border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 14px; line-height: 1; }
.pe-file-empty { color: #98a2b3; font-size: 11.5px; }
.pe-file-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pe-file-btn { position: relative; overflow: hidden; display: inline-flex; }
.pe-file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pe-file-hint { color: #98a2b3; font-size: 11px; }

.pe-aftersales { display: flex; flex-direction: column; gap: 10px; }
.pe-aftersales-list { display: flex; flex-direction: column; gap: 10px; }
.pe-after-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.pe-after-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #475467; }
.pe-after-del { border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 11.5px; }
.pe-after-note { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pe-after-note > span { width: 72px; flex: 0 0 72px; text-align: right; color: #475467; }
.pe-after-note input { flex: 1; height: 30px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 8px; font-size: 12px; }
.pe-after-orders { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; position: relative; }
.pe-after-orders > span { width: 72px; flex: 0 0 72px; text-align: right; color: #475467; line-height: 26px; }
.pe-order-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-height: 26px; align-items: center; }
.pe-order-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px; background: #eef4ff; color: #1d4ed8; font-size: 11.5px; }
.pe-order-chip button { border: 0; background: transparent; color: #1d4ed8; cursor: pointer; font-size: 12px; padding: 0 2px; }
.pe-order-panel { position: absolute; top: 30px; left: 80px; right: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(15, 23, 42, .14); padding: 8px; max-height: 240px; overflow: auto; }
.pe-order-search { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; font-size: 12px; margin-bottom: 6px; }
.pe-order-list { display: flex; flex-direction: column; gap: 2px; }
.pe-order-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.pe-order-item:hover { background: #f4f7ff; }
.pe-order-item span { display: flex; flex-direction: column; }
.pe-order-item small { color: #667085; font-size: 10.5px; }
.pe-after-file-area { border-style: solid; background: #fff; }

.pe-remark { display: flex; flex-direction: column; gap: 8px; }
.pe-remark-input { height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.pe-tpl-toggle { align-self: flex-start; border: 1px solid var(--line); background: #fff; color: #1d4ed8; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.pe-tpl-toggle:hover { border-color: #93b4f5; }
.pe-tpl-body[hidden] { display: none; }
.pe-tpl-body { border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; display: flex; flex-direction: column; gap: 8px; }
.pe-tpl-list { display: flex; flex-direction: column; gap: 6px; }
.pe-tpl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pe-tpl-text { flex: 1; color: #344054; }
.pe-tpl-ops { display: inline-flex; gap: 6px; }
.pe-tpl-ops button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 11px; color: #475467; cursor: pointer; }
.pe-tpl-ops button:hover { border-color: #93b4f5; color: #1d4ed8; }
.pe-tpl-edit-input { flex: 1; height: 28px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 8px; font-size: 12px; }
.pe-tpl-add { display: flex; gap: 8px; }
.pe-tpl-add input { flex: 1; height: 30px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 8px; font-size: 12px; }
.pe-tpl-manage { display: flex; flex-direction: column; gap: 10px; }

/* 采购计划留言：手动修改标记 + 恢复按钮 */
.pp-remark-wrap { display: flex; align-items: center; gap: 4px; }
.pp-remark-wrap .pp-remark { width: 100%; }
.pp-remark-reset { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 5px; font-size: 11px; color: #1d4ed8; cursor: pointer; white-space: nowrap; }
.pp-remark-reset:hover { border-color: #93b4f5; }
.pp-mode-select { height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #344054; font-size: 12px; padding: 0 6px; cursor: pointer; }
.pp-mode-select:focus { outline: none; border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.pp-need-pair { color: #b42318; font-size: 12px; }
.pp-ref-price { font-variant-numeric: tabular-nums; }
.pp-col-1688price { width: 112px; }
.pp-remark-wrap .pp-remark { flex: 1 1 auto; min-width: 0; width: auto; }
.pe-image-preview { width:120px; min-height:70px; border:1px solid #eee; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.pe-image-preview img { max-width:100%; max-height:100px; }
.pe-extra { margin:8px 0 4px; }
.pe-extra summary { cursor:pointer; color:#667085; font-size:12px; }

.pe-notes { width:100%; min-height:110px; border:1px solid #d0d5dd; padding:8px; font-size:12px; resize:vertical; box-sizing:border-box; }

.product-edit-tab { user-select: text; -webkit-user-select: text; }
.pe-supplier-picker { flex:1; display:flex; flex-direction:column; gap:4px; min-width:0; }
.pe-supplier-picker select { width:100%; }

.product-seq-box { min-width:520px; }
.product-seq-base { font-size:15px; color:#344054; margin-bottom:12px; }
.product-seq-base b { color:#1677ff; font-size:20px; margin-left:6px; }
.product-seq-section { border:1px solid #e4e7ec; padding:10px 12px; margin-bottom:10px; }
.product-seq-section h4 { margin:0 0 8px; font-size:12.5px; color:#475467; }
.product-seq-row { display:flex; align-items:center; gap:8px; min-height:32px; font-size:12.5px; }
.product-seq-row > span:first-child { width:150px; color:#667085; }
.product-seq-row b { font-family:ui-monospace,Menlo,monospace; color:#101828; font-size:13px; }
.product-seq-row .btn { margin-left:auto; }
.product-seq-actions { display:flex; justify-content:flex-end; border-top:1px solid #eee; padding-top:10px; }
.product-variant-choice { display:flex; flex-direction:column; gap:10px; min-width:360px; }
.product-variant-btn { display:flex; flex-direction:column; align-items:flex-start; gap:4px; border:1px solid #d0d5dd; background:#fff; padding:12px 14px; cursor:pointer; border-radius:6px; text-align:left; }
.product-variant-btn:hover { border-color:#1677ff; background:#f5f9ff; }
.product-variant-btn b { font-size:13px; color:#344054; }
.product-variant-btn span { font-family:ui-monospace,Menlo,monospace; color:#1677ff; font-size:13px; }

.product-seq-history-head { display:flex; align-items:center; justify-content:space-between; padding:4px 2px 12px; border-bottom:1px solid #eee; margin-bottom:10px; }
.product-seq-history-head b { color:#1677ff; font-size:18px; }

.product-custom-note { color:#d92d20; font-size:11.5px; line-height:1.6; padding:8px 10px; background:#fff5f4; border:1px solid #fecdca; border-radius:5px; }

/* 全局原则：BYS 所有文字都允许鼠标选中复制 */
html, body, body * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  user-select: text !important;
}
::selection { background: #b2ddff; color: #101828; }

.product-seq-action-box { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.product-seq-warning { color:#d92d20; font-size:11.5px; }

.pe-input-action { flex:1; display:flex; align-items:center; gap:6px; min-width:0; }
.pe-input-action input { flex:1; min-width:0; }
.pe-input-action .btn { flex:0 0 auto; white-space:nowrap; }

.inline-product-input { width:78px; height:26px; border:1px solid #d0d5dd; padding:0 4px; font-size:11.5px; text-align:right; }
.inline-dimensions { display:flex; align-items:center; gap:2px; }
.inline-dimensions .inline-product-input { width:46px; text-align:center; }
.inline-dimensions > span { color:#98a2b3; font-size:11px; }

.product-code-line { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:3px; }
.product-code-line b { font-size:15px; color:#101828; letter-spacing:.2px; }
.product-code-line span { font-size:11.5px; color:#667085; }
.pe-supplier-picker input { width:100%; height:38px; font-size:13px; }

.pe-status-options { display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:#475467; }
.pe-status-options label { display:flex; align-items:center; gap:4px; }
.inline-status-select { height:26px; border:1px solid #d0d5dd; font-size:11.5px; padding:0 4px; background:#fff; }

.pe-supplier-picker { width:100%; }
.pe-supplier-picker input { width:100%; height:32px; font-size:12px; }

.product-linked-cell { display:flex; flex-direction:column; gap:3px; font-size:11.5px; color:#475467; }
.product-linked-cell > span { background:#f2f4f7; border-radius:3px; padding:1px 5px; width:fit-content; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.product-linked-cell { display:flex; flex-direction:column; gap:3px; border:0; background:transparent; padding:0; cursor:pointer; text-align:left; font-size:11.5px; color:#475467; }
.product-linked-item { display:flex; align-items:center; gap:4px; max-width:100%; }
.product-linked-item .product-thumb { width:24px; height:24px; flex:0 0 24px; }
.product-linked-item em { font-style:normal; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.linked-pick-list { display:grid; grid-template-columns:1fr 1fr; gap:6px 18px; max-height:520px; overflow:auto; padding-right:4px; }
.linked-pick-row { display:flex; align-items:center; gap:8px; padding:6px; border:1px solid #eee; border-radius:5px; cursor:pointer; }
.linked-pick-row:hover { background:#f8fafc; }
.linked-pick-row .product-thumb { width:38px; height:38px; flex:0 0 38px; }
.linked-pick-info { display:flex; flex-direction:column; min-width:0; }
.linked-pick-info b { font-size:12px; color:#344054; }
.linked-pick-info small { color:#98a2b3; font-size:10.5px; }

select[name="equipment"][multiple] { min-height:120px; }

.process-equipment-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:8px; max-height:260px; overflow:auto; padding:4px; border:1px solid #eaecf0; }
.process-equipment-item { display:flex; flex-direction:column; align-items:center; gap:3px; border:1px solid #e4e7ec; border-radius:6px; padding:7px 5px; cursor:pointer; position:relative; background:#fff; }
.process-equipment-item.selected { border-color:#1677ff; background:#f0f7ff; }
.process-equipment-item input { position:absolute; top:4px; right:4px; left:auto; width:14px; height:14px; margin:0; accent-color:#1677ff; }
.process-equipment-thumb { width:54px; height:54px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#f2f4f7; border-radius:4px; }
.process-equipment-thumb img { width:100%; height:100%; object-fit:cover; }
.process-equipment-item b { font-size:11.5px; color:#344054; text-align:center; }
.process-equipment-item small { font-size:10px; color:#98a2b3; }

.product-linked-text { display:flex; flex-direction:column; min-width:0; }
.product-linked-text small { color:#98a2b3; font-size:10px; }
.material-picker-detailed .material-option { align-items:flex-start; }
.material-detail-info, .process-detail-info { display:flex; flex-direction:column; min-width:0; gap:2px; }
.material-qty-line { font-size:11px; color:#667085; display:flex; align-items:center; gap:4px; }
.material-qty-line input { width:64px; height:24px; border:1px solid #d0d5dd; padding:0 4px; }
.process-picker-detailed .process-option { align-items:flex-start; }
.process-detail-info span { font-size:10.5px; color:#667085; }
.linked-pick-qty { display:flex; align-items:center; gap:4px; font-size:11px; color:#667085; }
.linked-pick-qty input { width:72px; height:24px; border:1px solid #d0d5dd; padding:0 4px; }

.linked-material-list { grid-template-columns:1fr; }
.linked-pick-material { align-items:flex-start; }
.linked-pick-material .product-thumb { width:46px; height:46px; flex:0 0 46px; }
.linked-material-code { display:inline-block; font-size:14px; font-weight:700; color:#101828; letter-spacing:.2px; margin-bottom:2px; }
.linked-material-name { font-size:13px; color:#344054; margin-bottom:4px; }
.linked-cost-formula { display:flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:11.5px; color:#667085; }
.linked-cost-formula input { width:58px; height:24px; border:1px solid #d0d5dd; padding:0 4px; font-size:11.5px; }
.linked-cost-formula strong { color:#101828; }

.process-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.process-section-head h2 { margin:0; font-size:20px; }

.process-section-head { margin-top: 24px; }

.process-page-sections { display:flex; flex-direction:column; gap:18px; }
.process-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.process-title-inline { display:flex; align-items:baseline; gap:12px; }
.process-title-inline h2 { margin:0; font-size:20px; }

.material-stats-toolbar { background:#f8fafc; border-bottom:1px solid #eaecf0; margin:-4px -12px 8px; padding:8px 12px; }
.material-stats-inline { display:flex; align-items:center; gap:20px; flex-wrap:wrap; font-size:12px; color:#667085; }
.material-stats-inline b { color:#101828; font-weight:700; margin-left:3px; }
.material-code-top { font-size:16px; font-weight:800; color:#101828; letter-spacing:.3px; margin-bottom:2px; }
.material-card-full { grid-template-columns:130px minmax(0,1fr); gap:12px; padding:10px; }
.material-card-full .entity-media .product-thumb { width:96px; height:96px; font-size:28px; }
.material-card-full .entity-fields { grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:6px 10px; margin-top:8px; padding:8px 10px; }
.material-card-full .entity-head h3 { font-size:17px; }
.material-card-full .entity-section { margin-top:7px; }
.material-card-full .entity-actions { margin-top:7px; padding-top:7px; }
.material-safety-edit { display:flex; align-items:center; gap:5px; color:#667085; font-size:11.5px; }
.material-safety-edit input { width:80px; height:26px; border:1px solid #d0d5dd; padding:0 4px; font-size:12px; }

.material-shell { padding:0 12px 10px; }
.material-topbar { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:10px 0 8px; border-bottom:1px solid #eaecf0; margin:0 -12px 8px; padding-left:12px; padding-right:12px; }
.material-topbar .material-cats { margin:0; flex:0 0 auto; }
.material-topbar .material-tabs { margin:0; flex:0 0 auto; }
.material-topbar .material-stats-inline { margin-left:auto; flex-wrap:nowrap; }
.material-actions { flex:0 0 auto; margin-left:4px; }
.material-list-panel { padding-top:2px; }
.material-stock-field { grid-column:span 2; min-width:260px; }
.material-stock-field .entity-stock { justify-content:flex-start; }

.material-topbar .toolbar-count { margin-left:6px; white-space:nowrap; }

.material-process-field { grid-column:span 3; min-width:320px; }
.material-process-field .process-chips { margin-top:3px; }

.material-notes-field { grid-column:span 3; min-width:320px; }
.material-notes-field p { margin:2px 0 0; font-size:12px; color:#667085; line-height:1.5; }

.material-info-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:8px; }
.material-info-group { border:1px solid #eaecf0; border-radius:6px; padding:7px 9px; background:#fbfcfe; min-width:0; }
.material-info-group h4 { margin:0 0 6px; font-size:11px; color:#667085; font-weight:700; }
.material-info-item { display:flex; gap:6px; align-items:baseline; min-width:0; margin-bottom:4px; }
.material-info-item span { flex:0 0 70px; font-size:10.5px; color:#98a2b3; }
.material-info-item b { font-size:12px; color:#344054; font-weight:600; overflow-wrap:anywhere; }
.material-stock-item b { font-size:13px; color:#101828; }
.material-safety-line { display:flex; align-items:center; gap:4px; font-size:11px; color:#667085; margin-top:4px; flex-wrap:wrap; }
.material-safety-line input { width:64px; height:24px; border:1px solid #d0d5dd; padding:0 4px; font-size:11.5px; }
.material-process-link { display:flex; flex-direction:column; align-items:flex-start; gap:4px; border:0; background:transparent; padding:0; cursor:pointer; text-align:left; width:100%; }
.material-process-link > span { font-size:10.5px; color:#98a2b3; }
.material-process-link > b { font-weight:400; width:100%; }
.material-notes-line { margin-top:6px; }
.material-notes-line b { font-weight:400; color:#667085; }
@media (max-width:1400px) { .material-info-groups { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .material-info-groups { grid-template-columns:1fr; } }

.material-topbar .material-top-search { flex:0 1 280px; min-width:200px; }
.material-topbar .material-top-check { flex:0 0 auto; white-space:nowrap; }
.material-info-groups { grid-template-columns:repeat(5,minmax(0,1fr)); }
.material-info-group .material-notes-line { margin-top:0; }
@media (max-width:1600px) { .material-info-groups { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.material-topbar { align-items:center; }
.material-topbar .material-top-search { height:34px; box-sizing:border-box; display:flex; align-items:center; }
.material-topbar .material-top-search input { height:30px; }
.material-topbar .material-top-check { height:34px; display:flex; align-items:center; gap:5px; }
.material-topbar .material-cats { display:flex; align-items:center; gap:4px; }
.material-topbar .material-cat { height:34px; display:inline-flex; align-items:center; box-sizing:border-box; }
.material-topbar .material-tabs { align-items:center; height:34px; }
.material-topbar .material-tabs .tab { height:34px; display:inline-flex; align-items:center; box-sizing:border-box; }
.material-topbar .btn { height:34px; display:inline-flex; align-items:center; box-sizing:border-box; }

.product-linked-total { margin-top:4px; font-size:10.5px; color:#1677ff; font-weight:600; }
.product-linked-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(4,auto); grid-auto-flow:column; gap:3px 6px; width:100%; }
.product-linked-mini { display:flex; align-items:center; gap:2px; min-width:0; }
.product-linked-mini .product-thumb { width:18px; height:18px; flex:0 0 18px; }
.product-linked-mini > span:last-child { display:flex; flex-direction:column; min-width:0; line-height:1.25; }
.product-linked-mini em { font-style:normal; font-size:9.5px; color:#344054; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-linked-mini small { font-size:9px; color:#1677ff; }
.product-compact-table tbody tr { height:124px; }
.product-compact-table tbody td { height:124px; }

.product-compact-table { min-width:1500px; }
.product-compact-table th:nth-child(1) { width:90px; }
.product-compact-table th:nth-child(2) { width:18%; }
.product-compact-table th:nth-child(3) { width:16%; }
.product-compact-table th:nth-child(4) { width:16%; }
.product-compact-table th:nth-child(5) { width:7%; }
.product-compact-table th:nth-child(6) { width:8%; }
.product-compact-table th:nth-child(7) { width:8%; }
.product-compact-table th:nth-child(8) { width:8%; }
.product-compact-table th:nth-child(9) { width:7%; }
.product-compact-table th:nth-child(10) { width:7%; }
.product-compact-table th:nth-child(11) { width:55px; }

.material-form-groups { display:flex; flex-direction:column; gap:12px; }
.material-form-group { border:1px solid #eaecf0; border-radius:7px; padding:10px 12px; }
.material-form-group h4 { margin:0 0 8px; font-size:12px; color:#475467; }
.material-current-stock { height:32px; display:flex; align-items:center; padding:0 8px; border:1px solid #eaecf0; background:#f8fafc; font-weight:700; color:#101828; font-size:14px; }

.material-cats-tabs { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.material-cats-tabs .material-cats, .material-cats-tabs .material-tabs { display:flex; align-items:center; height:34px; margin:0; }
.material-topbar .material-cat, .material-topbar .material-tabs .tab { height:34px; display:inline-flex; align-items:center; box-sizing:border-box; }
.material-head-right { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:0 0 auto; }
.material-head-actions { display:flex; align-items:center; gap:5px; flex-wrap:wrap; justify-content:flex-end; }

/* 物料顶部：分类与页签严格同高同基线 */
.material-topbar .material-cats { padding:0; margin:0; height:34px; align-items:center; flex-wrap:nowrap; }
.material-cats-tabs { align-items:center; }
.material-cats-tabs .material-tabs { padding:0 2px; margin:0; height:34px; align-items:center; background:#f2f4f8; border-radius:8px; box-sizing:border-box; }
.material-cats-tabs .material-tabs .tab { height:34px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }
.material-topbar .material-cat { height:34px; display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; }

.login {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .74) 0%, rgba(4, 10, 20, .34) 48%, rgba(4, 10, 20, .58) 100%),
    url('/assets/login-bys.jpg?v=7.5.0') center center / cover no-repeat;
}

/* 登录页：只保留背景图，不加暗色遮罩，不显示网格线 */
.login {
  background: url('/assets/login-bys.jpg?v=7.5.1') center center / cover no-repeat !important;
}
.login-grid-bg { display: none !important; }

.tool-plugin-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:14px; }
.tool-plugin-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; display:flex; gap:12px; }
.tool-plugin-icon { width:40px; height:40px; border-radius:10px; background:#eef4ff; color:#1677ff; display:flex; align-items:center; justify-content:center; flex:0 0 40px; }
.tool-plugin-card h3 { margin:0 0 5px; font-size:14px; }
.tool-plugin-card p { margin:0 0 8px; color:#667085; font-size:12px; line-height:1.6; }

/* 顶部导航紧凑布局：为后续增加 3-5 个模块预留空间，顺序不变 */
.topnav-inner {
  height: 56px;
  padding: 0 16px;
  gap: 10px;
}
.brand .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
.brand-text strong { font-size: 15px; }
.brand-text span { font-size: 9px; letter-spacing: .3px; }

.nav.nav-top { gap: 0; }
.nav-top .nav-item {
  padding: 7px 8px;
  font-size: 13px;
  border-radius: 7px;
}
.nav-top .nav-item .ic { width: 13px; height: 13px; }
.top-actions { gap: 4px; }
.host-pill { max-width: 145px; font-size: 10px; padding: 3px 7px; }
.sync-pill { font-size: 10px; padding: 3px 7px; }

@media (max-width: 1500px) {
  .topnav-inner { padding: 0 12px; gap: 8px; }
  .nav-top .nav-item { padding: 6px 6px; font-size: 12.5px; }
  .nav-top .nav-item .ic { width: 12px; height: 12px; }
  .brand-text span { display: none; }
}

.edit-pair-formula { display:flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:11px; color:#667085; }
.edit-pair-formula input { width:54px; height:24px; border:1px solid #d0d5dd; padding:0 4px; font-size:11px; }
.edit-pair-formula strong { color:#101828; }
.material-option, .process-option { align-items:flex-start !important; }

/* 编辑商品：关联物料/工艺按整行排列，不使用团块布局 */
.material-picker-detailed,
.process-picker-detailed {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  max-height: 420px;
}
.material-picker-detailed .material-option,
.process-picker-detailed .process-option {
  display: flex;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
  padding: 7px 10px;
}
.material-picker-detailed .material-option > input,
.process-picker-detailed .process-option > input { flex: 0 0 auto; }
.material-picker-detailed .material-detail-info,
.process-picker-detailed .process-detail-info { flex: 1; min-width: 0; }
.material-picker-detailed .edit-pair-formula,
.process-picker-detailed .edit-pair-formula { width: 100%; }

/* 商品编辑关联页：不使用内部滚动条，滚动交给整个弹窗右侧 */
.material-picker.material-picker-detailed,
.process-picker.process-picker-detailed {
  width: 100%;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}
.material-picker-detailed .material-option,
.process-picker-detailed .process-option { width: 100%; box-sizing: border-box; }

/* 关联物料/工艺公式强制单行横向排列 */
.material-picker-detailed .edit-pair-formula,
.process-picker-detailed .edit-pair-formula {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 4px;
  width: 100%;
  white-space: nowrap;
}
.material-picker-detailed .edit-pair-formula input,
.process-picker-detailed .edit-pair-formula input {
  width: 58px;
  flex: 0 0 58px;
}

.pair-picker-wrap { width:100%; }
.pair-search { display:flex; align-items:center; margin:0 0 8px; }
.pair-search input { width:100%; height:34px; border:1px solid #d0d5dd; border-radius:6px; padding:0 10px; font-size:12px; background:#fff; }
.pair-search input:focus { outline:none; border-color:#84adff; box-shadow:0 0 0 3px #eff4ff; }

.product-status-filter { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12px; color:#475467; }
.product-status-filter > span { color:#667085; white-space:nowrap; }
.product-status-filter label { display:inline-flex; align-items:center; gap:3px; cursor:pointer; white-space:nowrap; }
.product-status-filter input { width:14px; height:14px; accent-color:#1677ff; margin:0; }

.combo-add-line { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.combo-add-line select { max-width:420px; height:32px; border:1px solid #d0d5dd; padding:0 8px; font-size:12px; }
.combo-list { display:flex; flex-direction:column; gap:0; }
.combo-item { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px dashed #eaecf0; }
.combo-thumb { width:72px; height:72px; border-radius:6px; overflow:hidden; background:#f2f4f7; display:flex; align-items:center; justify-content:center; flex:0 0 72px; }
.combo-thumb img { width:100%; height:100%; object-fit:cover; }
.combo-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.combo-info b { font-size:12px; color:#344054; }
.combo-info small { font-size:11.5px; color:#667085; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.combo-qty { display:flex; align-items:center; gap:8px; font-size:12px; color:#475467; white-space:nowrap; }
.combo-qty input { width:90px; height:30px; border:1px solid #d0d5dd; padding:0 6px; }
.combo-remove { width:24px; height:24px; border-radius:50%; border:0; background:#1677ff; color:#fff; cursor:pointer; font-size:16px; line-height:1; }
.combo-empty { color:#98a2b3; font-size:12px; padding:18px 4px; }

.combo-search-wrap { position:relative; flex:1; max-width:560px; }
.combo-search-wrap input { width:100%; height:32px; border:1px solid #d0d5dd; padding:0 9px; font-size:12px; box-sizing:border-box; }
.combo-search-results { display:none; position:absolute; left:0; right:0; top:34px; z-index:5; background:#fff; border:1px solid #e4e7ec; border-radius:7px; box-shadow:0 12px 30px rgba(16,24,40,.14); max-height:260px; overflow:auto; }
.combo-search-results.show { display:block; }
.combo-result { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; border:0; border-bottom:1px solid #f2f4f7; background:#fff; padding:7px 9px; cursor:pointer; text-align:left; }
.combo-result:hover { background:#f5f9ff; }
.combo-result b { font-size:11.5px; color:#101828; }
.combo-result span { font-size:11.5px; color:#344054; }
.combo-result small { font-size:10px; color:#98a2b3; }
.combo-result-empty { padding:10px; font-size:11px; color:#98a2b3; }

.product-kind-label { display:inline-flex; align-items:center; height:18px; padding:0 6px; border-radius:4px; font-size:10px; font-weight:600; margin:3px 0 2px; }
.product-kind-label.single { background:#f2f4f7; color:#667085; }
.product-kind-label.bundle { background:#eef4ff; color:#1d4ed8; border:1px solid #dbe8ff; }

.product-combo-filter { display:inline-flex; align-items:center; gap:10px; margin-left:14px; padding-left:14px; border-left:1px solid #e4e7ec; }
.product-combo-filter > span { color:#667085; }
.product-combo-filter label { display:inline-flex; align-items:center; gap:4px; }
.product-status-filter .product-combo-filter input[type="checkbox"] { width:15px; height:15px; border-radius:3px; accent-color:#1677ff; }

/* 所有搜索框：右侧统一搜索按钮，商品管理搜索框缩短 */
.search .bys-search-submit,
.pair-search .bys-search-submit,
.combo-search-wrap .bys-search-submit {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  margin-left: 3px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.bys-search-submit { vertical-align: middle; }
/* 搜索按钮统一在输入框内部右侧：包裹输入框，按钮绝对定位在框内 */
.bys-search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.bys-search-field > input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 66px !important;
}
.bys-search-field > .bys-search-submit,
.bys-search-field > .bys-search-static {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  min-width: 48px;
  padding: 0 10px;
  margin: 0;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 2;
}
.bys-search-field > .bys-search-static { pointer-events: auto; }
.supplier-search-field { flex: 0 1 360px; max-width: 360px; }
.supplier-search-field > input { height: 30px; }
.bys-search-field.purchase-search-field { flex: 1 1 560px; max-width: 560px; }
.bys-search-field.purchase-search-field > input { height: 34px; }
.product-filter-row .search { flex: 0 1 420px; min-width: 280px; max-width: 420px; }

/* 需求单管理：筛选行单行显示，操作按钮紧挨“共 N 单”左侧 */
.orders-toolbar { flex-wrap: nowrap; overflow-x: auto; }
.orders-toolbar .search { flex: 0 1 520px; min-width: 360px; }
.orders-toolbar .order-head-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.orders-toolbar .order-head-actions .btn { flex: none; white-space: nowrap; }
.orders-toolbar .toolbar-count { margin-left: 0; flex: none; white-space: nowrap; }
@media (max-width: 1400px) {
  .orders-toolbar { flex-wrap: wrap; overflow-x: visible; }
  .orders-toolbar .search { flex: 1 1 100%; min-width: 0; max-width: none; }
  .orders-toolbar .order-head-actions { flex: 0 1 auto; min-width: 0; margin-left: 0; flex-wrap: wrap; }
}

.product-title-block { display:flex; flex-direction:row; align-items:baseline; gap:10px; flex:0 0 auto; }
.product-title-block h2 { margin:0; font-size:20px; }
.product-title-block span { color:#667085; font-size:12px; }
.product-search-area { display:flex; flex-direction:column; align-items:stretch; gap:6px; flex:0 0 auto; }
.product-search-area .search-dims { display:flex; flex-wrap:nowrap; width:max-content; margin:0; }
.product-search-area .search { width:100%; min-width:0; max-width:none; box-sizing:border-box; }
.product-action-row { justify-content:flex-end; }
.product-action-row .toolbar-count { margin-left:0; margin-right:auto; }

/* 商品管理头部重新排版 */
.product-filter-panel { padding:12px 14px 10px; }
.product-toolbar-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:10px; border-bottom:1px solid #f0f2f5; }
.product-toolbar-head .product-head-actions { margin-left:auto; display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.product-controls-row { display:flex; align-items:flex-start; gap:18px; flex-wrap:wrap; padding-top:10px; }
.product-controls-row .product-status-filter { margin-left:auto; }
.product-title-block h2 { font-size:21px; }
.product-title-block span { margin-top:0; }
.product-search-area { max-width:100%; }
.product-search-area .search { background:#fff; }

/* 商品管理：搜索维度 + 状态筛选同一行，搜索框宽度到“组合产品”右边缘 */
.product-controls-row { display:block; padding-top:10px; }
.product-controls-box { display:flex; flex-direction:column; gap:8px; width:fit-content; max-width:100%; }
.product-controls-line { display:flex; align-items:center; gap:16px; flex-wrap:nowrap; }
.product-controls-line .product-status-filter { margin-left:0; flex:none; }
.product-controls-box > .search { width:100%; box-sizing:border-box; min-width:0; max-width:none; }

.supplier-product-sub { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.supplier-other-sku { color:#1677ff; font-size:10.5px; background:#eef4ff; border-radius:4px; padding:1px 5px; }

/* 供应商编辑：基础信息与联系信息合并为一个整体布局 */
.supplier-profile-unified { display:grid; grid-template-columns:1.08fr 1fr; gap:16px; }
.supplier-profile-column { border:1px solid #eaecf0; border-radius:9px; padding:13px 14px; background:#fcfdff; }
.supplier-profile-column h4 { margin:0 0 12px; font-size:13px; color:#344054; font-weight:700; }
.supplier-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px 14px; }
.sp-field { display:flex; flex-direction:column; gap:4px; font-size:11px; color:#667085; min-width:0; }
.sp-field > span { color:#667085; }
.sp-field.span2 { grid-column:1/-1; }
.sp-field.required > span::before { content:'*'; color:#d92d20; margin-right:2px; }
.sp-field input, .sp-field select, .sp-field textarea { width:100%; height:34px; border:1px solid #d0d5dd; border-radius:6px; padding:0 9px; font-size:12.5px; color:#101828; background:#fff; box-sizing:border-box; }
.sp-field textarea { height:78px; padding:8px 9px; resize:vertical; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline:none; border-color:#84adff; box-shadow:0 0 0 3px #eff4ff; }
.sp-link-field { justify-content:flex-end; }
.sp-link-field .sp-link { height:34px; border:1px dashed #b2ddff; border-radius:6px; color:#1677ff; background:#f5f9ff; cursor:pointer; font-size:12px; }
@media (max-width:900px){ .supplier-profile-unified{grid-template-columns:1fr} }

/* 供应商编辑：基础信息和联系信息放在同一个信息框内 */
.supplier-profile-unified {
  border: 1px solid #eaecf0;
  border-radius: 9px;
  padding: 14px 16px;
  background: #fcfdff;
  gap: 0;
}
.supplier-profile-unified .supplier-profile-column {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.supplier-profile-unified .supplier-profile-column + .supplier-profile-column {
  border-left: 1px solid #eaecf0;
  padding-left: 18px;
  margin-left: 2px;
}
@media (max-width: 900px) {
  .supplier-profile-unified .supplier-profile-column + .supplier-profile-column {
    border-left: 0;
    border-top: 1px solid #eaecf0;
    padding-left: 0;
    margin-left: 0;
    padding-top: 12px;
  }
}

.supplier-settlement-options { display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:12.5px; color:#475467; min-height:34px; }
.supplier-settlement-options label { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.supplier-settlement-options input { width:15px; height:15px; accent-color:#1677ff; margin:0; }

.supplier-payment-section, .supplier-platform-section { margin-top:14px; }
.supplier-payment-list { display:flex; flex-direction:column; gap:0; }
.supplier-payment-row { display:grid; grid-template-columns:130px minmax(0,1fr); gap:12px; padding:11px 4px; border-bottom:1px dashed #eaecf0; }
.supplier-payment-row:last-child { border-bottom:0; }
.supplier-pay-name { display:flex; align-items:flex-start; gap:6px; font-size:12.5px; color:#344054; font-weight:600; padding-top:8px; }
.supplier-pay-name input { width:15px; height:15px; accent-color:#1677ff; margin-top:1px; }
.supplier-pay-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px 12px; }
.supplier-pay-fields label { display:flex; flex-direction:column; gap:4px; font-size:11px; color:#667085; }
.supplier-pay-fields input { width:100%; height:32px; border:1px solid #d0d5dd; border-radius:6px; padding:0 8px; font-size:12px; }
.supplier-qr-box { display:flex; flex-direction:column; gap:4px; font-size:11px; color:#667085; }
.supplier-qr-preview { width:76px; height:76px; border:1px dashed #d0d5dd; border-radius:6px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#fbfcfe; }
.supplier-qr-preview img { width:100%; height:100%; object-fit:contain; }
.supplier-qr-preview small { color:#98a2b3; font-size:10px; }
.supplier-pay-cash { color:#98a2b3; font-size:11px; align-items:center; }
.supplier-platform-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
@media (max-width:900px){ .supplier-payment-row{grid-template-columns:1fr} .supplier-pay-fields{grid-template-columns:1fr 1fr} .supplier-platform-grid{grid-template-columns:1fr} }

.supplier-license-field { margin-top:4px; }
.supplier-license-preview { width:140px; height:100px; border:1px dashed #d0d5dd; border-radius:6px; display:flex; align-items:center; justify-content:center; overflow:hidden; background:#fbfcfe; }
.supplier-license-preview img { width:100%; height:100%; object-fit:contain; }
.supplier-license-preview small { color:#98a2b3; font-size:10px; }

/* 付款信息卡片化，减少拥挤 */
.supplier-payment-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.supplier-payment-row { display:flex; flex-direction:column; gap:9px; border:1px solid #eaecf0; border-radius:8px; padding:11px 12px; background:#fff; }
.supplier-payment-row:last-child { border-bottom:1px solid #eaecf0; }
.supplier-pay-name { display:flex; align-items:center; gap:7px; font-size:12.5px; color:#344054; font-weight:700; padding-top:0; border-bottom:1px solid #f2f4f7; padding-bottom:8px; }
.supplier-pay-name input { width:15px; height:15px; accent-color:#1677ff; margin:0; }
.supplier-pay-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; }
.supplier-qr-box { grid-column:span 2; }
.supplier-pay-cash { display:flex; align-items:center; min-height:50px; color:#98a2b3; font-size:11px; }
@media (max-width:1100px){ .supplier-payment-list{grid-template-columns:1fr} }

/* 供应商图片上传按钮统一美化 */
.supplier-upload-btn { display:inline-flex; align-items:center; justify-content:center; height:30px; padding:0 11px; border:1px solid #b2ddff; border-radius:6px; background:#eff8ff; color:#1570ef; font-size:11.5px; cursor:pointer; font-weight:600; width:max-content; }
.supplier-upload-btn:hover { background:#d1e9ff; border-color:#84caff; }
.supplier-upload-hint { display:block; color:#98a2b3; font-size:10px; font-style:normal; margin-top:3px; }
.supplier-qr-box { display:flex; flex-direction:column; gap:5px; }
.supplier-qr-preview { width:120px; height:120px; border:1px solid #eaecf0; border-radius:8px; background:#fbfcfe; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.supplier-qr-preview img { width:100%; height:100%; object-fit:contain; }
.supplier-license-upload { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.supplier-license-preview { width:180px; height:120px; border:1px solid #eaecf0; border-radius:8px; background:#fbfcfe; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.supplier-license-preview img { width:100%; height:100%; object-fit:contain; }

/* 营业执照粘贴区域：和收款码一样有明确的虚线边界与聚焦高亮 */
.supplier-license-upload[data-license-box] {
  padding:10px;
  border:1px dashed #d0d5dd;
  border-radius:8px;
  background:#fbfcfe;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.supplier-license-upload[data-license-box]:hover { border-color:#84caff; background:#f7fbff; }
.supplier-license-upload[data-license-box]:focus { outline:2px solid #84caff; outline-offset:2px; box-shadow:0 0 0 3px rgba(132,202,255,.18); }
.inline-license[data-supplier-license-box] {
  width:max-content;
  max-width:100%;
  padding:6px 8px;
  border:1px dashed #d0d5dd;
  border-radius:6px;
  background:#fbfcfe;
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.inline-license[data-supplier-license-box]:hover { border-color:#84caff; }
.inline-license[data-supplier-license-box]:focus { outline:2px solid #84caff; outline-offset:2px; box-shadow:0 0 0 3px rgba(132,202,255,.16); }

.supplier-small-note { min-height:42px; height:42px; }

.supplier-performance-section { margin-top:14px; }
.supplier-performance-list { display:flex; flex-direction:column; gap:8px; }
.supplier-score-row { display:grid; grid-template-columns:170px minmax(0,1fr) 52px; align-items:center; gap:10px; }
.supplier-score-label { color:#475467; font-size:12px; }
.supplier-score-range { width:100%; height:22px; accent-color:#05603a; cursor:pointer; }
.supplier-score-row output { font-size:11.5px; color:#667085; text-align:right; font-variant-numeric:tabular-nums; }
.supplier-score-service { border:1px solid #eaecf0; border-radius:7px; padding:8px 10px; display:flex; flex-direction:column; gap:7px; background:#fbfcfe; }
.supplier-score-service-title { color:#344054; font-size:12px; font-weight:600; }
.supplier-score-service-title small { color:#98a2b3; font-weight:400; margin-left:5px; }
.supplier-score-row.sub { grid-template-columns:150px minmax(0,1fr) 52px; padding-left:10px; }
.supplier-score-row.sub .supplier-score-label { color:#667085; font-size:11.5px; }
.supplier-score-legend { display:flex; justify-content:space-between; margin:2px 84px 0 180px; color:#98a2b3; font-size:10px; }
@media(max-width:900px){ .supplier-score-row{grid-template-columns:120px minmax(0,1fr) 48px} .supplier-score-row.sub{grid-template-columns:110px minmax(0,1fr) 48px} .supplier-score-legend{margin-left:130px;margin-right:58px} }

.supplier-tax-point { display:inline-flex; align-items:center; gap:5px; margin-left:14px; padding-left:14px; border-left:1px solid #e4e7ec; color:#667085; font-size:12px; }
.supplier-tax-point input { width:82px; height:30px; border:1px solid #d0d5dd; border-radius:6px; padding:0 7px; font-size:12px; }

.supplier-summary-row > td { background:#fbfcfe; padding:0 10px 10px; border-bottom:1px solid #eaecf0; }
.supplier-summary-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.supplier-summary-box { border:1px solid #eaecf0; border-radius:8px; padding:10px 12px; background:#fff; }
.supplier-summary-box h5 { margin:0 0 8px; font-size:12px; color:#344054; }
.supplier-summary-scores { display:flex; flex-direction:column; gap:4px; }
.summary-score { display:grid; grid-template-columns:88px 1fr 38px; align-items:center; gap:6px; font-size:10.5px; color:#667085; }
.summary-score-bar { height:5px; background:#f2f4f7; border-radius:999px; overflow:hidden; }
.summary-score-bar i { display:block; height:100%; border-radius:999px; }
.summary-score em { font-style:normal; text-align:right; font-size:10px; }
.supplier-summary-payments { display:flex; flex-direction:column; gap:5px; font-size:11px; }
.supplier-summary-payments > div { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:center; }
.supplier-summary-payments b { font-size:10.5px; color:#344054; }
.supplier-summary-payments span { color:#667085; }
.supplier-summary-payments small { color:#98a2b3; width:100%; }
.summary-qr { width:34px; height:34px; object-fit:contain; border:1px solid #eaecf0; border-radius:4px; }
.supplier-summary-platforms { display:grid; grid-template-columns:1fr 1fr; gap:5px 10px; font-size:11px; }
.supplier-summary-platforms > div { display:flex; gap:6px; align-items:center; }
.supplier-summary-platforms span { color:#667085; }
.supplier-summary-platforms a { color:#1677ff; }
.supplier-score-range { accent-color:#12b76a; }
@media(max-width:1200px){ .supplier-summary-grid{grid-template-columns:1fr} }

.supplier-inline-input { width:100%; height:30px; border:1px solid #d0d5dd; border-radius:6px; padding:0 7px; font-size:12px; background:#fff; }
select.supplier-inline-input { padding:0 5px; }
.supplier-summary-grid.four { grid-template-columns:1.15fr 1.35fr 1fr 1.1fr; }
.supplier-summary-box h5 small { color:#98a2b3; font-weight:400; font-size:10px; margin-left:5px; }
.summary-score-range { width:100%; height:18px; accent-color:#12b76a; }
.summary-score { grid-template-columns:78px minmax(40px,1fr) 34px; font-size:10px; }
.supplier-inline-payments { display:flex; flex-direction:column; gap:6px; }
.inline-pay { border-bottom:1px dashed #f2f4f7; padding-bottom:5px; }
.inline-pay:last-child { border-bottom:0; }
.inline-pay > label { display:flex; align-items:center; gap:5px; font-size:10.5px; font-weight:600; color:#344054; margin-bottom:4px; }
.inline-pay > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.inline-pay input[type=text], .inline-pay input:not([type]) { width:100%; height:26px; border:1px solid #d0d5dd; border-radius:5px; padding:0 5px; font-size:10.5px; }
.inline-qr { display:flex; align-items:center; gap:4px; font-size:10px; color:#1677ff; cursor:pointer; }
.inline-qr img { width:24px; height:24px; object-fit:contain; border:1px solid #eaecf0; border-radius:3px; }
.supplier-inline-platforms { display:flex; flex-direction:column; gap:5px; }
.supplier-inline-platforms > div { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:5px; font-size:10.5px; color:#667085; }
.supplier-inline-platforms input { height:26px; border:1px solid #d0d5dd; border-radius:5px; padding:0 5px; font-size:10.5px; width:100%; }
.supplier-inline-tax { display:flex; flex-direction:column; gap:6px; font-size:10.5px; color:#667085; }
.inline-tax-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.inline-tax-row label { display:inline-flex; align-items:center; gap:3px; }
.inline-tax-row input { accent-color:#1677ff; }
.inline-tax-line { display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:5px; }
.inline-tax-line input { height:26px; border:1px solid #d0d5dd; border-radius:5px; padding:0 5px; font-size:10.5px; width:100%; }
.inline-license { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.inline-license span { width:48px; }
.inline-license img { width:34px; height:26px; object-fit:contain; border:1px solid #eaecf0; border-radius:3px; }
.inline-license em { color:#98a2b3; font-style:normal; font-size:10px; }

.supplier-inline-field { display:flex; flex-direction:column; gap:3px; min-width:90px; }
.supplier-inline-field > span { font-size:9.5px; color:#98a2b3; white-space:nowrap; }
.supplier-url-line { display:flex; align-items:center; gap:4px; min-width:0; }
.supplier-url-line input { flex:1; min-width:0; }
.supplier-url-open { flex:0 0 auto; height:26px; padding:0 6px; border:1px solid #b2ddff; border-radius:5px; background:#eff8ff; color:#1570ef; cursor:pointer; font-size:10px; }
.supplier-url-open:hover { background:#d1e9ff; }
.inline-qr img { width:54px; height:54px; object-fit:contain; border:1px solid #d0d5dd; border-radius:5px; transition:transform .18s ease; position:relative; z-index:2; }
.inline-qr img:hover { transform:scale(2.4); z-index:20; box-shadow:0 8px 24px rgba(16,24,40,.18); }
.inline-license img { width:54px; height:38px; object-fit:contain; border:1px solid #d0d5dd; border-radius:4px; transition:transform .18s ease; position:relative; z-index:2; }
.inline-license img:hover { transform:scale(2.8); z-index:20; box-shadow:0 8px 24px rgba(16,24,40,.18); }
.supplier-inline-payments { grid-template-columns:1fr 1fr; display:grid; }

/* 付款信息：公户/银行卡/现金占整行，支付宝与微信并排 */
.supplier-inline-payments { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.inline-pay:nth-child(1), .inline-pay:nth-child(4), .inline-pay:nth-child(5) { grid-column:1/-1; }
.inline-pay:nth-child(2), .inline-pay:nth-child(3) { min-width:0; }
.inline-qr { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.inline-qr-file { color:#1677ff; cursor:pointer; font-size:10px; }
.inline-qr img { width:64px; height:64px; object-fit:contain; border:1px solid #d0d5dd; border-radius:5px; transition:transform .18s ease; position:relative; z-index:2; }
.inline-qr img:hover { transform:scale(3.4); z-index:20; box-shadow:0 8px 24px rgba(16,24,40,.22); }
.inline-qr button, .inline-license button, .supplier-image-delete { border:0; background:transparent; color:#b42318; cursor:pointer; font-size:10px; padding:0; }
.inline-license img:hover { transform:scale(3.2); }

/* 评分滑动条：左侧填充黄色，右侧透明，滑块按档位变色 */
input[type="range"].supplier-score-range,
input[type="range"].summary-score-range {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, #eaaa08 0 var(--score-pct, 50%), transparent var(--score-pct, 50%) 100%);
  outline: none;
}
input[type="range"].supplier-score-range::-webkit-slider-thumb,
input[type="range"].summary-score-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--score-color, #eaaa08);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(16,24,40,.25);
  cursor: pointer;
}
input[type="range"].supplier-score-range::-moz-range-thumb,
input[type="range"].summary-score-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--score-color, #eaaa08);
  border: 2px solid #fff;
  cursor: pointer;
}
.supplier-inline-payments { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.inline-pay:nth-child(1), .inline-pay:nth-child(2) { grid-column:1/-1; }
.inline-pay:nth-child(3), .inline-pay:nth-child(4) { min-width:0; }

/* 供应商付款信息：公户/银行卡整行，支付宝/微信并排 */
.supplier-payment-list .supplier-payment-row:nth-child(1),
.supplier-payment-list .supplier-payment-row:nth-child(2) { grid-column:1/-1; }
.supplier-payment-list .supplier-payment-row:nth-child(3),
.supplier-payment-list .supplier-payment-row:nth-child(4) { min-width:0; }

/* 评分条整条渐变，滑块保持中性白色 */
input[type="range"].supplier-score-range,
input[type="range"].summary-score-range {
  background: linear-gradient(to right, #991b1b 0%, #dc2626 23%, #a3a33a 50%, #65a30d 77%, #12b76a 100%) !important;
}
input[type="range"].supplier-score-range::-webkit-slider-thumb,
input[type="range"].summary-score-range::-webkit-slider-thumb {
  background: #fff !important;
  border: 2px solid #344054 !important;
}
input[type="range"].supplier-score-range::-moz-range-thumb,
input[type="range"].summary-score-range::-moz-range-thumb {
  background: #fff !important;
  border: 2px solid #344054 !important;
}
/* 支付宝/微信明确左右并列 */
.supplier-payment-pair { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.supplier-payment-pair .supplier-payment-row { min-width:0; }
.inline-pay-pair { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.inline-pay-pair .inline-pay { min-width:0; border-bottom:0; padding-bottom:0; }
.supplier-inline-payments { display:flex; flex-direction:column; gap:8px; }
.supplier-inline-payments > .inline-pay { width:100%; }

.supplier-payment-pair .supplier-payment-row { grid-column:auto !important; }
.inline-pay-pair .inline-pay { grid-column:auto !important; }

.supplier-code-label { font-size:9.5px; color:#98a2b3; margin-bottom:2px; }
.supplier-code-value { font-size:12px; color:#344054; font-weight:600; word-break:break-all; }
.supplier-tax-toggle { height:26px; min-width:34px; padding:0 7px; border-radius:5px; border:1px solid #d0d5dd; background:#fff; color:#667085; cursor:pointer; font-size:11px; }
.supplier-tax-toggle.on { background:#ecfdf3; border-color:#abefc6; color:#067647; }
.supplier-tax-toggle.off { background:#f2f4f7; color:#667085; }

.supplier-code-tax { display:flex; align-items:center; gap:5px; margin-top:5px; font-size:10px; color:#98a2b3; }
.supplier-code-tax input { width:62px; height:24px; border:1px solid #e4e7ec; border-radius:5px; background:#f8fafc; color:#475467; font-size:10.5px; padding:0 5px; }
.inline-tax-with-toggle { display:flex; align-items:center; gap:5px; min-width:0; }
.inline-tax-with-toggle input { flex:1; min-width:0; }
.inline-tax-with-toggle .supplier-tax-toggle { flex:0 0 auto; height:26px; min-width:32px; padding:0 6px; font-size:10.5px; }

.supplier-documents-section { margin-top:14px; }
.supplier-doc-upload-line { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.supplier-doc-upload-line em { color:#98a2b3; font-size:10.5px; font-style:normal; }
.supplier-doc-list { display:flex; flex-direction:column; gap:6px; }
.supplier-doc-empty { color:#98a2b3; font-size:11px; padding:8px 0; }
.supplier-doc-item { display:flex; align-items:center; gap:9px; border:1px solid #eaecf0; border-radius:7px; padding:7px 9px; background:#fcfdff; }
.supplier-doc-thumb { width:48px; height:40px; object-fit:contain; border-radius:4px; border:1px solid #eaecf0; background:#fff; }
.supplier-doc-icon { width:48px; height:40px; border-radius:4px; background:#eef4ff; color:#1677ff; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; }
.supplier-doc-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.supplier-doc-info b { font-size:11.5px; color:#344054; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.supplier-doc-info small { font-size:10px; color:#98a2b3; }
.supplier-doc-preview { color:#1677ff; font-size:10.5px; text-decoration:none; padding:3px 6px; }
.supplier-doc-remove { border:0; background:transparent; color:#b42318; cursor:pointer; font-size:10.5px; }

.supplier-doc-preview { border:0; background:transparent; color:#1677ff; cursor:pointer; font-size:10.5px; padding:3px 6px; }
.supplier-doc-preview-overlay { position:fixed; inset:0; z-index:200; background:rgba(8,17,31,.78); display:flex; flex-direction:column; align-items:center; justify-content:center; padding:28px; }
.supplier-doc-preview-head { width:min(1100px,94vw); display:flex; justify-content:space-between; align-items:center; color:#fff; margin-bottom:10px; }
.supplier-doc-preview-head b { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.supplier-doc-preview-head button { border:0; background:rgba(255,255,255,.16); color:#fff; width:30px; height:30px; border-radius:50%; font-size:20px; cursor:pointer; }
.supplier-doc-preview-body { width:min(1100px,94vw); height:min(82vh,780px); display:flex; align-items:center; justify-content:center; background:#fff; border-radius:10px; overflow:hidden; }
.supplier-doc-preview-body img { max-width:100%; max-height:100%; object-fit:contain; }
.supplier-doc-preview-body iframe { width:100%; height:100%; border:0; }
.supplier-doc-preview-fallback { display:flex; flex-direction:column; gap:12px; align-items:center; color:#475467; font-size:13px; }
.supplier-doc-preview-fallback a { color:#1677ff; }

.inline-doc-mini { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:10px; color:#667085; }
.inline-doc-mini > span { width:48px; }
.inline-doc-thumb { width:38px; height:32px; border:1px solid #d0d5dd; border-radius:4px; background:#fff; padding:0; cursor:pointer; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.inline-doc-thumb img { width:100%; height:100%; object-fit:contain; }
.inline-doc-thumb em { font-style:normal; color:#1677ff; font-size:9px; font-weight:700; }
.inline-doc-mini > em { color:#98a2b3; font-style:normal; }

/* 图片悬停放大改为 fixed 浮层，避免被表格/卡片遮挡 */
.inline-qr img:hover,
.inline-license img:hover { transform:none; box-shadow:none; }
.supplier-image-zoom-overlay { position:fixed; z-index:500; background:#fff; border:1px solid #d0d5dd; border-radius:10px; box-shadow:0 18px 50px rgba(16,24,40,.3); padding:6px; pointer-events:none; }
.supplier-image-zoom-overlay img { width:100%; height:100%; object-fit:contain; display:block; }

/* 供应商数据：每个供应商之间增加明显分隔 */
.supplier-profile-table { border-collapse: separate; border-spacing: 0; }
.supplier-profile-table .supplier-main-row td { background:#fff; border-top:12px solid #f2f4f7; }
.supplier-profile-table .supplier-main-row:first-child td:first-child { border-top-left-radius:0; }
.supplier-profile-table .supplier-summary-row td { background:#f8fafc; border-bottom:2px solid #d0d5dd; }
.supplier-profile-table .supplier-main-row td:first-child { box-shadow: inset 3px 0 0 #84adff; }
.supplier-profile-table .supplier-summary-row td:first-child { box-shadow: inset 3px 0 0 #84adff; }

.supplier-time-label { font-size:9.5px; color:#98a2b3; margin-bottom:2px; white-space:nowrap; }
.supplier-time-value { font-size:11.5px; color:#475467; white-space:nowrap; }

.supplier-return-section { margin-top:14px; }
.supplier-return-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:4px; }
.supplier-return-title h4 { margin:0; }
.supplier-return-tip { color:#98a2b3; font-size:10.5px; margin-bottom:9px; }
.supplier-return-list { display:flex; flex-direction:column; gap:9px; }
.supplier-return-row { border:1px solid #eaecf0; border-radius:8px; padding:9px 11px; background:#fcfdff; display:grid; grid-template-columns:1fr 1fr; gap:8px 14px; }
.supplier-return-head { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; }
.supplier-return-default { display:inline-flex; padding:1px 7px; border-radius:999px; background:#eef4ff; color:#1d4ed8; font-size:10px; font-weight:600; }
.supplier-return-index { color:#98a2b3; font-size:10.5px; }
.supplier-return-remove { border:0; background:transparent; color:#b42318; cursor:pointer; font-size:10.5px; }

.supplier-platform-divider { height:1px; background:#eaecf0; margin:8px 0 7px; }
.supplier-default-return { display:flex; flex-direction:column; gap:2px; font-size:10.5px; color:#667085; }
.supplier-default-return > span { color:#98a2b3; font-size:9.5px; }
.supplier-default-return b { color:#344054; font-weight:500; overflow-wrap:anywhere; }
.supplier-default-return small { color:#98a2b3; font-size:9.5px; }
.supplier-default-return em { color:#98a2b3; font-style:normal; }

.supplier-return-actions { display:flex; align-items:center; gap:8px; }
.supplier-return-copy { border:1px solid #b2ddff; background:#eff8ff; color:#1570ef; border-radius:5px; padding:2px 7px; cursor:pointer; font-size:10px; }
.supplier-return-copy:hover { background:#d1e9ff; }

.supplier-default-return { gap:4px; }
.supplier-default-return-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.supplier-default-return > span, .supplier-default-return-head > span { color:#667085; font-size:11.5px; font-weight:600; }
.supplier-default-return b { font-size:12.5px; color:#344054; font-weight:500; }
.supplier-default-return small { font-size:12px; color:#667085; }
.supplier-default-return em { font-size:12px; }
.supplier-default-return .supplier-return-copy { font-size:10.5px; }

.supplier-tax-cell { font-size:12px; color:#475467; white-space:nowrap; }

.supplier-fetch-status { font-size:11px; color:#98a2b3; margin-left:6px; }
.supplier-fetch-status.ok { color:#067647; }
.supplier-fetch-status.err { color:#b42318; }

.bys-pick-types { flex-wrap:wrap; }
.bys-pick-other-sku { display:block; color:#98a2b3; font-size:10px; margin-top:1px; }
.bys-pick-status { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; font-size:12px; color:#475467; }
.bys-pick-status > span { color:#667085; }
.bys-pick-status label { display:inline-flex; align-items:center; gap:4px; cursor:pointer; }
.bys-pick-status input { accent-color:#1677ff; }

.supplier-tax-section { margin-top:14px; }
.inline-tax-strategy { color:#475467; font-style:normal; font-size:10.5px; }
.inline-tax-strategy-wrap { display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-width:0; }

.supplier-code-tax-strategy { font-style:normal; font-size:10px; color:#475467; white-space:nowrap; }

.supplier-tax-strategy-radio { width:12px; height:12px; border:1.5px solid #1677ff; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; background:#fff; }
.supplier-tax-strategy-radio::after { content:''; width:6px; height:6px; border-radius:50%; background:#1677ff; }

.supplier-tax-strategy-cell { font-size:11.5px; color:#475467; white-space:nowrap; }

/* ERP开发需求与内部沟通 */
.erp-layout { display:grid; grid-template-columns:390px minmax(0,1fr); gap:14px; align-items:start; }
.erp-demand-pane, .erp-chat-pane { min-height:560px; }
.erp-demand-list { display:flex; flex-direction:column; gap:9px; max-height:70vh; overflow:auto; padding-right:2px; }
.erp-demand-card { border:1px solid #eaecf0; border-radius:9px; padding:10px 11px; background:#fff; cursor:pointer; transition:border-color .15s, box-shadow .15s; }
.erp-demand-card:hover, .erp-demand-card.active { border-color:#84adff; box-shadow:0 0 0 3px #eff4ff; }
.erp-demand-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.erp-demand-no { font-size:10px; color:#98a2b3; }
.erp-demand-title { font-size:13px; font-weight:700; color:#101828; margin:6px 0 4px; line-height:1.5; }
.erp-demand-meta, .erp-demand-dates, .erp-demand-foot { font-size:10.5px; color:#667085; line-height:1.6; }
.erp-demand-dates { display:flex; flex-direction:column; gap:1px; margin-top:4px; }
.erp-demand-foot { display:flex; justify-content:space-between; gap:8px; margin-top:4px; color:#98a2b3; }
.erp-status-select { width:100%; margin-top:7px; height:28px; border:1px solid #d0d5dd; border-radius:6px; font-size:11px; color:#344054; background:#f8fafc; }
.erp-chat-pane .card-head { margin-bottom:6px; }
.erp-member-strip { display:flex; gap:6px; flex-wrap:wrap; padding:6px 0 9px; border-bottom:1px solid #eef1f5; }
.erp-member-chip { display:inline-flex; flex-direction:column; gap:1px; padding:3px 8px; border-radius:6px; background:#f8fafc; border:1px solid #eaecf0; font-size:10.5px; color:#344054; }
.erp-member-chip small { font-size:9px; color:#98a2b3; }
.erp-messages { height:48vh; min-height:330px; overflow:auto; padding:10px 4px; display:flex; flex-direction:column; gap:9px; background:#fbfcfe; border-radius:7px; }
.erp-message { background:#fff; border:1px solid #eaecf0; border-radius:7px; padding:7px 9px; }
.erp-message-head { display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:9.5px; color:#98a2b3; }
.erp-message-head b { font-size:11px; color:#344054; }
.erp-message-head time { margin-left:auto; }
.erp-message-text { margin-top:4px; font-size:12px; line-height:1.65; color:#344054; white-space:pre-wrap; word-break:break-word; }
.erp-composer { display:grid; grid-template-columns:190px minmax(0,1fr) 72px; gap:8px; margin-top:10px; align-items:end; }
.erp-composer select { height:34px; border:1px solid #d0d5dd; border-radius:6px; font-size:11px; padding:0 6px; }
.erp-composer textarea { height:60px; border:1px solid #d0d5dd; border-radius:6px; padding:7px 8px; font-size:12px; resize:vertical; }
.erp-composer .btn { height:36px; }
@media (max-width:1050px){ .erp-layout{grid-template-columns:1fr} .erp-messages{height:42vh} .erp-composer{grid-template-columns:1fr 76px} .erp-composer select{grid-column:1/-1} }

/* 物流商与运费试算 */
.logistics-calc-grid { display:grid; grid-template-columns:1.4fr .8fr 1fr auto; gap:10px; align-items:end; }
.logistics-calc-grid .field { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#667085; }
.logistics-calc-grid .field select, .logistics-calc-grid .field input { height:34px; border:1px solid #d0d5dd; border-radius:6px; padding:0 8px; font-size:12px; }
.logistics-calc-grid .btn { height:34px; }
.logistics-calc-result { grid-column:1/-1; min-height:38px; border:1px dashed #b2ddff; border-radius:7px; padding:8px 10px; background:#f5f9ff; color:#667085; font-size:11px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.logistics-calc-result b { color:#1570ef; font-size:15px; }
@media (max-width:1000px){ .logistics-calc-grid{grid-template-columns:1fr 1fr} }

/* ERP群聊 */
.erp-group-tabs { display:flex; gap:6px; flex-wrap:wrap; padding:2px 0 8px; }
.erp-group-tab { border:1px solid #d0d5dd; background:#fff; color:#475467; border-radius:6px; padding:5px 8px; font-size:11px; cursor:pointer; }
.erp-group-tab small { color:#98a2b3; margin-left:3px; }
.erp-group-tab.active { border-color:#84adff; background:#eff4ff; color:#175cd3; font-weight:700; }
.erp-member-picker { max-height:260px; overflow:auto; border:1px solid #eaecf0; border-radius:7px; padding:7px; display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.erp-member-option { display:flex; align-items:center; gap:6px; padding:5px 6px; border-radius:5px; font-size:11px; color:#344054; }
.erp-member-option:hover { background:#f8fafc; }
.erp-member-option small { margin-left:auto; color:#98a2b3; font-size:9px; }

/* ERP群空间文件 */
.erp-file-space { border:1px solid #eaecf0; border-radius:7px; padding:7px 8px; margin:0 0 8px; max-height:150px; overflow:auto; background:#fcfcfd; }
.erp-file-space-head { font-size:11px; font-weight:700; color:#344054; margin-bottom:5px; }
.erp-file-space-head span { font-weight:400; color:#98a2b3; margin-left:4px; }
.erp-file-group { margin-top:5px; }
.erp-file-group-title { font-size:10px; color:#667085; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.erp-file-chips { display:flex; gap:5px; flex-wrap:wrap; }
.erp-file-thumb img { width:42px; height:42px; object-fit:cover; border-radius:5px; border:1px solid #eaecf0; display:block; }
.erp-file-chip { font-size:10px; color:#175cd3; background:#eff4ff; border:1px solid #d1e9ff; border-radius:5px; padding:3px 6px; text-decoration:none; }
.erp-file-space-empty { font-size:10px; color:#98a2b3; }
.erp-message-files { display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.erp-message-image { width:110px; max-height:130px; object-fit:cover; border-radius:6px; border:1px solid #eaecf0; display:block; }
.erp-file-link { font-size:11px; color:#175cd3; background:#f5f9ff; border:1px solid #d1e9ff; border-radius:5px; padding:5px 7px; text-decoration:none; }
.erp-file-link small { color:#98a2b3; }
.erp-attach-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:5px; }
.erp-upload-btn { cursor:pointer; display:inline-flex; align-items:center; }
.erp-pending-files { display:flex; gap:5px; flex-wrap:wrap; }
.erp-pending-file { font-size:10px; background:#f8fafc; border:1px solid #eaecf0; border-radius:5px; padding:3px 6px; color:#475467; }
.erp-pending-file button { border:0; background:transparent; color:#b42318; cursor:pointer; padding:0 0 0 3px; font-size:12px; }

/* ERP群文件删除 */
.erp-file-item { position:relative; display:inline-flex; }
.erp-file-del { position:absolute; top:-6px; right:-6px; width:16px; height:16px; border:0; border-radius:50%; background:#b42318; color:#fff; font-size:11px; line-height:16px; text-align:center; cursor:pointer; padding:0; opacity:0; transition:opacity .12s; }
.erp-file-item:hover .erp-file-del { opacity:1; }

/* 顶部导航自适应：允许换行成两行/三行，模块随窗口自动调整 */
.topnav-inner {
  height: auto !important;
  min-height: 56px;
  flex-wrap: wrap;
  align-content: center;
  row-gap: 2px;
}
.nav.nav-top {
  flex: 1 1 620px;
  flex-wrap: wrap !important;
  overflow: visible !important;
  row-gap: 2px;
  padding: 2px 0;
}
.nav-top .nav-item { flex: 0 1 auto; }
@media (max-width: 1500px) {
  .topnav-inner { height: auto !important; min-height: 56px; flex-wrap: wrap; padding: 6px 12px; gap: 6px; row-gap: 2px; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .nav.nav-top { order: 3; flex: 1 1 100%; width: 100%; flex-wrap: wrap !important; overflow: visible !important; }
  .nav-top .nav-item { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 900px) {
  .topnav-inner { padding: 6px 9px; }
  .nav-top .nav-item { padding: 7px 8px; font-size: 12.5px; }
  .nav-top .nav-item .ic { width: 12px; height: 12px; }
}
@media (max-width: 620px) {
  .nav.nav-top { flex-wrap: wrap !important; overflow: visible !important; }
  .nav-top .nav-item { padding: 6px 7px; font-size: 12px; }
}

/* 成员头像与昵称 */
.user-chip { cursor:pointer; }
.avatar { overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.team-avatar { width:30px; height:30px; border-radius:50%; background:#eef4ff; color:#175cd3; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; overflow:hidden; }
.team-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.avatar-edit-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:11px; color:#667085; }
.avatar-edit-row input[type=file] { max-width:220px; font-size:11px; }
.profile-avatar-preview-img { width:80px; height:80px; border-radius:50%; object-fit:cover; border:1px solid #eaecf0; margin-top:8px; }

/* 头像小预览框 */
.team-avatar { border:1px solid #e4e7ec; box-shadow:0 1px 2px rgba(16,24,40,.05); }
.avatar-preview-box { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px dashed #d0d5dd; border-radius:8px; background:#fcfcfd; flex:none; }
.avatar-preview-box .team-avatar { width:32px; height:32px; border:0; box-shadow:none; }

/* ERP聊天头像 */
.erp-avatar { width:24px; height:24px; font-size:11px; border-radius:50%; flex:none; }
.erp-member-chip { flex-direction:row; align-items:center; gap:5px; }
.erp-member-name { font-weight:600; color:#344054; }
.erp-message-head .erp-avatar { width:26px; height:26px; }

/* 顶部导航视觉强化：更粗、更深、模块区隔更明显 */
.nav.nav-top { gap: 4px; row-gap: 3px; }
.nav-top .nav-item {
  color: #344054;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .1px;
  padding: 8px 11px;
  background: #f7f9fc;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .03);
}
.nav-top .nav-item .ic { width: 16px; height: 16px; opacity: 1; color: #475467; }
.nav-top .nav-item:hover {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #175cd3;
}
.nav-top .nav-item:hover .ic { color: #175cd3; }
.nav-top .nav-item.active {
  background: #e8f0ff;
  border-color: #84adff;
  color: #175cd3;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(132, 173, 255, .14);
}
.nav-top .nav-item.active .ic { color: #175cd3; }
.nav-top .nav-group { margin: 0; }
.nav-top .nav-badge { font-weight: 700; }

@media (min-width: 1501px) {
  .nav-top .nav-item { padding: 8px 12px; }
}
@media (max-width: 1500px) {
  .nav-top .nav-item { font-size: 13.5px; font-weight: 600; padding: 7px 9px; }
  .nav-top .nav-item .ic { width: 14px; height: 14px; }
}
@media (max-width: 900px) {
  .nav-top .nav-item { font-size: 13px; padding: 6px 8px; }
}

/* 样品成本与重量预估 */
.sample-estimator-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; }
.sample-estimator-grid .field { display:flex; flex-direction:column; gap:4px; font-size:12px; color:#667085; }
.sample-estimator-grid .field.span2 { grid-column:span 2; }
.sample-estimator-grid input, .sample-estimator-grid select { height:34px; border:1px solid #d0d5dd; border-radius:6px; padding:0 8px; font-size:12px; }
.sample-result { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:8px; margin-top:14px; padding:10px; border:1px dashed #b2ddff; border-radius:8px; background:#f5f9ff; }
.sample-result div { display:flex; flex-direction:column; gap:3px; font-size:10px; color:#667085; }
.sample-result b { font-size:14px; color:#175cd3; }
.sample-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
@media (max-width:1100px){ .sample-estimator-grid{grid-template-columns:repeat(2,minmax(0,1fr))} .sample-result{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* 顶部备忘提醒 */
.reminder-top-btn { display:inline-flex; align-items:center; gap:5px; height:32px; padding:0 9px; border:1px solid #e4e7ec; border-radius:8px; background:#fff; color:#344054; font-size:12px; font-weight:600; cursor:pointer; white-space:nowrap; flex:none; }
.reminder-top-btn:hover { background:#eef4ff; border-color:#c7d7fe; color:#175cd3; }
.reminder-top-btn.has-due { border-color:#fda29b; background:#fff5f4; color:#b42318; }
.reminder-badge { min-width:16px; height:16px; line-height:16px; padding:0 4px; border-radius:999px; background:#d92d20; color:#fff; font-size:9px; font-weight:700; text-align:center; }
.reminder-badge.hidden { display:none; }
.reminder-modal-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; font-size:11px; color:#667085; }
.reminder-list { display:flex; flex-direction:column; gap:8px; max-height:56vh; overflow:auto; }
.reminder-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:9px 10px; border:1px solid #eaecf0; border-radius:8px; background:#fff; }
.reminder-row.due { border-color:#fda29b; background:#fffbfa; }
.reminder-row-main b { display:block; font-size:13px; color:#101828; }
.reminder-row-main span { display:block; margin-top:2px; font-size:10px; color:#98a2b3; }
.reminder-row-main p { margin:4px 0 0; font-size:11px; color:#475467; white-space:pre-wrap; }
.reminder-row-actions { display:flex; align-items:center; gap:5px; flex:none; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width:1100px){ .reminder-top-btn span { display:none; } .reminder-top-btn { padding:0 7px; } }

/* 申报与发票 */
.tax-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:12px; }
.tax-summary-item { background:#fff; border:1px solid #eaecf0; border-radius:9px; padding:11px 13px; display:flex; flex-direction:column; gap:5px; }
.tax-summary-item span { font-size:10px; color:#667085; }
.tax-summary-item b { font-size:18px; color:#101828; }
.tax-tabs { display:flex; gap:6px; }
.tax-tab { border:1px solid #eaecf0; background:#fff; color:#475467; border-radius:6px; padding:5px 10px; font-size:12px; cursor:pointer; }
.tax-tab.active { background:#eef4ff; border-color:#84adff; color:#175cd3; font-weight:700; }
@media (max-width:900px){ .tax-summary{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* 申报与发票年度总览 */
.tax-year-tabs { display:flex; align-items:center; gap:8px; margin:0 0 12px; flex-wrap:wrap; }
.tax-table-wrap { overflow:auto; max-height:70vh; border:1px solid #eaecf0; border-radius:8px; }
.tax-dashboard-table { min-width:1500px; border-collapse:separate; border-spacing:0; }
.tax-dashboard-table th, .tax-dashboard-table td { white-space:nowrap; font-size:11px; padding:8px 10px; }
.tax-dashboard-table thead th { position:sticky; top:0; z-index:3; background:#f8fafc; color:#344054; border-bottom:1px solid #eaecf0; }
.tax-dashboard-table .tax-sticky { position:sticky; left:0; z-index:2; background:#fff; min-width:210px; max-width:250px; white-space:normal; }
.tax-dashboard-table thead .tax-sticky { z-index:4; background:#f8fafc; }
.tax-dashboard-table .tax-total-col { background:#f5f9ff; font-weight:700; color:#175cd3; }
.tax-dashboard-table td { border-bottom:1px solid #f2f4f7; color:#475467; }
.tax-dashboard-table tr:hover td { background:#fbfcfe; }
@media (max-width:900px){ .tax-summary{grid-template-columns:repeat(2,minmax(0,1fr))} .tax-dashboard-table .tax-sticky{min-width:160px} }

/* 申报主体信息 */
.tax-subject-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.tax-subject-card { border:1px solid #eaecf0; border-radius:10px; background:#fff; padding:12px 14px; }
.tax-subject-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.tax-subject-head h4 { margin:0 0 3px; font-size:15px; color:#101828; }
.tax-subject-head span { font-size:11px; color:#98a2b3; }
.tax-subject-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; }
.tax-subject-fields div { display:flex; flex-direction:column; gap:3px; }
.tax-subject-fields span { font-size:10px; color:#98a2b3; }
.tax-subject-fields b { font-size:12px; color:#344054; font-weight:500; word-break:break-all; }
@media (max-width:1000px){ .tax-subject-fields{grid-template-columns:repeat(2,minmax(0,1fr))} }

/* 主体信息与年度申报数据 */
.tax-subject-lines { display:flex; flex-direction:column; gap:7px; margin-top:10px; }
.tax-subject-lines div { display:flex; align-items:flex-start; gap:12px; padding:6px 0; border-bottom:1px dashed #f2f4f7; }
.tax-subject-lines span { width:150px; flex:none; color:#98a2b3; font-size:11px; }
.tax-subject-lines b { color:#344054; font-size:12px; font-weight:500; word-break:break-all; }
.tax-annual-editor { margin-top:14px; border-top:1px solid #eaecf0; padding-top:12px; }
.tax-annual-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.tax-annual-head h4 { margin:0; font-size:14px; color:#101828; }
.tax-annual-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tax-annual-block { border:1px solid #eaecf0; border-radius:8px; padding:10px 12px; background:#fcfcfd; }
.tax-annual-block h5 { margin:0 0 8px; font-size:12px; color:#344054; }
.tax-month-list { display:flex; flex-direction:column; gap:4px; }
.tax-month-row { display:flex; align-items:center; gap:8px; font-size:11px; color:#667085; }
.tax-month-row span { width:38px; flex:none; }
.tax-month-row input { flex:1; height:28px; border:1px solid #d0d5dd; border-radius:5px; padding:0 7px; font-size:11px; }
.tax-annual-total { margin-top:8px; font-size:11px; color:#667085; }
.tax-annual-total b { color:#175cd3; font-size:14px; margin-left:4px; }
.tax-individual-block { margin-top:12px; }
.tax-individual-table { display:flex; flex-direction:column; gap:4px; overflow:auto; }
.tax-individual-head, .tax-individual-row { display:grid; grid-template-columns:44px repeat(5,minmax(80px,1fr)); gap:6px; align-items:center; }
.tax-individual-head span { font-size:10px; color:#98a2b3; }
.tax-individual-row span { font-size:11px; color:#667085; }
.tax-individual-row input { height:28px; border:1px solid #d0d5dd; border-radius:5px; padding:0 6px; font-size:11px; min-width:0; }
@media (max-width:1000px){ .tax-annual-grid{grid-template-columns:1fr} .tax-subject-lines span{width:110px} }

/* 主体信息字段全部纵向按行排列 */
.tax-subject-lines { display:flex; flex-direction:column; gap:0; margin-top:10px; }
.tax-subject-lines div { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding:7px 0; border-bottom:1px dashed #f2f4f7; }
.tax-subject-lines span { width:auto; flex:none; color:#98a2b3; font-size:11px; }
.tax-subject-lines b { display:block; width:100%; color:#344054; font-size:13px; font-weight:500; word-break:break-all; }

/* 年度申报数据纵向排列 */
.tax-annual-grid { grid-template-columns:1fr !important; }

/* 个体核定：月份下面逐行列个体 */
.tax-individual-groups { display:flex; flex-direction:column; gap:12px; }
.tax-individual-month { border:1px solid #eaecf0; border-radius:7px; padding:8px 10px; background:#fff; }
.tax-individual-month-title { font-size:12px; font-weight:700; color:#344054; margin-bottom:5px; }
.tax-individual-line { display:flex; align-items:center; gap:8px; padding:3px 0; font-size:11px; color:#667085; }
.tax-individual-line span { width:52px; flex:none; }
.tax-individual-line input { flex:1; height:28px; border:1px solid #d0d5dd; border-radius:5px; padding:0 7px; font-size:11px; min-width:0; }

/* 11个主体卡片并排/自动换列 */
.tax-subject-grid { display:grid !important; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:14px; align-items:start; }
.tax-subject-card { min-width:0; }
@media (max-width:900px){ .tax-subject-grid{grid-template-columns:1fr} }

/* 11个主体面板横向并列，缩小宽度 */
.tax-subject-grid {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  align-items: flex-start;
  padding-bottom: 10px;
}
.tax-subject-card {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  padding: 10px 11px;
}
.tax-subject-head h4 { font-size: 13px; }
.tax-subject-lines span { font-size: 10px; }
.tax-subject-lines b { font-size: 11px; }
.tax-subject-card .tax-annual-head h4 { font-size: 12px; }
.tax-subject-card .tax-annual-block { padding: 8px 9px; }
.tax-subject-card .tax-month-row input { min-width: 0; }
@media (max-width:900px) {
  .tax-subject-card { flex: 0 0 280px; width: 280px; min-width: 280px; }
}

/* 主体横向滚动右侧留白，避免最后一张被裁切 */
.tax-subject-grid {
  padding-right: 22px !important;
  padding-bottom: 16px !important;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.tax-subject-card {
  flex: 0 0 280px !important;
  width: 280px !important;
  min-width: 280px !important;
}
.tax-subject-grid::-webkit-scrollbar { height: 8px; }
.tax-subject-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
@media (max-width:900px) {
  .tax-subject-card { flex: 0 0 258px !important; width: 258px !important; min-width: 258px !important; }
}

/* 主体面板等分填满，不在右侧留白 */
.tax-subject-grid {
  padding-right: 0 !important;
  gap: 8px !important;
}
.tax-subject-card {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 260px !important;
}

/* 主体横排左右微留白 */
.tax-subject-grid {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* 跨境平台形式发票比例 */
.tax-cross-row { display:flex; gap:8px; flex-wrap:wrap; }
.tax-cross-row .tax-month-row { flex:1; min-width:110px; }
.tax-cross-row .tax-month-row input[readonly] { background:#f2f4f7; color:#175cd3; font-weight:700; }
.tax-annual-tip { margin-top:5px; font-size:10px; color:#98a2b3; }

/* 主体卡片顶部按钮同一水平线 */
.tax-subject-head { align-items:flex-start; }
.tax-subject-head-actions { display:flex; align-items:center; gap:5px; flex:none; flex-wrap:nowrap; }
.tax-subject-head-actions .btn { white-space:nowrap; }

/* 主体操作按钮纵向，编辑在上、保存在下，大小一致 */
.tax-subject-head-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.tax-subject-head-actions .btn {
  width: 100%;
  justify-content: center;
  min-width: 106px;
}

/* 主体卡片与主体信息区等高 */
.tax-subject-grid { align-items: stretch !important; }
.tax-subject-card { display: flex; flex-direction: column; }
.tax-subject-lines {
  height: 320px;
  min-height: 320px;
  overflow-y: auto;
  box-sizing: border-box;
}
.tax-annual-editor { flex: 1; }

/* 跨境/1688/公户申报三列并排 */
.tax-declare-block { padding:8px; }
.tax-declare-table { display:flex; flex-direction:column; gap:3px; }
.tax-declare-head, .tax-declare-row { display:grid; grid-template-columns:34px repeat(3,minmax(0,1fr)); gap:3px; align-items:center; }
.tax-declare-head span { font-size:9px; color:#98a2b3; text-align:center; }
.tax-declare-row span { font-size:10px; color:#667085; }
.tax-declare-row input { width:100%; height:25px; border:1px solid #d0d5dd; border-radius:4px; padding:0 3px; font-size:10px; min-width:0; }

/* 年度销量申报总计 */
.tax-declare-foot { display:grid; grid-template-columns:34px repeat(3,minmax(0,1fr)); gap:3px; align-items:center; margin-top:5px; padding-top:5px; border-top:1px dashed #d0d5dd; }
.tax-declare-foot span { font-size:9px; color:#667085; }
.tax-declare-foot b { font-size:9px; color:#175cd3; text-align:right; }
.tax-declare-grand { margin-top:6px; font-size:10px; color:#667085; }
.tax-declare-grand b { color:#175cd3; font-size:13px; margin-left:3px; }

/* 个体信息实体列表 */
.tax-individual-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.tax-individual-head h5 { margin:0; }
.tax-individual-entities { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; }
.tax-individual-entity { display:flex; align-items:center; justify-content:space-between; gap:6px; border:1px solid #eaecf0; border-radius:6px; padding:5px 7px; background:#fff; }
.tax-individual-entity div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.tax-individual-entity b { font-size:11px; color:#344054; }
.tax-individual-entity small { font-size:9px; color:#98a2b3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 各明细合计 */
.tax-month-total { margin-top:7px; padding-top:6px; border-top:1px dashed #d0d5dd; font-size:11px; color:#667085; display:flex; justify-content:space-between; }
.tax-month-total b { color:#175cd3; font-size:13px; }

/* 个体删除操作 */
.tax-individual-entity-actions { display:flex; gap:3px; flex:none; }

/* 个体核定：个体信息默认收缩，1月对齐 */
.tax-individual-head { min-height:32px; align-items:center; }
.tax-individual-details { border:1px solid #eaecf0; border-radius:6px; background:#fcfcfd; margin-bottom:8px; }
.tax-individual-details summary { cursor:pointer; list-style:none; padding:7px 9px; font-size:10px; color:#475467; user-select:none; }
.tax-individual-details summary::-webkit-details-marker { display:none; }
.tax-individual-details summary::before { content:'▸'; display:inline-block; margin-right:5px; color:#98a2b3; }
.tax-individual-details[open] summary::before { content:'▾'; }
.tax-individual-details-body { padding:0 8px 8px; border-top:1px dashed #eaecf0; }
.tax-individual-add { padding:7px 0 4px; }
.tax-individual-details .tax-individual-entities { margin-bottom:4px; }

/* 个体与主体填写限制 */
.tax-restriction-wrap { max-height:60vh; overflow:auto; }
.tax-restriction-table th, .tax-restriction-table td { text-align:center; font-size:11px; white-space:nowrap; padding:6px 7px; }
.tax-restriction-table th:first-child, .tax-restriction-table td:first-child { text-align:left; position:sticky; left:0; background:#fff; z-index:1; }
.tax-restriction-table thead th { background:#f8fafc; }
.tax-restriction-table input[type=checkbox] { width:15px; height:15px; accent-color:#2563eb; }
.tax-blocked-input { background:#f2f4f7 !important; color:#98a2b3 !important; cursor:not-allowed; }

/* 填写限制用×表示 */
.tax-restrict-cell { width:24px; height:24px; border:1px solid #d0d5dd; border-radius:5px; background:#fff; color:#98a2b3; cursor:pointer; font-size:15px; line-height:1; padding:0; }
.tax-restrict-cell.blocked { background:#fef3f2; border-color:#fda29b; color:#d92d20; font-weight:700; }
.tax-restrict-cell:hover { border-color:#84adff; }

/* 填写限制面板显示法人小字 */
.tax-restriction-table th small, .tax-restriction-table td small { display:block; margin-top:2px; font-size:9px; font-weight:400; color:#98a2b3; }
.tax-restriction-table td div b { font-size:11px; color:#344054; }

/* 可收缩的年度数据块 */
.tax-collapsible { padding:0; overflow:hidden; }
.tax-collapsible > summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 10px; font-size:11px; color:#344054; background:#fcfcfd; }
.tax-collapsible > summary::-webkit-details-marker { display:none; }
.tax-collapsible > summary::before { content:'▸'; color:#98a2b3; margin-right:4px; }
.tax-collapsible[open] > summary::before { content:'▾'; }
.tax-collapsible > summary span { flex:1; font-weight:600; }
.tax-collapsible > summary b { color:#175cd3; font-size:11px; white-space:nowrap; }
.tax-collapsible-body { padding:8px 10px 10px; border-top:1px dashed #eaecf0; }
.tax-far-block { margin-top:30px !important; }

/* 主体标题与按钮同一行 */
.tax-subject-title-row { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.tax-subject-title-row h4 { margin:0; }
.tax-subject-info-collapse { border:1px solid #eaecf0; border-radius:6px; margin-top:8px; background:#fff; }
.tax-subject-info-collapse > summary { cursor:pointer; list-style:none; padding:6px 8px; font-size:10px; color:#667085; background:#fcfcfd; }
.tax-subject-info-collapse > summary::-webkit-details-marker { display:none; }
.tax-subject-info-collapse > summary::before { content:'▾'; margin-right:5px; color:#98a2b3; }
.tax-subject-info-collapse:not([open]) > summary::before { content:'▸'; }
.tax-subject-info-collapse .tax-subject-lines { padding:0 8px 6px; }

/* 第一个主体简称字体更大 */
.tax-subject-card:first-child .tax-subject-title-row h4 { font-size:17px; }

/* Excel 按钮工具栏与首主体大字体 */
.excel-toolbar { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.tax-primary-card .tax-subject-title-row h4 { font-size:19px !important; font-weight:800 !important; letter-spacing:-.2px; }

/* 所有主体简称放大 */
.tax-subject-title-row h4 { font-size:17px !important; font-weight:700 !important; }
.tax-primary-card .tax-subject-title-row h4 { font-size:19px !important; font-weight:800 !important; }
.tax-unsaved-label { display:none; color:#b42318; background:#fef3f2; border:1px solid #fda29b; border-radius:5px; padding:2px 6px; font-size:10px; font-weight:600; }
.tax-subject-card[data-dirty="1"] .tax-unsaved-label { display:inline-block; }
.tax-subject-card[data-dirty="1"] { box-shadow:0 0 0 2px rgba(253,162,155,.45); }

/* 主体简称冻结在可视区域顶部 */
.tax-subject-head {
  position: sticky;
  top: 64px;
  z-index: 8;
  background: #fff;
  padding: 4px 0 6px;
  border-bottom: 1px solid #f2f4f7;
}
.tax-subject-head .tax-subject-title-row h4 { background:#fff; }
/* 卡片标题栏按钮自动换行 */
.card-head-actions.excel-toolbar { flex-wrap: wrap; }

/* 主体标题区紧凑、简称吸顶与去滚动条 */
.tax-main-card .card-head { padding:8px 12px; margin-bottom:0; }
.tax-main-card .tax-subject-grid { margin-top:0; }
.tax-subject-grid { overflow:visible !important; }
.tax-subject-lines { height:auto !important; overflow:visible !important; }
.tax-copy-line { padding-top:6px; }

/* 主体简称吸顶位于顶部导航下方 */
.tax-subject-head {
  top: calc(var(--topnav-offset, 64px) + 2px) !important;
}

/* 主体信息框统一高度（由脚本按最高内容同步） */
.tax-subject-lines { box-sizing:border-box; }

/* 账面利润率框线颜色 */
.tax-profit-block { transition:border-color .15s, box-shadow .15s; }
.tax-profit-block.tax-profit-light-red { border-color:#fda29b !important; }
.tax-profit-block.tax-profit-light-yellow { border-color:#fec84b !important; }
.tax-profit-block.tax-profit-deep { border-color:#d92d20 !important; box-shadow:0 0 0 1px #fda29b inset; }

/* 比例单位 */
.tax-cross-row .tax-month-row span:last-child { width:auto; color:#667085; font-weight:600; }

/* 财税声明欠票右下角保存按钮 */
.tax-section-save { display:flex; justify-content:flex-end; margin-top:8px; }

/* 欠票/利润率/财税声明欠票总计标红 */
.tax-annual-editor input[data-annual-field="unpaidInvoice"],
.tax-annual-editor input[data-annual-field="bookProfitRate"],
.tax-annual-editor [data-tax-total="taxDeclaredUnpaidInvoice"] {
  color: #d92d20 !important;
  font-weight: 700 !important;
}
.tax-annual-editor input[data-annual-field="unpaidInvoice"]:read-only,
.tax-annual-editor input[data-annual-field="bookProfitRate"]:read-only {
  background: #fff5f4 !important;
  border-color: #fda29b !important;
}

/* ---------------- 1688 自动采购（只读） ---------------- */
.ali1688-status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px 14px;
  padding: 0 16px 14px;
}
.ali1688-status-grid > div {
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f8fafc;
  min-width: 0;
}
.ali1688-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 4px;
}
.ali1688-status-grid b {
  display: block;
  color: #344054;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ali1688-hint,
.ali1688-error {
  margin: 0 16px 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.ali1688-hint { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.ali1688-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.ali1688-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
}
.ali1688-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ali1688-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #475467;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.ali1688-filter span { margin-left: 5px; color: var(--muted-2); font-size: 11px; }
.ali1688-filter.active { background: #eff6ff; border-color: #84adff; color: #175cd3; }
.ali1688-pager { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.ali1688-table { min-width: 1180px; }
.ali1688-table td { vertical-align: top; }
.ali1688-plan-card { margin-top: 14px; }
.ali1688-plan-table { min-width: 860px; }
.ali1688-plan-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 16px 4px; }
.ali1688-plan-actions .muted { font-size: 12px; }
.ali1688-order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .02em; }
.ali1688-products { display: flex; flex-direction: column; gap: 7px; min-width: 260px; max-width: 380px; }
.ali1688-product { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ali1688-product img,
.ali1688-product-fallback {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  object-fit: cover;
  background: #f2f4f7;
}
.ali1688-product-fallback { display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: var(--muted); }
.ali1688-product-name { font-size: 12px; color: #344054; line-height: 1.35; max-width: 310px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ali1688-product small { color: var(--muted-2); font-size: 11px; }
@media (max-width: 1100px) {
  .ali1688-status-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 640px) {
  .ali1688-status-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .ali1688-toolbar { align-items: flex-start; }
}
.ali1688-filter-note { align-self: center; color: var(--muted-2); font-size: 11px; margin-left: 2px; }

/* ---------------- 1688 创建待付款采购单 ---------------- */
.ali1688-create-card { margin-top: 14px; }
.ali1688-create-card .card-head { align-items:flex-start; }
.ali1688-create-card .card-head .muted { font-size:11.5px; }
.ali1688-create-top {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 16px 10px;
  flex-wrap:wrap;
}
@media (max-width: 720px) { .ali1688-create-top .muted { display:none; } }
.ali1688-capabilities {
  margin:0 16px 14px;
  padding:10px 12px;
  border:1px solid var(--line-soft);
  border-radius:9px;
  background:#f8fafc;
}
.ali1688-capability-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; font-size:12px; color:#344054; }
.ali1688-capability-head .muted { font-size:11px; font-weight:400; }
.ali1688-capability-list { display:flex; flex-wrap:wrap; gap:6px; }
.ali1688-capabilities .ali1688-error,
.ali1688-capabilities .ali1688-hint { margin:9px 0 0; }
.ali1688-form-grid {
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px 12px;
  padding:0 16px 4px;
}
.ali1688-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ali1688-field > span { color:#475467; font-size:11.5px; font-weight:600; }
.ali1688-field input,
.ali1688-field textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:#344054;
  padding:8px 10px;
  font:inherit;
  font-size:12.5px;
  outline:none;
}
.ali1688-field textarea { resize:vertical; min-height:82px; line-height:1.55; font-family:ui-monospace, SFMono-Regular, Menlo, monospace; }
.ali1688-field input:focus,
.ali1688-field textarea:focus { border-color:#84adff; box-shadow:0 0 0 3px rgba(132,173,255,.16); }
.ali1688-field.span2 { grid-column:span 2; }
.ali1688-create-actions { display:flex; gap:8px; padding:12px 16px 14px; flex-wrap:wrap; }
.ali1688-create-card > .ali1688-hint { margin:0 16px 12px; }
.ali1688-create-card > .ali1688-error { margin:0 16px 12px; }
.ali1688-preview-box {
  margin:0 16px 14px;
  padding:12px;
  border:1px solid #b2ddff;
  border-radius:10px;
  background:#f5f8ff;
}
.ali1688-preview-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; color:#175cd3; }
.ali1688-preview-head .muted { font-size:11px; font-weight:400; }
.ali1688-preview-grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px 12px; }
.ali1688-preview-grid > div { padding:8px 10px; background:#fff; border:1px solid #d1e9ff; border-radius:7px; min-width:0; }
.ali1688-preview-grid span { display:block; color:#667085; font-size:11px; margin-bottom:3px; }
.ali1688-preview-grid b { display:block; color:#344054; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ali1688-preview-grid .ali1688-pay-total { color:#b42318; font-size:16px; }
.ali1688-preview-box .ali1688-hint { margin:10px 0; }
.ali1688-ack { display:flex; align-items:flex-start; gap:7px; margin:8px 0 10px; color:#344054; font-size:12px; line-height:1.5; cursor:pointer; }
.ali1688-ack input { margin-top:2px; flex:none; }
.ali1688-created {
  margin:0 16px 14px;
  padding:12px;
  border:1px solid #abefc6;
  border-radius:10px;
  background:#f6fef9;
}
.ali1688-created-head { display:flex; align-items:center; gap:8px; margin-bottom:7px; color:#067647; }
.ali1688-created-order { color:#344054; font-size:12.5px; margin-bottom:10px; }
.ali1688-created-order code { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; background:#fff; border:1px solid #d1fadf; border-radius:5px; padding:2px 5px; }
.ali1688-created-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.ali1688-created .ali1688-hint,
.ali1688-created .ali1688-error { margin:8px 0 0; }
.ali1688-created .ali1688-error { background:#fff; }
@media (max-width: 1100px) {
  .ali1688-form-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .ali1688-preview-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .ali1688-form-grid { grid-template-columns:1fr; }
  .ali1688-field.span2 { grid-column:span 1; }
  .ali1688-preview-grid { grid-template-columns:1fr 1fr; }
}

.ali1688-address-picker {
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin:0 16px 12px;
  flex-wrap:wrap;
}
.ali1688-address-picker label { display:flex; flex-direction:column; gap:5px; flex:1; min-width:260px; }
.ali1688-address-picker label > span { color:#475467; font-size:11.5px; font-weight:600; }
.ali1688-address-picker select {
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:#344054;
  padding:8px 10px;
  font:inherit;
  font-size:12.5px;
  outline:none;
}
.ali1688-address-picker select:focus { border-color:#84adff; box-shadow:0 0 0 3px rgba(132,173,255,.16); }

/* ---------------- 启动遮罩：会话校验完成前不闪登录页 ---------------- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(37, 99, 235, .38), transparent 62%),
    radial-gradient(700px 500px at 12% 100%, rgba(13, 148, 136, .28), transparent 60%),
    linear-gradient(150deg, #08111f 0%, #0c1c33 48%, #0a2233 100%);
  transition: opacity .22s ease;
}
.boot-screen.is-leaving { opacity: 0; }
.boot-card {
  width: min(360px, 100%);
  text-align: center;
  color: #fff;
}
.boot-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #2563eb, #0d9488);
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, .66);
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 16px;
}
.boot-title { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.boot-sub { margin-top: 7px; font-size: 12.5px; color: #b8c8dd; }
.boot-bar {
  height: 3px;
  margin: 22px auto 0;
  width: 132px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .13);
}
.boot-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2dd4bf);
  animation: boot-slide 1.1s ease-in-out infinite;
}
@keyframes boot-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* ---------------- 采购建议（店小秘式） ---------------- */
.purchase-suggest-card { padding: 0 0 18px; overflow: hidden; }
.purchase-tabs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}
.purchase-tabs {
  display: flex; gap: 2px; padding: 0; border-bottom: 0; overflow-x: auto;
}
.purchase-tabs-actions { display: flex; align-items: center; gap: 8px; padding: 12px 0; flex: none; }
.purchase-tabs-actions .btn { height: 30px; }
.purchase-tab {
  position: relative; display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--muted);
  padding: 15px 18px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap; border-bottom: 2px solid transparent;
  user-select: text; -webkit-user-select: text;
}
.purchase-tab span { margin-left: 6px; font-size: 10.5px; color: var(--muted-2); font-weight: 500; }
.purchase-tab:hover { color: var(--brand); }
.purchase-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.purchase-filter-grid {
  display: grid; grid-template-columns: repeat(5, minmax(170px, 250px)); gap: 10px; justify-content: start;
  padding: 16px 18px 10px;
}
.purchase-filter { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.purchase-filter select {
  height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); padding: 0 9px; font-size: 12px; outline: none;
}
.purchase-filter select:focus { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.purchase-filter-bar {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 18px 10px;
}
.purchase-filter-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.purchase-filter-line-types { gap: 6px; }
.purchase-filter-line-actions { gap: 22px; }

/* 供货商筛选：与下拉同宽的多选按钮 + 悬浮面板 */
.purchase-multi { position: relative; min-width: 250px; }
.purchase-multi > span { white-space: nowrap; }
.purchase-multi-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 250px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 12px; text-align: left; cursor: pointer;
}
.purchase-multi-btn:hover { border-color: #93b4f5; }
.purchase-multi-btn i { font-style: normal; color: var(--muted); font-size: 10px; }
.purchase-multi-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  width: 320px; max-height: 340px; overflow: auto; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}
.purchase-multi-search {
  width: 100%; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 12px; outline: none;
}
.purchase-multi-search:focus { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.purchase-multi-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; max-height: 220px; overflow: auto; }
.purchase-multi-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px; font-size: 12px; color: var(--ink); cursor: pointer; border-radius: 6px; }
.purchase-multi-item:hover { background: #f4f7ff; }
.purchase-multi-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.purchase-multi-name em { font-style: normal; font-size: 10px; color: var(--muted); }
.purchase-1688-tag { font-size: 10px; color: #f60; font-weight: 600; }
.purchase-multi-actions { display: flex; justify-content: flex-end; gap: 8px; }
.purchase-multi-empty { padding: 8px 4px; font-size: 11.5px; color: var(--muted); }
.purchase-filter-line-search { gap: 12px; align-items: flex-start; }
.purchase-toolbar-btn { flex: none; }

/* 采购页筛选：左列 = 搜索类型标签 + 搜索输入框（同宽），右列 = 供货商/采购员/状态/按钮 */
.purchase-filter-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 26px;
  row-gap: 10px;
  align-items: start;
}
.purchase-filter-grid .purchase-search-types { grid-column: 1; grid-row: 1; width: max-content; }
.purchase-filter-grid .purchase-filter-line-actions { grid-column: 2; grid-row: 1; }
.purchase-filter-grid .purchase-search-area { grid-column: 1; grid-row: 2; width: 100%; }

.purchase-search-area { display: block; width: 100%; }
.purchase-search-box { display: block; position: relative; width: 100%; min-width: 0; }

.purchase-batch-toggle {
  position: absolute; left: 7px; top: 50%; transform: translateY(-50%); z-index: 2;
  height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid #d7e2f6;
  background: #f2f6ff; color: #1d4ed8; font-size: 11px; line-height: 1; cursor: pointer;
  white-space: nowrap;
}
.purchase-batch-toggle:hover { background: #e6efff; }
.purchase-batch-toggle.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

.purchase-search-actions {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 4px; z-index: 2;
}
.purchase-search-actions .bys-search-static {
  position: static; right: auto; bottom: auto; top: auto; transform: none;
  height: 22px; min-width: 0; padding: 0 10px; border-radius: 6px; font-size: 11.5px; box-shadow: none;
}
.purchase-search-actions .purchase-search-mode {
  height: 22px; width: auto; min-width: 0; padding: 0 0 0 8px; border: 0; border-left: 1px solid #e3e8f2;
  border-radius: 0; background: transparent; font-size: 11.5px; color: var(--muted); outline: none;
}
.purchase-search-box > .purchase-search-input {
  width: 100%; height: 34px; padding: 0 150px 0 78px !important; border: 1px solid var(--line); border-radius: 8px;
  font-size: 12px; outline: none; text-overflow: ellipsis;
}
.purchase-search-box > .purchase-search-input:focus { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.purchase-search-box > .purchase-search-textarea {
  width: 100%; height: 240px; min-height: 240px; max-height: 240px; padding: 8px 150px 10px 78px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 12px; resize: none; outline: none;
}
.purchase-search-box > .purchase-search-textarea:focus { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.purchase-search-box.is-batch .purchase-batch-toggle { top: 8px; transform: none; }
.purchase-search-box.is-batch .purchase-search-actions { top: auto; bottom: 8px; transform: none; }

@media (max-width: 1100px) {
  .purchase-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .purchase-filter-grid .purchase-search-types,
  .purchase-filter-grid .purchase-filter-line-actions,
  .purchase-filter-grid .purchase-search-area { grid-column: 1; width: 100%; }
  .purchase-filter-grid .purchase-filter-line-actions { grid-row: 2; }
  .purchase-filter-grid .purchase-search-area { grid-row: 3; }
  .purchase-search-box > .purchase-search-input, .purchase-search-box > .purchase-search-textarea { padding-right: 10px !important; }
  .purchase-search-actions { position: static; transform: none; justify-content: flex-end; margin-top: 6px; }
  .purchase-search-box.is-batch .purchase-search-actions { margin-top: 0; }
}
.purchase-filter.inline { flex-direction: row; align-items: center; gap: 6px; }
.purchase-filter.inline select { height: 30px; }
.purchase-search-mode {
  height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 0 9px; font-size: 12px; color: var(--ink); outline: none; width: 108px;
}
.purchase-filter-line-search .bys-search-field.purchase-search-field { flex: 1 1 320px; max-width: 520px; }
.purchase-filter-line-search .bys-search-field.purchase-search-field > input { height: 30px; }
.purchase-supplier-cell { text-align: center; vertical-align: middle; }
.purchase-supplier-cell-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.purchase-supplier-cell-inner b { font-size: 11.5px; color: #344054; font-weight: 600; }
.purchase-supplier-cell-inner .btn { width: auto; }

@media (max-width: 1100px) {
  .purchase-tabs-row { flex-wrap: wrap; gap: 0; }
  .purchase-tabs-actions { padding-bottom: 10px; }
}
.purchase-search-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 520px; }
.purchase-search-types { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.purchase-search-type {
  height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--muted); font-size: 11.5px; cursor: pointer;
}
.purchase-search-type:hover { border-color: #c9d7f2; color: var(--ink); }
.purchase-search-type.active { background: #eaf1ff; border-color: #b7cdf7; color: #1d4ed8; font-weight: 600; }
.purchase-search-input-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.purchase-search-input-row select {
  height: 33px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 0 10px; font-size: 12px; color: var(--ink); outline: none; width: 108px;
}
.purchase-status-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted); padding-bottom: 7px;
}
.purchase-status-filter label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.purchase-status-filter input { margin: 0; accent-color: #2563eb; }
.purchase-sort-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap;
}
.purchase-sort-btn:hover { color: #1d4ed8; }
.purchase-sort-marks { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; line-height: 1; color: #aab4c2; }
.purchase-sort-marks i { font-style: normal; }
.purchase-sort-marks i.on { color: #1d4ed8; }
.purchase-toolbar-btn.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.purchase-toolbar-btn.is-on:hover { background: #1e40af; border-color: #1e40af; }
.purchase-code-cell, .purchase-extra-sku-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.purchase-batch-wrap { max-height: 46vh; overflow: auto; }
.purchase-batch-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.purchase-batch-table th { text-align: left; font-size: 11px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.purchase-batch-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.purchase-batch-table th.num, .purchase-batch-table td.num { text-align: right; }
.purchase-batch-input {
  width: 96px; height: 30px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 8px; font-size: 12px; text-align: right; color: var(--ink);
}
.purchase-batch-name { text-align: left; }
.purchase-search-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 18px 12px; flex-wrap: wrap;
}
.purchase-search-row select,
.purchase-search-row input {
  height: 33px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 0 10px; font-size: 12px; color: var(--ink); outline: none;
}
.purchase-search-row select:first-child { width: 108px; }
.purchase-search-row input { flex: 1; min-width: 220px; max-width: 560px; }
.purchase-search-row select:nth-of-type(2) { width: 108px; }
.purchase-search-row input:focus { border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.purchase-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 4px 18px 14px;
}
.purchase-kpi {
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: #fff; min-width: 0;
}
.purchase-kpi span { display: block; font-size: 10.5px; color: var(--muted); }
.purchase-kpi b { display: block; margin-top: 4px; font-size: 21px; letter-spacing: -.4px; color: var(--ink); }
.purchase-kpi b em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.purchase-kpi small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted-2); }
.purchase-kpi.danger b { color: #b42318; }
.purchase-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 18px 10px; flex-wrap: wrap;
}
.purchase-toolbar-left { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.purchase-toolbar-note { font-size: 10.5px; color: var(--muted-2); }
.purchase-subtabs {
  display: flex; align-items: center; gap: 6px; padding: 0 18px 12px;
  border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.purchase-subtab {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  height: 28px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; cursor: pointer;
}
.purchase-subtab span { margin-left: 5px; color: var(--muted-2); }
.purchase-subtab.active { background: #eef4ff; border-color: #bcd1f6; color: var(--brand); font-weight: 600; }
.purchase-subtab.ghost { border-color: transparent; color: var(--muted-2); margin-left: auto; }
.purchase-table-wrap {
  border-top: 1px solid var(--line-soft);
  max-height: calc(100vh - var(--topnav-offset, 89px) - 230px);
  overflow: auto;
}
.purchase-table { width: 100%; min-width: 1380px; border-collapse: collapse; font-size: 12px; }
.purchase-table th {
  padding: 9px 10px; background: #f7f9fc; color: var(--muted); font-weight: 600;
  font-size: 10.5px; text-align: center; border-bottom: 1px solid var(--line-soft);
  white-space: nowrap; letter-spacing: .15px;
}
.purchase-table th.num, .purchase-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.purchase-table td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; text-align: center; }
/* 商品行高度压到原来的约 2/3：操作按钮更紧凑 + 表头滚动吸附 */
.purchase-table thead { position: sticky; top: 0; z-index: 3; }
.purchase-table thead th { box-shadow: inset 0 -1px 0 var(--line-soft); }
.purchase-actions { flex-direction: column; align-items: center; gap: 3px; }
.purchase-actions .btn { justify-content: center; white-space: nowrap; width: 108px; height: 20px; min-height: 20px; padding: 0 6px; font-size: 10.5px; line-height: 1; border-radius: 6px; }
.purchase-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* 采购表格新增列：商品状态 / 开发员 / 销售员 */
.purchase-status-tag {
  display: inline-block; min-width: 44px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; line-height: 18px; border: 1px solid transparent; white-space: nowrap; user-select: text;
}
.purchase-status-tag.is-on { color: #067647; background: #ecfdf3; border-color: #a6f4c5; }
.purchase-status-tag.is-hot { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.purchase-status-tag.is-new { color: #175cd3; background: #eff8ff; border-color: #b2ddff; }
.purchase-status-tag.is-slow { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.purchase-status-tag.is-clear { color: #5925dc; background: #f4f3ff; border-color: #d9d6fe; }
.purchase-status-tag.is-stop, .purchase-status-tag.is-off { color: #475467; background: #f2f4f7; border-color: #d0d5dd; }
.purchase-staff-text {
  display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle; line-height: 20px; user-select: text;
}
.purchase-staff-more { color: #1d4ed8; cursor: pointer; user-select: text; }
.purchase-staff-more:hover { text-decoration: underline; }
.purchase-staff-empty { color: #98a2b3; }
.purchase-staff-wrap { display: flex; flex-direction: column; gap: 10px; }
.purchase-staff-list { margin: 0; padding: 2px 0 2px 22px; display: flex; flex-direction: column; gap: 6px; }
.purchase-staff-list li { font-size: 13px; color: #344054; user-select: text; }
.purchase-window-cell { white-space: nowrap; }
.purchase-table tbody tr.purchase-group-row td {
  padding: 8px 12px; background: #f2f5fa; border-top: 1px solid #e3e9f2; border-bottom: 1px solid #e3e9f2; text-align: left;
}
.purchase-table tbody tr.purchase-group-row:first-child td { border-top: 0; }
.purchase-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.purchase-group-head b { font-size: 12px; color: #344054; }
.purchase-group-head .muted { font-size: 10.5px; }
.purchase-table tbody tr.purchase-row-need { background: #fffdf7; }
.purchase-table tbody tr.purchase-row-need:hover { background: #fff9ec; }
.purchase-check-col { width: 34px; }
.purchase-product { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 270px; }
.purchase-product-copy { text-align: left; }
.purchase-thumb {
  width: 38px; height: 38px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--line-soft); background: #f8fafc; flex: none;
}
.purchase-thumb.placeholder { display: grid; place-items: center; font-size: 9px; color: var(--muted-2); }
.purchase-product-copy { min-width: 0; }
.purchase-product-copy b { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ink); max-width: 300px; }
.purchase-product-meta { margin-top: 2px; font-size: 10px; color: var(--muted-2); }
.purchase-suggest-value { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; background: #f2f4f7; color: var(--muted); font-weight: 600; }
.purchase-suggest-value.need { background: #fff4e5; color: #b54708; }
.purchase-empty { padding: 18px; }
.purchase-empty .empty-block { border: 0; background: transparent; }
.purchase-table .badge { font-size: 10px; }
.purchase-current-hint {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: #f8fafc; font-size: 11px; color: var(--muted);
}
.purchase-current-hint b { color: var(--ink); font-size: 12px; }
@media (max-width: 1100px) {
  .purchase-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .purchase-filter-grid { grid-template-columns: 1fr; }
  .purchase-kpis { grid-template-columns: 1fr 1fr; }
  .purchase-tab { padding: 12px 12px; }
  .purchase-search-row input { min-width: 0; width: 100%; }
}

/* 采购建议的轻量设置弹窗：避免继承 900px 的全局最小尺寸 */
.modal.confirm {
  min-width: 420px;
  width: min(480px, 92vw);
  height: auto;
  min-height: 0;
}
@media (max-width: 560px) {
  .modal.confirm { min-width: 0; width: 100%; }
}

/* ---------------- 供应商数据：标题/搜索/新建按钮 ---------------- */
.supplier-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.supplier-profile-head-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 560px;
  min-width: 0;
}
.supplier-profile-head-main h3 { flex: none; }
.supplier-profile-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(540px, 100%);
  min-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}
.supplier-profile-search .ic { width: 16px; height: 16px; flex: none; }
.supplier-profile-search input {
  width: 100%;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
}
.supplier-profile-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.supplier-profile-head-side .muted { white-space: nowrap; }
@media (max-width: 760px) {
  .supplier-profile-head-main { flex-wrap: wrap; }
  .supplier-profile-search { width: 100%; }
}

/* 收款码粘贴：聚焦提示 */
.supplier-qr-box[data-pay-qr-box] { border-radius:8px; transition:box-shadow .15s ease; }
.supplier-qr-box[data-pay-qr-box]:focus { outline:2px solid #84caff; outline-offset:2px; box-shadow:0 0 0 3px rgba(132,202,255,.18); }
.inline-qr[data-supplier-qr-box] { border-radius:5px; transition:box-shadow .15s ease; }
.inline-qr[data-supplier-qr-box]:focus { outline:2px solid #84caff; outline-offset:2px; box-shadow:0 0 0 3px rgba(132,202,255,.16); }
.inline-qr-hint { color:#98a2b3; font-size:9px; white-space:nowrap; }

/* 供应商编辑：基础信息 / 关联产品 tabs */
.supplier-profile-tabs {
  display:flex;
  align-items:center;
  gap:4px;
  margin:-2px 0 16px;
  padding:0;
  border-bottom:1px solid #eaecf0;
  background:#fff;
}
.supplier-profile-tab {
  appearance:none;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#667085;
  font-size:13px;
  font-weight:600;
  padding:9px 14px 10px;
  cursor:pointer;
}
.supplier-profile-tab:hover { color:#1570ef; }
.supplier-profile-tab.active { color:#1570ef; border-bottom-color:#1570ef; }
.supplier-tab-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  margin-left:3px;
  border-radius:9px;
  background:#eff8ff;
  color:#1570ef;
  font-size:10px;
  font-weight:700;
}
.supplier-linked-panel { display:flex; flex-direction:column; gap:12px; }
.supplier-linked-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.supplier-linked-toolbar input {
  flex:1;
  min-width:240px;
  height:34px;
  border:1px solid #d0d5dd;
  border-radius:7px;
  padding:0 11px;
  font-size:12.5px;
  color:var(--ink);
  background:#fff;
}
.supplier-linked-toolbar input:focus { outline:0; border-color:#84caff; box-shadow:0 0 0 3px rgba(132,202,255,.18); }
.supplier-linked-toolbar .muted { white-space:nowrap; font-size:11px; }
.supplier-linked-columns { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; }
.supplier-linked-column {
  border:1px solid #eaecf0;
  border-radius:10px;
  background:#fcfcfd;
  padding:12px;
  min-width:0;
}
.supplier-linked-column h5 { margin:0 0 8px; font-size:12px; color:#344054; }
.supplier-linked-list { max-height:340px; overflow:auto; padding-right:2px; }
.supplier-linked-product {
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 0;
  border-bottom:1px solid #f2f4f7;
}
.supplier-linked-product:last-child { border-bottom:0; }
.supplier-linked-product .product-thumb { flex:none; }
.supplier-linked-meta { flex:1; min-width:0; }
.supplier-linked-meta b {
  display:block;
  font-size:12px;
  font-weight:600;
  color:#344054;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.supplier-linked-meta small {
  display:block;
  margin-top:2px;
  color:#98a2b3;
  font-size:10.5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.supplier-linked-action {
  flex:none;
  border:1px solid #b2ddff;
  border-radius:6px;
  background:#eff8ff;
  color:#1570ef;
  font-size:11px;
  font-weight:600;
  padding:5px 8px;
  cursor:pointer;
}
.supplier-linked-action:hover { background:#d1e9ff; border-color:#84caff; }
.supplier-linked-action.remove { border-color:#fecdca; background:#fef3f2; color:#b42318; }
.supplier-linked-action.remove:hover { background:#fee4e2; border-color:#fda29b; }
.supplier-linked-empty { color:#98a2b3; font-size:11.5px; padding:18px 2px; line-height:1.6; }
@media (max-width:760px) {
  .supplier-linked-columns { grid-template-columns:1fr; }
  .supplier-linked-toolbar input { min-width:0; }
}

/* 产品线：列表与成员选择 */
.product-lines-toolbar { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.pl-member-picker { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pl-member-search { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.pl-member-list { max-height: 220px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px; background: #fff; }
.pl-member-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pl-member-row:hover { background: #f5f8fd; }
.pl-member-row small { color: var(--muted); font-size: 11px; }

/* 产品线选择器（自定义下拉，可搜索） */
.pl-picker { position: relative; flex: 1; min-width: 220px; }
.pl-picker-input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 28px 0 10px; background: #fff; cursor: pointer; }
.pl-picker-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.pl-picker-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: #98a2b3; font-size: 11px; cursor: pointer; }
.pl-picker-panel { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; box-shadow: 0 12px 28px rgba(16,24,40,.14); padding: 8px; }
.pl-picker-search { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; margin-bottom: 6px; }
.pl-picker-list { max-height: 220px; overflow: auto; }
.pl-picker-item { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13px; color: inherit; cursor: pointer; text-align: left; }
.pl-picker-item:hover { background: #f2f6ff; }
.pl-picker-item small { color: var(--muted); font-size: 11px; }

/* 1688 链接配对：配对比例与多编码编辑 */
.supplier-pair-sub { margin-top: 3px; font-size: 11px; color: #1d4ed8; }
.supplier-ratio-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; color: inherit; cursor: pointer; }
.supplier-ratio-btn:hover { border-color: #1d4ed8; color: #1d4ed8; }
.supplier-ratio-edit { font-style: normal; font-size: 11px; color: #98a2b3; }
.supplier-pair-editor { margin-top: 12px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; background: #fbfcfe; }
.supplier-pair-head { display: grid; grid-template-columns: minmax(0,1fr) 140px 32px; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.supplier-pair-row { display: grid; grid-template-columns: minmax(0,1fr) 140px 32px; gap: 10px; align-items: center; margin-bottom: 6px; }
.supplier-pair-row input { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.supplier-pair-times { display: none; }
.supplier-pair-del { height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #98a2b3; cursor: pointer; }
.supplier-pair-del:hover { border-color: #d92d20; color: #d92d20; }
.supplier-pair-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 1688 配对：在表格内直接编辑数量、多行配对（行高固定，只有从属配对才增高） */
.supplier-pair-lines { display: flex; flex-direction: column; gap: 6px; }
.supplier-pair-line { display: flex; align-items: center; gap: 8px; height: 44px; }
.supplier-pair-line .product-thumb { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
.supplier-pair-line .product-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.supplier-pair-line .supplier-product-main { min-width: 0; }
.supplier-pair-line .supplier-product-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
.supplier-pair-line .supplier-product-sub { line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.supplier-pair-indent { width: 34px; flex: 0 0 auto; text-align: center; color: #98a2b3; }
.supplier-pair-remove { margin-left: auto; border: 1px solid var(--line); background: #fff; color: #475467; border-radius: 6px; padding: 0 8px; height: 22px; line-height: 20px; font-size: 11px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.supplier-pair-remove:hover { border-color: #d92d20; color: #d92d20; }
.supplier-pair-empty { display: flex; align-items: center; height: 44px; color: var(--muted); font-size: 12px; }
.supplier-qty-input { width: 62px; height: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; text-align: center; }
.supplier-qty-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.ratio-fixed { color: var(--muted); font-size: 12px; }
.supplier-pair-line.ratio-line { height: 44px; }
.supplier-price-line { display: flex; align-items: center; height: 44px; }

/* 1688 链接配对：offerId / specId 正式字段（v1.2.1）
   一个 1688 变种可对应多个 1688 规格：明细行 specId 优先，留空用行级默认 specId。 */
.supplier-offer-inline { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; color: #667085; }
.supplier-offer-input { width: 112px; height: 24px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font: inherit; font-size: 11.5px; }
.supplier-offer-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 2px rgba(29,78,216,.12); }
.supplier-offer-input.is-missing { border-color: #f5b5ae; background: #fff8f7; }
.supplier-offer-text { display: inline-flex; align-items: center; min-height: 24px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: #f5f7fb; color: #344054; font-variant-numeric: tabular-nums; user-select: text; }
.supplier-offer-text.is-missing { color: #b42318; background: #fff5f4; }
.supplier-meta-lines { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 2px; }
.supplier-meta-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475467; flex-wrap: wrap; }
.supplier-meta-line b { color: #101828; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; user-select: text; }
.supplier-meta-line em { font-style: normal; color: #98a2b3; font-size: 11px; }
.supplier-spec-readonly { min-height: 34px; display: flex; align-items: center; padding: 0 10px; border: 1px dashed var(--line); border-radius: 8px; background: #f8fafc; color: #344054; font-size: 12px; user-select: text; }
.supplier-variant-card .supplier-variant-spec { display: block; color: #98a2b3; font-size: 10px; }
.supplier-spec-lines { display: flex; flex-direction: column; gap: 6px; }
.supplier-spec-line { display: flex; align-items: center; height: 44px; }
.supplier-spec-empty { font-size: 12px; color: #98a2b3; }
.supplier-spec-input { width: 132px; height: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12px; }
.supplier-spec-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.supplier-spec-line.is-missing .supplier-spec-input { border-color: #f5b5ae; background: #fff8f7; }
.supplier-spec-form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.supplier-spec-form-row .field { flex: 1 1 260px; min-width: 240px; }
.supplier-offer-preview { margin-top: 6px; font-size: 12px; color: #667085; }
.supplier-spec-hint { font-size: 12px; color: #667085; line-height: 19px; margin-bottom: 10px; }
.supplier-spec-table { width: 100%; }
.supplier-spec-table td, .supplier-spec-table th { text-align: left; }
.supplier-spec-history { max-width: 320px; }
.supplier-spec-pick { border: 0; background: #eef4ff; color: #1d4ed8; border-radius: 6px; padding: 3px 7px; font-size: 11px; cursor: pointer; margin: 2px 4px 2px 0; }
.supplier-spec-pick:hover { background: #dfe9ff; }
.supplier-spec-none { font-size: 11.5px; color: #98a2b3; }

/* ── 采购/供应商 左侧二级菜单（v1.4.1） ── */
.trade-shell { display: flex; align-items: flex-start; gap: 16px; }
.trade-side { flex: 0 0 212px; width: 212px; position: sticky; top: calc(var(--topnav-offset, 89px) + 8px); }
.trade-side-title { font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px 8px; }
.trade-side-nav { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px; gap: 2px; }
.trade-side-link { display: block; padding: 9px 12px; border-radius: 8px; color: #344054; font-size: 13px; text-decoration: none; }
.trade-side-link:hover { background: #f4f7fb; color: var(--brand); }
.trade-side-link.active { background: #eaf1ff; color: var(--brand); font-weight: 600; }
.trade-main { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) {
  .trade-shell { flex-direction: column; }
  .trade-side { width: 100%; flex: 0 0 auto; position: static; }
  .trade-side-nav { flex-direction: row; overflow-x: auto; }
  .trade-side-link { white-space: nowrap; }
}

/* ── 采购计划（仿店小秘，v1.4.1） ── */
.pp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pp-toolbar-left, .pp-toolbar-right { display: flex; align-items: center; gap: 8px; }
.pp-card { padding: 0; overflow: hidden; }
.pp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.pp-tabs { display: flex; gap: 18px; }
.pp-tab { font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.pp-tab.active { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand); }
.pp-tab span { margin-left: 6px; font-size: 11px; color: var(--muted-2); }
.pp-pager { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pp-head-left, .pp-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pp-head-select, .pp-head-actions { display: flex; align-items: center; gap: 8px; }
.pp-head-select { padding-left: 12px; border-left: 1px solid var(--line-soft); }
.pp-head-actions { padding-right: 12px; border-right: 1px solid var(--line-soft); }
.pp-remark-tpl-btn { flex: none; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 0 8px; font-size: 11px; color: #1d4ed8; cursor: pointer; white-space: nowrap; }
.pp-remark-tpl-btn:hover { border-color: #93b4f5; }
.pp-tpl-picker { display: flex; flex-direction: column; gap: 10px; }
.pp-tpl-picker-hint { font-size: 12px; color: #667085; line-height: 1.6; }
.pp-tpl-picker-search { height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.pp-tpl-picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.pp-tpl-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.pp-tpl-item-text { flex: 1; font-size: 13px; color: #344054; }
.pp-tpl-item-ops { display: flex; gap: 6px; }
.pe-tpl-pair { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pe-tpl-pair-title { font-size: 12px; font-weight: 600; color: #344054; }
.pe-tpl-pair-search { display: flex; }
.pe-tpl-pair-search .bys-search-field { width: 100%; }
.pe-tpl-pair-results { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.pe-tpl-pair-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 8px; }
.pe-tpl-pair-product { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.pe-tpl-pair-product code { font-size: 12px; color: #101828; }
.pe-tpl-pair-product span { font-size: 11px; color: #667085; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-tpl-pair-row select { flex: 0 0 160px; height: 28px; border: 1px solid #d0d5dd; border-radius: 6px; font-size: 12px; }
.pp-size { height: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12px; }
.pp-groups { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 4px; }
.pp-group { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.pp-group-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f7f9fc; font-size: 12.5px; color: #475467; }
.pp-group-head .pp-supplier b { color: #101828; }
.pp-warehouse { margin-left: auto; font-size: 12px; color: var(--muted); }
.pp-1688-tag { background: #fff1e8; color: #c2410c; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-style: italic; font-weight: 700; }
.pp-table { width: 100%; border-collapse: collapse; }
.pp-table th { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; background: #fbfcfe; border-bottom: 1px solid var(--line-soft); }
.pp-table th:nth-child(2) { text-align: left; }
.pp-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: center; font-size: 13px; vertical-align: middle; }
.pp-table td:nth-child(2) { text-align: left; }
.pp-table tr:last-child td { border-bottom: 0; }
.pp-col-check { width: 34px; }
.pp-col-buyer { width: 130px; }
.pp-col-price { width: 90px; }
.pp-col-qty { width: 100px; }
.pp-col-amount { width: 100px; }
.pp-col-ops { width: 96px; }
.pp-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pp-product-main { min-width: 0; }
.pp-product-name { font-size: 13px; color: #101828; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.pp-product-sub { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.pp-product-sub code { font-size: 11.5px; color: #475467; background: #f2f4f7; border-radius: 4px; padding: 1px 5px; }
.pp-qty { width: 76px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; text-align: center; }
.pp-qty:focus, .pp-buyer:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.pp-buyer { width: 112px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 12.5px; }
.pp-amount { color: #b54708; font-weight: 600; }
.pp-op { border: 0; background: transparent; color: #1677ff; cursor: pointer; padding: 0 4px; font-size: 12.5px; }
.pp-op.danger { color: #b42318; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: #475467; flex-wrap: wrap; }

/* ── 采购计划新列 + 添加采购计划/选商品弹窗（v1.4.2） ── */
.pp-col-1688 { width: 220px; }
.pp-col-tax { width: 132px; }
.pp-col-remark { width: 248px; }
.pp-1688-title { font-size: 12px; color: #344054; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-1688-variant { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pp-tax-strategy { font-size: 11.5px; color: #475467; }
.pp-tax-point { font-size: 12px; color: #b54708; margin-top: 2px; }
.pp-remark { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12px; }
.pp-remark:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.pp-add-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.pp-add-tabs { display: flex; align-items: center; gap: 16px; }
.pp-add-tab { border: 0; background: transparent; color: #1677ff; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.pp-add-tab.active { font-weight: 600; }
.pp-add-batch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475467; }
.pp-add-batch-input { width: 110px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; }
.pp-add-table th, .pp-add-table td { text-align: center; }
.pp-add-table td:first-child { text-align: left; }
.pp-add-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.pp-pick { display: flex; gap: 16px; }
.pp-pick-left { flex: 1 1 auto; min-width: 0; }
.pp-pick-right { flex: 0 0 260px; width: 260px; border-left: 1px solid var(--line-soft); padding-left: 14px; display: flex; flex-direction: column; }
.pp-pick-types { display: flex; gap: 10px; margin-bottom: 10px; }
.pp-pick-type { border: 0; background: #f2f4f7; color: #475467; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.pp-pick-type.active { background: #1d4ed8; color: #fff; }
.pp-pick-search { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.pp-pick-search input { flex: 1 1 auto; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 12.5px; }
.pp-pick-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.pp-pick-tab.active { color: var(--brand); font-weight: 600; }
.pp-pick-all { margin-bottom: 6px; }
.pp-pick-link { border: 0; background: transparent; color: #1677ff; cursor: pointer; font-size: 12.5px; }
.pp-pick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 400px; overflow: auto; padding-right: 4px; }
.pp-pick-item { border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px; display: flex; align-items: center; gap: 8px; }
.pp-pick-item .pp-product { flex: 1 1 auto; min-width: 0; }
.pp-pick-btn { border: 1px solid #1d4ed8; background: #fff; color: #1d4ed8; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; cursor: pointer; flex: 0 0 auto; }
.pp-pick-btn.is-picked { background: #eef4ff; }
.pp-pick-right-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; margin-bottom: 8px; }
.pp-pick-chosen { flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 6px; max-height: 400px; }
.pp-pick-chosen-item { display: flex; align-items: flex-start; gap: 6px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 8px; }
.pp-pick-chosen-item .pp-product-main { flex: 1 1 auto; min-width: 0; }
.pp-pick-x { border: 0; background: transparent; color: #98a2b3; cursor: pointer; font-size: 12px; }
.pp-pick-confirm { margin-top: 10px; width: 100%; }

/* ── 设置安全库存弹窗（v1.5.0，仿店小秘） ── */
.pss { display: flex; flex-direction: column; gap: 12px; }
.pss-label { font-size: 13px; color: #344054; font-weight: 600; }
.pss-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.pss-card-main { min-width: 0; }
.pss-code { font-size: 13px; color: #1677ff; font-weight: 600; }
.pss-name { font-size: 13px; color: #101828; margin-top: 4px; }
.pss-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-soft); }
.pss-table th, .pss-table td { border: 1px solid var(--line-soft); padding: 9px 10px; font-size: 12.5px; text-align: center; }
.pss-table th { background: #f8fafc; color: #475467; font-weight: 600; }
.pss-table td:first-child { background: #f8fafc; color: #475467; font-weight: 600; }
.pss-note { font-size: 12px; color: #667085; line-height: 18px; }
.pss-modes { display: flex; gap: 26px; flex-wrap: wrap; font-size: 12.5px; color: #344054; }
.pss-modes label { display: inline-flex; align-items: center; gap: 5px; }
.pss-modes .muted { font-size: 11.5px; }
.pss-fixed { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; }
.pss-fixed-head { font-size: 12.5px; font-weight: 600; color: #344054; background: #f8fafc; border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; }
.pss-input { width: 220px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; }
.pss-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ── 1688 配对：specId 只读展示（v1.4.8） ── */
.supplier-spec-text { display: inline-block; width: 132px; height: 28px; line-height: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12px; color: #344054; background: #f8fafc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-spec-line.is-missing .supplier-spec-text { border-color: #f5b5ae; background: #fff8f7; color: #b42318; }

/* ── 更换供货商弹窗（v1.4.8，仿截图） ── */
.sup-change { display: flex; flex-direction: column; gap: 10px; }
.sup-change-head { display: grid; grid-template-columns: 1fr 1fr; background: #f2f4f7; border: 1px solid var(--line-soft); border-bottom: 0; font-size: 12.5px; font-weight: 600; color: #475467; }
.sup-change-head span { padding: 10px 14px; text-align: center; }
.sup-change-head span:first-child { border-right: 1px solid var(--line-soft); }
.sup-change-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; overflow: hidden; }
.sup-change-product { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-right: 1px solid var(--line-soft); }
.sup-change-main { flex: 1 1 auto; min-width: 0; }
.sup-change-code { font-size: 13px; font-weight: 600; color: #101828; }
.sup-change-name { font-size: 12.5px; color: #475467; margin-top: 4px; line-height: 18px; }
.sup-change-1688 { color: #c2410c; font-size: 11.5px; font-style: italic; font-weight: 700; }
.sup-change-supplier { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sup-search-row { display: flex; gap: 8px; align-items: center; }
.pp-mode-tag { border-radius: 6px; padding: 2px 8px; font-size: 11.5px; line-height: 18px; }
.pp-mode-tag.is-auto { background: #ecfdf3; color: #067647; }
.pp-mode-tag.is-manual { background: #fff1e8; color: #c2410c; }
.pp-mode-tag.is-mixed { background: #f2f4f7; color: #475467; }
.sup-search-input { flex: 1 1 auto; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 12.5px; }
.sup-search-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.sup-select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 4px; font: inherit; font-size: 12.5px; }
.sup-change-default { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #344054; }
.sup-change-default .muted { font-size: 11.5px; }
.sup-change-hint { margin: 0; font-size: 11.5px; line-height: 18px; }

/* ── 采购计划：供货商下单方式（1688 / 手工，v1.4.5） ── */
.pp-mode { height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; color: #344054; background: #fff; cursor: pointer; }
.pp-mode:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.pp-mode.is-manual { border-color: #f5b5ae; background: #fff8f7; color: #b42318; }
.pp-manual-tag { background: #fff1e8; color: #c2410c; border-radius: 6px; padding: 1px 7px; font-size: 11px; line-height: 18px; }

/* ── 采购计划里显示供应商付款信息（v1.4.3） ── */
.pp-product-pay { margin-top: 4px; }
.pp-pay-badges { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; border: 0; background: transparent; padding: 0; cursor: pointer; margin-left: 2px; }
.pp-pay-badge { background: #ecfdf3; color: #067647; border-radius: 6px; padding: 1px 7px; font-size: 11px; line-height: 18px; }
.pp-pay-badge.none { background: #f2f4f7; color: #98a2b3; }
.pp-col-pay { width: 112px; }
.pp-table td.pp-col-pay { vertical-align: middle; text-align: center; }
.pp-table td.pp-col-pay .pp-pay-badges { justify-content: center; }
.pay-info-wrap { display: flex; flex-direction: column; gap: 12px; }
.pay-info-head { font-size: 13px; color: #475467; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pay-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; background: #fbfcfe; }
.pay-card-main { flex: 1 1 auto; min-width: 0; }
.pay-card-title { font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 8px; }
.pay-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 6px; min-width: 0; }
.pay-row span { color: #667085; flex: 0 0 76px; }
.pay-row b { font-weight: 500; color: #101828; word-break: break-all; }
.pay-copy { border: 0; background: transparent; color: #1677ff; font-size: 11.5px; cursor: pointer; padding: 0 4px; flex: 0 0 auto; }
.pay-qr { width: 108px; height: 108px; object-fit: contain; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; flex: 0 0 auto; }

/* ── 授权账号里合并「账号状态 + 收货地址」（v1.4.0） ── */
.ali1688-account-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; margin-top: 12px; }
.ali1688-account-status, .ali1688-account-address { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; background: #fbfcfe; }
.ali1688-account-status-head { font-size: 12.5px; font-weight: 600; color: #344054; margin-bottom: 10px; }
.ali1688-account-status-head .muted { font-weight: 400; margin-left: 6px; }
.ali1688-account-status-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ali1688-address-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.ali1688-address-grid .ali1688-field span { font-size: 11.5px; }
@media (max-width: 1100px) {
  .ali1688-account-detail { grid-template-columns: 1fr; }
  .ali1688-address-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 采购数据表格：安全库存 / 建议数量 可直接改（v1.3.3） ── */
.purchase-inline-input { width: 74px; height: 28px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font: inherit; font-size: 13px; text-align: center; background: #fff; }
.purchase-inline-input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.purchase-inline-input.need { color: #1d4ed8; font-weight: 700; }
.purchase-inline-input.is-override { border-color: #f5b5ae; background: #fff8f7; }

/* ── 采购计划 → 1688 待付款单（v1.3.0） ─────────────────── */
.ali1688-plan-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 12px; }
.ali1688-plan-summary > div { background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 12px; }
.ali1688-plan-summary span { display: block; font-size: 11.5px; color: #667085; }
.ali1688-plan-summary b { font-size: 13px; }
.ali1688-plan-summary small { display: block; font-size: 11.5px; color: #667085; line-height: 16px; }
.ali1688-plan-preview { padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #067647; font-size: 13px; margin-bottom: 12px; }
.ali1688-plan-preview.is-bad { background: #fef3f2; color: #b42318; }
.ali1688-plan-order-table th, .ali1688-plan-order-table td { text-align: center; }
.ali1688-plan-order-table td:first-child { text-align: left; }
.ali1688-plan-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; }
.ali1688-plan-merged { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #475467; margin: 12px 0; }
.ali1688-plan-merged code { background: #f2f4f7; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; }
.ali1688-plan-ack { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 19px; margin: 12px 0; }
.ali1688-plan-ack input { margin-top: 3px; }
.ali1688-plan-error { background: #fef3f2; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; }
.ali1688-plan-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.ali1688-plan-problems p { margin: 0 0 8px; font-size: 13px; line-height: 20px; }
.ali1688-plan-created { text-align: center; padding: 26px 10px; }
.ali1688-plan-created-icon { width: 56px; height: 56px; border-radius: 50%; background: #ecfdf3; color: #067647; font-size: 28px; line-height: 56px; margin: 0 auto 14px; }
.ali1688-plan-created h3 { margin: 0 0 10px; }
.ali1688-plan-created-no { font-size: 15px; }
.ali1688-plan-created .ali1688-plan-foot { justify-content: center; }

/* ── 1688 多账号授权（v1.2.0） ───────────────────────────── */
.ali1688-account-bar { padding: 10px 14px; margin-bottom: 12px; }
.ali1688-account-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ali1688-account-label { font-size: 12.5px; color: #475467; font-weight: 600; }
.ali1688-account-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; }
.ali1688-account-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #344054; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.ali1688-account-chip.active { border-color: #1677ff; color: #1677ff; background: #eff4ff; font-weight: 600; }
.ali1688-chip-tag { font-size: 10.5px; color: #6941c6; background: #f4ebff; border-radius: 6px; padding: 0 5px; }
.ali1688-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; display: inline-block; }
.ali1688-chip-dot.ok { background: #12b76a; }
.ali1688-chip-dot.bad { background: #f79009; }
.ali1688-account-meta { margin-top: 6px; font-size: 12px; color: #667085; }
.ali1688-create-account { margin: 0 14px 8px; font-size: 12.5px; color: #344054; }
.ali1688-create-account .muted { margin-left: 8px; }
.ali1688-account-manage-foot { display: flex; align-items: center; gap: 12px; padding-top: 10px; }

/* 商品成本与重量调整页 */
.cw-search-field { display: inline-flex; align-items: center; position: relative; width: 360px; max-width: 100%; flex: 0 0 360px; }
.cw-search-field > input { width: 100% !important; }
.cw-search-input { height: 34px; }
.cw-table .cw-input { width: 110px; height: 30px; text-align: right; }
.cw-code { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cw-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cw-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #475467; }
.cw-filter select, .cw-filter input { height: 30px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 8px; font-size: 12px; }
.cw-new-value { color: #b42318; font-weight: 600; }

/* 1688 配对：供货商只读提示 */
.supplier-lock-line { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: 12px; color: #475467; }
.supplier-lock-line b { color: #101828; font-weight: 600; }
.supplier-lock-line em { font-style: normal; color: #98a2b3; font-size: 11px; }

/* ---------------- 采购计划 → 确认订单页（v1.12.0，新标签页，按店小秘最新截图重做） ---------------- */
.poc-page { padding: 14px 0 32px; background: #f2f3f5; min-height: calc(100vh - var(--topnav-offset, 0px)); }
.poc-inner { width: 66.67%; margin: 0 auto; }
@media (max-width: 1350px) { .poc-inner { width: 100%; padding: 0 16px; } }
.poc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.poc-crumb { font-size: 12.5px; color: #667085; }
.poc-crumb a { color: #475467; }
.poc-submit { height: 36px; padding: 0 22px; border: none; border-radius: 3px; background: #f97316; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.poc-submit:hover { background: #ea580c; }
.poc-submit:disabled { background: #f9b184; cursor: not-allowed; }
.poc-bad { color: #b42318; }
.poc-problems { border: 1px solid #fecdca; background: #fff6f5; border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; font-size: 12.5px; color: #912018; }
.poc-problems b { color: #b42318; }
.poc-problems ul { margin: 6px 0; padding-left: 20px; }
.poc-problems li { margin: 2px 0; }
.poc-colhead { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; align-items: center; background: #fff; border: 1px solid #e7eaf0; height: 42px; margin-bottom: 8px; font-size: 13px; color: #475467; }
.poc-colhead-inner { display: grid; grid-template-columns: minmax(0, 1fr) 92px 100px 110px; gap: 6px; align-items: center; padding: 0 14px; height: 100%; }
.poc-colhead-inner > span { text-align: center; }
.poc-colhead-inner > span:first-child { text-align: left; }
.poc-colhead-pad { padding-left: 16px; font-size: 12px; color: #98a2b3; }
.poc-card { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; background: #fff; border: 1px solid #e7eaf0; margin-bottom: 14px; position: relative; }
.poc-card.is-marked { border-left: 3px solid var(--poc-mark, #d9dee7); }
.poc-card-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid #f1f3f7; font-size: 13px; color: #475467; }
.poc-supplier { font-weight: 600; color: #344054; }
.poc-1688-tag { background: #fff1e8; color: #c2410c; border-radius: 3px; padding: 0 5px; font-size: 11px; font-style: italic; font-weight: 700; }
.poc-warehouse { margin-left: auto; font-size: 12.5px; color: #667085; }
.poc-card-body { grid-column: 1 / -1; display: contents; }
.poc-form { display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 16px; background: #f7f8fa; border-right: 1px solid #f1f3f7; }
.poc-field { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: #475467; }
.poc-field > span:first-child { width: 88px; flex: none; text-align: right; color: #475467; white-space: nowrap; font-size: 12px; }
.poc-field.poc-field-top { align-items: flex-start; }
.poc-field.poc-field-top > span:first-child { padding-top: 5px; }
.poc-required { width: auto !important; color: #d92d20 !important; text-align: left !important; margin-left: -4px; }
.poc-input { flex: 1; min-width: 0; height: 30px; border: 1px solid #d9dee7; border-radius: 3px; background: #fff; padding: 0 8px; font-size: 12.5px; color: #101828; }
.poc-input:focus, .poc-textarea:focus { outline: none; border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.poc-textarea { flex: 1; min-width: 0; border: 1px solid #d9dee7; border-radius: 3px; background: #fff; padding: 5px 8px; font-size: 12.5px; color: #101828; resize: vertical; min-height: 48px; }
.poc-address-box { flex: 1; min-width: 0; }
.poc-address-text { font-size: 12px; color: #344054; line-height: 1.6; word-break: break-word; }
.poc-address-text b { color: #101828; font-weight: 600; }
.poc-link { margin-top: 2px; border: none; background: none; padding: 0; color: #2563eb; font-size: 12px; cursor: pointer; }
.poc-link:hover { text-decoration: underline; }
.poc-colors { display: flex; align-items: center; gap: 8px; padding-left: 90px; margin-top: 2px; }
.poc-color { width: 20px; height: 20px; border-radius: 3px; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.poc-color.active { border-color: #101828; }
.poc-items { display: flex; flex-direction: column; padding: 12px 14px 0; min-width: 0; }
.poc-item-box { border: 1px dashed #d9dee7; border-radius: 2px; padding: 10px; margin-bottom: 10px; }
.poc-item { display: grid; grid-template-columns: minmax(0, 1fr) 92px 100px 110px; align-items: center; gap: 6px; }
.poc-item-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.poc-item-thumb { width: 56px; height: 56px; flex: none; border: 1px solid #eef1f6; border-radius: 2px; object-fit: cover; background: #fafbfc; }
.poc-item-thumb.placeholder { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #98a2b3; }
.poc-item-name { min-width: 0; }
.poc-item-name b { display: block; font-size: 12.5px; color: #101828; }
.poc-item-name p { margin-top: 2px; font-size: 12px; color: #667085; line-height: 1.5; word-break: break-word; }
.poc-item-name small { display: block; margin-top: 3px; font-size: 11px; color: #98a2b3; }
.poc-item-price, .poc-item-amount { text-align: center; font-size: 12.5px; color: #101828; font-variant-numeric: tabular-nums; }
.poc-item-qty { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: #667085; }
.poc-item-qty input { width: 58px; height: 26px; border: 1px solid #d9dee7; border-radius: 3px; text-align: center; font-size: 12.5px; color: #101828; }
.poc-item-qty input:focus { outline: none; border-color: #93b4f5; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.poc-1688-item { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.poc-1688-label { flex: none; font-size: 11.5px; color: #b45309; padding-top: 6px; }
.poc-1688-body { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; background: #f5f6f8; border: 1px solid #eceff4; border-radius: 2px; padding: 6px 8px; }
.poc-1688-thumb { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 2px; background: #fff; border: 1px solid #eef1f6; }
.poc-1688-thumb.placeholder { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #98a2b3; }
.poc-1688-copy { min-width: 0; }
.poc-1688-title { font-size: 12px; color: #344054; line-height: 1.5; word-break: break-word; }
.poc-1688-meta { margin-top: 2px; font-size: 11.5px; color: #667085; }
.poc-1688-empty { flex: 1; font-size: 11.5px; color: #b42318; background: #fff6f5; border: 1px dashed #fecdca; border-radius: 2px; padding: 6px 8px; }
.poc-group-total { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px 2px 12px; border-top: 1px solid #f1f3f7; font-size: 12.5px; color: #475467; }
.poc-group-total b { color: #101828; font-size: 14px; font-variant-numeric: tabular-nums; }
.poc-pay { border-left: 1px solid #f1f3f7; background: #fcfcfd; padding: 12px 14px; }
.poc-pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: #101828; }
.poc-pay-head .muted { font-size: 11.5px; }
.poc-pay-empty { margin-bottom: 8px; font-size: 11.5px; color: #b42318; line-height: 1.6; }
.poc-pay-method { border: 1px solid #eef1f6; border-radius: 4px; background: #fff; padding: 6px 8px; margin-bottom: 6px; }
.poc-pay-method > label { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 12px; color: #344054; }
.poc-pay-field { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11.5px; color: #667085; }
.poc-pay-field > span { width: 62px; flex: none; }
.poc-pay-field input { flex: 1; min-width: 0; height: 24px; border: 1px solid #eef1f6; border-radius: 3px; background: #fafbfc; padding: 0 6px; font-size: 11.5px; color: #344054; }
.poc-pay-line { display: flex; align-items: flex-start; gap: 6px; }
.poc-pay-line .poc-pay-field { flex: 1; min-width: 0; margin-bottom: 0; }
.poc-pay-qr { width: 52px; height: 52px; object-fit: contain; border: 1px solid #eef1f6; border-radius: 3px; background: #fff; }
.poc-pay-qr-empty { font-size: 11px; color: #98a2b3; }
.poc-summary { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid #e7eaf0; padding: 11px 18px; font-size: 12.5px; color: #475467; }
.poc-summary b { color: #101828; font-variant-numeric: tabular-nums; }
.poc-sum-total b { color: #f97316; font-size: 15px; }
.poc-preview-ok { font-size: 12px; color: #067647; }
.poc-preview-bad { font-size: 12px; color: #b42318; }
.poc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 12px; font-size: 12px; }
.poc-empty { padding: 40px 24px; text-align: center; }
.poc-empty h2 { font-size: 20px; margin-bottom: 10px; }
.poc-empty p { margin-bottom: 14px; }
.poc-done { padding: 32px 26px; text-align: center; }
.poc-done-icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #d1fadf; color: #067647; font-size: 26px; line-height: 52px; }
.poc-done h2 { font-size: 19px; margin-bottom: 12px; }
.poc-done-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; text-align: left; }
.poc-done-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e7eaf0; border-radius: 4px; padding: 9px 12px; }
.poc-done-row.is-bad { border-color: #fecdca; background: #fff6f5; }
.poc-done-row b { font-size: 13px; }
.poc-done-row small { display: block; margin-top: 3px; font-size: 12px; color: #667085; }
.poc-order-no { color: #101828; }
.poc-done-actions { display: flex; justify-content: center; gap: 10px; margin: 16px 0 8px; }
.poc-done p { margin-bottom: 8px; font-size: 13px; color: #344054; }
.poc-addr-wrap { display: flex; flex-direction: column; gap: 8px; }
.poc-addr-row { display: flex; align-items: flex-start; gap: 8px; border: 1px solid #e7eaf0; border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.poc-addr-row:hover { border-color: #93b4f5; }
.poc-addr-main b { display: block; font-size: 13px; color: #101828; }
.poc-addr-main small { font-size: 12px; color: #667085; line-height: 1.6; }
.poc-add-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 1280px) {
  .poc-colhead { display: none; }
  .poc-card { grid-template-columns: 260px minmax(0, 1fr); }
  .poc-pay { grid-column: 1 / -1; border-left: none; border-top: 1px solid #f1f3f7; }
}
@media (max-width: 900px) {
  .poc-card { grid-template-columns: minmax(0, 1fr); }
  .poc-form { border-right: none; border-bottom: 1px solid #f1f3f7; }
  .poc-colors { padding-left: 90px; }
  .poc-item { grid-template-columns: minmax(0, 1fr) 76px 88px 92px; }
  .poc-summary { justify-content: flex-start; gap: 14px; }
}

/* 供应商：运费是否支付税点并开票 */
.inline-tax-freight { margin-left:12px; font-size:11.5px; color:#667085; }
.inline-tax-freight b { margin-left:4px; font-weight:700; }
.inline-tax-freight b.is-on { color:#067647; }
.inline-tax-freight b.is-off { color:#b42318; }

/* v1.14.0 采购计划：列宽优化（不再中间空一片）+ 行高减半 */
.pp-table { table-layout: fixed; }
.pp-table th { padding: 4px 6px; }
.pp-table td { padding: 4px 6px; font-size: 12px; }
.pp-col-check { width: 30px; }
.pp-table th:nth-child(2) { width: 24%; }
.pp-col-1688 { width: 11%; }
.pp-col-1688price { width: 8%; }
.pp-col-buyer { width: 9%; }
.pp-col-price { width: 7%; }
.pp-col-tax { width: 9%; }
.pp-col-qty { width: 7%; }
.pp-col-amount { width: 7%; }
.pp-col-remark { width: 12%; }
.pp-col-ops { width: 6%; }
.pp-product { gap: 6px; }
.pp-product .product-thumb { width: 24px; height: 24px; border-radius: 5px; font-size: 11px; flex: none; }
.pp-product-name { max-width: none; font-size: 12px; }
.pp-product-sub { margin-top: 0; font-size: 10.5px; gap: 5px; }
.pp-product-sub code { font-size: 10px; padding: 0 3px; }
.pp-qty { width: 56px; height: 22px; font-size: 11.5px; padding: 0 2px; border-radius: 5px; }
.pp-buyer { width: 92px; height: 22px; font-size: 11.5px; padding: 0 4px; border-radius: 5px; }
.pp-remark { height: 22px; font-size: 11px; padding: 0 5px; border-radius: 5px; }
.pp-remark-tpl-btn { height: 20px; padding: 0 4px; }
.pp-remark-reset { padding: 0 3px; font-size: 10.5px; }
.pp-1688-title { font-size: 11px; max-width: none; }
.pp-1688-variant { font-size: 10.5px; }
.pp-tax-strategy, .pp-tax-point { font-size: 10.5px; }
.pp-op { font-size: 11.5px; padding: 0 2px; }
.pp-amount { font-size: 11.5px; }
.pp-mode-select { height: 24px; font-size: 11px; }

/* v1.14.0 确认订单页：字段并入供货商行、付款信息 2 倍宽、商品备注 */
.poc-card { grid-template-columns: 320px minmax(0, 1fr) 560px; }
.poc-card-head { display: grid; grid-template-columns: 320px minmax(0, 1fr) 560px; align-items: center; padding: 6px 0; }
.poc-card-head-left { display: flex; align-items: center; gap: 8px; padding-left: 16px; }
.poc-colhead-inner { display: grid; grid-template-columns: minmax(0, 1fr) 92px 100px 110px 110px; gap: 6px; align-items: center; padding: 0 14px; font-size: 12px; color: #667085; height: 100%; }
.poc-colhead-inner > span { text-align: center; }
.poc-colhead-inner > span:first-child { text-align: left; }
.poc-warehouse { text-align: right; padding-right: 16px; margin-left: 0; }
.poc-item { grid-template-columns: minmax(0, 1fr) 92px 100px 110px 110px; }
.poc-item-note-input { width: 100%; height: 26px; font-size: 11.5px; padding: 0 6px; }
.poc-pay-note { margin-top: 8px; }
.poc-pay-note .poc-textarea { width: 100%; min-height: 44px; }
i.poc-required { font-style: normal; color: #d92d20; margin-right: 2px; }
@media (max-width: 1280px) {
  .poc-card { grid-template-columns: 260px minmax(0, 1fr); }
  .poc-card-head { grid-template-columns: minmax(0, 1fr) auto; }
  .poc-colhead-inner { display: none; }
  .poc-pay { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .poc-item { grid-template-columns: minmax(0, 1fr) 72px 84px 90px 90px; }
}

/* v1.15.0 采购计划行高 75px、确认订单页商品备注加宽 + 收款码放大 */
.pp-table td { height: 75px; padding: 6px 8px; }
.pp-product .product-thumb { width: 44px; height: 44px; border-radius: 8px; font-size: 16px; }
.pp-product-name { font-size: 12.5px; }
.pp-product-sub { font-size: 11px; }
.poc-item { grid-template-columns: minmax(0, 1fr) 78px 78px 92px 150px; }
.poc-colhead-inner { grid-template-columns: minmax(0, 1fr) 78px 78px 92px 150px; }
.poc-pay-qr { transition: transform .16s ease, box-shadow .16s ease; transform-origin: center center; }
.poc-pay-qr:hover { transform: scale(3); position: relative; z-index: 30; box-shadow: 0 14px 34px rgba(16, 24, 40, .3); }
.poc-pay-profile { margin-top: 8px; border-top: 1px dashed #e4e7ec; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #667085; }
.poc-pay-profile > div { display: flex; justify-content: space-between; gap: 8px; }
.poc-pay-profile b { color: #344054; font-weight: 600; }
.poc-pay-profile b.is-on { color: #067647; }
.poc-pay-profile b.is-off { color: #b42318; }
@media (max-width: 900px) {
  .poc-item { grid-template-columns: minmax(0, 1fr) 60px 62px 72px 110px; }
  .poc-colhead-inner { grid-template-columns: minmax(0, 1fr) 60px 62px 72px 110px; }
}

/* v1.16.0 采购计划缩略图放大、确认订单页字号放大 */
.pp-product .product-thumb { width: 56px; height: 56px; border-radius: 10px; font-size: 20px; }
.poc-crumb { font-size: 13px; }
.poc-field { font-size: 14px; }
.poc-field > span:first-child { font-size: 13.5px; }
.poc-input { font-size: 14px; height: 33px; }
.poc-textarea { font-size: 14px; }
.poc-address-text { font-size: 13px; }
.poc-link { font-size: 13px; }
.poc-colhead-inner { font-size: 13.5px; }
.poc-item-name b { font-size: 14px; }
.poc-item-name p { font-size: 13.5px; }
.poc-item-name small { font-size: 11.5px; }
.poc-item-price, .poc-item-amount { font-size: 14px; }
.poc-item-qty { font-size: 13px; }
.poc-item-qty input { font-size: 14px; height: 29px; }
.poc-item-note-input { font-size: 13px; height: 29px; }
.poc-1688-title { font-size: 12.5px; }
.poc-1688-meta { font-size: 12px; }
.poc-1688-label { font-size: 12px; }
.poc-pay-head { font-size: 13.5px; }
.poc-pay-method > label { font-size: 12.5px; }
.poc-pay-field { font-size: 13px; }
.poc-pay-field input { font-size: 13px; height: 27px; }
.poc-pay-qr-empty { font-size: 11.5px; }
.poc-pay-profile { font-size: 12.5px; }
.poc-pay-empty { font-size: 12.5px; }
.poc-group-total { font-size: 13.5px; }
.poc-group-total b { font-size: 15px; }
.poc-summary { font-size: 14px; }
.poc-sum-item { }
.poc-preview-ok, .poc-preview-bad { font-size: 12.5px; }
.poc-warehouse { font-size: 13px; }
.poc-supplier { font-size: 13.5px; }
.poc-1688-tag { font-size: 11.5px; }
.poc-1688-tag.is-manual { background: #eef2ff; color: #4338ca; font-style: normal; }
.poc-foot-actions { display: flex; align-items: center; gap: 10px; }
/* v1.23.0 采购订单：状态徽章 / 行操作 */
.po-status { white-space: nowrap; }
.po-open-link { margin-left: 6px; font-size: 12px; color: #1d4ed8; }
.po-row-sub { font-size: 12px; color: #667085; margin-top: 2px; }
.poc-pay-field > span { width: 72px; white-space: nowrap; }
.poc-submit-1688 { background: #2563eb; }
.poc-submit-1688:hover { background: #1d4ed8; }
.poc-submit-1688:disabled { background: #93b4f5; }
/* v1.18.0 确认页顶部按钮组 + 采购左侧子菜单 */
.poc-top-actions { display: flex; align-items: center; gap: 10px; }
.trade-sub-nav { display: flex; flex-direction: column; margin: 2px 0 6px; }
.trade-sub-link { position: relative; padding: 7px 10px 7px 30px; font-size: 12.5px; color: #475467; border-radius: 6px; }
.trade-sub-link:hover { background: #f2f6ff; color: #1d4ed8; }
.trade-sub-link.active { background: #e8f1ff; color: #1d4ed8; font-weight: 600; }
.ali1688-purchase-filter { display: flex; gap: 8px; padding: 8px 16px; flex-wrap: wrap; }
/* v1.19.0 入库单子菜单分组/缩进 */
.trade-sub-group { padding: 8px 10px 4px 16px; font-size: 12px; font-weight: 700; color: #98a2b3; letter-spacing: .5px; }
.trade-sub-link { padding-left: 24px; }
.trade-sub-link.is-sub { padding-left: 40px; font-size: 12px; color: #667085; }
.trade-sub-link.is-sub.active { color: #1d4ed8; }
/* v1.21.0 入库单/采购订单 全部：筛选条（按店小秘截图） */
.po-filter { background: #fff; border: 1px solid #e7eaf0; border-radius: 8px; padding: 8px 14px; margin-bottom: 10px; font-size: 12.5px; color: #475467; }
.po-row { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #f1f3f7; flex-wrap: wrap; }
.po-row:last-child { border-bottom: 0; }
.po-label { width: 76px; flex: none; color: #667085; text-align: right; padding-top: 3px; }
.po-chips { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.po-chip { border: 1px solid transparent; background: transparent; color: #475467; font-size: 12.5px; padding: 2px 8px; border-radius: 3px; cursor: pointer; }
.po-chip:hover { color: #1d4ed8; background: #f2f6ff; }
.po-chip.active { background: #e8f1ff; color: #1d4ed8; font-weight: 600; }
.po-select { height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12.5px; background: #fff; }
.po-row-search { align-items: flex-start; }
.po-search { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; flex: 1 1 520px; min-width: 0; }
.po-search .bys-search-field { flex: 1 1 420px; position: relative; min-width: 260px; }
.po-search textarea { width: 100%; height: 38px; border: 1px solid #d9dee7; border-radius: 4px; padding: 6px 78px 6px 10px; font-size: 12.5px; resize: vertical; }
.po-search .bys-search-submit { position: absolute; right: 6px; top: 5px; }
.po-colors { display: flex; gap: 8px; margin: 6px 0 0 86px; }
.po-color { width: 20px; height: 20px; border-radius: 2px; display: inline-block; }
.po-date, .po-num { height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12.5px; }
.po-num { width: 96px; }
.po-adv { margin: 8px 0 4px 86px; border: 1px solid #fecdca; border-radius: 4px; padding: 10px 14px; width: 560px; max-width: 100%; background: #fff; }
.po-adv-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; }
.po-adv-row > span:first-child { width: 96px; text-align: right; color: #667085; }
.po-adv-more { text-align: center; margin: 2px 0 6px; }
.po-adv-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 6px; border-top: 1px dashed #f1f3f7; }
.po-link { border: 0; background: none; color: #2563eb; font-size: 12.5px; cursor: pointer; padding: 0; }
.po-link:hover { text-decoration: underline; }

/* v1.23.3 成员登录与设备 / 批量重置密码 */
.member-security-card .cell-sub { font-size: 12px; color: #667085; margin-top: 2px; }
.br-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.br-list { max-height: 560px; overflow: auto; border: 1px solid #e7eaf0; border-radius: 8px; padding: 6px; display: block; }
.br-group + .br-group { margin-top: 6px; border-top: 1px dashed #eef1f6; padding-top: 6px; }
.br-group-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 4px; font-size: 12.5px; color: #344054; position: sticky; top: -6px; background: #fff; z-index: 1; }
.br-group-head b { font-size: 13px; }
.br-group-head .br-group-all { margin-left: auto; }
.br-group-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px; }
.br-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.br-item:hover { background: #f7f9fc; }
.br-item span { display: flex; flex-direction: column; line-height: 1.3; }
.br-item b { font-size: 13px; font-weight: 600; }
.br-item small { font-size: 11.5px; color: #667085; }
.br-pwd { font-size: 13px; letter-spacing: .5px; }
.br-result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.br-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef1f6; }

.br-result-scroll { max-height: 56vh; overflow: auto; border: 1px solid #e7eaf0; border-radius: 8px; }
.br-result-table { width: 100%; min-width: 520px; }
.br-result-table th { position: sticky; top: 0; background: #f7f9fc; z-index: 1; }
.br-result-table tr.br-result-group td { background: #fafbfd; font-weight: 600; color: #344054; }

/* v1.23.4/5 登录页：深蓝背景 + 浅色网格 + 白色发光标语 */
.login {
  background:
    radial-gradient(900px 520px at 88% 6%, rgba(37, 99, 235, .42), transparent 62%),
    radial-gradient(760px 520px at 8% 96%, rgba(13, 148, 136, .26), transparent 60%),
    linear-gradient(160deg, #071627 0%, #0b2342 46%, #082c3f 100%) !important;
}
.login-grid-bg {
  display: block !important;
  background-image:
    linear-gradient(rgba(165, 205, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 205, 255, .14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 620px at 55% 38%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(900px 620px at 55% 38%, #000 18%, transparent 82%);
}
.login-visual { color: #e6eefb; }
.login-brand strong { color: #fff; font-size: 17px; }
.login-brand span { color: #8fa6c6; }
.login-copy h1 {
  font-size: clamp(20px, 2.7vw, 40px);
  line-height: 1.28;
  letter-spacing: 2px;
  font-weight: 800;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  filter: none;
  text-shadow:
    0 0 16px rgba(190, 150, 255, .80),
    0 0 40px rgba(130, 190, 255, .60),
    0 0 90px rgba(90, 160, 255, .40),
    0 4px 22px rgba(0, 0, 0, .55);
}
.login-copy .lead { color: #a9bdd7; }
.eyebrow { color: #6f8bb3; }
.login-foot, .login-icp { color: #8fa6c6; }
.login-panel {
  border: 1px solid rgba(160, 205, 255, .26);
  background: rgba(6, 15, 30, .62);
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.login-form-head h2 { color: #fff; }
.login-form-head p { color: #b8c8dd; }
.login-panel .field span { color: #c5d4e8; }
.login-panel .field input { background: #fff; border-color: rgba(190, 215, 245, .55); }
.login-help { color: #a9bdd7; }
.login-help b { color: #dbe7f7; }

/* ---------------- 子账号权限管理（仿店小秘） ---------------- */
.subacct-tabs { display: flex; gap: 2px; margin: -4px -4px 6px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.subacct-tab { position: relative; padding: 11px 22px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; color: #475467; cursor: pointer; }
.subacct-tab:hover { color: var(--brand); }
.subacct-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.subacct-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 0 12px; }
.subacct-search-label { font-size: 13px; color: #344054; }
.subacct-type { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: #475467; cursor: pointer; }
.subacct-type:hover { border-color: #b9cbff; }
.subacct-type.active { background: #eaf0ff; border-color: #b9cbff; color: var(--brand); font-weight: 600; }
.subacct-search .team-search { width: 320px; }
.subacct-toolbar { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; }
.subacct-more { position: relative; display: inline-flex; }
.subacct-more-panel { position: fixed; right: auto; top: auto; z-index: 80; min-width: 160px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 28px -12px rgba(16, 24, 40, .3); }
.subacct-more-panel[hidden] { display: none; }
.subacct-more-panel button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 12.5px; color: #344054; cursor: pointer; white-space: nowrap; }
.subacct-more-panel button:hover { background: #f2f5fa; }
.subacct-more-panel button.danger { color: var(--red); }
.subacct-table th { background: #f7f9fc; font-weight: 600; }
.subacct-table .sub-check { width: 38px; text-align: center; }
.subacct-links { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.btn-link { padding: 0; border: 0; background: none; color: var(--brand); font-size: 12.5px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.subacct-info { margin-left: 2px; color: var(--muted-2); font-size: 12px; cursor: help; }
.sub-perm-tree { margin-top: 10px; max-height: 46vh; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.sub-perm-group + .sub-perm-group { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.sub-perm-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sub-perm-items { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sub-perm-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #344054; }
.sub-perm-item.lv2, .sub-perm-item.lv3 { margin-left: 18px; color: #475467; }
.sub-perm-toolbar { display: flex; flex-wrap: wrap; gap: 14px; }
.sub-perm-toolbar .field { min-width: 230px; flex: 1; }
.subacct-search .bys-search-field { flex: 0 0 320px; width: 320px; }
.subacct-search .bys-search-field > input { width: 100%; }

/* v1.23.7 子账号权限管理 / 角色管理：布局优化（紧凑行高、表头居中、滚动区、计数靠右） */
.subacct-card .card-head { padding-bottom: 0; }
.subacct-tabs { margin: 0 0 2px; padding: 0 2px; }
.subacct-tab { padding: 12px 24px; }
.subacct-search { padding: 14px 0 10px; }
.subacct-toolbar { padding: 2px 0 12px; }
.subacct-count { margin-left: auto; font-size: 12px; }
.subacct-table-wrap { max-height: calc(100vh - var(--topnav-offset, 89px) - 280px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.subacct-table-wrap table.data { border-collapse: separate; border-spacing: 0; }
.subacct-table { font-size: 12.5px; table-layout: fixed; }
.subacct-table th { text-align: center; padding: 9px 10px; font-size: 12px; color: #475467; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.subacct-table td { text-align: center; padding: 7px 10px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.subacct-table thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--line); }
.subacct-table .cell-sub { font-size: 11px; line-height: 1.3; color: var(--muted-2); }
.subacct-table .subacct-links { justify-content: center; }
.subacct-table .badge { font-size: 11.5px; }
.subacct-table td b { font-weight: 600; color: #1d2939; }
.subacct-table td, .subacct-table th { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .subacct-search .bys-search-field { flex: 1 1 220px; width: auto; }
  .subacct-count { margin-left: 0; }
  .subacct-toolbar { flex-wrap: wrap; }
  .subacct-table-wrap { max-height: none; }
}

/* v1.23.9 角色权限：三级菜单树 + 配置成员 */
.subacct-card .card-head p { margin-top: 2px; font-size: 12px; color: var(--muted); }
.sub-perm-tree { margin-top: 10px; max-height: 48vh; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.sub-perm-group + .sub-perm-group { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.sub-perm-group-head { display: flex; align-items: center; gap: 14px; }
.sub-perm-group-actions { display: flex; gap: 10px; }
.sub-perm-group-title b { font-size: 13px; color: #1d2939; }
.sub-perm-branch { margin-left: 20px; padding-left: 14px; border-left: 1px dashed var(--line); }
.sub-perm-node { padding: 2px 0; }
.sub-perm-node .sub-perm-branch { margin-top: 2px; }
.sub-perm-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #344054; }
.sub-perm-node.lv2 > .sub-perm-item { color: #667085; font-size: 12px; }
.sub-perm-item.lv2, .sub-perm-item.lv3 { margin-left: 0; }

.member-filter { display: flex; flex-wrap: wrap; gap: 12px; }
.member-filter .field { flex: 1 1 170px; min-width: 170px; }
.member-filter .mp-search { flex: 2 1 280px; }
.member-pick-toolbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; flex-wrap: wrap; }
.member-pick-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.member-pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.member-pick-item:last-child { border-bottom: 0; }
.member-pick-item .mp-name { min-width: 76px; font-weight: 600; color: #1d2939; }
.member-pick-item .mp-meta { min-width: 96px; color: var(--muted); }
.member-pick-item .mp-tag { padding: 1px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 11px; white-space: nowrap; }
.member-pick-item .mp-tag.warn { background: #fff4e5; color: #b54708; }
@media (max-width: 900px) {
  .member-filter .field, .member-filter .mp-search { flex: 1 1 100%; }
  .member-pick-item { flex-wrap: wrap; gap: 4px 10px; }
}

/* v1.23.10 角色管理：搜索区竖排 + 表头居中 + 内容留白 */
.subacct-body { padding: 0 14px 14px; }
.subacct-search { display: block; padding: 12px 0 10px; }
.subacct-search-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.subacct-search-line { display: flex; align-items: center; gap: 12px; }
.subacct-search-line .bys-search-field { flex: 0 0 320px; }
.subacct-count { margin-left: auto; margin-right: 4px; font-size: 12px; }
table.data.subacct-table th, table.data.subacct-table td { text-align: center; }

/* v1.23.12 工作台 / 产品 / 头像上传 */
.wb-page { display: flex; flex-direction: column; gap: 16px; }
.wb-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.wb-hello h2 { font-size: 20px; letter-spacing: -.3px; }
.wb-hello p { margin-top: 4px; }
.wb-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.wb-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.wb-kpi:hover { border-color: #b9cbff; box-shadow: var(--shadow); }
.wb-kpi span { font-size: 12px; color: var(--muted); }
.wb-kpi b { font-size: 24px; line-height: 1.25; }
.wb-kpi small { font-size: 11px; color: var(--muted-2); }
.wb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .wb-grid { grid-template-columns: 1fr; } .wb-hero { flex-direction: column; align-items: flex-start; } }

.prd-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.prd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.prd-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.prd-card:hover { border-color: #b9cbff; box-shadow: var(--shadow); }
.prd-thumb { display: flex; align-items: center; justify-content: center; height: 150px; background: #f6f8fb; color: var(--muted-2); font-size: 30px; }
.prd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prd-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.prd-info b { font-size: 13px; line-height: 1.4; }
.prd-info small { color: var(--muted); font-size: 11.5px; }
.prd-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; color: var(--muted); font-size: 11.5px; }

.avatar-upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.avatar-upload-btn input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* v1.23.13 头像粘贴框 + 工作台欢迎区 + 完善资料提醒 */
.avatar-paste-box { display: flex; align-items: center; justify-content: center; min-height: 118px; margin-top: 10px; padding: 14px; border: 1.5px dashed #c9d4e6; border-radius: 12px; background: #fafbfe; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.avatar-paste-box:hover { border-color: #93b4ff; background: #f5f9ff; }
.avatar-paste-box:focus { outline: none; border-color: var(--brand); background: #f5f9ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.avatar-paste-hint { text-align: center; font-size: 12.5px; line-height: 1.8; color: #475467; }
.avatar-paste-hint[hidden] { display: none; }
.avatar-paste-img { display: block; max-width: 140px; max-height: 140px; border-radius: 10px; object-fit: cover; }
.avatar-paste-img[hidden] { display: none; }

.wb-hello { display: flex; flex-direction: column; gap: 8px; }
.wb-hello-row { display: flex; align-items: center; gap: 12px; }
.wb-hello .wb-avatar { width: 52px; height: 52px; font-size: 20px; border-radius: 50%; }
.wb-profile-tip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #fecd8b; border-radius: 999px; background: #fff7ed; color: #b54708; font-size: 12.5px; cursor: pointer; }
.wb-profile-tip:hover { background: #ffedd5; }
.wb-profile-tip .ic { width: 14px; height: 14px; }

.profile-prompt { text-align: center; padding: 4px 0 2px; }
.profile-prompt-avatar { display: flex; justify-content: center; margin-bottom: 10px; }
.profile-prompt-avatar .team-avatar { width: 64px; height: 64px; font-size: 24px; }
.profile-prompt-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* v1.23.14 头像：粘贴框缩小到选择按钮右侧，头像显示放大 */
.avatar-edit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar-edit-row .avatar-edit-current { width: 64px; height: 64px; font-size: 22px; }
.avatar-edit-row .avatar-upload-btn { flex: none; }
.avatar-edit-hint { font-size: 11.5px; }
.avatar-paste-box { flex: none; width: 132px; height: 100px; min-height: 0; margin-top: 0; padding: 6px; overflow: hidden; }
.avatar-paste-hint { font-size: 11px; line-height: 1.5; color: #667085; }
.avatar-paste-hint small { font-size: 10px; color: var(--muted-2); }
.avatar-paste-plus { display: block; font-size: 20px; font-weight: 600; line-height: 1.1; color: #93b4ff; }
.avatar-paste-img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 8px; object-fit: cover; }

/* v1.23.15 头像：选择按钮在粘贴框上方，说明文字放进框内 */
.avatar-edit-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avatar-edit-col .avatar-upload-btn { margin: 0; }
.avatar-paste-box { width: 132px; height: 116px; }
.avatar-paste-hint { font-size: 11px; line-height: 1.55; color: #667085; }
.avatar-paste-hint small { font-size: 10px; }
.avatar-paste-note { display: inline-block; margin-top: 4px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }

/* v1.23.17 三级菜单改成下拉面板内联展开（不再右侧浮层遮挡） */
.nav-sub { max-height: min(72vh, 560px); overflow: auto; }
.nav-group:nth-last-child(-n+3) .nav-sub { left: auto; right: 0; }
.nav-sub-group { position: static; }
.nav-sub-group > .nav-sub {
  position: static;
  display: none;
  min-width: 0;
  margin: 2px 0 4px 14px;
  padding: 2px 0 2px 10px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nav-sub-group:hover > .nav-sub, .nav-sub-group:focus-within > .nav-sub { display: block; }
.nav-sub-group > .nav-sub-item { position: relative; padding-right: 18px; }
.nav-sub-group > .nav-sub-item::after { content: '›'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 12px; }
.nav-sub-group > .nav-sub .nav-sub-item { padding: 6px 10px; font-size: 11px; color: #667085; }
.nav-sub-group > .nav-sub .nav-sub-item:hover,
.nav-sub-group > .nav-sub .nav-sub-item.active { background: #eef4ff; color: #1d4ed8; }

/* v1.23.18 三级菜单：默认收起，悬停二级项再展开（内联缩进，不弹浮层） */
.nav-group:hover .nav-sub-group > .nav-sub { display: none; }
.nav-group:hover .nav-sub-group:hover > .nav-sub,
.nav-sub-group:focus-within > .nav-sub { display: block; }
.nav-sub-group > .nav-sub {
  margin: 2px 0 4px 10px;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #e6ebf3;
}
.nav-sub-group > .nav-sub .nav-sub-item { padding: 6px 8px; border-radius: 6px; font-size: 11px; }
.nav-sub-group:hover > .nav-sub-item::after { transform: translateY(-50%) rotate(90deg); }
.nav-sub-group > .nav-sub-item::after { transition: transform .15s; }

/* v1.23.19 下拉菜单：二级/三级一次性全部展开；二级面板左边缘与顶级菜单左对齐 */
.nav-group:hover .nav-sub-group > .nav-sub { display: block; }
.nav-group .nav-sub,
.nav-group:nth-last-child(-n+3) .nav-sub { left: 0; right: auto; }
/* 三级已一次性展开，去掉右侧「›」箭头以免误解 */
.nav-sub-group > .nav-sub-item::after { display: none; }
.nav-sub-group > .nav-sub-item { padding-right: 10px; }

/* v1.23.20 角色权限：每个菜单带 只读/编辑/删除/导入/导出/仅个人 */
.sub-perm-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 1px 0; }
.perm-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.perm-chips.is-off { opacity: .45; }
.perm-chip { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #98a2b3; font-size: 10.5px; line-height: 1.7; cursor: pointer; }
.perm-chip:hover { border-color: #b9cbff; color: var(--brand); }
.perm-chip.on { border-color: #b9cbff; background: #eaf0ff; color: var(--brand); font-weight: 600; }
.sub-perm-group-head { flex-wrap: wrap; }
.sub-perm-tree { max-height: 56vh; }

/* v1.23.21 暂无权限页 + 消息通知页签 */
.no-perm-card { max-width: 560px; margin: 48px auto; padding: 44px 28px; text-align: center; }
.no-perm-icon { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.no-perm-card h3 { font-size: 20px; margin-bottom: 8px; }
.no-perm-card p { margin-bottom: 20px; }
.reminder-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.reminder-tabs { display: inline-flex; gap: 6px; }
.reminder-tab { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #475467; font-size: 12.5px; cursor: pointer; }
.reminder-tab:hover { border-color: #b9cbff; color: var(--brand); }
.reminder-tab.active { background: #eaf0ff; border-color: #b9cbff; color: var(--brand); font-weight: 600; }

/* v1.23.23 备忘提醒/消息通知：仿编辑商品面板的顶部页签栏 */
.reminder-tabs-bar { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.reminder-tab { padding: 11px 22px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: #475467; font-size: 13.5px; cursor: pointer; }
.reminder-tab:hover { color: var(--brand); }
.reminder-tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.reminder-new-btn { margin-left: auto; margin-bottom: 6px; }
.reminder-panel { padding: 0 2px; }
.reminder-panel .reminder-list { display: flex; flex-direction: column; gap: 8px; }
.reminder-panel .reminder-row { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
.reminder-panel .reminder-row.due { border-color: #fecd8b; background: #fffbf3; }
.reminder-tab, .reminder-tab.active { background: transparent; border-radius: 0; }
.reminder-tab.active { border-bottom-color: var(--brand); color: var(--brand); }

/* v1.23.24 备忘提醒：恢复原宽度、顶部无标题页签、页签之间有边界 */
.reminder-topbar { display: flex; align-items: center; gap: 10px; padding: 2px 0 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.reminder-topbar .reminder-tabs-bar { display: inline-flex; gap: 8px; margin: 0; border: 0; }
.reminder-topbar .reminder-tab { padding: 7px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #475467; font-size: 13px; cursor: pointer; }
.reminder-topbar .reminder-tab:hover { border-color: #b9cbff; color: var(--brand); }
.reminder-topbar .reminder-tab.active { background: #eaf0ff; border-color: #b9cbff; border-bottom-color: #b9cbff; color: var(--brand); font-weight: 600; }
.reminder-topbar .reminder-new-btn { margin-left: auto; }
.reminder-topbar .reminder-close { margin-left: 2px; flex: none; }

/* v1.23.25 消息通知 */
.reminder-group + .reminder-group { margin-top: 18px; }
.reminder-group-title { font-size: 12px; font-weight: 600; color: #667085; margin: 4px 0 8px; }
.nt-read-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nt-read { font-size: 11px; color: #98a2b3; background: #f2f4f7; border-radius: 999px; padding: 1px 8px; }
.nt-read.ok { color: #067647; background: #ecfdf3; }

/* v1.23.26 通知选人搜索 */
.nt-user-list { max-height: 220px; overflow: auto; margin-top: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.nt-user-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.nt-user-item:hover { background: #f4f7fb; }
.nt-user-item small { color: var(--muted); font-size: 11px; }

/* v1.23.28 采购单卡片式布局（仿店小秘） */
.po-cards { display: flex; flex-direction: column; gap: 14px; padding: 12px 14px 16px; }
.po-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.po-card-head { display: flex; align-items: center; gap: 18px; padding: 9px 14px; background: #f4f8ff; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: #475467; flex-wrap: wrap; }
.po-card-head .po-no { font-size: 13.5px; color: #1d2939; }
.po-head-meta { color: #667085; }
.po-head-status { margin-left: auto; color: #667085; }
.po-card-body { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr auto; gap: 16px; padding: 12px 14px; align-items: start; }
.po-label-line { font-size: 12.5px; line-height: 1.95; color: #475467; }
.po-label-line b { color: #1d2939; }
.po-1688-tag { color: #ff6a00; font-weight: 600; }
.po-card-actions { align-self: start; }
.po-card-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; padding: 0 14px 14px; }
.po-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; }
.po-item-thumb { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #f6f8fb; color: var(--muted-2); }
.po-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.po-item-info { flex: 1; min-width: 0; }
.po-item-code { font-size: 12px; font-weight: 600; color: #1d2939; }
.po-item-name { font-size: 12px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-item-sub { font-size: 11px; color: var(--muted-2); }
.po-item-qty { font-size: 12px; font-weight: 600; color: #b54708; white-space: nowrap; }
.po-item-price { font-size: 12px; color: #475467; white-space: nowrap; }
@media (max-width: 1100px) { .po-card-body { grid-template-columns: 1fr 1fr; } }

/* v1.23.29 采购单：旺旺入口与备注字段 */
.po-wangwang { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #ff6a00; font-size: 12px; text-decoration: none; }
.po-wangwang:hover { text-decoration: underline; }
.po-ww-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 3px; background: #ff6a00; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }

/* v1.23.30 采购单列重排：1688订单信息 / 物流 / 备注 */
.po-card-body { grid-template-columns: 1.25fr 1.55fr 0.8fr 1.25fr 0.9fr auto; }
.po-col-title { font-size: 12px; font-weight: 600; color: #1d2939; margin-bottom: 2px; }
.po-card-info { min-width: 0; }
@media (max-width: 1300px) { .po-card-body { grid-template-columns: 1fr 1fr 1fr; } }

/* v1.23.31 采购单头部信息行 + 旺旺图标 */
.po-card-head { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; padding: 10px 14px; }
.po-head-id { min-width: 175px; }
.po-head-sub { display: block; margin-top: 2px; font-size: 12px; color: #667085; }
.po-head-col { min-width: 0; }
.po-head-col .po-col-title { margin-bottom: 2px; }
.po-card-head .po-label-line { line-height: 1.8; }
.po-card-body { grid-template-columns: 1.5fr 0.7fr auto; }
.po-ww-img { width: 18px; height: 18px; vertical-align: -4px; display: inline-block; }
.po-wangwang { margin-left: 8px; }

/* v1.23.32 采购单：表头一行标签、下一行数值 */
.po-card-grid { display: grid; grid-template-columns: 1.1fr .8fr .7fr 1.6fr .8fr 1.4fr 1fr 1fr; background: #f4f8ff; border-bottom: 1px solid var(--line-soft); }
.po-g-label { padding: 9px 12px 0; font-size: 11.5px; color: #667085; font-weight: 600; }
.po-g-value { padding: 1px 12px 10px; font-size: 12.5px; color: #344054; line-height: 1.8; min-width: 0; }
.po-g-value .po-no { font-size: 13px; color: #1d2939; }
@media (max-width: 1300px) { .po-card-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* v1.23.34 采购单：1688/物流/备注/时间/状态 与商品种类同一行 */
.po-card-body { grid-template-columns: 1.45fr 1.55fr .8fr 1.35fr 1fr .95fr .8fr auto; }

/* v1.23.37 采购单：表头同行 + 操作列竖排 */
.po-card-grid { grid-template-columns: 1.15fr 1fr 1fr 1.5fr .85fr 1.25fr 1.05fr .95fr auto; background: #f4f8ff; }
.po-card-grid .po-g-label { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.po-card-body { grid-template-columns: 1.15fr 1fr 1fr 1.5fr .85fr 1.25fr 1.05fr .95fr auto; align-items: start; }
.po-card-supplier { grid-column: span 3; min-width: 0; }
.po-card-actions .cell-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.po-card-actions .cell-actions .btn, .po-card-actions .cell-actions a.btn { text-align: center; }

/* v1.23.38 采购单：表头与内容居中、供应商块居中 */
.po-card-body .po-card-supplier,
.po-card-body .po-card-info { text-align: center; }
.po-card-supplier .po-supplier-line { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.po-card-body .po-card-actions .cell-actions { align-items: center; }
.po-card-grid .po-g-label .po-link { display: inline; }

/* v1.23.39 采购单：顶部单号行 + 供应商/订单信息 表头 */
.po-card-topline { display: flex; align-items: center; gap: 26px; padding: 9px 14px; background: #f4f8ff; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: #475467; flex-wrap: wrap; }
.po-card-topline .po-no { font-size: 13.5px; color: #1d2939; }
.po-card-grid { grid-template-columns: 1.7fr 1.6fr .9fr 1.4fr 1.1fr 1fr .9fr; }
.po-card-body { grid-template-columns: 1.7fr 1.6fr .9fr 1.4fr 1.1fr 1fr .9fr; }
.po-card-supplier { grid-column: auto; }

/* v1.23.40 采购单：单号/仓库/采购员 与 供应商/订单信息 同一行左侧 */
.po-card-grid { grid-template-columns: 2.9fr 1.5fr .9fr 1.4fr 1.1fr 1fr .9fr; }
.po-card-body { grid-template-columns: 2.9fr 1.5fr .9fr 1.4fr 1.1fr 1fr .9fr; }
.po-g-supplier { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; }
.po-g-supplier .po-top-meta { color: #475467; font-weight: 400; white-space: nowrap; }
.po-g-supplier .po-col-name { color: #667085; font-weight: 600; white-space: nowrap; }
.po-card-grid .po-g-label { padding: 9px 10px; }

/* v1.23.41 采购单：供应商内容移到「供应商/订单信息」表头下面 */
.po-card-grid { grid-template-columns: 2fr 1.3fr 1.3fr 1.55fr 1.15fr .95fr .9fr .85fr; }
.po-card-body { grid-template-columns: 2fr 1.3fr 1.3fr 1.55fr 1.15fr .95fr .9fr .85fr; }
.po-g-order { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-align: left; color: #475467; font-weight: 400; }
.po-g-order .po-no { font-size: 13.5px; color: #1d2939; }
.po-card-blank { min-width: 0; }

/* v1.23.42 采购单：表头与内容左对齐 */
.po-card-grid .po-g-label { text-align: left; }
.po-card-grid .po-g-label:not(.po-g-order) { padding-left: 4px; }
.po-card-body .po-card-supplier,
.po-card-body .po-card-info { text-align: left; }
.po-card-supplier .po-supplier-line { justify-content: flex-start; }
.po-card-body .po-card-actions .cell-actions { align-items: flex-start; }
.po-card-body .po-card-info { padding-left: 4px; }

/* v1.23.43 采购单：供应商联系方式 + 商品缩略图框 */
.po-ww-img { width: 22px; height: 22px; }
.po-thumbs { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; min-height: 68px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.po-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-soft); }
.po-thumbs-empty { font-size: 12px; color: var(--muted-2); }

/* v1.23.44 采购单：缩略图框收窄 + 货品详情折叠 */
.po-card-blank { display: flex; justify-content: flex-start; }
.po-thumbs { width: max-content; max-width: 195px; }
.po-thumbs img { width: 36px; height: 36px; }
.po-thumbs { min-height: 52px; }
.po-detail-toggle { margin-left: 10px; }
.po-card-items.hidden { display: none !important; }

/* v1.23.45 采购单缩略图框放大到参考尺寸 */
.po-thumbs { width: 100%; max-width: 390px; min-height: 140px; align-items: flex-start; justify-content: flex-start; padding: 10px; }
.po-thumbs img { width: 48px; height: 48px; }

/* v1.23.46 采购单缩略图：更大、默认 6 张 */
.po-thumbs { max-width: 430px; }
.po-thumbs img { width: 60px; height: 60px; }

/* v1.23.47 采购单缩略图框：右边对齐采购员、底边对齐商品种类 */
.po-card-blank { align-self: stretch; display: flex; }
.po-thumbs { width: 342px; max-width: none; height: 100%; min-height: 0; padding: 8px; align-items: flex-start; justify-content: flex-start; }
.po-thumbs img { width: 44px; height: 44px; }
.po-thumbs { height: calc(100% - 6px); }

/* v1.23.48 采购单：物流列改成「物流商 + 运单号」多行输入 */
.po-log-cell { min-width: 0; }
.po-log-editor { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.po-log-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.po-log-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.po-log-carrier { height: 30px; min-width: 96px; max-width: 100%; border: 1px solid #d9dee7; background: #fff; border-radius: 4px; padding: 0 8px; font-size: 12.5px; color: #1d2939; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; }
.po-log-carrier i { font-style: normal; color: #98a2b3; font-size: 10px; }
.po-log-carrier.empty { color: #98a2b3; }
.po-log-carrier:hover { border-color: #84adff; }
.po-log-no { height: 30px; flex: 1 1 76px; min-width: 0; width: 100px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 8px; font-size: 12.5px; }
.po-log-no:focus { outline: none; border-color: #84adff; box-shadow: 0 0 0 3px rgba(21, 112, 239, .12); }
.po-log-op { width: 26px; height: 30px; flex: none; border: 1px solid #d9dee7; background: #fff; border-radius: 4px; color: #475467; font-size: 15px; line-height: 1; cursor: pointer; }
.po-log-op:hover { color: #b42318; border-color: #fecdca; background: #fff5f4; }
.po-log-empty { color: #98a2b3; font-size: 12.5px; }
.po-log-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.po-log-foot .po-log-save { height: 26px; padding: 0 10px; font-size: 12px; }
.po-log-foot .po-log-save:disabled { opacity: .45; cursor: not-allowed; }
.po-log-foot .po-log-cancel { color: #667085; }
.po-carrier-picker { display: flex; flex-direction: column; gap: 10px; }
.po-carrier-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.po-carrier-item { text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid #f2f4f7; background: #fff; font-size: 13px; color: #1d2939; cursor: pointer; }
.po-carrier-item:last-child { border-bottom: 0; }
.po-carrier-item:hover { background: #f2f6ff; }
.po-carrier-item.active { background: #e8f1ff; color: #1d4ed8; font-weight: 600; }

/* v1.23.49 采购单：供应商税点、应付订单信息列、货品详情常开、操作按钮统一大小 */
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.35fr .95fr 1.3fr 1.5fr 1.15fr .95fr .9fr .9fr; }
.po-card-supplier { grid-column: auto; min-width: 0; }
.po-card-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.po-card-actions .cell-actions { align-items: stretch; }
.po-card-actions .cell-actions .btn,
.po-card-actions .cell-actions a.btn { width: 104px; }

/* v1.23.50 采购单：应付明细行、编辑按钮、货品详情间隔线 */
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.3fr 1.35fr 1.2fr 1.35fr 1fr .9fr .85fr .8fr; }
.po-pay-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.po-pay-line .po-link { font-size: 12.5px; }
.po-item-lines { font-size: 12px; line-height: 1.8; color: #5b6472; word-break: break-all; }
.po-card-items { border-top: 1px solid #f4f5f7; margin-top: 2px; padding-top: 10px; }

/* v1.23.51 供应商：发货信息框、税点策略同行、支付主体标签 */
.supplier-ship-section { margin-top: 14px; }
.supplier-return-setdefault { border: 1px solid #d0d5dd; background: #fff; color: #475467; border-radius: 5px; padding: 2px 7px; cursor: pointer; font-size: 10px; }
.supplier-return-setdefault:hover { border-color: #84adff; color: #1570ef; }
.supplier-tax-strategy-row .supplier-tax-freight { margin-left: 16px; padding-left: 16px; border-left: 1px solid #eaecf0; }
.supplier-pay-subjects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; }
.supplier-pay-subject { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e4e7ec; border-radius: 8px; padding: 4px 8px; background: #fcfdff; }
.supplier-pay-subject-name { font-size: 12.5px; color: #1d2939; }
.supplier-pay-subject-tag { height: 26px; border: 1px solid #d9dee7; border-radius: 5px; font-size: 12px; color: #475467; background: #fff; }
.supplier-pay-subject-tag[data-tag="首选"] { color: #067647; border-color: #abefc6; }
.supplier-pay-subject-tag[data-tag="次选"] { color: #1570ef; border-color: #b2ddff; }
.supplier-pay-subject-tag[data-tag="支付过"] { color: #667085; }
.supplier-pay-subject-tag[data-tag="禁止支付"] { color: #b42318; border-color: #fecdca; }
.supplier-pay-subject-remove { border: 0; background: transparent; color: #98a2b3; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.supplier-pay-subject-remove:hover { color: #b42318; }
.supplier-pay-subject-add { height: 30px; }
.pay-subject-picker { display: flex; flex-direction: column; gap: 10px; }
.pay-subject-list { max-height: 320px; overflow: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.pay-subject-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f2f4f7; cursor: pointer; font-size: 13px; color: #1d2939; }
.pay-subject-item:last-child { border-bottom: 0; }
.pay-subject-item:hover { background: #f2f6ff; }
.pay-subject-item input { width: 15px; height: 15px; accent-color: #1677ff; }
.pay-subject-item em { font-style: normal; color: #98a2b3; font-size: 12px; }
.pay-subject-panel { flex-basis: 100%; margin-top: 2px; border: 1px solid #eaecf0; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.pay-subject-actions { display: flex; justify-content: flex-end; gap: 8px; }
.supplier-pay-subjects .supplier-pay-subject { flex: none; white-space: nowrap; }
.supplier-pay-subjects .supplier-pay-subject-name { flex: none; white-space: nowrap; }

/* v1.23.52 供应商面板：资质与税务行顺序 + 支付主体展示 */
.inline-pay-subjects { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-pay-subject { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e4e7ec; border-radius: 999px; padding: 2px 9px; font-size: 12px; color: #1d2939; background: #fff; }
.inline-pay-subject em { font-style: normal; font-size: 11px; color: #667085; }
.inline-pay-subject[data-tag="首选"] { border-color: #abefc6; background: #f0fdf4; }
.inline-pay-subject[data-tag="首选"] em { color: #067647; }
.inline-pay-subject[data-tag="次选"] { border-color: #b2ddff; background: #eff8ff; }
.inline-pay-subject[data-tag="次选"] em { color: #1570ef; }
.inline-pay-subject[data-tag="禁止支付"] { border-color: #fecdca; background: #fff5f4; }
.inline-pay-subject[data-tag="禁止支付"] em { color: #b42318; }

/* v1.23.53 采购单：1688 单号/账号一行，状态在右，买家工作台靠右 */
.po-1688-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.po-1688-no { color: #475467; word-break: break-all; }
.po-1688-status { color: #667085; white-space: nowrap; }
.po-1688-link { margin-left: auto; white-space: nowrap; }
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.25fr 1.3fr 1.55fr 1.3fr 1fr .9fr .85fr .8fr; }
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.2fr 1.25fr 1.7fr 1.25fr .95fr .85fr .8fr .75fr; }
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.2fr 1.25fr 1.75fr 1.25fr .95fr .85fr .8fr .75fr; }
.po-1688-line { gap: 6px; }

/* v1.23.54 采购单：打开1688买家工作台放到「1688订单信息」表头右侧 */
.po-g-1688 { display: flex; align-items: center; gap: 8px; }
.po-g-1688 .po-1688-head-link { margin-left: auto; white-space: nowrap; }
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.25fr 1.3fr 1.5fr 1.3fr 1fr .9fr .85fr .8fr; }
.po-g-1688 .po-1688-link { margin-left: auto; white-space: nowrap; }

/* v1.23.55 采购单：表头标题与买家工作台挨着；到货货款移到状态下面 */
.po-g-1688 { display: flex; align-items: center; gap: 8px; }
.po-g-1688 .po-1688-link { margin-left: 0; }

/* v1.23.57 采购单：红圈内文字统一字号 */
.po-item-lines, .po-item-line { font-size: 12.5px; }
.po-card-body .po-label-line, .po-card-body .po-1688-line, .po-card-body .po-1688-no, .po-card-body .po-1688-status, .po-card-body .po-1688-account { font-size: 12.5px; }
.po-card-body .po-detail-toggle { font-size: 12.5px; }

/* v1.23.58 采购单：1688 商品单价公式 + 应付公式顺序 */
.po-1688-cargos { font-size: 12.5px; line-height: 1.95; color: #475467; }
.po-1688-cargo { word-break: break-all; }

/* v1.23.60 采购单：应付/1688 两栏行高一致 + 税点公式 */
.po-card-body .po-1688-line { line-height: 1.95; }
.po-item-lines { line-height: 1.95; }

/* v1.23.66 采购单：总金额/货款同一行 + 中间浮动金额核对标签 */
.po-total-row { grid-column: 3 / span 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 4px 0; flex-wrap: wrap; }
.po-total-amount { font-size: 12.5px; color: #475467; line-height: 1.95; }
.po-total-amount b { color: #1d2939; }
.po-total-badge { position: relative; flex: none; padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px; box-shadow: 0 6px 16px rgba(16, 24, 40, .18); transform: translateY(-2px); animation: poAmountFloat 2.8s ease-in-out infinite; white-space: nowrap; }
.po-total-badge::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 1px solid currentColor; opacity: .35; }
.po-total-badge.is-match { color: #1570ef; background: linear-gradient(135deg, #eff8ff, #d1e9ff); }
.po-total-badge.is-mismatch { color: #b42318; background: linear-gradient(135deg, #fff5f4, #fee4e2); }
@keyframes poAmountFloat { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-6px); } }

/* v1.23.67 采购单：供应商支付主体展示 + 核对标签移到下一行中间 */
.po-pay-subject-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.po-pay-subject-line .inline-pay-subject { padding: 0 7px; font-size: 11.5px; }
.po-total-row { display: flex; flex-direction: column; gap: 2px; }
.po-total-amounts { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.po-total-row .po-total-badge { align-self: center; }
.po-total-row { grid-row: 2; grid-column: 3 / span 2; }

/* v1.23.69 采购单：总金额/货款放回各自运费下一行，核对标签保留在下一行居中 */
.po-total-row { display: flex; justify-content: center; padding: 0 4px 2px; }
.po-total-amounts { display: none; }

/* v1.23.70 采购单：1688 运费/货款分别对齐应付运费/总金额所在行 */
.po-card-body .po-1688-cell { align-self: stretch; display: flex; flex-direction: column; }
.po-card-body .po-1688-freight { margin-top: auto; }

/* v1.23.71 供应商面板：税点策略/运费税点可直接改 */
.inline-tax-strategy-select { height: 26px; border: 1px solid #d9dee7; border-radius: 5px; padding: 0 4px; font-size: 12px; color: #1d2939; background: #fff; }
.inline-tax-strategy-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-tax-freight { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.inline-tax-freight input { width: 14px; height: 14px; accent-color: #1677ff; }

/* v1.23.72 确认订单页：财务备注下面显示供应商资质与税务（只读） */
.poc-tax-block { margin-top: 8px; border-top: 1px dashed #e4e7ec; padding-top: 8px; }
.poc-tax-block h6 { margin: 0 0 6px; font-size: 12px; color: #344054; font-weight: 700; }
.poc-tax-block .inline-tax-line { margin-bottom: 4px; }
.poc-tax-block .inline-tax-line > span:first-child { width: 76px; }
.poc-tax-block .inline-tax-line input { height: 28px; font-size: 12px; }

/* v1.23.73 确认订单页：付款信息/资质与税务 解锁按钮 */
.poc-pay-head { display: flex; align-items: center; gap: 8px; }
.poc-lock-btn { margin-left: auto; border: 1px solid #d0d5dd; background: #fff; color: #475467; border-radius: 6px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.poc-lock-btn:hover { border-color: #84adff; color: #1570ef; }
.poc-lock-btn.on { border-color: #fecdca; color: #b42318; background: #fff5f4; }
.poc-tax-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.poc-tax-head h6 { margin: 0; }
.poc-tax-head .poc-lock-btn { margin-left: auto; }

/* v1.23.74 采购单：付款信息列 + 收款码悬停放大 + 展开付款信息面板 */
.po-card-grid,
.po-card-body { grid-template-columns: 2fr 1.25fr .9fr 1.3fr 1.45fr 1.2fr .95fr .85fr .8fr .75fr; }
.po-total-row { grid-column: 4 / span 2; }
.po-pay-cell { min-width: 0; }
.po-pay-qrs { display: flex; align-items: center; gap: 8px; min-height: 34px; flex-wrap: wrap; }
.po-pay-qrs img { width: 30px; height: 30px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.po-pay-qrs img:hover { transform: scale(3.6); position: relative; z-index: 40; box-shadow: 0 10px 24px rgba(16, 24, 40, .25); }
.po-qr-empty { font-size: 11px; color: #98a2b3; }
.po-pay-panel { grid-column: 1 / -1; grid-row: 3; border-top: 1px solid #f4f5f7; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.po-pay-panel-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #1d2939; }
.po-pay-panel-head .muted { font-size: 12px; }
.po-pay-method { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #475467; }
.po-pay-method > label { display: inline-flex; align-items: center; gap: 5px; min-width: 96px; }
.po-pay-line { display: inline-flex; align-items: center; gap: 8px; }
.po-pay-line > span { color: #667085; width: 72px; text-align: right; }
.po-pay-line input { width: 190px; height: 30px; border: 1px solid #d9dee7; border-radius: 5px; padding: 0 8px; font-size: 12.5px; color: #475467; background: #f9fafb; }
.po-pay-qr { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.po-pay-qr-empty { font-size: 11px; color: #98a2b3; }

/* v1.23.75 采购单：付款信息表头展开按钮 + 收款码标注 + 弹窗 */
.po-g-pay { display: flex; align-items: center; gap: 8px; }
.po-pay-open { margin-left: auto; border: 1px solid #b2ddff; background: #eff8ff; color: #1570ef; border-radius: 5px; padding: 1px 8px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.po-pay-open:hover { background: #d1e9ff; }
.po-pay-qrs { display: flex; align-items: flex-start; gap: 14px; min-height: 34px; }
.po-pay-qr-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #667085; }
.po-pay-qr-item img { width: 30px; height: 30px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.po-pay-qr-item img:hover { transform: scale(3.6); position: relative; z-index: 40; box-shadow: 0 10px 24px rgba(16, 24, 40, .25); }
.po-pay-modal .po-pay-panel { border-top: 0; padding: 0; }

/* v1.23.76 采购单：展开紧挨标题；收款码更大；付款弹窗复用确认页付款框 */
.po-g-pay { gap: 6px; }
.po-pay-open { margin-left: 0; }
.po-pay-qr-item img { width: 40px; height: 40px; }
.po-pay-qr-item img:hover { transform: scale(6); }
.po-pay-modal .poc-pay { border: 0; padding: 0; }
.po-pay-modal .poc-pay-head { margin-bottom: 6px; }

/* v1.23.77 采购单：编辑弹窗（仿店小秘）+ 表头合计 */
.po-head-totals { font-size: 12.5px; color: #475467; margin-left: 10px; }
.po-head-totals b { color: #1d2939; }
.po-head-totals i { font-style: normal; color: #98a2b3; margin: 0 4px; }
.poe { display: flex; flex-direction: column; gap: 10px; }
.poe-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; padding: 10px; border: 1px dashed #e4e7ec; border-radius: 6px; }
.poe-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475467; min-width: 0; }
.poe-field > span:first-child { width: 68px; color: #667085; text-align: right; flex: none; }
.poe-field select, .poe-field input { flex: 1; min-width: 0; height: 30px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 8px; font-size: 12.5px; background: #fff; }
.poe-span2 { grid-column: span 2; }
.poe-toolbar { display: flex; align-items: center; gap: 12px; }
.poe-batch-remove { background: #1677ff; color: #fff; border: 0; border-radius: 4px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.poe-add-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.poe-link { border: 0; background: none; color: #1570ef; font-size: 12px; cursor: pointer; }
.poe-add-btn { background: #f97316; color: #fff; border: 0; border-radius: 4px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.poe-picker { border: 1px solid #e4e7ec; border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.poe-picker-list { max-height: 220px; overflow: auto; display: flex; flex-direction: column; }
.poe-picker-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-bottom: 1px solid #f2f4f7; background: #fff; font-size: 12.5px; cursor: pointer; text-align: left; }
.poe-picker-item:hover { background: #f2f6ff; }
.poe-picker-item b { width: 130px; }
.poe-picker-item span { flex: 1; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poe-picker-item em { font-style: normal; color: #667085; width: 70px; text-align: right; }
.poe-picker-empty { color: #98a2b3; font-size: 12px; padding: 6px; }
.poe-table-wrap { max-height: 38vh; overflow: auto; border: 1px solid #e4e7ec; border-radius: 6px; }
.poe-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.poe-table th { position: sticky; top: 0; background: #f8fafc; color: #667085; font-weight: 600; padding: 6px; text-align: left; border-bottom: 1px solid #e4e7ec; z-index: 1; }
.poe-table td { padding: 6px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.poe-prod { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.poe-prod-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.poe-prod-main b { font-size: 12.5px; }
.poe-prod-main span { color: #475467; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.poe-prod-main small { color: #98a2b3; font-size: 11px; }
.poe-attr { color: #98a2b3; max-width: 90px; }
.poe-num { width: 80px; height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12.5px; }
.poe-note { width: 150px; border: 1px solid #d9dee7; border-radius: 4px; padding: 4px 6px; font-size: 12px; resize: vertical; }
.poe-history { color: #667085; }
.poe-subtotal { font-weight: 600; color: #1d2939; }
.poe-remove { border: 0; background: none; color: #1570ef; font-size: 12px; cursor: pointer; }
.poe-fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; align-items: center; padding-top: 4px; }
.poe-fees .poe-span2 { grid-column: span 2; }
.poe-yen { color: #667085; }
.poe-colors { display: flex; align-items: center; gap: 6px; }
.poe-colors > span { font-size: 12px; color: #667085; }
.poe-colors .poc-color { width: 20px; height: 20px; }
.poe-summary { grid-column: span 2; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #475467; align-items: flex-end; }
.poe-summary b { color: #1d2939; }
.poe-total { color: #e5484d; font-size: 15px; }
.poe-footer { display: flex; align-items: center; gap: 14px; border-top: 1px solid #e4e7ec; padding-top: 10px; font-size: 12.5px; color: #475467; }
.poe-footer b { color: #e5484d; }
.poe-footer-spacer { flex: 1; }
.poe-btn { height: 32px; padding: 0 14px; border: 1px solid #d0d5dd; background: #fff; border-radius: 6px; font-size: 12.5px; cursor: pointer; }
.poe-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.poe-picker[hidden] { display: none !important; }
.poe-table { min-width: 1080px; }
.poe-prod .product-thumb, .poe-prod img { width: 40px; height: 40px; }
.poe-prod .product-thumb img { width: 40px; height: 40px; object-fit: cover; }
.poe-table { min-width: 0; table-layout: fixed; }
.poe-table th:nth-child(1) { width: 28px; }
.poe-table th:nth-child(2) { width: 230px; }
.poe-table th:nth-child(3) { width: 62px; }
.poe-table th:nth-child(4) { width: 66px; }
.poe-table th:nth-child(5) { width: 76px; }
.poe-table th:nth-child(6) { width: 118px; }
.poe-table th:nth-child(7) { width: 72px; }
.poe-table th:nth-child(8) { width: 66px; }
.poe-table th:nth-child(9) { width: 46px; }
.poe-table .poe-num, .poe-table .poe-note { width: 100%; box-sizing: border-box; }
.poe-prod-main span { max-width: 170px; }
.poe-field > span:first-child { width: 72px; font-size: 11.5px; }

/* v1.23.79 采购单编辑：分区布局 + 颜色可勾选 + 卡片色标 */
.poe-section { border: 1px solid #eaecf0; border-radius: 8px; padding: 10px 12px; }
.poe-section > h6 { margin: 0 0 8px; font-size: 12.5px; color: #1d2939; font-weight: 700; }
.poe-section .poe-top { border: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poe-section .poe-fees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poe-colors .poc-color { position: relative; border: 1px solid #d0d5dd; }
.poe-colors .poc-color.active { box-shadow: 0 0 0 2px #1677ff; border-color: #1677ff; }
.poe-colors .poc-color.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.po-color-tag { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-left: 6px; vertical-align: middle; }

/* v1.23.81 采购单编辑：费用与备注分区优化 */
.poe-section .poe-fees { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.poe-fees .poe-colors { grid-column: span 2; }
.poe-fees .poe-summary { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-end; gap: 16px; }
.poe-fees .poe-summary > div { display: inline-flex; align-items: baseline; gap: 4px; }
.poe { gap: 6px; }
.poe-section { padding: 6px 10px; }
.poe-section > h6 { margin: 0 0 4px; }
.poe-top { gap: 6px 10px; }
.poe-table td { padding: 4px 6px; }

/* v1.23.83 采购单编辑：可搜索下拉面板（采购人员/供货商/1688账号） */
.poe-field .poe-combo { position: relative; flex: 1; min-width: 0; }
.poe-combo input { width: 100%; box-sizing: border-box; }
.poe-combo-panel { position: absolute; left: 0; top: calc(100% + 4px); z-index: 60; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); padding: 6px 0; max-height: 300px; overflow: auto; min-width: 100%; }
.poe-combo-panel[hidden] { display: none !important; }
.poe-combo-list { display: flex; flex-direction: column; }
.poe-combo-item { border: 0; background: none; text-align: left; padding: 8px 14px; font-size: 13px; color: #1d2939; cursor: pointer; white-space: nowrap; }
.poe-combo-item:hover { background: #f2f4f7; }
.poe-combo-item.is-selected::before { content: '✓'; margin-right: 8px; color: #1d2939; }
.poe-combo-item.is-selected { font-weight: 600; }
.poe-combo-empty { padding: 8px 14px; color: #98a2b3; font-size: 12px; }

/* v1.23.84 采购单筛选：搜索框 1/3 宽 + 对齐 */
.po-search { align-items: center; flex: 1 1 520px; }
.po-search .bys-search-field { flex: 0 0 33.33%; max-width: 33.33%; min-width: 300px; }
.po-search textarea { height: 34px; padding: 5px 74px 5px 10px; }
.po-search .bys-search-submit { top: 3px; height: 28px; padding: 0 12px; }
.po-search .po-select, .po-search > .btn { height: 34px; }
.po-row-search { align-items: center; }
.po-row-search .po-colors { align-self: center; margin-left: auto; }

/* v1.23.85 颜色状态：确认页标签 + 筛选色块 + 搜索按钮居中 */
.poc-color-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.poc-color-label { font-size: 12.5px; color: #667085; white-space: nowrap; }
.po-color-chip { width: 22px; height: 22px; border-radius: 4px; border: 1px solid #d0d5dd; background: var(--c); cursor: pointer; display: inline-block; vertical-align: middle; position: relative; }
.po-color-chip.active { box-shadow: 0 0 0 2px #2563eb; }
.po-color-chip.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.po-search .bys-search-submit { top: 50%; transform: translateY(-50%); right: 6px; }

/* v1.23.86 采购单卡片：发货地址 + 表头合计列对齐 */
.po-head-grid { display: grid; grid-template-columns: 2fr 1.25fr .9fr 1.3fr 1.45fr 1.2fr .95fr .85fr .8fr .75fr; gap: 0; align-items: center; }
.po-head-grid h3 { grid-column: 1 / span 3; margin: 0; }
.po-head-grid .po-head-payable { grid-column: 4; white-space: nowrap; font-size: 12.5px; color: #475467; }
.po-head-grid .po-head-ali { grid-column: 5; white-space: nowrap; font-size: 12.5px; color: #475467; }
.po-head-grid .po-head-note { grid-column: 6 / -1; text-align: right; }
.po-head-grid .po-head-payable b, .po-head-grid .po-head-ali b { color: #1d2939; }
.po-ship-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pp-buyer-input { width: 108px; height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12.5px; }
.pp-price-input { width: 84px; height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12.5px; text-align: right; }
.po-head-grid { gap: 16px; padding: 12px 14px; }
.po-head-grid { padding: 12px 29px; }

/* v1.23.87 确认页：颜色状态与备注对齐、可勾选 */
.poc-color-field { align-items: center; }
.poc-color-field .poc-colors { padding-left: 0; margin-top: 0; flex: 1; flex-wrap: wrap; }
.poc-color.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.poc-color { position: relative; }
.poc-color-field .poc-color { width: 18px; height: 18px; }
.poc-color-field .poc-colors { gap: 6px; }

/* v1.23.88 采购计划采购员下拉 + 确认页日期对齐 */
.pp-buyer-combo { position: relative; width: 118px; }
.pp-buyer-combo .pp-buyer-input { width: 100%; box-sizing: border-box; }
.pp-buyer-panel { position: fixed; left: 0; top: 0; z-index: 60; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); max-height: 220px; overflow: auto; padding: 4px 0; }
.pp-buyer-panel[hidden] { display: none !important; }
.pp-buyer-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 10px; font-size: 12.5px; color: #1d2939; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-buyer-item:hover { background: #f2f4f7; }
.poc-form .poc-field > .poc-input, .poc-form .poc-field > .poc-textarea { flex: 1 1 0; min-width: 0; width: auto; box-sizing: border-box; }

/* v1.23.89 采购计划表格左对齐 + 确认页日期/备注宽度一致 */
.pp-table th, .pp-table td { text-align: left; }
.pp-table th.pp-col-check, .pp-table td.pp-col-check { text-align: center; }
.poc-form .poc-field > .poc-input,
.poc-form .poc-field > .poc-textarea { width: 100%; box-sizing: border-box; flex: 1 1 auto; min-width: 0; }

/* v1.23.90 确认页：标签列加宽，避免「预计到货时间：」溢出导致冒号不齐 */
.poc-form .poc-field > span:first-child { width: 96px; }

/* v1.23.91 确认页：采购方式标签更醒目 */
.poc-1688-tag { font-size: 13px; padding: 2px 9px; border-radius: 4px; font-weight: 800; letter-spacing: .3px; }
.poc-1688-tag.is-manual { font-style: normal; }

/* v1.23.92 采购单：应付/1688 运费、总金额行对齐；手动采购不显示假 1688 金额 */
.po-payable-cell { align-self: stretch; display: flex; flex-direction: column; }
.po-payable-cell .po-freight-line { margin-top: auto; }
.po-1688-manual-tip { font-size: 12px; color: #98a2b3; line-height: 1.8; margin-top: 2px; }

/* v1.23.94 采购单勾选与批量操作条 */
.po-batch-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line-soft); background: #fbfcfe; flex-wrap: wrap; }
.po-batch-all { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #475467; margin-right: 6px; }
.po-ops-check { display: block; font-size: 12px; color: #667085; margin-bottom: 6px; white-space: nowrap; }

/* v1.23.95 采购单：勾选框移到左侧，批量按钮放进标题栏 */
.po-head-grid h3 { grid-column: 1; }
.po-batch-inline { grid-column: 2 / span 2; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
.po-batch-inline .btn { padding: 3px 10px; font-size: 12px; }
.po-head-check { display: inline-flex; align-items: center; margin-right: 2px; }
.po-head-check input { width: 15px; height: 15px; cursor: pointer; }

/* v1.23.96 采购单标题行：全选在标题左，批量按钮在“共 N 张”左边 */
.po-head-grid .po-head-title { grid-column: 1 / span 3; display: flex; align-items: center; gap: 10px; min-width: 0; }
.po-head-grid .po-head-title h3 { margin: 0; }
.po-head-grid .po-head-all { margin: 0; white-space: nowrap; }
.po-head-grid .po-head-right { grid-column: 6 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.po-batch-inline { grid-column: auto; }
.po-head-right .po-batch-bar { margin: 0; }

/* v1.23.99 旧编码输入框与商品编码输入框左右对齐 */
.product-edit-panel .pe-row.old-code-row { grid-column: 1; }

/* v1.24.0 导入店小秘商品 */
.import-error { font-size: 13px; color: #b42318; line-height: 1.9; max-height: 50vh; overflow: auto; background: #fff5f4; border: 1px solid #fecdca; border-radius: 6px; padding: 10px 12px; }

/* v1.24.4 商品分类 */
.pe-cat-picker { position: relative; flex: 1; display: flex; gap: 6px; align-items: center; min-width: 0; }
.pe-cat-picker .pe-cat-input { flex: 1; min-width: 0; cursor: pointer; background: #fff; }
.pe-cat-toggle { border: 1px solid #d9dee7; background: #fff; border-radius: 4px; height: 30px; width: 30px; cursor: pointer; color: #475467; }
.pe-cat-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 24, 40, .18); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pe-cat-panel.hidden { display: none; }
.pe-cat-search { height: 30px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 8px; font-size: 12.5px; }
.pe-cat-tree { overflow: auto; max-height: 260px; display: flex; flex-direction: column; }
.pe-cat-item { text-align: left; border: 0; background: none; padding: 5px 8px; padding-left: calc(8px + var(--d) * 18px); font-size: 12.5px; cursor: pointer; border-radius: 4px; color: #1d2939; }
.pe-cat-item:hover { background: #f2f4f7; }
.pe-cat-empty { color: #98a2b3; font-size: 12px; padding: 8px; }
.pcm { display: flex; flex-direction: column; gap: 10px; }
.pcm-search { display: flex; gap: 8px; }
.pcm-search input { flex: 1; height: 32px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 10px; }
.pcm-tree { border: 1px solid #eaecf0; border-radius: 6px; max-height: 60vh; overflow: auto; padding: 6px 4px; }
.pcm-row { display: flex; align-items: center; gap: 8px; padding: 4px 8px; padding-left: calc(8px + var(--d) * 22px); border-radius: 4px; }
.pcm-row:hover { background: #f8fafc; }
.pcm-name { flex: 1; font-size: 13px; color: #1d2939; }
.pcm-ops { display: flex; gap: 4px; opacity: 0; }
.pcm-row:hover .pcm-ops { opacity: 1; }
.pcm-op { border: 1px solid #d0d5dd; background: #fff; border-radius: 4px; width: 24px; height: 24px; cursor: pointer; font-size: 12px; line-height: 1; color: #475467; padding: 0; }
.pcm-op:hover { border-color: #84adff; color: #1570ef; }
.pcm-foot { display: flex; justify-content: flex-end; }

/* v1.24.5 其他ERPSKU 转换逻辑配置 */
.pe-erp-rules-row > span { width: 88px; flex: none; }
.pe-erp-rules { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.pe-erp-rules-panel { border: 1px dashed #e4e7ec; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fbfcfe; }
.pe-erp-rules-panel.hidden { display: none; }
.pe-erp-rules-head { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #475467; }
.pe-erp-rules-list { display: flex; flex-direction: column; gap: 6px; }
.pe-erp-rule { display: grid; grid-template-columns: 96px 1.35fr 1fr 80px 52px 44px; gap: 6px; align-items: center; }
.pe-erp-rule input { height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12px; min-width: 0; }
.pe-erp-rule label { display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.pe-erp-rule-del { border: 0; background: none; color: #b42318; cursor: pointer; font-size: 12px; }
.pe-erp-rules-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* v1.24.6 转换逻辑：人类可读布局 */
.pe-erp-rule { display: flex; flex-direction: column; gap: 6px; border: 1px solid #eef2f7; border-radius: 6px; padding: 8px; background: #fff; }
.pe-erp-rule-top { display: flex; gap: 8px; align-items: center; }
.pe-erp-rule-top select { height: 28px; border: 1px solid #d9dee7; border-radius: 4px; font-size: 12px; background: #fff; padding: 0 6px; }
.pe-erp-rule-top input[data-erp-rule-name] { flex: 1; height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 8px; font-size: 12px; min-width: 0; }
.pe-erp-rule-params { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #475467; }
.pe-erp-rule-params input { height: 28px; border: 1px solid #d9dee7; border-radius: 4px; padding: 0 6px; font-size: 12px; min-width: 0; }
.pe-erp-rule-params input[type=checkbox] { height: auto; }
.pe-erp-rule-params input[data-erp-rule-from],
.pe-erp-rule-params input[data-erp-rule-to],
.pe-erp-rule-params input[data-erp-rule-prefix] { width: 120px; }
.pe-erp-rule-params input[data-erp-rule-pattern] { width: 220px; }
.pe-erp-rule-params input[data-erp-rule-template] { width: 160px; }
.pe-erp-rule-params input[data-erp-rule-pads] { width: 110px; }
.pe-erp-rule-enabled { margin-left: auto; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; }
.pe-erp-rule-variant { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pe-erp-rule-example { font-size: 11.5px; color: #98a2b3; }

/* v1.24.7 转换逻辑规则内容统一靠左 */
.pe-erp-rule { align-items: stretch; }
.pe-erp-rule-top,
.pe-erp-rule-params,
.pe-erp-rule-example { width: 100%; }
.pe-erp-rule-params { justify-content: flex-start; }

/* v1.24.9 添加商品选择列表：两列成行、按钮不被挤走、不出现横向滚动 */
.pp-pick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: hidden; }
.pp-pick-item { min-width: 0; overflow: hidden; }
.pp-pick-item .pp-product { min-width: 0; overflow: hidden; }
.pp-pick-item .pp-product-main { min-width: 0; }
.pp-pick-item .pp-product-name { overflow: hidden; text-overflow: ellipsis; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pp-pick-item .pp-product-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* v1.24.10 采购计划采购员：点击输入框/箭头展开下拉 */
.pp-buyer-combo .pp-buyer-input { padding-right: 20px; }
.pp-buyer-caret { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 18px; height: 24px; border: 0; background: none; color: #667085; cursor: pointer; font-size: 10px; line-height: 1; padding: 0; }
.pp-buyer-caret:hover { color: #1d4ed8; }

/* v1.24.11 角色访问模式 */
.sub-role-mode { margin: 6px 0 2px; }
.sub-role-mode-box { display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px; border: 1px solid #eaecf0; border-radius: 8px; background: #fbfcfe; font-size: 12.5px; color: #1d2939; cursor: pointer; }
.sub-role-mode-box input { margin-top: 2px; }
.sub-role-mode-box .muted { display: block; font-size: 11.5px; margin-top: 2px; }

/* v1.24.12 取消指定访问模块的红色警告 */
.sub-role-mode-warn { margin: 6px 0 2px; padding: 10px 12px; border: 1px solid #fda29b; background: #fef3f2; border-radius: 8px; }
.sub-role-mode-warn-text { color: #b42318; font-size: 12.5px; line-height: 1.6; }
.sub-role-mode-warn-actions { display: flex; gap: 8px; margin-top: 8px; }

/* v1.25.0 商品管理：分页条 / 排序方式 */
.product-sort-bar { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; flex-wrap: wrap; }
.product-sort-sep { width: 1px; height: 14px; background: #e4e7ec; display: inline-block; margin-right: 4px; }
.product-sort-label { color: #475467; }
.product-sort-btn { border: 0; background: none; padding: 2px 6px; font-size: 12.5px; color: #475467; cursor: pointer; border-radius: 4px; white-space: nowrap; }
.product-sort-btn:hover { background: #f2f4f7; }
.product-sort-btn.active { color: #1570ef; font-weight: 600; background: #eff8ff; }
.product-table-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #eaecf0; font-size: 12.5px; color: #475467; }
.product-table-topbar-right { display: inline-flex; align-items: center; gap: 6px; }
.product-page-btn { border: 1px solid #d0d5dd; background: #fff; border-radius: 4px; width: 24px; height: 24px; cursor: pointer; color: #475467; }
.product-page-btn:disabled { opacity: .45; cursor: default; }
.product-page-size { height: 26px; border: 1px solid #d0d5dd; border-radius: 4px; font-size: 12px; padding: 0 4px; }

/* v1.25.1 商品管理：统计靠右 + 更新时间列 */
.product-table-topbar { justify-content: flex-end; }
.product-table-count { margin-right: 8px; }

/* v1.25.2 排序方式移到表格上方（图片列上方） */
.product-table-topbar { justify-content: space-between; }

/* v1.26.1 全站右侧回到顶部/底部按钮 */
.page-scroll-fab { position: fixed; right: 14px; bottom: 150px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.page-scroll-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d0d5dd; background: #fff; color: #475467; box-shadow: 0 4px 12px rgba(16, 24, 40, .12); cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.page-scroll-btn:hover { border-color: #84adff; color: #1570ef; }

/* v1.26.2 工作台简化：头像/昵称/问候 + 豆包/DeepSeek 入口 */
.wb-page-simple { display: flex; flex-direction: column; gap: 14px; }
.wb-hero-simple { padding: 18px 22px; }
.wb-hello-simple { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wb-profile-simple { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wb-profile-name b { display: block; font-size: 16px; color: #1d2939; }
.wb-profile-name small { color: #667085; font-size: 12px; }
.wb-greeting-simple { font-size: 15px; color: #344054; white-space: nowrap; }
.wb-webapps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wb-webapp { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #eaecf0; border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.wb-webapp:hover { border-color: #b2ddff; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.wb-webapp-icon { width: 40px; height: 40px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.wb-webapp-info { flex: 1; min-width: 0; }
.wb-webapp-info b { display: block; font-size: 14px; color: #1d2939; }
.wb-webapp-info small { color: #667085; font-size: 12px; }
.wb-webapp-open { color: #1570ef; font-size: 12.5px; white-space: nowrap; }
.wb-hero-simple { display: block; }
.wb-hello-simple { width: 100%; }

/* v1.26.3 工作台内嵌网页窗口（可拖动/缩放/最大化） */
.wb-desktop { position: relative; height: 610px; }
.wb-win { position: absolute; display: flex; flex-direction: column; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 12px 30px rgba(16, 24, 40, .18); overflow: hidden; min-width: 320px; min-height: 240px; z-index: 1; }
.wb-win.max { position: fixed; left: 8px !important; top: 8px !important; width: calc(100vw - 16px) !important; height: calc(100vh - 16px) !important; z-index: 200 !important; }
.wb-win-head { height: 34px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: #f8fafc; border-bottom: 1px solid #eaecf0; cursor: move; user-select: none; }
.wb-win-title { flex: 1; font-size: 12.5px; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-win-btn { width: 26px; height: 24px; border: 0; background: none; color: #475467; cursor: pointer; border-radius: 4px; font-size: 13px; line-height: 1; padding: 0; flex: none; }
.wb-win-btn:hover { background: #eef4ff; color: #1570ef; }
.wb-win-body { flex: 1; min-height: 0; background: #fff; }
.wb-win-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.wb-win-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, #98a2b3 50%); z-index: 2; }

/* v1.26.4 工作台网页窗口最小化 + 默认四分之一大小 */
.wb-win.min { height: 34px !important; min-height: 34px; }
.wb-win.min .wb-win-body,
.wb-win.min .wb-win-resize { display: none; }
.wb-desktop { height: 880px; }

/* v1.27.0 工作台窗口：浏览器禁止嵌入时的启动面板 */
.wb-win-launch { display: flex; align-items: center; justify-content: center; background: #f8fafc; }
.wb-launch-box { text-align: center; padding: 18px; max-width: 420px; }
.wb-launch-box b { display: block; font-size: 15px; color: #1d2939; margin-bottom: 6px; }
.wb-launch-box p { color: #667085; font-size: 12.5px; margin: 0 0 12px; line-height: 1.6; }

/* v1.28.1 工作台窗口失效提示 */
.wb-win-body { position: relative; }
.wb-win-hint { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 247, 237, .96); border: 1px solid #fed7aa; color: #b54708; font-size: 11.5px; line-height: 1.5; pointer-events: none; }
.wb-win-hint b { color: #b42318; }

/* v1.28.2 工作台窗口：助手未安装时的美化提示卡片 */
.wb-win-need-helper { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: linear-gradient(160deg, #f8fbff, #eef4ff 60%, #f8fafc); }
.wb-win-need-helper[hidden] { display: none; }
.wb-need-icon { width: 46px; height: 46px; border-radius: 14px; background: #e0ecff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.wb-win-need-helper b { font-size: 15px; color: #1d2939; }
.wb-win-need-helper p { max-width: 380px; margin: 0; color: #667085; font-size: 12.5px; line-height: 1.65; }
.wb-need-actions { display: flex; gap: 8px; margin-top: 4px; }
.wb-help { font-size: 13px; color: #344054; line-height: 1.7; }
.wb-help ol { margin: 6px 0 8px 18px; padding: 0; }
.wb-help code { background: #f2f4f7; padding: 1px 4px; border-radius: 3px; }
.wb-help-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* v1.28.3 助手已装但仍空白时的备用按钮 */
.wb-need-status { color: #b54708 !important; font-size: 11.5px !important; }
.wb-win-blank-help { position: absolute; right: 10px; bottom: 10px; z-index: 3; padding: 4px 8px; border-radius: 6px; border: 1px solid #d0d5dd; background: rgba(255,255,255,.92); color: #475467; font-size: 11px; cursor: pointer; }
.wb-win-blank-help:hover { border-color: #84adff; color: #1570ef; }

/* v1.29.1 工作台只保留小窗口启动卡 + ↗ */
.wb-win { min-width: 300px; min-height: 150px; }
.wb-win-head { cursor: default; }
.wb-win-launch .wb-launch-box { padding: 14px; }
.wb-win-launch .wb-launch-box p { margin: 0 0 10px; }

/* v1.30.0 工作台：只保留两个蓝色按钮 */
.wb-webapps-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.wb-webapp-btn { height: 40px; padding: 0 22px; font-size: 13.5px; border-radius: 8px; }

/* v1.31.0 角色权限：模块新旧配置 + 只读模块提示 */
.role-module-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.role-module-meta .muted { font-size: 11.5px; }
.role-module-list { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid #eaecf0; border-radius: 6px; padding: 10px; margin-bottom: 10px; max-height: 180px; overflow: auto; }
.role-module-list[hidden] { display: none; }
.role-module-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 180px; }
.role-module-item .muted { font-size: 11px; }
.module-readonly-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid #fed7aa; background: #fff7ed; color: #b54708; border-radius: 8px; font-size: 12.5px; }

/* v1.31.1 模块新旧配置：左右穿梭框 */
.role-module-transfer { display: flex; gap: 10px; align-items: stretch; }
.rmt-col { flex: 1; border: 1px solid #eaecf0; border-radius: 8px; overflow: hidden; }
.rmt-title { padding: 6px 10px; background: #f8fafc; border-bottom: 1px solid #eaecf0; font-size: 12px; font-weight: 600; color: #344054; }
.rmt-list { height: 180px; overflow: auto; padding: 6px 8px; }
.rmt-item { display: flex; align-items: center; gap: 6px; padding: 3px 4px; font-size: 12.5px; border-radius: 4px; cursor: pointer; }
.rmt-item:hover { background: #f2f4f7; }
.rmt-arrows { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.rmt-arrows .btn { width: 34px; padding: 0; height: 28px; }
.role-module-list.transfer-mode { max-height: none; }

/* v1.31.2 模块穿梭框：占满宽度、去掉滚动条 */
.role-module-list.transfer-mode { display: block; padding: 0; border: 0; max-height: none; overflow: visible; }
.role-module-list.transfer-mode .role-module-transfer { width: 100%; }
.role-module-list.transfer-mode .rmt-col { flex: 1 1 0; min-width: 0; }
.role-module-list.transfer-mode .rmt-list { height: auto; max-height: none; overflow: visible; }

/* v1.31.2 修正：固定高度滚动但隐藏滚动条，保证面板不超高 */
.role-module-list.transfer-mode .rmt-list { height: 220px; max-height: 220px; overflow-y: auto; scrollbar-width: none; }
.role-module-list.transfer-mode .rmt-list::-webkit-scrollbar { display: none; }

/* v1.32.0 团队成员收起时仍显示 10 行、可滚动 */
.card.panel-collapsed.team-collapsed > .team-table-shell { display: block !important; }
.card.panel-collapsed.team-collapsed > .card-head { border-bottom: 1px solid #eaecf0; margin-bottom: 0; }
.card.panel-collapsed.team-collapsed .team-table-wrap { max-height: 440px; overflow: auto; }
.card.panel-collapsed.team-collapsed .team-bottom-actions { display: none; }
.card.panel-collapsed.team-collapsed .card-head-actions > :not(.panel-collapse-toggle) { display: none; }

/* v1.32.0 成员核心权限 + 基础资料锁定 */
.perm-base-locked { opacity: .65; background: #f9fafb; border-radius: 6px; }
.perm-base-locked input, .perm-base-locked button { pointer-events: none; }
.perm-lock-note { margin-left: 8px; color: #b54708; font-size: 11px; font-weight: 400; }
.core-switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.core-switch input { opacity: 0; width: 0; height: 0; }
.core-switch span { position: absolute; inset: 0; background: #d0d5dd; border-radius: 999px; transition: .15s; cursor: pointer; }
.core-switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; }
.core-switch input:checked + span { background: #1570ef; }
.core-switch input:checked + span::after { transform: translateX(18px); }

/* v1.32.2 成员核心权限表格限高，避免把团队成员顶到页面很下面 */
.core-table-wrap { max-height: 320px; overflow: auto; }

/* v1.32.3 角色权限管理说明 + 核心权限红色提示 */
.btn.core-btn-danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.btn.core-btn-danger:hover { background: #b42318; border-color: #b42318; }
.core-modal-title { color: #d92d20 !important; font-weight: 800 !important; }
.role-help { font-size: 13px; color: #344054; line-height: 1.75; }
.role-help h4 { margin: 14px 0 6px; font-size: 13.5px; color: #101828; }
.role-help h4:first-child { margin-top: 0; }
.role-help p { margin: 0 0 6px; }
.role-help ul { margin: 4px 0 8px 18px; padding: 0; }
.role-help li { margin: 2px 0; }
.role-help-table { width: 100%; border-collapse: collapse; margin: 6px 0 8px; }
.role-help-table th, .role-help-table td { border: 1px solid #eaecf0; padding: 7px 9px; text-align: left; vertical-align: top; font-size: 12.5px; }
.role-help-table th { background: #f8fafc; color: #344054; }
.role-help-danger { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 6px; padding: 8px 10px; }

/* v1.35.0 商品图片：12 个 URL + 悬停放大 */
.pe-image-url-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pe-image-url-row { display: flex; align-items: center; gap: 6px; }
.pe-image-url-no { flex: 0 0 34px; font-size: 11px; color: #667085; }
.pe-image-url-row input { flex: 1; min-width: 0; }
.pe-image-thumb { position: relative; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #eaecf0; border-radius: 6px; overflow: visible; display: flex; align-items: center; justify-content: center; background: #f8fafc; }
.pe-image-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; transition: transform .15s ease; }
.pe-image-thumb:hover { z-index: 50; }
.pe-image-thumb:hover img { transform: scale(4.2); box-shadow: 0 8px 24px rgba(16,24,40,.25); position: absolute; inset: 0; width: 100%; height: 100%; }

/* v1.35.1 图片框线条与表单一致 + 本地图片预览 */
.pe-image-url-row input { height: 32px; border: 1px solid #d0d5dd; padding: 0 8px; font-size: 12px; border-radius: 6px; background: #fff; }
.pe-local-images { margin-top: 10px; border-top: 1px dashed #eaecf0; padding-top: 10px; }
.pe-local-images-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.pe-local-images-head b { font-size: 12.5px; color: #344054; }
.pe-local-images-head .muted { font-size: 11.5px; }
.pe-local-image-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pe-local-thumb { flex: 0 0 54px; width: 54px; height: 54px; overflow: visible; }
.pe-local-del { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #fecdca; background: #fff; color: #b42318; font-size: 11px; line-height: 14px; cursor: pointer; z-index: 60; }

/* v1.35.3 本地图片失效标记 */
.pe-local-thumb.pe-img-broken { border-color: #fecdca; background: #fff5f4; }
.pe-local-thumb.pe-img-broken::after { content: '失效'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #b42318; font-size: 11px; }
