/* 🐕 小狗的家 — ledger.css */

    .balance-display { text-align: center; padding: 24px 20px; background: linear-gradient(145deg, #fffbef, #fff4d6, #ffe8b8); border-radius: var(--radius-md); margin-bottom: 16px; border: 1px solid rgba(245, 166, 35, 0.15); position: relative; overflow: hidden; }
    .balance-display::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,200,100,0.15) 0%, transparent 70%); }
    .balance-label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; }
    .balance-value { font-size: 38px; font-weight: 800; color: #e89a1c; letter-spacing: -0.02em; text-shadow: 0 2px 4px rgba(200, 140, 30, 0.12); }
    .ledger-month-stat { text-align: center; flex: 1; padding: 10px 8px; border-radius: 10px; background: white; border: 2px solid #f0e8e0; }
    .ledger-month-stat .stat-num { font-size: 18px; font-weight: bold; }
    .ledger-month-stat .stat-num.income { color: #4a9e4a; }
    .ledger-month-stat .stat-num.expense { color: #e07b39; }
    .ledger-month-stat .stat-label { font-size: 10px; color: #999; margin-top: 2px; }
    .ledger-filter { padding: 6px 12px; border: 2px solid #f0e8e0; border-radius: 20px; background: white; font-size: 12px; cursor: pointer; transition: all 0.2s; }
    .ledger-filter:hover { border-color: #e07b39; }
    .ledger-filter.active { background: #fff5eb; border-color: #e07b39; color: #e07b39; font-weight: bold; }

    .ledger-card { background: white; border-radius: 12px; padding: 12px; padding-left: 16px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid #eee; }
    .ledger-card.cat-sleep { border-left-color: #b8a9ea; }
    .ledger-card.cat-chores { border-left-color: #7ecba1; }
    .ledger-card.cat-food { border-left-color: #f5a623; }
    .ledger-card.cat-transport { border-left-color: #64b5f6; }
    .ledger-card.cat-reward { border-left-color: #ff8a9b; }
    .ledger-card.cat-summary { border-left-color: #90caf9; }
    .ledger-card.cat-other { border-left-color: #ccc; }
    .ledger-card.cat-init { border-left-color: #f5a623; }
    .ledger-header { display: flex; align-items: center; gap: 8px; }
    .ledger-icon { font-size: 18px; }
    .ledger-desc { flex: 1; font-size: 14px; }

    .amount-plus { color: #4caf50; }
    .amount-minus { color: #f44336; }

    .ledger-amount { font-weight: 600; font-size: 16px; }
    .ledger-time { font-size: 12px; color: #888; margin-top: 6px; }

  
    
    
    
    

    .btn-tiny { padding: 4px 8px; font-size: 11px; }
    .btn-small { padding: 6px 10px; font-size: 12px; }
    .empty-state.small { font-size: 13px; padding: 10px; }


    .btn-edit { background: #4a90d9; }
    .btn-delete { background: #e57373; }
    
    .modal-row { display: flex; gap: 10px; margin-bottom: 10px; }

    .modal-large { max-width: 90%; width: 600px; max-height: 80vh; overflow-y: auto; }
    .modal-input { width: 100%; padding: 10px; border: 2px solid #f0e6d3; border-radius: 8px; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; }
    .modal-input:focus { outline: none; border-color: #f5a623; }
    .modal-textarea { width: 100%; padding: 10px; border: 2px solid #f0e6d3; border-radius: 8px; font-size: 13px; margin-bottom: 10px; box-sizing: border-box; font-family: inherit; resize: vertical; }
    .modal-textarea:focus { outline: none; border-color: #f5a623; }
    .memory-content-section { margin-bottom: 15px; }
    .memory-content-title { font-size: 13px; color: #f5a623; font-weight: 600; margin-bottom: 5px; }
    .memory-content-text { font-size: 13px; color: #555; white-space: pre-wrap; background: #fafafa; padding: 10px; border-radius: 8px; max-height: 200px; overflow-y: auto; }
