/* =============================================
   SALARY CALCULATOR — salary.css
   Tool-specific styles only.
   Common styles are in tool.css
   ============================================= */
.payment-calc { width: 100%; }

/* Summary text */
.payment-summary-text {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.6;
    padding: 8px 12px;
    background: var(--light);
    border-radius: 6px;
    border-left: 3px solid var(--teal);
}

/* Donut chart layout */
.loan-chart-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.loan-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--text2);
}
.loan-chart-legend div { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* Breakdown section */
.payment-amort-wrap {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.payment-amort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}
.payment-amort-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

/* Breakdown grid: full width (no line chart for salary) */
.payment-amort-grid {
    display: grid;
    grid-template-columns: 1fr;
}

/* CSV button row */
.payment-amort-actions {
    padding: 12px 18px;
    background: var(--light);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

/* Section header rows inside breakdown table */
.mort-amort-table tbody tr td[colspan="3"] {
    background: #f8fafc;
    font-size: 12px;
    text-align: left !important;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0 !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

/* Net in-hand row highlight */
.mort-amort-table tbody tr[style*="color: rgb(0, 201, 167)"] td {
    background: #f0fdf9;
    border-color: #b2f0e3 !important;
}
