main{max-width:1280px;margin:20px auto}header{display:flex;justify-content:space-between;align-items:center;gap:20px}header h1{margin-top:12px}header p{margin-bottom:0}button.secondary{color:#234968;background:#e9f0f6}form{max-width:none}.toolbar,.toolbar form{display:flex;gap:10px;align-items:center}.toolbar form{flex:1}.toolbar input{flex:1;min-width:150px}.toolbar button{white-space:nowrap}select{font:inherit;border:1px solid #bac5d5;padding:12px;border-radius:8px;background:white}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;background:#f1f5f9;color:#597084;font-weight:500;padding:12px}td{padding:16px 12px;border-bottom:1px solid #e2e8ef;vertical-align:middle}td small{display:block;color:#708396}td button{font-size:13px;padding:8px 10px;margin:3px}.product{display:flex;align-items:center;gap:12px}.product img{width:48px;height:48px;object-fit:contain}.actions{min-width:240px}.table-wrap{overflow-x:auto}.pager{display:flex;justify-content:center;align-items:center;gap:20px;margin:20px 0}.empty{text-align:center;padding:55px;color:#6a7d90}#message,#edit-message,#stock-message{color:#a33c2b;white-space:pre-wrap}dialog{border:1px solid #d1dbe5;padding:24px;border-radius:14px;width:92vw;max-width:740px;max-height:90vh;overflow:auto}dialog::backdrop{background:#16304780}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-header h2{margin:0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.fields select{display:block;width:100%;margin-top:0}input:disabled,select:disabled{background:#edf1f5;color:#5d7080}.hint,#source-note,#stock-hint{font-size:13px;color:#637b90}.record{padding:12px 0;border-bottom:1px solid #dce5ed;font-size:14px}.record small{display:block;color:#637b90}.record strong{color:#254e72}#pending-panel{background:#fff5df}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #458fb9;outline-offset:2px}@media(max-width:700px){main{padding:12px}header{align-items:stretch;flex-direction:column}.toolbar,.toolbar form{flex-wrap:wrap}.toolbar input{width:100%}.fields{grid-template-columns:1fr}h1{font-size:24px}section{padding:14px}td{padding:12px 8px}.actions{min-width:170px}}

.header-actions{display:flex;flex-wrap:wrap;gap:10px}.header-actions button{white-space:nowrap}#new-product-fields[hidden]{display:none}@media(max-width:700px){.header-actions{flex-direction:column}.header-actions button{width:100%}}

.price-boundary{background:#fff7df;border-left:4px solid #c28d22;padding:14px 18px;line-height:1.7}#moleq-workspace{margin:20px 0;border:1px solid #c7d9d0;border-radius:14px;padding:18px;background:#f4f8f5}#moleq-workspace summary{cursor:pointer;font-weight:700;min-height:44px;padding:8px}#moleq-workspace .rp-hero{margin-top:18px}.header-actions a{padding:8px 10px;min-height:44px}#quick-message{color:#a33c2b}#rows .actions button{min-height:44px}#quick-form{max-width:none}
@media(max-width:700px){#workspace>section>.table-wrap{overflow:visible}#workspace>section>.table-wrap table,#rows{display:block;width:100%}#workspace>section>.table-wrap thead{display:none}#rows tr{display:block;border:1px solid #dce3ed;border-radius:12px;margin:12px 0;padding:10px}#rows td{display:block;border:0;min-width:0;overflow-wrap:anywhere}#rows td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;color:#637b90;font-size:12px;margin-bottom:5px}#rows .actions{display:flex;gap:6px;flex-wrap:wrap}#rows .actions::before{width:100%}#rows .actions button{margin:0;flex:1 1 120px}.product>div{min-width:0}dialog{box-sizing:border-box;width:calc(100% - 24px);padding:18px}input,select{font-size:16px}#moleq-workspace{padding:10px}.pager{gap:8px;flex-wrap:wrap}}

body>main>header{align-items:flex-start;flex-wrap:wrap}body>main>header>div:first-child{flex:0 0 250px}.header-actions{flex:1;justify-content:flex-end}@media(max-width:700px){body>main>header>div:first-child{flex:auto}.header-actions{justify-content:flex-start}}
