/* TOMŻAL CRM 6.0.20 — aktywni klienci: stabilne proporcje tabeli.
   Reguła width:1% z ui-spojnosc-5.4.310.css zmniejszała komórkę AKCJE,
   a pięć przycisków nachodziło na siebie. Dotyczy wyłącznie listy AKTYWNEJ na komputerze.
   Archiwum, telefon i widok kart na tablecie pozostają bez zmian. */
@media (min-width:701px){
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .tablewrap {
   width:100%!important; max-width:100%!important; overflow-x:auto!important;
   box-sizing:border-box!important; scrollbar-gutter:auto!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .tablewrap>.table{
   table-layout:fixed!important; border-collapse:separate; border-spacing:0;
   width:100%!important; min-width:780px!important; max-width:none!important;
 }
 /* Suma zawsze 100%; mniejsze Klient/Adres/Status i szersze Akcje. */
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table thead th:nth-child(1),
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(1){width:18%!important;min-width:0!important;max-width:none!important}
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table thead th:nth-child(2),
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(2){width:24%!important;min-width:0!important;max-width:none!important}
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table thead th:nth-child(3),
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(3){width:15%!important;min-width:0!important;max-width:none!important}
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table thead th:nth-child(4),
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(4){width:43%!important;min-width:0!important;max-width:none!important}
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table thead th,
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td {
   padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(1),
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(2) {
   overflow-wrap:break-word!important;word-break:normal!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(4){
   text-align:right!important; white-space:nowrap!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .table tbody tr[data-customer-id]>td:nth-child(4)>.customer-actions[data-ui-actions="1"]{
   display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .ui-row-actions {
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   align-items:center!important;justify-content:flex-end!important;gap:6px!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .ui-row-actions>.btn.ui-act{
   flex:0 0 auto!important;max-width:100%!important;
 }
}
/* Przedział laptopowy — wyłącznie ikony głównych czterech przycisków.
   Szerokości nie mogą zmieniać się po otwarciu menu „Więcej”. */
@media (min-width:701px) and (max-width:1390px){
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .ui-row-actions>.btn.ui-act:not(.ui-more-btn){
   width:40px!important;min-width:40px!important;max-width:40px!important;
   padding:7px!important;justify-content:center!important;font-size:0!important;gap:0!important;
 }
 html:not(.crm-mobile-device) body[data-crm-view="customers"] #content .customer-list-card:not(.archive-mode) .ui-row-actions>.btn.ui-act:not(.ui-more-btn) .ui-lbl{display:none!important}
}
