            <!-- Simulated prescription header -->
            <div style="border-bottom:4px solid #0891b2;padding-bottom:20px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:flex-start;min-height:100px">
                <div style="flex:1">
                    <!-- ALWAYS show clinic name -->
                    <div style="font-size:28px;font-weight:bold;color:#0891b2;margin-bottom:8px">
                        <?php echo clean($branch['name']); ?>
                    </div>
                    <div style="color:#555;font-size:13px;line-height:1.8">
                        <?php if ($branch['address']): ?>
                        <strong>Address:</strong> <?php echo clean($branch['address']); ?><br>
                        <?php endif; ?>
                        <?php if ($branch['phone']): ?>
                        <strong>Phone:</strong> <?php echo clean($branch['phone']); ?>
                        <?php endif; ?>
                    </div>
                </div>
                <?php if ($has_logo): ?>
                <div style="padding-left:20px">
                    <img src="<?php echo SITE_URL . '/' . $branch['logo']; ?>" 
                         style="max-width:150px;max-height:100px" 
                         alt="Logo Preview">
                </div>
                <?php endif; ?>
            </div>
