:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-soft-2: #dbeafe;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;
  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --navy: #0b1f3a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -22px rgba(15, 23, 42, .35);
  --shadow-pop: 0 24px 60px -20px rgba(15, 23, 42, .35), 0 2px 8px rgba(15, 23, 42, .08);
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
body, body * { font-style: normal !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-style: normal;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.danger-text { color: var(--red); }
.success-text { color: var(--green); }
.warning-text { color: var(--amber); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.empty-icon .ico { width: 100%; height: 100%; }
.user-chip > svg { width: 14px; height: 14px; color: var(--muted-2); }
.bar-list { display: flex; flex-direction: column; gap: 13px; }
.bar-item { display: flex; flex-direction: column; gap: 5px; }
.bar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.bar-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-head b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-track { height: 7px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .35s; }
.mrp-order-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; max-height: 260px; overflow-y: auto; }
.mrp-order-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-bottom: 1px solid #f1f5f9; cursor: pointer; background: #fff; }
.mrp-order-row:last-child { border-bottom: none; }
.mrp-order-row:hover { background: #f8fbff; }
.mrp-order-row input { width: 15px; height: 15px; accent-color: var(--primary); flex: 0 0 auto; }
.mrp-order-row-ran { background: #fff7ed; border-left: 3px solid #f59e0b; cursor: not-allowed; }
.mrp-order-row-ran:hover { background: #fff7ed; }
.mrp-order-row-ran .primary-cell { color: #9a3412; }
.mrp-order-row > div:nth-child(2) { flex: 1; min-width: 0; }
.mrp-order-row .text-right { flex: 0 0 auto; }
.mrp-run-toolbar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 12px 0 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; }
.mrp-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.mrp-mode-card { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; }
.mrp-mode-card:has(input:checked) { border-color: #93c5fd; background: #eff6ff; }
.mrp-mode-card input { margin-top: 2px; accent-color: var(--primary); }
.mrp-mode-card span { display: flex; flex-direction: column; gap: 3px; }
.mrp-mode-card b { font-size: 12px; }
.mrp-mode-card small { font-size: 10px; color: var(--muted); line-height: 1.5; }
.mrp-run-toolbar .form-field { min-width: 150px; margin: 0; }
.mrp-run-toolbar .form-select { height: 32px; font-size: 11px; }
.mrp-select-all-row { margin: 0 0 2px; font-size: 11px; }
.mrp-order-tree { max-height: 350px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.mrp-tree-group { border-bottom: 1px solid #eef2f7; }
.mrp-tree-group:last-child { border-bottom: none; }
.mrp-tree-group-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f8fafc; font-size: 11.5px; }
.mrp-tree-group-head b { flex: 1; }
.mrp-group-toggle { width: 20px; height: 20px; border: none; background: none; color: var(--muted); padding: 0; display: flex; align-items: center; justify-content: center; }
.mrp-group-toggle .ico { width: 13px; height: 13px; }
.mrp-group-check, .mrp-order-check { width: 15px; height: 15px; accent-color: var(--primary); }
.mrp-tree-children.hidden { display: none; }
.mrp-tree-children .mrp-order-row { padding-left: 34px; border-bottom: 1px solid #f1f5f9; }
.mrp-tree-children .mrp-order-row:last-child { border-bottom: none; }
.mrp-tree-children .mrp-order-row:hover { background: #f8fbff; }
.mrp-detail-row td { padding-top: 0 !important; padding-bottom: 8px !important; border-bottom: 1px solid #f1f5f9; color: var(--muted-2); font-size: 10.5px; }
.wo-panel { min-height: 80px; }
.range-label { font-size: 11px; color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* ---------------- 鐧诲綍 ---------------- */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #f7f9fc;
}
.login-brand {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 18% 20%, rgba(37, 99, 235, .45), transparent 65%),
    radial-gradient(600px 500px at 88% 78%, rgba(5, 150, 105, .25), transparent 65%),
    linear-gradient(145deg, #07182f 0%, #0b1f3a 52%, #102a4d 100%);
  display: flex;
  align-items: center;
  padding: 64px clamp(40px, 6vw, 92px);
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, #000 30%, transparent 78%);
  pointer-events: none;
}
.login-brand-inner { position: relative; z-index: 1; max-width: 580px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .8);
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; }
.brand-text small { font-size: 8px; letter-spacing: .22em; color: rgba(255,255,255,.46); margin-top: 3px; }
.login-brand .brand-mark { width: 44px; height: 44px; font-size: 21px; border-radius: 13px; }
.login-brand .brand-text strong { font-size: 20px; }
.login-brand h1 {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.22;
  letter-spacing: -.03em;
  font-weight: 650;
  margin: 56px 0 20px;
}
.login-brand h1 em { font-style: normal; color: #7dd3fc; }
.login-lead { max-width: 480px; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.8; margin: 0; }
.login-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 40px; }
.login-features div { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: 13px; }
.feature-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, .55);
  background: radial-gradient(circle at center, #7dd3fc 0 3px, transparent 4px);
  flex: 0 0 auto;
}
.login-quote {
  margin-top: 56px; padding: 18px 22px; max-width: 440px;
  border-left: 2px solid rgba(125, 211, 252, .55);
  background: linear-gradient(90deg, rgba(255,255,255,.045), transparent);
  border-radius: 0 12px 12px 0;
}
.login-quote .quote-mark { font-size: 34px; color: #7dd3fc; line-height: 1; }
.login-quote p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.login-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 42px;
  background:
    radial-gradient(520px 340px at 100% 0%, #eef4ff, transparent 70%),
    #f7f9fc;
}
.login-card { width: 100%; max-width: 410px; }
.login-head h2 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.login-head p { margin: 0 0 30px; color: var(--muted); font-size: 14px; }
.mobile-brand { display: none; margin-bottom: 28px; }
.mobile-brand .brand-text strong { color: var(--ink); }
.mobile-brand .brand-text small { color: var(--muted-2); }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin: 0 0 7px; }
.input-wrap { position: relative; margin-bottom: 18px; }
.input-icon {
  position: absolute; left: 13px; top: 50%; width: 18px; height: 18px;
  transform: translateY(-50%); color: #94a3b8; pointer-events: none;
}
.input-wrap input {
  width: 100%; height: 46px; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0 44px 0 42px; background: #fff;
  color: var(--ink); outline: none; transition: .18s border, .18s box-shadow;
}
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input-suffix { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.login-error {
  background: var(--red-soft); color: #b91c1c; border: 1px solid #fecaca;
  border-radius: 9px; padding: 9px 12px; font-size: 12.5px; margin: -2px 0 14px;
}
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 14px; }
.demo-accounts { margin-top: 30px; }
.demo-title { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 11px; letter-spacing: .08em; }
.demo-title i { flex: 1; height: 1px; background: var(--border); }
.demo-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.demo-chip {
  text-align: left; border: 1px solid var(--border); background: rgba(255,255,255,.7);
  border-radius: 9px; padding: 9px 11px; display: flex; flex-direction: column; gap: 1px;
  color: var(--muted); transition: .16s all;
}
.demo-chip b { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.demo-chip span { font-size: 10px; color: var(--muted-2); }
.demo-chip:hover { border-color: #bfdbfe; background: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px -14px rgba(37, 99, 235, .5); }
.login-hint { text-align: center; color: var(--muted-2); font-size: 10.5px; margin: 18px 0 0; }

/* ---------------- 搴旂敤妗嗘灦 ---------------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; z-index: 50; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-brand {
  height: 76px; padding: 0 20px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.sidebar-brand .brand-text strong { color: var(--ink); font-size: 16px; }
.sidebar-brand .brand-text small { color: var(--muted-2); }
.sidebar-brand .sidebar-close { display: none; margin-left: auto; }
.workspace-switch {
  margin: 14px 14px 8px; padding: 10px; border: 1px solid var(--border);
  background: #f8fafc; border-radius: 10px; display: flex; align-items: center; gap: 9px;
}
.workspace-icon {
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px;
}
.workspace-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.workspace-text b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-text span { font-size: 10px; color: var(--muted-2); }
.workspace-chevron { width: 15px; height: 15px; color: var(--muted-2); }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; scrollbar-width: thin; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 4px; }
.nav-group-title {
  padding: 0 10px; margin-bottom: 5px; font-size: 10px; letter-spacing: .08em;
  color: var(--muted-2); font-weight: 600; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px;
  border-radius: 8px; color: #475569; font-size: 13px; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left; margin: 1px 0;
  transition: .14s background, .14s color;
}
.nav-item:hover { background: #f1f5f9; color: var(--ink); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; min-height: 18px; padding: 0 10px; }
.nav-collapse-icon { font-size: 10px; color: #94a3b8; padding-right: 4px; }
.nav-group-items { display: block; }
.nav-group-items.hidden { display: none; }
.nav-item[draggable="true"] { position: relative; }
.nav-drag-grip { margin-left: auto; color: #cbd5e1; font-size: 11px; letter-spacing: -1px; opacity: 0; transition: opacity .15s; }
.nav-item:hover .nav-drag-grip { opacity: 1; }
.nav-dragging { opacity: .35; }
.nav-drag-over { box-shadow: inset 0 2px 0 var(--primary); }
.nav-icon { width: 18px; height: 18px; color: #94a3b8; flex: 0 0 auto; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: #fee2e2; color: #b91c1c;
  font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.nav-badge.blue { background: var(--primary-soft-2); color: var(--primary-dark); }
.sidebar-footer { padding: 12px 14px 16px; border-top: 1px solid #f1f5f9; }
.sidebar-customize { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 9px; padding: 8px 10px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: 11px; cursor: pointer; }
.sidebar-customize:hover { color: var(--primary); border-color: #93c5fd; background: #eff6ff; }
.nav-custom-help { color: #64748b; font-size: 11px; margin-bottom: 10px; }
.nav-custom-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.nav-custom-group { border: 1px solid #e2e8f0; border-radius: 9px; margin-bottom: 10px; overflow: hidden; }
.nav-custom-group-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.nav-custom-group-head .nav-group-name { height: 30px; font-size: 12px; font-weight: 600; color: #334155; background: #fff; flex: 1; }
.nav-custom-group-head .icon-btn { width: 26px; height: 26px; flex: 0 0 26px; }
.nav-custom-rows { min-height: 42px; padding: 3px 0; background: #fff; }
.nav-custom-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid #f1f5f9; background: #fff; cursor: grab; }
.nav-custom-row:first-child { border-top: 0; }
.nav-custom-row:hover { background: #f8fbff; }
.nav-custom-grip { color: #cbd5e1; font-size: 13px; letter-spacing: -2px; flex: 0 0 auto; }
.nav-custom-row label { flex: 1; display: flex; align-items: center; gap: 8px; color: #334155; font-size: 12px; cursor: pointer; }
.nav-custom-row input { accent-color: var(--primary); }
.nav-custom-icon { width: 15px; height: 15px; color: #94a3b8; flex: 0 0 auto; }
.nav-custom-actions { display: flex; gap: 2px; }
.nav-custom-actions .icon-btn { width: 25px; height: 25px; font-size: 12px; color: #94a3b8; }
.nav-custom-actions .icon-btn:hover { color: var(--primary); background: #eff6ff; }
.finance-tabs { display: flex; gap: 8px; padding: 14px 18px 0; }
.finance-tab { padding: 9px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 600; cursor: pointer; }
.finance-tab:hover { border-color: #93c5fd; color: var(--primary); }
.finance-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.finance-statement { background: #fff; }
.finance-statement-head { display: flex; justify-content: space-between; gap: 28px; padding: 4px 0 18px; border-bottom: 2px solid #0f172a; }
.finance-statement-title { font-size: 24px; font-weight: 700; letter-spacing: .08em; color: #0f172a; }
.finance-statement-name { margin-top: 8px; font-size: 18px; font-weight: 600; color: #1e3a8a; }
.finance-statement-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 22px; font-size: 11px; min-width: 360px; }
.finance-statement-meta span { color: #94a3b8; margin-right: 7px; }
.finance-statement-meta b { color: #334155; font-weight: 500; }
.finance-statement-period { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: #475569; font-size: 12px; }
.finance-statement-period span:first-child { color: #94a3b8; }
.finance-statement-period b { color: #0f172a; }
.finance-statement-table { min-width: 1000px; }
.finance-statement-table th { background: #f8fafc; color: #475569; font-size: 11px; }
.finance-statement-total { display: flex; justify-content: flex-end; gap: 28px; padding: 16px 4px; border-top: 1px solid #e2e8f0; color: #475569; font-size: 12px; }
.finance-statement-total b { color: #0f172a; font-size: 16px; margin-left: 6px; }
.finance-confirmed-box { margin: 0 18px 18px; border: 1px solid #d1fae5; border-radius: 9px; background: #f0fdf4; padding: 10px 12px; }
.finance-confirmed-title { color: #047857; font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.finance-confirmed-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #d1fae5; font-size: 12px; }
.finance-confirmed-row:first-child { border-top: 0; }
.finance-confirmed-row > div { display: flex; align-items: center; gap: 9px; }
.finance-confirmed-row b { color: #065f46; }
.finance-confirmed-row span { color: #6b8f80; font-size: 10.5px; }
.trace-summary { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; padding: 4px 0 16px; }
.trace-summary > div { border: 1px solid #e2e8f0; border-radius: 9px; padding: 12px 14px; background: #f8fafc; }
.trace-summary span { display: block; color: #94a3b8; font-size: 10px; margin-bottom: 5px; }
.trace-summary b { display: block; color: #0f172a; font-size: 18px; margin-bottom: 3px; }
.trace-summary small { color: #64748b; font-size: 10.5px; }
.trace-level { display: inline-flex; padding: 3px 7px; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.trace-level.current { background: #eff6ff; color: #1d4ed8; }
.trace-level.up { background: #fff7ed; color: #c2410c; }
.trace-level.down { background: #ecfdf5; color: #047857; }
.trace-current-row { background: #f8fbff; }
.trace-candidate-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; }
.trace-candidate { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #dbe3ec; border-radius: 8px; background: #fff; cursor: pointer; font-size: 12px; color: #334155; }
.trace-candidate:hover { border-color: #93c5fd; background: #eff6ff; }
.trace-candidate b { color: #0f172a; }
.bulk-import-steps { display: grid; gap: 10px; }
.bulk-import-step { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.bulk-import-step > b { width: 22px; height: 22px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 11px; flex: 0 0 22px; }
.bulk-import-step strong { display: block; color: #334155; font-size: 12px; margin-bottom: 4px; }
.bulk-import-step p { margin: 0 0 8px; color: #64748b; font-size: 11px; line-height: 1.6; }
.bulk-import-step > div { flex: 1; min-width: 0; }
.topbar-time { font-size: 11px; color: #94a3b8; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.app-watermark { position: fixed; inset: 0; z-index: 95; pointer-events: none; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); align-items: center; justify-items: center; overflow: hidden; }
.app-watermark-item { display: block; transform: rotate(-24deg); color: #1e3a8a; opacity: .055; font-size: 19px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; user-select: none; }
.bulk-import-step input[type=file] { padding: 7px; background: #fff; }
.wo-product-head { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 14px; border: 1px solid #dbeafe; border-radius: 11px; background: linear-gradient(135deg, #f8fbff, #f0f7ff); }
.wo-product-image { width: 66px; height: 66px; flex: 0 0 66px; border: 1px solid #dbeafe; border-radius: 9px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #94a3b8; cursor: pointer; padding: 0; }
.wo-product-image img { width: 100%; height: 100%; object-fit: cover; }
.wo-product-image svg { width: 26px; height: 26px; }
.wo-product-main { flex: 1; min-width: 0; }
.wo-product-title { display: flex; align-items: center; gap: 8px; color: #0f172a; font-size: 15px; font-weight: 700; }
.wo-product-spec { color: #64748b; font-size: 11px; margin-top: 4px; }
.wo-product-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: #64748b; font-size: 10.5px; margin-top: 6px; }
.wo-product-qty { text-align: right; flex: 0 0 auto; }
.wo-product-qty span { display: block; color: #94a3b8; font-size: 10px; margin-bottom: 4px; }
.stocktake-picker { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.stocktake-picker-tree { max-height: 310px; overflow: auto; }
.stocktake-picker-tree .category-tree { max-height: 240px; overflow: auto; padding: 6px; }
.stocktake-picker-table { max-height: 260px; overflow: auto; }
.stocktake-picker-table .data-table { min-width: 620px; }
@media (max-width: 900px) { .stocktake-picker { grid-template-columns: 1fr; } }
.data-table th.column-resizable { position: relative; padding-right: 16px; }
.column-resizer { position: absolute; top: 0; right: -3px; z-index: 3; width: 8px; height: 100%; cursor: col-resize; }
.column-resizer::after { content: ''; position: absolute; top: 20%; bottom: 20%; left: 3px; width: 1px; background: #cbd5e1; }
.column-resizer:hover::after, .column-resizer.active::after { top: 0; bottom: 0; background: #2563eb; width: 2px; }
.wo-record-table { table-layout: auto; width: 100%; }
.wo-record-table th, .wo-record-table td { white-space: nowrap; }
.wo-product-qty b { color: #1d4ed8; font-size: 17px; }
.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.seal-card { overflow: hidden; }
.seal-preview { height: 180px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.seal-preview img { max-width: 82%; max-height: 150px; object-fit: contain; }
.seal-card-body { padding: 12px 14px 4px; }
.seal-card-body .sub-cell { margin-top: 4px; }
.seal-card-actions { padding: 4px 10px 10px; text-align: right; }
.seal-upload-preview { margin-top: 14px; min-height: 150px; border: 1px dashed #cbd5e1; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 11px; background: #f8fafc; }
.seal-upload-preview img { max-height: 170px; max-width: 80%; object-fit: contain; }
@media print {
  .sidebar, .topbar, .drawer-head, .drawer-foot, .sidebar-backdrop, .drawer-backdrop, .toast-root, .app-watermark { display: none !important; }
  .drawer { position: static !important; width: 100% !important; max-width: none !important; transform: none !important; box-shadow: none !important; }
  .drawer-body { overflow: visible !important; }
  .finance-statement { padding: 0 !important; }
}
.nav-custom-empty { padding: 15px; color: #94a3b8; font-size: 11px; text-align: center; border: 1px dashed #dbe3ec; border-radius: 7px; margin: 5px 9px; }
.sidebar-tip {
  display: flex; gap: 9px; padding: 10px; border-radius: 9px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #d1fae5;
  margin-bottom: 10px;
}
.tip-icon {
  width: 18px; height: 18px; border-radius: 50%; background: #a7f3d0; color: #047857;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.sidebar-tip b { display: block; font-size: 10.5px; color: #065f46; margin-bottom: 2px; }
.sidebar-tip span { display: block; font-size: 9.5px; color: #047857; opacity: .75; line-height: 1.35; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
.sidebar-user .user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sidebar-user .user-meta b { font-size: 12px; font-weight: 600; }
.sidebar-user .user-meta span { font-size: 10px; color: var(--muted-2); }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }
.topbar {
  height: 76px; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 30px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.page-subtitle { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-date {
  font-size: 11.5px; color: var(--muted); padding-right: 8px; border-right: 1px solid var(--border);
  margin-right: 4px; white-space: nowrap;
}
.icon-btn {
  border: none; background: transparent; color: #64748b; border-radius: 8px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  transition: .14s background, .14s color; flex: 0 0 auto;
}
.icon-btn:hover { background: #f1f5f9; color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.topbar-icon { border: 1px solid var(--border); background: #fff; }
.mobile-menu { display: none; }
.user-menu-wrap { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px; border: 1px solid transparent;
  background: transparent; padding: 4px 6px 4px 4px; border-radius: 10px; color: var(--ink);
}
.user-chip:hover { background: #f8fafc; border-color: var(--border); }
.user-chip .avatar { width: 32px; height: 32px; }
.user-chip .user-chip-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.user-chip .user-chip-meta b { font-size: 11.5px; font-weight: 600; }
.user-chip .user-chip-meta span { font-size: 9.5px; color: var(--muted-2); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 170px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-pop);
}
.user-menu button {
  width: 100%; text-align: left; border: none; background: none; padding: 9px 10px;
  border-radius: 7px; font-size: 12px; color: #334155;
}
.user-menu button:hover { background: #f8fafc; }
.user-menu button.danger { color: var(--red); }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.view { padding: 26px 30px 46px; max-width: 1680px; margin: 0 auto; outline: none; }

/* ---------------- 閫氱敤椤甸潰 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head-left .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px;
}
.page-head-left h1 { font-size: 25px; line-height: 1.25; margin: 0; letter-spacing: -.025em; font-weight: 650; }
.page-head-left p { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px 12px; }
.card-head h3 { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.card-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.card-body { padding: 0 20px 20px; }
.card-body.pad { padding: 20px; }
.card-body.flush { padding: 0; }
.card-action { border: none; background: none; color: var(--primary); font-size: 11.5px; font-weight: 600; padding: 4px 0; }
.card-action:hover { color: var(--primary-dark); }

.kpi-card { padding: 17px 18px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.kpi-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-icon.blue { background: var(--primary-soft); color: var(--primary); }
.kpi-icon.green { background: var(--green-soft); color: var(--green); }
.kpi-icon.amber { background: var(--amber-soft); color: var(--amber); }
.kpi-icon.purple { background: var(--purple-soft); color: var(--purple); }
.kpi-icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.kpi-icon.red { background: var(--red-soft); color: var(--red); }
.kpi-value { font-size: 27px; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); }
.kpi-change { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; }
.kpi-change.up { color: var(--green); }
.kpi-change.down { color: var(--red); }
.kpi-change.flat { color: var(--muted); }
.kpi-spark { height: 28px; width: 90px; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 35px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: #fff; color: #334155; font-size: 12.5px; font-weight: 600;
  transition: .15s all; white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: #94a3b8; background: #f8fafc; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #2563eb; color: #fff;
  box-shadow: 0 5px 12px -7px rgba(37, 99, 235, .75);
}
.btn-primary:hover { background: linear-gradient(180deg, #2563eb, #1d4ed8); border-color: #1d4ed8; }
.btn-soft { background: var(--primary-soft); border-color: #dbeafe; color: var(--primary-dark); }
.btn-soft:hover { background: #dbeafe; border-color: #bfdbfe; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); border-color: transparent; }
.btn-danger { color: var(--red); border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: var(--red-soft); border-color: #fca5a5; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 10.5px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-group { display: flex; gap: 0; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 8px 8px 0; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--border); background: #fff; flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); }
.search-box input {
  height: 33px; width: 230px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px 0 32px; font-size: 12px; outline: none; background: #f8fafc; color: var(--ink);
}
.search-box input:focus { background: #fff; border-color: #bfdbfe; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.filter-select {
  height: 33px; border: 1px solid var(--border); border-radius: 8px; padding: 0 28px 0 10px;
  font-size: 12px; color: #475569; background: #fff; outline: none;
}
.filter-select:focus { border-color: #bfdbfe; }
.segmented { display: inline-flex; background: #f1f5f9; border-radius: 8px; padding: 3px; gap: 2px; }
.segmented button {
  border: none; background: transparent; padding: 5px 10px; border-radius: 6px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,23,42,.08); font-weight: 600; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  text-align: left; padding: 10px 14px; background: #f8fafc; color: var(--muted);
  font-size: 10.5px; font-weight: 650; letter-spacing: .04em; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table th.text-right, .data-table td.text-right { text-align: right; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: #f8fbff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .primary-cell { font-weight: 600; color: var(--ink); }
.data-table .sub-cell { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions .btn { margin-left: 4px; }
.table-footer {
  display: flex; align-items: center; justify-content: space-between; padding: 11px 16px;
  font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); background: #fff;
}
.table-empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.table-empty .empty-icon { width: 44px; height: 44px; margin: 0 auto 10px; color: #cbd5e1; }
.table-empty b { display: block; color: #475569; font-size: 13px; margin-bottom: 4px; }
.table-empty span { font-size: 11.5px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap;
  background: #f1f5f9; color: #475569;
}
.badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.no-dot:before { display: none; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-green { background: #ecfdf5; color: #047857; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.urgent-text { color: #dc2626; font-weight: 600; }
.urgent-row td { background: #fff7f7; }
.qc-item-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.qc-item-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 10.5px; white-space: nowrap; }
.modal.qc-inspect-modal { width: min(1100px, 80vw); max-height: 84vh; transform: translate(-50%, -50%); }
.qc-product-card { display: flex; gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; margin-bottom: 16px; }
.qc-product-image { width: 94px !important; height: 94px !important; flex: 0 0 94px; }
.qc-product-title { font-size: 17px; font-weight: 700; color: var(--text); }
.qc-product-spec { margin-top: 4px; color: var(--muted); font-size: 12px; }
.qc-product-meta, .qc-source-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 11px; color: #475569; }
.qc-source-line { padding-top: 8px; border-top: 1px dashed var(--border); }
.qc-inspect-section { margin: 14px 0; }
.qc-inspect-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qc-inspect-section-head h3 { margin: 0; font-size: 13px; }
.qc-inspect-section-head span { font-size: 10.5px; color: var(--muted); }
.qc-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qc-module-card { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; }
.qc-module-name { font-size: 12px; font-weight: 600; }
.qc-module-options { display: flex; gap: 5px; }
.qc-opt { border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 5px 9px; font-size: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.qc-opt.pass.active { border-color: #86efac; background: #ecfdf5; color: #15803d; }
.qc-opt.ng.active { border-color: #fca5a5; background: #fef2f2; color: #dc2626; }
.qc-inspect-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin: 14px 0; }
.qc-inspect-box { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: #fff; }
.qc-mode-row { display: flex; align-items: center; gap: 10px; }
.qc-radio { display: flex; align-items: center; gap: 5px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.qc-ratio { width: 68px; height: 30px; }
.qc-qty-row { display: flex; align-items: flex-end; gap: 12px; }
.qc-qty-row label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.qc-qty-row .form-input { width: 100px; height: 30px; }
.qc-rate { font-size: 11px; color: var(--muted); padding-bottom: 7px; white-space: nowrap; }
.qc-rate b { color: var(--primary); font-size: 15px; margin-left: 4px; }
.qc-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qc-result-card { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: #fff; }
.qc-result-card:has(input:checked) { border-color: #93c5fd; background: #eff6ff; }
.qc-result-card input { position: absolute; opacity: 0; }
.qc-result-card b { font-size: 12px; }
.qc-result-card span { font-size: 10px; color: var(--muted); line-height: 1.4; }
#warehouse-lines .line-items-head, #warehouse-lines .line-row { grid-template-columns: minmax(320px, 3fr) 90px 110px 100px 28px; }
#warehouse-lines .line-product { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#warehouse-lines .line-product .product-tree-wrap { width: 100%; }
#warehouse-lines .line-product .product-tree-trigger { height: 32px; font-size: 11px; }
#warehouse-lines .line-cost, #warehouse-lines .line-qty { text-align: right; }
#warehouse-lines .line-amount { text-align: right; padding-top: 9px; font-weight: 600; }
.qc-clickable-product { cursor: pointer; border-radius: 8px; padding: 4px; }
.qc-clickable-product:hover { background: #f8fafc; }
.wh-exec-table .so-detail-product { min-width: 360px; }
.wh-exec-table .so-line-image { flex: 0 0 52px; width: 52px; height: 52px; }
.wh-exec-table th, .wh-exec-table td { white-space: nowrap; }
.wh-exec-table .form-select { min-width: 120px; }
.wh-stock-line { margin-top: 4px; font-size: 10px; color: #64748b; }
.mrp-tree-node { display: flex; align-items: flex-start; gap: 6px; }
.mrp-tree-branch { color: #94a3b8; font-size: 12px; line-height: 20px; width: 12px; flex: 0 0 12px; }
.mrp-tree-node .primary-cell { font-weight: 600; }
.capacity-card .card-head { align-items: flex-start; }
.capacity-card .card-head h3 { margin-bottom: 3px; }
.capacity-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.capacity-metrics > div { background: #f8fafc; border: 1px solid #eff3f8; border-radius: 10px; padding: 10px 11px; min-width: 0; }
.capacity-metrics span { display: block; font-size: 11px; color: #64748b; margin-bottom: 5px; }
.capacity-metrics b { display: block; font-size: 19px; line-height: 1.15; color: #0f172a; margin-bottom: 3px; }
.capacity-metrics small { display: block; font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capacity-bars { display: grid; gap: 10px; margin-bottom: 14px; }
.capacity-recent { border-top: 1px solid #f1f5f9; padding-top: 10px; }
.capacity-recent-title { font-size: 11px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
.capacity-order-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f1f5f9; cursor: pointer; }
.capacity-order-row:last-child { border-bottom: none; }
.capacity-order-row:hover { background: #f8fbff; }
.capacity-order-no { font-size: 12px; font-weight: 600; margin-right: 6px; }
.capacity-order-row .badge { font-size: 10px; padding: 2px 6px; }
.empty-inline { padding: 12px 0; color: #94a3b8; font-size: 12px; }
.modal.wh-exec-modal { max-width: 1720px; width: 98vw; }
.wh-exec-table { table-layout: fixed; width: 100%; }
.wh-exec-table th, .wh-exec-table td { font-size: 13px; }
.wh-exec-table td:first-child { overflow: hidden; }
.wh-exec-table .so-detail-product { min-width: 0; }
.wh-exec-table .so-product-meta { white-space: normal; }
.wh-danger-head, .wh-danger-text { color: inherit; }
.wh-stock-danger { color: #dc2626 !important; font-size: 11px; }
.wh-stock-danger b { color: #b91c1c; }
.ship-shortage { background: #fff7f7 !important; }
.ship-shortage .ship-stock-hint { color: #dc2626 !important; font-weight: 600; }
.inventory-wh-list { display: flex; flex-wrap: wrap; gap: 5px; }
.inventory-wh-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 10.5px; color: #475569; white-space: nowrap; }
.inventory-wh-chip b { color: #0f172a; }
.inventory-wh-chip.active { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.inventory-wh-chip.active b { color: #1d4ed8; }
.capacity-page { margin: -4px; padding: 24px; border-radius: 18px; color: #dbeafe; background: radial-gradient(1200px 500px at 10% -10%, #123f68 0, transparent 55%), linear-gradient(145deg, #07182d 0%, #0a2440 55%, #081b31 100%); box-shadow: inset 0 1px 0 rgba(148, 197, 255, .08); }
.capacity-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.capacity-eyebrow { font-size: 11px; letter-spacing: .12em; color: #60a5fa; text-transform: uppercase; margin-bottom: 7px; }
.capacity-page-head h1 { color: #f8fbff; font-size: 27px; letter-spacing: -.03em; margin: 0 0 5px; }
.capacity-page-head p { color: #93b4d4; font-size: 12px; margin: 0; }
.capacity-outline-btn { background: rgba(37, 99, 235, .16) !important; border-color: #2563eb !important; color: #dbeafe !important; }
.capacity-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.capacity-tab { border: 1px solid #1e4b75; color: #9fc3e3; background: rgba(9, 33, 58, .7); border-radius: 9px; padding: 9px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .18s; }
.capacity-tab span { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 7px; padding: 0 5px; border-radius: 9px; background: rgba(96, 165, 250, .16); color: #93c5fd; font-size: 10px; }
.capacity-tab:hover { border-color: #3b82f6; color: #fff; }
.capacity-tab.active { color: #fff; border-color: #3b82f6; background: linear-gradient(180deg, #1d4ed8, #1e40af); box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.capacity-tab.active span { background: rgba(255, 255, 255, .18); color: #fff; }
.capacity-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.capacity-kpi { padding: 15px 16px; border-radius: 11px; border: 1px solid #1b4167; background: linear-gradient(160deg, rgba(15, 47, 79, .95), rgba(8, 28, 49, .95)); box-shadow: inset 0 1px 0 rgba(147, 197, 253, .08); }
.capacity-kpi span { display: block; color: #8eb4d6; font-size: 11px; margin-bottom: 8px; }
.capacity-kpi b { display: block; color: #f8fbff; font-size: 23px; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 5px; }
.capacity-kpi b i { font-style: normal; font-size: 12px; color: #93c5fd; margin-left: 3px; }
.capacity-kpi small { color: #6f9bc0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.capacity-kpi .capacity-red { color: #fca5a5; }
.capacity-panel { border: 1px solid #1b4167; border-radius: 13px; background: rgba(7, 25, 44, .82); overflow: hidden; }
.capacity-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid rgba(59, 130, 246, .17); }
.capacity-panel-head h2 { color: #f8fbff; font-size: 18px; margin: 0 0 4px; }
.capacity-panel-head p { color: #7ea9cc; font-size: 11px; margin: 0; }
.capacity-legend { display: flex; align-items: center; gap: 13px; color: #8fb6d6; font-size: 11px; white-space: nowrap; }
.capacity-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.capacity-dot.active { background: #38bdf8; }
.capacity-dot.done { background: #34d399; }
.capacity-table-wrap { overflow-x: auto; }
.capacity-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.capacity-table th { text-align: left; padding: 11px 18px; color: #8fb6d6; font-size: 10.5px; font-weight: 600; background: rgba(8, 31, 54, .9); border-bottom: 1px solid rgba(59, 130, 246, .14); }
.capacity-table td { padding: 12px 18px; color: #dbeafe; border-bottom: 1px solid rgba(59, 130, 246, .1); font-size: 12px; }
.capacity-table tbody tr { cursor: pointer; transition: background .15s; }
.capacity-table tbody tr:hover { background: rgba(37, 99, 235, .12); }
.capacity-table tbody tr.is-done { color: #8aa9c3; background: rgba(16, 44, 73, .28); }
.capacity-table tbody tr.is-done td { color: #87a6c1; }
.capacity-order-no { color: #eaf5ff; font-weight: 700; font-size: 12.5px; }
.capacity-order-success .capacity-order-no, .capacity-table tbody tr.is-done .capacity-order-no { color: #c4d7e7; }
.capacity-order-sub { color: #6f9bc0; font-size: 10px; margin-top: 3px; }
.capacity-order-product { color: #dbeafe; font-size: 12px; }
.capacity-table tbody tr.is-done .capacity-order-product { color: #9eb8ce; }
.capacity-table .text-right { text-align: right; }
.capacity-table td b { color: #fff; }
.capacity-progress { width: 120px; height: 6px; border-radius: 4px; background: #123757; overflow: hidden; }
.capacity-progress span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #38bdf8, #3b82f6); }
.capacity-table tbody tr.is-done .capacity-progress span { background: #34d399; }
.capacity-progress + small { display: block; color: #7ea9cc; margin-top: 4px; font-size: 10px; }
.capacity-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.capacity-status.active { color: #bfdbfe; background: rgba(37, 99, 235, .25); border: 1px solid rgba(96, 165, 250, .25); }
.capacity-status.done { color: #a7f3d0; background: rgba(16, 185, 129, .14); border: 1px solid rgba(52, 211, 153, .22); }
.capacity-link { border: 1px solid #315f8c; background: transparent; color: #93c5fd; border-radius: 6px; padding: 5px 10px; font-size: 11px; cursor: pointer; }
.capacity-link:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.capacity-empty { text-align: center !important; padding: 48px 20px !important; color: #6f9bc0 !important; }
@media (max-width: 1350px) {
  .capacity-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .capacity-page { padding: 15px; }
  .capacity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capacity-page-head { flex-direction: column; }
}
.badge-purple { background: #f5f3ff; color: #6d28d9; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-cyan { background: #ecfeff; color: #0e7490; }
.badge-lg { height: 26px; padding: 0 10px; font-size: 11.5px; }

.progress { height: 6px; border-radius: 999px; background: #eef2f7; overflow: hidden; min-width: 64px; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width .4s; }
.progress.green > span { background: linear-gradient(90deg, #34d399, #059669); }
.progress.amber > span { background: linear-gradient(90deg, #fbbf24, #d97706); }
.progress.red > span { background: linear-gradient(90deg, #f87171, #dc2626); }
.progress-row { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.progress-row .progress { flex: 1; }
.progress-text { font-size: 10.5px; color: var(--muted); width: 32px; text-align: right; font-variant-numeric: tabular-nums; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe); color: #1d4ed8; font-weight: 700; font-size: 12px;
  flex: 0 0 auto;
}
.avatar.green { background: linear-gradient(145deg, #d1fae5, #a7f3d0); color: #047857; }
.avatar.amber { background: linear-gradient(145deg, #fef3c7, #fde68a); color: #b45309; }
.avatar.purple { background: linear-gradient(145deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-lg { width: 46px; height: 46px; font-size: 16px; }

/* ---------------- 浠〃鐩?---------------- */
.dashboard-hero {
  background:
    radial-gradient(540px 260px at 92% -20%, rgba(125, 211, 252, .22), transparent 70%),
    linear-gradient(120deg, #0b1f3a, #12325b 60%, #17406f);
  border-radius: 18px; padding: 24px 26px; color: #fff; position: relative; overflow: hidden;
  margin-bottom: 18px;
}
.dashboard-hero:after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 42px rgba(255,255,255,.03), 0 0 0 84px rgba(255,255,255,.02);
}
.dashboard-hero .hero-eyebrow { color: #7dd3fc; font-size: 10.5px; letter-spacing: .12em; font-weight: 700; }
.dashboard-hero h2 { margin: 7px 0 4px; font-size: 23px; letter-spacing: -.02em; font-weight: 600; }
.dashboard-hero p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.hero-stats { display: flex; gap: 32px; margin-top: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-stat span { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); margin-bottom: 3px; }
.hero-stat b { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.hero-stat b small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); margin-left: 3px; }
.hero-actions { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; z-index: 1; }
.hero-actions .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hero-actions .btn:hover { background: rgba(255,255,255,.18); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-head h3 { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.section-head p { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
.chart-wrap { width: 100%; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; gap: 16px; align-items: center; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.chart-grid line { stroke: #eef2f7; stroke-width: 1; }
.chart-axis { fill: #94a3b8; font-size: 9px; }
.chart-line { fill: none; stroke: #2563eb; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#areaBlue); opacity: .9; }
.chart-line.green { stroke: #059669; }
.chart-point { fill: #fff; stroke: #2563eb; stroke-width: 2; }
.chart-bar { fill: #dbeafe; transition: .2s; }
.chart-bar:hover { fill: #93c5fd; }
.chart-bar.primary { fill: #3b82f6; }
.chart-bar.green { fill: #34d399; }
.cost-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cost-donut svg { width: 132px; height: 132px; flex: 0 0 auto; }
.donut-center { font-size: 11px; fill: #64748b; }
.donut-value { font-size: 16px; font-weight: 700; fill: #0f172a; }
.cost-legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 9px; }
.cost-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.cost-legend-item .name { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.cost-legend-item .name i { width: 8px; height: 8px; border-radius: 3px; }
.cost-legend-item b { font-variant-numeric: tabular-nums; font-weight: 600; }

.list-stack { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 12px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-sub { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.list-item .li-meta { text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }
.list-item .li-meta b { display: block; color: var(--ink); font-size: 12px; }

/* ---------------- 璇︽儏/鎶藉眽 ---------------- */
.drawer-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(2px); animation: fadeIn .18s ease-out;
}
.drawer {
  position: fixed; z-index: 101; right: 0; top: 0; bottom: 0; width: min(640px, 94vw);
  background: #fff; box-shadow: -22px 0 50px -24px rgba(15, 23, 42, .35);
  display: flex; flex-direction: column; animation: slideIn .22s cubic-bezier(.2,.8,.2,1);
}
.drawer.wide { width: min(760px, 96vw); }
.drawer.xwide { width: min(1280px, 96vw); }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border);
}
.drawer-head h2 { font-size: 18px; margin: 0; letter-spacing: -.02em; }
.drawer-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px 26px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: #fff; }
.drawer-close { flex: 0 0 auto; }
.modal {
  position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(640px, 94vw); max-height: 90vh; background: #fff; border-radius: 15px;
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: popIn .18s ease-out;
}
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal.wide { width: min(820px, 96vw); }
.modal.xwide { width: min(1000px, 97vw); }
.modal.xwide.stocktake-modal { width: min(1560px, 97vw); max-height: 93vh; }
.stocktake-modal .modal-body { padding: 16px 18px; }
.stocktake-modal .stocktake-picker { grid-template-columns: 250px minmax(0, 1fr); }
.stocktake-modal .stocktake-picker-table { max-height: 300px; }
.modal.xwide.wh-exec-modal { width: min(1720px, 98vw); max-width: 1720px; max-height: 92vh; }
.wh-exec-modal .modal-body { padding: 14px 16px; }
.modal.sales-order-modal {
  width: min(1000px, 72vw);
  max-height: 69vh;
  transform: translate(-50%, -50%) scale(1.3);
  animation: none;
}
.modal.purchase-order-modal {
  width: min(1000px, 72vw);
  max-height: 69vh;
  transform: translate(-50%, -50%) scale(1.3);
  animation: none;
}
.modal-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.modal-body { padding: 18px 22px; overflow-y: auto; min-height: 0; flex: 1; }
.modal-foot { padding: 13px 22px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); flex: 0 0 auto; }
.modal-foot .btn-danger { margin-right: auto; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@keyframes popIn { from { transform: translate(-50%, -48%) scale(.985); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---------------- 鐗╂枡绫诲瀷鏍戦€夋嫨鍣?---------------- */
.picker-backdrop {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(2px); animation: fadeIn .16s ease-out;
}
.category-picker-modal {
  position: fixed; z-index: 301; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(540px, 92vw); max-height: 82vh; background: #fff; border-radius: 15px;
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column;
  animation: popIn .18s ease-out;
}
.picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 13px; border-bottom: 1px solid var(--border); }
.picker-head h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.picker-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.picker-toolbar b { color: var(--ink); font-weight: 600; }
.picker-body { padding: 8px 10px 12px; overflow-y: auto; min-height: 0; flex: 1; }
.picker-row { display: flex; align-items: center; min-height: 32px; }
.picker-toggle {
  width: 24px; height: 30px; flex: 0 0 24px; border: none; background: none; padding: 0;
  color: #94a3b8; display: inline-flex; align-items: center; justify-content: center;
}
.picker-toggle:disabled { opacity: 0; }
.picker-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.picker-toggle.expanded svg { transform: rotate(90deg); }
.picker-label {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: none; background: none; padding: 6px 9px; border-radius: 8px; text-align: left;
  color: #334155; font-size: 12px;
}
.picker-label:hover { background: #f8fafc; }
.picker-label.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.picker-label > span:first-child { flex: 1; min-width: 0; text-align: left; }
.picker-code { font-size: 10px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.picker-label.active .picker-code { color: var(--primary); }
.picker-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--muted-2); }
.category-picker-trigger {
  width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; padding: 8px 10px;
  color: var(--ink); text-align: left; font-size: 12.5px;
}
.category-picker-trigger:hover { border-color: #93c5fd; }
.category-picker-trigger.filled { border-color: #bfdbfe; background: #f8fbff; }
.category-picker-trigger .picked-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-picker-trigger .picked-placeholder { color: var(--muted-2); }
.category-picker-trigger svg { width: 15px; height: 15px; color: var(--muted-2); flex: 0 0 auto; }

/* ---------------- 鍥剧墖鏀惧ぇ ---------------- */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 400; background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(4px); animation: fadeIn .15s ease-out;
}
.image-lightbox {
  position: fixed; z-index: 401; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 92vw; max-height: 90vh; display: flex; align-items: center; justify-content: center;
  animation: popIn .16s ease-out;
}
.image-lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: #fff;
}
.lightbox-close {
  position: fixed; right: 22px; top: 18px; z-index: 402; color: #fff;
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox-caption {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: 11px; z-index: 402; max-width: 80vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 琛ㄥ崟 ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.order-header-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 14px; }
.order-header-grid .span-3 { grid-column: span 3; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-size: 11.5px; font-weight: 600; color: #475569; }
.form-field label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: var(--ink); outline: none; transition: .16s border, .16s box-shadow;
}
.form-input, .form-select { height: 36px; padding: 0 10px; font-size: 12.5px; }
.form-input[type="color"] { width: 64px; padding: 3px; cursor: pointer; }
.form-select { padding-right: 28px; }
.form-textarea { min-height: 74px; padding: 9px 10px; font-size: 12.5px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.form-input:disabled, .form-select:disabled { background: #f8fafc; color: var(--muted); }
.form-help { font-size: 10.5px; color: var(--muted-2); }
.form-error { color: var(--red); font-size: 11px; }
.form-section { margin: 20px 0 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-section-title { font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 2px; }
.form-section-sub { font-size: 10.5px; color: var(--muted-2); margin-bottom: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #475569; }
.checkbox-row input { width: 15px; height: 15px; accent-color: var(--primary); }

.line-items { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.line-items-head, .line-row {
  display: grid; grid-template-columns: minmax(180px, 2.1fr) .8fr .9fr 1fr 34px;
  gap: 8px; align-items: center; padding: 8px 10px;
}
.line-items-head { background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 10px; color: var(--muted); font-weight: 600; }
.line-row { border-bottom: 1px solid #f1f5f9; }
.line-row:last-child { border-bottom: none; }
.line-row .form-input, .line-row .form-select { height: 32px; font-size: 11.5px; }
.line-row .line-amount { font-size: 11.5px; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.line-remove { color: var(--muted-2); }
#so-lines .line-items-head, #so-lines .line-row { grid-template-columns: minmax(210px, 2.8fr) 92px 66px 74px 76px 70px 64px 74px 74px 28px; }
#po-lines .line-items-head, #po-lines .line-row { grid-template-columns: minmax(210px, 2.8fr) 92px 66px 74px 76px 70px 64px 74px 74px 28px; }
#po-lines .line-product { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; }
#po-lines .line-product .product-tree-wrap { width: 100%; }
#po-lines .product-tree-trigger { height: 32px; font-size: 11px; }
#po-lines .line-row { align-items: start; }
#po-lines .line-row .form-input, #po-lines .line-row .form-select { height: 31px; font-size: 10.5px; }
#po-lines .line-qty { min-width: 0; text-align: right; padding-left: 8px; padding-right: 8px; }
#po-lines .line-suggested, #po-lines .line-net, #po-lines .line-tax-amount, #po-lines .line-total { font-size: 10.5px; padding-top: 9px; text-align: right; white-space: nowrap; }
#po-lines .line-suggested { color: var(--muted); }
#po-lines .line-total { font-weight: 600; }
#so-lines .line-qty { min-width: 0; text-align: right; padding-left: 8px; padding-right: 8px; }
.line-qty-wrap { display: flex; align-items: center; gap: 3px; min-width: 0; }
.line-qty-wrap .line-qty { flex: 1; min-width: 0; }
.line-unit { font-size: 10px; color: #64748b; white-space: nowrap; max-width: 34px; overflow: hidden; text-overflow: ellipsis; }
#so-lines .line-product { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; }
#so-lines .line-product .product-tree-wrap { width: 100%; }
#so-lines .product-tree-trigger { height: 32px; font-size: 11px; }
#so-lines .line-row { align-items: start; }
#so-lines .line-row .form-input, #so-lines .line-row .form-select { height: 31px; font-size: 10.5px; }
#so-lines .line-suggested, #so-lines .line-net, #so-lines .line-tax-amount, #so-lines .line-total { font-size: 10.5px; padding-top: 9px; text-align: right; white-space: nowrap; }
#so-lines .line-suggested { color: var(--muted); }
#so-lines .line-total { font-weight: 600; }
.so-product-meta { display: flex; flex-wrap: wrap; gap: 3px 9px; font-size: 9.5px; color: var(--muted); line-height: 1.45; }
.so-product-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.so-product-head .product-tree-wrap { flex: 1; min-width: 0; }
.so-line-image { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--border); border-radius: 7px; padding: 0; overflow: hidden; background: #f8fafc; display: inline-flex; align-items: center; justify-content: center; color: #cbd5e1; }
button.so-line-image { cursor: zoom-in; }
.so-line-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.so-line-image .ico { width: 16px; height: 16px; }
.so-detail-product { display: flex; gap: 8px; align-items: flex-start; }
.so-product-meta span { white-space: nowrap; }
.so-customer-code { color: #dc2626; font-size: 10px; font-weight: 600; }
.so-order-summary { display: flex; justify-content: flex-end; gap: 18px; padding: 7px 10px; margin-bottom: 7px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.so-order-summary b { color: var(--ink); font-size: 12px; margin-left: 4px; }
.so-order-summary span:last-child b { color: var(--primary-dark); font-size: 14px; }
.form-field .product-tree-trigger { height: 36px; }
.line-remove:hover { color: var(--red); background: var(--red-soft); }
.line-total { display: flex; justify-content: flex-end; gap: 20px; padding: 11px 12px; background: #f8fafc; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.line-total b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.add-line { margin-top: 8px; }
.bom-line-grid { grid-template-columns: minmax(180px, 2fr) .7fr .8fr 1fr 34px; }

/* ---------------- 鏍囩椤?鏃堕棿绾?---------------- */
.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab {
  border: none; background: none; padding: 9px 12px 10px; font-size: 12px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.timeline { position: relative; padding-left: 20px; }
.timeline:before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -19px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #93c5fd; }
.timeline-item.done .timeline-dot { border-color: var(--green); background: var(--green); }
.timeline-title { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.timeline-sub { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------------- BOM 鏍?---------------- */
.bom-tree { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.bom-tree-head, .bom-row {
  display: grid; grid-template-columns: minmax(240px, 2.4fr) .8fr .7fr .9fr 1fr;
  gap: 10px; align-items: center; padding: 9px 12px;
}
.bom-tree-head { background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 10px; color: var(--muted); font-weight: 600; }
.bom-row { border-bottom: 1px solid #f1f5f9; font-size: 11.5px; }
.bom-row:last-child { border-bottom: none; }
.bom-row.level-1 { background: #fff; }
.bom-row.level-2 { background: #fbfdff; }
.bom-row.level-3 { background: #f8fafc; }
.bom-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bom-indent { display: inline-flex; align-items: center; color: #cbd5e1; flex: 0 0 auto; }
.bom-indent i { display: inline-block; width: 16px; height: 1px; background: #e2e8f0; margin-right: 4px; }
.bom-name .code { font-weight: 600; color: var(--ink); }
.bom-name .name { color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bom-qty { font-variant-numeric: tabular-nums; }
.bom-cost { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bom-summary { display: flex; gap: 24px; flex-wrap: wrap; padding: 14px 16px; background: #f8fafc; border-radius: 10px; margin-bottom: 16px; }
.bom-summary div span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.bom-summary div b { font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------------- 鏄庣粏/缁熻鍧?---------------- */
.detail-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.detail-cards.wo-summary-cards { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.wo-summary-cards .wo-metric-value { display: block; font-size: clamp(12px, 1.05vw, 16px); line-height: 1.35; white-space: nowrap; letter-spacing: -.02em; }
.wo-summary-cards .detail-card { min-width: 0; }
.detail-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; }
.detail-card span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.detail-card b { font-size: 15px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.detail-card.green { background: var(--green-soft); border-color: #d1fae5; }
.detail-card.green b { color: #047857; }
.detail-card.blue { background: var(--primary-soft); border-color: #dbeafe; }
.detail-card.blue b { color: var(--primary-dark); }
.detail-card.amber { background: var(--amber-soft); border-color: #fef3c7; }
.detail-card.amber b { color: #b45309; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 12px; }
.detail-grid dt { color: var(--muted); font-size: 10.5px; margin-bottom: 2px; }
.detail-grid dd { margin: 0 0 8px; color: var(--ink); font-weight: 500; }
.notice {
  display: flex; gap: 9px; padding: 11px 13px; border-radius: 9px; font-size: 11.5px;
  background: var(--primary-soft); color: #1e40af; border: 1px solid #dbeafe; margin-bottom: 12px;
}
.notice.warn { background: var(--amber-soft); color: #92400e; border-color: #fde68a; }
.notice.danger { background: var(--red-soft); color: #991b1b; border-color: #fecaca; }
.notice svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }

/* ---------------- 绌虹姸鎬?鍔犺浇 ---------------- */
.empty-state { padding: 56px 24px; text-align: center; }
.empty-state .empty-icon { width: 54px; height: 54px; margin: 0 auto 12px; color: #cbd5e1; }
.empty-state h3 { font-size: 14px; margin: 0 0 5px; color: #475569; }
.empty-state p { font-size: 11.5px; color: var(--muted-2); margin: 0 0 16px; }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 5px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.loading-page { padding: 24px 0; }
.loading-page .skeleton { height: 18px; margin-bottom: 12px; }

/* ---------------- Toast ---------------- */
.toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  min-width: 240px; max-width: 380px; background: #0f172a; color: #fff; border-radius: 10px;
  padding: 11px 14px; font-size: 12px; box-shadow: var(--shadow-pop); display: flex; gap: 9px; align-items: flex-start;
  animation: toastIn .2s ease-out; pointer-events: auto;
}
.toast.success { background: #064e3b; }
.toast.error { background: #7f1d1d; }
.toast.warn { background: #78350f; }
.toast svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------------- 浜у搧绫诲瀷鏍?---------------- */
.product-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; align-items: start; }
.product-layout.tree-collapsed { grid-template-columns: minmax(0, 1fr); }
.product-layout.tree-collapsed > .category-tree-card { display: none; }
.product-layout.tree-collapsed .table-wrap > table.data-table { width: 100% !important; }
.product-table { min-width: 940px; }
.product-table .checkbox-cell { width: 34px; text-align: center; }
.product-table .checkbox-cell input { width: 15px; height: 15px; accent-color: var(--primary); }
.batch-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; margin: 0 0 10px; border: 1px solid #bfdbfe; border-radius: 9px; background: #eff6ff; font-size: 11px; color: #475569; }
.batch-bar b { color: var(--primary-dark); }
.batch-bar.hidden { display: none; }
.export-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 12px; padding: 4px 0; }
.export-field-check { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #475569; }
.export-field-check input { width: 14px; height: 14px; accent-color: var(--primary); }
.product-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product-thumb {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 9px; overflow: hidden;
  background: #f8fafc; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb .ico { width: 20px; height: 20px; }
.product-detail-hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.product-gallery { display: flex; gap: 9px; flex: 0 0 auto; }
.product-main-image {
  width: 142px; height: 142px; flex: 0 0 142px; padding: 0; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; background: #f8fafc; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: #94a3b8; font-size: 10px;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-main-image.empty { cursor: default; }
.product-main-image .ico { width: 34px; height: 34px; color: #cbd5e1; }
.product-aux-list { display: flex; flex-direction: column; gap: 8px; }
.product-images-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.complaint-steps { display: flex; align-items: center; gap: 0; margin-bottom: 16px; padding: 12px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }
.complaint-step { flex: 1; display: flex; align-items: center; gap: 8px; position: relative; color: var(--muted); font-size: 12px; }
.complaint-step:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: #dbe3ee; margin: 0 8px; }
.complaint-step.done:not(:last-child)::after { background: #2563eb; }
.complaint-step-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; flex: 0 0 24px; }
.complaint-step.active { color: #1d4ed8; font-weight: 600; }
.complaint-step.active .complaint-step-dot { border-color: #2563eb; color: #2563eb; background: #dbeafe; }
.complaint-step.done { color: #047857; }
.complaint-step.done .complaint-step-dot { border-color: #059669; background: #059669; color: #fff; }
.complaint-product-choice.selected { border-color: #2563eb !important; background: #eff6ff !important; box-shadow: 0 0 0 2px #bfdbfe; }
.complaint-product-check { width: 22px; height: 22px; border: 1px solid #cbd5e1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex: 0 0 22px; }
.complaint-product-choice.selected .complaint-product-check { background: #2563eb; border-color: #2563eb; }
.dept-tree { padding: 8px; }
.dept-tree-node { display: flex; align-items: center; gap: 2px; }
.dept-tree-item { flex: 1; display: flex; justify-content: space-between; align-items: center; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--text); text-align: left; }
.dept-tree-item:hover { background: #f1f5f9; }
.dept-tree-item.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.dept-tree-item small { color: var(--muted); font-size: 10px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perm-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.perm-group-title { font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.perm-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.perm-checks .checkbox-row { font-size: 12px; }
.product-aux-image {
  width: 64px; height: 64px; flex: 0 0 64px; padding: 0; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; background: #f8fafc; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 9px;
}
.product-aux-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-aux-image.empty { cursor: default; background: #fbfdff; border-style: dashed; }
.product-aux-image.empty span { color: #cbd5e1; }
.product-image-editor {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px;
}
.form-block {
  border: 1px solid var(--border); border-radius: 13px; padding: 14px; margin-bottom: 2px;
}
.form-block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.form-block-head h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.form-block-head h4 { margin: 0; font-size: 12.5px; letter-spacing: -.01em; }
.form-block-head p { margin: 3px 0 0; font-size: 10.5px; color: var(--muted); }
.form-block .form-grid { margin: 0; }
.form-subblock { border: 1px solid rgba(139, 92, 246, .18); border-radius: 11px; padding: 12px; margin-top: 2px; }
.tint-blue { background: rgba(59, 130, 246, .055); border-color: rgba(59, 130, 246, .16); }
.tint-violet { background: rgba(139, 92, 246, .065); border-color: rgba(139, 92, 246, .18); }
.tint-green { background: rgba(16, 185, 129, .055); border-color: rgba(16, 185, 129, .16); }
.tint-amber { background: rgba(245, 158, 11, .065); border-color: rgba(245, 158, 11, .20); }
.unit-conversion-row {
  display: grid; grid-template-columns: 18px minmax(90px, 1fr) 18px minmax(80px, .8fr) minmax(90px, 1fr) minmax(90px, 1.2fr) 28px;
  gap: 7px; align-items: center; margin-bottom: 7px;
}
.unit-conversion-row .form-select, .unit-conversion-row .form-input { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.unit-conversion-row .eq { text-align: center; color: var(--muted); font-size: 11px; }
.unit-conversion-row .unit-conv-remove {
  width: 26px; height: 28px; border: none; background: transparent; color: #94a3b8; border-radius: 6px;
}
.unit-conversion-row .unit-conv-remove:hover { background: #fee2e2; color: #dc2626; }
.unit-conversion-empty { padding: 10px; border: 1px dashed #fcd34d; border-radius: 8px; color: #94a3b8; font-size: 11px; text-align: center; }
.unit-price-table-wrap { overflow-x: auto; }
.unit-price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.unit-price-table th { text-align: left; font-size: 10px; color: var(--muted-2); font-weight: 500; padding: 6px 7px; border-bottom: 1px solid rgba(139, 92, 246, .15); white-space: nowrap; }
.unit-price-table td { padding: 6px 7px; vertical-align: top; border-bottom: 1px dashed rgba(139, 92, 246, .12); }
.unit-price-table tbody tr:last-child td { border-bottom: none; }
.unit-price-table .form-select, .unit-price-table .form-input { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.unit-price-table .form-input[type="number"] { max-width: 110px; }
.unit-price-table .unit-base-tag { display: inline-block; margin-top: 3px; font-size: 9px; color: #7c3aed; background: rgba(139, 92, 246, .10); border-radius: 4px; padding: 1px 5px; }
.unit-factor-cell { display: flex; align-items: center; gap: 5px; }
.unit-factor-cell span { font-size: 9px; color: #94a3b8; white-space: nowrap; }
.unit-price-table input[type="radio"] { width: 15px; height: 15px; accent-color: var(--primary); margin-top: 8px; }
.unit-price-view td { font-size: 11.5px; }
.code-rule-card { margin-bottom: 16px; background: linear-gradient(135deg, rgba(59,130,246,.055), rgba(139,92,246,.045)); border-color: rgba(59,130,246,.14); }
.code-rule-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 0 18px 16px; }
.code-rule-levels { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.code-rule-check { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #475569; }
.code-rule-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.code-rule-options { display: flex; align-items: center; gap: 8px; }
.code-separator-input { width: 54px; text-align: center; padding: 6px 8px; }
.code-rule-preview { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid rgba(59,130,246,.14); border-radius: 7px; padding: 7px 10px; }
.code-rule-preview b { color: var(--primary-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.column-config-note { display: flex; align-items: center; gap: 6px; padding: 9px 11px; margin-bottom: 10px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 11px; }
.column-config-note .ico { width: 14px; height: 14px; color: var(--primary); }
.column-config-list { border: 1px solid var(--border); border-radius: 10px; max-height: 390px; overflow-y: auto; }
.column-config-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 11.5px; cursor: pointer; }
.column-config-item:last-child { border-bottom: none; }
.column-config-item input { width: 15px; height: 15px; accent-color: var(--primary); }
.column-config-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--border); }
.column-config-row:last-child { border-bottom: none; }
.column-config-row:hover { background: #fbfdff; }
.column-config-check { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; font-size: 12px; color: #334155; cursor: pointer; }
.column-config-check input { width: 15px; height: 15px; accent-color: var(--primary); flex: 0 0 auto; }
.column-config-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column-config-actions { display: flex; align-items: center; gap: 3px; }
.column-config-actions .icon-btn { width: 26px; height: 26px; }
.column-config-actions .icon-btn:disabled { opacity: .25; }
.column-config-actions [data-column-up] svg { transform: rotate(-90deg); }
.column-config-actions [data-column-down] svg { transform: rotate(90deg); }

/* ---------------- BOM 浜у搧鏍戦€夋嫨鍣?---------------- */
.product-picker-modal {
  position: fixed; z-index: 301; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.3);
  width: min(820px, 72vw); max-height: 66vh; background: #fff; border-radius: 15px;
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: none;
}
.product-picker-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 0; flex: 1; }
.product-picker-tree { border-right: 1px solid var(--border); padding: 9px 8px; overflow-y: auto; }
.product-picker-list { overflow-y: auto; padding: 9px 10px; }
.product-picker-search { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.product-picker-search input { width: 100%; }
.product-pick-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: none; text-align: left; }
.product-pick-row:hover { background: #f8fafc; border-color: var(--border); }
.product-pick-row img, .product-pick-row .pick-thumb { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 7px; object-fit: cover; background: #f8fafc; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.product-pick-row .pick-main { min-width: 0; flex: 1; }
.product-pick-row .pick-main b { display: block; font-size: 11.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-pick-row .pick-main span { display: block; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-picker-empty { padding: 34px 12px; text-align: center; color: var(--muted); font-size: 11px; }
.bom-editor-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.bom-editor-table { min-width: 1420px; width: 100%; border-collapse: collapse; }
.bom-editor-table th { text-align: left; white-space: nowrap; font-size: 10px; color: var(--muted-2); font-weight: 500; padding: 7px 6px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.bom-editor-table td { padding: 5px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 10.5px; }
.bom-editor-table .line-material { min-width: 150px; }
.bom-editor-table .line-qty, .bom-editor-table .line-loss { width: 70px; }
.bom-editor-table .line-unit-select { min-width: 110px; max-width: 150px; }
.bom-editor-table .line-level { width: 46px; }
.bom-editor-table .line-seq-cell { width: 42px; text-align: center; color: var(--muted); }
.bom-editor-table .line-toggle { width: 17px; height: 20px; border: none; background: none; padding: 0; color: var(--muted); vertical-align: middle; }
.bom-editor-table .line-toggle svg { width: 12px; height: 12px; transform: rotate(0deg); transition: transform .15s; }
.bom-editor-table .line-toggle.expanded svg { transform: rotate(90deg); }
.bom-editor-table .line-toggle.hidden { visibility: hidden; }
.bom-detail-table { min-width: 1180px; }
.bom-detail-table .line-hierarchy { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--primary-dark); font-weight: 600; }
.bom-detail-table .line-seq-cell { text-align: center; color: var(--muted); }
.bom-detail-row td { vertical-align: middle; padding-top: 8px; padding-bottom: 8px; }
.bom-detail-name { display: flex; align-items: center; gap: 8px; min-width: 260px; }
.bom-detail-branch { width: 18px; flex: 0 0 18px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.bom-detail-branch svg { width: 15px; height: 15px; }
.bom-detail-branch i { display: block; width: 12px; height: 1px; background: #e2e8f0; }
.bom-detail-product { display: flex; align-items: center; gap: 8px; border: none; background: none; padding: 0; text-align: left; min-width: 0; flex: 1; }
.bom-detail-product:hover b { color: var(--primary); }
.bom-detail-thumb { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; overflow: hidden; background: #f8fafc; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.bom-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bom-detail-thumb .ico { width: 16px; height: 16px; }
.bom-detail-label { min-width: 0; font-size: 11px; color: var(--ink); }
.bom-detail-label b { font-size: 11.5px; color: var(--ink); }
.bom-detail-label small { display: block; font-size: 9.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bom-detail-hierarchy { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--primary-dark); font-size: 10px; background: #eff6ff; border-radius: 4px; padding: 1px 5px; }
.bom-detail-table .bom-cost { font-weight: 600; }
.qr-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; width: fit-content; }
.qr-strip .qr-svg { border-radius: 4px; }
.qr-strip-label { font-size: 10px; color: var(--muted); }
.qr-strip-label b { display: block; color: var(--ink); font-size: 11px; }
.product-tree-wrap { position: relative; width: 100%; }
.product-tree-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; color: var(--ink); background: #fff; }
.product-tree-trigger .product-tree-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-tree-trigger .ico { width: 13px; height: 13px; color: var(--muted); flex: 0 0 13px; }
.product-tree-trigger:hover { border-color: var(--primary); }
.product-tree-select { display: none !important; }
.supplier-picker { position: relative; }
.supplier-picker-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 230px; overflow-y: auto; background: #fff; border: 1px solid var(--border-strong); border-radius: 9px; box-shadow: 0 14px 32px -18px rgba(15,23,42,.35); padding: 4px; }
.supplier-picker-menu.hidden { display: none; }
.supplier-option, .customer-option { width: 100%; border: none; background: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 6px; text-align: left; cursor: pointer; }
.supplier-option:hover, .customer-option:hover { background: var(--primary-soft); }
.supplier-option span:first-child, .customer-option span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.supplier-option b, .customer-option b { font-size: 11.5px; font-weight: 600; }
.supplier-option small, .customer-option small { font-size: 9.5px; color: var(--muted); }
.supplier-option.hidden, .customer-option.hidden { display: none; }
.supplier-picker-empty { padding: 10px; font-size: 11px; color: var(--muted); }
.supplier-picker-hint { margin-top: 4px; }
.bom-ref-picker { width: min(720px, 94vw); }
.bom-ref-list { padding: 12px 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; }
.bom-ref-pick-row { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 10px 12px; text-align: left; cursor: pointer; }
.bom-ref-pick-row:hover { border-color: #93c5fd; background: #f8fbff; }
.bom-ref-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bom-ref-main b { font-size: 12px; color: var(--ink); }
.bom-ref-main small { font-size: 10px; color: var(--muted); }
.bom-ref-arrow { color: var(--muted); display: flex; align-items: center; }
.bom-ref-arrow .ico { width: 14px; height: 14px; }
.diff-old { color: var(--muted); text-decoration: line-through; }
.diff-new { color: #dc2626; font-weight: 600; }
.pick-customer-code { color: #dc2626 !important; font-weight: 600; font-size: 10px; }
.toolbar-left .product-tree-wrap { width: 210px; max-width: 100%; }
.toolbar-left .product-tree-trigger { height: 34px; font-size: 11px; }
.bom-editor-table .line-seq { display: inline-block; min-width: 16px; font-size: 10px; vertical-align: middle; }
.source-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 5px; overflow: hidden; white-space: nowrap; }
.bom-editor-table .line-source-cell { min-width: 82px; width: 82px; }
.source-opt { border: none; background: #fff; color: var(--muted); font-size: 9.5px; padding: 4px 6px; cursor: pointer; white-space: nowrap; }
.source-opt + .source-opt { border-left: 1px solid var(--border); }
.source-opt.active[data-source="make"] { background: #ecfdf5; color: #047857; font-weight: 600; }
.source-opt.active[data-source="buy"] { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.bom-editor-table .line-hierarchy { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--primary-dark); font-size: 10.5px; white-space: nowrap; }
.bom-editor-table .bom-child-trigger { width: 100%; min-width: 145px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; padding: 5px 7px; font-size: 10.5px; text-align: left; }
.bom-editor-table .bom-child-trigger:hover { border-color: #93c5fd; }
.bom-editor-table .bom-child-trigger .child-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bom-editor-table .bom-child-trigger svg { width: 13px; height: 13px; flex: 0 0 auto; color: var(--muted-2); }
.bom-editor-table .line-ref-cell { min-width: 100px; }
.bom-editor-table .line-ref-code { display: block; font-size: 9.5px; color: var(--primary-dark); }
.bom-editor-table .line-ref-btn { font-size: 9.5px; padding: 2px 5px; }
.bom-editor-table .line-remove { width: 24px; height: 26px; }
.bom-editor-table .line-row { display: table-row; }
.bom-editor-table .line-row:hover td { background: #fbfdff; }
.bom-editor-table .line-row .form-input, .bom-editor-table .line-row .form-select { height: 30px; font-size: 10.5px; }
.bom-editor-table .line-row .line-remove { position: static; }
.bom-editor-table .line-row .line-effective { color: var(--muted); white-space: nowrap; }
.bom-parent-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin: 12px 0; border: 1px solid rgba(59,130,246,.16); border-radius: 12px; background: rgba(59,130,246,.045); }
.bom-parent-image { width: 104px; height: 104px; flex: 0 0 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.bom-parent-image img { width: 100%; height: 100%; object-fit: cover; }
.bom-parent-info { flex: 1; min-width: 0; }
.bom-parent-info h4 { margin: 0 0 5px; font-size: 13px; }
.bom-parent-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px 14px; font-size: 10.5px; }
.bom-parent-grid dt { color: var(--muted); }
.bom-parent-grid dd { margin: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bom-product-trigger { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; padding: 8px 10px; font-size: 12px; text-align: left; }
.bom-product-trigger:hover { border-color: #93c5fd; }
.bom-product-trigger .picked-placeholder { color: var(--muted-2); }
.bom-product-trigger svg { width: 15px; height: 15px; color: var(--muted-2); }
.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.unit-symbol { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 6px; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 600; }
@media (max-width: 1100px) {
  .unit-layout { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
}
.product-image-slot {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.product-image-slot-title { font-size: 11px; font-weight: 600; color: #475569; align-self: flex-start; }
.product-image-slot .product-image-preview { width: 100%; height: 104px; flex: none; }
.product-image-slot-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.product-image-preview {
  width: 92px; height: 92px; flex: 0 0 92px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}
.product-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image-preview .ico { width: 30px; height: 30px; }
.product-image-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.product-image-actions .form-help { margin: 0; }
@media (max-width: 640px) {
  .product-detail-hero { flex-direction: column; }
  .product-detail-image { width: 110px; height: 110px; flex-basis: 110px; }
}
.category-tree-card { position: sticky; top: 92px; }
.category-tree { padding: 8px; max-height: calc(100vh - 250px); overflow-y: auto; }
.tree-node { display: flex; align-items: center; min-height: 30px; }
.tree-toggle {
  width: 22px; height: 28px; flex: 0 0 22px; border: none; background: none;
  color: #94a3b8; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.tree-toggle:disabled { opacity: 0; cursor: default; }
.tree-toggle svg { width: 13px; height: 13px; transition: transform .15s; }
.tree-toggle.expanded svg { transform: rotate(90deg); }
.tree-label {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px;
  border: none; background: none; padding: 5px 8px; border-radius: 7px;
  font-size: 11.5px; color: #475569; text-align: left; line-height: 1.35;
}
.tree-label:hover { background: #f8fafc; color: var(--ink); }
.tree-label.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.tree-label > span:first-child { flex: 1; min-width: 0; text-align: left; }
.tree-count {
  flex: 0 0 auto; min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: #f1f5f9; color: var(--muted-2); font-size: 9.5px; text-align: center;
}
.tree-label.active .tree-count { background: #dbeafe; color: var(--primary-dark); }
.tree-all { width: calc(100% - 8px); margin: 2px 4px 7px; font-weight: 600; }
.filter-chip-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 16px; background: var(--primary-soft); border-bottom: 1px solid #dbeafe;
  color: #1e40af; font-size: 11px;
}

/* ---------------- 鍝嶅簲寮?---------------- */
@media (max-width: 1280px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { gap: 24px; }
}
@media (max-width: 1100px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-pop); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand .sidebar-close { display: inline-flex; }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; z-index: 45; background: rgba(15,23,42,.35);
  }
  .sidebar-backdrop.show { display: block; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .view { padding: 20px 18px 40px; }
  .topbar { padding: 0 18px; }
  .product-layout { grid-template-columns: 1fr; }
  .category-tree-card { position: static; }
  .category-tree { max-height: 240px; }
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .mobile-brand { display: flex; }
  .login-panel { min-height: 100vh; padding: 34px 24px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .detail-cards { grid-template-columns: 1fr 1fr; }
  .hero-actions { position: static; margin-top: 16px; }
  .topbar-date { display: none; }
  .page-subtitle { max-width: 52vw; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .order-header-grid { grid-template-columns: 1fr 1fr; }
  .order-header-grid .span-3 { grid-column: span 2; }
  .line-items-head { display: none; }
  .line-row { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; position: relative; }
  .line-row .line-product { grid-column: span 2; }
  .line-row .line-remove { position: absolute; right: 4px; top: 4px; }
  .bom-tree-head { display: none; }
  .bom-row { grid-template-columns: 1fr 1fr; gap: 5px 10px; padding: 10px; }
  .bom-name { grid-column: span 2; }
  .bom-cost { text-align: left; }
  .topbar { height: 66px; }
  .page-title { font-size: 17px; }
  .user-chip .user-chip-meta { display: none; }
  .drawer { width: 100%; }
  .modal { width: 94vw; }
  .toolbar { align-items: flex-start; }
  .search-box, .search-box input { width: 100%; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .table-footer { flex-direction: column; gap: 6px; align-items: flex-start; }
  .dashboard-hero { padding: 20px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat b { font-size: 17px; }
  .login-card { max-width: 100%; }
  .demo-chips { grid-template-columns: 1fr; }
}

.filter-dd { position: relative; }
.filter-dd-summary { list-style: none; height: 33px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; font-size: 12px; color: var(--ink); cursor: pointer; user-select: none; }
.filter-dd-summary::-webkit-details-marker { display: none; }
.filter-dd-summary svg { width: 13px; height: 13px; color: var(--muted-2); }
.filter-dd-menu { position: absolute; z-index: 40; top: 38px; left: 0; min-width: 170px; max-height: 290px; overflow: auto; padding: 6px; border: 1px solid var(--border); border-radius: 9px; background: #fff; box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
.filter-dd-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; cursor: pointer; }
.filter-dd-item:hover { background: #f1f5f9; }
.filter-dd-item input { width: 14px; height: 14px; }
.table-head-search { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.table-head-search .search-box input { width: 300px; height: 30px; }
/* 产品详情：放大图库并右移文字区 */
.product-detail-hero { gap: 28px; }
.product-main-image { width: 240px; height: 240px; flex: 0 0 240px; border-radius: 18px; }
.product-aux-list { gap: 10px; }
.product-aux-image { width: 115px; height: 115px; flex: 0 0 115px; border-radius: 12px; }
.product-detail-hero > div:last-child { margin-left: 16px; }
@media (max-width: 760px) {
  .product-main-image { width: 180px; height: 180px; flex-basis: 180px; }
  .product-aux-image { width: 85px; height: 85px; flex-basis: 85px; }
  .product-detail-hero > div:last-child { margin-left: 0; }
}
/* 列表操作列：按按钮数量收紧宽度 */
.product-table th:last-child,
.product-table td.actions { width: 108px; min-width: 108px; padding-left: 6px; padding-right: 8px; white-space: nowrap; }
.bom-table th:last-child,
.bom-table td.actions { width: 205px; min-width: 205px; padding-left: 6px; padding-right: 8px; white-space: nowrap; }
.product-table { min-width: 0 !important; width: max-content; }
.product-table { min-width: 0 !important; width: max-content; }
/* 产品/BOM 表格强制按内容收缩，操作列左对齐 */
.product-table,
.bom-table { display: inline-table; width: auto !important; min-width: 0 !important; }
.product-table th:last-child,
.product-table td.actions,
.bom-table th:last-child,
.bom-table td.actions { width: auto !important; min-width: 0 !important; text-align: left !important; padding-left: 10px; padding-right: 10px; }
.product-table,
.bom-table { display: table !important; width: fit-content !important; max-width: 100%; min-width: 0 !important; }
.product-table th:last-child,
.product-table td.actions,
.bom-table th:last-child,
.bom-table td.actions { width: 1% !important; min-width: 0 !important; text-align: left !important; white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.system-switch-card {
  display: flex; align-items: center; gap: 9px; margin: 8px 14px 2px; padding: 9px 10px;
  border: 1px solid #dbeafe; border-radius: 10px; background: linear-gradient(135deg, #eff6ff, #f8fbff);
  text-decoration: none; color: var(--ink); transition: .15s;
}
.system-switch-card:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(37, 99, 235, .10); transform: translateY(-1px); }
.system-switch-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #1d4ed8, #3b82f6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 30px; }
.system-switch-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.system-switch-text b { font-size: 12px; font-weight: 700; }
.system-switch-text span { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.system-switch-arrow { width: 15px; height: 15px; color: #2563eb; flex: 0 0 15px; }
.table-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); background: #fff; flex-wrap: wrap; }
.table-page-info { font-size: 11px; color: var(--muted); }
.table-page-actions { display: flex; align-items: center; gap: 4px; }
.table-page-btn { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #475569; font-size: 11px; cursor: pointer; }
.table-page-btn:hover:not(:disabled) { border-color: #93c5fd; color: #1d4ed8; }
.table-page-btn.active { border-color: #2563eb; background: #2563eb; color: #fff; }
.table-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.sidebar-todo { width: calc(100% - 20px); margin: 0 10px 10px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #bfdbfe; border-radius: 9px; background: linear-gradient(135deg,#eff6ff,#f8fbff); color: var(--ink); cursor: pointer; text-align: left; }
.sidebar-todo:hover { border-color: #93c5fd; }
.sidebar-todo-icon { width: 28px; height: 28px; border-radius: 8px; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: 0 0 28px; }
.sidebar-todo-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.sidebar-todo-text b { font-size: 12px; }
.sidebar-todo-text span { font-size: 9px; color: var(--muted-2); }
.sidebar-todo-badge { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.todo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.todo-card { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.todo-card b { display: block; font-size: 22px; margin-bottom: 3px; }
.todo-card span { font-size: 11px; color: var(--muted); }
.monthly-center-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: .15s; }
.monthly-center-card:hover { border-color: #93c5fd; box-shadow: 0 8px 22px rgba(37,99,235,.10); transform: translateY(-1px); }
.monthly-center-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.monthly-center-head span:last-child { font-size: 9px; color: #94a3b8; }
.monthly-center-card > b { font-size: 27px; color: var(--ink); }
.monthly-center-card > b small { font-size: 11px; font-weight: 500; color: var(--muted); }
.monthly-center-metrics { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.monthly-center-metrics strong { display: block; margin-top: 2px; font-size: 12px; color: var(--ink); }
.monthly-center-link { margin-top: auto; font-size: 10px; color: #2563eb; }
.monthly-chart { width: 100%; overflow: hidden; }
.monthly-chart svg { width: 100%; height: 220px; display: block; }
.monthly-grid-line { stroke: #e2e8f0; stroke-width: 1; }
.monthly-grid-line.dashed { stroke-dasharray: 4 5; }
.monthly-axis { fill: #94a3b8; font-size: 9px; }
@media (max-width: 760px) { .monthly-chart svg { height: 180px; } }/* 生产月看板专属深蓝主题 */
.monthly-board-page { margin: -26px -30px -46px; padding: 26px 30px 46px; min-height: calc(100vh - 76px); background: radial-gradient(900px 500px at 15% 0%, #0c2b4b, transparent 60%), #061426; color: #eef6ff; }
.monthly-board-page .page-head h1, .monthly-board-page .page-title, .monthly-board-page .card-head h3, .monthly-board-page .kpi-value, .monthly-board-page .primary-cell { color: #f8fbff !important; }
.monthly-board-page .page-head p, .monthly-board-page .page-subtitle, .monthly-board-page .card-head p, .monthly-board-page .muted, .monthly-board-page .sub-cell { color: #93a9c4 !important; }
.monthly-board-page .card, .monthly-board-page .monthly-center-card, .monthly-board-page .table-wrap, .monthly-board-page .table-footer { background: #0b2037 !important; border-color: #1b3a5c !important; color: #eef6ff !important; }
.monthly-board-page .card-head, .monthly-board-page .table-footer { border-color: #1b3a5c !important; }
.monthly-board-page .data-table th { background: #081a2d !important; color: #8fa9c6 !important; border-bottom-color: #1b3a5c !important; }
.monthly-board-page .data-table td { color: #d6e6f7 !important; border-bottom-color: #14304c !important; }
.monthly-board-page .data-table tbody tr:hover { background: #0f2a45 !important; }
.monthly-board-page .form-select, .monthly-board-page select { background: #081b2e !important; color: #f1f7ff !important; border-color: #2b5278 !important; }
.monthly-board-page .monthly-center-card:hover { border-color: #3b6b99 !important; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.monthly-board-page .monthly-center-head, .monthly-board-page .monthly-center-metrics { color: #93a9c4 !important; }
.monthly-board-page .monthly-center-metrics strong { color: #eef6ff !important; }
.monthly-board-page .monthly-center-link { color: #7dd3fc !important; }
.monthly-board-page .monthly-axis { fill: #8fa9c6; }
.monthly-board-page .monthly-grid-line { stroke: #1b3a5c; }
.monthly-board-page .btn-ghost { color: #a9c1da !important; }
.monthly-board-page .btn { background: #102a45 !important; color: #dcecff !important; border-color: #2b5278 !important; }
.monthly-board-page .kpi-card { background: #0b2037 !important; border-color: #1b3a5c !important; }
.monthly-board-page .kpi-label, .monthly-board-page .kpi-foot { color: #8fa9c6 !important; }
body { overflow-x: hidden; }
.view { overflow-x: hidden; }
.monthly-board-page .monthly-center-card > b { color: #f8fbff !important; }
.monthly-board-page .monthly-center-card > b small { color: #a9c1da !important; }
.monthly-board-page .monthly-center-head span:last-child { color: #8fa9c6 !important; }
.report-rank { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700; }
.login-photo-card { position: relative; max-width: 560px; margin-top: 4px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 60px -26px rgba(0,0,0,.55); background: #0b1f3a; }
.login-photo-card img { display: block; width: 100%; height: 300px; object-fit: cover; }
.login-photo-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 999px; background: rgba(7,24,47,.62); border: 1px solid rgba(255,255,255,.22); color: #eaf3ff; font-size: 10px; letter-spacing: .04em; backdrop-filter: blur(6px); }
@media (max-width: 1100px) { .login-photo-card img { height: 240px; } }
.login-brand-inner { max-width: 640px; }
.login-photo-card { max-width: 620px; }
.login-photo-card img { height: 260px; object-fit: fill; }
@media (max-width: 1100px) { .login-photo-card img { height: 220px; } }
.login-brand { padding-left: clamp(36px, 4.2vw, 68px); padding-right: clamp(36px, 4.2vw, 68px); }
.login-brand-inner { max-width: 700px; }
.login-photo-card { max-width: 680px; }
.login-photo-card img { height: 330px; object-fit: fill; }
@media (max-width: 1100px) { .login-photo-card img { height: 260px; } }
.login-brand { padding-left: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
.login-brand-inner { width: 100%; max-width: 760px; }
.login-photo-card { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
.dashboard-hero-links { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dashboard-hero-links .hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-links { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; width: 300px; flex: 0 0 300px; }
.hero-link { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.08); color: #eef6ff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(5px); transition: .15s; }
.hero-link:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); color: #fff; }
.hero-link .ico { width: 14px; height: 14px; color: #7dd3fc; }
.hero-link:last-child { grid-column: span 2; }
@media (max-width: 900px) { .dashboard-hero-links { flex-direction: column; align-items: stretch; } .hero-links { width: 100%; flex-basis: auto; } }
.category-level-cell { display: flex; align-items: center; gap: 6px; }
.category-toggle { width: 18px; height: 18px; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #475569; font-size: 11px; line-height: 1; cursor: pointer; }
.category-toggle:hover { border-color: #93c5fd; color: #1d4ed8; }
.category-toggle-spacer { width: 18px; flex: 0 0 18px; }
.capacity-iso { margin-bottom: 18px; border: 1px solid #1b4167; border-radius: 14px; overflow: hidden; background: radial-gradient(700px 260px at 50% 0%, rgba(37,99,235,.16), transparent 70%), linear-gradient(160deg, rgba(8,29,51,.95), rgba(5,19,35,.98)); }
.capacity-iso-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px 10px; }
.capacity-iso-head h2 { margin: 0; color: #f8fbff; font-size: 15px; letter-spacing: .02em; }
.capacity-iso-head p { margin: 3px 0 0; color: #7ea9cc; font-size: 10px; }
.capacity-iso-legend { display: flex; align-items: center; gap: 10px; color: #8fb6d6; font-size: 10px; white-space: nowrap; }
.capacity-iso-stage { position: relative; height: 330px; margin: 0 12px 12px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, rgba(10, 36, 63, .88), rgba(4, 17, 31, .97)); }
.capacity-iso-stage:before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -34%; height: 82%; background-image: linear-gradient(rgba(56,189,248,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.10) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(520px) rotateX(62deg); transform-origin: center bottom; opacity: .72; }
.capacity-iso-stage:after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 102%, rgba(56,189,248,.14), transparent 62%); pointer-events: none; }
.capacity-iso-node { position: absolute; z-index: 2; width: 190px; padding: 12px 13px 11px; transform: translate(-50%, -50%); border: 1px solid #2b5b87; border-radius: 11px; background: linear-gradient(155deg, rgba(18, 52, 84, .96), rgba(7, 27, 48, .98)); box-shadow: 0 18px 24px rgba(0, 4, 12, .36), inset 0 1px 0 rgba(147,197,253,.12); cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; }
.capacity-iso-node:hover { transform: translate(-50%, -54%); border-color: #60a5fa; box-shadow: 0 22px 30px rgba(0, 4, 12, .48), 0 0 0 3px rgba(37,99,235,.12); }
.capacity-iso-node.active { border-color: #60a5fa; box-shadow: 0 18px 24px rgba(0,4,12,.4), 0 0 0 2px rgba(96,165,250,.24), 0 0 24px rgba(37,99,235,.2); }
.capacity-iso-node.hot { border-color: rgba(248,113,113,.7); }
.capacity-iso-node.warn { border-color: rgba(251,191,36,.66); }
.capacity-iso-node:before { content: ""; position: absolute; left: 11px; right: 11px; bottom: -7px; height: 7px; border-radius: 0 0 6px 6px; background: rgba(3, 15, 28, .65); z-index: -1; }
.capacity-iso-node-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.capacity-iso-node-top b { color: #f8fbff; font-size: 13px; }
.capacity-iso-node-top span { color: #7dd3fc; font-size: 9px; padding: 2px 5px; border-radius: 4px; background: rgba(56,189,248,.12); }
.capacity-iso-node-main { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; color: #8eb4d6; font-size: 10px; }
.capacity-iso-node-main b { color: #fff; font-size: 23px; line-height: 1; letter-spacing: -.03em; }
.capacity-iso-node-metrics { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: #7ea9cc; font-size: 9.5px; }
.capacity-iso-node-metrics b { color: #dbeafe; font-weight: 600; }
.capacity-iso-node-progress { height: 5px; margin-top: 6px; border-radius: 4px; overflow: hidden; background: rgba(30, 75, 117, .65); }
.capacity-iso-node-progress span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg,#38bdf8,#3b82f6); }
.capacity-iso-node.hot .capacity-iso-node-progress span { background: linear-gradient(90deg,#fb7185,#ef4444); }
.capacity-iso-node.warn .capacity-iso-node-progress span { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.capacity-iso-node-foot { margin-top: 6px; color: #6f9bc0; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capacity-iso-empty { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; height: 100%; color: #7ea9cc; font-size: 12px; }
@media (max-width: 900px) { .capacity-iso-stage { height: 480px; } .capacity-iso-node { width: 150px; padding: 9px; } .capacity-iso-node-main b { font-size: 18px; } .capacity-iso-legend { display: none; } }

.capacity-iso-grid { position: absolute; z-index: 1; left: 50%; bottom: 8px; width: 720px; height: 240px; transform: translateX(-50%) perspective(520px) rotateX(62deg) rotateZ(-45deg); transform-origin: center bottom; background-image: linear-gradient(rgba(56,189,248,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.18) 1px, transparent 1px); background-size: 42px 42px; border: 1px solid rgba(56,189,248,.18); box-shadow: 0 0 60px rgba(37,99,235,.12); opacity: .72; }
@media (max-width: 900px) { .capacity-iso-grid { width: 470px; height: 190px; background-size: 30px 30px; } }
.capacity-line { margin: 0 12px 12px; padding: 12px 14px 11px; border: 1px solid rgba(59,130,246,.18); border-radius: 10px; background: linear-gradient(180deg, rgba(10,37,64,.78), rgba(5,19,34,.9)); }
.capacity-line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.capacity-line-head > div:first-child b { display: block; color: #eaf5ff; font-size: 12px; }
.capacity-line-head > div:first-child span { display: block; margin-top: 3px; color: #6f9bc0; font-size: 9.5px; }
.capacity-line-switches { display: flex; gap: 5px; flex-wrap: wrap; }
.capacity-line-switch { border: 1px solid #28577f; border-radius: 6px; background: rgba(8,30,52,.8); color: #8fb6d6; font-size: 9.5px; padding: 4px 8px; cursor: pointer; }
.capacity-line-switch:hover { border-color: #60a5fa; color: #dbeafe; }
.capacity-line-switch.active { border-color: #3b82f6; background: rgba(37,99,235,.3); color: #fff; }
.capacity-line-stage { position: relative; display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 150px; margin-top: 10px; padding: 0 8px 8px; background: linear-gradient(180deg, rgba(11,39,66,.2), rgba(3,15,28,.48)); border-radius: 8px; overflow: hidden; }
.capacity-line-belt { position: absolute; left: 7%; right: 7%; bottom: 31px; height: 13px; border-top: 2px solid #1e4b75; border-bottom: 2px solid #123757; background: repeating-linear-gradient(90deg, rgba(56,189,248,.28) 0 14px, rgba(8,30,52,.7) 14px 28px); transform: perspective(220px) rotateX(44deg); transform-origin: center bottom; opacity: .8; animation: capacity-belt 1.4s linear infinite; }
@keyframes capacity-belt { to { background-position: 28px 0; } }
.capacity-line-station { position: relative; z-index: 1; width: 20%; min-width: 68px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.capacity-line-station-top { color: #4f83ad; font-size: 8px; letter-spacing: .12em; }
.capacity-line-machine { width: 48px; height: 36px; margin-top: 2px; border: 1px solid #2d628f; border-radius: 5px 5px 3px 3px; background: linear-gradient(145deg, #163e62, #0a223a); box-shadow: 0 7px 0 #061728, 0 12px 16px rgba(0,0,0,.24); position: relative; transition: .2s; }
.capacity-line-machine span { position: absolute; left: 7px; right: 7px; top: 6px; height: 7px; border-radius: 2px; background: #38bdf8; box-shadow: 0 0 8px rgba(56,189,248,.7); }
.capacity-line-station b { color: #cfe6f8; font-size: 10px; font-weight: 600; }
.capacity-line-station small { color: #6f9bc0; font-size: 8.5px; }
.capacity-line-station.running .capacity-line-machine { border-color: #38bdf8; }
.capacity-line-station.running .capacity-line-machine span { background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,.8); animation: capacity-machine 1.8s ease-in-out infinite; }
.capacity-line-station.running b { color: #dff7ff; }
.capacity-line-station.idle { opacity: .55; }
.capacity-line-foot { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 7px; color: #6f9bc0; font-size: 9.5px; }
.capacity-line-foot b { color: #dbeafe; }
@keyframes capacity-machine { 50% { opacity: .45; } }
@media (max-width: 900px) { .capacity-line { margin: 0 8px 8px; padding: 10px; } .capacity-line-stage { height: 128px; } .capacity-line-machine { width: 38px; height: 30px; } .capacity-line-switch { font-size: 9px; padding: 3px 6px; } }
.capacity-iso-stage-lines { height: 500px; padding: 12px 14px 14px; }
.capacity-iso-lines { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 11px; height: 100%; }
.capacity-iso-line { appearance: none; text-align: left; border: 1px solid #2b5b87; border-radius: 10px; padding: 10px 12px 9px; background: linear-gradient(155deg, rgba(18,52,84,.96), rgba(7,27,48,.98)); box-shadow: 0 14px 20px rgba(0,4,12,.3), inset 0 1px 0 rgba(147,197,253,.1); cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; position: relative; overflow: hidden; }
.capacity-iso-line:hover { border-color: #60a5fa; transform: translateY(-2px); box-shadow: 0 18px 26px rgba(0,4,12,.4), 0 0 0 3px rgba(37,99,235,.1); }
.capacity-iso-line.active { border-color: #60a5fa; box-shadow: 0 0 0 2px rgba(96,165,250,.24), 0 14px 20px rgba(0,4,12,.35); }
.capacity-iso-line.hot { border-color: rgba(248,113,113,.65); }
.capacity-iso-line.warn { border-color: rgba(251,191,36,.58); }
.capacity-iso-line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.capacity-iso-line-head b { display: block; color: #f8fbff; font-size: 12.5px; }
.capacity-iso-line-head span { display: block; color: #6f9bc0; font-size: 8.5px; margin-top: 2px; }
.capacity-iso-line-head em { font-style: normal; color: #7dd3fc; background: rgba(56,189,248,.12); border-radius: 4px; padding: 2px 5px; font-size: 8px; white-space: nowrap; }
.capacity-iso-line.hot .capacity-iso-line-head em { color: #fecaca; background: rgba(239,68,68,.15); }
.capacity-iso-line.warn .capacity-iso-line-head em { color: #fde68a; background: rgba(245,158,11,.14); }
.capacity-iso-line-stage { position: relative; display: flex; align-items: center; justify-content: space-around; gap: 3px; height: 78px; margin-top: 5px; }
.capacity-iso-line-belt { position: absolute; left: 7%; right: 7%; top: 42px; height: 8px; border-top: 1px solid #2d628f; border-bottom: 1px solid #123757; background: repeating-linear-gradient(90deg, rgba(56,189,248,.22) 0 10px, rgba(6,24,42,.6) 10px 20px); transform: skewX(-18deg); animation: capacity-belt 1.4s linear infinite; opacity: .8; }
.capacity-iso-machine { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 23%; }
.capacity-iso-machine small { color: #4f83ad; font-size: 7px; line-height: 1; }
.machine-pod { width: 34px; height: 25px; border: 1px solid #2d628f; border-radius: 4px 4px 2px 2px; background: linear-gradient(145deg, #163e62, #0a223a); box-shadow: 0 5px 0 #061728, 0 8px 10px rgba(0,0,0,.25); display: flex; justify-content: center; align-items: flex-start; padding-top: 5px; }
.machine-pod i { display: block; width: 18px; height: 4px; border-radius: 2px; background: #38bdf8; opacity: .8; }
.capacity-iso-machine b { color: #cfe6f8; font-size: 8.5px; font-weight: 600; line-height: 1; }
.capacity-iso-machine span { color: #6f9bc0; font-size: 7.5px; line-height: 1; }
.capacity-iso-machine.running .machine-pod { border-color: #38bdf8; }
.capacity-iso-machine.running .machine-pod i { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.8); animation: capacity-machine 1.8s ease-in-out infinite; }
.capacity-iso-machine.running b { color: #e6f8ff; }
.capacity-iso-machine.idle { opacity: .48; }
.capacity-iso-line-foot { display: flex; gap: 9px; flex-wrap: wrap; border-top: 1px solid rgba(59,130,246,.14); margin-top: 3px; padding-top: 5px; color: #6f9bc0; font-size: 8.5px; }
.capacity-iso-line-foot b { color: #dbeafe; font-weight: 600; }
@media (max-width: 900px) {
  .capacity-iso-stage-lines { height: 760px; }
  .capacity-iso-lines { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); gap: 8px; }
  .capacity-iso-line-stage { height: 62px; }
  .capacity-iso-line-belt { top: 33px; }
  .machine-pod { width: 28px; height: 21px; }
  .capacity-iso-line-foot { gap: 6px; font-size: 8px; }
}
.capacity-3d-shell { margin-bottom: 18px; border: 1px solid #1b4167; border-radius: 14px; overflow: hidden; background: radial-gradient(700px 280px at 50% 0%, rgba(37,99,235,.17), transparent 70%), linear-gradient(160deg, rgba(8,29,51,.95), rgba(5,19,35,.98)); }
.capacity-3d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 18px 8px; }
.capacity-3d-head h2 { margin: 0; color: #f8fbff; font-size: 15px; letter-spacing: .02em; }
.capacity-3d-head p { margin: 3px 0 0; color: #7ea9cc; font-size: 10px; }
.capacity-3d-reset { border: 1px solid #2b5b87; border-radius: 6px; background: rgba(8,30,52,.8); color: #93c5fd; font-size: 10px; padding: 6px 9px; cursor: pointer; white-space: nowrap; }
.capacity-3d-reset:hover { border-color: #60a5fa; color: #fff; }
.capacity-3d-root { position: relative; height: 500px; margin: 0 12px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #0d3153 0, #061524 55%, #040d18 100%); }
.capacity-3d-root canvas { display: block; width: 100%; height: 100%; }
.capacity-3d-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #7ea9cc; font-size: 11px; }
.capacity-3d-tip { padding: 7px 18px 10px; color: #5f89ad; font-size: 9.5px; }
.capacity-3d-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fca5a5; font-size: 12px; text-align: center; padding: 30px; }
@media (max-width: 900px) { .capacity-3d-root { height: 380px; margin: 0 8px; } .capacity-3d-head { padding: 11px 10px 6px; } .capacity-3d-tip { padding: 6px 10px 9px; } }
.capacity-3d-lines-legend { position: absolute; z-index: 5; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; max-width: 210px; }
.capacity-3d-lines-legend button { display: flex; align-items: center; gap: 7px; width: 100%; padding: 5px 7px; border: 1px solid rgba(43,91,135,.7); border-radius: 5px; background: rgba(4,19,35,.82); color: #a8c9e2; font-size: 9.5px; text-align: left; cursor: pointer; backdrop-filter: blur(3px); }
.capacity-3d-lines-legend button:hover { border-color: #60a5fa; color: #fff; }
.capacity-3d-lines-legend button.active { border-color: #60a5fa; background: rgba(18,64,102,.9); color: #fff; }
.capacity-3d-lines-legend i { display: block; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; box-shadow: 0 0 7px currentColor; }
.capacity-3d-lines-legend span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capacity-3d-lines-legend b { color: #dff6ff; font-size: 9px; font-weight: 600; }
@media (max-width: 900px) { .capacity-3d-lines-legend { top: 8px; left: 8px; max-width: 170px; } .capacity-3d-lines-legend button { font-size: 8.5px; padding: 4px 5px; } }

.capacity-3d-root { background-image: linear-gradient(rgba(56,189,248,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.09) 1px, transparent 1px), radial-gradient(ellipse at 50% 45%, #0b2a47 0, #051626 55%, #030c16 100%); background-size: 34px 34px, 34px 34px, 100% 100%; }
.capacity-3d-callouts { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.capacity-3d-callouts path { filter: drop-shadow(0 0 3px rgba(56,189,248,.35)); }
.capacity-3d-head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.capacity-3d-brand { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid rgba(59,130,246,.22); border-radius: 7px; background: rgba(4,19,35,.55); }
.capacity-3d-brand img { width: 32px; height: 32px; object-fit: contain; display: block; }
.capacity-3d-brand span { max-width: 150px; color: #9fc3e3; font-size: 9px; line-height: 1.35; }
@media (max-width: 700px) { .capacity-3d-brand span { display: none; } .capacity-3d-brand { padding: 3px; } .capacity-3d-brand img { width: 27px; height: 27px; } }
