@media (max-width:1000px) {
  .card:has(table.tbl) {
    overflow-x: auto;
  }
}
.tbl {
  width: 100%;
}
.card:has(> .tbl),
.card:has(> table) {
  overflow-x: auto;
}
.tbl th {
  text-align: left;
}
.tbl td {
  transition: background 140ms var(--ease-out);
}
@media (max-width:640px) {
  .card:has(> .tbl),
  .card:has(> table) {
    overscroll-behavior-x: contain;
  }
}
.tbl td:first-child b,
.tbl td:first-child strong {
  font-weight: var(--fw-semibold);
}
@media (prefers-reduced-motion: no-preference) {
  .tbl tbody tr td {
    transition: background .15s, box-shadow .15s;
  }
}
@media (max-width:640px) {
  .page-vue[data-page="parc"] .card:has(table.tbl) {
    background: linear-gradient(90deg, var(--bg-surface) 30%, transparent) left / 24px 100% no-repeat local, linear-gradient(270deg, var(--bg-surface) 30%, transparent) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.45), transparent) right / 12px 100% no-repeat scroll, var(--bg-surface);
  }
}
@media (min-width:641px) {
  .card:has(> .tbl) .tbl thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}
@media (max-width: 767px) {
  .tbl thead {
    display: none;
  }
  .tbl,
  .tbl tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .tbl tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    column-gap: 10px;
    align-items: center;
  }
  .tbl tbody td {
    padding: 1px 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 12.5px;
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tbl tbody td.tel-titre {
    font-size: 14px;
    grid-row: 1;
  }
  .tbl tbody td.tel-etat {
    align-self: center;
  }
  .tbl tbody td.tel-cacher {
    display: none;
  }
  .tbl tbody td[colspan] {
    grid-column: 1 / -1;
  }
}
.tbl {
  border-spacing: 0;
}
.tbl th {
  padding: 0 12px;
  font: 500 12px/1 var(--ds-font);
  letter-spacing: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}
.tbl td {
  padding: 6px 12px !important;
  color: var(--ds-text) !important;
}
.tbl tr:hover td,
.row-clickable:hover td {
  box-shadow: none;
}
.row-clickable {
  cursor: pointer;
}
.card:has(> .tbl) .tbl th:last-child,
.card:has(> .tbl) .tbl td:last-child {
  padding-right: 16px !important;
}
.card:has(> .tbl),
.panel:has(> .tbl) {
  padding: 6px !important;
}
.tbl th {
  background: transparent;
  height: 36px;
  color: var(--ds-text-3);
}
.tbl td {
  border-bottom: 0 !important;
  height: 44px;
}
.tbl tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,.025);
}
:root[data-theme="light"] .tbl tbody tr:nth-child(odd) td {
  background: rgba(0,0,0,.025);
}
.tbl tbody tr td:first-child {
  border-radius: var(--ds-r) 0 0 var(--ds-r);
}
.tbl tbody tr td:last-child {
  border-radius: 0 var(--ds-r) var(--ds-r) 0;
}
.tbl tbody tr:hover td {
  background: rgba(255,255,255,.055) !important;
}
:root[data-theme="light"] .tbl tbody tr:hover td {
  background: rgba(0,0,0,.05) !important;
}
.card:has(> .tbl) .tbl th:first-child,
.card:has(> .tbl) .tbl td:first-child {
  padding-left: 14px !important;
}
@media (max-width:767px) {
  .tbl tbody tr {
    padding: 12px 14px;
    border: 0;
    border-radius: var(--ds-r-in);
    margin-bottom: 6px;
    row-gap: 2px;
  }
  .tbl tbody tr:nth-child(odd) {
    background: rgba(255,255,255,.025);
  }
  :root[data-theme="light"] .tbl tbody tr:nth-child(odd) {
    background: rgba(0,0,0,.025);
  }
  .tbl tbody tr td,
  .tbl tbody tr:nth-child(odd) td,
  .tbl tbody tr:hover td {
    background: transparent !important;
    height: auto !important;
  }
  .card:has(> .tbl) .tbl td:first-child {
    padding-left: 0 !important;
  }
  .tbl tbody td.tel-titre {
    grid-column: 1 / -1;
  }
  .tbl tbody td.tel-etat {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 6px;
  }
  .tbl tbody td.num {
    grid-column: 1 / -1;
  }
}
@media (max-width:899px) {
  :root .tbl tbody tr td,
  :root[data-theme] .tbl tbody tr:nth-child(2n+1) td {
    background: transparent !important;
  }
}
#page-root .tbl:has(#clientsListe) td:first-child {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  #page-root .tbl:has(#clientsListe) :is(th, td):nth-child(6) {
    display: none;
  }
}

/* Page Appels : regroupée par jour (22/11) */
html:root #page-root .tbl:has(#appelsCorps) tbody tr td { background: transparent !important; }
html:root #page-root .tbl:has(#appelsCorps) tbody tr.ap-ligne:hover td,
html:root #page-root .tbl:has(#appelsCorps) tbody tr.appels-vides:hover td { background: rgba(0,0,0,.035) !important; }
html:root #page-root .tbl:has(#appelsCorps) tr.ap-jour td {
  height: auto; padding: 18px 14px 6px !important; border-bottom: 1px solid var(--ds-border, #ececef) !important; border-radius: 0 !important;
}
html:root #page-root .tbl:has(#appelsCorps) tr.ap-jour:first-child td { padding-top: 8px !important; }
.ap-jour-t { font-weight: 600; font-size: 13px; color: var(--ds-text, #18181b); }
.ap-jour-n { margin-left: 8px; font-size: 12px; color: var(--ds-text-3, #8b8b93); }
#page-root .tbl:has(#appelsCorps) .ap-heure { color: var(--ds-text-3, #8b8b93) !important; white-space: nowrap; font-variant-numeric: tabular-nums; width: 90px; }
#page-root .tbl:has(#appelsCorps) .ap-chiffre { text-align: right; font-variant-numeric: tabular-nums; }
#page-root .tbl:has(#appelsCorps) .ap-vides { color: var(--ds-text-3, #8b8b93) !important; }
.ap-afficher { color: #3B82F6; font-weight: 500; }
@media (max-width: 767px) {
  html:root #page-root .tbl:has(#appelsCorps) tbody tr { background: transparent !important; margin-bottom: 0; border-radius: 0; border-bottom: 1px solid var(--ds-border, #ececef); }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr:last-child { border-bottom: 0; }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr.ap-jour { padding: 18px 14px 6px; border-bottom: 0; }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr.ap-jour td { padding: 0 !important; border: 0 !important; }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr.ap-ligne td.tel-titre { grid-column: 1; grid-row: 1; }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr.ap-ligne td.ap-heure { grid-column: 2; grid-row: 1; align-self: start; width: auto; padding-top: 3px !important; }
  html:root #page-root .tbl:has(#appelsCorps) tbody tr.appels-vides td.ap-heure { display: none; }
}
