/* Paycheck Calculator Specific Styles */

/* Deductions Grid */
.deductions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.deduction-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.deduction-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* Results Breakdown */
.results-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.results-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-results-border);
}

.results-row:last-child {
    border-bottom: none;
}

.results-row .result-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.results-row .results-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-results-text);
}

.results-row .results-value.deduction {
    color: #dc2626;
}

.results-row .results-value.deduction::before {
    content: "-";
}

/* Gross Pay Row */
.gross-row {
    background: rgba(0, 48, 73, 0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.gross-row .result-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-results-text);
}

.gross-row .results-value {
    font-size: 18px;
    font-weight: 700;
}

/* Total Deductions Row */
.total-deductions {
    background: rgba(220, 38, 38, 0.05);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    border-bottom: none;
}

.total-deductions .result-label {
    font-weight: 600;
    color: var(--color-text-primary);
}

.total-deductions .results-value {
    font-size: 17px;
    font-weight: 700;
}

/* Net Pay Row */
.net-row {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.net-row .result-label {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.net-row .results-value.highlight {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.net-row .results-value.highlight::before {
    content: none;
}

/* Results Section Styling */
.results-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-results-border);
}

.results-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.results-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-results-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Grid for Annual Summary */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.results-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(0, 48, 73, 0.03);
    border-radius: var(--radius-sm);
}

.results-item .result-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.results-item .results-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-results-text);
}

/* Responsive Styles */
@media (min-width: 480px) {
    .deductions-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .net-row .results-value.highlight {
        font-size: 20px;
    }

    .gross-row .results-value {
        font-size: 16px;
    }
}
