/**
 * Calculator Results Styling - Div-based layout
 * This file provides styling for calculators using div-based result displays
 */

/* Results container */
#calculator-results {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 30px 0;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#calculator-results.highlight-results {
    background-color: #f5f9ff;
    border-color: #d0e0ff;
}

/* Section header styling */
.result-section-header {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 700;
    padding: 10px 15px;
    margin: 15px 0 5px 0;
    border-radius: 5px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
}

/* Row styling */
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Label column */
.result-label {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    color: #333;
}

/* Value column */
.result-value {
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    color: #111940;
    min-width: 120px;
}

/* Negative values */
.result-value.negative {
    color: #d32f2f;
}

/* Subtotal row */
.result-row.subtotal-row {
    background-color: #f9f9f9;
    font-weight: 600;
    border-top: 1px dotted #ddd;
    border-bottom: 1px dotted #ddd;
}

/* Total row */
.result-row.total-row {
    background-color: #f1f5f9;
    font-weight: 700;
    border-top: 1px solid #d5d5d5;
    border-bottom: 1px solid #d5d5d5;
    font-size: 1.05rem;
}

/* Highlighted row */
.result-row.highlight {
    background-color: #f9f5e9;
    font-weight: 700;
    color: #111940;
    font-size: 1.1rem;
}

/* Spacer between sections */
.result-spacer {
    height: 15px;
}

/* Results summary styling */
.results-summary {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.results-summary h4 {
    color: #111940;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Explanation styling */
.result-explanation {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .result-row {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .result-value {
        text-align: left;
        margin-top: 5px;
    }
}