/* Scoped goods workspace; all lists retain the common resizable horizontal table. */
/* The standalone transfer page is a form, not a horizontally scrolling ledger. */
.goods-warehouse-detail{max-width:100%;min-width:0}.goods-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.goods-detail-heading .hint{font-size:12px}.goods-detail-product{padding:12px 0 18px;border-bottom:1px solid var(--ui-line)}.goods-detail-product h2{font-size:21px;line-height:1.5;margin:0 0 8px;overflow-wrap:anywhere}.goods-detail-product .hint{font-size:12px;margin:5px 0}.goods-detail-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px;font-size:12px}.goods-detail-tools label{display:flex;align-items:center;gap:5px}.goods-detail-tools input{width:17px;height:17px;accent-color:var(--ui-primary)}.goods-detail-tools .btn{margin:0;width:auto;padding:9px 10px;font-size:12px}.goods-warehouse-table .stock-table{min-width:1180px;font-size:13px}.goods-warehouse-table th,.goods-warehouse-table td{padding:14px 12px;vertical-align:middle}.goods-warehouse-table small{display:block;margin-top:4px;font-size:11px}.goods-warehouse-table .goods-warehouse-total>*{background:var(--ui-soft)!important;color:var(--ui-primary);font-weight:650}.goods-warehouse-table .goods-warehouse-total small{font-weight:400}.goods-current-store{color:var(--ui-primary);font-weight:400}.goods-detail-foot{font-size:11px;margin-top:18px;line-height:1.8}.goods-warehouse-table td:nth-child(6),.goods-warehouse-table td:nth-child(7){white-space:normal;overflow-wrap:anywhere}.goods-warehouse-table .goods-price-editor{white-space:normal}.goods-warehouse-table .goods-status-select{width:100%;min-width:0}.goods-warehouse-detail .stock-swipe-hint{font-size:11px}
@media(max-width:600px){.goods-detail-heading{align-items:flex-start;flex-direction:column;gap:0}.goods-detail-heading .title{font-size:23px}.goods-detail-heading .hint{margin:2px 0}.goods-detail-product h2{font-size:19px}}
#goodsTransferBody .stock-table-wrap{overflow:visible;border:0;border-radius:0}
#goodsTransferBody .stock-table,#goodsTransferBody .stock-table tbody{display:block;width:100%;min-width:0;max-width:100%}
#goodsTransferBody [data-hub-row]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
#goodsTransferBody .stock-table th,#goodsTransferBody .stock-table td{position:static;width:auto;min-width:0;max-width:none;white-space:normal;overflow:visible;border:0;padding:8px 0;background:transparent;text-align:left}
#goodsTransferBody [data-hub-row]>td:last-child{grid-column:1/-1}
#goodsTransferBody [data-hub-form]:not([hidden]),#goodsTransferBody [data-hub-form]>td{display:block}
#goodsTransferBody [data-hub-form]>td{border-top:1px solid var(--ui-line);padding-top:12px}
#goodsTransferBody .hub-inline-fields{position:static;width:100%;max-width:100%;grid-template-columns:minmax(0,1fr) 76px;align-items:end}
#goodsTransferBody .hub-inline-fields>label{display:block;white-space:normal;overflow-wrap:anywhere;margin:0;font-size:12px;line-height:1.5}
#goodsTransferBody .input{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin-top:6px}
#goodsTransferBody .hub-actions{justify-content:flex-start}
#goodsTransferBody .hint,#goodsTransferBody small{white-space:normal;overflow-wrap:anywhere}
.goods-price-button{display:block;background:transparent;border:0;padding:0;cursor:pointer;max-width:100%;touch-action:manipulation;color:inherit;font:inherit}
.goods-price-button .inv-price{min-width:72px;min-height:32px;box-sizing:border-box}
.goods-price-button:focus-visible{outline:2px solid #378461;outline-offset:3px;border-radius:8px}
.goods-price-editor .input,.goods-status-select{min-width:0;width:100%;font-size:13px;padding:8px;box-sizing:border-box}
.goods-price-actions{display:flex;gap:4px;margin-top:6px;flex-wrap:wrap}.goods-price-actions .btn{padding:5px 7px;min-height:32px;margin:0}
.goods-price-editor small,[data-state-error]{display:block;white-space:normal;overflow-wrap:anywhere}
.goods-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.goods-hub-card{position:relative;border:1px solid var(--ui-line,#dce8e1);border-radius:17px;background:white;color:var(--ui-text,#203e34);text-align:left;padding:18px 14px;min-width:0;cursor:pointer}
.goods-hub-card:hover{border-color:var(--ui-primary,#21815b);background:#f6fbf8}
.goods-hub-card:focus-visible{outline:2px solid var(--ui-primary,#21815b);outline-offset:3px}
.goods-hub-card>strong,.goods-hub-card>span:not(.goods-icon):not(.hub-badge),.goods-hub-card>small{display:block}
.goods-hub-card>strong{font-size:18px;margin:15px 0 8px}.goods-hub-card>span:not(.goods-icon):not(.hub-badge){font-size:13px;line-height:1.7}.goods-hub-card>small{font-size:11px;color:var(--ui-text-secondary,#677e73);line-height:1.7;margin-top:5px}
.goods-icon{display:inline-flex;width:36px;height:36px;border-radius:10px;align-items:center;justify-content:center;background:#eaf7ef;color:var(--ui-primary,#21815b);font-size:23px}.goods-hub-card>.hub-badge{position:absolute;top:16px;right:14px}
.goods-stock-tabs{gap:8px;margin:14px 0}.goods-stock-tabs .btn{margin:0;min-height:44px;font-size:15px}
.goods-search-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.goods-search-row>.inv-search{flex:1 1 190px;min-width:0}.goods-search-row .inv-search .btn{padding:9px 12px}
.goods-checks{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0;font-size:12px}.goods-checks label{display:flex;align-items:center;gap:4px;min-height:32px;white-space:nowrap}.goods-checks input{accent-color:var(--ui-primary,#21815b);width:17px;height:17px;margin:0}
.goods-kinds{display:flex;gap:5px;margin:12px 0;flex-wrap:wrap}.goods-kinds button{flex:1;min-width:40px;min-height:38px;padding:7px 8px;border:1px solid var(--ui-line,#dce8e1);border-radius:9px;background:white;color:var(--ui-text-secondary,#677e73);font-size:13px;cursor:pointer}.goods-kinds button.active{background:var(--ui-primary,#21815b);border-color:var(--ui-primary,#21815b);color:white}
.goods-context{font-size:11px;line-height:1.7;color:var(--ui-text-secondary,#677e73)}.goods-more{font-size:12px;margin-top:12px}.goods-more summary{cursor:pointer;color:var(--ui-primary,#21815b)}
.goods-transfer-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}.goods-transfer-tabs .btn{margin:0;padding:9px 4px;font-size:13px;min-width:0;white-space:nowrap}.goods-transfer-tabs .hub-badge{min-width:18px;height:18px;padding:0 4px;font-size:10px}
.goods-batch-actions{gap:8px}.goods-batch-actions .btn{font-size:13px;padding:10px 6px;margin:0}
.goods-editable-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#eaf7ef;padding:12px;border-radius:12px;margin:12px 0}.goods-editable-columns strong,.goods-editable-columns small{display:block}.goods-editable-columns small{font-size:11px;line-height:1.7;margin-top:4px;color:var(--ui-text-secondary)}
.goods-management .stock-table td,.goods-management .stock-table th{vertical-align:top}.goods-management .stock-table small{display:block;margin-top:5px}.goods-management .inv-price.empty{min-width:64px}
.goods-management,.goods-inventory,.goods-hub{min-width:0;max-width:100%}.goods-management .input,.goods-inventory .input{max-width:100%;box-sizing:border-box}.goods-management input[type=file]{font-size:12px;white-space:normal}.goods-management .stock-table-wrap{width:100%;max-width:100%}
@media(max-width:350px){.goods-hub-grid{gap:9px}.goods-hub-card{padding:15px 11px}.goods-hub-card>strong{font-size:17px}.goods-hub-card>small{font-size:10px}.goods-kinds{gap:4px}.goods-kinds button{padding:7px 5px;font-size:12px}.goods-search-row{gap:0}.goods-search-row>.inv-search{flex-basis:100%}}

.goods-note-editor textarea{display:block;width:100%;min-height:64px;box-sizing:border-box;resize:vertical;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.goods-note-editor [data-note-save]{display:block;margin:6px 0 0;min-height:32px}.goods-note-editor small,.goods-note-readonly{display:block;white-space:pre-wrap;overflow-wrap:anywhere}.goods-status-select{min-width:130px}

.goods-state-filter{display:flex;flex-direction:column;gap:6px;padding-right:8px;min-width:0}.goods-state-filter button{width:100%;min-height:36px;box-sizing:border-box;border:1px solid var(--ui-line,#dce8e1);border-radius:8px;padding:6px;color:var(--ui-text,#263b33);background:white;font:inherit;font-size:13px}.goods-state-filter button:focus-visible{outline:2px solid var(--ui-primary,#21815b);outline-offset:2px}

.goods-state-filter button{text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.goods-state-dialog{position:fixed;margin:0;width:min(320px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:18px;border:1px solid var(--ui-line,#dce8e1);border-radius:14px;background:#fff;color:var(--ui-text,#263b33);box-shadow:0 10px 36px #203d3326;font:inherit;overflow:auto}
.goods-state-dialog::backdrop{background:#203d3320}.goods-state-dialog h2{font-size:17px;margin:0 0 6px}.goods-state-dialog .hint{font-size:12px;line-height:1.7;margin:0 0 10px}
.goods-state-options{display:grid;gap:2px;max-height:min(50dvh,380px);overflow:auto;margin-bottom:12px}.goods-state-options label{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 6px;font-size:14px;cursor:pointer}.goods-state-options input{width:18px;height:18px;accent-color:var(--ui-primary,#21815b);margin:0}.goods-state-dialog .btn{margin:0;min-height:42px}.goods-state-dialog :focus-visible{outline:2px solid var(--ui-primary,#21815b);outline-offset:2px}
