*{box-sizing:border-box}body{margin:0;background:#f5f7f6;color:#273c33;font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}a{color:inherit;text-decoration:none}.sidebar{position:fixed;width:230px;inset:0 auto 0 0;background:#173d30;color:#d9e7df;padding:31px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;padding:0 5px 38px;white-space:nowrap}.logo{display:grid;place-items:center;width:42px;height:45px;border-radius:12px;background:#d6e9af;color:#244732;font-size:25px}.brand small{display:block;font-size:11px;letter-spacing:2px;font-weight:400;color:#9cbdac;margin-top:1px}.nav-label{font-size:11px;color:#88a999;padding:5px 14px 13px;letter-spacing:2px}nav a{display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:9px;margin-bottom:7px;color:#b9d0c3}nav a:hover{background:#234d3b}nav a.active{background:#dcecce;color:#234b36;font-weight:650}nav .nav-icon{font-size:18px;display:inline-block;width:22px;text-align:center}nav .badge{margin-left:auto;background:#c6dcb5;font-size:11px;border-radius:6px;padding:0 6px}.sidebar-bottom{margin-top:auto;border-top:1px solid #315343;padding:22px 12px 0;font-size:12px}.sidebar-bottom small{display:block;color:#87a996;margin-top:9px}.live-dot{display:inline-block;background:#bdd69a;width:7px;height:7px;border-radius:50%;margin-right:7px}.workspace{margin-left:230px}header{height:78px;padding:0 38px;background:white;border-bottom:1px solid #e6ece8;display:flex;align-items:center;justify-content:space-between}.breadcrumb{color:#8a968e}.breadcrumb span{margin:0 14px;color:#c7d0ca}.breadcrumb b{color:#324a3e;font-weight:500}.header-right{display:flex;align-items:center;gap:12px;font-size:12px}.header-right>span:first-child{color:#86938b;margin-right:20px}.avatar{background:#edf2e8;border:1px solid #dce6d4;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:13px}.text-button{border:0;background:none;color:#4b6a39;white-space:nowrap;font-size:12px}main{padding:28px 38px 35px;min-height:calc(100vh - 210px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8b9b8e;margin-bottom:5px}h1{font-size:28px;letter-spacing:-.5px;margin:0 0 6px;font-weight:650}h2{font-size:17px;margin:0;font-weight:600}.subtitle{color:#8a978e;font-size:12px}.buttons{display:flex;gap:10px;align-items:center}.button{border:1px solid #dae3dc;background:white;color:#52685a;border-radius:7px;padding:9px 16px;display:inline-flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}.button:hover{background:#eff4ec}.button.primary{background:#286447;color:white;border-color:#286447}.button.primary:hover{background:#1e5139}.button.small{padding:5px 10px;font-size:11px}.button:disabled{opacity:.45;cursor:default}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:white;border:1px solid #e3e9e4;border-radius:10px;padding:20px 23px}.stat .stat-label{color:#7d9082;font-size:12px;display:flex;align-items:center;justify-content:space-between}.stat .stat-icon{background:#eff4e8;color:#72915c;padding:2px 8px;border-radius:6px;font-size:16px}.stat .value{font-size:30px;letter-spacing:-1px;font-weight:600;margin:8px 0 5px}.stat .hint{color:#91a092;font-size:11px}.panel{background:white;border:1px solid #e1e8e2;border-radius:11px;overflow:hidden;margin-bottom:20px}.panel-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf0ec}.panel-head .muted{margin-left:10px;font-size:12px}.filters{padding:15px 23px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0ec;flex-wrap:wrap}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tab{border:0;border-radius:6px;background:transparent;color:#86958a;padding:7px 13px;font-size:12px}.tab.active{background:#eaf2e4;color:#326043;font-weight:600}.filter-right{margin-left:auto;display:flex;gap:10px;align-items:center}input,select,textarea{border:1px solid #dfe6df;border-radius:6px;padding:9px 11px;background:white;color:#334e3e;min-width:0}input[type=date],input[type=month]{font-size:12px}.search{width:215px;font-size:12px;background:#fafbf9}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:12px}th{font-weight:500;color:#8a9a8d;background:#fafbf9;padding:13px 21px;border-bottom:1px solid #edf1ec}td{padding:18px 21px;border-bottom:1px solid #eef2ee;color:#5a7061}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfb}td strong{font-weight:550;color:#334f3d}.sub{display:block;font-size:10px;color:#9ba79d;margin-top:3px}.money{font-variant-numeric:tabular-nums;color:#284e37;font-weight:600}.status{display:inline-block;font-size:10px;padding:3px 9px;border-radius:5px;background:#ecf3e7;color:#5c7a46}.status.pending{color:#a28037;background:#fbf3df}.status.blue{color:#537b93;background:#eaf2f7}.status.gray{color:#8b978e;background:#f0f2f0}.status.purple{color:#7d6b98;background:#f1edf6}.table-foot{display:flex;justify-content:space-between;padding:14px 23px;color:#95a094;font-size:11px;border-top:1px solid #edf1ec}.note{background:#edf3e8;border-radius:8px;border:1px solid #e0e8d9;padding:15px 20px;font-size:12px;color:#6c8061;display:flex;gap:12px}.note b{color:#3d623e;font-weight:550}.muted{color:#8c9b8f}.link-button{border:0;background:none;color:#35734c;font-size:12px;padding:3px 0}.link-button:hover{text-decoration:underline}.empty{padding:55px;text-align:center;color:#8a998d}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.customer-card{padding:22px}.customer-card h2{margin-bottom:10px}.customer-card p{margin:5px 0;color:#85958a;font-size:12px}.customer-card .row{display:flex;justify-content:space-between;align-items:center}footer{padding:0 38px 24px;color:#a0aba2;font-size:10px;display:flex;justify-content:space-between;gap:20px}.check{color:#5a794c}dialog{border:1px solid #dce5dc;border-radius:14px;padding:0;width:760px;max-width:94vw;color:#334e3e;max-height:90vh}dialog::backdrop{background:#142c2366;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:21px 27px;border-bottom:1px solid #e8eee7}.icon-button{border:0;background:none;font-size:25px;color:#8d9b8e}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 27px;border-top:1px solid #e8eee7}#modal-body,#proxy-modal-body{padding:22px 27px;max-height:65vh;overflow:auto}label.field{display:block;margin-bottom:16px;font-size:12px;color:#6f8574}label.field input,label.field select,label.field textarea{display:block;width:100%;margin-top:6px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-summary{background:#f3f6ef;border-radius:8px;padding:16px;font-size:12px;margin-bottom:18px}.detail-summary p{margin:4px 0}.weight{width:95px;padding:7px}.line-total{font-size:12px;padding:17px 0;text-align:right}.print-only{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#1c4936;color:white;padding:12px 24px;border-radius:8px;box-shadow:0 6px 20px #12332522;display:none;z-index:10}.order-line{display:grid;grid-template-columns:1fr 110px 40px;gap:10px;margin-bottom:10px}.order-line button{border:0;background:#f6eeeb;color:#a86a53;border-radius:6px}.mobile-menu{display:none}@media(min-width:1600px){main{max-width:1550px;margin:auto}}@media(max-width:1100px){.sidebar{width:185px;padding:26px 14px}.brand{font-size:17px;gap:7px;padding-inline:0}.workspace{margin-left:185px}header{padding:0 23px}main{padding:25px 23px}.stats{gap:10px}.stat{padding:17px}.stat .value{font-size:25px}th,td{padding-left:15px;padding-right:15px}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:15px}.brand{padding:0 0 12px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px;overflow:auto}nav a{padding:9px 12px;white-space:nowrap;margin:0;font-size:12px}nav .nav-icon,nav .badge{display:none}.workspace{margin:0}header{height:55px;padding:0 16px}.header-right>span:first-child{display:none}main{padding:22px 15px}.page-heading{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}.filters{padding:13px}.filter-right{margin-left:0;width:100%}.search{width:100%}h1{font-size:24px}.panel-head{padding:17px}.form-row{grid-template-columns:1fr}.order-line{grid-template-columns:1fr 80px 32px}footer{padding:0 15px 20px;flex-direction:column;gap:5px}}
@media print{body{background:white}.sidebar,header,footer,.page-heading .buttons,.filters,.no-print,.modal-actions,.modal-head button,#toast{display:none!important}.workspace{margin:0}main{padding:0;min-height:0}.panel{border:0}.stats{display:none}.print-only{display:block}dialog[open]{position:absolute;margin:0;inset:0;border:0;width:100%;max-width:none;max-height:none}body:has(dialog[open]) .workspace{display:none}#modal-body,#proxy-modal-body{max-height:none;overflow:visible}.note{border:0}th,td{padding:10px}button{display:none!important}}

#toast{max-width:calc(100vw - 40px);box-sizing:border-box;overflow-wrap:anywhere;pointer-events:none}dialog[open]>#toast{bottom:24px;z-index:1000} @media print{dialog[open]>#toast{display:none!important}}

.catalog-category-filters{display:flex;flex-direction:column;align-items:stretch;gap:16px}.category-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.category-filter-toolbar .filter-right{margin-left:auto}.category-filter-groups{display:flex;flex-direction:column;gap:8px;min-width:0}.category-filter-group{display:flex;align-items:stretch;border:1px solid #e5ece4;border-radius:10px;overflow:hidden;background:#fff}.category-parent{flex:0 0 130px;display:flex;align-items:center;background:#f3f7ef;padding:8px 10px;border-right:1px solid #e5ece4}.category-parent .category-main{font-weight:600;text-align:left;width:100%;white-space:normal}.category-children{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:8px 12px;min-width:0}.category-filter-group.has-selection{border-color:#b7cdb0}.category-filter-group.has-selection .category-parent{background:#eaf2e3}.catalog-category-filters .tab.active{background:#dceccd;color:#214d3b}.catalog-category-filters .tab{border-radius:7px}.category-children .tab{white-space:normal;text-align:left}@media(max-width:600px){.category-parent{flex-basis:100px;padding:6px}.category-children{padding:6px;gap:4px}.category-filter-toolbar{flex-wrap:wrap}.category-filter-toolbar .filter-right{width:auto;flex:1;min-width:140px}}@media print{.catalog-category-filters{display:none!important}}

.after-photos{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.after-photos img{width:130px;height:130px;object-fit:cover;border-radius:12px}.after-event{border-left:3px solid #d6e4cb;padding:12px 18px;margin:16px 0;line-height:1.8}

.order-filters{flex-direction:column;align-items:stretch;gap:14px}.order-filters .filter-right{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;width:100%}.order-filters .order-number-search{flex:1;min-width:200px;max-width:340px;margin-right:auto}

.order-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.order-page-controls,.order-page-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.order-page-controls label{display:flex;align-items:center;gap:8px}.order-page-nav{padding:0}.order-page-nav .button{min-width:36px;padding:7px 12px}.order-page-nav .button:disabled{cursor:default;opacity:.45}.order-page-controls select{padding:7px 10px}@media(max-width:700px){.order-pagination{align-items:flex-start}.order-page-controls{width:100%}}
.tool-admin-tabs{margin:0 0 22px}.tool-pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
.merchant-intro{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin-bottom:22px}.merchant-cert-thumb{width:140px;height:105px;object-fit:contain;border-radius:8px;background:#f4f6f0}
.od-summary{display:flex;justify-content:space-between;align-items:flex-start;background:#f0f5eb;padding:24px;border-radius:14px;margin-bottom:24px}.od-summary h2{margin:5px 0}.od-summary p{margin:4px 0;color:#70836c}.od-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.od-grid>div{padding:15px 18px;border:1px solid #e7ede5;border-radius:10px;min-width:0}.od-grid span{display:block;font-size:12px;color:#80917a;margin-bottom:6px}.od-grid strong{font-weight:500;overflow-wrap:anywhere}.od-section-title{margin:30px 0 16px}.od-amounts{display:flex;gap:22px;justify-content:flex-end;flex-wrap:wrap;margin:20px 0}.od-amounts>div{display:flex;gap:18px;align-items:center}.od-amounts strong{font-size:21px;color:#276645}.od-pre{white-space:pre-wrap;overflow-wrap:anywhere}.od-after{border:1px solid #e4ecdf;border-radius:12px;padding:18px;margin:14px 0}.od-after-head{display:flex;justify-content:space-between}.od-event{border-left:3px solid #d6e4cc;padding:8px 0 20px 20px}.od-event strong{font-weight:600}@media(max-width:600px){.od-grid{grid-template-columns:1fr}.od-summary{padding:18px}.od-amounts{justify-content:flex-start}}

.parcel-create-form{background:#f3f7ef;border-radius:14px;padding:20px;margin:24px 0}.parcel-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.parcel-label-preview{text-align:center;background:white;border:1px solid #e3e8df;border-radius:16px;padding:24px}.parcel-label-preview img{display:block;width:200px;height:200px;padding:12px;box-sizing:content-box;margin:16px auto;background:white}.parcel-label-preview strong{font-size:30px;color:#22563b}@media(max-width:600px){.parcel-form-grid{grid-template-columns:1fr}}

.scale-panel{margin-bottom:24px}.scale-panel .panel-head h2{margin-bottom:7px}.scale-body{display:grid;grid-template-columns:1fr 1fr;padding:28px;gap:30px;background:linear-gradient(105deg,#f2f7ee,#fff)}.scale-caption{font-size:14px;color:#71836c}.scale-number{font-variant-numeric:tabular-nums;line-height:1.2;display:flex;align-items:baseline;gap:14px;margin:8px 0;color:#1c513a}.scale-number span{font-size:clamp(48px,5vw,72px);font-weight:700;letter-spacing:-2px}.scale-number small{font-size:23px}.scale-jin{color:#55764c;font-size:18px}.scale-status{padding:10px 0}.scale-status p{margin:14px 0;line-height:1.7}.scale-status .muted{font-size:12px;line-height:1.9}.scale-pill{display:inline-flex;align-items:center;padding:8px 16px;border-radius:24px;background:#e9eee5;color:#61735b;font-size:16px;font-weight:600}.scale-pill.stable{background:#dceecf;color:#245f39}.scale-pill.moving{background:#fff0cc;color:#916321}.scale-pill.warning{background:#f8e4dd;color:#974a35}.scale-help{padding:18px 28px;line-height:1.8;color:#71836c;border-top:1px solid #edf1e9;font-size:13px}.scale-diagnostics{padding:0 28px 22px;color:#71836c;font-size:13px}.scale-diagnostics summary{cursor:pointer}.scale-diagnostics p{line-height:1.8}.scale-panel button:disabled{opacity:.55;cursor:default}@media(max-width:700px){.scale-body{grid-template-columns:1fr;padding:22px;gap:10px}.scale-help,.scale-diagnostics{padding-left:22px;padding-right:22px}.scale-panel .panel-head{align-items:flex-start;gap:14px;flex-wrap:wrap}}

.warehouse-scale{background:#f3f7ee;border:1px solid #dce8d2;border-radius:14px;padding:20px;margin:18px 0 24px}.warehouse-scale-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.warehouse-scale-head h3{margin:0}.warehouse-scale-grid{display:grid;grid-template-columns:1.5fr 1fr;align-items:center;gap:18px;margin:18px 0}.warehouse-scale .field{margin:0}.warehouse-scale-live strong{display:block;font-size:32px;color:#245b3c;font-variant-numeric:tabular-nums}.warehouse-scale-live span{display:block;color:#6e8465;margin-top:6px}.warehouse-scale p{font-size:13px;line-height:1.8;margin:12px 0 0}.warehouse-scale .warehouse-scale-receipt{color:#256440;font-weight:600}.warehouse-scale button:disabled{opacity:.5;cursor:default}@media(max-width:650px){.warehouse-scale-grid{grid-template-columns:1fr}.warehouse-scale{padding:16px}}

.inventory-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.inventory-pack-row,.inventory-link-row{padding:18px;border:1px solid #dfe8d8;border-radius:12px;margin:14px 0;background:#f8faf5}.inventory-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.inventory-check{display:flex;align-items:center;gap:9px;margin:10px 0}.inventory-check input{width:16px;height:16px}.inventory-package-summary{margin:7px 0}.inventory-pack-row .muted,.inventory-link-row .muted{font-size:13px}.inventory-pack-row [name=packageBarcode]{font-variant-numeric:tabular-nums}@media(max-width:650px){.inventory-form-grid{grid-template-columns:1fr}.inventory-pack-row,.inventory-link-row{padding:14px}}

.warehouse-tabs{margin:0 0 22px;gap:10px}.warehouse-tabs .tab{font-size:15px;padding:12px 20px}.warehouse-product-inventory{margin-top:20px;padding:18px;border-radius:12px;background:#f1f6ec;border:1px solid #dfe8d7}.warehouse-product-inventory p{font-size:13px;line-height:1.8;margin-bottom:0}

.warehouse-product-toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;padding:18px 22px;border-bottom:1px solid #e7ede8}.warehouse-product-toolbar label{display:flex;flex-direction:column;gap:6px;color:#70836c;font-size:12px}.warehouse-product-toolbar .warehouse-product-search{flex:1;min-width:190px;max-width:390px}.warehouse-product-search .search{width:100%}.warehouse-product-toolbar select{min-width:140px}.warehouse-selected-category{margin-left:auto;align-self:center;font-size:12px}.warehouse-catalog-layout{display:grid;grid-template-columns:200px minmax(0,1fr);min-height:480px}.warehouse-category-tree{padding:16px 10px;background:#f8faf7;border-right:1px solid #e4ece4;min-width:0}.warehouse-tree-title{padding:0 12px 13px;font-size:12px;color:#80907a}.warehouse-tree-select{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:transparent;border:0;text-align:left;border-radius:7px;padding:10px 12px;color:#5e7565}.warehouse-tree-select span{overflow-wrap:anywhere}.warehouse-tree-select small{font-variant-numeric:tabular-nums;color:#8b9e87}.warehouse-tree-select:hover{background:#edf3e8}.warehouse-tree-select.selected{background:#deedcf;color:#265c3d;font-weight:600}.warehouse-tree-parent{display:flex;align-items:center;margin-top:5px}.warehouse-tree-toggle{flex:0 0 24px;width:24px;border:0;background:transparent;padding:8px 0;color:#7c9476}.warehouse-tree-spacer{width:24px;flex:0 0 24px}.warehouse-tree-children{margin-left:27px;border-left:1px solid #dde6d8;padding-left:6px}.warehouse-product-content{min-width:0}.warehouse-product-content table{min-width:940px}.warehouse-product-content th,.warehouse-product-content td{padding:16px 12px}.warehouse-product-info-col{min-width:210px}.warehouse-product-content tbody td:first-child img{width:64px;height:64px;flex-shrink:0}.warehouse-product-content tbody td:last-child .button{padding:7px 10px;font-size:12px;white-space:nowrap}.warehouse-product-content .table-wrap{overflow-x:auto}.warehouse-product-panel .panel-head{border-bottom:1px solid #e7ede8}@media(max-width:1050px){.warehouse-catalog-layout{grid-template-columns:165px minmax(0,1fr)}.warehouse-category-tree{padding:12px 6px}.warehouse-tree-select{padding:9px 8px}}@media(max-width:650px){.warehouse-catalog-layout{grid-template-columns:1fr;min-height:0}.warehouse-category-tree{border-right:0;border-bottom:1px solid #e4ece4;max-height:230px;overflow-y:auto}.warehouse-product-toolbar{padding:16px;gap:10px}.warehouse-product-toolbar .warehouse-product-search{max-width:none;width:100%;flex-basis:100%}.warehouse-selected-category{margin-left:0}.warehouse-product-toolbar select{min-width:130px}}@media print{.warehouse-product-toolbar,.warehouse-category-tree{display:none}.warehouse-catalog-layout{display:block}.warehouse-product-content table{min-width:0}}

.product-attribute-form{border:1px solid #dde8d8;background:#f7faf4;padding:18px;border-radius:12px;margin:18px 0}.product-attribute-form h3{margin:0 0 14px}.product-attribute-form h3:not(:first-child){margin-top:20px}.product-attribute-form p{font-size:13px;line-height:1.8}.product-shelf-grid{display:grid;grid-template-columns:1fr 100px 1fr;gap:14px}.spec-row{grid-template-columns:minmax(100px,1.5fr) minmax(70px,1fr) minmax(120px,1.3fr) minmax(80px,1fr) auto auto!important}.product-attribute-cell{min-width:180px}.warehouse-product-content:has(.product-attribute-cell) table{min-width:1120px}@media(max-width:650px){.product-shelf-grid{grid-template-columns:1fr}.spec-row{grid-template-columns:1fr 1fr!important}}

.simple-product-editor h3{font-size:15px;margin:0 0 14px}.simple-product-basic>h3,.simple-product-selling>h3{color:#24553b}.simple-product-basic>[name=name]{width:100%}.simple-product-editor .product-attribute-form{padding:16px;margin:14px 0;background:#f6f9f2}.simple-product-editor .product-attribute-form>h3{display:none}.simple-product-context{font-size:12px;color:#73856b;line-height:1.8;margin-top:0}.simple-product-editor #variant-packaging-hint{font-size:12px}.simple-product-details{border-top:1px solid #e4eadf;margin:12px 0 0;padding:13px 0}.simple-product-details>summary{cursor:pointer;color:#526f59;font-size:13px;font-weight:500;line-height:1.7}.simple-product-details-body{padding-top:14px}.simple-product-details:not([open])>.simple-product-details-body{display:none}.simple-product-details-body fieldset{margin:0!important}.simple-product-details-body fieldset small{display:none}.simple-product-image{margin:20px 0}.simple-product-image .field{margin-bottom:0}.simple-product-image .field>span:first-child{display:none}.simple-product-image #product-image-preview{width:100px!important;height:100px!important}.simple-product-image #product-image-status{font-size:12px}.simple-product-selling{border-top:1px solid #e4eadf;margin-top:20px;padding-top:20px}.simple-product-selling>section{background:#fafbf8}.simple-product-selling>section #oil-spec-example{display:none}.simple-product-footer{font-size:12px;color:#83917b;margin:18px 0 0}.simple-product-editor .product-shelf-grid .field{margin-bottom:8px}.simple-product-table .simple-product-sort{display:none}.simple-product-table{min-width:1040px!important}.simple-product-table td{vertical-align:top}.simple-product-table .product-attribute-cell{min-width:165px}

/* Wide, task-oriented product editor. Other dialogs retain their own size. */
dialog.wide-product-dialog{width:1320px;max-width:96vw;max-height:94vh}dialog.wide-product-dialog #modal-body{max-height:calc(94vh - 150px);padding:24px 32px;background:#f7f9f7}.wide-product-dialog .modal-head{padding:18px 32px}.wide-product-dialog .modal-actions{padding:16px 32px}.wide-product-section{padding:22px 24px;background:white;border:1px solid #e0e8e1;border-radius:12px;margin-bottom:18px}.wide-section-title{display:flex;align-items:center;gap:16px;margin-bottom:18px}.wide-section-title h3{margin:0;color:#24553b;font-size:16px}.wide-section-title span{font-size:12px;color:#8a9a8e}.wide-identity-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.wide-product-dialog label.field{font-size:13px}.wide-product-dialog label.field input,.wide-product-dialog label.field select{min-height:44px}.wide-media-row{display:flex;align-items:center;gap:28px;border-top:1px solid #edf1ed;padding-top:18px}.wide-media-row>.field{display:flex;flex-wrap:wrap;align-items:center;gap:12px;max-width:430px;margin:0}.wide-media-row #product-image-preview{order:-1;width:120px!important;height:120px!important;border-radius:10px;object-fit:contain;background:#f3f6f1}.wide-media-row input[type=file]{max-width:280px}.wide-image-url{flex:1;min-width:0}.wide-image-url .muted{font-size:12px}.wide-category-row{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;max-width:850px;margin-bottom:12px}.wide-category-row select{height:44px}.wide-product-dialog .product-attribute-form{margin:0;padding:0;background:transparent;border:0}.wide-product-dialog .product-attribute-form>.inventory-form-grid{grid-template-columns:1fr 1fr;gap:28px}.wide-backing-select{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;pointer-events:none}.wide-radio-options{display:flex;gap:12px;margin-top:8px}.wide-radio-options label{display:flex;align-items:center;gap:9px;border:1px solid #dfe6df;border-radius:7px;padding:9px 17px;color:#496551;font-size:14px;cursor:pointer}.wide-radio-options label:has(:checked){border-color:#286447;background:#edf5ed;color:#20593c}.wide-radio-options input[type=radio]{width:16px;min-height:0;height:16px;margin:0;accent-color:#286447}.wide-product-dialog .simple-product-context{margin-bottom:0}.wide-product-dialog .simple-single-price{max-width:720px}.wide-product-dialog .spec-row{grid-template-columns:2fr 1fr 1.3fr 1.2fr auto auto!important}.wide-sale-footer{max-width:340px;margin-top:18px}.wide-sale-footer .field{margin-bottom:0}.wide-extras{background:white;border:1px solid #e0e8e1;border-radius:10px;padding:16px 24px}.wide-extras .simple-shelf{border:0;margin:0;padding:0}.wide-product-dialog .warehouse-product-inventory{margin-top:18px}.wide-product-dialog #oil-spec-example{display:none}.wide-product-dialog .simple-product-footer{font-size:12px}.wide-product-dialog fieldset[hidden]{display:none!important}@media(max-width:850px){.wide-identity-row{grid-template-columns:1fr}.wide-media-row{flex-direction:column;align-items:stretch}.wide-section-title{align-items:flex-start;flex-direction:column;gap:4px}.wide-product-dialog .product-attribute-form>.inventory-form-grid{grid-template-columns:1fr}.wide-product-dialog #modal-body{padding:16px!important}.wide-product-section{padding:18px}.wide-product-dialog .spec-row{grid-template-columns:1fr 1fr!important}.wide-category-row{grid-template-columns:1fr 1fr}.wide-category-row button{justify-self:start}.wide-radio-options{flex-wrap:wrap}}

.wide-product-dialog label.field .wide-radio-options input[type=radio]{display:inline-block;width:16px;height:16px;min-height:0;margin:0}.wide-product-dialog .wide-radio-options label{min-height:44px}

.product-stock-column{min-width:145px;vertical-align:top}.product-stock-quantity{margin-bottom:8px}.product-stock-quantity strong{color:#286447;font-size:14px;font-variant-numeric:tabular-nums}.product-stock-quantity .sub{white-space:normal}

/* Receiving receipt: read-first layout, isolated from product and other dialogs. */
dialog.receipt-dialog{width:980px;max-width:95vw;max-height:94vh;border-radius:18px}.receipt-dialog .modal-head{padding:19px 28px;background:white}.receipt-dialog #modal-title{font-size:18px}.receipt-dialog #modal-body{padding:24px 28px;background:#f5f7f4;max-height:calc(94vh - 152px)}.receipt-dialog .modal-actions{padding:15px 28px;background:white}.receipt-dialog #cancel-dialog{display:none}.receipt-dialog .modal-actions:before{content:'入库单据 · 数量按基础单位记录';margin-right:auto;align-self:center;color:#8b9b8e;font-size:12px}.receipt-hero{border:1px solid #d6e5d4;background:linear-gradient(115deg,#edf5e8,#f9fcf6);border-radius:14px;padding:20px 24px;margin-bottom:18px}.receipt-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.receipt-eyebrow{color:#83977b;font-size:10px;letter-spacing:1.6px}.receipt-state{display:inline-flex;align-items:center;gap:7px;background:#e0eed8;color:#3e7142;padding:5px 12px;border-radius:20px;font-size:12px;font-weight:600}.receipt-state i{width:6px;height:6px;background:currentColor;border-radius:50%}.receipt-state.is-expired{color:#a66d29;background:#fcf0dc}.receipt-state.is-void{color:#9f6353;background:#f1e5df}.receipt-hero-main{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:14px 0 18px}.receipt-hero-main h3{font-size:25px;line-height:1.4;margin:0 0 6px;color:#244b32;overflow-wrap:anywhere}.receipt-number{font-size:12px;color:#7a8c76;font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.receipt-equation{font-size:13px;margin:14px 0 0;color:#536d50}.receipt-equation span{color:#84967b}.receipt-total{text-align:right;flex-shrink:0}.receipt-total>span{display:block;font-size:12px;color:#83947a}.receipt-total strong{display:block;font-size:46px;line-height:1.3;color:#286447;letter-spacing:-1px;font-weight:650;font-variant-numeric:tabular-nums}.receipt-total small{font-size:16px;letter-spacing:0;margin-left:8px;font-weight:500}.receipt-hero-bottom{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #dce7d6;padding-top:12px;font-size:12px;color:#8b9a82}.receipt-hero-bottom b{color:#486b46;margin-left:8px;font-weight:600}.receipt-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.receipt-card{background:white;border:1px solid #e1e8df;border-radius:12px;padding:18px 22px}.receipt-card h3{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:#3b5c40;margin:0 0 16px}.receipt-card h3>span{display:grid;place-items:center;font-size:16px;font-weight:400;width:27px;height:27px;border-radius:7px;background:#f0f5eb;color:#7e9970}.receipt-card dl{margin:0}.receipt-entry{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-top:12px;font-size:13px;line-height:1.6}.receipt-entry dt{color:#8b9a8a;flex-shrink:0}.receipt-entry dd{color:#3e5742;margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}.receipt-barcode dd{font-family:ui-monospace,Consolas,monospace;letter-spacing:.5px}.receipt-warning dd{color:#a8702f}.receipt-handling dl{display:grid;grid-template-columns:1fr 1fr;gap:0 34px}.receipt-handling .receipt-entry{margin-top:6px;margin-bottom:6px}.receipt-remark{display:flex;gap:26px;align-items:baseline;border-top:1px solid #eef1ea;padding-top:13px;margin-top:13px;font-size:13px}.receipt-remark>span{color:#8b9a8a;flex-shrink:0}.receipt-remark p{margin:0;color:#65775f;white-space:pre-wrap;overflow-wrap:anywhere}.receipt-danger{margin-top:18px;border:1px solid #eadfd8;border-radius:10px;background:#fffdfa}.receipt-danger summary{cursor:pointer;padding:15px 20px;color:#9a7362;font-size:12px}.receipt-danger summary small{float:right;color:#a4978b;font-size:11px}.receipt-danger-body{border-top:1px solid #f0e7df;padding:16px 20px}.receipt-danger-body>p{font-size:12px;color:#998674;margin:0 0 16px}.receipt-danger-body label.field{font-size:12px;color:#8a786a}.receipt-void-button{color:#a1664f;border-color:#dcbfaf;background:#fff9f5}.receipt-void-button:hover{background:#f9eee6}.receipt-void-record{margin-top:18px;border:1px solid #e6d8cf;border-radius:10px;background:#fbf5f0;padding:18px 22px;color:#916f5e}.receipt-void-record h3{font-size:14px;margin:0 0 10px}.receipt-void-record p{margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.receipt-void-record div{font-size:12px;color:#aa9282}.receipt-readonly{font-size:12px;color:#93a08f;margin:18px 3px 0}.receipt-hero.is-void{background:#f4f3ef;border-color:#e2dfd5}.receipt-hero.is-void .receipt-total strong{color:#8f927f}@media(max-width:650px){.receipt-dialog #modal-body{padding:16px}.receipt-dialog .modal-head,.receipt-dialog .modal-actions{padding:15px 18px}.receipt-card-grid{grid-template-columns:1fr;gap:14px}.receipt-hero{padding:18px}.receipt-hero-main{gap:16px}.receipt-hero-main h3{font-size:21px}.receipt-total strong{font-size:34px}.receipt-total small{font-size:14px}.receipt-hero-top{align-items:flex-start}.receipt-eyebrow{max-width:65%;font-size:9px}.receipt-hero-bottom{flex-direction:column;gap:5px}.receipt-handling dl{grid-template-columns:1fr}.receipt-danger summary small{display:none}.receipt-dialog .modal-actions:before{font-size:10px;max-width:50%}}
.count-note{margin:20px 0}.count-panel{margin-top:20px}.count-filters{gap:12px}.count-table{overflow-x:auto}.count-difference{color:#a26335;font-weight:600}.count-pagination{display:flex;justify-content:space-between;align-items:center;padding:22px 28px;gap:16px;border-top:1px solid #edf1eb}.count-pagination .button{margin-left:10px}.count-detail-head{display:flex;justify-content:space-between;align-items:center;background:#f1f6ed;border-radius:14px;padding:24px}.count-detail-head h3{margin:10px 0;font-size:24px}.count-detail-delta{font-size:30px;font-weight:600;color:#986333;text-align:right}.count-numbers{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}.count-numbers>div{padding:18px;border:1px solid #e1e9dd;border-radius:12px;color:#7c897a}.count-numbers strong{display:block;font-size:30px;color:#285c41;margin-top:10px}.count-detail-info{line-height:1.8;overflow-wrap:anywhere}#modal-body textarea[name=reviewReason]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #dbe3d8;border-radius:10px;font:inherit}@media(max-width:650px){.count-pagination{flex-direction:column}.count-detail-head{padding:18px}.count-numbers strong{font-size:24px}}
.care-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:22px 0}.care-summary>div{padding:24px;border:1px solid #e2e9dd;border-radius:14px;background:white;color:#7f8d78}.care-summary strong{display:block;font-size:34px;color:#285c41;margin-top:14px}.care-panel{margin:22px 0}.care-table{overflow-x:auto}#care-target-field[hidden],#care-quantity-field[hidden]{display:none}#modal-body textarea[name=reason]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #dbe3d8;border-radius:10px;font:inherit}@media(max-width:700px){.care-summary{grid-template-columns:repeat(2,1fr);gap:12px}.care-summary>div{padding:18px}}

/* Keep all navigation entries reachable on short warehouse displays. */
@media screen and (min-width:761px){
 .sidebar{overflow:hidden}
 .sidebar>.brand,.sidebar>.nav-label,.sidebar>.sidebar-bottom{flex-shrink:0}
 .sidebar>#nav{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#88a999 #173d30;padding-right:4px}
 .sidebar>#nav::-webkit-scrollbar{width:7px}
 .sidebar>#nav::-webkit-scrollbar-thumb{background:#88a999;border-radius:5px}
 .sidebar>#nav::-webkit-scrollbar-track{background:#173d30}
}
@media screen and (min-width:761px) and (max-height:800px){
 .sidebar{padding-top:16px;padding-bottom:16px}
 .sidebar>.brand{padding-bottom:18px}
 .sidebar>.sidebar-bottom{padding-top:12px}
 .sidebar>#nav a{padding-top:10px;padding-bottom:10px}
}

.weigh-operator{padding:clamp(18px,3vw,42px);margin-top:16px}
.weigh-destination{font-size:clamp(25px,3vw,44px);font-weight:750;margin-bottom:16px}
.weigh-job{display:flex;align-items:flex-start;gap:clamp(16px,3vw,40px)}
.weigh-job>div:last-child{min-width:0;flex:1}
.weigh-job h2{font-size:clamp(32px,4.5vw,66px);line-height:1.1;margin:0 0 12px}
.weigh-job p{font-size:clamp(19px,2vw,29px);margin:8px 0}
.weigh-product{width:clamp(100px,19vw,280px);aspect-ratio:1;display:grid;place-items:center;background:#e9f1e5;border-radius:14px;overflow:hidden;font-size:22px}
.weigh-product img{width:100%;height:100%;object-fit:contain}
.weigh-step{font-size:clamp(24px,3vw,44px);font-weight:750;color:#163f30;background:#e3efdd;padding:12px 18px;border-radius:10px;margin:14px 0}
.weigh-current{font-size:clamp(20px,2.3vw,34px);line-height:1.1}
.weigh-current strong{font-size:clamp(65px,10vw,150px);font-variant-numeric:tabular-nums;color:#154a37}
.weigh-controls{flex-wrap:wrap;margin:18px 0}
.weigh-controls .button{font-size:18px;min-height:50px}
.weigh-device-details{margin-top:16px}
.od-weighing{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px 18px;margin:12px 0 0;padding:12px 16px;background:#f0f5eb;border-radius:8px}
.od-weighing dt{font-size:12px;color:#526957}
.od-weighing dd{margin:3px 0 0;overflow-wrap:anywhere}
.scale-pending-queue{margin-bottom:20px;padding:24px}
.scale-queue-header,.scale-queue-next{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.scale-queue-header{margin-bottom:16px}
.scale-queue-header h2{margin:0 0 4px;font-size:22px}
.scale-queue-next{background:#e8f0df;border-radius:10px;padding:18px 22px;color:#173d30}
.scale-queue-next span,.scale-queue-next strong{display:block;overflow-wrap:anywhere}
.scale-queue-next strong{font-size:28px;margin:3px 0}
.scale-queue-weight{font-size:32px;font-weight:750;white-space:nowrap}
.scale-queue-weight small{font-size:18px}
.scale-queue-table{margin-top:14px}
@media(max-width:650px){.weigh-job{flex-direction:column}.weigh-job>div:last-child{width:100%}}

.buyer-panel{margin-top:16px}
.reconciliation-tabs{margin-bottom:20px;padding:8px;background:#fff;border:1px solid #dce5dd;border-radius:10px}
.reconciliation-tabs .tab{display:block;color:#345845;text-decoration:none}
.reconciliation-tabs .tab:hover{background:#eff4eb}
.reconciliation-tabs .tab.active{background:#dceccd;color:#214d3b}
.supplier-return-details{margin-top:4px;max-width:230px;white-space:normal}
.supplier-return-details summary{cursor:pointer;color:#35664a}
.supplier-return-details ul{padding-left:16px}
.supplier-issue{color:#955126;white-space:normal}
.buyer-date-bar{padding:12px 18px;display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-bottom:16px}
.buyer-date-bar label{font-weight:600}
.buyer-stage-tabs{background:white;padding:7px;border:1px solid #e1e8e2;border-radius:11px;gap:5px}
.buyer-stage-tabs .buyer-stage-tab{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;font-size:14px;color:#465e50}
.buyer-stage-tabs .buyer-stage-tab:hover{background:#f1f5ee}
.buyer-stage-tabs .buyer-stage-tab.active{background:#e5efdf;color:#234f36}
.buyer-stage-count{display:inline-block;min-width:22px;padding:0 5px;border-radius:10px;background:#f0f4ed;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.buyer-stage-tab.active .buyer-stage-count{background:#d4e5cb}
.buyer-supplier-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:14px;padding:5px 9px 5px 14px;background:#f8faf7;border:1px solid #e1e8e2;border-radius:9px}
.buyer-supplier-bar>span{color:#51675a;font-weight:600}
.buyer-supplier-tabs{min-width:0;gap:4px}
.buyer-supplier-tabs .buyer-supplier-tab{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:40px;padding:7px 12px;font-size:14px;color:#465e50;overflow-wrap:anywhere}
.buyer-supplier-tabs .buyer-supplier-tab:hover{background:#eef3ea}
.buyer-supplier-tabs .buyer-supplier-tab.active{background:#e1edda;color:#234f36}
.buyer-supplier-tab.active .buyer-stage-count{background:#d0e2c7}
.buyer-empty{padding:38px 18px;margin-top:16px;text-align:center;color:#53675a}
.buyer-demand,.buyer-receipt{padding:14px 20px;border-top:1px solid #e8eee7}
.buyer-demand,.buyer-product,.buyer-order-heading{display:flex;align-items:center;gap:12px}
.buyer-demand{justify-content:space-between}
.buyer-category{margin:0;padding:9px 20px;background:#eef3e9;color:#365748;font-size:14px;font-weight:650}
.buyer-receipt .buyer-category{margin-top:10px;padding:8px 12px;border-radius:6px}
.buyer-selection,.buyer-check{display:flex;align-items:center;gap:12px}
.buyer-batch-controls{flex-wrap:wrap}
.buyer-toolbar{padding:14px 20px;margin-top:16px;display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap}
.buyer-check,.buyer-item-label{cursor:pointer}
.buyer-item-label{display:flex;align-items:center;gap:12px}
.buyer-check input,.buyer-item-check{width:22px;height:22px;margin:0;flex:none;accent-color:#245c43}
.buyer-order-heading{flex-wrap:wrap;margin-bottom:10px}
.buyer-thumb{width:46px;height:46px;flex:none;object-fit:cover;border-radius:8px;background:#ecf2e8}
.buyer-placeholder{display:grid;place-items:center;color:#597265;font-size:12px}
.buyer-quote-line{display:grid;grid-template-columns:minmax(150px,1fr) minmax(220px,1.45fr) auto;align-items:start;gap:12px;padding:14px 0;border-top:1px solid #eef1ec}
.buyer-quote-total{margin-left:auto;color:#2d5d42;font-variant-numeric:tabular-nums}
.buyer-line-note{margin-top:4px}
.buyer-line-actions{display:flex;flex-wrap:wrap;gap:8px}
.buyer-quote-line .button{margin-top:4px}
.buyer-suggestions{margin-top:10px}
.buyer-receipt .buttons{margin-top:10px}
#buyer-delivery{min-width:148px}
@media(max-width:1050px){.buyer-quote-line{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.buyer-quote-line{grid-template-columns:1fr}.buyer-demand{align-items:flex-start}.buyer-quote-total{margin-left:0}}

.scale-camera-preview{position:relative;width:min(100%,480px);margin:12px auto;background:#20392c;border-radius:10px;overflow:hidden}
.scale-camera-preview video{display:block;width:100%}
.scale-camera-preview span{position:absolute;inset:12%;border:2px dashed #fff;border-radius:6px;pointer-events:none;box-shadow:0 0 0 120px #0003}
.scale-camera-controls{flex-wrap:wrap}
#scale-load-choices[hidden],#scale-load-choices .button[hidden]{display:none}

.parcel-label-preview.basket-label-preview strong{display:block;line-height:1.1}.parcel-label-preview.basket-label-preview img{margin:0 auto}
#basket-panel .panel-head,#basket-panel .buttons,#basket-panel .basket-page-foot,#basket-panel .basket-panel-tools,#basket-panel .tabs{flex-wrap:wrap}
#basket-panel .basket-sections .tab{font-size:16px;font-weight:600}
#basket-panel .basket-jump{margin-left:auto;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:#657467;font-size:13px}
#basket-panel .basket-page-foot,#basket-panel .basket-page-foot .buttons{align-items:center;gap:10px}

.wide-category-row .category-leaf[hidden]{display:none}
@media(min-width:761px){.wide-category-row:has(.category-leaf:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr)) auto}}
