
#inventoryAvitoBatch {box-sizing:border-box;width:min(1120px,94vw);max-width:94vw;max-height:88vh;padding:0;border:1px solid #cad9e4;border-radius:18px;color:#18364b;background:#fff;overflow:auto;}
#inventoryAvitoBatch::backdrop{background:#0b233e88}
.avito-batch-head,.avito-batch-tools,.avito-batch-foot{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:18px 24px;background:#f2f7fb;}
.avito-batch-head{justify-content:space-between;border-bottom:1px solid #d9e5ef}.avito-batch-head h2{margin:0;font-size:22px}.avito-batch-head button{margin-left:auto;min-width:44px}
.avito-batch-tools input{flex:1;min-width:180px}.avito-batch-tools select{width:auto;max-width:100%}.avito-batch-note{margin:12px 24px;line-height:1.6}.avito-batch-list{padding:0 24px 16px}
.avito-batch-row{display:grid;grid-template-columns:24px 72px minmax(0,1fr) auto;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #dce7ef;}
.avito-batch-row input[type=checkbox]{width:20px;height:20px;margin:0}.avito-batch-row img{width:72px;height:58px;object-fit:contain;border-radius:8px;background:#f5f8fb}.avito-batch-row h3{font-size:15px;margin:0 0 5px}.avito-batch-row p{margin:0;font-size:13px;line-height:1.5}.avito-batch-state{font-weight:600;overflow-wrap:anywhere;max-width:220px}.avito-batch-row[data-error=true]{background:#fff4f0}.avito-batch-row details{grid-column:2/-1;margin-top:6px}.avito-batch-row summary{cursor:pointer;color:#0872a8;padding:8px 0}
.avito-batch-edit{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px;background:#f2f7fb;border-radius:12px}.avito-batch-edit label{display:flex;flex-direction:column;gap:6px;min-width:0}.avito-batch-edit input,.avito-batch-edit textarea,.avito-batch-edit select{width:100%;box-sizing:border-box;min-width:0}.avito-batch-edit .wide{grid-column:1/-1}.avito-batch-foot{position:sticky;bottom:0;box-shadow:0 -4px 16px #18364b12;border-top:1px solid #d9e5ef}.avito-batch-foot span{margin-right:auto}.avito-batch-foot button{white-space:normal;min-height:42px}
#inventoryAvitoDialog{box-sizing:border-box;max-height:88vh;margin:auto;overflow:auto}
#stock button[data-listing-platform="Авито"].is-published{background:#187b4b!important;border-color:#187b4b!important;color:#fff!important}
html[data-theme="dark"] #inventoryAvitoBatch{background:#142a3b;color:#e2eff9}html[data-theme="dark"] .avito-batch-head,html[data-theme="dark"] .avito-batch-tools,html[data-theme="dark"] .avito-batch-foot,html[data-theme="dark"] .avito-batch-edit{background:#1c374c}
@media(max-width:650px){.avito-batch-head,.avito-batch-tools,.avito-batch-foot{padding:14px}.avito-batch-list{padding:0 14px 14px}.avito-batch-row{grid-template-columns:24px 52px minmax(0,1fr);gap:10px}.avito-batch-row img{width:52px}.avito-batch-state{grid-column:3;max-width:none}.avito-batch-edit{grid-template-columns:1fr}.avito-batch-edit .wide{grid-column:auto}.avito-batch-foot button{flex:1}.avito-batch-foot span{width:100%}}

.avito-batch-head{position:sticky;top:0;z-index:3}.avito-batch-info{grid-column:3}.avito-batch-state{grid-column:4}@media(max-width:650px){.avito-batch-state{grid-column:3}}

.inventory-group-publications {display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px}
.inventory-group-publications fieldset {display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:5px 8px 8px;border:1px solid #93b2c380;border-radius:8px;min-width:0}
.inventory-group-publications legend {padding:0 5px;font-size:.85em}
.inventory-group-publications button.is-published {background:#187048;border-color:#187048;color:#fff;opacity:1}
