<div class="mx-auto max-w-6xl">
  <div class="mb-6">
    <h2 class="font-display text-2xl font-extrabold"><?= esc($partner['name'] ?? 'Partner workspace') ?></h2>
    <p class="mt-2 text-sm text-slate-500">Coordinate fulfilment and referrals without exposing unrelated patient information.</p>
  </div>
  <div class="grid gap-4 md:grid-cols-3">
    <?php foreach([['Active lab requests',$stats['labs'],'flask-conical','/partner/labs'],['Pharmacy orders',$stats['orders'],'pill','/partner/pharmacy'],['Open referrals',$stats['referrals'],'git-branch','/partner/referrals']] as $s): ?>
      <a href="<?= $s[3] ?>" class="rounded-2xl border border-slate-100 bg-white p-6 shadow-card">
        <span class="grid h-11 w-11 place-items-center rounded-xl bg-teal-50 text-teal-600"><i data-lucide="<?= $s[2] ?>" class="h-5 w-5"></i></span>
        <div class="mt-5 font-display text-3xl font-extrabold"><?= $s[1] ?></div>
        <div class="mt-1 text-sm font-semibold text-slate-500"><?= $s[0] ?></div>
      </a>
    <?php endforeach; ?>
  </div>
  <div class="mt-6 rounded-2xl bg-navy p-7 text-white">
    <h3 class="font-display text-xl font-extrabold">Integration-ready partner hub</h3>
    <p class="mt-2 max-w-2xl text-sm leading-6 text-white/70">The data model supports manual workflows first, then sandbox and connected API integrations for labs, pharmacies, hospitals and insurers.</p>
  </div>
</div>
