/* Compact catalog inventory panels, scoped to avoid changing unrelated ERP pages. */
@media screen {
 .card-compact-body .card-variants{min-height:42px!important}
 .card-compact-body [data-catalog-stock38]{padding:12px;border:1px solid #d8e8e2;border-radius:9px;background:#f6fbf9;margin:1px 0 3px}
 .cs38-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#53645e;font-size:13px}
 .cs38-summary>strong{font-size:24px;line-height:1.25;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
 .cs38-value{font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
 .cs38-value small{font-size:12px;font-weight:400;color:#63766c}
 html body .cs38-positive,html body .cs38-positive [data-erp-value]{color:#117548!important}
 html body .cs38-negative,html body .cs38-negative [data-erp-value]{color:#bd303b!important}
 html body .cs38-zero,html body .cs38-zero [data-erp-value]{color:#64748b!important}
 html body .cs38-unknown,html body .cs38-unknown [data-erp-value]{color:#737f90!important}
 .cs38-summary .cs38-unknown{font-size:17px}
 .cs38-caption{font-size:12px;color:#667085;line-height:1.5;margin:5px 0 0}
 .cs38-caution{font-size:12px;color:#a64517;margin:7px 0 0;line-height:1.5}
 .cs38-specs{border-top:1px solid #e0ece6;margin-top:9px;padding-top:4px}
 .cs38-spec{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;line-height:1.6;padding:3px 0}
 .cs38-spec>span:first-child{min-width:0;overflow-wrap:anywhere;color:#52635c}
 .cs38-more{margin-top:4px;border:0;padding:0;background:none}
 .cs38-more>summary{cursor:pointer;font-size:12px;color:#1463bd;padding:2px 0}
 .cs38-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
 .cs38-actions button{font-size:12px;padding:6px 10px;min-height:31px;border-radius:6px}
 html body #app button.cs38-edit,html body #editor button.cs38-submit{background:#138451!important;color:white!important;border-color:#138451!important}
 html body #app button.cs38-edit:hover,html body #editor button.cs38-submit:hover{background:#096c40!important;border-color:#096c40!important}
 html body #app button.cs38-view{background:#edf4ff!important;color:#155ca5!important;border-color:#bfd5f3!important}
 .cs38-page-note{font-size:12px;line-height:1.6;margin:13px 0 0;color:#667085;background:#f0f6ff;border:1px solid #d9e6f7;border-radius:7px;padding:9px 12px}
 .cs38-page-note>b{color:#225484;margin-right:5px}
 .cs38-page-note>span{margin-left:8px;white-space:nowrap}
 .cs38-table-cell{min-width:190px;max-width:240px}
 .cs38-table-cell .cs38-summary{justify-content:flex-start}
 .cs38-table-cell .cs38-summary>span{display:none}
 .cs38-table-cell .cs38-summary>strong{font-size:22px}
 .cs38-table-cell .cs38-actions{margin-top:7px;gap:6px}
 .cs38-table-cell .cs38-actions button{padding:5px 8px}
 .cs38-editor{color:#344054}
 .cs38-product{display:flex;gap:15px;align-items:center;padding:12px 16px;background:#f6fbf9;border:1px solid #d8e8e2;border-radius:10px}
 .cs38-product>div:first-child:empty{display:none}
 .cs38-product .s-photo{width:64px;height:76px;margin:0;object-fit:contain}
 .cs38-product>div:last-child{flex:1;min-width:0}
 #editor .cs38-product h3{font-size:17px;margin:0 0 8px;overflow-wrap:anywhere}
 .cs38-ledger-note{font-size:13px;color:#667085;line-height:1.7;margin:10px 0 16px}
 .cs38-entry-help{border-left:3px solid #17804a;padding:10px 14px;background:#f0f9f4;border-radius:4px;font-size:14px;line-height:1.6;margin-bottom:15px}
 .cs38-entry-help p{margin:4px 0 0;font-size:13px;color:#52645b}
 .cs38-stock-table{overflow-x:auto;border:1px solid #e1e7ee;border-radius:8px}
 .cs38-stock-table table{width:100%;border-collapse:collapse;font-size:14px}
 .cs38-stock-table th,.cs38-stock-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e5ebf0;vertical-align:middle}
 .cs38-stock-table tbody tr:last-child td{border-bottom:0}
 .cs38-stock-table input{width:140px;max-width:100%;min-width:95px;padding:9px 10px}
 .cs38-stock-table td:first-child{min-width:120px;overflow-wrap:anywhere}
 .cs38-delta{font-size:13px;color:#667085;white-space:nowrap}
 .cs38-reason{display:block;margin-top:18px;font-weight:600;font-size:14px}
 .cs38-reason textarea{display:block;width:100%;min-height:86px;margin-top:8px;font-weight:400;resize:vertical}
 .cs38-preview{padding:12px 14px;border:1px solid #d4e4f7;background:#f1f6ff;border-radius:7px;color:#245582;font-size:13px;line-height:1.6}
 .cs38-unmatched{padding:12px 14px;margin-top:14px;background:#fff7eb;border:1px solid #f4d8ae;border-radius:8px;font-size:13px}
 .cs38-unmatched p{color:#8c6428;font-size:12px;margin:8px 0 0}
 .cs38-history{margin-top:16px;border-top:1px solid #e5eaf0;padding-top:13px;font-size:13px}
 .cs38-history summary{cursor:pointer;color:#1463bd}
 .cs38-history article{padding:12px 0;border-bottom:1px solid #e8ecf0}
 .cs38-history article>div{display:flex;gap:12px;justify-content:space-between}
 .cs38-history article p{margin:5px 0;line-height:1.6}
 .cs38-history article small{color:#778396;font-size:11px;overflow-wrap:anywhere}
 @media(max-width:680px){.cs38-stock-table th,.cs38-stock-table td{padding:10px 8px}.cs38-stock-table input{width:108px}.cs38-summary>strong{font-size:22px}.cs38-page-note>span{display:block;margin-left:0}}
}
