export const PAYROLL_DETAIL_APP = {
  id: 'payroll-detail',
  name: 'Payroll Detail View',
  description: 'Detailed view of a specific payroll run with employee breakdown',
  html: `<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>Payroll Details</title>
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.header { background: white; padding: 24px; border-radius: 8px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.summary-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.employee-table { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px; border-bottom: 2px solid #eee; color: #666; font-size: 14px; }
td { padding: 12px; border-bottom: 1px solid #eee; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function PayrollDetail() {
  const employees = [
    { name: 'Sarah Johnson', gross: '$5,200', taxes: '$1,248', net: '$3,952' },
    { name: 'Michael Chen', gross: '$4,800', taxes: '$1,152', net: '$3,648' },
    { name: 'Emily Rodriguez', gross: '$5,500', taxes: '$1,320', net: '$4,180' },
  ];
  return (<div className="container"><div className="header"><h1>Payroll: Dec 16 - Dec 31, 2024</h1><p>Check Date: Jan 5, 2025</p></div>
  <div className="summary"><div className="summary-card"><h3>Total Gross Pay</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>$156,780</div></div>
  <div className="summary-card"><h3>Total Taxes</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>$37,627</div></div>
  <div className="summary-card"><h3>Total Net Pay</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>$119,153</div></div></div>
  <div className="employee-table"><h2>Employee Breakdown</h2><table><thead><tr><th>Employee</th><th>Gross Pay</th><th>Taxes & Deductions</th><th>Net Pay</th></tr></thead>
  <tbody>{employees.map((emp, i) => (<tr key={i}><td>{emp.name}</td><td>{emp.gross}</td><td>{emp.taxes}</td><td style={{ fontWeight: 600 }}>{emp.net}</td></tr>))}</tbody></table></div></div>);
}
ReactDOM.render(<PayrollDetail />, document.getElementById('root'));
</script></body></html>`,
};
