/* ---------- Toolbar ---------- */
/* Fix (toolbar layout): Export + bulk actions (left) · Add/Import (right).
   Page-size selector + total count moved into the stock list card, below the
   pagination controls (Fix: list footer). Hidden bulk buttons (display:none)
   never leave a gap or push the other controls. */
.toolbar{display:flex;flex-direction:column;gap:.45rem}
.toolbar-row{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.toolbar .group-export{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.center-row{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;justify-content:center;margin:0 auto}
.toolbar .btn-toggle-add{margin-left:auto;white-space:nowrap} /* Fix: Add/Product button aligns to the right edge */
/* Reserve layout space while the form is open so the center stays fixed */
.toolbar .btn-toggle-add.invisible{visibility:hidden;pointer-events:none}
.count{font-size:.87rem;color:var(--muted)}
/* Fix (list footer): page-size selector + total count below the pagination */
.list-foot{display:flex;flex-direction:column;align-items:center;gap:.4rem}

/* ---------- Import area inside add form ---------- */
.import-area{
  margin-top:1rem;padding-top:.9rem;border-top:1px dashed var(--border);
  display:flex;flex-direction:column;gap:.5rem;align-items:flex-start;
}

/* ---------- Import report & modal list ---------- */
.import-report .form-head{margin-bottom:.5rem}
.report-lines{white-space:pre-line;font-size:.87rem;color:var(--muted);margin:0 0 .35rem}
.report-list{
  list-style:none;margin:0;padding:0;
  font-size:.85rem;color:var(--muted);
}
.report-list li{padding:.3rem 0;border-bottom:1px solid var(--border);word-break:break-word}
.report-list li.report-header{
  font-weight:700;color:var(--text);
  border-bottom:none;padding-bottom:.15rem;
}
.report-list li.report-header:not(:first-child){margin-top:.7rem}
.report-list li:last-child{border-bottom:none}
.modal-list{
  list-style:none;margin:0 0 .25rem;padding:0;
  max-height:180px;overflow-y:auto;
  font-size:.85rem;color:var(--muted);
}
.modal-list li{padding:.25rem 0;border-bottom:1px solid var(--border);word-break:break-word}
.modal-list li:last-child{border-bottom:none}

