.ledger-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #e8f3f2;
  border: 1px solid #c8e2df;
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 14px;
}
.ledger-entry strong, .ledger-entry span { display: block; }
.ledger-entry span { font-size: 13px; color: #56706e; margin-top: 3px; }
.link-back { border: 0; background: transparent; color: #176f67; font: inherit; font-weight: 700; padding: 4px 0 12px; cursor: pointer; }
.ledger-filter { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; }
.ledger-filter .field { margin: 0; }
.ledger-filter .btn { height: 46px; }
.privacy-note { font-size: 13px; color: #536d69; background: #edf7f5; border-radius: 10px; padding: 10px 12px; }
.ledger-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat.alert b, .danger-text { color: #bd3e32; }
.stat.warn b { color: #b06a00; }
.auto-review { border-left: 5px solid #15796e; }
.auto-review p { font-size: 16px; line-height: 1.8; margin: 8px 0 12px; }
.reason-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reason-row span { display: flex; align-items: center; gap: 10px; }
.reason-row span b { width: 25px; height: 25px; border-radius: 50%; background: #fff0ed; color: #b53c2e; display: grid; place-items: center; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e3e8ed; border-radius: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: center; padding: 12px 10px; border-bottom: 1px solid #e8edf1; font-size: 14px; }
th { background: #f5f8fa; color: #526174; }
tbody tr:last-child td { border-bottom: 0; }
.completed-details { background: #fff; border: 1px solid #e3e8ed; border-radius: 15px; padding: 15px; }
.completed-details summary { font-weight: 700; cursor: pointer; }
.completed-details[open] summary { margin-bottom: 12px; }
[hidden] { display: none !important; }
@media (max-width: 660px) {
  .ledger-filter { grid-template-columns: 1fr 1fr; }
  .ledger-filter .btn { grid-column: 1 / -1; }
  .ledger-stats { grid-template-columns: 1fr 1fr; }
  .ledger-entry { align-items: flex-start; }
  .ledger-entry .btn { white-space: nowrap; }
}
@media (max-width: 420px) {
  .ledger-filter { grid-template-columns: 1fr; }
  .ledger-filter .btn { grid-column: auto; }
  .ledger-entry { display: block; }
  .ledger-entry .btn { margin-top: 10px; width: 100%; }
}
