.goods-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.goods-flow>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.goods-flow span{color:#8195af;font-size:12px;display:block;margin-bottom:10px}.goods-flow strong{color:#2b476b;font-size:16px}.goods-flow p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0 0}.goods-summary{display:grid;grid-template-columns:180px 1fr;gap:16px;margin:22px 0}.goods-summary>div{background:#eef5f3;border:1px solid #deebe6;border-radius:11px;padding:18px 22px}.goods-summary span{font-size:13px;color:#58776b}.lot-count strong{display:block;font-size:28px;margin-top:8px;color:#2b6550}.goods-unit-summary>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:11px}.goods-unit-total{font-size:18px;color:#2b6550;background:#fff;border:1px solid #d7e8df;border-radius:7px;padding:6px 11px;font-variant-numeric:tabular-nums}.goods-unit-total small{font-size:12px;font-weight:400;margin-left:5px}.goods-panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.goods-panel .toolbar{display:flex;align-items:center;justify-content:space-between}.goods-panel .toolbar h2{margin:0;font-size:17px}.goods-filters{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:0 23px 18px}.goods-filters>input{flex:1;min-width:230px}.goods-filters label{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}.goods-filters select{min-width:110px}.goods-filters .checkbox-label{white-space:nowrap}.goods-filters input[type=checkbox]{width:16px;height:16px;accent-color:var(--primary)}.goods-table{min-width:920px;table-layout:auto}.goods-table td,.goods-table th{display:table-cell!important}.goods-table td{vertical-align:top}.goods-table .goods-product{font-size:14px;font-weight:550;color:#304b6b}.goods-table td small{display:block;font-size:12px;line-height:1.65;margin-top:5px;color:var(--muted);white-space:normal;overflow-wrap:anywhere}.goods-table td:first-child{max-width:190px}.goods-table td:nth-child(2){min-width:230px;max-width:330px}.goods-table .goods-balance{font-weight:650;color:#2b7255;font-variant-numeric:tabular-nums;white-space:nowrap}.goods-table .stock-zero{color:#8b98a5}.goods-table .goods-quantity{white-space:nowrap}.goods-table .row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px;margin-top:9px}.goods-block-reason{font-size:12px;color:#9b713d;max-width:210px;line-height:1.6}.goods-source{display:inline-block;font-size:11px;color:#52789d;background:#edf3fb;border-radius:5px;padding:2px 6px;margin-top:6px}.goods-source.opening{color:#7d6a3d;background:#f7f2e6}.finished-goods-page .heading-actions{display:flex;flex-wrap:wrap;gap:10px}.finished-goods-page #list-error{margin:0 23px 18px}.finished-goods-page .empty{padding:45px 24px;line-height:1.9}.finished-goods-page .empty .button{margin-top:12px}.finished-goods-page .identity-panel{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;background:#fff;border:1px dashed #bdcce3;border-radius:8px;margin-bottom:18px}.finished-goods-page .identity-panel label{display:flex;align-items:center;gap:10px;font-size:13px}.finished-goods-page .identity-panel>span{font-size:12px;color:var(--muted)}.goods-entry-dialog{width:min(670px,calc(100% - 32px));max-width:670px}.goods-entry-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.goods-entry-dialog .form-grid .full{grid-column:1/-1}.goods-entry-dialog label{min-width:0}.goods-entry-dialog input,.goods-entry-dialog select,.goods-entry-dialog textarea{width:100%;min-width:0}.goods-entry-dialog .muted{font-size:13px;line-height:1.75}.goods-entry-dialog .form-grid label small{font-size:12px;color:var(--muted);line-height:1.6}.goods-entry-dialog .dialog-footer{flex-wrap:wrap}.goods-candidate-info{background:#f3f7fc;border:1px solid #dfe8f4;border-radius:8px;padding:14px;margin-top:16px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.goods-candidate-info strong{display:block;color:#345b84}.goods-candidate-info p{margin:5px 0}.goods-movement-drawer{width:min(820px,100%)}.goods-movement-card{border:1px solid var(--line);border-radius:10px;margin-bottom:14px;padding:18px}.goods-movement-card header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.goods-movement-card h3{font-size:15px;margin:5px 0;overflow-wrap:anywhere}.goods-movement-card .movement-quantity{white-space:nowrap;font-size:19px;font-variant-numeric:tabular-nums;color:#28784d;font-weight:600}.goods-movement-card .movement-quantity.out{color:#a66a27}.goods-movement-card p,.goods-movement-card small{color:var(--muted);font-size:12px;line-height:1.8;overflow-wrap:anywhere}.goods-movement-card a{font-size:13px}.goods-movement-card .movement-note{white-space:pre-wrap}.goods-movement-card .movement-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.goods-movement-card .movement-type{font-size:12px;color:#53769d}.finished-goods-page .form-loading{padding:30px;text-align:center;color:var(--muted)}.finished-goods-page .login-dialog label{display:block;margin-top:14px}
@media(max-width:760px){.goods-flow{grid-template-columns:1fr;gap:10px}.goods-flow>div{padding:15px}.goods-flow span{display:inline;margin-right:10px}.goods-flow p{margin-left:29px}.goods-summary{grid-template-columns:1fr;gap:10px}.goods-summary>div{padding:15px}.lot-count{display:flex;justify-content:space-between;align-items:center}.lot-count strong{margin:0;font-size:23px}.goods-filters{padding:0 16px 17px;gap:12px}.goods-filters>input{flex-basis:100%;min-width:0}.finished-goods-page .layout{display:block}.finished-goods-page .sidebar{position:static;width:100%;min-height:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;padding:15px}.finished-goods-page .sidebar .brand{width:100%;margin:0 0 8px}.finished-goods-page .sidebar .nav-label,.finished-goods-page .sidebar .sidebar-bottom{display:none}.finished-goods-page .sidebar .nav-item{font-size:12px;padding:8px}.finished-goods-page .identity-panel label{width:100%;flex-wrap:wrap}.finished-goods-page .identity-panel select{flex:1}.finished-goods-page .table-wrap{overflow-x:auto}.goods-entry-dialog{width:calc(100% - 24px)}.goods-entry-dialog .form-grid{grid-template-columns:1fr}.goods-entry-dialog .dialog-header,.goods-entry-dialog .dialog-body,.goods-entry-dialog .dialog-footer,.goods-movement-drawer .dialog-body{padding:18px}.goods-entry-dialog .dialog-header h2{font-size:18px}.goods-entry-dialog .dialog-footer .button{flex:1}.goods-movement-card{padding:14px}.goods-movement-card header{flex-wrap:wrap}.goods-panel .table-footer{gap:5px;align-items:flex-start;flex-direction:column}}

.goods-task-filter{margin:0 23px 17px;padding:11px 14px;border-radius:8px;border:1px solid #dae6f4;background:#f3f7fc;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:#4c6b91;overflow-wrap:anywhere}

/* Each batch is a compact inventory card, with the balance kept prominent. */
.goods-flow{gap:10px;margin:18px 0}.goods-flow>div{padding:14px 17px;background:#f8fafc}.goods-flow span{display:inline;margin:0 8px 0 0}.goods-flow strong{font-size:14px}.goods-flow p{margin:7px 0 0;font-size:12px}.goods-summary{margin:18px 0}.goods-panel>.toolbar{padding:21px 23px 17px}.goods-panel-hint{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.goods-panel>.table-wrap{overflow:visible}.goods-table{display:block;width:100%;min-width:0;table-layout:fixed}.goods-table thead{display:none}.goods-table tbody{display:grid;gap:12px;padding:0 20px 20px}.goods-table tr{display:block;background:transparent}.goods-table tr:hover{background:transparent}.goods-table tr>td,.goods-table tr>td:first-child{display:block!important;padding:0!important;border:0;max-width:none;min-width:0;width:100%}.goods-lot-card{border-left:3px solid #75a993}.goods-lot-empty{border-left-color:#ccd5df}.goods-lot-card .order-surface-head{align-items:flex-start}.goods-customer{margin:0 0 5px;font-size:12px;color:#5f7880;line-height:1.6;overflow-wrap:anywhere}.goods-lot-card .order-surface-heading h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere}.goods-lot-card .goods-source{margin:0}.goods-lot-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,.9fr);align-items:center;gap:20px}.goods-lot-description{min-width:0}.goods-specification{margin:0 0 10px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.goods-specification>span{display:block;font-size:11px;color:#7a8b9c;margin-bottom:3px}.goods-lot-description .order-surface-tag{font-size:12px;white-space:normal;overflow-wrap:anywhere}.goods-lot-description .order-surface-tag>span{color:#7a8b9c}.goods-lot-metrics{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:10px}.goods-lot-metrics>div{min-width:0}.goods-lot-metrics dd{font-size:18px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;white-space:normal}.goods-table .goods-lot-metrics dd small{display:inline;color:#7b8b9b;font-size:11px;font-weight:400;margin:0;line-height:inherit}.goods-lot-metrics .goods-current-stock{padding:10px 12px;background:#edf7f1;border:1px solid #dcece2;border-radius:9px}.goods-lot-metrics .goods-current-stock dd{font-size:25px;color:#2c7354}.goods-lot-metrics>div:not(.goods-current-stock){padding-top:10px}.goods-lot-metrics .goods-current-stock .stock-zero{color:#8b98a5}.goods-lot-reference{display:flex;flex-wrap:wrap;gap:4px 15px;flex:1;min-width:0}.goods-lot-reference .order-surface-ref{font-size:11px;max-width:100%}.goods-lot-reference .order-surface-note{flex-basis:100%}.goods-lot-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:100%;min-width:0}.goods-table .goods-lot-actions .row-actions{gap:8px;margin:0;justify-content:flex-end}.goods-lot-actions .button{font-size:12px;min-height:34px;padding:7px 11px}.goods-lot-actions .text-button{font-size:12px}.goods-lot-actions .goods-block-reason{margin:0;max-width:350px;text-align:right;overflow-wrap:anywhere}.goods-table .empty{padding:35px 18px!important}.goods-lot-card .order-surface-footer{gap:13px 20px}
.goods-lot-metrics{margin:0;padding:0;border:0}.goods-lot-metrics .goods-balance{white-space:normal}
@media(max-width:1050px){.goods-lot-body{grid-template-columns:1fr}.goods-lot-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.goods-lot-metrics .goods-current-stock dd{font-size:23px}}
@media(max-width:760px){.goods-flow{grid-template-columns:1fr}.goods-flow>div{padding:12px 14px}.goods-flow p{margin:5px 0 0}.goods-panel>.toolbar{padding:17px 15px;flex-direction:row;align-items:center;gap:12px}.goods-table tbody{padding:0 12px 14px;gap:10px}.goods-lot-body{gap:14px}.goods-lot-metrics{gap:8px}.goods-lot-metrics dd{font-size:17px}.goods-lot-metrics .goods-current-stock{padding:9px}.goods-lot-metrics .goods-current-stock dd{font-size:21px}.goods-lot-actions{width:100%;align-items:flex-start}.goods-lot-actions .goods-block-reason{text-align:left}.goods-table .goods-lot-actions .row-actions{justify-content:flex-start;width:100%}.goods-lot-reference .order-surface-ref{flex-basis:100%}.goods-task-filter{margin-left:15px;margin-right:15px}.finished-goods-page .table-wrap{overflow:visible}}
@media(max-width:520px){.goods-lot-card .order-surface-head{flex-wrap:wrap}.goods-lot-card .order-surface-heading{flex-basis:100%}.goods-lot-card .order-surface-head .order-surface-tags{margin:0}}

/* Product and inventory cards share the factory's forest-green identity. */
.goods-flow>div,.goods-candidate-info,.goods-task-filter{background:var(--brand-soft)}
.goods-candidate-info,.goods-task-filter,.finished-goods-page .identity-panel{border-color:var(--brand-border)}
.goods-flow strong,.goods-table .goods-product{color:var(--brand-deep)}
.goods-candidate-info strong,.goods-task-filter,.goods-movement-card .movement-type{color:var(--brand)}
.goods-source:not(.opening){background:var(--brand-soft);color:var(--brand)}
.goods-lot-card:not(.goods-lot-empty){border-left-color:var(--brand-light)}
.goods-customer,.goods-specification>span,.goods-lot-description .order-surface-tag>span{color:var(--muted)}

/* One order on the overview; full, separately accounted batches in its details. */
.goods-summary{grid-template-columns:220px 1fr}.lot-count p{font-size:12px;color:var(--muted);margin:8px 0 0}.lot-count b{font-weight:600}.goods-order-composition{font-size:12px;color:var(--muted);margin:0 0 9px}.goods-pattern-preview{gap:6px}.goods-order-card .order-surface-footer{padding-top:12px;padding-bottom:12px}.goods-order-card .goods-specification{font-size:13px}.goods-order-metrics .goods-total-value{display:block;line-height:1.5}.goods-lot-metrics dd small{font-size:12px;font-weight:400;color:var(--muted)}
.goods-order-dialog{width:min(1080px,calc(100% - 36px));max-width:1080px;max-height:calc(100vh - 40px);padding:0}.goods-order-dialog[open]{display:flex;flex-direction:column}.goods-order-dialog>.dialog-header,.goods-order-dialog>.dialog-footer{flex-shrink:0}.goods-order-dialog>.dialog-header h2{font-size:19px;line-height:1.6;overflow-wrap:anywhere}.goods-order-dialog>.dialog-body{min-height:0;overflow-y:auto;background:#f6f9f7}.goods-order-dialog .goods-detail-summary{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.goods-detail-summary .goods-lot-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.goods-detail-summary .goods-lot-metrics>div:not(.goods-current-stock){padding:10px 12px}.goods-detail-heading{margin:23px 0 15px}.goods-detail-heading h3{font-size:16px;margin:0 0 7px}.goods-detail-heading h3 span{font-size:12px;color:var(--muted);font-weight:400;margin-left:10px}.goods-detail-heading p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.goods-detail-lots{display:grid;gap:14px}.goods-detail-lots .goods-lot-card{background:#fff}.goods-detail-lots .goods-lot-actions .row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.goods-detail-lots .goods-lot-body{grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}
@media(max-width:760px){.goods-summary{grid-template-columns:1fr}.lot-count p{margin:0}.goods-order-dialog{width:calc(100% - 18px);max-height:calc(100dvh - 20px)}.goods-order-dialog>.dialog-header,.goods-order-dialog>.dialog-body,.goods-order-dialog>.dialog-footer{padding:16px}.goods-order-dialog>.dialog-header h2{font-size:16px}.goods-detail-summary .goods-lot-metrics>div:not(.goods-current-stock){padding:10px 3px}.goods-detail-lots .goods-lot-body{grid-template-columns:1fr}.goods-order-dialog .goods-detail-summary{padding:10px}.goods-detail-lots .goods-lot-actions .row-actions{justify-content:flex-start}.goods-order-dialog>.dialog-footer{gap:8px;flex-wrap:wrap}.goods-order-dialog>.dialog-footer .button{flex:1;white-space:normal}}

#goods-order-error{margin:12px 20px 0;flex-shrink:0}

/* Receipt corrections stay with the corresponding order batch and retain their audit trail. */
.goods-receipt-history{margin:0 20px 18px;border-top:1px solid var(--line);padding-top:13px;font-size:14px}.goods-receipt-history summary{cursor:pointer;color:var(--brand-deep);font-weight:600}.goods-receipt-history ol{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}.goods-receipt-history li{background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:8px;padding:13px 15px;overflow-wrap:anywhere}.goods-receipt-history strong,.goods-receipt-history span,.goods-receipt-history small{display:block;line-height:1.7}.goods-receipt-history strong{font-size:15px;font-variant-numeric:tabular-nums}.goods-receipt-history span,.goods-receipt-history small{color:var(--muted);font-size:12px}.goods-receipt-history p{margin:7px 0;line-height:1.8;white-space:pre-wrap}.goods-entry-dialog input[name=quantity]{font-size:22px;min-height:50px;font-variant-numeric:tabular-nums}.goods-entry-dialog textarea[name=note]{font-size:16px;line-height:1.7}@media(max-width:760px){.goods-receipt-history{margin:0 14px 14px}.goods-receipt-history li{padding:12px}}
