:root{--surface: oklch(1 0 0);--background: oklch(.97 .005 230);--foreground: oklch(.25 .012 230);--muted: oklch(.5 .016 230);--border: oklch(.88 .009 230);font-family:Inter,Microsoft YaHei,system-ui,sans-serif;color:var(--foreground);background:var(--background);letter-spacing:0}*{box-sizing:border-box;letter-spacing:0}html,body,#root{min-height:100%;margin:0}button,input{font:inherit}.loading-page,.error-page,.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-page{background:var(--background)}.auth-panel{width:min(100%,420px);padding:28px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.auth-brand{margin-bottom:24px;color:#176b5b;font-size:14px;font-weight:700}.form-alert{margin-bottom:16px}.app-layout{min-height:100vh}.app-header{height:48px;line-height:48px;padding:0 16px;display:flex;align-items:center;background:var(--surface);border-bottom:1px solid var(--border)}.product-name{font-size:16px}.header-spacer{flex:1}.current-user{margin-right:8px;color:var(--muted)}.desktop-sider{border-right:1px solid var(--border)}.app-content{min-width:0;padding:20px 24px;background:var(--background)}.mobile-menu-trigger{display:none;margin-right:8px}.ant-btn-icon-only{min-width:40px;min-height:40px}.feature-page{width:100%}.feature-loading{min-height:240px;display:grid;place-items:center}.page-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.page-toolbar .ant-typography{margin:0}.page-toolbar>div:first-child{min-width:0}.toolbar-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:8px}.filter-row{display:flex;align-items:center;gap:16px;margin-bottom:16px}.filter-row .ant-input-search{width:min(100%,420px)}.result-count{color:var(--muted);white-space:nowrap}.page-alert{margin-bottom:16px}.product-cell{display:flex;flex-direction:column;gap:2px}.product-cell span{color:var(--muted);font-size:12px}.product-image-popover{display:flex;gap:8px;max-width:280px;flex-wrap:wrap}.product-image-popover img{width:72px;height:72px;object-fit:cover;border-radius:4px}.bundle-component-popover{min-width:190px;display:grid;gap:8px}.bundle-component-popover>div{display:flex;justify-content:space-between;gap:12px}.bundle-component-popover span{color:var(--muted);white-space:nowrap}.sku-readonly-summary{display:flex;flex-wrap:wrap;gap:8px 16px;margin:4px 0 14px;color:var(--muted);font-size:12px}.sku-image-manager{padding:12px 0 4px;border-top:1px dashed var(--border)}.sku-image-item{display:inline-flex;align-items:center;gap:2px;flex-direction:column}.mobile-product-list,.mobile-inventory-list,.mobile-purchase-list,.mobile-sales-list,.mobile-member-list,.mobile-member-pagination{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sku-stock-controls{display:grid;gap:10px;margin:8px 0 12px;padding:12px;border-left:3px solid #78a99d;background:#f7fbfa}.roll-profile-editor{display:grid;gap:8px}.roll-profile-heading{display:flex;align-items:baseline;gap:8px}.roll-profile-heading span{color:var(--muted);font-size:12px}.roll-profile-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) 40px;gap:8px;align-items:end}.recipe-preview{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.recipe-preview-body{min-height:72px;display:grid;align-content:start;gap:8px}.recipe-preview-leaves{display:flex;flex-wrap:wrap;gap:6px 12px;color:#176b5b;font-variant-numeric:tabular-nums}.recipe-preview-tree{color:var(--muted);font-size:12px}.recipe-tree-node span{display:inline-flex;align-items:center;gap:3px}.recipe-tree-child{margin-left:16px}.bundle-search-result small,.offline-component-result small{color:var(--muted)}@media(max-width:720px){.roll-profile-row{grid-template-columns:1fr}}.purchase-tools{display:grid;grid-template-columns:minmax(280px,1fr) auto auto;gap:12px;align-items:center;margin:16px 0 12px}.purchase-tools>*{min-width:0}.purchase-form{padding-bottom:72px}.purchase-form label{display:flex;flex-direction:column;gap:6px;color:var(--foreground);font-size:14px}.purchase-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.purchase-history-toggle{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:14px}.purchase-history-toggle-control{display:flex;align-items:center;width:max-content}.purchase-history-toggle-control .ant-checkbox-wrapper{display:inline-flex;flex-direction:row;align-items:center;gap:8px;width:max-content;line-height:1.5}.purchase-history-toggle small{margin-left:24px;color:var(--muted);font-size:12px}.purchase-sku-tools{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr);gap:12px;margin-top:16px}.purchase-sku-tools>div{min-width:0}.purchase-sku-tools>div:nth-child(2){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.purchase-sku-tools>div:nth-child(2) label{min-width:0}.purchase-search-results{margin-top:8px;border-top:1px solid var(--border)}.purchase-search-results>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;border-bottom:1px solid var(--border)}.purchase-search-results span{min-width:0;overflow-wrap:anywhere}.purchase-lines{margin-top:12px;border-top:1px solid var(--border)}.purchase-empty-lines{margin:16px 0;color:var(--muted)}.purchase-line-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,1.2fr) 40px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid var(--border)}.purchase-line-row>*{min-width:0}.purchase-line-identity{align-self:center;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}.purchase-line-identity span{color:var(--muted);font-size:12px}.purchase-line-fields{display:grid;grid-template-columns:minmax(72px,.8fr) minmax(112px,1.2fr) 86px;gap:8px;align-items:end}.purchase-line-fields label{font-size:12px}.purchase-line-subtotal{display:flex;min-height:40px;flex-direction:column;justify-content:center;gap:3px;font-size:12px;font-variant-numeric:tabular-nums}.purchase-optional-fields{margin-top:20px}.purchase-voucher-name{display:flex;align-items:center;gap:8px;min-height:40px;margin-top:8px}.purchase-voucher-name span{min-width:0;overflow-wrap:anywhere}.purchase-voucher-picker{display:flex;align-items:center;gap:8px;min-height:40px;padding:7px 11px;border:1px solid var(--border);border-radius:6px}.purchase-voucher-picker input{min-width:0;max-width:100%}.purchase-notes{margin-top:16px}.field-error{display:block;color:#b42318;line-height:1.4}.purchase-summary{position:sticky;bottom:-24px;z-index:2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 20px;margin:24px -24px -24px;padding:14px 24px;background:var(--surface);border-top:1px solid var(--border);font-variant-numeric:tabular-nums}.purchase-summary>div{display:flex;gap:8px}.purchase-detail{display:flex;flex-direction:column;gap:16px}.purchase-detail-summary{margin-top:4px}.purchase-detail-lines{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.purchase-detail-lines th,.purchase-detail-lines td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;white-space:nowrap}.purchase-detail-lines small{color:var(--muted)}.purchase-detail-totals{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px 16px;font-variant-numeric:tabular-nums}.purchase-drawer .ant-drawer-content-wrapper,.purchase-detail-drawer .ant-drawer-content-wrapper{max-width:100vw}.settings-section{max-width:480px;padding:20px 0}.settings-section .ant-typography{margin-top:0}.settings-password-form{margin-top:20px}.settings-inline-form{display:flex;align-items:end;gap:12px}.settings-inline-form label{display:flex;flex-direction:column;gap:6px;color:var(--foreground);font-size:14px}.settings-inline-form .ant-input-number{width:180px}.product-identifiers{gap:4px}.page-heading{margin-bottom:20px}.page-heading .ant-typography{margin:0}.cross-trade-member-line-meta{margin-top:4px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.cross-trade-detail-button{padding:0;color:#176b5b;background:transparent;border:0;cursor:pointer;font:inherit}.cross-trade-review-scroll{overflow-x:auto}.cross-trade-review-table{width:100%;min-width:900px;border-collapse:collapse}.cross-trade-review-table th,.cross-trade-review-table td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.cross-trade-print-preview{display:block;overflow:auto;padding:12px;background:#f4f5f6}.cross-trade-label{position:relative;box-sizing:border-box;width:76mm;min-height:130mm;padding:5mm 8mm 6mm 5mm;color:#000;background:#fff;font-family:Arial,Microsoft YaHei,sans-serif;line-height:1.35}.cross-trade-label h1{margin:0 0 2mm;font-size:11pt;text-align:center}.cross-trade-label-header{display:grid;grid-template-columns:38mm minmax(0,1fr);gap:2mm;margin-bottom:2mm}.cross-trade-label-shipment{font-size:6pt;overflow-wrap:anywhere}.cross-trade-label-barcode{display:block;width:38mm;height:9mm;margin:1mm 0 0}.cross-trade-label-columns{display:grid;grid-template-columns:5mm minmax(0,1fr) auto auto;gap:2mm;padding:1mm 0;font-size:6.5pt;font-weight:700}.cross-trade-label-line{display:grid;grid-template-columns:5mm minmax(0,1fr) auto auto;gap:2mm;padding:1.5mm 0;border-bottom:1px solid #222;font-size:8pt;line-height:1.2}.cross-trade-label-product{min-width:0;overflow-wrap:anywhere}.cross-trade-label-total{margin-top:2mm;font-size:6.5pt;font-weight:700;text-align:right;white-space:nowrap}.cross-trade-label-total strong{font-size:10.5pt}.cross-trade-label-date{font-size:7pt;text-align:right}.cross-trade-label-page{position:absolute;right:0;bottom:3mm;left:0;font-size:6pt;text-align:center}.cross-trade-bill-preview{display:flex;justify-content:center;overflow:auto;padding:12px;background:#f4f5f6}.cross-trade-bill-preview svg{width:76mm;max-width:100%;height:auto;box-shadow:0 1px 8px #0000001f}.cross-trade-create-field{display:flex;flex-direction:column;gap:6px;color:var(--foreground);font-size:13px}.cross-trade-create-page{width:100%;max-width:900px;margin:0 auto}.cross-trade-create-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.cross-trade-create-heading .ant-typography{margin:0}.cross-trade-create-link{color:#176b5b;font-weight:600}.cross-trade-create-image-list{width:100%;max-height:230px;overflow-y:auto;align-items:stretch}.cross-trade-create-image-card{width:220px;max-width:100%}.cross-trade-create-image-card .ant-card-body{display:flex;flex-direction:column;gap:10px}.cross-trade-create-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-metric{position:relative;min-height:132px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;color:var(--foreground);text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:6px;cursor:pointer}.dashboard-metric:hover{border-color:#78a99d;background:#fbfdfc}.dashboard-metric>span:not(.dashboard-metric-icon){color:var(--muted);font-size:13px}.dashboard-metric strong{max-width:calc(100% - 22px);font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.dashboard-metric>svg{position:absolute;right:16px;bottom:18px;color:var(--muted)}.dashboard-metric-icon{display:grid;place-items:center;width:34px;height:34px;color:#176b5b;background:#e8f3ef;border-radius:6px}.dashboard-warnings{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.dashboard-warning{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:8px 12px;color:var(--foreground);text-align:left;background:#fff9ed;border:1px solid #e5bd75;border-radius:6px;cursor:pointer;font-variant-numeric:tabular-nums}.dashboard-warning:hover{background:#fff4dd;border-color:#c78727}.dashboard-warning-icon{display:inline-flex;align-items:center;gap:3px;color:#a45b00}.dashboard-warning>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.dashboard-warning-cost{background:#fff7ed;border-color:#e9b47a}.dashboard-warning-cost .dashboard-warning-icon{color:#a8510b}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:18px;margin-top:18px}.dashboard-section{min-height:210px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.dashboard-section .section-heading{margin-top:0}.dashboard-section p{color:var(--muted)}.activity-list article{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-top:1px solid var(--border)}.activity-list article>div{min-width:0;display:flex;flex-direction:column;gap:3px}.activity-list article span,.activity-list time{color:var(--muted);font-size:12px}.activity-list time{flex:0 0 auto;font-variant-numeric:tabular-nums}.partner-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px}.partner-toolbar .ant-input-search{max-width:360px}.mobile-partner-list{display:none}.partner-form{display:flex;flex-direction:column;gap:16px;padding-bottom:72px}.partner-form label{display:flex;flex-direction:column;gap:6px}.reports-toolbar{align-items:flex-end}.report-date-controls{display:flex;align-items:end;gap:8px}.report-date-controls label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px}.report-date-controls .ant-input{width:148px}.report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-metric{min-height:118px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.report-metric>span:not(.report-metric-icon){color:var(--muted);font-size:13px}.report-metric strong{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.report-metric-icon{display:grid;place-items:center;width:32px;height:32px;color:#176b5b;background:#e8f3ef;border-radius:6px}.report-warnings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.report-warnings .ant-alert{min-width:0;border-radius:6px}.report-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:18px;margin-top:18px}.report-section{min-width:0;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.report-section-wide{grid-row:span 2}.report-section .section-heading{align-items:flex-start;margin-top:0}.report-section .section-heading .ant-typography-secondary{display:block;font-size:12px}.inventory-report-summary{display:flex;align-items:center;gap:12px;min-height:86px}.inventory-report-summary>div{display:flex;flex-direction:column;gap:4px}.inventory-report-summary strong{font-size:22px;font-variant-numeric:tabular-nums}.inventory-report-summary span:not(.report-metric-icon){color:var(--muted);font-size:13px}.mobile-report-list{display:none}.product-sku-row{display:flex;align-items:center;gap:6px}.product-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}.barcode-print-settings{display:flex;flex-direction:column;gap:16px}.barcode-print-settings .ant-typography{margin:0}.barcode-copy-list{border-top:1px solid var(--border)}.barcode-copy-list label{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;border-bottom:1px solid var(--border)}.barcode-copy-list label>span{min-width:0;overflow-wrap:anywhere}.barcode-label-sheet{display:grid;grid-template-columns:repeat(auto-fill,50mm);align-content:start;gap:3mm;padding:16px 0}.barcode-print-root{display:none}.barcode-label{box-sizing:border-box;width:50mm;height:30mm;overflow:hidden;display:grid;grid-template-rows:auto auto 1fr auto;align-items:center;padding:2.2mm 2.5mm 1.5mm;color:#000;background:#fff;border:1px solid #c6c6c6;font-family:Arial,Microsoft YaHei,sans-serif;line-height:1.12}.barcode-label strong{overflow:hidden;font-size:10pt;white-space:nowrap;text-overflow:ellipsis}.barcode-label>span{overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:7pt;white-space:nowrap;text-overflow:ellipsis}.barcode-label svg{width:100%;height:12mm;max-width:45mm}.barcode-label small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:7pt;line-height:1;text-align:center}.mobile-sku-identifier{display:block;margin-top:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}.inventory-tools{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(360px,1.2fr);gap:16px;margin-bottom:12px}.scan-field,.inventory-filter-field{min-width:0}.scan-field .ant-input-affix-wrapper{height:40px}.inventory-filter-field{display:flex;align-items:center;gap:12px}.inventory-filter-field .ant-input-search{min-width:0;flex:1}.inventory-filter-field .ant-checkbox-wrapper{flex:0 0 auto}.scan-result-slot{min-height:56px;margin-bottom:12px}.muted-value{color:var(--muted)}.inventory-warning-cell{display:flex;align-items:center;justify-content:flex-end;gap:4px}.inventory-warning-cell .ant-tag{margin:0}.product-base-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:8px 0 12px}.section-heading .ant-typography{margin:0}.sku-editor{border-top:1px solid var(--border)}.sku-editor-row{padding:16px 0 4px;border-bottom:1px solid var(--border)}.sku-row-heading{display:flex;align-items:center;justify-content:space-between;min-height:40px;margin-bottom:8px}.sku-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.full-width-control{width:100%}.notes-field{margin-top:20px}.form-actions{position:sticky;bottom:-24px;z-index:2;display:flex;justify-content:flex-end;gap:8px;margin:24px -24px -24px;padding:16px 24px;background:var(--surface);border-top:1px solid var(--border)}.member-form-field{display:flex;flex-direction:column;gap:6px;color:var(--foreground);font-size:13px}.bundle-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.bundle-search-result,.bundle-component-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;border-bottom:1px solid var(--border)}.bundle-search-result span,.bundle-component-row>span{min-width:0;overflow-wrap:anywhere}.bundle-components{border-top:1px solid var(--border);margin-top:12px}.bundle-component-row .ant-form-item{margin:0}.sku-bundle-editor{display:flex;flex-direction:column;gap:10px;padding:12px;margin:4px 0 12px;background:#f7faf8;border:1px solid var(--border);border-radius:6px}.sku-platform-mapping{margin:4px 0 12px}.sku-platform-mapping summary{cursor:pointer;color:var(--muted);font-size:13px}.sku-platform-mapping>div{margin-top:12px}.drawer-loading{min-height:180px;display:grid;place-items:center}.product-import-workbench{display:flex;flex-direction:column;gap:16px;padding-bottom:32px}.product-import-dropzone{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;color:var(--muted);text-align:center;background:#f7faf8;border:1px dashed #78a99d;border-radius:6px;cursor:pointer}.product-import-dropzone:hover{background:#eff7f4}.product-import-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.product-import-dropzone strong{color:var(--foreground)}.offline-import-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.offline-import-summary>div{min-width:0;display:flex;align-items:center;gap:8px}.offline-import-summary>div:first-child{flex-direction:column;align-items:flex-start}.offline-import-summary strong{overflow-wrap:anywhere}.offline-import-summary span{color:var(--muted);font-size:12px}.offline-import-summary .ant-tag{margin:0}.offline-import-rows{display:flex;flex-direction:column;gap:12px}.offline-import-row{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.offline-import-row-heading,.offline-import-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.offline-import-row-heading>div{min-width:0;display:flex;flex-direction:column;gap:3px}.offline-import-row-heading span,.offline-import-actions>span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.offline-import-row-heading .ant-tag{flex:0 0 auto;margin:0}.offline-import-fields{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(160px,1fr) minmax(160px,1fr);gap:10px;align-items:end}.offline-import-fields>div,.offline-import-fields label,.offline-component-search label,.offline-component-row label{min-width:0;display:flex;flex-direction:column;gap:6px;color:var(--foreground);font-size:13px}.offline-field-label{color:var(--foreground);font-size:13px}.offline-component-editor{display:flex;flex-direction:column;gap:8px;padding:12px;background:#f7faf8;border:1px solid var(--border);border-radius:6px}.offline-component-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.offline-component-result,.offline-component-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:7px 0;border-top:1px solid var(--border)}.offline-component-result span,.offline-component-row>span{min-width:0;overflow-wrap:anywhere}.offline-components{border-bottom:1px solid var(--border)}.offline-import-actions{align-items:center;padding-top:4px}.offline-import-actions>span{flex:1}.sales-line-items{display:flex;flex-direction:column;gap:0}.sales-line-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 0;border-top:1px solid var(--border)}.sales-line-item:first-child{padding-top:0;border-top:0}.sales-line-item-main{min-width:0;display:flex;flex-direction:column;gap:2px}.sales-line-item-main strong,.sales-line-item-specification{overflow-wrap:anywhere}.sales-line-item-specification{color:var(--muted);font-size:12px}.sales-line-item-quantity{align-self:start;white-space:nowrap;font-variant-numeric:tabular-nums}.sales-order-detail{display:flex;flex-direction:column;gap:18px;padding-bottom:72px}.sales-order-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.sales-order-header .ant-typography{margin:0}.sales-order-header-main{min-width:0;flex:1 1 auto;display:flex;flex-direction:column;gap:3px}.sales-order-header-main h4,.sales-order-header-main>span{overflow-wrap:anywhere}.sales-order-channel{min-width:0;display:flex;align-items:center;gap:6px}.sales-order-channel .ant-tag{flex:0 0 auto;margin:0}.sales-financial-projection{display:flex;flex-direction:column;gap:10px}.sales-financial-projection .ant-typography{margin:0}.sales-financial-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px}.sales-financial-projection>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sales-financial-projection .ant-statistic{padding:10px;background:#f7faf8;border:1px solid var(--border);border-radius:6px}.sales-financial-projection .ant-statistic-title{color:var(--muted);font-size:12px}.sales-financial-projection .ant-statistic-content{font-size:16px;font-variant-numeric:tabular-nums}.sales-cost-breakdown{display:flex;flex-direction:column;gap:8px}.sales-cost-breakdown .ant-list-item{align-items:center;gap:12px}.sales-cost-breakdown .ant-list-item>div:first-child{min-width:0;display:flex;flex-direction:column;gap:2px}.sales-cost-breakdown .ant-list-item>div:first-child span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.sales-cost-values{display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.sales-cost-values strong{color:var(--foreground)}.sales-import-workbench{display:flex;flex-direction:column;gap:16px;padding-bottom:72px}.sales-import-uploader{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center;background:#f7faf8;border:1px dashed #78a99d;border-radius:6px}.sales-import-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.sales-import-summary .ant-statistic{min-width:0;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.sales-import-summary .ant-statistic-title{color:var(--muted);font-size:12px}.sales-import-summary .ant-statistic-content{font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sales-import-table .ant-table-cell{vertical-align:top}.sales-import-row-subject{display:flex;flex-direction:column;gap:2px}.sales-import-row-subject span,.sales-import-errors{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.sales-import-errors{color:#b42318}.sales-import-actions{position:sticky;bottom:-24px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px -24px -24px;padding:16px 24px;background:var(--surface);border-top:1px solid var(--border)}.sales-import-actions .ant-typography{min-width:0;overflow-wrap:anywhere}.sales-scan-section,.sales-tracking-section{display:flex;flex-direction:column;gap:12px}.sales-scan-section .ant-typography,.sales-tracking-section .ant-typography{margin:0}.sales-scan-section label,.sales-tracking-section label{display:flex;flex-direction:column;gap:6px}.sales-requirements .ant-list-item{display:flex;align-items:center;gap:16px}.sales-requirements .ant-list-item>div:first-child{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.sales-requirements .ant-list-item span{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}.sales-missing,.sales-complete{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums}.sales-missing{color:#b54708}.sales-complete{color:#087443}.sales-missing small{font-size:12px}.sales-ship-actions{position:sticky;bottom:-24px;z-index:2;display:flex;justify-content:flex-end;margin:12px -24px -24px;padding:16px 24px;background:var(--surface);border-top:1px solid var(--border)}@media(max-width:767px){.desktop-sider{display:none}.mobile-menu-trigger{display:inline-flex}.current-user{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-content{padding:16px}.page-toolbar{align-items:center}.toolbar-actions{justify-content:flex-start}.sales-toolbar{align-items:stretch;flex-direction:column}.sales-toolbar-actions{width:100%}.sales-toolbar-actions .ant-btn{flex:1 1 calc(50% - 4px)}.page-toolbar .ant-typography-secondary{display:none}.filter-row{align-items:stretch;flex-direction:column;gap:8px}.filter-row .ant-input-search{width:100%}.desktop-data-table{display:none}.mobile-product-list,.mobile-inventory-list,.mobile-purchase-list,.mobile-sales-list,.mobile-partner-list,.mobile-member-list{display:block;border-top:1px solid var(--border)}.mobile-list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:12px 0;border-bottom:1px solid var(--border)}.mobile-list-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-list-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-list-row span{color:var(--muted);font-size:12px}.mobile-row-meta{align-items:flex-end;flex:0 0 auto}.inventory-tools{grid-template-columns:minmax(0,1fr);gap:10px}.inventory-filter-field{align-items:stretch;flex-direction:column}.scan-result-slot{min-height:56px}.mobile-inventory-row{padding:14px 0;border-bottom:1px solid var(--border)}.mobile-inventory-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mobile-inventory-heading .ant-tag{margin:0;flex:0 0 auto}.mobile-inventory-title{min-width:0;display:flex;flex-direction:column;gap:3px}.mobile-inventory-title span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.quantity-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}.quantity-strip span{display:flex;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums}.quantity-strip small{color:var(--muted);font-size:11px}.mobile-inventory-meta{display:flex;justify-content:space-between;gap:12px;margin-top:10px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.mobile-inventory-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 0 4px;font-variant-numeric:tabular-nums}.mobile-inventory-pagination .ant-btn{width:40px;height:40px}.purchase-tools,.purchase-form-grid,.purchase-sku-tools{grid-template-columns:minmax(0,1fr);gap:8px}.purchase-sku-tools>div:nth-child(2){grid-template-columns:minmax(0,1fr)}.mobile-purchase-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:10px;padding:14px 0;border-bottom:1px solid var(--border)}.mobile-purchase-row>*{min-width:0}.mobile-purchase-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-top:8px;color:var(--muted);font-size:12px}.mobile-purchase-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 0 4px}.mobile-purchase-pagination .ant-btn{width:40px;height:40px}.mobile-member-pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 0 4px;font-variant-numeric:tabular-nums}.mobile-member-pagination .ant-btn{width:40px;height:40px}.mobile-member-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.mobile-member-content{min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-member-content strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-member-content span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.mobile-member-row>.ant-btn{flex:0 0 auto}.mobile-sales-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.mobile-sales-row>div{min-width:0;display:flex;flex-direction:column;gap:4px}.mobile-sales-row>div:last-child{align-items:flex-end;flex:0 0 auto}.mobile-sales-row span{color:var(--muted);font-size:12px}.sales-drawer .ant-drawer-content-wrapper,.sales-import-drawer .ant-drawer-content-wrapper{width:100vw!important}.sales-import-summary,.sales-financial-projection>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-import-actions{align-items:stretch;flex-direction:column}.sales-import-actions .ant-btn{width:100%}.sales-requirements .ant-list-item{align-items:flex-start}.purchase-line-row{grid-template-columns:minmax(0,1fr) 40px;align-items:start}.purchase-line-fields{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-line-subtotal{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}.purchase-summary{justify-content:space-between;gap:8px 12px}.purchase-summary>div{flex:1 0 100%}.purchase-summary>div .ant-btn{flex:1}.purchase-detail-scroll{max-width:100%;overflow-x:auto}.purchase-drawer .ant-drawer-content-wrapper,.purchase-detail-drawer .ant-drawer-content-wrapper{width:100vw!important}.product-base-fields,.sku-fields{grid-template-columns:minmax(0,1fr)}.settings-inline-form{align-items:stretch;flex-direction:column}.settings-inline-form .ant-input-number{width:100%}.dashboard-metrics,.dashboard-columns{grid-template-columns:minmax(0,1fr)}.dashboard-metric{min-height:112px}.dashboard-warnings{display:grid;grid-template-columns:minmax(0,1fr)}.reports-toolbar{align-items:stretch}.report-date-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.report-date-controls .ant-input{width:100%}.report-date-controls .ant-btn{grid-column:1 / -1}.report-metrics,.report-grid{grid-template-columns:minmax(0,1fr)}.report-metric{min-height:104px}.report-warnings{grid-template-columns:minmax(0,1fr)}.report-section-wide{grid-row:auto}.mobile-report-list{display:block;border-top:1px solid var(--border)}.mobile-report-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}.mobile-report-row>div{display:flex;flex-direction:column;align-items:flex-end;gap:3px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.partner-toolbar{align-items:stretch;flex-direction:column}.partner-toolbar .ant-input-search{max-width:none}.barcode-print-preview{grid-template-columns:1fr}.barcode-label{width:100%;max-width:50mm}.bundle-search{grid-template-columns:minmax(0,1fr)}.bundle-component-row{align-items:flex-start;flex-wrap:wrap;padding:10px 0}.product-import-drawer .ant-drawer-content-wrapper,.product-edit-drawer .ant-drawer-content-wrapper{width:100vw!important}.offline-import-summary,.offline-import-row-heading,.offline-import-actions{align-items:stretch;flex-direction:column}.offline-import-summary>div:last-child{flex-wrap:wrap}.offline-import-fields,.offline-component-search{grid-template-columns:minmax(0,1fr)}.offline-component-row{align-items:flex-start;flex-wrap:wrap}.offline-component-row>span{flex:1 0 100%}.offline-import-actions .ant-btn,.cross-trade-create-image-card{width:100%}.cross-trade-create-heading{flex-direction:column;gap:8px}.cross-trade-create-actions{justify-content:stretch}.cross-trade-create-actions .ant-btn{flex:1;min-height:42px}}@media(max-width:420px){.sales-order-header{flex-direction:column;gap:8px}.sales-order-header-main{width:100%}.sales-order-channel-wrap{flex-wrap:wrap;row-gap:4px}.sales-order-header>.ant-tag{align-self:flex-start;margin:0}}@media print{@page{size:A4 portrait;margin:5mm}html,body{width:auto!important;height:auto!important;margin:0!important;padding:0!important}body *{visibility:hidden!important}.barcode-print-root,.barcode-print-root *{visibility:visible!important}.barcode-print-root{position:static!important;display:grid!important;grid-template-columns:repeat(4,50mm)!important;grid-auto-rows:30mm!important;align-content:start!important;gap:0!important;width:200mm!important;margin:0!important;padding:0!important}.barcode-print-root .barcode-label{width:50mm!important;height:30mm!important;margin:0!important;border:0!important;break-inside:avoid;page-break-inside:avoid}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.cross-trade-attribute-row{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr) auto;gap:16px;align-items:start;padding:16px;border:1px solid var(--ant-color-border-secondary, #e8eceb);border-radius:10px;background:var(--ant-color-fill-alter, #fafbfb)}.cross-trade-attribute-values{display:flex;flex-direction:column;gap:8px;min-width:0}.cross-trade-attribute-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.cross-trade-attribute-options .cross-trade-attribute-value{flex:0 1 190px;max-width:100%}.cross-trade-attribute-value .ant-input{min-width:0}.cross-trade-attribute-value .ant-btn{flex-shrink:0}.cross-trade-attribute-remove{margin-top:26px}.cross-trade-variant-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--ant-color-text-secondary, #666);font-size:13px}.cross-trade-variant-name{display:block;color:var(--ant-color-text-secondary, #666);font-size:12px;margin-top:3px}@media(max-width:600px){.cross-trade-attribute-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px}.cross-trade-attribute-values{grid-column:1 / -1;grid-row:2}.cross-trade-attribute-remove{grid-column:2;grid-row:1}.cross-trade-attribute-options .cross-trade-attribute-value{flex-basis:100%}}.cross-trade-reconciliation-preview{border:1px solid #e1d7ca;border-radius:8px;padding:12px;background:#fffdf8}.cross-trade-reconciliation-preview+.cross-trade-reconciliation-preview{border-top:3px solid #49382b}.cross-trade-reconciliation-header,.cross-trade-reconciliation-row{display:grid;grid-template-columns:1.1fr 1.5fr .6fr;gap:8px;padding:6px 0;border-bottom:1px dashed #d9cec1}.cross-trade-reconciliation-header{grid-template-columns:repeat(4,1fr);font-weight:700;border-bottom:1px solid #49382b}
