/* Autohaus Manager V2.6.2 – Auslieferungsliste: lesbare Spalten trotz Rechnungsstatus.
   Nur Desktop-Tabelle; UX-Kartenansicht unter 741px bleibt unverändert. */
@media screen and (min-width:741px){
  body.ux-app .sales-list-wrap{
    max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:auto!important;
    overscroll-behavior-x:contain;scrollbar-width:thin;
  }
  body.ux-app .sales-list-wrap .sales-table{
    display:table!important;width:100%!important;min-width:1510px!important;
    table-layout:fixed!important;border-collapse:separate;border-spacing:0;
    white-space:normal!important;font-size:12px;
  }
  body.ux-app .sales-table thead{display:table-header-group!important}
  body.ux-app .sales-table tbody{display:table-row-group!important}
  body.ux-app .sales-table tbody tr.sale-click-row{display:table-row!important}
  body.ux-app .sales-table :is(th,td){
    box-sizing:border-box;vertical-align:middle;padding:12px 10px!important;
    line-height:1.36;overflow-wrap:normal!important;word-break:normal!important;
    hyphens:none;
  }
  body.ux-app .sales-table td[data-label="FIN"]{
    overflow-wrap:anywhere!important;word-break:normal!important;font-size:11px;
  }
  body.ux-app .sales-table td:is([data-label="Dokumente / Zulassung"],[data-label="Auslieferung"]){
    overflow-wrap:break-word!important;word-break:normal!important;
    hyphens:none;min-width:0;
  }
  body.ux-app .sales-table .badge{max-width:100%;width:max-content;white-space:normal;
    overflow-wrap:break-word;word-break:normal;text-align:left;line-height:1.35;
    display:inline-flex;align-items:center;justify-content:flex-start;
  }
  body.ux-app .sales-table td small{display:block;line-height:1.4;margin-top:5px;overflow-wrap:break-word;word-break:normal}
  body.ux-app .sales-table .documents-cell{padding:13px 12px!important}
  body.ux-app .sales-table .documents-cell .document-task{display:block;margin:7px 0 2px;line-height:1.36;font-size:12px;overflow-wrap:break-word}
  body.ux-app .sales-table td[data-label="Auslieferung"] .delivery-change{font-size:11px;line-height:1.4}
  /* 11 sichtbare Spalten. Nächster Schritt ist desktopseitig ausgeblendet. */
  body.ux-app .sales-table :is(th,td):nth-child(1){width:6%!important}
  body.ux-app .sales-table :is(th,td):nth-child(2){width:10%!important}
  body.ux-app .sales-table :is(th,td):nth-child(3){width:11.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(4){width:10.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(5){width:7%!important}
  body.ux-app .sales-table :is(th,td):nth-child(6){width:9%!important}
  body.ux-app .sales-table :is(th,td):nth-child(7){width:7.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(8){width:6.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(9){width:8.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(10){width:13.5%!important}
  body.ux-app .sales-table :is(th,td):nth-child(11){width:10%!important}
  /* Saubere Statusfarben im dunklen Layout, auch für geänderte Termine. */
  html[data-theme="dark"] body.ux-app .sales-table .badge.changed{
    background:#303B4A!important;border:1px solid #566880!important;color:#DCE7FF!important;
  }
  html[data-theme="dark"] body.ux-app .sales-table .delivery-change{color:#DAB875!important}
  /* Die 12. Spalte ist in der Desktop-Liste absichtlich versteckt. */
  body.ux-app .sales-table :is(th,td).ux3-next-column-head,
  body.ux-app .sales-table :is(th,td).ux3-next-cell{display:none!important}
}
/* Neutrale Rechnungsanzeige: vor dem ersten positiven Zahlungseingang kein Fälligkeitshinweis. */
body.ux-app .sales-table .invoice-awaiting-payment{
  font-weight:650;text-align:left;letter-spacing:0;
  background:#EFF2F5;color:#586578;
}
@media screen{
 html[data-theme="dark"] body.ux-app .sales-table .invoice-awaiting-payment{
   background:#30343A!important;color:#C4CBD4!important;border:1px solid #494F58;
 }
 html[data-theme="dark"] body.ux-app .sales-table tbody tr.sale-click-row:hover > td:not(.documents-cell){
   background:#2C3036!important;
 }
}
