/* ═══════════════════════════════════════════════════════════════
   SFP-Europa — Tableau Position d'inactivité
   À ajouter à style-doc.css ou charger séparément
   ═══════════════════════════════════════════════════════════════ */

.inac-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1.5rem;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  /* Contiene l'overflow localmente senza propagarlo al body */
  contain: inline-size;
}

.inac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
  min-width: 900px;
  table-layout: fixed;
}

/* ── HEADER ── */
.inac-table thead th {
  background: var(--blue-deep);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .4rem .5rem;
  border: 1px solid rgba(255,255,255,.15);
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
  white-space: normal;
}

/* Largeurs colonnes */
.inac-table th:nth-child(1)  { width: 12%; }  /* Article */
.inac-table th:nth-child(2)  { width: 16%; }  /* Conditions */
.inac-table th:nth-child(3)  { width: 9%;  }  /* Durée */
.inac-table th:nth-child(4)  { width: 6%;  }  /* Rémunération */
.inac-table th:nth-child(5)  { width: 6%;  }  /* Avancement */
.inac-table th:nth-child(6)  { width: 7%;  }  /* Mérite */
.inac-table th:nth-child(7)  { width: 8%;  }  /* Maladie */
.inac-table th:nth-child(8)  { width: 5%;  }  /* Foyer */
.inac-table th:nth-child(9)  { width: 5%;  }  /* Enfant */
.inac-table th:nth-child(10) { width: 5%;  }  /* Scolaire */
.inac-table th:nth-child(11) { width: 5%;  }  /* Dépaysement */
.inac-table th:nth-child(12) { width: 9%;  }  /* Pension */
.inac-table th:nth-child(13) { width: 7%;  }  /* Poste */

/* ── CELLULES ── */
.inac-table td {
  padding: .35rem .5rem;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--text-mid);
}

/* Colonne article */
.inac-article {
  background: #f0faf0;
  border-left: 3px solid #4caf50;
}

/* Badge situation */
.inac-badge {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-bottom: .3rem;
  line-height: 1.4;
}

.inac-art {
  font-size: .72rem;
  font-weight: 600;
  color: var(--doc-accent);
}

/* Colonne conditions */
.inac-conditions {
  background: var(--white);
  font-size: .78rem;
}

/* Cellules données — alternance légère */
.inac-cell {
  background: #f0f6ff;
  text-align: center;
  font-size: .78rem;
}

.inac-table tbody tr:nth-child(odd) .inac-cell {
  background: #e8f4ff;
}

/* OUI / NON */
.inac-oui {
  color: #1b5e20;
  font-weight: 600;
}
.inac-non {
  color: #b71c1c;
  font-weight: 600;
}

/* Cellule vide */
.inac-empty {
  color: var(--border);
  font-size: .7rem;
}

/* ── HOVER ── */
.inac-table tbody tr:hover td {
  filter: brightness(.97);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .inac-table { font-size: .72rem; }
  .inac-table td, .inac-table th { padding: .35rem .45rem; }
}