@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.flex{display:flex}.grid{display:grid}.table{display:table}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}}:root{--nav:#16324b;--blue:#1976d2;--ink:#172b3e;--muted:#6b7b88;--line:#dfe5ea;--bg:#f4f6f8;--red:#c62828;--green:#24834b}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);margin:0;font-family:Microsoft YaHei UI,PingFang SC,Noto Sans SC,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer;transition:transform 80ms,box-shadow 80ms,filter 80ms,opacity .15s}button:not(:disabled):active{filter:brightness(.9);transform:translateY(2px)scale(.98);box-shadow:inset 0 3px 7px #10283d3d!important}#boot-fallback{z-index:9999;color:#172b3e;background:#f4f6f8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}#boot-fallback>div{text-align:center;background:#fff;border:1px solid #dfe5ea;border-radius:14px;width:min(420px,100%);padding:28px;box-shadow:0 12px 40px #17324d1a}#boot-fallback strong,#boot-fallback span{display:block}#boot-fallback strong{font-size:21px}#boot-fallback span{color:#6b7b88;margin-top:10px;font-size:14px;line-height:1.6}.app-shell{grid-template-columns:230px 1fr;min-height:100vh;display:grid}aside{background:var(--nav);color:#fff;z-index:10;flex-direction:column;width:230px;padding:24px 14px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:12px;padding:0 10px 28px;display:flex}.brand>span{width:44px;height:44px;color:var(--nav);background:#fff;border-radius:13px;place-items:center;font-size:23px;font-weight:900;display:grid}.brand strong,.brand small{display:block}.brand strong{font-size:20px}.brand small{color:#a8c1d5;margin-top:2px}nav{gap:5px;display:grid}nav button{color:#c7d7e4;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:12px;padding:11px 13px;display:flex;position:relative}nav button:hover,nav button.active{color:#fff;background:#274963}nav button.active:before{content:"";background:#51a8ef;border-radius:0 4px 4px 0;width:4px;height:25px;position:absolute;left:-14px}nav i{background:#ffffff14;border-radius:7px;place-items:center;width:27px;height:27px;font-size:13px;font-style:normal;font-weight:700;display:grid}nav b{text-align:center;background:#d94747;border-radius:20px;min-width:22px;height:22px;margin-left:auto;padding:2px 6px;font-size:12px}.cloud-status{color:#cde0ef;background:#0d273c;border:1px solid #ffffff14;border-radius:10px;margin-top:auto;padding:13px;font-size:13px}.cloud-status span{background:#57d387;border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block;box-shadow:0 0 0 4px #57d38722}.cloud-status small{color:#7fa0b9;margin:6px 0 0 17px;display:block}main{grid-column:2;min-width:0}.topbar{border-bottom:1px solid var(--line);background:#fff;justify-content:space-between;align-items:center;height:78px;padding:0 30px;display:flex}.topbar h1{margin:0;font-size:18px}.topbar p{color:var(--muted);margin:3px 0 0;font-size:12px}.refresh{border:1px solid var(--line);color:#456;background:#fff;border-radius:8px;padding:8px 13px}main>section{padding:25px 30px 35px}.page-head{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px;display:flex}.page-head h2{margin:0;font-size:25px}.page-head p{color:var(--muted);margin:5px 0 0;font-size:14px}.actions{gap:8px;display:flex}.actions button,.primary,.filters button,.row-actions button,.form-actions button,.segmented button,.align-end button{border:1px solid var(--line);background:#fff;border-radius:7px;padding:8px 13px}.primary{font-weight:600;background:var(--blue)!important;color:#fff!important;border-color:var(--blue)!important}.danger-outline{color:var(--red)!important;border-color:#edb9b9!important}.danger{color:var(--red)!important}.stats{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;display:grid}.stats article{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:14px;padding:17px;display:flex;box-shadow:0 2px 8px #17324d08}.stats article>span{color:#fff;border-radius:10px;place-items:center;width:43px;height:43px;font-weight:700;display:grid}.stats .blue{background:#2d85d3}.stats .red{background:#d84a4a}.stats .green{background:#33905a}.stats .purple{background:#8661b4}.stats small,.stats strong{display:block}.stats small{color:var(--muted);font-size:13px}.stats strong{margin-top:2px;font-size:26px}.table-card,.card{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px #17324d07}.table-scroll{scrollbar-color:#afbdc8 transparent;max-height:calc(100vh - 250px);overflow:auto}table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}th{z-index:1;color:#52616c;text-align:left;border-bottom:1px solid var(--line);background:#f5f7f9;padding:12px 14px;font-weight:600;position:sticky;top:0}td{color:#3e4d58;border-bottom:1px solid #edf0f2;padding:12px 14px}tbody tr:hover{background:#f8fafb}.strong{color:#1c3448;font-weight:650}.number{font-variant-numeric:tabular-nums;font-weight:700}.tag{color:#256187;background:#e8f1f8;border-radius:15px;padding:3px 8px;font-size:12px;display:inline-block}.status{border-radius:15px;padding:4px 9px;font-size:12px;display:inline-block}.status.good{color:#237744;background:#e6f5eb}.status.bad{color:#b72121;background:#fde9e9}.warning-row{background:#fff0f0!important}.warning-row td{color:#b52222}.positive{color:#19844b!important}.negative{font-weight:600;color:#c62828!important}.filters{border:1px solid var(--line);background:#fff;border-radius:10px;align-items:end;gap:12px;margin-bottom:14px;padding:14px;display:flex}.filters label{color:#60717e;gap:5px;font-size:12px;display:grid}.filters input,.filters select,.form-grid input,.form-grid select,.order-form input,.order-form select{min-width:180px;color:var(--ink);background:#fff;border:1px solid #cfd8df;border-radius:7px;outline:none;padding:8px 10px}.filters input:focus,.filters select:focus,.form-grid input:focus,.form-grid select:focus{border-color:#4d9add;box-shadow:0 0 0 3px #1976d214}.result-count{color:var(--muted);margin-left:auto;padding-bottom:9px}.row-actions{gap:5px;display:flex}.row-actions button{padding:5px 9px}.modal-backdrop{z-index:50;background:#0d2438aa;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:13px;width:min(620px,100%);max-height:90vh;overflow:auto;box-shadow:0 20px 60px #00192f55}.modal>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:18px 22px;display:flex}.modal h2{margin:0;font-size:19px}.icon-button{color:#62717d;background:#edf1f4;border:0;border-radius:50%;width:30px;height:30px;font-size:20px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;padding:20px 22px;display:grid}.form-grid label{color:#52636f;gap:6px;font-size:13px;display:grid}.form-grid input,.form-grid select{width:100%;min-width:0}.form-grid .full{grid-column:1/-1}.form-actions{grid-column:1/-1;justify-content:flex-end;gap:9px;margin-top:5px;display:flex}.discount-preview{color:#35658a;background:#eef6ff;border-radius:7px;grid-column:1/-1;padding:10px 12px;font-size:12px}.product-list-row{align-items:center;gap:10px;display:flex!important}.product-list-row>span{flex:1;min-width:0}.product-list-row img,.product-list-row>i{object-fit:cover;color:#80909d;background:#edf2f6;border-radius:7px;flex:0 0 42px;place-items:center;width:42px;height:42px;font-style:normal;display:grid}.product-image-preview{color:#6d7b86;background:#f5f7f9;border-radius:8px;grid-column:1/-1;align-items:center;gap:12px;padding:10px;font-size:12px;display:flex}.product-image-preview img{object-fit:cover;border-radius:8px;width:90px;height:90px}.split{grid-template-columns:minmax(240px,30%) 1fr;gap:14px;min-height:calc(100vh - 175px);display:grid}.product-list,.bom-panel{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.product-list{max-height:calc(100vh - 175px);padding:12px;overflow:auto}.product-list h3{margin:3px 5px 10px;font-size:14px}.product-list h3 span{float:right;color:#60717d;background:#e8eef3;border-radius:12px;padding:2px 7px}.product-list>button{text-align:left;background:#fff;border:0;border-bottom:1px solid #edf0f2;border-radius:7px;width:100%;padding:12px}.product-list>button:hover,.product-list>button.selected{background:#eaf3fb}.product-list strong,.product-list small{display:block}.product-list small{color:var(--muted);margin-top:4px}.bom-panel{padding:16px}.bom-title{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.bom-title h3{margin:0}.bom-title p{color:var(--muted);margin:4px 0 0;font-size:12px}.compact{padding:10px}.compact input,.compact select{min-width:130px}.bom-scroll{max-height:calc(100vh - 365px)}.qty-input{text-align:center;border:1px solid #cfd8df;border-radius:6px;width:95px;padding:7px}.saved-bom{background:#f2f8fd;border:1px solid #cfe1ef;border-radius:9px;margin:-2px 0 12px;padding:12px 14px}.saved-bom>strong{color:#245777;margin-bottom:8px;font-size:13px;display:block}.saved-bom>div{flex-wrap:wrap;gap:7px;display:flex}.saved-bom span{color:#344f62;background:#fff;border:1px solid #d9e7f1;border-radius:7px;padding:6px 9px;font-size:12px}.saved-bom p{color:var(--muted);margin:0;font-size:12px}.bom-title-product{align-items:center;gap:11px;min-width:0;display:flex}.bom-title-product>img,.bom-title-product>i{object-fit:cover;color:#80909d;background:#edf2f6;border:1px solid #dfe7ed;border-radius:9px;flex:0 0 58px;place-items:center;width:58px;height:58px;font-style:normal;display:grid}.order-layout{grid-template-columns:minmax(400px,42%) 1fr;gap:15px;display:grid}.order-form{padding:17px;overflow:visible}.order-form .form-grid{padding:0}.align-end{align-items:end;display:flex}.order-form h3,.order-preview h3{margin:18px 0 9px;font-size:15px}.line-list{border:1px solid var(--line);border-radius:8px;max-height:160px;overflow:auto}.line-list>div{border-bottom:1px solid #edf0f2;align-items:center;padding:9px 11px;display:flex}.line-list>div:last-child{border:0}.line-list span{flex:1}.line-list strong,.line-list small{display:block}.line-list small{color:var(--muted);margin-top:2px}.line-list b{margin-right:15px}.line-list button{color:var(--red);background:0 0;border:0}.empty{text-align:center;color:#8a98a3;font-size:13px}.spacious{padding:70px 20px}.submit-order{background:var(--blue);color:#fff;border:0;border-radius:8px;width:100%;margin-top:12px;padding:11px;font-weight:700}.submit-order:disabled{cursor:not-allowed;background:#afbbc4}.hint{text-align:center;color:var(--muted);margin:8px 0 0;font-size:12px}.order-preview{padding:17px}.order-preview .table-scroll{max-height:calc(100vh - 255px)}.segmented{background:#e5eaee;border-radius:8px;margin-bottom:13px;padding:3px;display:inline-flex}.segmented button{background:0 0;border:0}.segmented button.active{color:var(--blue);background:#fff;box-shadow:0 1px 4px #15283b22}.toast{z-index:80;color:#fff;border-radius:9px;padding:12px 16px;position:fixed;bottom:24px;right:24px;box-shadow:0 8px 30px #0e243444}.toast.success{background:#257a49}.toast.error{background:#b92d2d}.toast button{color:#fff;background:0 0;border:0;margin-left:15px}.loading{text-align:center;color:var(--muted);margin:80px auto}.top-actions{align-items:center;gap:8px;display:flex}.top-actions>span{color:var(--muted);font-size:12px}.login-page{background:linear-gradient(145deg,#0e2a42,#1f5277);place-items:center;min-height:100vh;padding:20px;display:grid}.login-card{background:#fff;border-radius:16px;gap:14px;width:min(410px,100%);padding:34px;display:grid;box-shadow:0 24px 80px #00182e66}.login-card h1{text-align:center;margin:0;font-size:24px}.login-card>p,.login-card>small{text-align:center;color:var(--muted);margin:0}.login-logo{background:var(--nav);color:#fff;border-radius:16px;place-items:center;width:58px;height:58px;margin:auto;font-size:28px;font-weight:900;display:grid}.login-card label{color:#52636f;gap:6px;font-size:13px;display:grid}.login-card input{border:1px solid #cfd8df;border-radius:8px;width:100%;padding:11px}.login-card button{padding:11px}.login-error{color:#b72121;text-align:center;background:#fde9e9;border-radius:7px;padding:9px;font-size:13px}.file-button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:7px;align-items:center;padding:8px 13px;display:inline-flex}.file-button input{display:none}.check{align-items:center;gap:8px!important;display:flex!important}.check input{width:auto!important}@media (max-width:1000px){.app-shell{grid-template-columns:76px 1fr}aside{width:76px;padding:20px 9px}.brand div,nav button:not(.active):after,.cloud-status{display:none}.brand{padding:0 7px 25px}.brand>span{width:42px}.app-shell nav button{justify-content:center;padding:10px;font-size:0}.app-shell nav i{font-size:13px}.app-shell nav b{min-width:17px;height:17px;padding:1px 4px;font-size:10px;position:absolute;top:2px;right:2px}main{grid-column:2}.stats{grid-template-columns:repeat(2,1fr)}.order-layout{grid-template-columns:1fr}.split{grid-template-columns:250px 1fr}.filters{flex-wrap:wrap}.result-count{margin-left:0}.topbar{padding:0 18px}main>section{padding:20px 18px}}@media (max-width:700px){.app-shell{display:block}aside{z-index:40;background:var(--nav);width:auto;height:64px;padding:7px;display:block;position:fixed;inset:auto 0 0}.brand,.cloud-status{display:none}nav{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}nav button{flex-direction:column;gap:2px;padding:4px!important;font-size:9px!important;display:flex!important}nav i{width:25px;height:25px}.app-shell main{padding-bottom:70px}.topbar{height:66px}.topbar p,.top-actions>span{display:none}.stats{grid-template-columns:1fr 1fr}.stats article{padding:11px}.page-head{flex-direction:column;align-items:flex-start}.actions{flex-wrap:wrap}.split{grid-template-columns:1fr}.product-list{max-height:230px}.order-layout,.form-grid{grid-template-columns:1fr}.form-grid .full,.form-actions{grid-column:1}.filters input,.filters select{min-width:150px}.modal{max-height:85vh}main>section{padding:16px 12px}.table-scroll{max-height:60vh}}.table-card{scrollbar-gutter:stable both-edges;scrollbar-color:#7f96a8 #e7edf2;scrollbar-width:auto;-webkit-overflow-scrolling:touch;max-height:calc(100dvh - 270px);overflow:auto}.table-card::-webkit-scrollbar{width:12px;height:12px}.table-card::-webkit-scrollbar-track{background:#e7edf2;border-radius:8px}.table-card::-webkit-scrollbar-thumb{background:#7f96a8;border:2px solid #e7edf2;border-radius:8px}.table-card::-webkit-scrollbar-thumb:hover{background:#587489}.table-card>table{min-width:max-content}@media (max-width:760px){.table-card{max-height:calc(100dvh - 220px)}.table-card::-webkit-scrollbar{width:10px;height:10px}}.high-warning-row td{color:#b52222;background:#fff8db}.high-warning-row td strong,.high-warning-row td .number{color:#b52222}.product-search-field{color:#52636f;flex-direction:column;gap:6px;font-weight:600;font-size:13px!important;display:flex!important}.product-search-field>span{font-size:13px;line-height:1.3}.product-search-field>input{box-sizing:border-box;color:#142238;width:100%;line-height:1.4;display:block;box-shadow:0 1px 2px #1422380f;background:#fff!important;border:1px solid #aebfd0!important;border-radius:8px!important;padding:10px 12px!important;font-size:15px!important}.product-search-field>input:focus{outline:none;box-shadow:0 0 0 3px #2f7dd324;border-color:#2f7dd3!important}.product-list .product-search-field{z-index:5;background:#fff;border-bottom:1px solid #e3eaf1;margin-bottom:4px;padding:6px 0 10px;position:sticky;top:0}.product-list{flex-direction:column;display:flex!important;overflow:hidden!important}.product-list .product-list-sticky{z-index:8;background:#fff;border-bottom:1px solid #e3eaf1;flex:none;padding:3px 5px 10px;position:relative!important;top:auto!important}.product-list .product-list-sticky h3{margin:0 0 8px}.product-list .product-list-sticky .product-search-field{background:#fff;z-index:auto!important;border-bottom:0!important;margin:0!important;padding:0!important;position:static!important;top:auto!important}.product-list .product-list-scroll{overscroll-behavior:contain;flex:auto;min-height:0;padding-right:2px;overflow-y:auto}@media (max-width:700px){.product-list{height:230px!important;min-height:230px!important;max-height:230px!important}.product-list .product-list-sticky{padding-top:2px}}.product-list .product-list-scroll button.selected,.product-list button.selected{box-shadow:inset 4px 0 #2f80ed;background:#dceeff!important;border-color:#8fc4ee!important}.product-list button.selected strong{color:#123a63}.order-scan-card{background:linear-gradient(118deg,#f2f7ff 0%,#f8fbff 52%,#fff 100%);border:1px solid #d9e7ff;margin-bottom:18px;padding:22px 24px;position:relative;overflow:hidden;box-shadow:0 10px 28px #2563eb14}.order-scan-card:before{content:"";pointer-events:none;background:radial-gradient(circle,#3b82f629,#3b82f600 70%);border-radius:50%;width:240px;height:240px;position:absolute;top:-105px;right:-70px}.order-scan-head{z-index:1;justify-content:space-between;align-items:center;gap:28px;display:flex;position:relative}.order-scan-intro{align-items:flex-start;gap:17px;min-width:0;display:flex}.order-scan-icon{color:#fff;background:linear-gradient(145deg,#2563eb,#4f8df7);border-radius:16px;flex:0 0 54px;place-items:center;width:54px;height:54px;display:grid;box-shadow:0 8px 18px #2563eb3d}.order-scan-icon svg{width:29px;height:29px}.order-scan-copy{min-width:0}.order-scan-eyebrow{color:#2563eb;letter-spacing:.08em;background:#e7f0ff;border-radius:999px;margin-bottom:4px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-flex}.order-scan-head h3{color:#14213d;margin:0;font-size:21px;line-height:1.35}.order-scan-copy>p{color:#66758d;margin:5px 0 10px;font-size:14px;line-height:1.55}.order-scan-steps{color:#52637b;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;display:flex}.order-scan-steps span{white-space:nowrap;align-items:center;gap:5px;display:inline-flex}.order-scan-steps b{color:#2563eb;background:#deebff;border-radius:50%;place-items:center;width:19px;height:19px;font-size:11px;display:grid}.order-scan-steps i{background:#c8d9f4;width:18px;height:1px}.scan-order-button{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#2563eb,#4385ef);border:0;border-radius:14px;justify-content:center;align-items:center;gap:11px;min-width:210px;padding:13px 17px;transition:transform .18s,box-shadow .18s,filter .18s;display:inline-flex;position:relative;box-shadow:0 9px 20px #2563eb3d}.scan-order-button:hover{filter:saturate(1.06);transform:translateY(-1px);box-shadow:0 12px 24px #2563eb4d}.scan-order-button:active{transform:translateY(0)}.scan-order-button-icon{background:#ffffff29;border-radius:9px;place-items:center;width:30px;height:30px;display:grid}.scan-order-button-icon svg{width:19px;height:19px}.scan-order-button-copy{flex-direction:column;align-items:flex-start;line-height:1.2;display:flex}.scan-order-button-copy strong{font-size:15px}.scan-order-button-copy small{color:#ffffffc2;margin-top:4px;font-size:11px;font-weight:400}.scan-order-button input{display:none}.scan-order-button.disabled{pointer-events:none;opacity:.65;box-shadow:none}.scan-result{background:#fff;border:1px solid #dbe5f2;border-radius:14px;margin-top:16px;overflow:hidden;box-shadow:0 5px 16px #0f172a0d}.scan-result summary{cursor:pointer;color:#1e3a5f;background:#f8fbff;padding:13px 16px;font-weight:700}.scan-result-grid{border-top:1px solid #edf2f7;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;padding:14px 16px;display:grid}.scan-result-grid div{flex-direction:column;gap:4px;display:flex}.scan-result-grid span{color:#64748b;font-size:12px}.scan-items{border:1px solid #e5e7eb;border-radius:10px;margin:0 16px 16px;overflow:auto}.scan-item{border-bottom:1px solid #eef2f7;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:10px 12px;display:grid}.scan-item:last-child{border-bottom:0}.scan-warning{color:#b45309;background:#fff7ed;border-top:1px solid #fed7aa;padding:10px 16px}@media (max-width:900px){.order-scan-card{padding:18px}.order-scan-head{flex-direction:column;align-items:stretch;gap:16px}.scan-order-button{width:100%}}@media (max-width:560px){.order-scan-card{border-radius:16px;padding:16px}.order-scan-intro{gap:12px}.order-scan-icon{border-radius:13px;flex-basis:46px;width:46px;height:46px}.order-scan-icon svg{width:25px;height:25px}.order-scan-head h3{font-size:19px}.order-scan-copy>p{font-size:13px}.order-scan-steps i{display:none}.scan-result-grid{grid-template-columns:1fr 1fr}.scan-item{grid-template-columns:1fr}.scan-order-button{min-width:0}}.scan-result-title{background:#f7faff;border-bottom:1px solid #e6edf7;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.scan-result-title>div{align-items:center;gap:10px;display:flex}.scan-result-title strong{color:#17345c;font-size:16px}.scan-result-title span{color:#2563eb;background:#e5efff;border-radius:999px;padding:3px 9px;font-size:12px}.scan-result-title em{color:#64748b;font-size:12px;font-style:normal}.scan-match-list,.scan-unmatched-block{padding:12px 16px}.scan-match-row{background:#fff;border:1px solid #dce8f7;border-radius:12px;grid-template-columns:minmax(180px,.8fr) minmax(300px,1.5fr) minmax(150px,.7fr);align-items:center;gap:16px;padding:13px 14px;display:grid}.scan-match-row+.scan-match-row{margin-top:10px}.scan-recognized,.scan-match-row label,.scan-match-status{flex-direction:column;gap:4px;display:flex}.scan-recognized span,.scan-match-row label>span{color:#728096;font-size:11px}.scan-recognized strong{color:#1e3a5f;font-size:14px}.scan-recognized small{color:#64748b;font-size:12px}.scan-match-row select{color:#172b4d;background:#fff;border:1px solid #bfd0e7;border-radius:9px;width:100%;min-height:40px;padding:7px 34px 7px 11px;font-size:13px}.scan-match-row select:focus{border-color:#3b82f6;outline:0;box-shadow:0 0 0 3px #3b82f61f}.scan-match-status{border-radius:10px;min-width:0;padding:8px 11px}.scan-match-status b{border-radius:50%;place-items:center;width:22px;height:22px;font-size:12px;display:grid}.scan-match-status span{font-size:12px;font-weight:700}.scan-match-status small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.scan-match-status.ok{color:#087a4b;background:#ecfdf5}.scan-match-status.ok b{color:#fff;background:#10b981}.scan-unmatched-block{background:#fffaf2;border-top:1px solid #fed7aa}.scan-unmatched-title{align-items:center;gap:10px;margin-bottom:10px;display:flex}.scan-unmatched-title strong{color:#b45309}.scan-unmatched-title span{color:#92400e;font-size:12px}.scan-match-row.unmatched{background:#fff;border-color:#fdba74}.scan-match-status.warning{color:#b45309;background:#fff7ed}.scan-match-status.warning b{color:#fff;background:#f59e0b}@media (max-width:850px){.scan-result-title{flex-direction:column;align-items:flex-start}.scan-match-row{grid-template-columns:1fr}.scan-match-status{flex-flow:wrap;align-items:center}.scan-unmatched-title{flex-direction:column;align-items:flex-start}}.scan-match-row label>input{box-sizing:border-box;color:#17345c;background:#fff;border:1px solid #b9c9df;border-radius:8px;outline:none;width:100%;margin:6px 0 8px;padding:10px 12px;font-size:15px;display:block}.scan-match-row label>input:focus{border-color:#4385df;box-shadow:0 0 0 3px #4385df1f}.scan-qty-edit{align-items:center;gap:5px;margin-top:6px;display:flex!important}.scan-qty-edit input{font-weight:700;color:#102b50!important;background:#fff!important;border:1px solid #aebfd5!important;border-radius:7px!important;width:74px!important;padding:6px 8px!important;font-size:16px!important}.scan-selected-product{color:#23466f;background:#edf6ff;border-radius:8px;margin-top:9px;padding:9px 11px;font-size:16px;line-height:1.45}.scan-selected-product strong{color:#102f59;font-size:17px}.history-table-scroll{scrollbar-gutter:stable both-edges;scrollbar-width:auto;scrollbar-color:#64748b #eef2f7;overscroll-behavior:contain;height:calc(100vh - 330px);min-height:320px;overflow:scroll auto}.history-table-scroll table{min-width:1450px}.history-table-scroll thead th{z-index:2;background:#f8fafc;position:sticky;top:0}.history-table-scroll::-webkit-scrollbar{width:12px;height:14px}.history-table-scroll::-webkit-scrollbar-track{background:#eef2f7;border-radius:999px}.history-table-scroll::-webkit-scrollbar-thumb{background:#94a3b8;border:3px solid #eef2f7;border-radius:999px}.history-table-scroll::-webkit-scrollbar-thumb:hover{background:#64748b}.history-table-card{position:relative;overflow:hidden}.persistent-horizontal-scroll{z-index:20;background:#eef2f7;border-top:1px solid #cbd5e1;align-items:center;height:26px;padding:4px 12px;display:flex;position:absolute;bottom:0;left:0;right:0}.persistent-horizontal-scroll input[type=range]{cursor:ew-resize;appearance:none;background:0 0;width:min(440px,100vw - 120px);height:18px;margin:0 auto;display:block}.persistent-horizontal-scroll input[type=range]::-webkit-slider-runnable-track{background:#d6dde7;border:1px solid #aab4c2;border-radius:4px;height:16px}.persistent-horizontal-scroll input[type=range]::-webkit-slider-thumb{appearance:none;background:#64748b;border:1px solid #475569;border-radius:3px;width:64px;height:14px;margin-top:0;box-shadow:inset 0 0 0 1px #fff3}.persistent-horizontal-scroll input[type=range]::-moz-range-track{background:#d6dde7;border:1px solid #aab4c2;border-radius:4px;height:14px}.persistent-horizontal-scroll input[type=range]::-moz-range-thumb{background:#64748b;border:1px solid #475569;border-radius:3px;width:64px;height:14px}.history-table-scroll{padding-bottom:26px}.product-filter-row{grid-template-columns:minmax(0,2fr) minmax(150px,1fr);align-items:end;gap:10px;margin-bottom:8px;display:grid}.product-series-field{color:#52636f;flex-direction:column;gap:6px;font-size:13px;font-weight:600;display:flex}.product-series-field select{box-sizing:border-box;color:#142238;background:#fff;border:1px solid #abbed0;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:15px;line-height:1.4}.product-series-field select:focus{border-color:#2f7dd3;box-shadow:0 0 0 3px #2f7dd324}@media (max-width:700px){.product-filter-row{grid-template-columns:1fr}.product-series-field select{min-height:42px}}.order-edit-picker{background:linear-gradient(135deg,#f7faff 0%,#eef5ff 100%);border:1px solid #d7e3f4;border-radius:14px;grid-column:1/-1;padding:16px;box-shadow:0 8px 24px #355ea014}.order-edit-picker-title{align-items:baseline;gap:12px;margin-bottom:14px;display:flex}.order-edit-picker-title strong{color:#172b4d;font-size:18px}.order-edit-picker-title span{color:#718096;font-size:13px}.order-edit-filters{grid-template-columns:1fr 1.45fr;gap:12px;margin-bottom:12px;display:grid}.order-edit-picker label{color:#50627a;flex-direction:column;gap:7px;font-size:14px;display:flex}.order-edit-picker input,.order-edit-picker select{color:#1f2f46;background:#fff;border:1px solid #bfd0e8;border-radius:9px;outline:none;width:100%;height:44px;padding:0 12px;font-size:15px}.order-edit-picker input:focus,.order-edit-picker select:focus{border-color:#4b7fd7;box-shadow:0 0 0 3px #4b7fd71f}.order-edit-product-select{margin-bottom:12px}.order-edit-product-select select{font-weight:600}.order-edit-add-row{grid-template-columns:minmax(180px,280px) max-content;align-items:end;gap:14px;display:grid}.order-edit-add-row button{height:44px;padding:0 24px}.order-edit-add-row button:disabled{opacity:.5;cursor:not-allowed}@media (max-width:700px){.order-edit-filters{grid-template-columns:1fr}.order-edit-picker-title{flex-direction:column;align-items:flex-start;gap:4px}.order-edit-add-row{grid-template-columns:1fr}.order-edit-add-row button{width:100%}}.table-sort-button{appearance:none;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-weight:700}.table-sort-button:hover{color:#2563eb}.table-sort-button:focus-visible{outline-offset:4px;border-radius:4px;outline:2px solid #3b82f6}.history-search-bar{background:#fff;border:1px solid #dbe5f2;border-radius:14px;align-items:end;gap:18px;margin:14px 0;padding:14px 16px;display:flex}.history-search-bar label{flex:1;gap:7px;max-width:720px;font-weight:700;display:grid}.history-search-bar input{width:100%;min-height:44px;font:inherit;background:#fff;border:1px solid #cbd7e6;border-radius:10px;padding:9px 13px}.history-search-bar input:focus{border-color:#4b82db;outline:2px solid #93b7ff}.history-search-bar .result-count{white-space:nowrap;margin-left:auto;padding-bottom:11px}@media (max-width:720px){.history-search-bar{flex-direction:column;align-items:stretch;gap:8px}.history-search-bar label{max-width:none}.history-search-bar .result-count{margin-left:0;padding-bottom:0}}.product-search-action{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;width:100%;min-width:0;display:grid}.product-search-action .product-search-field,.product-search-action .product-search-field input{box-sizing:border-box;width:100%;min-width:0}.product-search-button{white-space:nowrap;z-index:2;touch-action:manipulation;min-width:78px;min-height:44px;padding:0 16px;position:relative}@media (max-width:700px){.product-filter-row{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)!important}.product-search-action{grid-template-columns:minmax(0,1fr) 76px}.product-search-button{width:76px;min-width:76px;padding:0 10px}}.product-list .product-list-scroll{-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#7fa6df #edf3fb;overflow-y:scroll!important}.product-list .product-list-scroll::-webkit-scrollbar{width:10px}.product-list .product-list-scroll::-webkit-scrollbar-track{background:#edf3fb;border-radius:999px}.product-list .product-list-scroll::-webkit-scrollbar-thumb{background:#7fa6df;border:2px solid #edf3fb;border-radius:999px;min-height:42px}.product-list .product-list-scroll::-webkit-scrollbar-thumb:active{background:#4b7fd1}@media (max-width:700px){.product-list .product-list-scroll{min-height:0;max-height:230px;overflow-y:scroll!important}}.product-search-summary{color:#315b8f;background:#eef6ff;border:1px solid #cfe0f7;border-radius:9px;margin-top:6px;padding:7px 10px;font-size:13px;line-height:1.4}.product-search-summary strong{color:#1769d2;font-size:15px}.product-search-empty{color:#718096;text-align:center;background:#f8fafc;border:1px dashed #cbd7e6;border-radius:10px;margin:12px 6px;padding:18px 12px;font-size:14px;line-height:1.6}@media (max-width:700px){.product-list{height:62vh!important;min-height:360px!important;max-height:520px!important}.product-list .product-list-scroll{-webkit-overflow-scrolling:touch;touch-action:pan-y;flex:180px!important;min-height:150px!important;overflow-y:scroll!important}}.persistent-horizontal-scroll{border:1px solid #cfd8df;border-radius:8px;min-height:34px;box-shadow:0 5px 18px #0f2a422e;z-index:70!important;background:#fffffff7!important;width:auto!important;position:fixed!important;bottom:10px!important;left:260px!important;right:30px!important}.persistent-horizontal-scroll input[type=range]{width:100%!important;max-width:none!important}@media (max-width:1000px){.persistent-horizontal-scroll{left:94px!important;right:18px!important}}@media (max-width:700px){.persistent-horizontal-scroll{bottom:74px!important;left:12px!important;right:12px!important}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
