/* ch.619 — BANQUE : liste en TUILES FINES (motif ch.588/592 des Factures et ch.587 des Dépenses), liste des comptes avec LOGO.
   Grille FIXE commune aux titres et aux tuiles ; seul le libellé est flexible. Charte claire, ⛔ aucune variable CSS, ⛔ aucune grille en ligne (R120).
   Adaptations d'écran en @media : bureau (une ligne) · ≤ 1100 px (deux lignes) · ≤ 600 px (trois lignes, cibles de 44 px). */

/* ── Titres de colonnes ⊕ tuiles : MÊME grille ── */
.bq619-entetes, .bq619-tuile { display: grid; grid-template-columns: 30px 84px 150px minmax(0, 1fr) 190px 112px 130px 36px; column-gap: 12px; align-items: center; }
/* marges des titres = marge de la liste (8) ⊕ bordure de la tuile (4 à gauche, 1 à droite) ⊕ son rembourrage (10 / 12) ⇒ colonnes ALIGNÉES */
.bq619-entetes { position: sticky; top: 0; z-index: 1; padding: 10px 21px 8px 22px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0;
  font-size: 10px; font-weight: 700; color: #64748B; text-transform: uppercase; letter-spacing: .04em; }
.bq619-droite { text-align: right; }
.bq619-liste { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; }
.bq619-tuile { min-height: 56px; box-sizing: border-box; padding: 8px 12px 8px 10px; background: #FFFFFF; border: 1px solid #E2E8F0; border-left-width: 4px;
  border-radius: 12px; cursor: pointer; font-size: 13px; color: #334155; transition: background .15s, box-shadow .15s; }
.bq619-tuile:hover { background: #F8FAFC; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); }
.bq619-tuile:focus-visible { outline: 2px solid #22D3EE; outline-offset: 1px; }
.bq619-tuile > div { min-width: 0; }

/* ── Cellules ── */
.bq619-banque { display: flex; align-items: center; justify-content: center; }
.bq619-logo-img { display: block; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.bq619-logo-vide { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #64748B; flex-shrink: 0; }
.bq619-date { font-size: 12px; color: #64748B; white-space: nowrap; }
.bq619-moyen-carte { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.bq619-carte-img { display: block; width: 34px; height: auto; border-radius: 3px; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); }
.bq619-qui { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.bq619-point { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.bq619-prenom { font-size: 12px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq619-moyen-compte { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #475569; min-width: 0; }
.bq619-icone-compte { display: inline-flex; width: 20px; height: 20px; color: #0E7490; flex-shrink: 0; }
.bq619-libelle-txt { font-weight: 600; color: #1E293B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq619-contrepartie { font-size: 11px; color: #94A3B8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq619-rattache { font-size: 12px; color: #334155; }
.bq619-rattache-txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq619-vide { color: #CBD5E1; }
.bq619-montant { text-align: right; font-weight: 700; white-space: nowrap; }
.bq619-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; }
.bq619-actions { display: flex; justify-content: center; }
.bq619-actions .bq-menu { width: 32px; height: 32px; border: none; background: none; color: #64748B; font-size: 16px; line-height: 1; cursor: pointer; border-radius: 8px; }
.bq619-actions .bq-menu:hover { background: #F1F5F9; }

/* ── Liste des comptes avec logo (bouton ⊕ menu) ── */
.bq619-comptes { position: relative; }
.bq619-comptes-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; min-height: 36px; padding: 6px 12px; border: 1px solid #CBD5E1;
  border-radius: 8px; background: #FFFFFF; color: #334155; font-size: 13px; cursor: pointer; font-family: inherit; }
.bq619-comptes-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bq619-comptes-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 240px; max-width: 92vw; padding: 6px; background: #FFFFFF;
  border: 1px solid #E2E8F0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .16); display: flex; flex-direction: column; gap: 2px; }
.bq619-comptes-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: none; border-radius: 8px; background: none;
  color: #334155; font-size: 13px; text-align: left; cursor: pointer; font-family: inherit; }
.bq619-comptes-opt:hover { background: #F1F5F9; }
.bq619-comptes-opt.bq619-sel { background: #ECFDF5; font-weight: 700; color: #0F172A; }

/* ── Réglages ⚙️ › Comptes ── */
.bq619-compte-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid #F1F5F9; }
.bq619-compte-tech { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 0; font-size: 12px; color: #64748B; }
.bq619-compte-tech > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bq619-compte-nom { flex: 1 1 180px; min-width: 0; padding: 7px 10px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 13px; }
.bq619-compte-logo { flex: 0 1 170px; min-width: 0; padding: 7px 10px; border: 1px solid #CBD5E1; border-radius: 8px; font-size: 13px; background: #FFFFFF; }

/* ── ≤ 1100 px : deux lignes ── */
@media (max-width: 1100px) {
  .bq619-entetes { display: none; }
  .bq619-tuile { grid-template-columns: 30px minmax(0, 1fr) 150px 112px 44px; row-gap: 4px;
    grid-template-areas: "banque libelle moyen montant actions" "banque rattache date etat actions"; }
  .bq619-banque { grid-area: banque; } .bq619-libelle { grid-area: libelle; } .bq619-moyen { grid-area: moyen; } .bq619-montant { grid-area: montant; }
  .bq619-actions { grid-area: actions; } .bq619-rattache { grid-area: rattache; } .bq619-date { grid-area: date; } .bq619-etat { grid-area: etat; justify-content: flex-end; }
}
/* ── ≤ 600 px : trois lignes, cibles tactiles de 44 px ── */
@media (max-width: 600px) {
  .bq619-liste { padding: 6px 4px 10px; }
  .bq619-tuile { grid-template-columns: 28px minmax(0, 1fr) auto 44px; column-gap: 8px; padding: 8px 6px 8px 8px;
    grid-template-areas: "banque libelle montant actions" "banque moyen etat etat" "banque rattache date date"; }
  .bq619-date { text-align: right; }
  .bq619-actions .bq-menu { width: 44px; height: 44px; }
}
/* ── ≤ 1024 px (tactile) : la liste des comptes à 44 px, comme le <select> qu'elle remplace (responsive.css:92) ── */
@media (max-width: 1024px) {
  .bq619-comptes-btn { max-width: 42vw; min-height: 44px; }
  .bq619-actions .bq-menu { width: 44px; height: 44px; }
}
