/**
 * txn-detail.css — Transaction detail view: two-column grid, evidence boxes,
 * summary panel, and signature pad area.
 * Used by TxnDetailView.js and txn-detail.html.
 */

/* ─── Kalam entry thumbnail (entries table "Photo" column) ─── */
.kalam-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  vertical-align: middle;
}

/* ─── Two-column layout ─── */
.txn-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.txn-main,
.txn-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─── Section card title variants ─── */
.sc-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-add-nominee-sm { font-size: 0.72rem; padding: 3px 10px; }

/* ─── Summary divider ─── */
.sum-divider {
  border-top: 2px solid var(--accent);
  margin-top: 8px;
  padding-top: 8px;
}
.sum-total-lbl { font-weight: 700; }
.val-interest  { color: var(--danger); }

/* ─── Evidence boxes ─── */
.sc-evidence {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.evi-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.evi-box.sig { min-height: 90px; background: #fff; }
.evi-img { width: 100%; display: block; border-radius: 10px; }
.evi-img.clickable { cursor: pointer; transition: opacity 0.15s; }
.evi-img.clickable:hover { opacity: 0.85; }
.evi-empty {
  color: var(--text3);
  font-size: 0.82rem;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.evi-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.evi-thumb.sig    { background: #fff; object-fit: contain; }
.evi-thumb.clickable { cursor: pointer; }
.evi-sig {
  height: 80px;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
}

/* ─── Signature pad ─── */
.sig-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.info-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.info-box.center { display: flex; flex-direction: column; justify-content: center; }
.ib-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
