:root{--ink:#202c2a;--muted:#687570;--green:#116d57;--green-soft:#e6f2eb;--line:#e2e7e3;--surface:#fff;--canvas:#f6f7f5;--amber:#936112;--red:#b62d39;--sidebar:210px;--radius:12px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);font-size:14px;line-height:1.5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 15px;background:var(--green);color:white;border:1px solid transparent;border-radius:7px;cursor:pointer;font-weight:550;transition:background .16s,box-shadow .16s,transform .12s}button:hover:not(:disabled){background:#0a5745;box-shadow:0 2px 5px #19372b15}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.secondary{background:#f0f4f0;border-color:#dce5dd;color:#335345}.secondary:hover:not(:disabled){background:#e6ede6}.ghost{background:white;border-color:var(--line);color:#53615b}.ghost:hover:not(:disabled){background:#f2f5f1}.danger,.danger-outline{background:#fff3f3;color:var(--red);border:1px solid #f0cdd1}.danger:hover:not(:disabled),.danger-outline:hover:not(:disabled){background:#ffe4e5}.text-button{background:transparent!important;padding:0;min-height:32px;color:var(--green);font-size:12px}.icon-button{width:36px;padding:8px}.number{text-align:right;font-variant-numeric:tabular-nums}.mono{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-variant-numeric:tabular-nums}.muted,small{color:var(--muted)}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;font-weight:650;color:#76877d;margin-bottom:9px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.3;letter-spacing:-.9px;margin-bottom:10px;font-weight:650}h2{font-size:21px;letter-spacing:-.4px;margin-bottom:8px;font-weight:650}h3{font-size:15px;margin-bottom:14px;font-weight:650}p{line-height:1.65;margin-bottom:16px}button:focus-visible,a:focus-visible,summary:focus-visible,.table-wrap:focus-visible{outline:3px solid #409d83;outline-offset:3px}a{color:inherit}label{display:block;min-width:0;font-size:12px;color:#52625a;font-weight:550}input,select,textarea{display:block;width:100%;border:1px solid #dce3de;background:white;border-radius:7px;color:var(--ink);padding:10px 12px;margin:7px 0 16px;min-height:42px;transition:border-color .16s,box-shadow .16s}input::placeholder{color:#87938d;font-weight:400}input:focus,select:focus,textarea:focus{outline:none;border-color:#399177;box-shadow:0 0 0 3px #16846416}input[readonly]{background:#f2f4f1;color:#637069}.topbar{height:72px;display:flex;align-items:center;padding:0 28px;gap:34px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{text-decoration:none;display:flex;align-items:center;gap:10px;width:160px;flex-shrink:0}.brand-mark{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:var(--ink);color:#c7ed9e;border-radius:9px}.brand-mark .icon{width:23px;height:23px;transform:rotate(-35deg)}.brand strong{display:block;font-size:17px;letter-spacing:.5px;line-height:1.3}.brand small{display:block;font-size:8px;letter-spacing:2.2px;margin-top:3px;color:#7b8880}.top-context{display:flex;align-items:center;gap:14px;color:#7c8882;font-size:12px}.top-context strong{font-weight:500;color:#46574c}.context-divider{color:#c5cfc7}.top-meta{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap}.top-meta time{color:#7c8882;margin-right:15px;font-variant-numeric:tabular-nums}.user-avatar{display:flex;align-items:center;justify-content:center;width:29px;height:29px;background:#edf0ea;border:1px solid #dce4d8;border-radius:50%;color:#516447;font-size:11px;font-weight:600}main{min-height:calc(100vh - 72px)}.sidebar{position:fixed;left:0;top:72px;bottom:0;width:var(--sidebar);padding:30px 14px 18px;background:#eef1ed;border-right:1px solid #dde4dc;display:flex;flex-direction:column;z-index:10}.sidebar-caption{padding:0 14px;font-size:10px;letter-spacing:1px;color:#758271;margin-bottom:14px}nav{display:flex;flex-direction:column;gap:5px}nav button{justify-content:flex-start;background:transparent;color:#687464;padding:12px 14px;border-radius:7px;font-size:13px;min-height:44px}nav button:hover:not(:disabled){background:#e3e9e0;box-shadow:none}nav button.active{background:#fff;color:#254730;border:1px solid #dfe6d9;box-shadow:0 2px 5px #233d2410}nav button.active .icon{color:var(--green)}.sidebar-bottom{margin-top:auto}.workflow-note{padding:16px 14px;border-top:1px solid #d9e1d4;margin:20px 5px 16px}.workflow-note strong{font-size:12px}.workflow-note p{font-size:11px;margin:10px 0 0;color:#82907e;line-height:1.9}.live-dot,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#459a6c;margin-right:6px;vertical-align:middle}.sidebar #logout{justify-content:flex-start;width:100%;background:transparent;border-color:transparent;font-size:12px}.workspace-content{margin-left:var(--sidebar);padding:34px 36px 0;max-width:1800px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-heading{margin-bottom:27px}.page-heading p{font-size:13px;margin:0}.page-heading button{flex-shrink:0}.panel{animation:panel-in .18s ease-out}@keyframes panel-in{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}.overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}.overview-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px 22px;position:relative;overflow:hidden}.overview-card>span{font-size:12px;color:#59685c}.overview-card strong{display:block;font-size:33px;line-height:1.2;font-weight:550;letter-spacing:-1px;margin:12px 0 8px;font-variant-numeric:tabular-nums}.overview-card small{font-size:11px;color:#82907f}.overview-card.complete{background:#eef5e8;border-color:#dfebd6}.overview-card.complete strong{color:#375638}.draft{background:#849082}.scanning{background:#cf942e}.shipped{background:#258159}.list-card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 12px #20342004;overflow:hidden}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:0 20px;height:59px}.list-toolbar>span{font-size:10px}.status-tabs{display:flex;align-self:stretch;gap:24px}.status-tabs button{background:none;border-radius:0;color:#7c877f;padding:0 2px;border-bottom:2px solid transparent;font-size:12px;gap:6px;font-weight:500;white-space:nowrap}.status-tabs button.selected{color:#254e34;border-bottom-color:#39805a;font-weight:650}.status-tabs button:hover:not(:disabled){background:none;box-shadow:none;color:#264d36}.status-tabs span{font-size:10px;padding:1px 6px;border-radius:5px;background:#f0f3ee;color:#778570;min-width:22px}.status-tabs .selected span{background:#e9f0e3;color:#3b6b3b}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:18px 20px}.filters label{flex:1;min-width:110px}.filters input{margin-bottom:0;min-height:38px;font-size:12px}.filters button{min-height:38px;font-size:12px}.order-filters .search-field{flex:1.6}.input-icon{position:relative;display:block}.input-icon .icon{position:absolute;left:10px;top:10px;width:16px;height:16px;color:#8d998f}.input-icon input{padding-left:32px}.table-wrap{overflow:auto;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;text-align:left;background:white}th{padding:12px 15px;background:#f8faf7;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#7c897e;font-weight:500;font-size:11px;white-space:nowrap}td{padding:17px 15px;border-bottom:1px solid #edf0eb;font-size:12px;white-space:nowrap;color:#46544a}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fafcf8}td small{display:block;font-size:10px;color:#879181;margin-top:5px}td button{font-size:11px;min-height:30px;padding:5px 8px;gap:5px}td .icon{width:14px;height:14px}.orders-table{min-width:1000px}.orders-table td{padding:16px 12px}.orders-table th{padding:12px}.orders-table .number{font-size:13px;color:#28392e}.orders-table th.number{font-size:11px;color:#7c897e}.order-link{padding:0!important;background:none!important;min-height:24px;box-shadow:none!important;color:#2d5038!important;font-size:13px!important;font-weight:600}.order-link:hover{text-decoration:underline}.order-date{font-size:11px;line-height:1.65}.order-date span{display:block;color:#8a958b;font-size:10px;font-variant-numeric:tabular-nums}.customer-cell{max-width:185px}.customer-name{display:block;max-width:170px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:550}.material-codes{font-size:11px;max-width:140px;white-space:normal;overflow-wrap:anywhere;line-height:1.7}.material-codes small{font-family:inherit;margin-top:2px}.vehicle-label{font-size:10px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:5px 8px;background:var(--green-soft);color:#28734e;font-size:10px;font-weight:550;white-space:nowrap}.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.status-draft{background:#f0f2ee;color:#77806d}.badge.status-scanning{background:#fff4df;color:#9a6a19}.badge.status-shipped{background:#e6f3e9;color:#2b784b}.badge.exception-badge{color:#a25b29;background:#fff0e0}.sound-warning{background:#fff0d7!important;color:#996019!important}.row-actions{display:flex;align-items:center;gap:4px}.operation-col{position:sticky;right:0;background:#f8faf7;z-index:2}.orders-table td.operation-col{background:white;box-shadow:-5px 0 9px #20342004}.orders-table tr:hover td.operation-col{background:#fafcf8}.progress-cell{min-width:105px}.progress-value{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#687865;margin-bottom:7px;font-variant-numeric:tabular-nums}.progress-track{height:4px;background:#e9eee7;border-radius:6px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#6f9b72;border-radius:6px;transition:width .22s ease-out}.progress-cell.done .progress-track>span{background:#277e54}.progress-cell .progress-value small{margin:0;font-size:9px}.list-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 20px;border-top:1px solid var(--line);font-size:11px;gap:15px}.pagination{display:flex;align-items:center;gap:14px;white-space:nowrap}.pagination button{font-size:11px;min-height:29px;padding:5px 10px}.page-footnote{font-size:10px;text-align:right;margin:12px 0 0;color:#8a978a}.empty-cell{padding:40px!important;text-align:center;color:#7f8d7c;white-space:normal}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin:20px 0}.order-form{margin-bottom:28px;box-shadow:0 6px 20px #20342005}.form-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.form-heading h2{margin:0}.form-note{font-size:11px;color:#85917d}.section-label{font-size:10px;letter-spacing:1px;color:#9ba991;display:flex;gap:12px;align-items:center;margin:22px 0 15px}.section-label span{letter-spacing:0;color:#52634b;font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.required{color:#c77c61}.line-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.line-heading .section-label{margin:10px 0}.line-heading button{font-size:11px;min-height:32px;padding:6px 12px}.line-help{font-size:11px;margin:10px 0 16px}.line-editor{border:1px solid var(--line);border-radius:8px;overflow:hidden}.order-line{display:grid;grid-template-columns:24px minmax(160px,1fr) minmax(120px,.45fr) auto;gap:16px;align-items:start;padding:14px 16px;background:#fafcf8}.order-line+.order-line{border-top:1px solid var(--line)}.line-number{padding-top:30px;color:#97a18d;text-align:center;font-size:11px}.order-line label{min-width:0;font-size:11px}.order-line input{margin:6px 0 2px;font-size:13px}.order-line .remove-line{margin-top:22px;font-size:11px;min-height:38px;padding:8px 12px}.field-error{display:block;min-height:18px;font-size:10px;line-height:18px;color:var(--red)}.order-line input[aria-invalid="true"]{border-color:#c6373d;background:#fff7f7}.form-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.form-bottom>div{display:flex;gap:8px}.line-summary{font-size:12px;color:#48613b;font-weight:550;margin:0}.inline{display:flex;gap:14px;align-items:flex-end}.inline label{flex:1}.inline input{margin-bottom:0}.inline button{flex-shrink:0}#notice:not(:empty){position:relative;border:1px solid #cfe4cf;border-radius:8px;padding:13px 17px;font-size:13px;background:#eef7ed;color:#34693c;margin-bottom:20px;animation:panel-in .15s ease-out}#notice.error{background:#fff0f0;border-color:#efc4c9;color:#ad2333}.warning{padding:18px;background:#fff5e4;border:1px solid #edcf96;border-radius:10px;color:#8e6123}.pending-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.pending-banner p{font-size:11px;overflow-wrap:anywhere;word-break:break-word;max-width:700px;margin:6px 0 0}.pending-banner strong{font-size:14px}.pending-banner button{flex-shrink:0;background:#9f6b16}details summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;list-style:none}details summary::-webkit-details-marker{display:none}summary .chevron{margin-left:auto;transition:transform .16s}details[open]>summary .chevron{transform:rotate(180deg)}details[open]>summary{margin-bottom:16px}footer{padding:35px 0 22px;font-size:10px;color:#a0a99a;text-align:center;letter-spacing:.2px}footer span{margin:0 8px}[hidden]{display:none!important}
/* Focused mobile loading workspace; all controls share the same backend records. */
.pda-heading .device-state{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:410px}.device-state button{min-height:31px;font-size:11px;padding:6px 10px}.task-loader{padding:18px 22px;margin-top:0}.task-loader summary{font-size:13px}.task-loader summary>.icon:first-child{color:var(--green)}.task-loader p{margin:10px 0 0;font-size:11px}.task-loader form{padding-top:3px}.pda-empty{text-align:center;border:1px dashed #d4dfd1;border-radius:14px;padding:54px 20px;margin:22px 0;background:#fcfdfb}.scanner-symbol{display:flex;width:75px;height:75px;border:1px solid #e0e9d9;border-radius:22px;align-items:center;justify-content:center;color:#5b865a;background:#eff5e8;margin:0 auto 25px}.scanner-symbol .icon{width:36px;height:36px;stroke-width:1.3}.pda-empty h2{font-size:19px}.pda-empty p{color:#829179;font-size:13px}.pda-empty button{font-size:12px}.task-header{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin:28px 0 24px}.task-header .eyebrow{margin:0 0 8px}.task-header h2{font-size:22px;overflow-wrap:anywhere}.task-header p{font-size:12px;margin:5px 0;color:#78876e}.task-header small{display:block;font-size:10px;color:#9ca78f;overflow-wrap:anywhere}.task-header .badge{margin-top:18px}.pda-work-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:25px;align-items:start}.scan-card{margin:0;padding:20px}.scan-card-title{display:flex;gap:8px;align-items:center;margin-bottom:16px}.scan-card-title>.icon{color:#497c55}.scan-card-title strong{font-size:14px}.scan-card-title button{margin-left:auto}.scanner-label{font-size:0}.scanner-label input{font-size:14px;height:53px;border:1px solid #96b695;background:#fcfff9;border-radius:8px;margin-bottom:13px}.scan-submit{width:100%;min-height:43px}.scanner-tip{display:block;font-size:10px;text-align:center;margin-top:12px;color:#839578}.scan-feedback{display:flex;gap:14px;align-items:center;min-height:84px;padding:16px 18px;border-radius:10px;margin:16px 0;border:1px solid #dde6d8;background:#f2f6ee;transition:background .12s}.scan-feedback>span{display:flex;align-items:center;justify-content:center;font-size:24px;width:35px;flex-shrink:0;color:#63915e}.scan-feedback strong{font-size:16px;color:#426039}.scan-feedback p{font-size:11px;color:#7a8f6d;margin:4px 0 0;overflow-wrap:anywhere}.scan-feedback.error{background:#b9273b;border-color:#b9273b}.scan-feedback.error strong,.scan-feedback.error>span{color:#fff}.scan-feedback.error p{color:#fff2f3}.scan-feedback.success{background:#e9f6e2;border-color:#b9d9a9}.scan-feedback.waiting{background:#fff4da;border-color:#e8cd86}.scan-feedback.waiting strong,.scan-feedback.waiting>span{color:#936212}.scan-feedback.waiting p{color:#946c31}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.metrics>div{padding:17px 14px;background:white;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.metrics small{font-size:11px;color:#7d8b74}.metrics strong{display:block;font-size:30px;line-height:1.15;margin:9px 0 5px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}.metrics span{font-size:10px;color:#96a08d}.metrics .scanned-metric{background:#eaf3e3;border-color:#d7e5cf;color:#2c6136}.metrics .shortage-metric{background:#fff9ed;border-color:#ede4cc;color:#9a7138}.task-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#7e8e73;margin:6px 0 10px}.task-progress .progress-track{height:6px}.dispatch-actions{margin:25px 0 0}.dispatch-actions>p{font-size:11px;text-align:center;color:#929e88;margin-bottom:10px}.dispatch-actions>#confirm{width:100%;min-height:48px}.secondary-actions{display:flex;gap:10px;justify-content:center;margin-top:12px}.secondary-actions button{font-size:11px;min-height:36px}.material-work{margin:0;padding:20px 0;overflow:hidden}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px 15px}.section-heading h3{margin:0;font-size:14px}.section-heading>span{font-size:10px}.task-lines-table td,.task-lines-table th{padding:13px 16px;font-size:12px}.task-lines-table td:first-child{font-family:"SFMono-Regular",Consolas,monospace;color:#435d3e}.task-lines-table td:last-child{color:#a5793a}.task-lines-table tr.line-complete td:last-child{color:#397850}.task-lines-table .material-substatus{font-family:inherit;font-size:9px;color:#949f8c;margin-top:3px}.audit-records{margin-top:25px}.audit-records summary,.label-tools summary{font-size:12px}.audit-records td{font-size:11px;white-space:normal;min-width:100px}.audit-records td:nth-child(3){max-width:280px;overflow-wrap:anywhere}.audit-records td:nth-child(4){min-width:200px}.label-tools p{font-size:12px;color:#7f8b77}.pda-help{font-size:11px;color:#89967f;padding:10px 0}.pda-help summary{font-weight:500}.pda-help p{font-size:11px;line-height:1.8}.report-card .filters{padding-top:22px;padding-bottom:22px}.report-total{margin:0;padding:16px 20px;border-top:1px solid var(--line);background:#fbfcf9;font-size:13px;color:#57704b;font-variant-numeric:tabular-nums}
/* Detail drawer has native modal focus trapping and an explicit return action. */
.detail-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(660px,100vw);height:100dvh;max-height:none;max-width:none;border:0;border-left:1px solid var(--line);padding:0;background:var(--canvas);color:var(--ink);box-shadow:-20px 0 70px #152d2420}.detail-dialog::backdrop{background:#182f2545;backdrop-filter:blur(2px)}.detail-dialog[open]{animation:drawer-in .18s ease-out}@keyframes drawer-in{from{transform:translateX(25px);opacity:.8}to{transform:none;opacity:1}}.detail-shell{padding:28px}.detail-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:22px}.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:25px 0}.detail-info dt{font-size:11px;color:#8b9780;margin-bottom:7px}.detail-info dd{margin:0;color:#465e3b;font-size:13px;overflow-wrap:anywhere}.detail-id{display:block;font-size:12px;color:#65795a;overflow-wrap:anywhere;margin:7px 0}.detail-section{margin:28px 0}.detail-section table{border:1px solid var(--line);border-radius:10px}.detail-section td{white-space:normal;overflow-wrap:anywhere}.detail-actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:0;padding:17px 0 0;background:var(--canvas)}.detail-actions button{font-size:12px}.detail-locked{border:1px solid #dfebd5;background:#eef5e8;border-radius:8px;padding:12px;font-size:12px;color:#6b8458}
/* Login uses the same palette and a custom dispatch route motif. */
.login-layout{max-width:1000px;display:grid;grid-template-columns:1.05fr 1fr;margin:9vh auto 5vh;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 55px #23362407}.login-story{background:#1c352e;color:#ecf3e5;padding:48px 45px;display:flex;flex-direction:column;min-height:480px;position:relative;overflow:hidden}.login-story:after{content:"";position:absolute;width:280px;height:280px;border:1px solid #4b685334;border-radius:50%;right:-170px;top:160px;box-shadow:0 0 0 40px #4b685310,0 0 0 80px #4b685308}.login-story .eyebrow{color:#97b380;font-size:9px}.login-story h1{font-size:37px;line-height:1.45;margin:28px 0 20px;font-weight:500;letter-spacing:-1.5px}.login-story p{font-size:13px;line-height:1.95;color:#a4bba2}.route-art{display:flex;align-items:center;gap:8px;margin:22px 0 40px;width:85%;color:#bbd597}.route-art .icon{width:30px;height:30px;stroke-width:1.2}.route-node{width:7px;height:7px;border:1px solid #98ad81;border-radius:50%}.route-node.end{background:#bad68e}.route-track{height:1px;flex:1;background:repeating-linear-gradient(90deg,#829b6d 0 3px,transparent 3px 7px)}.login-story-bottom{margin-top:auto;display:flex;gap:28px;font-size:9px;color:#8ca783;letter-spacing:1px}.login-card{background:white;padding:52px 46px;display:flex;flex-direction:column;justify-content:center}.login-card .eyebrow{letter-spacing:1px;margin-bottom:13px}.login-card h2{font-size:25px;margin-bottom:12px}.login-card>p{font-size:12px;margin-bottom:28px}.login-card label{font-size:12px}.login-card input,.login-card select{min-height:45px}.login-submit{margin-top:8px;width:100%;min-height:46px;justify-content:space-between}.login-card .login-foot{margin:24px 0 0;text-align:center;font-size:10px;color:#9aa590}
@media(min-width:1600px){.workspace-content{padding:42px 48px 0}.orders-table{min-width:1100px}.orders-table td{padding:19px 16px}.customer-cell,.customer-name{max-width:230px}}
@media(max-width:1150px){:root{--sidebar:180px}.topbar{gap:20px;padding:0 20px}.top-context{display:none}.workspace-content{padding:28px 24px 0}.overview-card{padding:17px}.order-filters label{min-width:135px}.pda-work-grid{gap:17px}.pda-heading{align-items:flex-start}.pda-heading .device-state{max-width:260px}.metrics strong{font-size:25px}.task-lines-table td,.task-lines-table th{padding:12px 10px}}
@media(max-width:850px){:root{--sidebar:160px}.workspace-content{padding:24px 18px 0}.sidebar{padding:25px 9px 14px}nav button{padding:11px 10px;font-size:12px}.overview{gap:9px}.overview-card{padding:15px}.overview-card strong{font-size:28px}.overview-card small{font-size:9px}.status-tabs{gap:17px}.listUpdated{display:none}.pda-work-grid{grid-template-columns:1fr}.material-work{margin-top:10px}.login-layout{margin:7vh 25px}.login-story{padding:38px 30px}.login-card{padding:38px 30px}.login-story h1{font-size:30px}.task-header h2{font-size:20px}}
@media(max-width:680px){.topbar{height:60px;padding:0 16px;gap:10px}.brand{width:auto;gap:8px}.brand-mark{width:29px;height:29px;border-radius:8px}.brand strong{font-size:15px}.brand small{font-size:7px}.top-meta{font-size:10px;gap:6px}.top-meta time{display:none}.user-avatar{width:24px;height:24px;font-size:9px}.sidebar{position:sticky;top:60px;width:100%;padding:8px 12px;background:#f7f9f5;border-right:0;border-bottom:1px solid var(--line);display:block;z-index:15}.sidebar-caption,.workflow-note{display:none}.sidebar nav{display:flex;flex-direction:row;gap:5px;padding-right:34px}nav button{justify-content:center;font-size:11px;min-height:40px;flex:1;padding:8px 4px;gap:5px}nav .icon{width:15px;height:15px}.sidebar-bottom{position:absolute;right:10px;top:11px}.sidebar #logout{width:29px;min-height:33px;padding:6px}.sidebar #logout span{display:none}.workspace-content{margin-left:0;padding:26px 16px 0}main{min-height:calc(100vh - 60px)}h1{font-size:25px}.page-heading{margin-bottom:22px}.page-heading p{font-size:11px}.eyebrow{font-size:9px;margin-bottom:6px}.page-heading button{padding:9px 11px;font-size:11px;min-height:38px}.overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}.overview-card{padding:16px}.overview-card>span{font-size:11px}.overview-card strong{font-size:29px;margin:9px 0 5px}.overview-card small{font-size:10px}.list-toolbar{height:auto;min-height:56px;padding:0 13px}.status-tabs{gap:15px}.status-tabs button{font-size:11px;min-height:55px}.status-tabs span{font-size:9px;padding:1px 4px}.list-toolbar>span{display:none}.filters{padding:16px 13px;gap:12px 10px}.filters label{min-width:130px}.order-filters .search-field{flex:1 1 100%}.filters button{flex:1;min-height:40px}.list-footer{padding:13px;flex-wrap:wrap;font-size:10px}.pagination{margin-left:auto}.page-footnote{text-align:center;font-size:9px}.card{padding:18px;margin:16px 0}.grid{grid-template-columns:1fr}.form-heading{align-items:flex-start}.form-note{max-width:108px;font-size:10px}.order-line{grid-template-columns:20px minmax(0,1fr);gap:8px 12px;padding:12px}.line-number{grid-row:1/4}.order-line label{grid-column:2}.order-line .remove-line{grid-column:2;justify-self:end;margin:0;min-height:32px}.form-bottom{flex-direction:column;align-items:stretch}.form-bottom>div{justify-content:flex-end}.line-summary{font-size:11px}.inline{display:block}.inline button{width:100%;margin-top:12px}.inline input{margin-bottom:0}.pending-banner{display:block;padding:16px}.pending-banner button{width:100%;margin-top:14px;min-height:48px}.pending-banner p{font-size:11px}.pending-banner strong{font-size:15px}.detail-shell{padding:22px 18px}.detail-info{gap:18px}.detail-actions button{flex:1;font-size:11px;padding:10px 9px}footer{font-size:9px;padding:28px 0 18px}.report-card .filters{padding:18px 13px}.report-total{padding:15px;font-size:12px}.login-layout{display:flex;flex-direction:column;margin:30px 16px;border-radius:15px;max-width:450px}.login-story{min-height:230px;padding:24px 26px}.login-story h1{font-size:27px;line-height:1.45;margin:12px 0 14px}.login-story p{font-size:11px;margin:0}.route-art{position:absolute;width:130px;right:25px;bottom:24px;margin:0}.route-art .icon{width:22px;height:22px}.login-story-bottom{display:none}.login-card{padding:28px 26px}.login-card h2{font-size:23px}.login-card>p{font-size:11px}.login-card .login-foot{margin-top:20px}}
/* DT50X-width layout: primary feedback and quantities stay above secondary records. */
@media(max-width:680px){body.mode-pda .workspace-content{max-width:510px;margin:0 auto;padding:20px 14px 0}body.mode-pda .topbar{background:#18352d;color:#f3f7ec;border-color:#18352d}body.mode-pda .brand-mark{background:#c1df9f;color:#18352d}body.mode-pda .brand small{color:#9fbb90}body.mode-pda .user-avatar{background:#35523e;color:#d6e7c7;border-color:#496244}body.mode-pda .sidebar{position:relative;top:0}body.mode-pda nav button.active{color:#2d5238}body.mode-pda #notice:not(:empty){font-size:13px;margin-bottom:15px;padding:14px;border-width:2px}body.mode-pda #notice.error{background:#b9273b;color:white;border-color:#b9273b}.pda-heading{display:block;margin-bottom:16px}.pda-heading h1{font-size:25px;letter-spacing:-.6px}.pda-heading p{display:none}.pda-heading .device-state{justify-content:flex-start;max-width:none;margin-top:15px;gap:6px}.pda-heading .badge{font-size:10px;padding:5px 7px}.device-state button{font-size:10px;min-height:32px;margin-left:auto;padding:5px 8px}.task-loader{padding:16px;margin-top:0}.task-loader summary{font-size:14px;min-height:25px}.task-loader input{min-height:52px;font-size:16px}.task-loader button{min-height:48px;font-size:15px}.task-loader p{font-size:11px}.task-header{margin:22px 0 17px;gap:8px}.task-header h2{font-size:19px;line-height:1.4;margin-bottom:5px}.task-header p{font-size:12px}.task-header small{font-size:9px}.task-header .badge{font-size:11px;padding:6px 8px;margin-top:15px}.pda-work-grid{display:block}.scan-card{padding:17px;margin:0}.scan-card-title{margin-bottom:12px}.scan-card-title strong{font-size:17px}.scan-card-title .icon{width:20px;height:20px}.scan-card-title button{font-size:12px;min-height:34px}.scanner-label input{height:55px;font-size:16px;padding:12px;margin-top:0}.scanner-label input::placeholder{font-size:12px}.scan-submit{min-height:48px;font-size:16px}.scanner-tip{font-size:11px}.scan-feedback{min-height:88px;padding:16px;gap:10px;margin:14px 0;border-width:2px}.scan-feedback strong{font-size:19px}.scan-feedback p{font-size:12px;line-height:1.55}.scan-feedback>span{font-size:29px;width:32px}.metrics{gap:7px;margin:17px 0}.metrics>div{padding:15px 10px}.metrics small{font-size:12px}.metrics strong{font-size:31px;margin:10px 0 6px;letter-spacing:-.8px}.metrics span{font-size:11px}.task-progress>div:first-child{font-size:12px;margin-bottom:10px}.task-progress .progress-track{height:7px}.material-work{margin:23px 0;padding:17px 0}.section-heading{padding:0 15px 14px}.section-heading h3{font-size:16px}.section-heading>span{font-size:11px}.task-lines-table{table-layout:fixed}.task-lines-table th{font-size:11px;padding:11px 9px}.task-lines-table th:first-child{width:40%}.task-lines-table td{font-size:15px;padding:15px 9px;white-space:normal;overflow-wrap:anywhere}.task-lines-table td:first-child{font-size:12px;font-weight:550}.task-lines-table .material-substatus{font-size:10px}.dispatch-actions{margin:20px 0 0}.dispatch-actions>#confirm{min-height:55px;font-size:18px}.dispatch-actions>p{font-size:12px}.dispatch-actions>#confirm:disabled{background:#e3e9df;color:#819178;border-color:#d7e0d1;opacity:1}.secondary-actions{gap:8px}.secondary-actions button{flex:1;font-size:12px;min-height:46px;padding:9px 8px}.audit-records{padding:16px}.audit-records summary,.label-tools summary{font-size:14px;min-height:30px}.audit-records td button{min-height:44px;font-size:13px}.pda-help{font-size:12px;padding:4px 2px}.pda-empty{padding:36px 16px;margin:20px 0}.pda-empty h2{font-size:19px}.pda-empty p{font-size:14px}.pda-empty button{min-height:46px;font-size:14px}.label-tools{padding:16px}.label-tools input,.label-tools button{min-height:48px;font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4;margin:16mm}:root,html,body{background:white;color:black}.topbar,.icon-library,#login,#workspace,#orderDetail{display:none!important}main{margin:0;padding:0;min-height:0}#printArea{display:block!important;background:white;font-size:14px}#printArea h1{text-align:center;font-size:27px;color:black}#printArea img{width:170px}#printArea .printTop{display:flex;justify-content:space-between}#printArea table{margin-top:24px;width:100%}#printArea th,#printArea td{border:1px solid #777;color:black;background:white;white-space:normal;padding:12px;font-size:14px}#printArea .sign{margin-top:55px;display:flex;justify-content:space-between;background:white}}

/* Readability refinements after desktop and mobile visual review. */
.orders-table td{font-size:13px}.orders-table th{font-size:12px;color:#64715f}.orders-table th.number{font-size:12px;color:#64715f}.customer-name{font-size:13px}.order-date{font-size:12px}.order-date span,td small{color:#677660}.material-codes{font-size:12px}.orders-table .material-codes small{font-size:10px}.progress-value{font-size:12px}.badge.status-draft{color:#5c6b56}.task-client{display:block}.task-vehicle{display:inline-flex;align-items:center;gap:7px;font-size:17px;margin-top:6px;color:#426040}.task-vehicle .icon{width:19px;height:19px}.exception-label{color:#9a6427}.has-task.mode-pda #notice{display:none}#orderForm{scroll-margin-top:84px}.scan-feedback strong{line-height:1.35}
@media(max-width:680px){.has-task .pda-heading>div:first-child{display:none}.has-task .pda-heading .device-state{margin-top:0}.has-task .pda-heading{margin-bottom:14px}.device-state button{min-height:44px;font-size:11px;padding:8px}.scan-card-title button{min-height:44px}.task-header h2{font-size:18px}.task-vehicle{font-size:18px}.task-header{margin:18px 0 16px}.has-task .task-loader{margin-bottom:16px}.has-task .task-loader summary{font-size:13px}.scan-card-title{margin-bottom:9px}.scanner-label input{margin-bottom:10px}.scan-card{padding:15px}.scan-feedback{min-height:80px;padding:14px}.metrics>div{padding:13px 9px}.metrics strong{font-size:30px}.metrics small{font-size:11px}}

.task-metadata{margin-top:8px}.task-metadata summary{font-size:11px;font-weight:400;color:#7a8d71;justify-content:flex-start;gap:5px}.task-metadata summary .icon{width:13px;height:13px}.task-metadata[open]>summary{margin-bottom:8px}.task-metadata p{margin:0 0 6px}.task-metadata[open]{margin-bottom:3px}
@media(max-width:680px){.scan-work{display:flex;flex-direction:column}.scan-work>.metrics{order:-1;margin:0 0 16px}.task-header{margin-bottom:19px}.task-header h2{margin-bottom:0}.task-metadata{margin-top:6px}.task-metadata summary{font-size:11px;min-height:28px}.task-loader{padding:12px 16px}.task-loader summary{min-height:30px}.metrics>div{padding:12px 10px}.metrics strong{margin:8px 0 4px}.scan-feedback p{font-size:12px}}
/* V2.1: unified drawers and compact operational tables. */
.orders-table{min-width:1950px;table-layout:auto}.orders-table th{white-space:nowrap}.orders-table td{max-width:220px;white-space:nowrap}.orders-table .operation-col{min-width:238px;box-shadow:-8px 0 14px -12px #56634d}.orders-table th:nth-child(1){min-width:190px}.orders-table th:nth-child(3),.orders-table th:nth-child(4){min-width:150px}.orders-table th:nth-child(2){min-width:150px}.orders-table .order-link{font-size:13px}.master-nav{margin-top:24px;border-top:1px solid #e1e5da;padding-top:20px}.master-nav .sidebar-caption{display:block;margin:0 0 10px 12px}.master-nav button{font-size:12px}.shipment-drawer{width:min(62vw,1000px);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-left:1px solid #dde3d8;margin:0 0 0 auto;border-radius:0;overflow:hidden}.shipment-drawer .detail-shell{height:100%;padding:0;display:flex;flex-direction:column}.shipment-drawer .detail-top{margin:0;padding:22px 28px;border-bottom:1px solid #e2e6dd;flex:none}.shipment-drawer .detail-top h2{font-size:22px;margin:0}.shipment-drawer #orderForm{display:flex;flex:1;min-height:0;flex-direction:column;margin:0;border:0;padding:0;scroll-margin:0}.shipment-drawer .drawer-body{flex:1;min-height:0;overflow-y:auto;padding:24px 28px;overscroll-behavior:contain}.shipment-drawer .drawer-footer{padding:17px 28px;border-top:1px solid #e2e6dd;background:#fff;display:flex;justify-content:flex-end;gap:12px;margin:0;flex:none}.shipment-drawer .grid{gap:16px 20px}.shipment-drawer .section-label{margin:25px 0 16px}.shipment-drawer .auto-fields+.grid{margin-top:16px}.auto-fields{display:flex;gap:22px;font-size:12px;color:#718069;flex-wrap:wrap}.auto-fields strong{display:block;margin-top:6px;color:#25382c;font-weight:550}.shipment-drawer input,.shipment-drawer select{min-height:43px}.shipment-drawer .order-line{grid-template-columns:24px minmax(0,1fr) minmax(130px,180px) minmax(90px,120px) 50px;gap:12px;padding:14px 0;border:0;border-bottom:1px solid #e3e8de;background:transparent;overflow:visible}.shipment-drawer .line-editor{overflow:visible}.lookup{position:relative;display:block}.lookup-list{position:absolute;left:0;right:0;top:100%;z-index:15;max-height:230px;overflow:auto;background:white;border:1px solid #c9d3c3;box-shadow:0 8px 24px #1a32241c;border-radius:8px;padding:5px;margin:4px 0;list-style:none;font-size:13px}.lookup-list li{padding:10px;cursor:pointer;line-height:1.5}.lookup-list li small{display:block;color:#728069;font-size:11px}.lookup-list li.active,.lookup-list li:hover{background:#edf3e7;color:#224e32}.lookup-list li.empty{cursor:default;color:#87927f}.current-material{font-size:15px;font-weight:550;margin:16px 0 0;color:#354d38}.task-lines-table td small{display:block;font-size:10px;color:#76856c}.master-state{font-size:12px}.master-state.inactive{color:#87927c}.master-nav[hidden]{display:none}body:has(dialog[open]){overflow:hidden}
@media(max-width:1000px){.shipment-drawer{width:78vw}}
@media(max-width:680px){.shipment-drawer{width:100vw}.shipment-drawer .detail-top{padding:17px 18px}.shipment-drawer .drawer-body{padding:18px}.shipment-drawer .drawer-footer{padding:14px 18px}.shipment-drawer .grid{grid-template-columns:1fr 1fr;gap:14px 12px}.shipment-drawer .order-line{grid-template-columns:20px minmax(0,1fr);gap:8px}.shipment-drawer .order-line label{grid-column:2}.shipment-drawer .order-line .remove-line{grid-column:2}.shipment-drawer .line-heading{flex-wrap:wrap}.shipment-drawer .line-heading button{min-height:40px}.master-nav{display:flex;gap:4px;margin:8px 0 0;padding:5px 0 0}.master-nav .sidebar-caption{display:none}.master-nav button{min-width:0;font-size:10px}.mode-pda .master-nav{display:none}.current-material{font-size:15px;margin:13px 0 0}.shipment-drawer .auto-fields{gap:14px;font-size:11px}}
@media print{@page{size:A4 landscape;margin:12mm}dialog{display:none!important}#printArea{font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;font-size:10pt;line-height:1.5;width:100%;color:#111}#printArea .print-company{font-size:11pt;font-weight:600;margin:0 0 4mm}#printArea .print-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1.5pt solid #333;padding-bottom:4mm;margin-bottom:4mm}#printArea h1{font-size:23pt;letter-spacing:3pt;text-align:left;margin:0 0 3mm}#printArea .print-head img{width:25mm;height:25mm}#printArea .print-reference{display:flex;gap:12mm;font-size:10pt}#printArea .print-info{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2mm 6mm;margin-bottom:4mm}#printArea .print-info p{margin:0;overflow-wrap:anywhere}#printArea .print-info .wide{grid-column:span 2}#printArea table{border-collapse:collapse;width:100%;table-layout:fixed;margin:0}#printArea th,#printArea td{padding:2.5mm 3mm;border:0.5pt solid #999;background:white;color:#111;font-size:10pt;white-space:normal;overflow-wrap:anywhere}#printArea th:first-child{width:14mm}#printArea th:last-child{width:42mm;text-align:right}#printArea td:last-child{text-align:right;font-variant-numeric:tabular-nums}#printArea thead{display:table-header-group}#printArea tr{break-inside:avoid;page-break-inside:avoid}#printArea .print-total{text-align:right;font-weight:600;margin:4mm 0;break-inside:avoid}#printArea .sign{margin-top:7mm;display:flex;justify-content:space-between;padding-right:20mm;break-inside:avoid}#printArea .print-foot{break-inside:avoid}#printArea .print-head{break-inside:avoid}}
@media print{#printArea th,#printArea td{font-size:9.5pt;line-height:1.4;padding:1.2mm 3mm}#printArea .print-final{break-inside:avoid;page-break-inside:avoid}#printArea .print-footer-row td{border:0;padding:0;text-align:left}#printArea .print-total{margin:4mm 0}#printArea .sign{margin-top:6mm;padding-bottom:3mm}}
@media print{#printArea th,#printArea td{font-size:10pt;line-height:1.35;padding:.6mm 3mm}}

/* Temporary PDA diagnostics: no business controls or counters. */
.scan-diagnostics{margin-bottom:16px;padding:14px 16px}.diagnostic-switch{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.diagnostic-switch input{width:20px;min-height:20px;margin:0}.scan-diagnostics dl{margin:10px 0;font-size:13px}.scan-diagnostics dt{color:var(--muted);margin-top:10px}.scan-diagnostics dd{margin:3px 0;overflow-wrap:anywhere;color:var(--ink)}.scan-diagnostics pre{font:11px/1.6 monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto;background:var(--canvas);padding:10px;border-radius:6px}.scan-diagnostics>p{font-size:12px;margin:8px 0}
/* V2.2: independent accounts and task entry. */
.my-task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}.my-task-list .card{margin:0}.my-task h2{margin-top:18px;font-size:19px}.my-task p{overflow-wrap:anywhere}.my-task button{width:100%;min-height:48px}#detailAssignee{width:180px;margin:0}.detail-actions.drawer-footer{flex-wrap:wrap}#employeeError,.reset-error{color:var(--red)}
/* Eight-column editor scrolls within the drawer; the scan page retains its mobile density. */
.shipment-drawer .line-editor{overflow-x:auto;overscroll-behavior-x:contain}.shipment-drawer .order-line{min-width:1270px;grid-template-columns:24px 170px 230px 140px 105px 105px 70px 90px 90px 50px;gap:14px;padding:14px 12px}.shipment-drawer .order-line label,.shipment-drawer .order-line .remove-line{grid-column:auto}.shipment-drawer .line-number{grid-row:auto}.line-description{font-weight:400}.paste-dialog{width:min(1180px,96vw);max-width:96vw}.paste-dialog .detail-shell{padding:24px}.paste-preview{max-height:300px;border:1px solid var(--line);margin:14px 0}.paste-preview table{min-width:1100px}.paste-preview td{white-space:normal;min-width:90px;padding:10px}.paste-preview td:last-child{min-width:240px}.paste-invalid td{background:#fff4f4;color:var(--red)}.paste-consent{display:flex;align-items:center;gap:10px;margin:12px 0}.paste-consent input{width:18px;min-height:18px;margin:0}.line-heading .row-actions{flex-wrap:wrap}
#materialQuickError{color:var(--red)}#materialFilePreview table{min-width:600px}#materials .page-heading .row-actions{flex-wrap:wrap}
.line-scroll-hint{display:block;margin:0 0 8px;font-size:11px;color:#788571}.detail-eight table{min-width:1100px}.detail-eight td{white-space:normal;min-width:95px}.detail-eight th:nth-child(2),.detail-eight td:nth-child(2){min-width:180px}.line-editor:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media print{#printArea .print-info{font-size:9pt;gap:2.3mm 4mm}#printArea .print-state{margin:2mm 0 0;font-size:9pt}#printArea .shipment-print-table th,#printArea .shipment-print-table td{font-size:9pt;line-height:1.45;padding:1.5mm 1.5mm;vertical-align:middle;text-align:left;word-break:normal;overflow-wrap:anywhere;border-color:#555}#printArea .shipment-print-table th:first-child,#printArea .shipment-print-table th:last-child{width:auto}#printArea .shipment-print-table th{font-weight:600}#printArea .shipment-print-table td.number{text-align:right;font-variant-numeric:tabular-nums}#printArea .print-totals{display:flex;justify-content:space-between;gap:8mm;font-size:10pt;font-weight:600;margin:3mm 0}#printArea .print-totals p{margin:0}#printArea .print-footer-row td{border:0;padding:0}#printArea .print-foot .sign{margin-top:9mm;padding:0;gap:8mm;font-size:9pt}#printArea .sign-date{display:flex;justify-content:space-between;margin:5mm 0;font-size:9pt}#printArea .print-note{font-size:8pt;color:#333;margin:5mm 0 0}#printArea .print-exception{font-size:9pt;margin:3mm 0}#printArea .print-final{break-inside:avoid;page-break-inside:avoid}}

@media print{#printArea .shipment-print-table th,#printArea .shipment-print-table td{line-height:1.25;padding:.8mm 1.3mm}#printArea .shipment-print-table th:first-child,#printArea .shipment-print-table td:first-child{font-size:8pt;padding:.8mm .6mm}#printArea .shipment-print-table td:nth-child(2){font-family:"Courier New",monospace;font-size:8pt}#printArea .print-foot .sign{margin-top:6mm}#printArea .sign-date{margin:4mm 0}#printArea .print-note{margin:3mm 0 0}}
@media print{#printArea .shipment-print-table th,#printArea .shipment-print-table td{line-height:1.1;padding:.3mm 1.3mm}#printArea .shipment-print-table th:first-child,#printArea .shipment-print-table td:first-child{padding:.3mm .6mm}}

#identity{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#loginMessage:empty{display:none}@media(max-width:680px){#identity{max-width:140px}}
/* PDA-UX-01: stable scanning surface; details have their own scroll container. */
@media screen{
.mode-pda.has-task #notice,.mode-pda footer{display:none}.mode-pda #pda{max-width:500px;margin:0 auto}.mode-pda.has-task .pda-heading{display:none}.mode-pda #taskLoader[hidden],#scanButton[hidden]{display:none!important}
.pda-task-identity{padding:8px 0 18px;border-bottom:1px solid var(--line)}.pda-task-identity>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.pda-task-identity h2{font-size:22px;line-height:1.3;margin:0;overflow-wrap:anywhere}.pda-task-identity #taskNumber{font-size:12px;white-space:nowrap;color:#596b62}.pda-task-identity p{margin:8px 0 0;font-size:18px;font-weight:600;color:#354b42}
#pda .metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:20px 0;background:transparent;border:0;box-shadow:none}#pda .metrics>div{padding:8px 4px;text-align:center;border:0;border-right:1px solid var(--line);background:transparent;border-radius:0}#pda .metrics>div:last-child{border:0}#pda .metrics small{font-size:13px}#pda .metrics strong{display:block;font-size:clamp(24px,7.8vw,36px);height:48px;line-height:48px;letter-spacing:-1px;overflow:hidden;font-variant-numeric:tabular-nums}#pda .metrics span{font-size:12px}#pda .scanned-metric strong{color:var(--green)}#pda .shortage-metric strong{color:var(--amber)}
#pda .scan-card{padding:0;margin:0;border:0;background:transparent;box-shadow:none}#pda .scanner-label{font-size:16px;color:var(--ink)}#pda #boxCode{min-height:58px;font-size:18px;margin:10px 0 0;border:1.5px solid #9fb9aa;background:#fff;padding:15px 12px}
#pda .scan-feedback{height:64px;min-height:64px;max-height:64px;margin:12px 0;padding:10px 12px;box-sizing:border-box;overflow:hidden;align-items:center;border-radius:8px}#pda .scan-feedback strong{font-size:17px}#pda .scan-feedback p{font-size:12px;margin:2px 0 0;line-height:1.4}#pda .scan-feedback p:empty{display:none}#pda .scan-feedback.idle{background:transparent;border-color:transparent;color:#748277}#pda .dispatch-actions{display:flex;flex-direction:column;gap:0;margin:0;padding:0;background:transparent;border:0}#pda #confirmHint{font-size:13px;height:24px;margin:0 0 8px;text-align:center;white-space:nowrap;overflow:hidden}#pda #confirm{width:100%;min-height:56px;font-size:19px}#pda #pdaDetails{min-height:48px;font-size:16px;margin-top:4px;width:100%}
.pda-detail-dialog{width:min(500px,100vw);max-width:100vw;height:min(760px,94dvh);max-height:94dvh;padding:0;margin:auto;border:1px solid var(--line);border-radius:16px;background:var(--canvas);color:var(--ink)}.pda-detail-dialog::backdrop{background:#20372d66}.pda-detail-shell{display:flex;flex-direction:column;height:100%;min-height:0}.pda-detail-shell>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:white}.pda-detail-shell h2{margin:0;font-size:20px}.pda-detail-shell button{min-height:44px}.pda-detail-tabs{display:flex;flex-shrink:0;padding:0 12px;gap:6px;border-bottom:1px solid var(--line);background:white}.pda-detail-tabs button{flex:1;color:var(--muted);background:transparent;border-radius:0;border-bottom:3px solid transparent;font-size:16px}.pda-detail-tabs [aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}.pda-detail-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:16px 18px;flex:1}.pda-detail-body [hidden]{display:none!important}.pda-detail-body #pdaDetailNotice:empty{display:none}.pda-detail-body #pdaDetailNotice{color:var(--red)}.pda-line{padding:16px;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:12px}.pda-line>strong{font-size:18px}.pda-line>p{font-size:15px;margin:4px 0 12px;overflow-wrap:anywhere}.pda-line dl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0}.pda-line dt{font-size:12px;color:var(--muted)}.pda-line dd{font-size:21px;font-variant-numeric:tabular-nums;margin:3px 0 0}.pda-line dl>div:last-child dd{color:var(--amber)}.pda-line.completed dl>div:last-child dd{color:var(--green);font-size:16px;line-height:32px}.pda-detail-empty{text-align:center;padding:32px 0;color:var(--green)}.pda-detail-body .detail-info{grid-template-columns:1fr 1fr;gap:16px}.pda-detail-body .detail-info dd{font-size:15px;overflow-wrap:anywhere}.pda-detail-body .card{padding:14px;margin:16px 0}.pda-settings-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pda-detail-body table{min-width:640px}.pda-detail-body .device-state{display:flex;flex-wrap:wrap;gap:8px}.pda-detail-body .muted{font-size:12px}.pda-detail-body #soundState{display:inline-flex}#emptySettings{margin-top:16px}
}
@media screen and (max-width:680px){.mode-pda .topbar{height:48px;position:relative;padding:0 14px}.mode-pda .top-context,.mode-pda #appDate{display:none}.mode-pda .brand small{display:none}.mode-pda .brand strong{font-size:15px}.mode-pda .brand-mark{width:26px;height:26px}.mode-pda .sidebar{padding:6px 12px;margin:0;position:relative}.mode-pda .sidebar-caption,.mode-pda .sidebar-bottom{display:none}.mode-pda .sidebar nav{margin:0}.mode-pda .sidebar button{min-height:40px}.mode-pda .workspace-content{padding:14px 16px}.mode-pda #task{padding:0}.mode-pda .pda-task-identity{padding:2px 0 14px}.mode-pda #pda .metrics{margin:14px 0}.pda-detail-dialog{margin:auto auto 0;border-radius:16px 16px 0 0}.mode-pda #pendingBox{margin:0 0 8px;padding:10px}.mode-pda #pendingBox p{font-size:13px;margin:4px 0}.mode-pda #pendingBox button{min-height:44px}}
@media screen{body.mode-pda #pda{animation:none;transform:none}#pda .metrics strong{margin:8px 0 4px}#pda .pda-task-identity>div{min-height:30px}}
@media screen and (max-width:680px){body.mode-pda .workspace-content{padding:14px 16px 0}.mode-pda .sidebar-bottom{display:block}.mode-pda .sidebar .workflow-note{display:none}}
@media screen{#pda .pda-task-identity>div{height:44px;min-height:44px;align-items:center}#pda .pda-task-identity h2{flex:1;min-width:0;font-size:20px;line-height:22px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#pda .metrics>div{padding:4px}#pda .metrics strong{height:40px;line-height:40px;margin:4px 0}#pda .scan-feedback{height:56px;min-height:56px;max-height:56px}#pda #confirmHint{height:22px;line-height:22px;margin-bottom:6px}#pda #pdaDetails{min-height:44px;margin-top:2px}}
@media screen and (max-width:680px){.mode-pda .pda-task-identity{padding:2px 0 10px}.mode-pda .pda-task-identity p{margin-top:6px;line-height:25px}.mode-pda #pda .metrics{margin:12px 0}.mode-pda .sidebar button[data-tab=pda] span{font-size:0}.mode-pda .sidebar button[data-tab=pda] span::after{content:'装车复核';font-size:11px}}
@media screen{#pda #taskNumber{max-width:48%;white-space:normal;overflow-wrap:anywhere;line-height:14px}}
/* V2.3: spacious order wizard, three-column workspace and customer association. */
.wizard-steps{display:flex;list-style:none;gap:10px;margin:0;padding:18px 30px;border-bottom:1px solid var(--border,#dde5df);background:#f7f9f6;flex-shrink:0}.wizard-steps li{flex:1;font-size:14px;color:#7d8981;padding:9px 12px;border-radius:8px}.wizard-steps li.active{background:#e2eee5;color:#19624d;font-weight:700}#orderForm .drawer-body{flex:1;min-height:0;overflow-y:auto}#orderStep1{max-width:100%}#orderStep1 input[readonly]{color:#52605a;background:#f6f8f5}#orderStep1 input[name=customer]{display:none}#orderStep2 .order-line{display:grid;grid-template-columns:28px minmax(210px,1fr) minmax(300px,2fr) 160px 70px;gap:14px;min-width:850px;align-items:start}#orderStep2 .line-editor{overflow:visible}#orderStep2 .line-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}#orderStep2 .line-number{padding-top:39px}#orderStep2 .remove-line{margin-top:28px}#orderStep2 .order-line input{width:100%}.shipment-drawer.materials-step{width:min(1400px,96vw);max-width:96vw}.shipment-drawer.materials-step .detail-shell{width:100%}#orderStep2{padding-bottom:10px}#orderStep3 .detail-info{margin-top:20px}.customer-recipients{margin:24px 0;border:1px solid #dce4dd;border-radius:10px;padding:16px}#customerRecipients{display:grid;grid-template-columns:1fr 1fr;gap:8px}#customerDefaultsHint{background:#f0f5ed;border-radius:8px;padding:14px;font-size:14px}#wizardError:empty{display:none}.drawer-footer{gap:12px}.drawer-footer #cancelEdit{margin-right:auto}#lineMapping{background:#f3f6ef;padding:16px;border-radius:10px;margin:12px 0}#lineMapping select{min-width:150px}.paste-dialog{max-width:min(1120px,96vw)}#backMyTasks{margin-bottom:10px}.employee-view [data-tab]:not([data-tab=mytasks]){display:none!important}.employee-view .sidebar .master-nav{display:none!important}.completion-ready #confirmHint{background:#e0f2e5;color:#126236;font-size:18px;font-weight:700;padding:14px;border-radius:10px}.completion-ready #confirm{background:#147343}.employee-view #switchTask{display:none}.my-task{margin:0}.my-task button{width:100%;min-height:52px}.my-task h2{font-size:22px}.my-task .task-amounts{display:flex;gap:24px;font-size:17px}.task-amounts strong{font-size:26px;display:block}.my-task-list{display:grid;gap:16px}.employee-view .brand{pointer-events:none}.employee-view.mode-pda .sidebar{display:none!important}
@media(max-width:900px){#orderStep2 .line-editor{overflow-x:auto}.wizard-steps{padding:12px;gap:4px}.wizard-steps li{padding:9px 5px;font-size:12px}.shipment-drawer.materials-step{width:100vw;max-width:100vw}.customer-recipients #customerRecipients{grid-template-columns:1fr}#orderStep2 .row-actions{flex-wrap:wrap}.employee-view #mytasks .page-heading h1{font-size:27px}.employee-view #mytasks .page-heading{gap:10px}.employee-view #mytasks{padding:4px 0}.employee-view .sidebar .workflow-note{display:none}.employee-view #mytasks .my-task-list{grid-template-columns:1fr}.employee-view #mytasks .my-task{padding:20px}.completion-ready #confirmHint{font-size:17px}}
/* Keep completion feedback inside the original fixed-height PDA surface. */
.completion-ready #pda #confirmHint{padding:0 8px;height:22px;line-height:22px;font-size:16px;border-radius:5px}#detailContent .detail-eight table{min-width:0;width:100%}.paste-preview table{min-width:850px}
@media print{#printArea .shipment-print-table.short-document .print-material-row td{padding:2.6mm 1.8mm;line-height:1.35;font-size:10pt}#printArea .shipment-print-table.short-document th{padding:1.6mm 1.8mm;font-size:10pt}#printArea .shipment-print-table.short-document .print-foot .sign{margin-top:12mm}#printArea .shipment-print-table:not(.short-document) .print-material-row td{padding:1mm 1.3mm;line-height:1.2}}
/* V2.3 full workspace: compact operational tables; scanner receiver geometry is unchanged. */
.secondary-admin{margin-top:18px;border-top:1px solid var(--border);padding-top:12px}.secondary-admin summary{cursor:pointer;padding:10px;color:var(--muted);font-size:12px}.secondary-admin .sidebar-caption{display:none}.sidebar nav>button{margin:3px 0}.page-heading{margin-bottom:18px}.overview{display:none}.compact-order-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.compact-order-fields label:first-child{grid-column:span 2}.compact-order-fields input,.compact-order-fields select{padding:10px 12px}.address-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;border-top:1px solid #dde5df;margin-top:14px;padding-top:14px}.address-summary label input{padding:8px 10px;background:#f6f8f5;color:#52645b}.order-workspace #orderForm{background:white;border:1px solid #dce4de;border-radius:10px}.order-workspace .drawer-body{overflow:visible;padding:20px}.order-workspace .drawer-footer{position:sticky;bottom:0;background:white;border-top:1px solid #dce4de;padding:12px 20px;z-index:2}.order-workspace #orderStep2{margin-top:22px}.order-workspace .section-label{margin:0}.order-workspace .line-editor{max-height:52vh;overflow:auto;border:1px solid #dce4de;min-width:0}.order-workspace .order-line{padding:9px 12px;gap:12px;border-bottom:1px solid #e6ece7;border-radius:0;grid-template-columns:24px minmax(160px,1fr) minmax(200px,2fr) 140px 68px}.order-workspace .order-line input{padding:9px 10px}.order-workspace .order-line label{font-size:12px}.order-workspace .line-summary{margin:10px 0}.order-workspace .line-heading{gap:12px}.order-workspace #editReasonLabel{display:block;margin-top:16px}.order-workspace #editReasonLabel[hidden]{display:none}.save-result{border:1px solid #c6ddcb;background:#eff8ef;padding:24px;border-radius:10px;margin-bottom:18px}.save-result strong{font-size:20px}.warehouse-row{margin:14px 0;padding:14px;border:1px solid #dce4de;border-radius:6px}.task-tools .filters{padding:12px 16px}.task-tools .status-tabs{padding:10px 16px;border-bottom:1px solid #e1e8e2}.compact-tasks{border-radius:0 0 8px 8px}.task-table th,.task-table td{padding:12px;font-size:13px}.task-table .order-link{font-size:13px}.task-table button{white-space:nowrap}.task-alert td{background:#fff3e7}.task-state-SHORTAGE{background:#fff0df;color:#964c10}.task-state-PAPER_PENDING{background:#fff8db;color:#755605}.task-state-REVIEWED{background:#e4f0fa;color:#245777}.task-state-SHIPPED{background:#e4f3e9;color:#28663e}.paper-banner{font-size:14px;padding:12px;line-height:1.6;margin:8px 0}.paper-banner button{margin-top:8px}.workflow-audit{border-bottom:1px solid #dce4de;padding-bottom:16px;margin-bottom:16px}.workflow-audit details{margin-top:16px}.workflow-audit details p{font-size:12px}.pda-line>button{min-height:44px;width:100%;margin-top:8px}.order-workspace .drawer-body>section>p.muted{font-size:12px;line-height:1.5;margin:8px 0}.order-workspace .address-summary{font-size:12px}.order-workspace .compact-order-fields label:first-child input{margin-bottom:6px}#workflowDialog{max-width:540px}#workflowDialog .detail-shell{padding:22px;gap:18px}#workflowDialog .paste-consent{align-items:flex-start}#reports table th,#reports table td{white-space:nowrap;padding:12px}#mytasks .page-heading{margin-bottom:14px}.task-tools .status-tabs{flex-wrap:wrap}.compact-tasks .row-actions{flex-wrap:nowrap}#customerDialog .drawer-body h3{font-size:15px;margin:18px 0 10px}@media(min-width:1000px){.workspace-content{padding:24px 28px}.page-heading h1{font-size:26px}.sidebar{width:218px}.orders-table-wrap table{font-size:13px}.orders-table-wrap td,.orders-table-wrap th{padding:11px}}
@media(max-width:600px){.compact-order-fields,.address-summary{grid-template-columns:1fr}.compact-order-fields label:first-child{grid-column:auto}.order-workspace .drawer-body{padding:14px}.order-workspace .order-line{min-width:680px}.task-tools .filters{padding:12px;display:flex;flex-wrap:wrap;gap:8px}.task-tools .filters label{width:100%}.task-tools .status-tabs{padding:8px;gap:4px}.task-tools .status-tabs button{padding:10px 8px;min-height:44px;font-size:12px}.task-table,.task-table tbody{display:block;width:100%}.task-table thead{display:none}.task-table tr.task-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 12px;border-bottom:1px solid #dce4de;gap:4px 8px}.task-table td{display:block;padding:3px 0;border:0;font-size:14px;overflow-wrap:anywhere}.task-table td:first-child{grid-column:1/-1}.task-table td:nth-child(2){grid-column:span 2}.task-table td:nth-child(4)::before{content:'负责 ';color:#667c70;font-size:12px}.task-table td:nth-child(5)::before{content:'计划 ';color:#667c70;font-size:12px}.task-table td:nth-child(6)::before{content:'已扫 ';color:#667c70;font-size:12px}.task-table td:nth-child(7)::before{content:'剩余 ';color:#667c70;font-size:12px}.task-table td:nth-child(8){grid-column:1/3}.task-table td:last-child{grid-column:3;text-align:right}.task-table td:last-child button{min-height:44px;padding:8px 12px}.task-table .order-link{font-size:14px;padding:0;min-height:26px;text-align:left}.task-alert{background:#fff3e7}.task-alert td{background:none}.task-tools .filters label[data-manager]{display:none}.compact-tasks{overflow:visible}.task-table .row-actions{justify-content:end}.list-footer{padding:10px}.paper-banner{margin-top:8px}.paper-banner strong{display:block}.secondary-admin{display:none}.order-workspace .line-heading{align-items:flex-start;flex-direction:column}.order-workspace .row-actions{flex-wrap:wrap}}

#orderWorkspace #orderForm .drawer-body{overflow:visible}#orderWorkspace #orderStep2 .line-editor{overflow:auto;max-height:48vh}#orderWorkspace #orderStep2 .order-line{min-width:680px;grid-template-columns:24px minmax(150px,1fr) minmax(190px,2fr) 130px 64px;padding:9px 12px;gap:12px}#orderWorkspace #orderStep2 .order-line .field-error:empty{display:none}#orderWorkspace #orderStep2 .line-number{padding-top:29px}#orderWorkspace #orderStep2 .remove-line{margin-top:24px}#orderWorkspace #orderStep2 .order-line input{margin:5px 0 0;min-height:38px}#orderWorkspace .compact-order-fields{gap:8px 12px}#orderWorkspace .compact-order-fields input,#orderWorkspace .compact-order-fields select{margin:5px 0 0;min-height:38px}#orderWorkspace .address-summary{grid-template-columns:1fr 1fr;gap:8px 12px}#orderWorkspace .address-summary select{margin:5px 0 0;min-height:38px}#orderWorkspace .order-contact-details{grid-column:1/-1;font-size:12px}#orderWorkspace .order-contact-details summary{padding:6px 0;color:#6b7b70;font-weight:400}#orderWorkspace .contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#orderWorkspace .contact-grid input{margin:5px 0 0}#orderWorkspace #customerDefaultsHint{font-size:12px;background:none;padding:0;margin:8px 0}#orderWorkspace #orderStep2{margin-top:16px}#orderWorkspace .drawer-footer{display:flex;justify-content:flex-end;gap:10px}#orderWorkspace .drawer-footer #cancelEdit{margin-right:0}.secondary-admin .master-nav{border-top:0;padding-top:4px;margin-top:0}.secondary-admin summary{border-top:1px solid var(--line)}@media(min-width:1000px){:root{--sidebar:218px}}@media(max-width:600px){.task-table td:nth-child(1){grid-column:1/3;grid-row:1}.task-table td:nth-child(2){grid-column:1/3;grid-row:2}.task-table td:nth-child(3){grid-column:3;grid-row:2;text-align:right}.task-table td:nth-child(4){grid-column:1/3;grid-row:4}.task-table td:nth-child(5){grid-column:1;grid-row:3}.task-table td:nth-child(6){grid-column:2;grid-row:3}.task-table td:nth-child(7){grid-column:3;grid-row:3;text-align:right}.task-table td:nth-child(8){grid-column:3;grid-row:1;text-align:right}.task-table td:nth-child(9){grid-column:3;grid-row:4}#orderWorkspace .contact-grid{grid-template-columns:1fr}#orderWorkspace .address-summary{grid-template-columns:1fr}}@media print{#workflowDialog{display:none!important}}

@media screen and (max-width:600px){.mode-pda.has-task .sidebar{display:none!important}}

#orderWorkspace .drawer-footer .line-summary{margin-right:auto;align-self:center}#orderWorkspace .drawer-footer .line-summary{font-size:12px}#orderWorkspace .drawer-footer{min-height:64px}

@media print{#printArea .print-company{margin-bottom:2mm}#printArea .print-head{padding-bottom:2mm;margin-bottom:3mm}#printArea .print-head h1{font-size:21pt;letter-spacing:2pt;margin-bottom:2mm}#printArea .print-head p{font-size:8.5pt;margin:1mm 0}#printArea .print-reference{font-size:9pt;gap:8mm}#printArea .print-info{font-size:8.5pt;gap:1.2mm 4mm;line-height:1.3;margin-bottom:3mm}#printArea .print-info p{line-height:1.3}#printArea .shipment-print-table td:nth-child(2){font-family:Consolas,"SFMono-Regular",monospace;font-weight:500;font-size:8.5pt;color:#000}#printArea .shipment-print-table.medium-document .print-material-row td{padding:.6mm 1.3mm;line-height:1.15}#printArea .print-foot p{font-size:8pt;margin:2mm 0}#printArea .print-foot .sign{margin-top:5mm}#printArea .sign-date{margin:3mm 0}}
@media print{#printArea .print-company{font-size:10pt;line-height:1.2;margin-bottom:1mm}#printArea .print-head{padding-bottom:1mm;margin-bottom:2mm}#printArea .print-head h1{font-size:20pt;line-height:1.15;margin-bottom:1mm}#printArea .print-head img{width:21mm;height:21mm}#printArea .print-reference{line-height:1.2}#printArea .print-head p{line-height:1.2;margin:1mm 0 0}#printArea .print-info{gap:1mm 4mm;line-height:1.2;margin-bottom:2mm}#printArea .print-info p{line-height:1.2}#printArea .print-totals{margin:2mm 0}#printArea .print-foot .sign{margin-top:3mm}#printArea .sign-date{margin:2mm 0}}

@media print{#printArea .shipment-print-table.medium-document .print-material-row td{padding:.35mm 1.3mm;line-height:1.1}#printArea .shipment-print-table.medium-document .print-footer-row td{padding:0}}

@media screen and (max-width:600px){#mytasks .page-heading>div:first-child{min-width:0}#mytasks .page-heading>.row-actions{flex-shrink:0}}
