.ledger-page{--ledger-line:#dedfd4}.ledger-page .ledger-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0}.ledger-summary article{background:#f1f0e9;border-radius:14px;padding:20px}.ledger-summary strong{display:block;font-size:25px;margin-top:8px;color:#57634d}.ledger-summary article:nth-child(4) strong{color:#88708b}.ledger-summary article:nth-child(5) strong{color:#ad8054}.ledger-page .ledger-scroll{overflow:auto;margin:20px 0;border:1px solid var(--ledger-line);border-radius:12px}.ledger-page table{width:100%;border-collapse:collapse;white-space:nowrap}.ledger-page th,.ledger-page td{padding:13px 16px;border-bottom:1px solid var(--ledger-line);text-align:left}.ledger-page th{background:#eeeee5;color:#57634d;font-size:13px}.ledger-page td{font-size:14px}.ledger-page small,.ledger-note{display:block;color:#808473;font-size:13px;line-height:1.7}.ledger-badge{display:inline-block;border-radius:6px;background:#efe6d5;padding:3px 7px;font-size:12px;margin:3px}.ledger-page .ledger-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.ledger-page label,.ledger-dialog label{display:flex;flex-direction:column;gap:8px;font-size:14px}.ledger-page input:not([type=checkbox]),.ledger-page select,.ledger-dialog input:not([type=checkbox]),.ledger-dialog select{height:44px;border:1px solid #d2d3c7;border-radius:10px;background:#fdfcf9;padding:0 12px;min-width:0;width:100%;box-sizing:border-box}.ledger-page label.ledger-check,.ledger-dialog label.ledger-check{display:inline-flex;flex-direction:row;align-items:center}.ledger-check input{width:18px;height:18px}.ledger-chips{display:flex;flex-wrap:wrap;gap:8px}.ledger-chips button{height:36px;border-radius:16px}.ledger-chips button[aria-pressed=true]{background:#57634d;color:white}.ledger-dialog{width:min(620px,calc(100vw - 32px));max-height:90dvh;border:1px solid #dedfd4;border-radius:18px;padding:24px;background:#fdfcf9}.ledger-dialog::backdrop{background:#26302055}.ledger-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ledger-form .wide{grid-column:1/-1}.ledger-dialog .shared-dialog-body{padding-top:20px}.ledger-dialog footer{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.ledger-message{min-height:24px;color:#a46657;white-space:pre-wrap}.ledger-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px}.ledger-chart{background:#f5f4ed;border-radius:14px;padding:22px}.ledger-bar-row{margin:15px 0}.ledger-bar-label{display:flex;justify-content:space-between;gap:12px;font-size:13px}.ledger-bar{height:10px;border-radius:5px;min-width:2px;background:#8b9980;margin:6px 0}.ledger-bar.expense{background:#b49b7d}.ledger-file{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dedfd4;padding:12px 0}.ledger-section{margin:28px 0}.ledger-page .toolbar-row{margin-bottom:16px}.ledger-page a{color:#57634d}.ledger-page .ledger-empty{padding:28px;color:#808473;text-align:center}@media(max-width:700px){.ledger-page .ledger-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ledger-summary article{padding:15px}.ledger-summary strong{font-size:22px}.ledger-page .ledger-filters,.ledger-charts,.ledger-form{grid-template-columns:1fr}.ledger-form .wide{grid-column:auto}.ledger-dialog{padding:18px}.ledger-page .toolbar-row>button{flex:1 1 100%}.ledger-page .toolbar-row>label{flex:1 1 100%}}
.ledger-page .ledger-chips button.ui-button{height:36px!important;min-height:36px!important;border-radius:16px!important;font-size:14px!important}

.ledger-subject-default{color:#929888}.ledger-page td select{min-width:220px;max-width:300px}.ledger-dialog .ledger-scroll{overflow:auto;max-width:100%}.ledger-dialog table{border-collapse:collapse;min-width:760px;width:100%}.ledger-dialog th,.ledger-dialog td{text-align:left;padding:12px;border-bottom:1px solid #dedfd4;font-size:14px}.ledger-dialog td{white-space:normal;min-width:80px}.ledger-dialog:has([aria-label="搜尋科目、說明或日常用語"]){width:min(1120px,calc(100vw - 32px))}
.ledger-page .ledger-charts{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);align-items:start}.ledger-pie{display:block;width:min(100%,290px);margin:16px auto}.ledger-pie-legend{max-height:320px;overflow:auto}.ledger-pie-key{display:grid;grid-template-columns:10px minmax(0,1fr) auto 50px;align-items:center;gap:8px;padding:8px 0;font-size:13px}.ledger-pie-key i{width:9px;height:9px;border-radius:50%}.ledger-pie-key strong{font-weight:500}.ledger-pie-key small{text-align:right}.ledger-column-wrap{overflow-x:auto;margin:28px 0 14px}.ledger-column-wrap svg{width:100%;min-width:620px;display:block}.ledger-chart details{margin-top:18px;font-size:13px}.ledger-chart svg [tabindex]:focus{outline:2px solid #57634d;outline-offset:3px}@media(max-width:900px){.ledger-page .ledger-charts{grid-template-columns:minmax(0,1fr)}}
