/* Income Statement Plan styles */
body { font-family: sans-serif; padding: 20px; }

.plan-table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.plan-table th, .plan-table td { border: 1px solid #ccc; padding: 6px; }
.plan-table th:nth-child(n+2), .plan-table td:nth-child(n+2) { text-align: right; }
.plan-table th:first-child, .plan-table td:first-child { text-align: left; }
.plan-table th { background: #222; color: #fff; }
.plan-table .summary td { background: #000; color: #fff; font-weight: bold; }
.plan-table input[type=number] { width: 100%; box-sizing: border-box; min-height: 44px; font-size: 1rem; text-align: right; }
.fh-display { display:none; cursor:pointer; }

.isp-changed { background: #00c3db; color: #fff; }
.isp-changed .delta-dollar { font-weight: bold; }
/* ensure inputs stay readable when row color changes */
.isp-changed input[type=number] { color: #000; }

@media (max-width: 480px) {
    .plan-table thead { display: none; }
    .plan-table tr { display: block; margin-bottom: 8px; }
    .plan-table td { display: flex; justify-content: space-between; align-items: center; }
    .plan-table td::before { font-weight: bold; }
    .plan-table td:nth-child(1)::before { content: 'Description'; }
    .plan-table td:nth-child(2)::before { content: 'Current Qtr'; }
    .plan-table td:nth-child(3)::before { content: 'Planned Qtr'; }
    .plan-table td:nth-child(4)::before { content: 'Δ $'; }
    .plan-table td:nth-child(5)::before { content: 'Δ %'; }
}
