/* A calm, familiar feed. Extra controls appear only when opened. */
#view-transactions .ledger-friendly{width:100%;max-width:900px;margin:0 auto;color:#142d3a;min-width:0;box-sizing:border-box}
#view-transactions .ledger-friendly *{box-sizing:border-box}
.ledger-welcome{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:6px 0 22px}
.ledger-welcome>div{min-width:0}
.ledger-welcome h1{font-size:30px;font-weight:500;line-height:1.5;letter-spacing:-.6px;color:#142d3a;margin:0}
.ledger-welcome p{font-size:15px;line-height:1.8;color:#617287;margin:6px 0 0}
.ledger-add-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
#view-transactions .ledger-friendly .ledger-add-actions .button-primary{min-height:48px;padding:11px 18px;font:inherit;font-size:14px;font-weight:500;line-height:1.7;border:1px solid #0f766e;border-radius:12px;background:#0f766e;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
#view-transactions .ledger-friendly .ledger-add-actions .button-primary:hover{background:#0b625b;border-color:#0b625b}
.ledger-add-actions .button svg{width:20px;height:20px;flex-shrink:0}
.ledger-add-income{min-height:44px;border:0;background:transparent;color:#0f766e;padding:9px 2px;font:inherit;font-size:14px;line-height:1.7;white-space:nowrap;cursor:pointer}
.ledger-overview{padding:18px 20px 20px;background:#fff;border:1px solid #e6ebf2;border-radius:18px;margin-bottom:15px;min-width:0}
.ledger-overview-caption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:17px;min-width:0}
.ledger-overview-caption>span{font-size:13px;font-weight:500;line-height:1.7;color:#536477}
.ledger-overview-caption small{font-size:12px;line-height:1.8;color:#7b8a9c;overflow-wrap:anywhere}
.ledger-simple-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ledger-simple-totals article{min-width:0}
.ledger-simple-totals article+article{border-right:1px solid #edf1f6;padding-right:20px}
.ledger-simple-totals article>span{font-size:14px;line-height:1.7;color:#617287}
.ledger-simple-totals article>strong{display:block;font-size:28px;font-weight:500;letter-spacing:-.5px;line-height:1.5;color:#142d3a;margin-top:5px;overflow-wrap:anywhere}
.ledger-simple-totals article+article>strong{color:#087f5b}
.ledger-simple-totals .currency{font-size:13px;letter-spacing:0;white-space:nowrap;color:#7b8a9c}
.ledger-options{border:1px solid #e6ebf2;border-radius:15px;background:#fff;margin:0 0 23px;min-width:0}
.ledger-options>summary{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px 17px;list-style:none;cursor:pointer;min-width:0}
.ledger-options>summary::-webkit-details-marker{display:none}
.ledger-options-icon{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:10px;background:#e6f5ef;color:#0f766e}
.ledger-options-icon svg{width:20px;height:20px}
.ledger-options-copy{display:block;flex:1;min-width:0}
.ledger-options-copy strong{display:block;font-size:14px;font-weight:500;line-height:1.7;color:#142d3a}
.ledger-options-copy small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.7;color:#7b8a9c;margin-top:2px;overflow-wrap:anywhere}
.ledger-options-mark{font-size:24px;font-weight:300;line-height:1;color:#617287;flex-shrink:0;transition:transform .15s}
.ledger-options[open] .ledger-options-mark{transform:rotate(45deg)}
.ledger-options[open]>summary{border-bottom:1px solid #edf1f6}
.ledger-options-body{padding:17px;min-width:0}
#view-transactions .ledger-friendly .ledger-search{display:grid;gap:8px;color:#536477;font-size:14px;line-height:1.7;margin:0 0 18px}
#view-transactions .ledger-friendly .ledger-search input{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;margin:0;padding:12px 14px;border:1px solid #dce4ee;border-radius:11px;background:#f8fafc;color:#142d3a;font:inherit;font-size:16px;line-height:1.5;appearance:none;-webkit-appearance:none}
#view-transactions .ledger-friendly .ledger-search input:focus{outline:none;background:#fff;border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1a}
.ledger-option-field{min-width:0;margin:17px 0 0}
.ledger-option-field>span{display:block;font-size:13px;font-weight:500;line-height:1.7;color:#536477;margin-bottom:8px}
#view-transactions .ledger-friendly .ledger-filters{display:flex;gap:6px;flex-wrap:wrap;width:100%;max-width:100%}
#view-transactions .ledger-friendly .ledger-filters button{min-height:44px;border:1px solid #e6ebf2;background:#fff;border-radius:10px;color:#617287;font:inherit;font-size:13px;line-height:1.6;padding:9px 13px;cursor:pointer}
#view-transactions .ledger-friendly .ledger-filters button[aria-pressed=true]{background:#e6f5ef;border-color:#bdded2;color:#0f766e;font-weight:500}
#view-transactions .ledger-friendly .ledger-period{display:flex;width:100%;max-width:440px;gap:4px;padding:4px;background:#f1f5f9;border-radius:11px;flex-wrap:nowrap}
#view-transactions .ledger-friendly .ledger-period button{flex:1;min-width:0;min-height:44px;padding:9px 12px;font:inherit;font-size:13px;line-height:1.6;border:0;border-radius:8px;background:transparent;color:#617287;cursor:pointer}
#view-transactions .ledger-friendly .ledger-period button[aria-pressed=true]{color:#0f766e;background:#fff;box-shadow:0 1px 5px #142d3a08;font-weight:500}
.ledger-feed{min-width:0}
#view-transactions .ledger-friendly .ledger-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 2px 15px;padding:0;border:0;min-width:0}
.ledger-results-heading>div{display:flex;align-items:baseline;gap:10px;min-width:0;flex-wrap:wrap}
.ledger-results-heading h2{font-size:19px;line-height:1.6;font-weight:500;letter-spacing:-.2px;color:#142d3a;margin:0}
.ledger-results-heading>div>span{font-size:12px;line-height:1.7;color:#7b8a9c}
.ledger-results-heading .number{font-size:12px}
.ledger-result-total{font-size:12px;color:#7b8a9c;line-height:1.8}
.ledger-result-total>strong{font-size:13px;font-weight:500;color:#142d3a;margin-right:6px}
.ledger-result-total .currency{font-size:11px;white-space:nowrap;color:#7b8a9c}
.ledger-day{margin:0 0 19px;min-width:0}
.ledger-day h3{font-size:13px;line-height:1.8;font-weight:400;color:#7b8a9c;margin:0 3px 8px}
.ledger-day-list{border:1px solid #e6ebf2;background:#fff;border-radius:16px;overflow:hidden;min-width:0}
.ledger-feed-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-width:0;min-height:80px;padding:15px 17px;margin:0;border:0;border-bottom:1px solid #edf1f6;background:#fff;color:#142d3a;text-align:right;font:inherit;cursor:pointer}
.ledger-feed-row:last-child{border-bottom:0}
.ledger-feed-row:hover{background:#f3faf7}
.ledger-feed-row:active{background:#e6f5ef}
.ledger-feed-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eef5f1;color:#0f766e;flex-shrink:0}
.ledger-feed-icon svg{width:21px;height:21px}
.ledger-feed-icon.is-income{background:#e8f6f0;color:#087f5b}
.ledger-feed-copy{display:block;min-width:0}
.ledger-feed-copy>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:500;line-height:1.65;color:#142d3a;overflow-wrap:anywhere}
.ledger-feed-copy>small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.8;color:#7b8a9c;margin-top:3px;overflow-wrap:anywhere}
.ledger-feed-amount{display:block;text-align:left;min-width:0;color:#142d3a}
.ledger-feed-amount>strong{display:flex;align-items:baseline;gap:3px;font-size:17px;line-height:1.7;font-weight:500;letter-spacing:-.25px;white-space:nowrap}
.ledger-feed-amount .currency{font-size:11px;line-height:1.6;color:#7b8a9c;white-space:nowrap;letter-spacing:0;margin:0}
.ledger-feed-amount.is-income{color:#087f5b}
.ledger-more{display:flex;flex-direction:column;align-items:center;gap:9px;margin:21px 0 10px;text-align:center}
.ledger-more p{font-size:12px;line-height:1.8;color:#7b8a9c;margin:0}
#view-transactions .ledger-friendly .ledger-more .button{font:inherit;font-size:14px;line-height:1.7;min-height:46px;min-width:170px;justify-content:center;background:#fff;color:#0f766e;border:1px solid #dce4ee;border-radius:12px;padding:10px 20px}
.ledger-feed-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:230px;padding:30px 22px;text-align:center;border:1px dashed #dce5f1;border-radius:17px;background:#fff}
.ledger-feed-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e6f5ef;color:#0f766e;margin-bottom:4px}
.ledger-feed-empty>span svg{width:24px;height:24px}
.ledger-feed-empty h3{font-size:18px;font-weight:500;line-height:1.7;color:#142d3a;margin:0}
.ledger-feed-empty p{max-width:340px;font-size:14px;line-height:1.9;color:#7b8a9c;margin:0}
#view-transactions .ledger-friendly .ledger-feed-empty .button{font-size:14px;min-height:44px;color:#0f766e;border:1px solid #dce4ee;background:#fff;margin-top:4px;border-radius:11px}
.ledger-accounting-help{padding:13px 3px;margin:16px 0 0;border:0;background:transparent;color:#7b8a9c}
.ledger-accounting-help>summary{font-size:13px;line-height:1.8;min-height:34px;color:#617287;cursor:pointer}
.ledger-accounting-help p{font-size:12px;line-height:1.9;color:#7b8a9c;margin:10px 0 0;max-width:720px}
#view-transactions .ledger-friendly :is(button,input,summary):focus-visible{outline:3px solid #0f766e55;outline-offset:3px}
#view-transactions .ledger-friendly .ledger-feed-row:focus-visible{outline-offset:-3px}
@media(max-width:760px){
  .ledger-welcome{display:block;margin:8px 0 19px}
  .ledger-welcome h1{font-size:26px;letter-spacing:-.5px}
  .ledger-welcome p{font-size:14px;line-height:1.8;margin-top:5px}
  .ledger-add-actions{gap:20px;margin-top:17px}
  #view-transactions .ledger-friendly .ledger-add-actions .button-primary{flex:1;min-width:0;min-height:48px;font-size:14px;padding:11px 14px}
  .ledger-add-income{font-size:14px;padding-inline:4px;flex-shrink:0}
  .ledger-overview{padding:16px;border-radius:16px;margin-bottom:13px}
  .ledger-overview-caption{gap:3px 10px;margin-bottom:13px;align-items:flex-start;flex-direction:column}
  .ledger-overview-caption>span{font-size:12px}
  .ledger-overview-caption small{font-size:12px;line-height:1.7}
  .ledger-simple-totals{gap:16px}
  .ledger-simple-totals article+article{padding-right:16px}
  .ledger-simple-totals article>span{font-size:13px}
  .ledger-simple-totals article>strong{font-size:25px;letter-spacing:-.4px;margin-top:5px;line-height:1.5}
  .ledger-simple-totals .currency{font-size:11px}
  .ledger-options{border-radius:14px;margin-bottom:21px}
  .ledger-options>summary{padding:13px 14px;gap:11px;min-height:74px}
  .ledger-options-body{padding:15px 14px}
  #view-transactions .ledger-friendly .ledger-search{font-size:13px;margin-bottom:15px}
  #view-transactions .ledger-friendly .ledger-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #view-transactions .ledger-friendly .ledger-filters button{font-size:12px;line-height:1.7;padding:8px 5px;white-space:normal}
  #view-transactions .ledger-friendly .ledger-period{max-width:none}
  .ledger-option-field>span{font-size:13px}
  .ledger-results-heading h2{font-size:18px}
  #view-transactions .ledger-friendly .ledger-results-heading{gap:6px;margin-bottom:14px}
  .ledger-day{margin-bottom:17px}
  .ledger-day h3{font-size:12px;margin-bottom:7px}
  .ledger-day-list{border-radius:15px}
  .ledger-feed-row{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;min-height:77px;padding:13px 14px}
  .ledger-feed-icon{width:36px;height:36px;border-radius:11px}
  .ledger-feed-icon svg{width:20px;height:20px}
  .ledger-feed-copy>strong{font-size:14px;line-height:1.65}
  .ledger-feed-copy>small{font-size:12px;line-height:1.7;margin-top:2px}
  .ledger-feed-amount>strong{font-size:16px;gap:2px;line-height:1.6}
  .ledger-feed-amount .currency{font-size:10px}
  .ledger-feed-empty{min-height:215px;padding:26px 17px}
  .ledger-feed-empty h3{font-size:18px}
  .ledger-feed-empty p{font-size:14px;line-height:1.85}
}
@media(max-width:370px){
  .ledger-overview{padding:14px}
  .ledger-simple-totals{gap:13px}
  .ledger-simple-totals article+article{padding-right:13px}
  .ledger-simple-totals article>strong{font-size:23px}
  .ledger-feed-row{grid-template-columns:32px minmax(0,1fr) auto;gap:8px;padding:12px}
  .ledger-feed-icon{width:32px;height:34px;border-radius:10px}
  .ledger-feed-icon svg{width:18px;height:18px}
  .ledger-feed-amount>strong{font-size:14px}
  .ledger-feed-amount .currency{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.ledger-options-mark{transition:none}}
