/* LUNAS P3: transaction ledger, mobile accessibility and safe action affordances. */
.lunas-ledger-row{min-width:0;min-height:58px;}
.lunas-ledger-row>div:first-child{min-width:0;}
.lunas-ledger-row .lunas-ledger-amount{font-variant-numeric:tabular-nums;}
.lunas-ledger-row .lunas-ledger-delete{
  min-height:44px;min-width:44px;
  border-color:var(--border,#e2e8f0)!important;
  color:var(--danger,#b91c1c)!important;
  background:var(--surface,#fff)!important;
}
.lunas-ledger-row .lunas-ledger-delete:hover{
  border-color:#ef4444!important;
  background:var(--danger-bg,#fef2f2)!important;
}
.lunas-ledger-row .lunas-ledger-delete:focus-visible{
  outline:3px solid #2563eb;outline-offset:2px;
}
@media(max-width:540px){
 .lunas-ledger-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px 12px!important;
    align-items:center!important;
    padding:14px 0!important;
 }
 .lunas-ledger-row>div:first-child{grid-column:1/-1;min-width:0;}
 .lunas-ledger-row .lunas-ledger-amount{
    grid-column:1;font-size:13px;white-space:normal!important;
    overflow-wrap:anywhere;
 }
 .lunas-ledger-row .lunas-ledger-delete{grid-column:2;justify-self:end;}
}
[data-theme=dark] .lunas-ledger-row .lunas-ledger-delete,
.dark .lunas-ledger-row .lunas-ledger-delete{
  color:#fda4af!important;
  background:var(--surface,#15141f)!important;
}
