* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; color: #1f2937; background: #f4f6f8; }
button, input, select { font: inherit; }
button { border: 0; background: #1677ff; color: white; padding: 10px 14px; border-radius: 6px; cursor: pointer; }
button:hover { background: #0958d9; }
button.ghost { background: #eef2f7; color: #344054; }
button.success { background: #16a34a; color: white; }
button.success:hover { background: #15803d; }
button.muted-action { background: #eef2f7; color: #98a2b3; cursor: pointer; }
button.muted-action:hover { background: #e4e7ec; color: #667085; }
button.danger { background: #fff1f0; color: #b42318; }
button.danger:hover { background: #ffd6d2; color: #912018; }
button.inline-link { background: transparent; color: #1677ff; padding: 0; border-radius: 0; font-weight: 700; }
button.inline-link:hover { background: transparent; color: #0958d9; text-decoration: underline; }
input, select { width: 100%; border: 1px solid #d0d5dd; border-radius: 6px; padding: 9px 10px; background: white; }
input[readonly] { background: #f8fafc; color: #475467; cursor: not-allowed; }
input[type="date"][readonly] { pointer-events: none; }
label { display: grid; gap: 6px; color: #475467; font-size: 13px; }
.input-with-button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.input-with-button button { white-space: nowrap; padding: 9px 12px; }
.supplier-cell { min-width: 220px; }
.hidden { display: none !important; }
.login { min-height: 100vh; display: grid; place-items: center; background: #e9eef5; }
.login-panel { width: min(380px, calc(100vw - 32px)); display: grid; gap: 16px; background: white; padding: 28px; border: 1px solid #d9e0ea; border-radius: 8px; box-shadow: 0 12px 30px rgba(16,24,40,.08); }
.login-panel h1 { margin: 0 0 8px; font-size: 24px; }
.login-panel p { min-height: 20px; margin: 0; color: #d92d20; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 118px 1fr; }
aside { background: #162033; color: white; padding: 14px 10px; position: relative; z-index: 30; overflow: visible; }
.brand { font-size: 18px; font-weight: 700; padding: 8px 8px 18px; line-height: 1.25; }
.nav, .module-nav { width: 100%; text-align: left; background: transparent; color: #d0d5dd; margin: 3px 0; }
.work-order-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #f04438; color: white; font-size: 12px; font-weight: 700; }
.nav:hover, .nav.active, .module-nav:hover, .module-nav.active, .nav-group.open > .module-nav { background: #263752; color: white; }
.nav-group { position: relative; }
.module-nav { display: flex; align-items: center; justify-content: space-between; }
.module-nav::after { content: "›"; color: #98a2b3; font-size: 18px; line-height: 1; }
.module-flyout { display: none; position: absolute; left: 100%; top: 0; width: min(560px, calc(100vw - 140px)); background: white; color: #1f2937; border: 1px solid #e4e7ec; border-radius: 8px; box-shadow: 0 18px 42px rgba(16,24,40,.18); padding: 14px; z-index: 60; }
.module-flyout.wide { width: min(720px, calc(100vw - 140px)); }
.module-flyout::before { content: ""; position: absolute; left: -10px; top: 0; width: 10px; height: 100%; }
.nav-group:hover .module-flyout, .nav-group.open .module-flyout { display: block; }
.flyout-tabs { display: flex; gap: 22px; align-items: center; border-bottom: 1px solid #e4e7ec; margin-bottom: 12px; padding-bottom: 9px; color: #667085; font-size: 13px; }
.flyout-tabs span.active { color: #1677ff; font-weight: 700; }
.flyout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.module-flyout.wide .flyout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flyout-section { min-width: 0; }
.flyout-section h4 { margin: 0 0 7px; color: #667085; font-size: 13px; font-weight: 700; }
.module-link { color: #344054; padding: 8px 10px; border-radius: 6px; }
.module-link:hover, .module-link.active { background: #eef6ff; color: #1677ff; }
main { min-width: 0; }
header { height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; background: white; border-bottom: 1px solid #e4e7ec; gap: 16px; }
h2 { margin: 0; font-size: 22px; }
header p { margin: 5px 0 0; color: #667085; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-menu { position: relative; }
.user-chip { background: #f8fafc; color: #344054; border: 1px solid #d0d5dd; white-space: nowrap; font-weight: 700; }
.user-chip:hover { background: #eef6ff; color: #1677ff; border-color: #91caff; }
.user-chip::after { content: "⌄"; margin-left: 8px; color: #667085; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 160px; background: white; border: 1px solid #e4e7ec; border-radius: 8px; box-shadow: 0 12px 28px rgba(16,24,40,.14); padding: 6px; z-index: 80; }
.user-menu-panel button { width: 100%; text-align: left; background: transparent; color: #344054; padding: 9px 10px; }
.user-menu-panel button:hover { background: #eef6ff; color: #1677ff; }
.user-menu-panel button.ghost { background: transparent; color: #b42318; }
.user-menu-panel button.ghost:hover { background: #fff1f0; color: #912018; }
.top-search { width: min(380px, 38vw); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e4e7ec; border-radius: 7px; padding: 4px 8px; }
.top-search span { color: #344054; font-weight: 700; white-space: nowrap; }
.top-search input { border: 0; background: transparent; padding: 6px; }
.top-search input:focus { outline: 0; }
.page { padding: 22px 24px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.dash-main { min-width: 0; display: grid; gap: 14px; }
.dash-side { background: transparent; color: #1f2937; padding: 0; display: grid; gap: 12px; align-content: start; }
.dash-tabs { display: flex; gap: 18px; font-weight: 700; }
.dash-tabs button { background: transparent; color: #344054; padding: 4px 0; border-radius: 0; }
.dash-tabs button.active { color: #1677ff; border-bottom: 2px solid #1677ff; }
.quick-actions { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; }
.quick-actions button { background: white; color: #344054; border: 1px solid #dbe7f6; min-height: 46px; text-align: left; font-weight: 700; box-shadow: 0 4px 12px rgba(16,24,40,.04); }
.quick-actions button:hover { background: #eef6ff; color: #1677ff; border-color: #91caff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; }
.metrics div { background: white; border: 1px solid #e4e7ec; border-radius: 8px; padding: 18px; position: relative; overflow: hidden; }
.metrics div::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: #4096ff; }
.metrics strong { display: block; font-size: 24px; margin-bottom: 8px; }
.metrics span { color: #667085; }
.panel, .side-card, .asset-card { background: white; border: 1px solid #e4e7ec; border-radius: 8px; padding: 16px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-title h3, .side-card h3, .asset-card h3 { margin: 0; font-size: 16px; }
.panel-title span { color: #667085; font-size: 13px; }
.trace-result {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.trace-result div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.trace-result b { color: #1d4ed8; }
.trace-result span { color: #475569; }
.trace-panel { margin-top: 14px; box-shadow: none; border: 1px solid #e5e7eb; }
.trend-chart { height: 270px; display: flex; align-items: end; gap: 28px; border-top: 1px solid #eef2f6; border-bottom: 1px solid #d0d5dd; padding: 22px 26px 0; overflow-x: auto; background: linear-gradient(#fff, #fff), repeating-linear-gradient(to bottom, transparent 0 49px, #eef2f6 50px); background-blend-mode: normal; }
.trend-item { min-width: 76px; height: 100%; display: grid; align-content: end; justify-items: center; gap: 6px; color: #667085; font-size: 12px; }
.trend-bar { width: 24px; min-height: 4px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #69b1ff, #1677ff); box-shadow: 0 6px 14px rgba(22,119,255,.18); }
.trend-amount { color: #344054; font-weight: 700; }
.asset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.asset-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; align-items: center; min-height: 190px; }
.asset-card h3 { grid-column: 1 / -1; }
.asset-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.asset-card dt { color: #667085; }
.asset-card dd { margin: 0; font-weight: 700; }
.asset-card .mini-table { border: 0; max-height: 140px; }
.asset-card .mini-table th, .asset-card .mini-table td { padding: 7px 8px; }
.customer-metrics { margin-bottom: 12px; }
.donut { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(#4096ff calc(var(--a) * 1%), #45d6c8 0); position: relative; justify-self: center; }
.donut::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: white; }
.donut.green { background: conic-gradient(#3ccbbb calc(var(--a) * 1%), #f7b955 0); }
.donut.purple { background: conic-gradient(#9254de calc(var(--a) * 1%), #ff6b7a 0); }
.side-card ol { margin: 10px 0 0; padding-left: 24px; display: grid; gap: 10px; }
.side-card li { color: #344054; }
.side-card li span { float: right; font-weight: 700; color: #101828; }
.side-card p { margin: 10px 0; color: #475467; }
.side-card b { color: #1677ff; }
.side-card.muted { background: #f8fafc; }
.flow-tabs { display: flex; gap: 22px; border-bottom: 1px solid #e4e7ec; margin-bottom: 22px; }
.flow-tabs button { background: transparent; color: #344054; border-radius: 0; padding: 0 0 10px; }
.flow-tabs button.active { color: #1677ff; border-bottom: 2px solid #1677ff; }
.report-tabs { display: flex; gap: 18px; border-bottom: 1px solid #e4e7ec; margin-bottom: 14px; }
.report-tabs button { background: transparent; color: #344054; border-radius: 0; padding: 0 0 10px; }
.report-tabs button.active { color: #1677ff; border-bottom: 2px solid #1677ff; }
.flow-board { min-height: 620px; display: grid; place-items: center; background: white; border: 1px solid #eef2f6; border-radius: 8px; overflow: auto; }
.flow-canvas { position: relative; width: min(980px, 100%); min-height: 420px; padding: 34px; }
.flow-group { position: absolute; background: #eaf4ff; border-radius: 8px; border: 1px solid #d8ebff; }
.flow-group.primary { background: #f3edff; border-style: dashed; border-color: #dbc7ff; }
.flow-group-label { position: absolute; top: -13px; left: 0; background: #1d9bf0; color: white; padding: 3px 10px; border-radius: 3px; font-size: 12px; }
.flow-node { position: absolute; width: 132px; min-height: 58px; border: 0; background: white; color: #1f2937; border-radius: 7px; box-shadow: 0 8px 18px rgba(16,24,40,.12); display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 9px 10px; text-align: left; cursor: pointer; }
.flow-node:hover { outline: 2px solid #91caff; }
.flow-node.todo { opacity: .72; cursor: not-allowed; }
.flow-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: white; font-weight: 700; }
.flow-node strong { display: block; font-size: 14px; }
.flow-node span { display: block; color: #667085; font-size: 12px; margin-top: 3px; }
.flow-line { position: absolute; height: 2px; background: #5aa7ff; transform-origin: left center; }
.flow-line.dashed { background: repeating-linear-gradient(to right, #5aa7ff 0 6px, transparent 6px 10px); }
.flow-line::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid #5aa7ff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-note { position: absolute; color: #5b7ea8; font-size: 12px; background: white; padding: 1px 5px; }
.flow-legend { position: absolute; right: 18px; top: 14px; display: flex; gap: 14px; color: #475467; font-size: 12px; }
.legend-dot { width: 12px; height: 12px; display: inline-block; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.toolbar { display: grid; grid-template-columns: 1fr 1.3fr .8fr .8fr 1.2fr auto; gap: 10px; margin-bottom: 14px; }
.customer-toolbar { grid-template-columns: 1fr 1fr 2fr auto; }
.supplier-toolbar { grid-template-columns: 1fr 1fr 1fr 1.4fr 1.4fr auto; }
.user-toolbar { grid-template-columns: 1fr 1fr 180px auto; }
.work-order-form { grid-template-columns: 220px 1fr 1.4fr 220px auto; }
.filter-bar { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.filter-bar input { flex: 1; }
.stats-filter input { max-width: 220px; flex: 0 0 220px; }
.stats-filter select { max-width: 140px; }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 14px 0; }
.stats-grid .panel { min-width: 0; }
.step-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; margin: 0 0 12px; }
.step-card { min-height: 82px; background: white; color: #344054; border: 1px solid #e4e7ec; border-radius: 8px; text-align: left; padding: 9px 10px; display: grid; gap: 6px; box-shadow: 0 4px 12px rgba(16,24,40,.04); }
.step-card:hover { background: #eef6ff; border-color: #91caff; color: #1677ff; }
.step-card.active { background: #1677ff; color: white; border-color: #1677ff; }
.step-card span { font-weight: 700; }
.step-card strong { font-size: 24px; line-height: 1; }
.step-card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.step-card-title b { font-size: 13px; color: #667085; }
.step-card.active .step-card-title b { color: rgba(255,255,255,.82); }
.step-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; font-size: 11px; color: #667085; }
.step-card-grid em { display: block; font-style: normal; color: inherit; }
.step-card-grid b { display: block; margin-top: 1px; font-size: 14px; color: #101828; }
.step-card.active .step-card-grid { color: rgba(255,255,255,.78); }
.step-card.active .step-card-grid b { color: white; }
.dispatch-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin: 8px 0 10px;
  background: #fff;
  border: 1px solid #d9e8ff;
  border-radius: 8px;
}
.dispatch-filter-bar span {
  font-weight: 700;
  color: #1d2939;
  margin-right: 4px;
}
.dispatch-filter-bar button {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  padding: 6px 12px;
  border-radius: 999px;
}
.dispatch-filter-bar button.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}
.batch-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 0 12px; padding: 10px 12px; background: #f8fbff; border: 1px solid #d6e8ff; border-radius: 8px; }
.batch-bar span { color: #475467; font-weight: 700; }
.scan-layout { display: grid; gap: 14px; }
.scan-card, .scan-order { background: white; border: 1px solid #e4e7ec; border-radius: 8px; padding: 18px; }
.scan-card h3, .scan-order h3 { margin: 0 0 8px; font-size: 18px; }
.scan-card p { margin: 0 0 14px; color: #667085; }
.scan-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 10px; }
.scan-search input { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.scan-status { margin-top: 10px; font-weight: 700; }
.scan-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.scan-head p { margin: 0; color: #667085; }
.scan-step { display: grid; justify-items: end; gap: 6px; }
.scan-step small { color: #667085; font-weight: 700; }
.scan-meta { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px 16px; color: #475467; }
.scan-meta b { color: #b42318; margin-left: 6px; }
.scan-warning { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: #fff7e6; color: #ad4e00; font-weight: 700; }
.scan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.scan-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.detail-link { display: inline-block; margin-right: 8px; white-space: nowrap; }
.detail-summary { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; color: #667085; }
.production-bill { display: block; color: #344054; overflow-wrap: anywhere; }
.production-order-meta, .production-last-meta { margin-top: 4px; color: #667085; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.production-path-cell, .production-step-cell { line-height: 1.45; overflow-wrap: anywhere; }
.production-path-cell .tag-row, .production-path-cell > div { margin-top: 4px; }
.production-step-cell .danger-text { margin-top: 5px; white-space: normal; overflow-wrap: anywhere; }
.outsourcing-origin-badge { display: grid; gap: 1px; margin-top: 6px; padding: 6px 8px; border: 1px solid #b692f6; border-radius: 6px; background: #f4f0ff; font-size: 12px; line-height: 1.35; }
.outsourcing-origin-badge span { color: #6941c6; font-size: 11px; font-weight: 700; }
.outsourcing-origin-badge strong { color: #5925dc; }
.outsourcing-origin-badge small { color: #667085; font-size: 11px; }
.outsourcing-flow-line { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding: 5px 7px; border-left: 3px solid #7f56d9; background: #f9f5ff; color: #6941c6; font-size: 12px; line-height: 1.35; }
.outsourcing-flow-line strong { color: #5925dc; }
.internal-origin-badge { display: grid; gap: 1px; margin-top: 6px; padding: 6px 8px; border: 1px solid #84adff; border-radius: 6px; background: #eff8ff; font-size: 12px; line-height: 1.35; }
.internal-origin-badge span { color: #175cd3; font-size: 11px; font-weight: 700; }
.internal-origin-badge strong { color: #1849a9; }
.internal-origin-route { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; padding: 5px 7px; border-left: 3px solid #2e90fa; background: #eff8ff; color: #175cd3; font-size: 12px; line-height: 1.35; }
.internal-origin-route strong { color: #1849a9; }
.departed-branch-badge { display: grid; gap: 1px; margin-top: 6px; padding: 6px 8px; border: 1px solid #fec84b; border-radius: 6px; background: #fffaeb; font-size: 12px; line-height: 1.35; }
.departed-branch-badge span { color: #b54708; font-size: 11px; font-weight: 700; }
.departed-branch-badge strong { color: #93370d; }
.departed-branch-route { display: grid; gap: 2px; margin-top: 6px; padding: 5px 7px; border-left: 3px solid #f79009; background: #fffaeb; font-size: 12px; line-height: 1.35; }
.departed-branch-route span { color: #b54708; font-size: 11px; font-weight: 700; }
.departed-branch-route strong { color: #93370d; }
.production-detail-cell .detail-link { display: block; margin: 0 0 4px; }
.production-detail-cell .detail-summary { display: -webkit-box; max-width: 100%; white-space: normal; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.production-detail-cell .status-pill { margin-top: 5px; white-space: normal; }
.production-detail-cell .muted-text, .production-detail-cell .partial-alert, .production-detail-cell .partial-hint, .production-detail-cell .danger-text { white-space: normal; overflow-wrap: anywhere; }
.quality-rework-badge { display: grid; gap: 2px; margin-top: 6px; padding: 6px 8px; border: 1px solid #f04438; border-radius: 6px; background: #fff1f0; color: #b42318; font-size: 12px; line-height: 1.35; }
.quality-rework-badge strong { color: #b42318; }
.quality-rework-badge span { display: block; overflow-wrap: anywhere; }
.source-branch-card { display: grid; gap: 3px; margin-top: 6px; padding: 7px 9px; border-radius: 7px; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.outsourcing-return-branch { border: 1px solid #b692f6; background: #f4f0ff; color: #5925dc; }
.source-branch-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.source-branch-title strong { color: #5925dc; }
.source-branch-title > span { flex: 0 0 auto; font-weight: 800; }
.source-branch-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.source-branch-tags span { padding: 1px 6px; border-radius: 999px; background: #e9d7fe; color: #5925dc; font-weight: 700; }
.source-branch-path { color: #6941c6; font-weight: 700; }
.source-branch-destination { color: #475467; }
.quality-rework-reason { margin-top: 3px; color: #b42318; font-size: 12px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
.production-date-line { line-height: 1.5; white-space: nowrap; }
.production-last-action { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.production-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.production-actions:empty { display: none; }
.production-actions button, .production-more button { width: 100%; min-height: 34px; padding: 8px 7px; white-space: normal; line-height: 1.25; font-size: 12px; }
.production-more { margin-top: 5px; position: relative; }
.production-more summary { cursor: pointer; color: #1677ff; font-size: 12px; font-weight: 700; list-style-position: inside; }
.production-more > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 5px; }
#production .table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
#productionTable { width: 100%; table-layout: fixed; }
#productionTable th, #productionTable td { padding: 9px 8px; white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
#productionTable th:nth-child(1), #productionTable td:nth-child(1) { width: 3%; text-align: center; }
#productionTable th:nth-child(2), #productionTable td:nth-child(2) { width: 12%; }
#productionTable th:nth-child(3), #productionTable td:nth-child(3) { width: 11%; }
#productionTable th:nth-child(4), #productionTable td:nth-child(4) { width: 14%; }
#productionTable th:nth-child(5), #productionTable td:nth-child(5) { width: 20%; }
#productionTable th:nth-child(6), #productionTable td:nth-child(6) { width: 7%; }
#productionTable th:nth-child(7), #productionTable td:nth-child(7) { width: 9%; }
#productionTable th:nth-child(8), #productionTable td:nth-child(8) { width: 12%; }
#productionTable th:nth-child(9), #productionTable td:nth-child(9) { width: 12%; }
.dialog-detail { padding: 18px; background: white; }
.sale-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.sale-detail-head h3 { margin: 0 0 6px; font-size: 20px; }
.sale-detail-head p { margin: 0; color: #667085; }
.sale-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px 16px; margin-bottom: 14px; color: #475467; }
.sale-detail-meta .wide { grid-column: span 3; }
.detail-table { max-height: 52vh; }
.sale-detail-total { display: flex; justify-content: flex-end; gap: 24px; margin-top: 12px; font-weight: 700; }
.export-btn { white-space: nowrap; }
.low-stock-tools { display: flex; align-items: end; gap: 10px; }
.low-stock-tools label { width: 180px; }
.sales-filter { display: grid; grid-template-columns: 1.4fr 180px 160px 160px auto auto auto; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; background: white; padding: 18px; border: 1px solid #e4e7ec; border-radius: 8px; align-items: end; }
.compact-form { grid-template-columns: repeat(3, minmax(180px, 1fr)); margin-bottom: 12px; }
.account-card { display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; gap: 18px; background: white; border: 1px solid #e4e7ec; border-radius: 8px; padding: 18px; margin-bottom: 12px; }
.account-card h3 { margin: 0 0 8px; font-size: 18px; }
.account-card p { margin: 0; color: #667085; }
.account-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; margin: 0; align-content: center; }
.account-card dt { color: #667085; }
.account-card dd { margin: 0; font-weight: 700; }
.check-label { min-height: 38px; display: inline-flex; align-items: center; justify-self: start; align-self: end; gap: 8px; width: auto; max-width: 260px; padding: 9px 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: white; color: #344054; font-weight: 600; }
.check-label input { width: auto; margin: 0; padding: 0; flex: 0 0 auto; }
.check-label span { white-space: nowrap; line-height: 1.2; }
.process-options { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; background: #f8fbff; border: 1px solid #cfe2ff; border-radius: 8px; padding: 8px 10px; box-shadow: inset 3px 0 0 #1677ff; }
.process-head { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 0; border-right: 1px solid #dbeafe; }
.process-head strong { display: block; color: #101828; font-size: 15px; white-space: nowrap; }
.process-head span, .process-head em { display: none; }
.process-group { display: flex; align-items: center; gap: 6px; }
.process-group-title { color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; margin-left: 2px; }
.process-options label { position: relative; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d0d5dd; border-radius: 999px; background: white; color: #344054; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; transition: .15s ease; padding: 0 10px; }
.process-options label:hover { border-color: #91caff; background: #eef6ff; color: #1677ff; }
.process-options label input { position: absolute; opacity: 0; pointer-events: none; }
.process-options label span { line-height: 1.2; }
.process-options label:has(input:checked) { border-color: #1677ff; background: #1677ff; color: white; box-shadow: 0 3px 10px rgba(22,119,255,.16); }
.process-options label:has(input:checked)::before { content: "✓"; font-weight: 900; flex: 0 0 auto; }
.process-group.external label:has(input:checked) { background: #7a5af8; border-color: #7a5af8; box-shadow: 0 3px 10px rgba(122,90,248,.14); }
.process-group.finish label:has(input:checked) { background: #12b76a; border-color: #12b76a; box-shadow: 0 3px 10px rgba(18,183,106,.14); }
.process-reset { margin-left: auto; min-height: 32px; padding: 0 12px; }
.table-wrap, .sale-box { background: white; border: 1px solid #e4e7ec; border-radius: 8px; overflow: auto; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 0 2px; color: #475467; }
.pager label { display: flex; grid-template-columns: none; align-items: center; gap: 6px; }
.pager select { width: auto; min-width: 86px; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
button:disabled { opacity: .45; cursor: not-allowed; }
.bulk-box { background: white; border: 1px solid #e4e7ec; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.bulk-box summary { cursor: pointer; font-weight: 700; }
.bulk-box textarea { width: 100%; min-height: 150px; margin-top: 12px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 10px; resize: vertical; }
.bulk-actions, .dialog-actions, .form-actions { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }
.form-actions button { min-width: 180px; }
.draft-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #fedf89; background: #fffbeb; border-radius: 8px; color: #7a2e0e; }
.draft-bar strong { display: block; color: #101828; margin-bottom: 3px; }
.draft-bar span { color: #7a2e0e; }
.draft-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eef2f6; text-align: left; white-space: nowrap; }
th { background: #f8fafc; color: #475467; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; background: #eef2f7; color: #344054; font-size: 12px; font-weight: 700; }
.status-pill.pending { background: #fff1f0; color: #d92d20; }
.status-pill.received { background: #fff7e6; color: #b54708; }
.status-pill.processing { background: #e6f4ff; color: #0958d9; }
.status-pill.producing { background: #fff7e6; color: #b54708; }
.status-pill.shipped { background: #eef2f7; color: #344054; }
.status-pill.created { background: #f2f4f7; color: #344054; }
.status-pill.workshop, .status-pill.cutting { background: #e6f4ff; color: #0958d9; }
.status-pill.lathe, .status-pill.milling, .status-pill.outsourcing { background: #f9f0ff; color: #722ed1; }
.status-pill.external_wait_out, .status-pill.external_out, .status-pill.external_returned { background: #fff7e6; color: #b54708; }
.status-pill.inspection { background: #ecfdf3; color: #027a48; }
.status-pill.packing { background: #fff1f0; color: #d92d20; }
.status-pill.completed, .status-pill.done { background: #ecfdf3; color: #027a48; }
.delivery-date { font-weight: 700; }
.delivery-tag { display: inline-flex; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2f7; color: #344054; }
tr.delivery-overdue { background: #fff1f0; }
tr.delivery-overdue .delivery-tag { background: #ffd6d2; color: #b42318; }
tr.delivery-today { background: #fff7e6; }
tr.delivery-today .delivery-tag { background: #ffe7ba; color: #ad4e00; }
tr.delivery-soon { background: #fffbea; }
tr.delivery-soon .delivery-tag { background: #fef0c7; color: #b54708; }
tr.production-partial-row { background: #eef6ff; box-shadow: inset 4px 0 0 #1677ff; }
tr.production-partial-row .delivery-tag { background: #d6e8ff; color: #0958d9; }
.partial-hint { color: #0958d9; font-size: 12px; font-weight: 700; margin-top: 4px; }
.row-done { color: #667085; background: #fcfcfd; }
.countdown { color: #0958d9; font-weight: 700; }
.countdown.overdue { color: #d92d20; }
.muted-text { color: #667085; }
.danger-text { color: #b42318; font-weight: 700; margin-top: 4px; }
.partial-alert { color: #0958d9; font-weight: 700; margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mini-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 7px; background: #eef6ff; color: #0958d9; font-size: 12px; font-weight: 700; }
.mini-tag.danger-tag { background: #fff1f0; color: #b42318; }
.mini-tag.muted-tag { background: #f2f4f7; color: #475467; }
.mini-tag.material-tag { background: #fff7e6; color: #b54708; }
.sale-box { padding: 18px; display: grid; gap: 14px; }
.sale-summary { background: #f8fafc; border: 1px solid #e4e7ec; border-radius: 6px; padding: 10px 12px; color: #475467; font-weight: 700; text-align: right; }
.sale-summary b { color: #101828; }
.sale-order-bar { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(160px, .7fr) minmax(220px, 1fr); gap: 10px; align-items: end; }
.sale-order-bar label { min-width: 0; color: #344054; font-weight: 700; }
.line-editor { display: grid; grid-template-columns: minmax(250px, 1.55fr) minmax(110px, .7fr) minmax(130px, .85fr) minmax(140px, .9fr) minmax(75px, .5fr) minmax(85px, .55fr) minmax(150px, .95fr) minmax(140px, .9fr) minmax(140px, .85fr) auto; gap: 10px; align-items: end; }
.line-editor label { min-width: 0; color: #344054; font-weight: 700; }
.line-editor button { align-self: end; min-width: 76px; }
.product-pick-field { position: relative; display: block; }
.product-pick-field input { padding-right: 76px; }
.product-pick-field button { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 64px; padding: 0 10px; border-radius: 5px; }
.product-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 120; max-height: 280px; overflow: auto; background: white; border: 1px solid #91caff; border-radius: 7px; box-shadow: 0 12px 28px rgba(16,24,40,.16); padding: 4px; }
.product-suggest-item { position: static !important; width: 100%; min-width: 0 !important; min-height: 38px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px !important; border-radius: 5px !important; background: white !important; color: #344054 !important; text-align: left; }
.product-suggest-item:hover { background: #eef6ff !important; color: #1677ff !important; }
.product-suggest-item strong { color: #101828; }
.product-suggest-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-suggest-item em { color: #667085; font-style: normal; white-space: nowrap; }
.product-suggest-empty { padding: 10px; color: #667085; font-size: 13px; }
.picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.picker-head h3 { margin: 0 0 4px; font-size: 20px; }
.picker-head p { margin: 0; color: #667085; }
.picker-search { display: grid; grid-template-columns: minmax(240px, 1fr) 92px; gap: 10px; margin-bottom: 12px; }
.picker-table { max-height: 58vh; }
#toast { position: fixed; right: 22px; bottom: 22px; background: #101828; color: white; padding: 12px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 420px; }
#toast.show { opacity: 1; }
dialog { width: min(1080px, calc(100vw - 32px)); border: 0; border-radius: 8px; padding: 0; }
dialog::backdrop { background: rgba(16,24,40,.45); }
#outsourcingDialog,
#afterSaleDialog,
#inspectionDialog,
#completionDialog,
#saleDetailDialog {
  width: min(1400px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}
#printArea { padding: 24px; background: white; }
.print-settings { display: grid; grid-template-columns: 1.4fr 1fr 120px auto; gap: 10px; padding: 12px 16px 0; background: white; border-top: 1px solid #eef2f6; align-items: end; }
.print-settings label { color: #344054; font-weight: 700; }
.print-settings button { align-self: end; }
.print-column-settings { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 6px; background: #f8fafc; }
.print-column-settings.hidden { display: none; }
.print-column-settings strong { margin-right: 6px; color: #101828; }
.print-column-settings label { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.print-column-settings input { width: auto; }
.print-driver-hint { grid-column: 1 / -1; margin: 0; padding: 2px 0 10px; color: #667085; font-size: 12px; }
.dialog-form { padding: 22px; display: grid; gap: 14px; background: white; }
.dialog-form h3 { margin: 0; font-size: 20px; }
.outsourcing-form { min-width: min(1360px, calc(100vw - 52px)); }
.outsourcing-form .form-grid { padding: 0; border: 0; }
#saleDetailDialog .dialog-detail { min-width: min(1360px, calc(100vw - 52px)); }
.info-strip {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
}
.transport-tasks-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}
.compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.allocation-summary {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #f0fdf4;
  color: #111827;
  border: 1px solid #bbf7d0;
  font-size: 13px;
}
.allocation-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d1fae5;
  border-radius: 6px;
  background: white;
}
.allocation-title {
  font-weight: 700;
  color: #047857;
}
.allocation-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.allocation-table th,
.allocation-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  white-space: nowrap;
}
.allocation-table th {
  background: #f8fafc;
  color: #334155;
}
.transport-tasks-panel .table-wrap {
  overflow-x: auto;
}
.transport-tasks-panel table {
  min-width: 1180px;
}
.transport-tasks-panel td:nth-child(4) input {
  min-width: 260px;
}
.print-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.print-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-bottom: 16px; }
.production-slip { width: 241mm; min-height: 140mm; max-width: 100%; margin: 0 auto; color: #111827; font-size: 13px; }
.production-slip .print-title { margin-bottom: 4px; }
.slip-head { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 12px; margin-bottom: 8px; }
.slip-qr-box { display: grid; justify-items: center; gap: 3px; font-size: 11px; color: #344054; }
.slip-qr { width: 92px; height: 92px; display: block; }
.slip-qr-placeholder { width: 92px; height: 92px; border: 1px dashed #98a2b3; display: grid; place-items: center; text-align: center; color: #667085; font-size: 12px; padding: 8px; }
.slip-subtitle { text-align: center; color: #475467; margin-bottom: 10px; }
.slip-copy-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; font-size: 12px; color: #344054; }
.slip-copy-line span { border: 1px solid #98a2b3; text-align: center; padding: 3px 4px; }
.slip-meta { grid-template-columns: repeat(4, 1fr); border-top: 1px solid #111827; border-left: 1px solid #111827; gap: 0; margin-bottom: 0; }
.slip-meta div { border-right: 1px solid #111827; border-bottom: 1px solid #111827; padding: 5px 7px; min-height: 28px; }
.slip-meta .wide { grid-column: span 2; }
.slip-table { border: 1px solid #111827; border-top: 0; font-size: 12px; }
.slip-table th, .slip-table td { border: 1px solid #111827; padding: 5px 6px; white-space: normal; }
.slip-table th { background: #f2f4f7; color: #111827; text-align: center; }
.slip-table tfoot td { font-weight: 700; }
.purchase-slip .slip-table { margin-top: 8px; border-top: 1px solid #111827; }
.purchase-slip .slip-table:first-of-type { margin-top: 0; }
.purchase-slip .purchase-items-table td:nth-child(2) { min-width: 120px; }
.purchase-slip .purchase-items-table td:nth-child(8),
.purchase-slip .purchase-items-table td:nth-child(9),
.purchase-slip .purchase-items-table td:nth-child(10) { text-align: right; }
.model-cell { font-size: 18px; font-weight: 800; text-align: center; letter-spacing: .5px; }
.slip-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid #111827; }
.slip-summary div { border-right: 1px solid #111827; border-bottom: 1px solid #111827; padding: 6px 7px; }
.slip-note { border: 1px solid #111827; border-top: 0; padding: 7px; min-height: 30px; }
.slip-sign { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid #111827; }
.slip-sign div { border-right: 1px solid #111827; border-bottom: 1px solid #111827; padding: 10px 7px; min-height: 38px; }
.compact-production-slip { width: 215.9mm; min-height: 93.1mm; height: 93.1mm; box-sizing: border-box; padding: 3mm 4mm; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; color: #000; background: #fff; }
.compact-production-slip + .compact-production-slip { margin-top: 8mm; }
.compact-production-slip .slip-copy-line { gap: 2mm; margin-bottom: 1.5mm; font-size: 9px; }
.compact-production-slip .slip-copy-line span { padding: 1px 2px; border-color: #000; }
.compact-slip-head { grid-template-columns: minmax(0, 1fr) 107mm; gap: 2mm; margin-bottom: 1mm; min-height: 19mm; }
.compact-production-slip .print-title { font-size: 17px; line-height: 1.15; margin: 0 0 1.2mm; }
.compact-production-slip .slip-qr { width: 16mm; height: 16mm; }
.compact-production-slip .slip-qr-placeholder { width: 16mm; height: 16mm; padding: .8mm; font-size: 8px; }
.compact-production-slip .slip-qr-box { gap: 1px; font-size: 8px; color: #000; }
.compact-slip-meta { display: grid; grid-template-columns: 38mm 12mm minmax(0, 1fr); grid-template-rows: repeat(3, 1fr); gap: .5mm 1.5mm; align-items: center; line-height: 1.15; font-size: 10px; }
.compact-slip-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-meta-left { grid-column: 1; }
.compact-meta-right { grid-column: 3; }
.compact-meta-row-1 { grid-row: 1; }
.compact-meta-row-2 { grid-row: 2; }
.compact-meta-row-3 { grid-row: 3; }
.compact-slip-left-qr { grid-column: 2; grid-row: 1 / span 3; display: grid; place-items: center; }
.compact-slip-left-qr .slip-qr, .compact-slip-left-qr .slip-qr-placeholder { width: 12mm; height: 12mm; }
.compact-slip-table { width: 100%; table-layout: fixed; border-top: 1px solid #000; font-size: 10px; }
.compact-slip-table th, .compact-slip-table td { height: 4.5mm; box-sizing: border-box; padding: .35mm .8mm; border-color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.compact-slip-table th { height: 4.5mm; background: transparent; }
.compact-slip-table .model-cell { font-size: 11.5px; letter-spacing: 0; }
.compact-slip-table tfoot td { height: 4.5mm; }
.compact-col-seq { width: 7%; }
.compact-col-model { width: 22%; }
.compact-col-material { width: 13%; }
.compact-col-process { width: 31%; }
.compact-col-product { width: 18%; }
.compact-col-qty { width: 10%; }
.compact-col-unit { width: 8%; }
.compact-col-note { width: 22%; }
.compact-slip-footer { display: grid; grid-template-columns: 1fr 2.5fr 1fr; gap: 3mm; align-items: center; padding-top: 1mm; line-height: 1.2; white-space: nowrap; font-size: 10.5px; }
.compact-slip-footer span:last-child { text-align: right; }
.compact-slip-code-panel { position: relative; display: grid; grid-template-columns: 16mm minmax(0, 1fr); gap: 1.5mm; align-items: center; box-sizing: border-box; height: 19mm; padding: 0 5mm 2.5mm 0; }
.compact-slip-top-barcode { width: 100%; height: 13mm; }
.compact-slip-code-panel > .compact-slip-top-barcode { grid-column: 2; }
.slip-barcode { display: block; width: 100%; height: 100%; }
.slip-barcode-placeholder { width: 100%; height: 100%; min-height: 11mm; border: 1px dashed #98a2b3; display: grid; place-items: center; box-sizing: border-box; font-size: 8px; }
.compact-slip-page-tag { position: absolute; right: 0; bottom: 0; font-size: 8.5px; }
.compact-slip-bottom-codes { margin-top: auto; margin-bottom: 3mm; min-height: 17mm; display: grid; grid-template-columns: 17mm 78mm; justify-content: space-between; align-items: end; box-sizing: border-box; padding: .8mm 20mm 0 62mm; }
.compact-slip-backup-qr { display: grid; justify-items: center; gap: .2mm; font-size: 7.5px; line-height: 1; }
.compact-slip-backup-qr .slip-qr, .compact-slip-backup-qr .slip-qr-placeholder { width: 15mm; height: 15mm; }
.compact-slip-bottom-barcode { height: 15mm; display: grid; grid-template-rows: 13mm auto; justify-items: center; gap: .2mm; font-size: 7.5px; line-height: 1; }
@media print {
  @page { size: 215.9mm 93.1mm; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; width: auto !important; min-width: 0 !important; background: white !important; }
  body > * { display: none !important; }
  body > #printDialog { display: block !important; position: static !important; inset: auto !important; width: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  body > dialog:not(#printDialog), .dialog-actions, .print-settings { display: none !important; }
  #printDialog::backdrop { display: none !important; }
  #printArea { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  .production-slip { width: 241mm; min-height: 140mm; }
  .compact-production-slip { width: 215.9mm; min-height: 93.1mm; height: 93.1mm; margin: 0; break-after: page; page-break-after: always; }
  .compact-production-slip:last-child { break-after: auto; page-break-after: auto; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  aside { display: flex; gap: 6px; overflow-x: auto; overflow-y: visible; }
  .brand { display: none; }
  .nav, .module-nav { width: auto; white-space: nowrap; }
  .nav-group { position: static; }
  .module-flyout { position: fixed; left: 12px; right: 12px; top: 66px; width: auto; max-height: 70vh; overflow: auto; }
  .module-flyout.wide { width: auto; }
  .flyout-grid { grid-template-columns: 1fr; }
  .module-flyout.wide .flyout-grid { grid-template-columns: 1fr; }
  .toolbar, .form-grid, .sale-order-bar, .line-editor, .metrics { grid-template-columns: 1fr; }
  .dash-grid, .asset-row, .asset-card { grid-template-columns: 1fr; }
  .dash-side { display: grid; }
  .flow-canvas { transform: scale(.78); transform-origin: top left; width: 980px; }
}
