/* ch.594 — BANQUE : fenêtre de détail d'une transaction (deux colonnes ⊕ justificatif ⊕ barre d'actions unique).
   Charte claire, ⛔ aucune variable CSS. Grilles par CLASSES (R120 : responsive.css écrase les grilles EN LIGNE
   des modals montés sur body). Adaptations d'écran en @media uniquement. ⛔ Ne touche aucune autre fenêtre. */

.bq594-boite { background: #FFFFFF; border-radius: 16px; width: min(1000px, 96vw); max-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); box-sizing: border-box; }
.bq594-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid #E2E8F0; flex-shrink: 0; }
.bq594-x { min-width: 44px; min-height: 44px; background: none; border: none; font-size: 20px; cursor: pointer; color: #64748B; border-radius: 8px; flex-shrink: 0; }
.bq594-x:hover { background: #F1F5F9; }
.bq594-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 22px; }

.bq594-colonnes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bq594-col { min-width: 0; }
.bq594-titre-col { font-size: 11px; font-weight: 700; color: #94A3B8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }

.bq594-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid #F1F5F9; }
.bq594-kv:first-child { border-top: none; }
.bq594-k { font-size: 12px; color: #94A3B8; font-weight: 600; }
.bq594-v { font-size: 13px; color: #334155; overflow-wrap: anywhere; min-width: 0; }

.bq594-attribuer { margin-top: 14px; padding: 14px; border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC; }
.bq594-attr-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.bq594-justif { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #FFFFFF; }
.bq594-justif-num { font-size: 15px; font-weight: 800; color: #0F172A; overflow-wrap: anywhere; }
.bq594-justif-meta { font-size: 12px; color: #64748B; margin-top: 3px; overflow-wrap: anywhere; }
.bq594-vide { padding: 18px 12px; text-align: center; font-size: 13px; color: #64748B; border: 1px dashed #CBD5E1; border-radius: 12px; }
.bq594-pdf-absent { margin-top: 8px; font-size: 12px; color: #64748B; }

.bq594-btn { min-height: 40px; padding: 9px 14px; border-radius: 9px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #334155;
  font-weight: 600; font-size: 13px; cursor: pointer; box-sizing: border-box; }
.bq594-btn:hover { background: #F8FAFC; }
.bq594-voir { margin-top: 10px; border-color: #34D399; background: #ECFDF5; color: #15803D; font-weight: 700; }
.bq594-voir:hover { background: #D1FAE5; }

.bq594-resultat { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #A5F3FC; background: #ECFEFF; border-radius: 12px; }
.bq594-resultat .bq594-kv { grid-template-columns: 190px minmax(0, 1fr); padding: 6px 0; }
.bq594-res-titre { font-size: 14px; font-weight: 800; color: #0F172A; margin-bottom: 6px; overflow-wrap: anywhere; }
.bq594-res-sous { font-size: 11px; font-weight: 700; color: #0E7490; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.bq594-res-texte { font-size: 13px; color: #334155; margin-top: 6px; overflow-wrap: anywhere; }
.bq594-res-alerte { font-size: 13px; color: #92400E; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 9px; padding: 9px 11px; margin-top: 8px; overflow-wrap: anywhere; }

.bq594-actions { flex-shrink: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 14px 22px;
  border-top: 1px solid #E2E8F0; background: #F8FAFC; }
.bq594-actions:empty { display: none; }
.bq594-danger { color: #B91C1C; border-color: #FECACA; }
.bq594-danger:hover { background: #FEF2F2; }

/* ── Une colonne sous ~768 px ; boutons empilés et ≥ 44 px sur téléphone ── */
@media (max-width: 768px) {
  .bq594-colonnes { grid-template-columns: minmax(0, 1fr); }
  .bq594-tete { padding: 14px 16px; }
  .bq594-corps { padding: 14px 16px; }
  .bq594-actions { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .bq594-actions .bq594-btn { width: 100%; min-height: 44px; }
  .bq594-voir { width: 100%; min-height: 44px; }
  .bq594-confirm-pied { flex-wrap: wrap; }
  .bq594-confirm-pied .bq594-btn { min-height: 44px; }
  .bq594-menu .bq594-menu-item { min-height: 44px; }
  .bq594-attr-btns button { min-height: 44px; }   /* ch.587 — les 4 portées « Attribuer à… », cibles tactiles */
}
@media (max-width: 480px) {
  .bq594-kv, .bq594-resultat .bq594-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
