/* Adaptation de la seule liste des devis de l'interface validee. */
body:has(table[class~="min-w-[1720px]"]) main,
div:has(> main table[class~="min-w-[1720px]"]) {
  min-width: 0;
}
main div:has(> table[class~="min-w-[1720px]"]) {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: auto;
}
table[class~="min-w-[1720px]"] > thead > tr > th:last-child,
table[class~="min-w-[1720px]"] > tbody > tr > td:last-child {
  position: sticky;
  right: 0;
  min-width: 44px;
  width: 44px;
  background: #fff;
  box-shadow: -3px 0 5px -3px rgb(15 23 42 / 35%);
  z-index: 2;
}
table[class~="min-w-[1720px]"] > thead > tr > th:last-child {
  background: #f8fafc;
  z-index: 12;
}
table[class~="min-w-[1720px]"] > tbody > tr:hover > td:last-child {
  background: #eff6ff;
}
table[class~="min-w-[1720px]"] > tbody > tr > td:last-child button {
  min-width: 28px;
  min-height: 28px;
  color: #64748b;
}
table[class~="min-w-[1720px]"] > tbody > tr > td:last-child button:hover {
  color: #ef4444;
}
@media (max-width: 1800px) {
  table[class~="min-w-[1720px]"] { min-width: 1240px; }
  table[class~="min-w-[1720px]"] > :is(thead, tbody) > tr > :is(th, td):not(:last-child) {
    padding-left: 8px;
    padding-right: 8px;
  }
  table[class~="min-w-[1720px]"] > thead > tr > th:nth-child(4) { min-width: 190px; }
  table[class~="min-w-[1720px]"] > tbody > tr > td:nth-child(4) > div {
    max-width: 220px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  table[class~="min-w-[1720px]"] > tbody > tr > td:is(:nth-child(5), :nth-child(6), :nth-child(7)) {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 1279px) {
  /* Keep rows reachable on short laptop windows, even with expanded filters. */
  main div:has(> table[class~="min-w-[1720px]"]) { min-height: 200px; }
  main > div:has(table[class~="min-w-[1720px]"]) { overflow-y: auto; }
}
