.catalog-actions,.catalog-action-group{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.catalog-actions .catalog-action-group{padding:.25rem;border:1px solid #dce4d8;border-radius:.7rem}
.catalog-actions .catalog-action-group:not(:has(:not([hidden]))){display:none}
.catalog-actions a.button{text-decoration:none}
.batch-review{max-width:68rem;margin:auto;padding:clamp(.75rem,3vw,2rem);overflow-wrap:anywhere}
.batch-review h1,.batch-review h2{margin:.65rem 0}
.batch-counts{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:1rem 0}
.batch-counts li,.batch-status{background:#e9f1e8;border-radius:999px;padding:.25rem .65rem;font-size:.85rem}
.batch-status[data-status="pending"]{background:#fff0d8;color:#794600}
.batch-status[data-status="conflict"],.batch-status[data-status="rejected"]{background:#f8e7e5;color:#80362d}
.batch-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.65rem;background:#f8faf6;border:1px solid #dce4d8;border-radius:.8rem;padding:.65rem .85rem;margin-bottom:1rem;box-shadow:0 3px 10px #19342210}
.batch-toolbar p,.batch-card-heading p{margin:.15rem 0;color:#536452;font-size:.85rem}
.batch-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.batch-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;align-items:start}
.batch-review article{background:white;border:1px solid #dce4d8;border-radius:.85rem;padding:.85rem;min-width:0}
.batch-review article:has(input:checked){border-color:#55865e;box-shadow:0 0 0 1px #55865e}
.batch-review article:has(details[open]){grid-column:1/-1}
.batch-card-heading{display:flex;justify-content:space-between;align-items:start;gap:.5rem}
.batch-card-heading h3{margin:0;font-size:1.05rem}
.batch-select,.batch-review summary{cursor:pointer;min-height:44px}
.batch-select{display:inline-flex;gap:.5rem;align-items:center}
.batch-select input{width:1.15rem;height:1.15rem;accent-color:#326342}
.batch-review summary{padding:.6rem .25rem;border-top:1px solid #e2e9df;font-weight:650}
.batch-review h4{margin:.65rem 0 .4rem}
.batch-diff{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.batch-preview{min-width:0;padding:.7rem;background:white;border:1px solid #dce4d8;border-radius:.65rem;white-space:pre-wrap}
.batch-preview-label{display:block;font-size:.75rem;font-weight:700;color:#3c5a3d}
.batch-description{font-size:12px;line-height:1.6;color:#60715b;max-height:min(10rem,24dvh);overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere;margin:11px 0 12px;white-space:pre-line}
.batch-description>*{margin:0}
.batch-description>*+*{margin-top:.5em}
.batch-description ul,.batch-description ol{padding-inline-start:1.5em}
.batch-description ul{list-style:disc}
.batch-description ol{list-style:decimal}
.batch-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:42rem){
  .batch-cards,.batch-diff{grid-template-columns:1fr}
  .batch-toolbar{align-items:stretch;flex-direction:column}
  .batch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .batch-actions .button{white-space:normal;min-height:44px}
  #products-view .catalog-actions{width:100%;align-items:stretch;flex-direction:column}
  #products-view .catalog-action-group>.button{flex:1 1 8rem;white-space:normal;text-align:center}
}
