/* Light mobile ERP direction based on the user's visual reference. */
:root {
  --enamel:#2563df;
  --enamel-soft:#eaf2ff;
  --chalk:#f5f8fd;
  --paper:#fff;
  --ink:#17243b;
  --steel:#e3eaf3;
  --muted:#718099;
  --frame-text:#17243b;
  --frame-muted:#718099;
  --workshop-orange:#2563df;
  --graphite:#17243b;
}
html,body{background:#f5f8fd;color:var(--ink)}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;letter-spacing:0}
button,input,select,textarea{border-radius:10px}
button{border-color:#dce5f1;background:#fff;color:var(--ink);box-shadow:none}
button:hover{background:#eef5ff;border-color:#bfd3f6}
button.primary,.segments button.active,.employee-segments button.active{background:#2563df;border-color:#2563df;color:#fff}
button:focus-visible,input:focus,select:focus,textarea:focus{outline:2px solid #8ab5ff;outline-offset:2px}
input,select,textarea{background:#fff;border-color:#d8e2f0}
.sidebar{background:#fff;border:1px solid #e4ebf5;box-shadow:0 4px 20px #273b5d0a;color:var(--ink)}
.sidebar .brand{color:#14243c;letter-spacing:.02em}
.sidebar .brand small,.identity small{color:var(--muted)}
.nav button{color:#5e6e86}
.nav button:hover{background:#f3f7fd}
.nav button.active{color:#205fd7;background:#eaf2ff;box-shadow:none}
.identity{border-color:#e5ebf3}.identity button{color:#49627f}
.shell>.pilot{color:#718099}
.shell>.topline{color:var(--ink)}
.shell>.topline .muted{color:var(--muted)}
.shell>.topline h1{font-weight:720;letter-spacing:-.035em}
.shell>.topline button,.employee-header button{background:#fff;border:1px solid #dce5f1;color:#344660;box-shadow:none}
.shell>.topline button:hover,.employee-header button:hover{background:#eef5ff}
.shell>#content{background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.card,.overview-summary,.overview-queue,.employee-order,.employee-task,.product-card,dialog{background:#fff;border:1px solid #e4ebf4;box-shadow:0 2px 10px #233b6408;border-radius:16px}
.sectionline h2,.workbench-heading h2{color:#14243c}
.workbench-kicker{color:#718099}
.workbench-live{background:#eaf2ff;color:#235dcc;border:1px solid #d9e7ff}
.overview-summary,.overview-focus,.overview-queue{border-radius:16px}
.overview-summary{background:#fff}
.overview-small>div,.overview-queue>button{background:#f6f9fe;border:1px solid #e9eef6;border-radius:10px}
.overview-queue{background:#fff}
.overview-focus{background:#edf4ff;color:#183353;border:1px solid #d7e6fd;box-shadow:none}
.overview-focus .workbench-kicker,.focus-workshops span,.overview-focus>p,.focus-number>span,.focus-percent small{color:#59708f}
.focus-label{background:#fff;color:#365171;border:1px solid #dce9fb;box-shadow:none}
.focus-progress{background:#d9e6f9}.focus-progress>span{background:#2563df}
.focus-workshops>div+div{border-color:#d5e3f5}
.overview-link{border-color:#e6ecf5;color:#235dcc}
.queue-note{border-color:#e5ebf3}.queue-dot{background:#2563df}
.tag{border-radius:7px;background:#f0f4fa;color:#596b82}.tag.good{background:#eaf2ff;color:#205fd7}
.segments button{border-radius:9px}.segments button.active{box-shadow:0 2px 5px #2563df20}
.tablewrap,.order-processes{border:1px solid #e4ebf4;border-radius:12px}
th{background:#f5f8fd;color:#62738c}td{border-color:#e8edf5}
.process-caption{background:#f5f8fd}.process-history{background:#f7faff}
.process-ring{background:conic-gradient(#2563df var(--process-progress),#e4eaf3 0)}
.process-ring strong{background:#fff;color:#205fd7}
.process-ring.complete strong{background:#eaf2ff}
.process-node:hover{background:#f2f7ff}
.process-category-heading{background:#eaf2ff;color:#2455a9}
.process-assembly-group{background:#fff;border-color:#dce8f7}
.process-assembly-heading{background:#f0f6ff;border-color:#dce8f7}
.process-assembly-heading h4{color:#193854}.process-assembly-heading span,.process-component-kind{color:#54739c}
.process-component--assembly{background:#f7fbff;border-color:#bdd4f6;border-left-color:#2563df}
.process-component--assembly .process-component-kind{color:#235dcc}
.process-component--assembly.process-component--nested{background:#f7fbff;border-color:#d1e1f7}
.employee-app{background:#f5f8fd}
.employee-header{background:#fff;color:var(--ink);border-bottom:1px solid #e4ebf4}
.employee-brand,.employee-header .muted{color:var(--muted)}
.employee-route>button,.employee-ring strong{background:#f0f6ff}
.employee-preview,.employee-report-instruction{background:#edf4ff}
.employee-review-note{background:#f4f8fd}
.bottomnav,.employee-nav.bottomnav{background:#fff;border-color:#e4ebf4;box-shadow:0 -4px 16px #193a6d0b;backdrop-filter:none;-webkit-backdrop-filter:none}
.bottomnav button,.employee-nav.bottomnav button{color:#718099}
.bottomnav button.active,.employee-nav.bottomnav button.active{background:#eaf2ff;color:#205fd7;border-radius:10px}
.bottomnav .symbol{color:inherit}
.login{background:#fff;border:1px solid #e2eaf6;box-shadow:0 12px 32px #233b6410}
.login .brand{color:#173251}.login .pilot{color:var(--muted)}
dialog .modalhead,.config-footer,.employee-report-footer{background:#fff;border-color:#e4ebf4}
.product-code,.eyebrow{color:#235dcc}
.product-snapshot{background:#f4f8ff}
.confirm-bom-section tbody tr:nth-child(even){background:#f7faff}
.confirm-bom-section tbody tr:hover{background:#edf4ff}
.inventory-categories button{border-radius:10px}
.inventory-categories button.active{background:#eaf2ff;color:#205fd7;border-color:#cfe0fb}
.inventory-card{background:#fff;border-color:#e4ebf4;box-shadow:0 2px 10px #233b6408;backdrop-filter:none}
.inventory-code{color:#235dcc}
.inventory-spec,.inventory-quantity span,.inventory-footnote{color:#718099}
.inventory-split,.inventory-bins{border-color:#e4ebf4}
.order-inventory{background:#f7faff;border-color:#dce8f8}
.inventory-bar{background:#e5edf9}.inventory-bar i{background:#2563df}
.stock-weight-note{background:#eaf2ff;color:#23558f}
.empty{background:#fff;border-color:#dce6f2;color:#718099}
@media(max-width:760px){
  html,body{background:#f5f8fd}
  .shell{padding:15px 12px 100px}
  .shell>.pilot{margin:0 5px 10px;color:#7a8ba4}
  .shell>.topline{margin:0 5px 15px}
  .shell>.topline h1{font-size:25px}
  .shell>.topline .actions{gap:6px}
  .shell>.topline button{border-radius:11px;padding:7px 10px}
  .shell>#content{padding:0;min-height:65dvh}
  .workbench-heading{padding:3px 2px 0}
  .workbench-panels{gap:10px}
  .overview-focus{grid-row:1;padding:17px}
  .focus-main{margin-top:14px}
  .focus-number{font-size:40px}
  .overview-summary,.overview-queue{padding:16px}
  .bottomnav,.employee-nav.bottomnav{padding-top:7px}
  .bottomnav button{font-size:11px;line-height:1.25}
  .bottomnav .symbol{font-size:19px;margin-bottom:2px}
  .employee-header{padding:18px 16px}
  .employee-content{padding:14px 12px 26px}
  .process-assembly-heading{padding:12px 13px}
}
@media print{html,body{background:#fff}.shell>#content{padding:0}.bottomnav,.sidebar{display:none}}
/* UI/UX Pro Max: factory desk and shop-floor readability, 2026-10-19.
   Presentation only. Business actions, source documents and print styles stay intact. */
@media screen {
  :root {
    color-scheme:light;
    --enamel:#1d4ed8; --enamel-soft:#eff6ff; --chalk:#f6f8fc;
    --paper:#fff; --ink:#1e293b; --muted:#52637b; --steel:#dce3ed;
    --frame-text:#1e293b; --frame-muted:#52637b;
    --rust:#b42318; --warning:#854d0e;
    --ui-success:#166534; --ui-success-bg:#edf9f0;
    --ui-warning:#854d0e; --ui-warning-bg:#fff7e6;
    --ui-danger:#b42318; --ui-danger-bg:#fff1f0;
    --ui-shadow:0 2px 8px #1e293b05;
  }
  html,body,.employee-app {background:var(--chalk);color:var(--ink)}
  body {font-size:15px;line-height:1.65;font-variant-numeric:tabular-nums;letter-spacing:0}
  h1,h2,h3,h4 {text-wrap:balance;line-height:1.4}
  .shell :is(p,dd,li),dialog :is(p,dd,li) {overflow-wrap:anywhere}
  .shell>.topline h1 {font-size:28px;letter-spacing:-.02em}
  .sectionline h2 {font-size:20px;letter-spacing:0}
  .shell :is(.muted,.subtle),.employee-app :is(.muted,.subtle),dialog :is(.muted,.subtle),.login :is(.muted,.subtle) {color:var(--muted)}
  .shell .subtle,dialog .subtle,.employee-hint,.modelnote,.product-snapshot small {font-size:13px;line-height:1.7;color:var(--muted)}
  .shell>.pilot,.shell>.topline .muted,.workbench-kicker,.inventory-spec,.inventory-footnote {color:var(--muted);font-size:13px}
  button,input,select,textarea {border-radius:8px}
  button {min-height:44px;line-height:1.45;font-weight:550;touch-action:manipulation;transition:background-color 150ms,border-color 150ms,color 150ms,box-shadow 150ms}
  button:disabled {cursor:not-allowed;box-shadow:none}
  button.primary,.segments button.active,.employee-segments button.active {background:var(--enamel);border-color:var(--enamel);color:#fff}
  button.primary:hover:not(:disabled),.segments button.active:hover,.employee-segments button.active:hover {background:#1e40af;border-color:#1e40af}
  button:active:not(:disabled) {box-shadow:inset 0 0 0 2px #1e293b12}
  button.danger {color:var(--ui-danger);border-color:#f2c7c4;background:#fff}
  button.danger:hover:not(:disabled) {background:var(--ui-danger-bg);border-color:#d89690}
  :is(button,a,summary,input,select,textarea):focus-visible {outline:3px solid #1d4ed8;outline-offset:3px;scroll-margin-block:88px}
  :is(input,select,textarea) {border-color:#7d8fa8;background:#fff;color:var(--ink);line-height:1.55}
  input[readonly],textarea[readonly] {background:#f2f5fa;color:#334155;border-color:#d7dfea}
  input[type=checkbox],input[type=radio] {width:18px;min-height:18px;height:18px;accent-color:var(--enamel);flex:0 0 auto}
  label:has(>input[type=checkbox]),label:has(>input[type=radio]) {display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:9px 0;font-weight:500;cursor:pointer}
  label>input[type=checkbox],label>input[type=radio] {margin:4px 0 0}
  .actions,.formfooter,.employee-report-footer {gap:10px}
  .sidebar {inset:16px auto 16px 16px;width:200px;padding:20px 12px;border-radius:12px;border-color:var(--steel);box-shadow:var(--ui-shadow);gap:24px}
  .sidebar .brand {letter-spacing:0;font-size:20px}
  .sidebar .brand small {font-size:12px;letter-spacing:.06em;color:var(--muted)}
  .nav {gap:5px;scrollbar-color:#bcc8d9 transparent}
  .nav button {font-size:14px;padding:11px 12px;color:#475569;border-radius:8px;white-space:normal}
  .nav button.active {color:#1e40af;background:#eaf1ff;box-shadow:inset 3px 0 #1d4ed8}
  .identity small,.identity button {font-size:13px;color:var(--muted)}
  .shell {margin-left:232px;padding:24px 24px 48px 0;min-width:0}
  .shell>.topline {align-items:center;margin-bottom:24px;padding:0}
  .shell>.topline button {font-size:14px;min-height:44px;padding:9px 14px;border-radius:8px}
  .shell>#content {padding:0;min-width:0}
  .card,.employee-order,.employee-task,.product-card,.inventory-card,.overview-summary,.overview-queue {border-color:var(--steel);border-radius:12px;box-shadow:var(--ui-shadow)}
  .card {padding:22px}
  .stack,.grid {gap:16px}
  .stack {grid-template-columns:minmax(0,1fr)}
  .stack>*,.grid>*,.card,.lineitem,.product-snapshot {min-width:0}
  .card h3,.order-card h3 {font-size:18px;line-height:1.5;overflow-wrap:anywhere}
  .tag {padding:4px 9px;border-radius:6px;font-size:12px;line-height:1.5;background:#edf1f7;color:#475569}
  .tag.good {color:var(--ui-success);background:var(--ui-success-bg)}
  .tag.warn,.process-pending {color:var(--ui-warning);background:var(--ui-warning-bg)}
  .tag.bad {color:var(--ui-danger);background:var(--ui-danger-bg)}
  .good-number {color:var(--ui-success)}
  .pending-number,.process-blocked {color:var(--ui-warning)}
  .bad-number,.due {color:var(--ui-danger)}
  .notice {color:#684313;background:var(--ui-warning-bg);border-left:3px solid #c28a30;padding:14px 16px;line-height:1.75;border-radius:0 8px 8px 0}
  .notice.error {color:#8f2018;background:var(--ui-danger-bg);border-left-color:var(--ui-danger)}
  .notice.success {color:var(--ui-success);background:var(--ui-success-bg);border-left-color:var(--ui-success)}
  .empty {border-color:#cad5e4;background:#fff;color:var(--muted);font-size:14px;line-height:1.8;padding:28px 20px}
  .ui-task-path {gap:8px;margin:16px 0 24px;color:#475569;line-height:1.55}
  .ui-task-path>span {display:flex;align-items:center;padding:8px 12px;min-height:40px;background:#fff;border:1px solid var(--steel);border-radius:8px;font-size:13px}
  .workbench-kicker {font-size:12px;letter-spacing:.04em}
  .overview-summary>p,.overview-small span,.focus-label,.focus-workshops span,.overview-focus>p,.workbench-live,.overview-link {font-size:13px}
  .overview-number {font-size:44px;letter-spacing:-.03em}
  .overview-small>div,.overview-queue>button {border-color:#e1e7f0;background:#f8fafd;border-radius:8px}
  .overview-queue>button {min-height:64px;padding:14px}
  .overview-focus {background:#edf3ff;border-color:#d5e1f6}
  .overview-focus :is(.workbench-kicker,p),.focus-number>span,.focus-percent small,.focus-workshops span {color:#415b7d}
  .tablewrap {max-width:100%;min-width:0;width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--steel);border-radius:10px;scrollbar-color:#aebdd0 #f0f4f9;scrollbar-width:thin}
  .tablewrap table {font-size:14px;line-height:1.7}
  .tablewrap table:has(th:nth-child(4)) {min-width:640px}
  .tablewrap table:has(th:nth-child(5)) {min-width:760px}
  .tablewrap table:has(th:nth-child(6)) {min-width:900px}
  .tablewrap :is(th,td) {padding:13px 14px}
  .tablewrap th {font-size:13px;color:#475569;background:#f0f4fa;font-weight:650}
  .tablewrap td {border-color:#e7edf5;overflow-wrap:break-word}
  .tablewrap tbody tr:nth-child(even) {background:#f8fafd}
  .tablewrap tbody tr:hover {background:#eef4ff}
  .tablewrap td.numeric {font-variant-numeric:tabular-nums}
  .process-caption {font-size:14px}
  .process-caption span,.process-workshop-heading small,.process-count,.process-material,.process-status {font-size:12px;color:var(--muted)}
  .process-name {font-size:13px;min-height:40px;line-height:1.55}
  .process-ring.complete {background:#18824c}
  .process-ring.complete strong {background:var(--ui-success-bg);color:var(--ui-success)}
  .task footer {padding-top:16px;margin-top:16px;flex-wrap:wrap}
  .manual-file {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 12px;margin:10px 0;background:#f5f8fd;border:1px solid var(--steel);border-radius:8px}
  .manual-file a {display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere;color:#1d4ed8}
  .manual-file a:first-child {flex:1 1 220px;min-width:0}
  dialog {border-color:#d5deea;border-radius:14px;box-shadow:0 24px 80px #0f172a26;overscroll-behavior:contain;max-height:calc(100dvh - 40px)}
  dialog::backdrop {background:#17243b80}
  dialog .modalhead {padding:18px 22px;z-index:4;border-color:var(--steel)}
  dialog .modalhead h2 {font-size:21px;line-height:1.45;overflow-wrap:anywhere}
  dialog .modalbody {padding:12px 22px 24px;line-height:1.7}
  dialog .modalbody :is(h3,h4) {margin-top:20px;margin-bottom:10px}
  dialog .formfooter {padding-top:18px;flex-wrap:wrap}
  dialog :is(select,input,textarea) {font-size:16px}
  .employee-header {border-color:var(--steel)}
  .employee-header .muted,.employee-brand {font-size:13px;color:var(--muted)}
  .employee-hint {line-height:1.7}
  .employee-counts small {font-size:13px;color:var(--muted)}
  .employee-report .employee-report-instruction {background:#eff6ff;color:#334f73;padding:12px 14px;border:1px solid #dce8fb;border-radius:8px}
  .employee-report-footer {background:#fff;border-top:1px solid var(--steel);padding:12px 0 max(12px,env(safe-area-inset-bottom));z-index:3;box-shadow:0 -8px 16px #fff}
  .employee-report-footer button {min-height:52px;font-size:15px}
  .employee-report input[type=number] {font-size:26px}
  .employee-report .notice {padding:10px 12px;margin:10px 0;line-height:1.6}
  .employee-report .employee-counts {margin:12px 0;padding:12px 0}
  .employee-report .employee-person {padding:8px 0}
  .employee-report .employee-report-instruction {margin:12px 0;padding:8px 10px;font-size:13px;line-height:1.6}
  .product-snapshot {padding:18px;background:#f6f9fe;border:1px solid #e0e8f4;border-radius:10px;line-height:1.75}
  .product-snapshot h3 {font-size:17px}
  .product-snapshot h4 {font-size:15px}
  .bottomnav,.employee-nav.bottomnav {box-shadow:0 -2px 12px #1e293b08;border-color:var(--steel)}
  .bottomnav button,.employee-nav.bottomnav button {font-size:12px;color:var(--muted);min-height:54px;line-height:1.4}
  .bottomnav button.active,.employee-nav.bottomnav button.active {background:#edf3ff;color:#1e40af}
  .login {border-radius:14px}
}
@media screen and (max-width:900px) {
  .tablewrap:has(th:nth-child(4))::before {content:"左右滑动，查看完整表格";display:block;position:sticky;left:0;padding:9px 14px;background:#eff6ff;color:#365780;font-size:12px;line-height:1.5}
}
@media screen and (max-width:760px) {
  .shell {margin:0;padding:16px 14px calc(96px + env(safe-area-inset-bottom))}
  .shell>.pilot {margin:0 2px 14px;font-size:12px}
  .shell>.topline {align-items:flex-start;flex-wrap:wrap;gap:14px;margin:0 2px 20px}
  .shell>.topline h1 {font-size:25px}
  .shell>.topline .actions {gap:8px}
  .shell>.topline button {font-size:13px;padding:9px 12px}
  .card {padding:18px 16px}
  .sectionline {align-items:flex-start;flex-wrap:wrap;gap:12px}
  .sectionline h2 {font-size:19px}
  .ui-task-path>span {flex:1 1 155px;min-height:44px}
  .workbench-heading {align-items:flex-start;flex-wrap:wrap;gap:12px}
  .workbench-panels {gap:12px}
  .overview-focus,.overview-summary,.overview-queue {padding:18px}
  dialog,.employee-report {width:100%;max-width:100%;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));margin:auto 0 0;border-radius:16px 16px 0 0}
  dialog .modalhead,.employee-report .modalhead {padding:16px 18px}
  dialog .modalbody,.employee-report .modalbody {padding:12px 18px max(24px,env(safe-area-inset-bottom))}
  .employee-report .modalbody {padding-bottom:0}
  .formfooter button {flex:1 1 130px;white-space:normal;min-height:48px}
  .employee-header .actions {flex-wrap:wrap}
  .employee-header {align-items:flex-start;gap:12px}
  .employee-content {padding:16px 14px 28px}
  .employee-details>div {flex-wrap:wrap;gap:4px 12px}
  .employee-details dt {min-width:88px}
  .employee-details dd {min-width:0;flex:1 1 160px}
  .product-snapshot {padding:16px 14px}
  .config-footer {gap:12px}
  .manual-file {padding:8px 10px}
}
@media screen and (max-width:420px) {
  .employee-counts {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .employee-header {flex-wrap:wrap}
  .employee-header .actions {width:100%;gap:8px}
  .employee-header .actions button {flex:1}
  .employee-report-footer {gap:8px}
}
@media screen and (prefers-reduced-motion:reduce) {
  *,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
