.wrapper {
  background: var(--blanc);
  border: 1px solid #eeeeee;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.searchBar {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
}

.searchInput {
  width: 100%;
  max-width: 280px;
  border: 1px solid #dddddd;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
}

.searchInput:focus {
  outline: none;
  border: 2px solid var(--vert-moyen);
  padding: 7px 11px;
}

.scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.thead {
  background: var(--gris-clair);
}

.th {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris-moyen);
  white-space: nowrap;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.thInner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.alignRight {
  justify-content: flex-end;
  text-align: right;
}

.alignCenter {
  justify-content: center;
  text-align: center;
}

.sortIcon {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}

.sortIcon.active {
  opacity: 1;
  color: var(--vert-fonce);
}

.td {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gris-fonce);
  border-bottom: 1px solid #f2f2f2;
}

tr:last-child .td {
  border-bottom: none;
}

.clickableRow {
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.clickableRow:hover {
  background: var(--gris-clair);
}

@media (max-width: 768px) {
  .scroll {
    overflow-x: visible;
  }

  .table,
  .table tbody {
    display: block;
  }

  .thead {
    display: none;
  }

  .table tr {
    display: block;
    background: var(--blanc);
    border: 1px solid #eeeeee;
    border-radius: var(--radius-md);
    padding: 4px 0;
    margin: 12px;
  }

  .table tr:first-child {
    margin-top: 0;
  }

  .td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f2f2f2;
    text-align: right;
  }

  .table tr .td:last-child {
    border-bottom: none;
  }

  .td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gris-moyen);
    text-align: left;
  }

  .td.alignRight,
  .td.alignCenter {
    justify-content: space-between;
    text-align: right;
  }
}
