/* v1.4.51.41 — saved receipt details */
.lm-budget-description-link{padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}.lm-budget-description-link:hover,.lm-budget-description-link:focus-visible{text-decoration:underline;text-underline-offset:3px}.lm-budget-description-link .bi{font-size:12px;color:var(--bs-secondary-color,#9aabb9)}.lm-budget-receipt-dialog{max-width:min(560px,94vw);width:100%;max-height:min(82vh,740px);display:flex;flex-direction:column}.lm-budget-receipt-total{font-size:22px;font-weight:700;margin:12px 0}.lm-budget-receipt-label{font-size:13px;color:var(--bs-secondary-color,#9aabb9)}.lm-budget-receipt-items{min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:4px 0 14px}.lm-budget-receipt-items>div{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid var(--budget-border,#35414b);font-size:13px}.lm-budget-receipt-items span{min-width:0;overflow-wrap:anywhere}.lm-budget-receipt-items small{opacity:.75}.lm-budget-receipt-items strong{white-space:nowrap}.lm-budget-receipt-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:12px}

/* v1.4.51.42: receipt attachment and safe merchant matching */
.lm-budget-match-box{padding:10px 12px;margin:8px 0;border:1px solid var(--lm-border,#465463);border-radius:10px;background:rgba(76,173,155,.06)}
.lm-budget-match-box label{display:block;font-size:13px;font-weight:600}.lm-budget-match-box select{display:block;width:100%;padding:8px;margin:6px 0;background:var(--bs-body-bg,#20252b);color:inherit;border:1px solid #687582;border-radius:7px}
.lm-budget-match-box small,.lm-budget-match-note{display:block;color:#9fb6c1;font-size:12px;margin:5px 0}
.lm-budget-edit-receipt{display:block;font-size:12px;margin-top:8px}.lm-budget-edit-receipt input{width:100%;max-width:230px;font-size:12px}.lm-budget-attach-note{display:block;color:#5fcbb1}

/* v1.4.51.43: merchant purchases open the shared receipt dialog, never inline-expand. */
.lm-budget-merchant-purchase-row{flex-wrap:nowrap;align-items:center}
.lm-budget-merchant-purchase-row>.lm-budget-purchase-main{min-width:0}
.lm-budget-merchant-open{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.lm-budget-merchant-open strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lm-budget-merchant-open .bi{flex:none;font-size:11px;opacity:.65}
.lm-budget-merchant-receipt-btn{flex:none;border:0;background:transparent;padding:5px 2px;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px;font-size:12px;white-space:nowrap}
.lm-budget-merchant-receipt-btn:hover,.lm-budget-merchant-receipt-btn:focus-visible{color:var(--bs-info,#69bfff)}
@media(max-width:440px){.lm-budget-merchant-purchase-row{gap:6px}.lm-budget-merchant-receipt-btn{font-size:11px}}

/* v1.7.9 — category and merchant lists scroll inside the fixed-height widget.
   Earlier receipt-detail styles overrode advisor.css and made the entire card grow. */
.lm-budget-category-card:has(.lm-budget-category-layout){height:345px;min-height:0;overflow:hidden}
.lm-budget-category-card .lm-budget-category-layout{flex:1 1 auto;min-height:0;overflow:hidden}
.lm-budget-category-card .lm-budget-category-layout .lm-budget-category-list{flex:1 1 auto;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:5px;scrollbar-gutter:stable}
.lm-budget-category-card .lm-budget-category-layout .lm-budget-category-row{margin:1px 0;padding:5px 4px;min-height:30px;line-height:18px}
@media(max-width:600px){.lm-budget-category-card:has(.lm-budget-category-layout){height:360px}}


