.metric-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 5px solid #007bff;
}
.metric-card:has(div.negative){
    border-left-color: #dc3545;
}
.metric-card:has(div.positive){
    border-left-color: #28a745;
}
.metric-card.assets {
    border-left-color: #28a745;
}
.metric-card.liabilities {
    border-left-color: #dc3545;
}
.metric-value {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}
.metric-label {
    color: #2a2e31;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.positive { color: #28a745; }
.negative { color: #dc3545; }
.payoff-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin: 10px 0;
}
.payoff-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #fd7e14 50%, #28a745 100%);
    border-radius: 15px;
    transition: width 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
}
.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}
.account-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
}
.account-item.asset {
    border-left-color: #28a745;
}
.account-item.liability {
    border-left-color: #dc3545;
}
.expense-item {
    background: #fff5f5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #dc3545;
}
.income-item {
    background: #f0fff4;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 3px solid #28a745;
}

.balance-line {
    stroke: #007bff;
    stroke-width: 3;
    fill: none;
}
.expense-dot {
    fill: #dc3545;
}
.income-dot {
    fill: #28a745;
}
.axis-text {
    font-size: 12px;
    fill: #6c757d;
}
.grid-line {
    stroke: #e9ecef;
    stroke-width: 1;
}

h4 {
    margin-bottom:50px;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
}

/** Debt Service **/

        .debt-service-item {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            background: #f8f9fa;
        }
        .stats-card {
            background: #e9ecef;
            border-radius: 8px;
            padding: 15px;
            margin: 10px 0;
        }
        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }
        .ratio-good {
            color: #28a745;
            font-weight: bold;
        }
        .ratio-warning {
            color: #ffc107;
            font-weight: bold;
        }
        .ratio-danger {
            color: #dc3545;
            font-weight: bold;
        }
        .ratio-display {
            font-size: 2rem;
            font-weight: bold;
            text-align: center;
            margin: 10px 0;
        }
        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #eee;
        }
        .breakdown-item:last-child {
            border-bottom: none;
        }