/* Orbite 6.6.5 — alignement des listes Associations et Conventions/Décisions.
   Correctif visuel isolé : aucune logique métier ni donnée modifiée. */

/* Associations : réserver une vraie colonne aux e-mails et empêcher tout
   débordement sur les boutons d'action. */
.association-table-panel {
  overflow-x: auto;
}

.association-list-table {
  min-width: 1380px;
  table-layout: fixed;
}

.association-list-table .association-col-select { width: 42px; }
.association-list-table .association-col-classification { width: 205px; }
.association-list-table .association-col-name { width: 285px; }
.association-list-table .association-col-president { width: 190px; }
.association-list-table .association-col-phone { width: 145px; }
.association-list-table .association-col-email { width: 245px; }
.association-list-table .association-col-actions { width: 250px; }

.association-list-table .association-data-row td:nth-child(6) {
  min-width: 0;
  padding-right: 20px;
  overflow: hidden;
  white-space: normal !important;
}

.association-list-table .association-data-row td:nth-child(6) a {
  display: block;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.association-list-table .association-actions-cell {
  width: 250px;
  min-width: 250px;
  padding-left: 14px;
  vertical-align: middle;
}

.association-row-actions {
  width: 100%;
  justify-content: flex-end;
  gap: 8px;
}

/* Conventions et décisions : la cellule Actions doit rester une vraie cellule
   de tableau. Cela rétablit les séparateurs de ligne continus et aligne les
   boutons sans effet de saut. */
.convention-table-panel {
  overflow-x: auto;
}

.convention-table-panel table {
  min-width: 1420px;
  table-layout: fixed;
}

.convention-table-panel th:nth-child(1),
.convention-table-panel td:nth-child(1) { width: 125px; }
.convention-table-panel th:nth-child(2),
.convention-table-panel td:nth-child(2) { width: 215px; }
.convention-table-panel th:nth-child(3),
.convention-table-panel td:nth-child(3) { width: 285px; min-width: 285px; }
.convention-table-panel th:nth-child(4),
.convention-table-panel td:nth-child(4) { width: 105px; }
.convention-table-panel th:nth-child(5),
.convention-table-panel td:nth-child(5) { width: 85px; }
.convention-table-panel th:nth-child(6),
.convention-table-panel td:nth-child(6) { width: 110px; }
.convention-table-panel th:nth-child(7),
.convention-table-panel td:nth-child(7) { width: 135px; }
.convention-table-panel th:nth-child(8),
.convention-table-panel td:nth-child(8) { width: 260px; min-width: 260px; }

.convention-table-panel td.actions {
  display: table-cell !important;
  width: 260px;
  min-width: 260px;
  padding: 12px 12px 12px 8px;
  text-align: right;
  vertical-align: middle;
  white-space: normal !important;
}

.convention-table-panel td.actions .btn {
  display: inline-flex;
  min-height: 34px;
  margin: 3px 0 3px 6px;
  padding: 0 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.convention-table-panel tbody tr > td {
  height: auto;
}

@media (max-width: 1500px) {
  .association-list-table { min-width: 1360px; }
  .convention-table-panel table { min-width: 1400px; }
}
