:root{color:#162536;background:#f5f7fa;font:15px/1.5 system-ui,-apple-system,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:0;border-radius:8px;background:#0b2d4d;color:#fff;cursor:pointer;padding:10px 16px}button.secondary{background:#e8eef4;color:#0b2d4d}button.small{padding:6px 10px;font-size:13px}button.link{margin:auto 0 10px;background:transparent;color:#b9c8d5;text-align:left}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#f5f7fa,#dce8f1)}.auth-card{width:min(420px,100%);background:#fff;border-radius:16px;padding:36px;box-shadow:0 16px 48px #0b2d4d1a}.brand{color:#fff;font-weight:800;letter-spacing:.04em}.brand img{width:34px;height:34px;object-fit:contain;vertical-align:middle;margin-right:6px}.brand span{font-weight:500;margin-left:8px;letter-spacing:0}.brand.dark{color:#0b2d4d}.auth .brand{color:#0b2d4d;font-size:25px}h1,h2,p{margin-top:0}h1{margin-bottom:0}h2{font-size:18px}label{display:grid;gap:6px;margin:14px 0;color:#526577}input,select{border:1px solid #d5dfe8;border-radius:7px;padding:10px 12px;min-width:0;background:#fff}form button{width:100%;margin-top:8px}details{margin-top:24px;border-top:1px solid #e6ebef;padding-top:18px;color:#526577}.layout{min-height:100vh;display:grid;grid-template-columns:220px 1fr}aside{background:#0b2d4d;color:#b9c8d5;padding:24px 16px;display:flex;flex-direction:column;gap:4px}aside nav{display:grid;gap:5px;margin-top:28px}.nav{background:transparent;color:#b9c8d5;text-align:left}.nav.active,.nav:hover{background:#ffffff1a;color:#fff}.content{padding:30px clamp(18px,4vw,52px);max-width:1400px;width:100%}header{display:flex;justify-content:space-between;align-items:start;margin-bottom:26px}.global-search{position:relative;width:min(420px,40vw);margin:0}.global-search input{width:100%}.global-search-trigger{margin-left:auto;white-space:nowrap}.global-search-trigger kbd{color:#526577;font:inherit;font-size:12px}.global-search-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:start center;padding:10vh 18px;background:#16253666}.global-search-modal>section{width:min(640px,100%);background:#fff;border-radius:12px;box-shadow:0 18px 48px #0004;padding:18px}.global-search-modal #global-search-results{position:static;margin-top:10px;width:auto}#global-search-results{position:absolute;z-index:5;width:100%;max-height:360px;overflow:auto;background:#fff;border:1px solid #dbe3ec;border-radius:8px;box-shadow:0 10px 28px #0b2d4d22}#global-search-results:empty{display:none}#global-search-results section{display:grid;gap:2px;padding:8px;border-bottom:1px solid #edf0f3}#global-search-results b{font-size:12px;color:#708394}#global-search-results button{padding:6px 8px;background:transparent;color:#162536;text-align:left}.header-brand{display:flex;align-items:center;gap:10px}.header-brand img{width:42px;height:42px;object-fit:contain}.eyebrow{color:#708394;font-size:12px;margin-bottom:4px;text-transform:uppercase}.connection{color:#3e7d53;background:#e5f4e9;padding:6px 10px;border-radius:20px;font-size:13px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.card,.panel{background:#fff;border:1px solid #e4eaf0;border-radius:12px;padding:20px}.card{display:grid;gap:8px}.todo-card{text-align:left;color:#162536;cursor:pointer}.card span,.muted{color:#718292}.card strong{font-size:22px}.toolbar,.action-group{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-bottom:12px}.toolbar{align-items:center;gap:10px;margin-bottom:14px;padding:12px 0}.toolbar input:not([type=file]),.toolbar select,.toolbar button{height:40px;border-radius:10px;font-size:14px}.toolbar input:not([type=file]),.toolbar select{border:1px solid #dbe3ec;box-shadow:none;padding:0 12px}.toolbar input:focus,.toolbar select:focus{border-color:#7f9fbc;box-shadow:0 0 0 3px #0b2d4d14;outline:0}.toolbar button{padding:0 14px;transition:background-color .14s ease,color .14s ease}.toolbar button:not(.secondary){height:42px;font-weight:600;padding:0 18px}.toolbar button.secondary{background:#eef3f7;color:#35516a}.toolbar button.secondary:hover{background:#e0e9f1}#customer-query,#quotation-query,#contract-query,#order-query{width:240px;min-width:220px;max-width:280px}#quotation-status,#contract-status{width:135px}#quotation-from,#quotation-to,#contract-from,#contract-to,#order-date{width:160px}#quotation-sort,#contract-sort,#order-sort{width:130px}#quotation-page-size,#contract-page-size,#customer-page-size,#order-page-size{width:110px}.toolbar label{align-items:center;display:flex;gap:0;margin:0;font-size:0}.toolbar label select{font-size:14px}@media(max-width:900px){.toolbar{justify-content:flex-start}.toolbar>:is(#export-quotations,#export-contracts,#contract-from-quote){margin-left:auto}}.table-actions,.toolbar-actions,.inline-actions,.table-scroll td:has(>button){display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:8px}.table-scroll td>button+button,.panel td>button+button{margin-left:0;margin-top:0}table{border-collapse:collapse;width:100%}th,td{padding:13px 10px;border-bottom:1px solid #edf0f3;text-align:left}th{color:#687b8b;font-weight:600;font-size:13px}.form-panel{margin-bottom:14px}.inline-form{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:8px;align-items:center}.inline-form input,.inline-form select{width:100%}.inline-form button{width:auto;margin:0}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:center}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-grid textarea{min-height:70px;grid-column:span 2}.form-grid button{width:auto;margin:0}.company-paste{grid-column:1 / -1;margin:0;padding:10px;border:1px solid #dbe3ec;border-radius:8px;background:#f7f9fc}.company-paste textarea{min-height:82px;width:100%;margin-top:8px}.company-paste .toolbar{justify-content:flex-start;margin:8px 0 0}.company-paste-preview{font-size:13px;color:#526577}.company-paste-preview p,.company-paste-preview ul{margin:8px 0}.company-paste-preview button{margin-right:8px}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.unit-list{display:grid;gap:8px;margin:16px 0}.unit{display:flex;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e4eaf0;border-radius:8px}.unit.completed{background:#eef8f0}.work-card{margin-bottom:12px}.tag{border-radius:4px;padding:3px 7px;font-size:12px;font-weight:700}.tag.danger,.urgent{color:#8a1c1c;background:#fff0ee}.actions{gap:8px;flex-wrap:wrap}.work-card,.order-card{border:1px solid #d5e0e9;border-radius:12px;background:#fff;margin:14px 0;padding:16px}.order-card{align-items:center;display:flex;flex-wrap:wrap;gap:10px 18px}.order-card .warehouse-items{flex:1 1 260px;min-width:0}.order-card .warehouse-item{align-items:center;border:0;display:flex;flex-wrap:wrap;gap:4px 10px;padding:0}.order-card .warehouse-item b,.order-card .warehouse-item small,.order-card .warehouse-item strong{font-size:14px;grid-column:auto}.order-card .warehouse-item b{display:none}.order-card .order-card-meta,.order-card .action-group{margin:0}.warehouse-order-list .order-card{background:#fff;border:1px solid #dbe3ec;border-left:4px solid #d8e3ee;border-radius:10px;margin:0 0 9px;padding:12px 14px}.warehouse-order-list .order-card:nth-child(2n){background:#f7f9fc;border-left-color:#bfcddd}.warehouse-order-list .order-card .warehouse-item+.warehouse-item{border-top:1px dashed #e3e8ef;margin-top:5px;padding-top:5px}.warehouse-order-grid-head,.warehouse-order-card{display:grid;grid-template-columns:48px 170px minmax(420px,1fr) 120px 90px 100px 140px}.warehouse-order-grid-head{align-items:center;color:#687b8b;font-size:13px;font-weight:600;gap:12px;padding:0 14px 7px}.warehouse-order-card{align-items:center;gap:12px}.warehouse-order-list .warehouse-order-card{display:grid}.warehouse-order-list .warehouse-order-card:nth-of-type(2n){background:#f7f9fc;border-left-color:#bfcddd}.order-grid-select,.order-grid-number,.order-grid-date,.order-grid-courier,.order-grid-send,.order-grid-actions{align-items:center;display:flex;min-width:0}.order-grid-select{justify-content:center}.order-grid-product{min-width:0}.order-grid-product .warehouse-items{display:grid;gap:5px;min-width:0}.order-grid-product .warehouse-item{border:0;display:grid;gap:3px 10px;grid-template-columns:1fr 1fr;padding:0}.order-grid-product .warehouse-item b,.order-grid-product .warehouse-item small,.order-grid-product .warehouse-item strong{grid-column:1 / -1}.order-grid-product .warehouse-item b{display:block;font-size:13px}.order-grid-product .warehouse-item strong{font-size:15px}.order-grid-product .warehouse-item+.warehouse-item{border-top:1px dashed #e3e8ef;margin-top:5px;padding-top:5px}.order-grid-actions{flex-wrap:wrap;gap:8px}.order-grid-actions button{margin:0}.warehouse-order-list .warehouse-order-card:nth-of-type(odd){background:#fff;border-left-color:#d8e3ee}.warehouse-order-list{--col-select:48px;--col-order:200px;--col-spec:210px;--col-conductor:160px;--col-color:160px;--col-qty:140px;--col-date:160px;--col-courier:120px;--col-code:130px;--col-actions:190px;--warehouse-order-columns:var(--col-select) var(--col-order) var(--col-spec) var(--col-conductor) var(--col-color) var(--col-qty) var(--col-date) var(--col-courier) var(--col-code) var(--col-actions)}.warehouse-order-grid-head,.warehouse-order-card{grid-template-columns:var(--warehouse-order-columns)}.order-grid-products{display:grid;gap:5px;grid-column:3 / span 4;min-width:0}.order-product-line{align-items:center;display:grid;gap:12px;grid-template-columns:var(--col-spec) var(--col-conductor) var(--col-color) var(--col-qty);min-height:36px;padding:4px 0}.order-product-line+.order-product-line{border-top:1px dashed #e3e8ef;padding-top:5px}.order-product-line strong{font-weight:800}.order-product-line .color-name{color:inherit}.order-grid-date{grid-column:7}.order-grid-courier{grid-column:8}.order-grid-send{grid-column:9}.order-grid-actions{grid-column:10}.warehouse-order-list{--col-select:minmax(34px,.3fr);--col-order:minmax(100px,.95fr);--col-spec:minmax(105px,1.05fr);--col-conductor:minmax(90px,.85fr);--col-color:minmax(70px,.7fr);--col-qty:minmax(60px,.65fr);--col-courier:minmax(70px,.65fr);--col-code:minmax(80px,.8fr);--col-actions:minmax(150px,1.2fr);--warehouse-order-columns:var(--col-select) var(--col-order) var(--col-spec) var(--col-conductor) var(--col-color) var(--col-qty) var(--col-courier) var(--col-code) var(--col-actions)}.warehouse-order-grid-head,.warehouse-order-card{box-sizing:border-box;grid-template-columns:var(--warehouse-order-columns);width:100%}.order-grid-number{align-items:flex-start;flex-direction:column;gap:3px}.warehouse-order-list .order-link{color:#40576d;font-size:14px;font-weight:500}.order-grid-number small{color:#718292;font-size:12px}.order-product-line>span:first-child{color:#0b2d4d;font-size:15px;font-weight:700}.order-product-line>span:nth-child(2){font-weight:500}.order-product-line>span:nth-child(3) .color-name{font-weight:700}.order-product-line strong{font-size:15px;font-weight:700}.order-grid-courier{grid-column:7;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-grid-send{grid-column:8;overflow:hidden}.order-grid-send .send-code{font-size:17px;font-weight:800}.order-grid-actions{grid-column:9;display:flex;flex-wrap:nowrap;gap:8px;min-width:0}.order-grid-actions button{flex:0 1 auto;font-size:12px;padding-left:7px;padding-right:7px;white-space:nowrap}.order-product-group{display:grid;gap:0 12px;grid-template-columns:var(--col-spec) var(--col-conductor) var(--col-color) var(--col-qty);min-width:0}.order-product-group+.order-product-group{border-top:1px dashed #e3e8ef;margin-top:5px;padding-top:5px}.order-group-spec,.order-group-conductor{align-items:center;display:flex;min-width:0}.order-group-spec{color:#0b2d4d;font-size:15px;font-weight:700}.order-group-conductor{font-weight:500}.order-group-details{display:grid;gap:0;grid-column:3 / span 2;min-width:0}.order-group-detail{align-items:center;display:grid;gap:12px;grid-template-columns:var(--col-color) var(--col-qty);min-height:28px}.order-group-detail .color-name{font-weight:700}.order-group-detail strong{font-size:15px;font-weight:700}.warehouse-order-note{grid-column:2 / -1;border-left:3px solid #bfcddd;color:#43576b;font-size:13px;line-height:1.45;margin-top:-3px;padding:5px 8px;white-space:pre-wrap;word-break:break-word}.warehouse-order-note p{margin:0}.warehouse-order-note p+p{margin-top:3px}.warehouse-order-note.special{background:#fff5ed;border-left-color:#e59a68;color:#7b3f18}.special-ack{align-items:flex-start;background:#fff5ed;border-left:3px solid #e59a68;margin-top:10px;padding:9px}.order-card-head{align-items:center;display:flex;gap:12px;margin-bottom:10px}.order-card-head .order-link{font-size:17px}.order-card-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:#526577;margin:10px 0}.order-card .action-group{justify-content:flex-start;margin:12px 0 0}.mobile-bottom,.mobile-sheet,.mobile-order-quick,.mobile-order-stash,.mobile-order-batch{display:none}@media(min-width:769px){aside .brand img,.header-brand img{background:#fff;border-radius:6px;padding:3px}}.certificate-preview{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}.certificate-preview .product-certificate{border:1px solid #a9b4bf;transform:scale(.9);transform-origin:top left;margin-right:-7mm;margin-bottom:-5mm}#batch-preview{font-size:0}#batch-preview:after{content:"确认批量入库";font-size:15px}.error{color:#b42318;min-height:1.5em}.toast{position:fixed;right:20px;bottom:20px;background:#162536;color:#fff;padding:11px 16px;border-radius:8px;box-shadow:0 4px 18px #0003}.update-notice{align-items:center;background:#162536;border-radius:10px;bottom:18px;box-shadow:0 8px 24px #0004;color:#fff;display:flex;gap:12px;padding:10px 12px;position:fixed;right:18px;z-index:40}.update-notice button{min-height:36px;padding:6px 12px}.document-editor>details,.batch-box{background:#fff;border:1px solid #dce4ec;border-radius:10px;margin-bottom:14px;padding:14px}.document-editor summary,.batch-box summary{cursor:pointer;color:#0b2d4d;font-weight:800;margin-bottom:12px}.document-editor fieldset{border:1px solid #dce4ec;border-radius:8px;display:flex;gap:14px;padding:10px}.span-all{grid-column:1 / -1}.choice{align-items:center;display:inline-flex;flex-direction:row;gap:7px}.choice input{width:auto}input[type=checkbox],.choice input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;cursor:pointer}.clause{border-bottom:1px solid #e4eaf0;display:grid;gap:8px;padding:12px 0}.clause-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}.clause-actions .small{flex:0 0 auto;width:auto}.document-preview{background:#f7f9fb;border:1px solid #cdd8e3;border-radius:8px;padding:18px}.document-preview table{min-width:0}.color-quantity-grid,.inventory-color-grid{display:grid;gap:10px;grid-template-columns:repeat(5,minmax(0,1fr));margin:12px 0}.color-quantity-grid label{background:#f7f9fb;border:1px solid #dce4ec;border-radius:8px;padding:8px}.price-history{color:#526577;display:flex;flex-wrap:wrap;font-size:12px;gap:4px 8px;line-height:1.35;margin-top:4px}#online-price-form input{min-width:120px}#online-price-template-panel .table-scroll{margin-top:8px}#online-price-template-panel .table-scroll td{padding-top:6px;padding-bottom:6px}.online-price-actions{justify-content:flex-end}.order-items-editor{overflow-x:auto}#new-order-editor .order-items-editor table{min-width:0;table-layout:fixed}#new-order-editor .order-items-editor th:nth-child(1){width:15%}#new-order-editor .order-items-editor th:nth-child(2){width:11%}#new-order-editor .order-items-editor th:nth-child(3){width:12%}#new-order-editor .order-items-editor th:nth-child(4),#new-order-editor .order-items-editor th:nth-child(5){width:14%}#new-order-editor .order-items-editor th:nth-child(6){width:25%}#new-order-editor .order-items-editor th:nth-child(7){width:9%}#new-order-editor .order-line td{min-width:0}#new-order-editor .order-line label{display:block;font-size:0}#new-order-editor .order-line :is(input,select){min-width:0;width:100%}#new-order-editor .line-action{white-space:nowrap}.color-card{align-items:flex-start;background:#f8fafc;border:1px solid #dce4ec;color:#172b3f;display:flex;flex-direction:column;gap:5px;min-height:112px;text-align:left}.color-card.low-stock{border-color:#dc6b63;background:#fff5f3}.filter-bar{align-items:center;display:flex;flex-wrap:wrap;gap:9px}.filter-bar button.active{box-shadow:inset 0 -3px #fff6}.stock-detail{margin-top:14px}.danger{background:#a72a23}.label-size{display:inline-flex;align-items:center;gap:6px;margin:0;color:#526577}.label-size select{padding:7px 9px}.order-link{background:none;color:#0b2d4d;padding:0;font-weight:600;text-align:left}.warehouse-items{display:grid;gap:6px;min-width:220px}.warehouse-item{display:grid;grid-template-columns:auto auto auto;gap:2px 10px;align-items:center;border-bottom:1px dashed #dbe3ea;padding:3px 0}.warehouse-item b{grid-column:1 / -1;font-size:12px;color:#526577}.warehouse-item small{grid-column:1 / -1;color:#718292}.warehouse-item strong{grid-column:1 / -1;font-size:15px}.color-name{display:inline-flex;align-items:center;gap:5px}.color-swatch{width:16px;height:16px;display:inline-block;border-radius:3px;border:1px solid #a9b4bf}.send-code{font-size:16px;color:#0b2d4d;white-space:nowrap}.order-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:18px;background:#16253666}.order-modal form{width:min(560px,100%);max-height:90vh;overflow:auto}.order-modal .toolbar{justify-content:flex-end}.factory-report-form{max-width:1180px;margin:0 auto}.factory-report-form h3{margin:12px 0 0;border-bottom:1px solid #dbe3ec;padding-bottom:7px}.factory-report-form table input{min-width:100px;width:100%;padding:5px}.factory-report-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#162536aa;padding:24px;overflow:auto}.factory-report-preview{width:min(210mm,100%);margin:auto;background:#dfe6ed;padding:18px}.factory-report-preview .factory-report{box-shadow:0 2px 12px #0003;background:#fff}@media(max-width:700px){.factory-report-modal{padding:8px}.factory-report-preview{padding:4px}.factory-report-preview .factory-report{transform:scale(.45);transform-origin:top left;margin-bottom:-160mm}}@media(max-width:768px){:root{--mobile-pad:14px;--mobile-bottom:76px;font-size:16px}body{background:#f5f7fa}.layout{display:block;min-height:100dvh}aside{display:none}.content{max-width:none;padding:0 var(--mobile-pad) calc(var(--mobile-bottom) + env(safe-area-inset-bottom))}header{align-items:center;background:#0b2d4d;color:#fff;margin:0 calc(var(--mobile-pad) * -1) 10px;min-height:48px;padding:calc(4px + env(safe-area-inset-top)) var(--mobile-pad) 4px;position:sticky;top:0;z-index:20}.header-brand{gap:6px;min-width:0}.header-brand img{background:#fff;border-radius:6px;height:30px;width:30px}.header-brand .eyebrow{display:none}.header-brand h1{color:#fff;font-size:17px;line-height:1.1}.global-search-trigger{background:#ffffff1a!important;color:#fff!important;font-size:0!important;min-height:44px;min-width:44px;padding:0!important}.global-search-trigger:before{content:"⌕";font-size:23px}.global-search-trigger kbd,.connection{display:none}.connection.offline{display:inline-flex;background:#8a1c1c;color:#fff}.mobile-bottom{align-items:center;background:#fff;border-top:1px solid #dbe3ec;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);left:0;min-height:calc(58px + env(safe-area-inset-bottom));padding:5px 6px calc(5px + env(safe-area-inset-bottom));position:fixed;right:0;z-index:10}.mobile-bottom button{background:transparent;color:#526577;font-size:12px;min-height:44px;padding:5px 2px}.mobile-bottom button.active{color:#0b2d4d;font-weight:800}.secondary-page .content{padding-bottom:24px}.secondary-page header{position:sticky}.secondary-page #page>.toolbar:first-child{margin-top:0}h1{font-size:22px}h2{font-size:19px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card,.panel{border-radius:12px;padding:14px}.card strong{font-size:19px}.toolbar{align-items:stretch;gap:8px;justify-content:flex-start;padding:4px 0}.toolbar>:is(input,select,button,label){flex:1 1 calc(50% - 4px);min-height:44px}.toolbar>button:first-child{flex-basis:100%}.toolbar input:not([type=file]),.toolbar select,.toolbar button{height:44px;font-size:16px;width:auto!important}.toolbar label{align-items:center;display:flex;font-size:14px}.toolbar label select{width:100%}#customer-query,#quotation-query,#contract-query,#order-query,#quotation-status,#contract-status,#quotation-from,#quotation-to,#contract-from,#contract-to,#order-date,#quotation-sort,#contract-sort,#order-sort,#quotation-page-size,#contract-page-size,#customer-page-size,#order-page-size{max-width:none;min-width:0;width:100%}.filter-bar{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0}.filter-bar button,.filter-bar input,.filter-bar label{min-height:44px}.filter-bar button,.filter-bar .choice{padding:8px}.table-scroll{overflow:visible;padding:0;border:0;background:transparent}.table-scroll table,.table-scroll tbody,.table-scroll tr,.table-scroll td{display:block;min-width:0;width:100%}.table-scroll thead{display:none}.table-scroll tbody{display:grid;gap:10px}.table-scroll tr{background:#fff;border:1px solid #e1e8ef;border-radius:12px;padding:10px 12px}.table-scroll td{align-items:baseline;border:0;display:flex;gap:10px;justify-content:space-between;padding:5px 0;text-align:right;overflow-wrap:anywhere}.table-scroll td:before{color:#687b8b;content:attr(data-label);flex:0 0 38%;font-size:13px;font-weight:700;text-align:left}.table-scroll td.action-group,.table-scroll td:has(>button){align-items:flex-start;flex-wrap:wrap;justify-content:flex-start}.table-scroll td.action-group:before,.table-scroll td:has(>button):before{flex-basis:100%}.table-scroll td[colspan]{display:block;text-align:left}.table-scroll td[colspan]:before{display:none}.pager{align-items:center;display:grid;grid-template-columns:1fr 1fr}.pager span{text-align:center}.pager button{width:100%!important}.form-grid,.inline-form{grid-template-columns:1fr}.form-grid label,.inline-form label{margin:6px 0}.form-grid input,.form-grid select,.form-grid textarea,.inline-form input,.inline-form select{font-size:16px;min-height:44px}.form-grid textarea{grid-column:auto}.form-grid button,.inline-form button{min-height:44px;width:100%}.form-panel{padding:12px}.form-panel h2{margin:0 0 8px}.form-panel .form-grid{gap:8px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}.form-panel .form-grid :is(textarea,.company-paste,button){grid-column:1 / -1}.form-panel .form-grid textarea{min-height:72px}.company-paste{margin:0;padding:10px}.company-paste textarea{min-height:72px}.price-history{font-size:12px;gap:2px 6px}#online-price-form input{font-size:16px;min-height:44px;width:100%}#online-price-template-panel .table-scroll tbody{gap:4px}#online-price-template-panel .table-scroll tr{padding:6px 10px}#online-price-template-panel .table-scroll td{padding:3px 0}#customer-query,#quotation-query,#contract-query{flex-basis:100%}#document-editor>details{margin-bottom:10px;padding:10px}#document-editor summary{margin-bottom:8px}#document-editor .form-grid{gap:8px 10px;grid-template-columns:repeat(2,minmax(0,1fr))}#document-editor .form-grid label{margin:0;min-width:0}#document-editor .form-grid .span-all,#document-editor .form-grid fieldset{grid-column:1 / -1}#document-editor .form-grid textarea{min-height:72px}#document-editor>details:nth-of-type(2) .table-scroll{overflow:visible}#document-editor>details:nth-of-type(2) .table-scroll table,#document-editor>details:nth-of-type(2) .table-scroll tbody,#document-editor>details:nth-of-type(2) .table-scroll tr,#document-editor>details:nth-of-type(2) .table-scroll td{display:block;width:100%}#document-editor>details:nth-of-type(2) .table-scroll thead{display:none}#document-editor>details:nth-of-type(2) .table-scroll tbody{display:grid;gap:10px}#document-editor>details:nth-of-type(2) .table-scroll .doc-item{background:#fff;border:1px solid #dbe3ec;border-radius:10px;display:grid;gap:8px 10px;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:48px 12px 12px;position:relative}#document-editor>details:nth-of-type(2) .table-scroll .doc-item td{border:0;min-width:0;padding:0;text-align:left}#document-editor>details:nth-of-type(2) .table-scroll .doc-item td:before{display:none}#document-editor>details:nth-of-type(2) .table-scroll .doc-item td:nth-child(1),#document-editor>details:nth-of-type(2) .table-scroll .doc-item td:nth-child(2){grid-column:1 / -1}#document-editor>details:nth-of-type(2) .table-scroll .doc-item :is(input,select){font-size:16px;min-height:42px;width:100%}#document-editor>details:nth-of-type(2) .table-scroll .doc-item td:last-child{position:absolute;right:6px;top:4px;width:auto}#document-editor>details:nth-of-type(2) .table-scroll .doc-item td:last-child button{min-height:44px;width:auto}#new-order-editor{padding:12px}#new-order-editor h2{margin:0 0 8px}#new-order-editor .order-form-grid{gap:8px 10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#new-order-editor .order-form-grid label{margin:0;min-width:0}#new-order-editor .order-customer,#new-order-editor .order-external,#new-order-editor .order-send,#new-order-editor .order-note,#new-order-editor .order-urgent{grid-column:1 / -1}#new-order-editor .order-form-grid :is(input,select){min-height:44px}#new-order-editor .order-note textarea{min-height:72px}#new-order-editor .order-urgent{min-height:44px;padding:0 4px}#new-order-editor .order-form-actions{background:#fff;bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom));padding:8px 0;position:sticky;z-index:4}#new-order-editor .order-form-actions button,#new-order-editor #add-order-line{min-height:44px;width:100%}#new-order-editor .order-items-editor{overflow:visible}#new-order-editor .order-items-editor table,#new-order-editor .order-items-editor tbody,#new-order-editor .order-items-editor tr,#new-order-editor .order-items-editor td{display:block;width:100%}#new-order-editor .order-items-editor thead{display:none}#new-order-editor .order-items-editor tbody{display:grid;gap:10px}#new-order-editor .order-items-editor .order-line{background:#fff;border:1px solid #dbe3ec;border-radius:10px;display:grid;gap:8px 10px;grid-template-columns:minmax(0,3fr) minmax(0,2fr);margin:0;padding:48px 12px 12px;position:relative}#new-order-editor .order-items-editor .order-line td{border:0;min-width:0;padding:0;text-align:left}#new-order-editor .order-items-editor .order-line td:before{display:none}#new-order-editor .order-items-editor .order-line label{color:#526577;display:grid;font-size:13px;font-weight:700;gap:4px}#new-order-editor .order-items-editor .order-line :is(input,select){font-size:16px;min-height:42px}#new-order-editor .order-items-editor .line-structure{color:#526577;font-size:14px;grid-column:1 / -1}#new-order-editor .order-items-editor .line-note-cell{grid-column:1 / -1}#new-order-editor .order-items-editor .line-action{position:absolute;right:6px;top:4px;width:auto}#new-order-editor .order-items-editor .line-action .remove-order-line{min-height:44px;padding:7px 10px;width:auto}.global-search-modal{align-items:start;padding:calc(12px + env(safe-area-inset-top)) 12px}.global-search-modal>section{max-height:calc(100dvh - 24px);overflow:auto;padding:14px}.global-search-modal input{font-size:16px;min-height:44px}.mobile-sheet{background:#16253666;display:flex;top:0;right:0;bottom:0;left:0;position:fixed;z-index:30;align-items:end}.mobile-sheet>section{background:#fff;border-radius:16px 16px 0 0;max-height:80dvh;overflow:auto;padding:18px 14px calc(18px + env(safe-area-inset-bottom));width:100%}.mobile-sheet nav{display:grid;gap:8px;margin:12px 0}.mobile-sheet nav button{background:#eef3f7;color:#0b2d4d;min-height:44px;text-align:left}.warehouse-order-list .order-card{margin-bottom:9px}.warehouse-order-list .warehouse-order-card{grid-template-columns:1fr}.warehouse-order-grid-head{display:none}.order-grid-actions{flex-wrap:wrap}.order-grid-products{grid-column:auto}.order-product-group{grid-template-columns:1fr 1fr}.order-group-details{grid-column:1 / -1}.order-group-detail{grid-template-columns:1fr 1fr}#order-query{flex-basis:100%}.mobile-order-quick{display:grid;gap:8px;grid-template-columns:1fr 1fr;margin:0 0 8px}.mobile-order-quick button{min-height:42px}.mobile-order-stash,#print-selected{display:none}.mobile-order-sheet .mobile-order-sheet-body{display:grid;gap:8px}.mobile-order-sheet .mobile-order-sheet-body>*{display:block!important;width:100%!important;margin:0}.mobile-order-sheet .mobile-order-sheet-body label{align-items:center;display:flex!important;gap:8px;min-height:44px}.mobile-order-sheet .mobile-order-sheet-body select,.mobile-order-sheet .mobile-order-sheet-body input,.mobile-order-sheet .mobile-order-sheet-body button{min-height:44px;width:100%}.order-grid-select{position:absolute;right:8px;top:7px}.order-select-label{align-items:center;display:flex;height:44px;justify-content:center;margin:0;width:44px}.order-select-label span{display:none}.order-select-label input{height:22px;width:22px}.mobile-order-batch{align-items:center;background:#fff;border:1px solid #dbe3ec;border-radius:10px;display:grid;gap:8px;grid-template-columns:1fr 1fr;margin:0 0 10px;padding:8px}.mobile-order-batch label{align-items:center;display:flex;gap:7px;margin:0;min-height:44px}.mobile-order-batch span{color:#526577;text-align:right}.mobile-order-batch button{display:none;min-height:44px;padding:8px}.mobile-order-batch.has-selection{bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom) + 8px);box-shadow:0 4px 18px #0002;left:12px;position:fixed;right:12px;z-index:9}.mobile-order-batch.has-selection button{display:block}.mobile-order-batch.has-selection+.warehouse-order-list{padding-bottom:144px}.unit{display:grid}.toast{bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom));left:14px;right:14px;text-align:center}}@media(max-width:700px){.color-quantity-grid,.inventory-color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.document-editor>details{padding:10px}.document-editor fieldset{align-items:flex-start;flex-direction:column}.filter-bar{align-items:stretch}.filter-bar>*{flex:1 1 44%}}@media(max-width:340px){#new-order-editor .order-items-editor .order-line{grid-template-columns:1fr}}@media(max-width:359px){#new-order-editor .order-form-grid{grid-template-columns:1fr}#new-order-editor .order-form-grid>label{grid-column:auto}}@media(max-width:359px){.form-panel .form-grid,#document-editor .form-grid,#document-editor>details:nth-of-type(2) .table-scroll .doc-item{grid-template-columns:1fr}}@media(max-width:700px){.warehouse-order-list .table-scroll{overflow:visible}.warehouse-order-list table,.warehouse-order-list thead,.warehouse-order-list tbody,.warehouse-order-list tr,.warehouse-order-list td{display:block;min-width:0}.warehouse-order-list thead{display:none}.warehouse-order-list tr{margin:10px 0;padding:12px;border:1px solid #e4eaf0;border-radius:10px;background:#fff}.warehouse-order-list td{padding:4px 0;border:0}.warehouse-order-list td:first-child{float:right}.warehouse-order-list td:last-child{display:flex;gap:8px;margin-top:8px}.warehouse-order-list .warehouse-item{grid-template-columns:1fr 1fr}.warehouse-order-list .warehouse-item b,.warehouse-order-list .warehouse-item small,.warehouse-order-list .warehouse-item strong{grid-column:1 / -1}}@media(max-width:700px){.warehouse-order-grid-head{display:none}.warehouse-order-list .warehouse-order-card{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 14px;position:relative}.order-grid-select{position:absolute;right:12px;top:12px}.order-grid-number{order:-1;padding-right:30px}.order-grid-product .warehouse-item{grid-template-columns:1fr}.order-grid-date,.order-grid-courier,.order-grid-send{display:block}.order-grid-date:before{content:"日期："}.order-grid-courier:before{content:"快递："}.order-grid-send:before{content:"寄件码："}.order-grid-actions{margin-top:4px}}@media(max-width:700px){.order-grid-products,.order-grid-date,.order-grid-courier,.order-grid-send,.order-grid-actions,.warehouse-order-note{grid-column:auto}.order-grid-products{display:grid}.order-product-line{gap:4px 12px;grid-template-columns:1fr 1fr;min-height:0}.order-product-line span:nth-child(3),.order-product-line strong{grid-column:auto}}@media(max-width:700px){.order-product-line span:nth-child(1){grid-column:1;grid-row:1}.order-product-line span:nth-child(2){grid-column:2;grid-row:1}.order-product-line span:nth-child(3){grid-column:1;grid-row:2}.order-product-line strong{grid-column:2;grid-row:2}}
