/* Collapse only a completed, read-only report with no visible CRM rows.
   Keep loading placeholders and edit/error rows intact. Column filters hide
   rows with inline display:none; resetting them restores the normal table. */
html.olap-up #root:not(:has(.ak-loading)) .ak-up-primary:has(table.sale5table):not(:has(tbody tr:not([style*="display: none"]))){
  height:auto;
  max-height:none!important;
}
html.olap-up #root:not(:has(.ak-loading)) .ak-up-primary:has(table.sale5table):not(:has(tbody tr:not([style*="display: none"]))) .table-responsive-md{
  display:none;
}
html.olap-up #root:not(:has(.ak-loading)) .ak-up-primary:has(table.sale5table):not(:has(tbody tr:not([style*="display: none"])))::after{
  content:"Нет сделок для добавления";
  display:block;
  padding:14px 16px;
  color:#6b7280;
  font-size:14px;
  line-height:22px;
}
html.olap-up #root:not(:has(.ak-loading)):has(.ak-up-search input[value]:not([value=""]),.ak-up-primary th.akf-on) .ak-up-primary:has(table.sale5table):not(:has(tbody tr:not([style*="display: none"])))::after{
  content:"По выбранным условиям сделок нет";
}
