/* Banque, comptabilité et cartes CNAM. */

/* Étapes de production d'une carte */
.card-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.card-steps li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
}
.card-steps li i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.card-steps li.done i {
  background: #9fb592;
}
.card-steps li.current i {
  background: var(--green);
}
.card-steps li.current {
  color: var(--green);
  font-weight: 600;
}
.card-steps li span {
  line-height: 1.3;
  overflow-wrap: break-word;
}

/* Suivi de la production : une colonne par étape */
.card-pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.card-pipeline button {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.card-pipeline button:hover {
  border-color: #9fb592;
}
.card-pipeline button.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #2f6c5912;
}
.card-pipeline small {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-pipeline b {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.card-pipeline span {
  font-size: 10px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .card-pipeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .card-pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 12px;
  }
}

/* Comptes bancaires, sous le tableau des opérations */
.bank-accounts-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.bank-accounts-strip span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Interopérabilité : choix des provinces d'un accès partenaire */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 14px;
  font-size: 12px;
}
.province-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}
