/*
 * Kapela — Style : registre des transactions
 * Auteur : Jacks Ngalangala
 */
.tx-plus {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.tx-table td {
  vertical-align: top;
}
.tx-table td:first-child,
.tx-table td:nth-child(2) {
  white-space: nowrap;
}
.tx-table .badge.bad {
  min-width: 18px;
  justify-content: center;
}
@media (max-width: 760px) {
  .tx-table .tx-opt {
    display: none;
  }
}

/* Fiche d'une transaction : fenêtre latérale */
.tx-voile {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(26, 23, 20, 0.38);
  display: flex;
  justify-content: flex-end;
}
.tx-fiche {
  width: min(500px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--surf);
  box-shadow: var(--shadow);
  padding: 20px 22px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tx-montant {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tx-montant .disp {
  font-size: 40px;
  line-height: 1;
}
.tx-titre {
  margin: 8px 0 0;
  font-size: 15px;
}
.tx-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--r-card);
  font-size: 14px;
}
.tx-dl dt {
  color: var(--muted);
}
.tx-dl dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.tx-histoire {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tx-histoire li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tx-histoire li::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--surf);
}
.tx-histoire li.succeeded::before {
  background: var(--ok);
}
.tx-histoire li.failed::before,
.tx-histoire li.abandoned::before {
  background: var(--bad);
}
.tx-histoire li.requested::before,
.tx-histoire li.notified::before {
  background: var(--acc);
}
.tx-note {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tx-note.open {
  border-color: var(--bad);
  background: var(--bad-bg);
}
.tx-note p {
  margin: 0;
}
.tx-fiche textarea {
  min-height: 80px;
  padding: 12px;
}
