.smb2b-matrix{--sb-pri:#2563eb;--sb-line:#e5e7eb;--sb-muted:#6b7280;border:1px solid var(--sb-line);border-radius:8px;margin:0 0 20px;overflow:hidden}.smb2b-matrix__head{border-bottom:1px solid var(--sb-line);flex-wrap:wrap;align-items:baseline;gap:10px;padding:10px 14px;display:flex}.smb2b-matrix__hint{color:var(--sb-muted);font-size:12px}.smb2b-matrix__rule{flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.smb2b-matrix__rule-label{color:var(--sb-muted)}.smb2b-matrix__rule-chip{background:color-mix(in srgb, var(--sb-pri) 10%, #fff);color:var(--sb-pri);white-space:nowrap;border-radius:999px;padding:1px 8px;font-weight:600}.smb2b-matrix__scroll{max-height:420px;overflow:auto}.smb2b-matrix__table{border-collapse:collapse;width:100%;margin:0}.smb2b-matrix__table th,.smb2b-matrix__table td{border:0;border-bottom:1px solid var(--sb-line);text-align:center;padding:6px 8px;font-size:13px}.smb2b-matrix__corner,.smb2b-matrix__col{z-index:2;box-shadow:0 1px 0 var(--sb-line);background:#fff;font-weight:600;position:sticky;top:0}.smb2b-matrix__corner{z-index:3;text-align:left;color:var(--sb-muted);font-weight:500;left:0}.smb2b-matrix__row{z-index:1;text-align:left;white-space:nowrap;box-shadow:1px 0 0 var(--sb-line);background:#fff;font-weight:600;position:sticky;left:0}.smb2b-matrix__cell{min-width:76px}.smb2b-matrix__cell.is-filled .smb2b-matrix__qty{border-color:var(--sb-pri);background:color-mix(in srgb, var(--sb-pri) 6%, #fff)}.smb2b-matrix__cell.is-failed .smb2b-matrix__qty{background:#fef2f2;border-color:#dc2626}.smb2b-matrix__cell.is-oos{background:#fafafa}.smb2b-matrix__qty{border:1px solid var(--sb-line);text-align:center;border-radius:6px;width:58px;padding:4px 6px;font-size:13px;line-height:1.4}.smb2b-matrix__qty:focus{outline:2px solid var(--sb-pri);outline-offset:0;border-color:var(--sb-pri)}.smb2b-matrix__price{color:var(--sb-muted);margin-top:2px;font-size:11px;display:block}.smb2b-matrix__oos,.smb2b-matrix__col--total{color:var(--sb-muted)}.smb2b-matrix__rowtotal,.smb2b-matrix__coltotal{color:var(--sb-muted);background:#fafafa;font-weight:600}.smb2b-matrix__totals .smb2b-matrix__row{color:var(--sb-muted);background:#fafafa}.smb2b-matrix__grandtotal{color:var(--sb-pri);background:color-mix(in srgb, var(--sb-pri) 8%, #fff);font-weight:700;position:sticky;right:0}.smb2b-matrix__col--total,.smb2b-matrix__rowtotal{z-index:1;background:#fafafa;position:sticky;right:0}.smb2b-matrix__col--total{z-index:2;box-shadow:0 1px 0 var(--sb-line);background:#fff}.smb2b-matrix__notice{border-top:1px solid var(--sb-line);padding:8px 14px;font-size:13px}.smb2b-matrix__notice.is-success{color:#166534;background:#f0fdf4}.smb2b-matrix__notice.is-warn{color:#92400e;background:#fffbeb}.smb2b-matrix__notice.is-error{color:#991b1b;background:#fef2f2}.smb2b-matrix__notice a{color:inherit;margin-left:6px;font-weight:600}.smb2b-matrix__foot{border-top:1px solid var(--sb-line);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.smb2b-matrix__total{color:var(--sb-muted);font-size:13px}.smb2b-matrix__total strong{color:inherit}.smb2b-matrix__foot-actions{align-items:center;gap:8px;display:flex}.smb2b-matrix__clear{color:var(--sb-muted);cursor:pointer;background:0 0;border:0;padding:6px 8px;font-size:13px;text-decoration:underline}.smb2b-matrix__submit{background:var(--sb-pri);color:#fff;cursor:pointer;border:0;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:600}.smb2b-matrix__submit:disabled{opacity:.5;cursor:default}
