/* Annexe /tables/ — styles minimaux en complément de ../css/style.css
   (remplace les classes Bootstrap 4 de l'ancien site : container/row/col-sm,
   form-group/form-control, table table-striped table-bordered table-dark…) */

.tables-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0 0 var(--gap, 1rem);
  padding: 0.6rem 0.9rem;
  background: var(--white, #fff);
  border: 1px solid var(--line, #cfe0eb);
  border-radius: var(--radius, 10px);
  font-size: 0.9rem;
}
.tables-nav a { white-space: nowrap; }
.tables-nav .current {
  font-weight: 600;
  color: var(--marine-900, #06263f);
  text-decoration: none;
}

.tables-disclaimer {
  font-weight: 600;
  font-style: italic;
}

/* Grille "2 colonnes dès qu'il y a la place" pour les blocs plongée 1 / plongée 2,
   ou calcul / paramètres. Remplace .row > .col-sm de Bootstrap. */
.tables-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap, 1rem);
}
@media (min-width: 40rem) {
  .tables-cols.tables-cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-row {
  margin: 0 0 0.6rem;
}
.form-row label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft, #4a5d68);
  margin: 0.5rem 0 0.2rem;
}
.form-row input,
.form-row select {
  width: 100%;
  max-width: 12rem;
}

.tables-result {
  margin: 0.3rem 0;
}

/* Barres de saturation des compartiments (générées en JS, hauteur fixe empilée) */
.sat-bars {
  display: block;
  line-height: 0;
}
.sat-bars div { height: 2px; margin-bottom: 1px; }

/* Tables de résultats (remplace table-striped/table-bordered/table-dark) */
table.tables-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
}
table.tables-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--marine-800, #0b3a5c);
  padding: 0.2rem 0 0.4rem;
}
table.tables-table th,
table.tables-table td {
  border: 1px solid var(--line, #cfe0eb);
  padding: 0.3rem 0.45rem;
  text-align: center;
}
table.tables-table thead th {
  background: var(--marine-800, #0b3a5c);
  color: var(--white, #fff);
}
table.tables-table tbody tr:nth-child(even) {
  background: var(--marine-50, #f4f9fc);
}

.tables-scans {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tables-scans img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line, #cfe0eb);
  border-radius: 4px;
}

.tables-sources {
  font-size: 0.85rem;
}
.tables-sources ul { margin: 0.3rem 0; }

.tables-landing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
