/* 商人进销存账本样式 */
.ledger-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}
.header-stats {
    background: var(--bg-surface);
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(212, 168, 83, 0.1);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-display);
}
.stat-value.positive { color: #fcc200; }
.stat-value.negative { color: #ff4d4f; }

.ledger-actions {
    margin-bottom: 20px;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
}
.ledger-table th, .ledger-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ledger-table th {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}
.badge-info { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.badge-success { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

.ledger-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.ledger-modal {
    background: var(--bg-body);
    width: 500px;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-gold);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.btn-text.danger { color: #ff4d4f; }
