.master-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid #e4e7ea;border-radius:16px;padding:20px;margin-bottom:18px}.master-toolbar small{display:block;color:#687680;margin-top:6px}.master-toolbar>div:last-child,.master-actions{display:flex;flex-wrap:wrap;gap:8px}.master-product-meta{padding:14px 0;border-bottom:1px solid #eee;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.master-product-meta p{width:100%;white-space:pre-wrap;overflow-wrap:anywhere}.master-status{padding:5px 10px;border-radius:18px;font-size:13px;background:#e8f5ef;color:#15734c}.master-status.out_of_stock{background:#fff1cf;color:#815900}.master-status.inactive{background:#eee;color:#626262}.master-stock-warning{grid-column:1/-1;color:#a65c00}.master-modal{position:fixed;inset:0;z-index:10000;background:#0009;display:grid;place-items:center;padding:24px;overflow:auto}.master-modal section{background:#fff;color:#171b1e;width:min(880px,100%);max-height:90dvh;overflow:auto;border-radius:20px;padding:24px;box-shadow:0 16px 64px #0005}.master-modal header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:0}.master-modal header button{font-size:28px;background:#f5f5f5;border:0;padding:4px 12px}.master-modal h2{font-size:24px;margin:0}.master-help{color:#65727c;line-height:1.6}.master-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.master-form-grid label{display:flex;flex-direction:column;gap:7px}.master-form-grid input,.master-form-grid select,.master-form-grid textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #d9dfe3;border-radius:9px;font:inherit;background:#fff;color:#171b1e;min-width:0}.master-form-grid .wide{grid-column:1/-1}.master-supplier-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:190px;overflow:auto}.master-supplier-choices label{flex-direction:row;align-items:flex-start}.master-supplier-choices input,.master-confirm input{width:auto;flex:none}.master-form-grid fieldset{border:1px solid #d9dfe3;border-radius:9px;padding:14px}.master-confirm{display:flex;gap:10px;align-items:flex-start;margin:18px 0;background:#fff7e8;padding:14px;border-radius:10px;line-height:1.5}.master-modal footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:20px}.master-modal footer small{max-width:60%;color:#687680}.master-error{color:#c61025;white-space:pre-wrap;line-height:1.5}.master-history{border-bottom:1px solid #e4e7ea;padding:14px 0;overflow-wrap:anywhere}.master-history small{display:block;color:#687680;margin-top:5px}.master-history p{margin:8px 0}.master-modal button:focus-visible{outline:3px solid #1985f0;outline-offset:3px}#supplierRows small{display:block;white-space:pre-wrap}#supplierRows button{display:block;margin-top:8px}
@media(max-width:650px){.master-toolbar{align-items:flex-start;flex-direction:column;padding:16px}.master-modal{padding:8px}.master-modal section{padding:18px;max-height:95dvh}.master-form-grid{grid-template-columns:1fr}.master-form-grid .wide{grid-column:auto}.master-supplier-choices{grid-template-columns:1fr}.master-modal footer{align-items:stretch;flex-direction:column}.master-modal footer small{max-width:100%}.master-actions{width:100%}.master-actions button{flex:1}.master-modal h2{font-size:21px}}
