<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>R2 Controlled Stream Label</title>
    <style>
        @page { size: 8.5in 11in; margin: 0.5in; }
        body { font-family: Arial, sans-serif; font-size: 12pt; }
        .label { border: 3px solid #000; padding: 20px; max-width: 7in; margin: 0 auto; }
        .title { font-size: 24pt; font-weight: bold; text-align: center; margin-bottom: 20px; }
        .section { margin: 15px 0; }
        .field { margin: 10px 0; }
        .field-label { font-weight: bold; display: inline-block; width: 200px; }
        .field-value { border-bottom: 1px solid #000; display: inline-block; min-width: 200px; padding: 3px 10px; }
        .checkbox-group { margin: 15px 0; }
        .checkbox-row { margin: 8px 0; }
        .checkbox { display: inline-block; width: 18px; height: 18px; border: 2px solid #000; margin-right: 8px; vertical-align: middle; }
        .checked { background: #000; }
        .weight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 20px 0; }
        .weight-field { text-align: center; }
        .weight-label { font-weight: bold; margin-bottom: 5px; }
        .weight-value { border: 2px solid #000; padding: 10px; font-size: 14pt; min-height: 30px; }
        .footer { margin-top: 30px; font-size: 9pt; text-align: center; border-top: 1px solid #000; padding-top: 10px; }
    </style>
</head>
<body>
    <div class="label">
        <div class="title">R2 Controlled Stream</div>
        
        <div class="section">
            <div class="field">
                <span class="field-label">Accumulation Start Date:</span>
                <span class="field-value">{{ doc.received_date or '________________________' }}</span>
            </div>
        </div>
        
        <div class="section">
            <div class="field-label">Data Sanitization Status</div>
            <div style="font-size: 10pt; color: #666;">(Data: D0-D1 or No Data: ND1-ND2)</div>
            <div class="checkbox-group">
                <div class="checkbox-row">
                    <span class="checkbox"></span> Destruction
                    <span style="margin-left: 30px;">
                        <span class="checkbox"></span> Wiping
                    </span>
                    <span style="margin-left: 30px;">
                        <span class="checkbox"></span> Digital Overwriting
                    </span>
                </div>
            </div>
        </div>
        
        <div class="section">
            <div class="checkbox-group">
                <div class="checkbox-row">
                    <span class="checkbox"></span> Circuit Boards
                    <span class="field-value" style="margin-left: 10px; min-width: 150px;">{{ doc.circuit_boards or '______________' }} Type</span>
                </div>
                <div class="checkbox-row">
                    <span class="checkbox"></span> CRTs
                    <span class="field-value" style="margin-left: 10px; min-width: 150px;">{{ doc.crt_qty or '______________' }} Total Qty</span>
                </div>
                <div class="checkbox-row">
                    <span class="checkbox"></span> Universal Waste Mercury Containing Device
                    <div style="margin-left: 20px; font-size: 10pt;">Maintained in closed container unless actively working materials</div>
                </div>
                <div class="checkbox-row">
                    <span class="checkbox"></span> Universal Waste Lamps
                    <div style="margin-left: 20px; font-size: 10pt;">Maintained in closed container unless actively working materials</div>
                </div>
                <div class="checkbox-row">
                    <span class="checkbox"></span> Universal Waste Batteries
                    <div style="margin-left: 20px; font-size: 10pt;">Maintained in closed container unless actively working materials</div>
                </div>
                <div class="checkbox-row">
                    <span class="checkbox"></span> Electronic Device
                    <span class="field-value" style="margin-left: 10px; min-width: 200px;">{{ doc.device_type or '________________________' }}</span>
                    <div style="margin-left: 20px; font-size: 9pt;">Whole Device (for example: laptop, desktop, modem, IP phone)</div>
                </div>
            </div>
        </div>
        
        <div class="weight-grid">
            <div class="weight-field">
                <div class="weight-label">Gross Wt</div>
                <div class="weight-value">{{ doc.gross_weight or '__________' }}</div>
            </div>
            <div class="weight-field">
                <div class="weight-label">Tare Wt</div>
                <div class="weight-value">{{ doc.tare_weight or '__________' }}</div>
            </div>
            <div class="weight-field">
                <div class="weight-label">Net Wt</div>
                <div class="weight-value">{{ doc.net_weight or '__________' }}</div>
            </div>
        </div>
        
        <div class="section">
            <div class="field">
                <span class="field-label">Accumulation End Date:</span>
                <span class="field-value">{{ doc.end_date or '________________________' }}</span>
                <span style="font-size: 9pt; color: #666; margin-left: 20px;">Required for data containing items</span>
            </div>
        </div>
        
        <div class="footer">
            <strong>4.4.6.3-F R2 UW Label GA FL AZ</strong> | Effective date: 7.6.23<br>
            Pallet: {{ doc.pallet_number or '______________' }} | Load: {{ doc.load or '______________' }}
        </div>
    </div>
</body>
</html>
