.ledger-panel{border:1px solid var(--border);background:var(--background);border-radius:12px;margin-bottom:24px;padding:20px}.ledger-heading,.ledger-toolbar,.ledger-navigation{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.ledger-heading h3{font-size:17px;font-weight:600}.ledger-toolbar{margin:16px 0}.ledger-toolbar-actions{align-items:center;gap:8px;display:flex}.ledger-period{background:var(--muted);border-radius:8px;gap:3px;padding:3px;display:flex}.ledger-navigation{gap:4px}.ledger-navigation strong{text-align:center;min-width:124px;font-size:14px}.ledger-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 0 18px;display:grid}.ledger-totals dt{color:var(--muted-foreground);margin-bottom:3px;font-size:12px}.ledger-totals dd{overflow-wrap:anywhere;font-size:17px;font-weight:600}.ledger-income{color:var(--color-journal-income,#16805d)}.ledger-expense{color:var(--color-journal-expense,#ca4d46)}.dark .ledger-income{color:#79d9b5}.dark .ledger-expense{color:#f49b97}.ledger-calendar-frame{border:1px solid var(--border);border-radius:8px;min-width:0;overflow:clip}.ledger-swipe{touch-action:pan-y pinch-zoom}.ledger-calendar{--ledger-day-height:110px;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;display:grid}.ledger-calendar-loading{border-top:1px solid var(--border);color:var(--muted-foreground);grid-column:1/-1;justify-content:center;align-items:center;gap:8px;font-size:13px;display:flex}.ledger-weekday{text-align:center;background:var(--muted);padding:9px 8px;font-size:12px}.ledger-weekend{color:var(--muted-foreground)}.ledger-day{min-height:var(--ledger-day-height);border-top:1px solid var(--border);border-right:1px solid var(--border);background:var(--background);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:8px;display:flex}.ledger-day:nth-child(7n){border-right:none}.ledger-day:hover{background:var(--accent)}.ledger-day:focus-visible{outline:2px solid var(--ring);outline-offset:-3px}.ledger-day-empty{background:var(--muted);cursor:default}.ledger-day-today .ledger-day-number{color:var(--primary);font-weight:700}.ledger-day-selected{box-shadow:inset 0 0 0 2px var(--primary);background:var(--accent)}.ledger-day-number{flex-wrap:wrap;align-items:center;gap:5px;max-width:100%;font-size:13px;display:flex}.ledger-today-label{font-size:10px}.ledger-day-amount{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;max-width:100%;font-size:11px;font-weight:500}.ledger-day-count{overflow-wrap:anywhere;max-width:100%;color:var(--muted-foreground);margin-top:auto;font-size:10px}.ledger-note{color:var(--muted-foreground);font-size:12px;line-height:1.6}.ledger-panel>.ledger-note{margin-top:10px}.ledger-selected{background:var(--muted);border-radius:8px;margin-top:16px;padding:16px}.ledger-selected .ledger-totals{padding-bottom:0}.ledger-selected strong{font-size:14px}.ledger-day-dialog[data-slot=dialog-content]{flex-direction:column;gap:0;width:min(480px,100% - 24px);max-height:calc(100dvh - 32px);padding:18px 20px 16px;display:flex;overflow:hidden}.ledger-day-dialog-header,.ledger-day-dialog-controls,.ledger-day-dialog-list-heading,.ledger-day-dialog-footer,.ledger-day-pagination,.ledger-day-eyebrow{align-items:center;gap:8px;display:flex}.ledger-day-dialog-header,.ledger-day-dialog-list-heading,.ledger-day-dialog-footer{justify-content:space-between}.ledger-day-dialog-header{align-items:flex-start}.ledger-day-eyebrow{gap:5px;font-size:12px}.ledger-day-dialog [data-slot=dialog-title]{letter-spacing:-.02em;margin-top:4px;font-size:22px;line-height:1.3}.ledger-day-dialog-controls{gap:2px}.ledger-day-dialog-controls button:not([data-slot=popup-close]){width:34px;height:36px}.ledger-day-dialog .ledger-day-totals{background:var(--muted);border-radius:9px;flex:none;gap:0;margin:14px 0;padding:11px 2px}.ledger-day-totals>div{padding:0 10px}.ledger-day-totals>div+div{border-left:1px solid var(--border)}.ledger-day-dialog-body{overscroll-behavior:contain;min-width:0;min-height:0;overflow-y:auto}.ledger-day-dialog-list-heading h3{font-size:14px;font-weight:650}.ledger-day-dialog-list-heading h3 span{color:var(--primary);margin-left:4px;font-size:12px}.ledger-day-entry{border-bottom:1px solid var(--border);overflow-wrap:anywhere;grid-template-columns:32px minmax(0,1fr) minmax(0,auto);align-items:center;gap:9px;padding:10px 0;font-size:14px;display:grid}.ledger-day-entry[data-saved]{background:var(--accent)}.ledger-day-entry[href]:hover{background:var(--muted)}.ledger-day-entry:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.ledger-day-entry-icon{background:var(--muted);border-radius:8px;place-items:center;width:32px;height:32px;display:grid}.ledger-day-memo{white-space:pre-line;font-weight:600}.ledger-day-entry-value{text-align:right;font-variant-numeric:tabular-nums;max-width:8rem}.ledger-day-pagination{color:var(--muted-foreground);justify-content:center;padding:10px 0 0;font-size:12px}.ledger-day-dialog-footer{padding-top:12px}.ledger-day-dialog-footer p{color:var(--primary);font-size:12px}.ledger-day-state{border-bottom:1px solid var(--border);color:var(--muted-foreground);justify-items:center;gap:8px;padding:28px 0;font-size:14px;display:grid}@media (width<=520px){.ledger-day-dialog[data-slot=dialog-content]{width:100%;max-width:100%;max-height:calc(100dvh - 20px);padding:14px 12px max(14px, env(safe-area-inset-bottom));border-radius:14px 14px 0 0;top:auto;bottom:0;left:0;translate:none}.ledger-day-dialog [data-slot=dialog-title]{font-size:19px}.ledger-day-dialog .ledger-day-totals dd{font-size:14px}.ledger-day-totals>div{padding-inline:6px}}@media (pointer:coarse){.ledger-day-dialog-controls button:not([data-slot=popup-close]){width:44px;height:44px}}.ledger-error{color:var(--destructive);justify-items:start;gap:8px;font-size:13px;display:grid}.ledger-manager{max-height:calc(100dvh - 40px);overflow-y:auto}.ledger-manager-tabs{flex-wrap:wrap;gap:8px;display:flex}.ledger-manager-form fieldset{flex-direction:column;gap:12px;display:flex}.ledger-label{flex-direction:column;gap:6px;font-size:13px;font-weight:500;display:flex}.ledger-label [data-slot=native-select-wrapper]{width:100%}.ledger-input{border:1px solid var(--input);background:0 0;border-radius:6px;width:100%;padding:8px 12px;font-size:14px}.ledger-input:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.ledger-form-actions{gap:8px;display:grid}.ledger-options-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.ledger-options-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.ledger-options-list li>div:first-child{flex-direction:column;gap:4px;min-width:0;display:flex}.ledger-options-list strong{overflow-wrap:anywhere;font-size:13px;font-weight:500}.ledger-options-list span{color:var(--muted-foreground);font-size:11px}.ledger-option-inactive strong{color:var(--muted-foreground)}.ledger-option-actions{flex-shrink:0;gap:2px;display:flex}@media (width<=640px){.ledger-panel{padding:14px}.ledger-navigation{justify-content:center;width:100%}.ledger-totals{gap:8px}.ledger-totals dd{font-size:14px}.ledger-weekday{padding:8px 2px}.ledger-calendar{--ledger-day-height:88px}.ledger-day{gap:3px;padding:6px 3px}.ledger-day-number{gap:2px;font-size:12px;line-height:1.4}.ledger-today-label{font-size:9px}.ledger-day-amount,.ledger-day-count{font-size:10px;line-height:1.4}.ledger-day-count-label{display:none}.ledger-selected{padding:12px}.ledger-options-list li{flex-wrap:wrap}}.ledger-batch-section{margin-bottom:24px}.ledger-batch-toggle{white-space:normal;width:100%;min-width:0;height:auto;min-height:44px;padding:10px 12px}.ledger-batch-toggle>span{text-align:left;flex:1;min-width:0}.ledger-batch-anchor{outline:none}.ledger-history-scroll{border:1px solid var(--border);border-radius:8px;margin-top:20px;position:relative;overflow-x:auto}.ledger-history-scroll:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.ledger-history-anchor,.ledger-history tr{scroll-margin-top:24px}.ledger-history-anchor{outline:none}.ledger-history-saved{background:color-mix(in srgb, var(--primary) 8%, var(--background))}.ledger-history-row{position:relative}.ledger-history-row:has(.ledger-history-view[href]):hover{background:var(--muted)}.ledger-history tr:focus{outline:2px solid var(--ring);outline-offset:-2px}.ledger-history{border-collapse:collapse;text-align:left;width:100%;min-width:860px;font-size:13px}.ledger-history th{background:var(--muted);color:var(--muted-foreground);white-space:nowrap;padding:11px 12px;font-size:12px;font-weight:500}.ledger-history td{border-top:1px solid var(--border);vertical-align:middle;padding:12px}.ledger-history td>span:not(.ledger-income,.ledger-expense,.ledger-history-status),.ledger-history time span{color:var(--muted-foreground);margin-top:4px;font-size:11px;display:block}.ledger-history time{white-space:nowrap}.ledger-history-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}.ledger-history-memo{width:30%;min-width:160px}.ledger-history-view[href]:after{z-index:1;content:"";cursor:pointer;position:absolute;inset:0}.ledger-history-view:focus-visible{outline:none}.ledger-history-view:focus-visible:after{outline:2px solid var(--ring);outline-offset:-2px}.ledger-history-excerpt{-webkit-line-clamp:2;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.ledger-history-status,.ledger-history-photo{white-space:nowrap;align-items:center;gap:4px;font-size:11px;display:flex}.ledger-history-photo{color:var(--muted-foreground);margin-top:5px}.ledger-history-actions{gap:2px;display:flex}.ledger-history-actions,.ledger-history-photo{z-index:2;position:relative}
