:root{--blue:#1769ed;--blue-dark:#105bd4;--blue-light:#edf4ff;--ink:#202936;--muted:#84909e;--line:#e8ecf1;--surface:#fff;--bg:#f5f7fa;--amber:#a77017;--amber-bg:#fff7e7;--green:#258363;--red:#c84949;--radius:14px;--shadow:0 3px 14px #253b5b04}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #86b5ff;outline-offset:3px}button svg,.button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{border:0}input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer;margin:0;flex-shrink:0}input[type=search]::-webkit-search-cancel-button{cursor:pointer}[hidden]{display:none!important}.skip-link{position:fixed;top:-100px;left:20px;background:var(--blue);color:white;padding:12px;z-index:200}.skip-link:focus{top:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:202px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 16px 24px;z-index:20}.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:19px;padding:0 10px 42px;letter-spacing:.3px}.brand-mark{background:var(--blue);width:36px;height:40px;border-radius:11px;display:grid;place-items:center;box-shadow:0 4px 9px #1769ed25}.brand-mark svg{width:23px;height:25px;fill:none;stroke:#fff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.brand-sub{display:block;font-size:11px;font-weight:500;letter-spacing:1.8px;color:var(--muted);margin-top:1px}.nav-label{font-size:11px;color:#9ca5b0;letter-spacing:1px;padding:0 15px 13px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;height:44px;background:none;padding:0 14px;margin:5px 0;border-radius:8px;color:#738093;font-size:13px;transition:background .15s}.nav-item svg{width:17px;height:17px;stroke-width:1.6}.nav-item:hover{background:#f7f9fc}.nav-item.active{background:var(--blue-light);color:var(--blue);font-weight:650}.nav-dot{display:none;width:5px;height:5px;border-radius:50%;background:var(--blue);margin-left:auto}.active .nav-dot{display:block}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:21px 10px 0;display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#627083}.sidebar-bottom small{display:block;color:#9ba4b0;font-size:11px;margin-top:4px}.connection-dot{width:6px;height:6px;background:#6aa48b;border-radius:50%;margin-top:6px}.app-shell{margin-left:202px;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 34px;background:#fff;border-bottom:1px solid var(--line)}.top-title{font-size:13px;font-weight:650;display:flex;align-items:center;gap:14px}.org-label{font-size:11px;font-weight:450;border-left:1px solid #e0e5ec;padding-left:14px;color:#8994a2;white-space:nowrap}.connection-status{display:flex;align-items:center;gap:7px;font-size:12px;background:#f5f7fa;padding:7px 11px;border:1px solid #ebeff4;border-radius:20px;color:#758294}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#a2abb8;flex-shrink:0}.connection-status.connected{color:var(--green);background:#f0faf5;border-color:#dff0e8}.connected .status-dot{background:var(--green)}main{padding:32px 34px 20px;max-width:1720px;margin:0 auto;outline:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.eyebrow{font-size:11px;letter-spacing:1.7px;color:#9aa5b3;font-weight:650;margin-bottom:8px}.page-heading h1{font-size:27px;letter-spacing:-.7px;line-height:1.4;margin:0 0 7px;font-weight:700}.page-heading p{margin:0;color:#8693a3;font-size:12px}#heading-actions{display:flex;align-items:center;gap:9px;padding-top:15px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:550;border-radius:7px;padding:10px 15px;min-height:38px;white-space:nowrap;border:1px solid transparent;transition:background .15s,box-shadow .15s}.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 2px 4px #1769ed12}.primary:hover:not(:disabled){background:var(--blue-dark);box-shadow:0 4px 8px #1769ed20}.primary:disabled{background:#c7d9f5;color:#fff;border-color:#c7d9f5;box-shadow:none}.secondary{background:#fff;border-color:#dfe5ed;color:#626f80}.secondary:hover:not(:disabled){background:#f8faff}.small{font-size:12px;min-height:29px;padding:5px 10px}.full{width:100%}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-header{padding:23px 23px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel h2{font-size:15px;margin:0;display:flex;align-items:center;gap:8px;font-weight:650}.panel-header p{color:#9aa4b1;font-size:11px;margin:5px 0 0}.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:20px;padding:0 6px;background:#f0f3f7;color:#7b8797;font-size:11px;line-height:1;font-weight:600;border-radius:5px}.count-badge.blue{background:var(--blue-light);color:var(--blue)}.text-link{font-size:11px;color:#8a97a8;white-space:nowrap}.text-link:hover{color:var(--blue)}.catalog-toolbar{display:flex;align-items:center;gap:10px;padding:0 23px 16px}.search-box{display:flex;align-items:center;gap:9px;border:1px solid #e4e9f0;border-radius:7px;background:#fafbfd;padding:0 11px;height:37px;flex:1;min-width:0}.search-box:focus-within{border-color:#94bcfa;box-shadow:0 0 0 3px #1769ed09}.search-box svg{width:16px;height:16px;fill:none;stroke:#96a3b4;stroke-width:1.7;flex-shrink:0}.search-box input{outline:none!important;border:0;background:transparent;width:100%;min-width:0;font-size:12px;color:var(--ink)}.search-box input::placeholder{color:#a4adba}.search-box kbd{font-size:11px;white-space:nowrap;color:#a6afbb;background:#f1f4f8;border:1px solid #e6ebf2;padding:1px 4px;border-radius:3px}.filter-button{background:#fff;border:1px solid #e4e9f0;padding:7px 9px;min-height:37px;border-radius:7px;font-size:11px;color:#8590a0;white-space:nowrap}.filter-button span{padding-left:3px}.filter-button[aria-pressed=true]{background:var(--amber-bg);border-color:#eed9ad;color:var(--amber)}.category-bar{display:flex;align-items:center;gap:18px;padding:0 23px;border-bottom:1px solid var(--line)}.category{position:relative;display:flex;align-items:center;gap:5px;background:none;padding:10px 0 13px;color:#8b97a6;font-size:12px;white-space:nowrap}.category.active{color:var(--blue);font-weight:650}.category.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--blue);border-radius:2px}.category-note{font-size:11px;padding:0 3px;background:#f3f5f8;color:#9aa4b2;border-radius:3px;font-weight:500}.table-wrap{overflow:auto;max-height:646px;scrollbar-width:thin;scrollbar-color:#e0e5ec transparent}.material-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}.material-table thead{position:sticky;top:0;z-index:2}.material-table th{background:#fafbfd;padding:11px 10px;color:#9aa5b3;font-size:11px;font-weight:500;text-align:left;border-bottom:1px solid var(--line)}.material-table th:nth-child(2){width:30%}.material-table th:nth-child(3){width:auto}.material-table td{padding:13px 10px;border-bottom:1px solid #f0f3f6;vertical-align:middle}.material-table tr:last-child td{border-bottom:0}.material-table tbody tr:hover{background:#fbfcff}.material-table tr.selected{background:#f5f9ff!important}.material-table .select-col{width:40px;padding-left:22px}.material-table td:first-child{padding-left:22px}.material-table .action-col{width:59px;text-align:center}.material-name{font-size:12px;font-weight:550;line-height:1.5;margin-bottom:3px}.material-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#a0aab6;font-size:11px}.material-model{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:11px;color:#6c7b8e;line-height:1.65;overflow-wrap:anywhere}.review-tag{display:inline-flex;font-size:11px;color:var(--amber);background:var(--amber-bg);border:1px solid #f4e7cc;border-radius:4px;padding:0 4px;margin-top:4px}.add-button{width:26px;height:26px;display:grid;place-items:center;background:#f0f6ff;color:var(--blue);border:1px solid #dce9fe;border-radius:6px;margin:auto;font-size:19px;line-height:1}.add-button:hover{background:#e3eeff}.add-button.in-basket{color:#8aa6d0;background:#f8faff;border-color:#e8eff9;font-size:13px}.table-footer{padding:12px 23px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#a2acb9}.bulk-bar{display:flex;justify-content:space-between;align-items:center;padding:9px 20px;background:#f0f6ff;border-bottom:1px solid #deebff;color:var(--blue);font-size:12px;gap:10px}.bulk-bar>div{display:flex;gap:9px;align-items:center}.text-button{padding:4px 0;background:none;color:var(--blue);font-size:12px}.text-button:hover{text-decoration:underline}.muted{color:#9ba5b2}.basket-panel{position:sticky;top:20px}.basket-header{display:flex;justify-content:space-between;align-items:center;padding:23px 21px 19px;border-bottom:1px solid var(--line)}.basket-header .eyebrow{font-size:11px;letter-spacing:1.5px;margin-bottom:6px}.basket-header h2{font-size:17px}.basket-items{max-height:480px;overflow:auto;scrollbar-width:thin}.basket-empty{text-align:center;padding:48px 20px 44px;color:#9ca7b5}.basket-empty-icon{width:56px;height:56px;display:grid;place-items:center;margin:0 auto 19px;border:1px dashed #d9e2ed;border-radius:14px;background:#fbfcfe}.basket-empty-icon svg{width:25px;height:25px;fill:none;stroke:#b9c6d6;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.basket-empty strong{font-size:12px;color:#7e8da0;display:block;font-weight:500}.basket-empty p{font-size:11px;line-height:1.8;margin:6px 0 0}.basket-line{padding:17px 20px;border-bottom:1px solid #edf1f6}.basket-line:last-child{border-bottom:0}.basket-line-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.basket-line-title{font-size:12px;font-weight:550}.basket-line-code{font-size:11px;color:#a1acb9;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;margin-left:4px}.remove-line{color:#a4afbd;background:none;width:22px;height:22px;font-size:18px;line-height:1}.remove-line:hover{color:var(--red);background:#fff3f3;border-radius:4px}.basket-line-model{font-size:11px;color:#8c99aa;margin:3px 0 11px;line-height:1.6;overflow-wrap:anywhere}.line-fields{display:grid;grid-template-columns:1.1fr 1fr;gap:9px}.line-fields label{display:block;font-size:11px;color:#96a1af}.line-fields input{height:30px;width:100%;border:1px solid #e2e8ef;border-radius:5px;background:#fff;padding:0 8px;color:#58677c;font-size:12px;margin-top:4px}.line-fields input::placeholder{color:#b6bdc7}.model-check{display:flex;align-items:flex-start;gap:6px;font-size:11px;color:var(--amber);margin-top:10px;line-height:1.6}.model-check input{width:13px;height:13px;margin-top:2px}.basket-footer{padding:20px;border-top:1px solid var(--line);background:#fdfdff}.basket-summary{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8290a3}.basket-summary strong{color:#314158;font-size:22px;font-weight:650}.basket-summary strong span:last-child{font-size:12px;font-weight:500;color:#8c99a9}.basket-hint{font-size:11px;color:#a0aab7;margin:10px 0 14px;line-height:1.7}.basket-footer .button{height:42px;justify-content:space-between;padding:0 15px}.local-hint{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#a4aebb;margin-top:13px}.local-hint .status-dot{width:4px;height:4px;background:#b8c3d0}.app-footer{max-width:1720px;margin:0 auto;padding:12px 34px 28px;display:flex;justify-content:space-between;color:#b0b8c3;font-size:11px}.table-empty{padding:56px 25px;text-align:center;color:#a0abba;font-size:12px}.table-empty strong{display:block;font-size:14px;color:#6f7e91;font-weight:500}.table-empty p{font-size:12px;margin:6px 0 0}.spinner{display:inline-block;width:20px;height:20px;border:2px solid #deebfc;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-banner{background:#fff0f0;border:1px solid #f4d7d7;color:#b94b4b;border-radius:8px;padding:12px 15px;margin-bottom:18px;font-size:12px}.error-banner button{margin-left:15px;background:none;color:inherit;text-decoration:underline}.history-panel{min-height:280px}.history-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.history-table th{background:#fafbfd;color:#93a0b1;font-size:11px;font-weight:500;padding:13px 22px}.history-table td{padding:18px 22px;border-top:1px solid var(--line);color:#6f7e91}.history-number{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#3c506c;display:block}.history-meta{font-size:11px;color:#a0adbc;margin-top:3px}.status-pill{display:inline-block;border-radius:5px;padding:3px 7px;font-size:11px;background:#f1f4f8;color:#7c8ba0;white-space:nowrap}.status-pill.submitted{color:var(--green);background:#edf8f1}.checkout-top{display:flex;gap:15px;align-items:center;margin-bottom:19px}.back-button{display:flex;gap:6px;align-items:center;color:#748399;background:none;font-size:12px;padding:5px 0}.checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.form-panel{padding:25px}.form-panel h2{font-size:16px;margin:0 0 6px}.section-description{font-size:12px;color:#92a0b1;margin:0 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#718198}.form-field .required{color:var(--blue);margin-left:3px}.form-field input,.form-field textarea{border:1px solid #dfe6ef;border-radius:7px;padding:10px 11px;font-size:12px;background:#fcfdff;min-width:0;color:#34465f}.form-field textarea{min-height:78px;resize:vertical}.form-field input::placeholder,.form-field textarea::placeholder{color:#acb6c4}.form-field.full-row{grid-column:1/-1}.checkout-note{font-size:12px;color:#929ead;line-height:1.8;background:#fafbfd;border:1px solid var(--line);padding:13px 15px;border-radius:7px;margin-top:22px}.checkout-action{padding:24px;position:sticky;top:20px}.checkout-action h2{font-size:16px;margin-bottom:20px}.summary-pair{display:flex;justify-content:space-between;color:#8693a6;font-size:12px;margin:11px 0}.summary-pair strong{color:#364960;font-weight:550}.checkout-action .button{margin-top:15px}.checkout-action p{font-size:11px;color:#99a6b6;margin:12px 0 0;line-height:1.7}.detail-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:13px}.detail-table th{padding:12px;text-align:left;font-size:11px;background:#f7f9fc;color:#97a3b3;font-weight:500}.detail-table td{padding:13px 12px;border-bottom:1px solid #edf1f6;color:#64758b;vertical-align:top;overflow-wrap:anywhere}.detail-table th:nth-last-child(-n+2),.detail-table td:nth-last-child(-n+2){text-align:right;white-space:nowrap}.detail-model{font-size:11px;color:#95a0af;margin-top:3px;overflow-wrap:anywhere}.checkout-details{margin-top:20px}.checkout-details h2{padding:22px 23px 0;font-size:15px}.checkout-details .table-wrap{max-height:none}.form-error{color:#bb4e4e;font-size:12px;background:#fff1f1;border:1px solid #f1d1d1;border-radius:7px;padding:10px 12px;margin-top:18px}.form-error:empty{display:none}dialog{border:1px solid #e4eaf3;border-radius:17px;box-shadow:0 25px 100px #17335926;padding:0;width:min(760px,calc(100% - 36px));max-height:calc(100dvh - 64px);color:var(--ink);background:#fff}dialog::backdrop{background:#20344b55;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:26px 28px 17px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:20px;margin:0;font-weight:650}.modal-header p{color:#8b99ac;font-size:12px;margin:5px 0 0}.close-modal{width:28px;height:28px;background:#f5f7fa;border-radius:7px;color:#9aa6b6;font-size:20px;line-height:1}.modal-body{padding:23px 28px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;align-items:center;padding:18px 28px;background:#fbfcfe;border-top:1px solid var(--line)}.upload-drop{border:1px dashed #bfd1ea;background:#f8fbff;border-radius:10px;padding:28px 20px;text-align:center}.upload-drop strong{display:block;font-size:13px;font-weight:550;color:#526a89}.upload-drop p{font-size:11px;color:#94a3b7;margin:8px 0 15px}.upload-drop input{width:100%;font-size:12px;color:#8a9aaf;text-align:center;max-width:300px}.upload-drop input::file-selector-button{border:1px solid #c7d9f2;border-radius:5px;padding:7px 12px;background:#fff;color:#4b77b2;margin-right:10px;cursor:pointer}.import-help{font-size:12px;color:#90a0b4;margin:15px 0 0;line-height:1.9}.import-help a{color:var(--blue)}.import-preview-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 9px;font-size:13px;font-weight:550}.preview-summary{display:flex;gap:10px;font-size:11px;font-weight:500;color:#96a4b6}.preview-summary .ok{color:var(--green)}.preview-summary .bad{color:var(--red)}.import-errors{background:#fff5f2;border:1px solid #f5ddd4;border-radius:8px;padding:10px 13px;color:#b36346;font-size:12px;line-height:1.8;margin-top:12px}.import-errors ul{margin:0;padding-left:17px;max-height:130px;overflow:auto}.import-warnings{background:#fff9ee;border:1px solid #f1e5ca;border-radius:8px;padding:10px 13px;color:#997b43;font-size:12px;line-height:1.8;margin-top:12px}.import-table-wrap{max-height:250px;overflow:auto}.detail-status{display:flex;align-items:center;gap:8px;background:#f0f6ff;color:#426fba;border:1px solid #dce9fc;border-radius:8px;padding:12px 14px;font-size:12px;line-height:1.7;margin-bottom:20px}.detail-status.success{background:#eff9f3;color:#347b58;border-color:#d9ecdf}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px 22px;font-size:12px}.detail-meta dt{font-size:11px;color:#97a4b4;margin:0 0 4px}.detail-meta dd{margin:0;color:#52667e;overflow-wrap:anywhere}.detail-meta .wide{grid-column:1/-1}.submit-disabled-note{font-size:11px;line-height:1.8;color:#9aa6b6;margin-top:15px}.connection-info{font-size:12px;color:#72849b;line-height:1.9}.connection-info code{font-family:ui-monospace,monospace;font-size:11px;background:#f1f4f8;padding:2px 4px;border-radius:3px;overflow-wrap:anywhere}.toast-region{position:fixed;bottom:24px;left:calc(50% + 101px);transform:translateX(-50%);z-index:150;display:flex;align-items:center;flex-direction:column;gap:8px;max-width:calc(100% - 32px);pointer-events:none}.toast{padding:11px 17px;background:#25384e;color:#fff;border-radius:9px;box-shadow:0 6px 24px #1e324529;font-size:12px;animation:toast-in .18s ease-out;max-width:490px;line-height:1.7}.toast.error{background:#a84949}.toast.success{background:#2c755b}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.catalog-only{grid-template-columns:1fr}.catalog-only .table-wrap{max-height:680px}.catalog-only .material-table th:nth-child(2){width:27%}.catalog-only .material-table .action-col{width:85px}.catalog-only .table-footer{font-size:11px}.item-error{border-color:#dd7979!important;background:#fff8f8!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1450px){.workspace{grid-template-columns:minmax(0,1fr) 350px}.catalog-only{grid-template-columns:1fr}.material-table td{padding-top:15px;padding-bottom:15px}.material-table th:nth-child(2){width:28%}.material-model{font-size:12px}.material-name{font-size:12px}.basket-line-model{font-size:11px}.catalog-panel .table-wrap{max-height:720px}.checkout-grid{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:1150px){.sidebar{width:172px;padding-left:10px;padding-right:10px}.app-shell{margin-left:172px}.brand{font-size:17px;gap:8px;padding-left:7px}.topbar{padding:0 24px}main{padding:27px 24px 20px}.workspace{gap:15px;grid-template-columns:minmax(0,1fr) 277px}.page-heading h1{font-size:24px}.page-heading{align-items:flex-start}.page-heading #heading-actions{padding-top:19px}.button{padding:9px 11px;font-size:12px}.material-table th:nth-child(2){width:34%}.material-table td{padding-left:8px;padding-right:8px}.material-table .select-col{width:34px;padding-left:17px}.material-table td:first-child{padding-left:17px}.material-table .action-col{width:43px}.panel-header{padding-left:18px;padding-right:18px}.catalog-toolbar{padding-left:18px;padding-right:18px}.category-bar{padding-left:18px;gap:13px}.search-box kbd{display:none}.table-footer{padding-left:18px;padding-right:18px;flex-direction:column;gap:2px}.basket-line{padding-left:16px;padding-right:16px}.basket-header{padding-left:17px;padding-right:17px}.basket-footer{padding:16px}.toast-region{left:calc(50% + 86px)}.catalog-only{grid-template-columns:1fr}.checkout-grid{grid-template-columns:minmax(0,1fr) 277px}}
@media(max-width:950px){.sidebar{width:150px}.app-shell{margin-left:150px}.brand{font-size:15px;gap:7px;padding-left:4px}.brand-mark{width:31px;height:36px}.brand-sub{font-size:11px;letter-spacing:1px}.nav-item{font-size:12px;gap:8px;padding-left:10px}.page-heading{display:block;margin-bottom:22px}#heading-actions{padding-top:17px!important}.workspace{grid-template-columns:minmax(0,1fr)}.basket-panel{position:static}.basket-items{display:grid;grid-template-columns:1fr 1fr;max-height:420px}.basket-empty{grid-column:1/-1;padding:30px 20px}.basket-line{border-right:1px solid var(--line)}.basket-footer{display:grid;grid-template-columns:1fr 240px;gap:5px 15px;align-items:center}.basket-summary{grid-column:1}.basket-hint{grid-column:1;margin:0;font-size:11px}.basket-footer .button{grid-column:2;grid-row:1/3}.local-hint{grid-column:1/-1;margin-top:7px}.checkout-grid{grid-template-columns:1fr}.checkout-action{position:static}.top-title{gap:10px}.org-label{padding-left:10px;font-size:11px}.connection-status{font-size:11px;padding:7px}.toast-region{left:calc(50% + 75px)}.material-table th:nth-child(2){width:30%}.material-table .action-col{width:58px}.table-footer{flex-direction:row}.checkout-action h2{margin-bottom:12px}.history-table th,.history-table td{padding-left:15px;padding-right:15px}.history-table .department-col{display:none}}
@media(max-width:650px){.sidebar{position:static;width:100%;height:auto;display:block;padding:0 18px;background:#fff;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:18px 0 13px;font-size:17px}.brand-sub{display:none}.brand-mark{width:29px;height:32px;border-radius:9px}.brand-mark svg{width:20px;height:22px}.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:8px}.nav-item{justify-content:center;height:40px;font-size:12px;margin:0 0 8px;padding:0 11px;gap:6px;white-space:nowrap}.nav-item svg{width:14px;height:14px}.nav-dot{display:none!important}.app-shell{margin-left:0}.topbar{height:54px;padding:0 18px;background:#fafbfd}.top-title{font-size:11px}.top-title .org-label{font-size:11px}.connection-status{font-size:11px;max-width:47%}main{padding:23px 16px 15px}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.page-heading .eyebrow{font-size:11px}.page-heading{margin-bottom:19px}#heading-actions{gap:8px;padding-top:16px!important}.button{font-size:12px}.workspace{gap:16px}.panel{border-radius:11px}.panel-header{padding:19px 15px 15px}.panel h2{font-size:14px}.panel-header p{font-size:11px}.text-link{font-size:11px}.catalog-toolbar{padding:0 15px 13px;gap:7px}.search-box{height:35px;padding-left:9px}.search-box input{font-size:11px}.filter-button{height:35px;min-height:35px;font-size:11px;padding:6px 8px}.category-bar{padding:0 15px;gap:19px}.category{font-size:11px}.material-table{font-size:11px}.material-table th{font-size:11px;padding:10px 6px}.material-table td{padding:13px 6px}.material-table th:nth-child(2){width:31%}.material-table .select-col{width:30px;padding-left:13px}.material-table td:first-child{padding-left:13px}.material-table .action-col{width:39px}.material-table input[type=checkbox]{width:14px;height:14px}.material-name{font-size:11px}.material-code{font-size:11px}.material-model{font-size:11px}.add-button{width:24px;height:24px;font-size:17px}.table-wrap{max-height:530px}.table-footer{padding:10px 15px;font-size:11px}.table-footer span:last-child{max-width:55%;text-align:right}.basket-items{display:block;max-height:420px}.basket-line{border-right:0;padding:15px 17px}.basket-line-model{font-size:11px}.basket-line-title{font-size:12px}.basket-footer{display:block;padding:17px}.basket-hint{margin:9px 0 13px}.local-hint{margin-top:12px}.basket-empty{padding:33px 20px}.app-footer{padding:13px 16px 25px;font-size:11px}.toast-region{left:50%;bottom:15px}.toast{font-size:12px}.bulk-bar{padding:9px 13px;font-size:11px}.bulk-bar .text-button{font-size:11px}.history-table th,.history-table td{padding:13px 12px}.history-table .purpose-col{display:none}.history-number{font-size:11px}.history-meta{font-size:11px}.history-table td{font-size:12px}.history-table .button{font-size:11px}.form-panel{padding:20px 17px}.form-grid{grid-template-columns:1fr;gap:15px}.form-field.full-row{grid-column:1}.checkout-action{padding:20px 17px}.checkout-note{font-size:11px}.checkout-details h2{padding-left:17px}.detail-table th,.detail-table td{padding:11px 8px;font-size:11px}.detail-model{font-size:11px}.detail-table th:first-child{min-width:40px}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 30px);border-radius:12px}.modal-header{padding:20px 18px 15px}.modal-header h2{font-size:17px}.modal-body{padding:18px}.modal-footer{padding:15px 18px;flex-wrap:wrap}.modal-footer .button{flex:1}.upload-drop{padding:23px 13px}.import-help{font-size:11px}.preview-summary{font-size:11px;gap:7px}.detail-meta{gap:14px;font-size:12px}.detail-status{font-size:12px}.catalog-only .material-table .action-col{width:39px}.catalog-only .material-table th:nth-child(2){width:31%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#batch-units{grid-column:1;justify-self:start}
@media(min-width:651px) and (max-width:950px){.basket-footer .button{grid-row:1/4}}

/* Readable Chinese typography across desktop and compact layouts. */
body,input,textarea,select,button{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
.material-table,.material-name,.material-model,.basket-line-title,.basket-line-model,.detail-table td,.detail-model{font-size:13px}
.material-model,.basket-line-model,.detail-model{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;line-height:1.65}
.material-code,.basket-line-code{font-size:11px}
.button,.small,.text-button,.filter-button,.category,.review-tag,.nav-item,.search-box input,.form-field input,.form-field textarea,.line-fields input{font-size:13px}
.line-fields label,.panel-header p,.table-footer,.basket-hint,.local-hint,.section-description,.checkout-action p,.submit-disabled-note,.import-help,.detail-meta dt,.history-meta,.model-check,.form-field{font-size:11px}
.line-fields input{height:34px}.search-box{min-height:40px}.filter-button{min-height:40px}
.material-table td{padding-top:14px;padding-bottom:14px}.material-table th{font-size:11px}
.panel-header p,.page-heading p{line-height:1.8}.table-footer{align-items:center;flex-wrap:wrap}
.top-title{font-size:13px}.org-label,.connection-status,.app-footer{font-size:11px}
.basket-line-code{display:block;margin-left:0;margin-top:2px}.review-tag{margin-top:6px;padding:1px 5px}
.search-box kbd{display:none}.catalog-toolbar{align-items:stretch}
@media(max-width:1150px){.material-table th:nth-child(2){width:32%}.material-table .action-col{width:43px}}
@media(max-width:650px){.material-table th:nth-child(2),.catalog-only .material-table th:nth-child(2){width:31%}.material-table .action-col,.catalog-only .material-table .action-col{width:39px}.material-name,.material-model,.basket-line-model,.detail-model,.detail-table td{font-size:13px}.category-bar{gap:15px}.top-title{font-size:12px;gap:7px}.org-label{font-size:11px;padding-left:7px}.connection-status{font-size:11px}.table-footer{gap:7px}.table-footer span:last-child{max-width:none;text-align:left}.panel-header{align-items:flex-start}.text-link{font-size:11px}.modal-footer .button{font-size:13px}.form-grid{gap:16px}}

/* Use an explicit medium face for reliable local WebKit CJK rendering. */
body{font-weight:500}.category-note,.preview-summary{font-weight:500}
.auth-panel{min-height:300px;padding:50px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.auth-panel h2{font-size:21px;display:block;margin:5px 0 0}.auth-panel p{font-size:13px;color:#718198;max-width:580px;line-height:1.9;margin:0 0 5px}.auth-panel .spinner{width:25px;height:25px}
.verified-label{display:inline-block;font-size:11px;color:var(--green);background:#edf8f1;border-radius:4px;padding:2px 6px;width:max-content}.form-field input[readonly]{background:#f1f5f9;color:#50657e;border-color:#e1e7ef;cursor:default}
.form-field select{border:1px solid #dfe6ef;border-radius:7px;padding:10px 11px;font-size:13px;background:#fcfdff;min-width:0;color:#34465f;min-height:41px;font-weight:500}
.line-fields select{height:34px;width:100%;border:1px solid #e2e8ef;border-radius:5px;background:#fff;padding:0 6px;color:#58677c;font-size:13px;font-weight:500;margin-top:4px}.custom-unit-field{grid-column:1/-1}.unit-memory{margin-top:9px}.unit-default-note{font-size:11px;line-height:1.7;color:#8d9bad;overflow-wrap:anywhere}.unit-memory-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:3px}.unit-memory-actions .text-button{font-size:11px;line-height:1.7}.unit-memory-actions .text-button:disabled{color:#aeb8c5;text-decoration:none;cursor:default}.basket-undo{padding:11px 17px;background:#f0f6ff;border-bottom:1px solid #dce9fc;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#6a83a4;line-height:1.7}.basket-undo .text-button{font-size:12px;white-space:nowrap}.add-button:disabled{cursor:default}.bulk-bar{flex-wrap:wrap}.approval-materials{margin-top:20px}.approval-materials h3{font-size:13px;font-weight:600;color:#526b87;margin:0 0 8px}.approval-materials-table{max-height:280px;overflow:auto;border:1px solid #e8edf4;border-radius:7px}.approval-materials .detail-table{margin-top:0}.approval-summary dd{white-space:pre-wrap}.checkout-action #save-draft-only{margin-top:9px}#batch-units{font-size:12px;margin:8px 0 5px;justify-self:start}
.copy-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.instance-id{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;overflow-wrap:anywhere;user-select:text}.copy-row .button{flex-shrink:0}.copy-fallback{position:fixed;opacity:.01;left:0;top:0;width:1px;height:1px}
.detail-status.attention{background:#fff7e8;border-color:#f1ddbc;color:#9b731e}.modal-footer{flex-wrap:wrap}
.approval-nodes{display:grid;gap:14px;margin-top:22px}.approval-node{border:1px solid #e1e8f1;border-radius:9px;padding:14px 16px;margin:0;min-width:0}.approval-node legend{font-size:13px;color:#405875;padding:0 5px}.approval-node legend span{font-size:11px;color:#8898ab;margin-left:6px}.approval-option{display:flex;align-items:flex-start;gap:9px;padding:9px 4px;font-size:13px;cursor:pointer;line-height:1.7}.approval-option input{margin-top:4px;flex-shrink:0}.approval-option strong{font-weight:550;color:#526b87}.approval-option small{display:block;font-size:11px;color:#a17a34;margin-top:2px}.approval-unavailable{font-size:12px;color:#a16740;line-height:1.8;margin:5px 0}.approval-node .text-button{font-size:11px;padding:5px 4px}.approval-node:focus-within{border-color:#9cbde9}

/* Mobile header: the brand is already present in the navigation. */
@media(max-width:650px){
 .topbar{height:auto;min-height:58px;align-items:center;padding:10px 16px;gap:10px}
 .top-title{font-size:0;display:block;flex:1;min-width:0}
 .top-title .org-label{font-size:11px;white-space:normal;padding-left:0;border-left:0;display:block;overflow-wrap:anywhere;line-height:1.6}
 .connection-status{flex-shrink:0;max-width:45%;font-size:11px;padding:7px 9px}
}

/* Phone workflow: keep navigation and final actions within reach. */
.mobile-procurement-nav{display:none}
.material-select{display:flex;align-items:center;justify-content:center;width:max-content;cursor:pointer}
.request-materials-table{max-height:330px;overflow:auto}
.approval-notice{background:#fff8e9;border:1px solid #f0e2c3;color:#927033;border-radius:9px;padding:12px 15px;margin-bottom:18px;font-size:12px;line-height:1.8}
@media(max-width:650px){
 .sidebar{padding-left:12px;padding-right:12px}.sidebar nav{gap:4px}.nav-item{min-width:0;min-height:44px;padding:0 7px}
 #heading-actions{flex-wrap:wrap}#heading-actions .button{flex:1;min-width:0}
 .button,.filter-button,.back-button,.category,.text-link{min-height:44px}
 .text-link{display:inline-flex;align-items:center}.category{padding-top:12px;padding-bottom:12px}
 .catalog-toolbar{flex-wrap:wrap}.search-box{min-height:44px}.search-box input{font-size:16px}.filter-button{font-size:12px}
 #catalog-title,#basket-title{scroll-margin-top:18px}
 #catalog-workspace:not(.catalog-only){padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .mobile-procurement-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;display:grid;grid-template-columns:1fr 1.3fr 1.2fr;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fffffffa;border-top:1px solid var(--line);box-shadow:0 -4px 20px #253b5b09}
 .mobile-procurement-nav .button{padding:9px 6px;min-width:0;font-size:13px}.mobile-procurement-nav .count-badge{min-width:20px;padding:0 4px}
 .catalog-only .mobile-procurement-nav{display:none}
 .catalog-panel .table-wrap{max-height:min(58dvh,480px)}
 .material-table .select-col{width:48px;padding:0 2px}.material-table td:first-child{padding-left:2px;padding-right:2px}
 .material-select{width:44px;min-height:44px}.material-table .material-select input[type=checkbox]{width:22px;height:22px}
 .material-table tr>:nth-child(4){display:none}.material-table th:nth-child(2),.catalog-only .material-table th:nth-child(2){width:32%}
 .material-name,.material-code{overflow-wrap:anywhere}.review-tag{min-height:36px;white-space:normal;text-align:left}
 .bulk-bar{gap:4px}.bulk-bar .text-button{min-height:44px}.table-footer{align-items:flex-start}
 .basket-items{max-height:none}.basket-line{padding:15px}.basket-line-title{min-width:0;overflow-wrap:anywhere}
 .remove-line{width:44px;height:44px;flex-shrink:0;font-size:22px;margin-top:-7px;margin-right:-7px}
 .line-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .line-fields label,.form-field,.modal-header>div,.copy-row,.detail-meta>div{min-width:0}
 .line-fields input,.line-fields select,.form-field input,.form-field select,.form-field textarea{font-size:16px;width:100%;max-width:100%;min-height:44px}
 .line-fields label,.form-field{font-size:12px}.unit-memory-actions{gap:4px 14px}.unit-memory-actions .text-button{min-height:44px;font-size:12px}
 .model-check{font-size:12px;min-height:44px;align-items:center}.model-check input{width:22px;height:22px;margin-top:0}.model-check .text-button{min-height:44px}
 #clear-basket,#batch-units,.basket-undo .text-button{min-height:44px}.basket-hint{font-size:12px}
 .checkout-top{flex-wrap:wrap;gap:6px 15px}.checkout-action .button{min-height:46px;white-space:normal}
 .detail-table{table-layout:fixed}.detail-table th:first-child{width:60%;min-width:0}.detail-table th:nth-child(2){width:22%}.detail-table th:nth-child(3){width:18%}
 .detail-table td:nth-last-child(-n+2){white-space:normal;overflow-wrap:anywhere}.detail-table .material-code{display:block;margin-top:2px}
 .detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.copy-row{align-items:flex-start}.instance-id{min-width:0}
 .history-number{overflow-wrap:anywhere}.history-table .status-pill{white-space:normal;min-width:64px}
 dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);overflow:hidden}
 #modal-content{display:flex;flex-direction:column;max-height:calc(100dvh - 18px);min-width:0}
 .modal-header{flex-shrink:0;padding:16px 14px 12px;gap:8px}.modal-header h2{font-size:17px}.modal-header p{overflow-wrap:anywhere}
 .close-modal{width:44px;height:44px;flex-shrink:0;margin-top:-5px;margin-right:-5px}
 .modal-body{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:16px 14px}
 .modal-footer{flex-shrink:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 14px max(12px,env(safe-area-inset-bottom,0px))}
 .modal-footer .button{min-width:0;min-height:44px;white-space:normal;line-height:1.5;padding:9px 8px}.modal-footer .button:only-child{grid-column:1/-1}
 .approval-materials-table,.import-table-wrap,.request-materials-table{max-height:none;overflow:visible}
 .approval-option{min-height:48px}.approval-option input{width:22px;height:22px}.approval-option span{min-width:0;overflow-wrap:anywhere}
 .approval-node legend{max-width:100%;overflow-wrap:anywhere}.upload-drop input{font-size:14px;max-width:100%}
 .preview-summary{flex-wrap:wrap;justify-content:flex-end}.toast-region{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
}
