<?php
require_once __DIR__ . '/includes/settings_helpers.php';

settings_require_auth();
settings_ensure_tables($conn);
settings_get_current_org($conn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="<?php echo billing_escape(billing_base_href()); ?>">
  <title>Reporting Tags | Settings</title>
  <link rel="stylesheet" href="assets/fontawesome/css/all.min.css">
  <link rel="stylesheet" href="assets/font-inter.css">
  <link rel="stylesheet" href="orgprofile.css">
  <style>
    .empty-state{min-height:460px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}
    .empty-state i{font-size:96px;color:#c7d2fe;margin-bottom:18px;}
    .empty-state h2{margin:0 0 12px;font-size:28px;}
    .empty-state p{max-width:680px;font-size:16px;line-height:1.6;color:#4b5563;}
  </style>
</head>
<body class="orgprofile-page">
  <?php settings_render_header($_SESSION['org_name'] ?? 'demo', 'dashboard.php', 'fa-tags'); ?>
  <main class="profile-layout">
    <?php settings_render_sidebar('reporting_tags'); ?>
    <section class="profile-main">
      <div class="profile-head"><h1>Reporting Tags</h1></div>
      <div class="profile-card">
        <div class="empty-state">
          <i class="fa-solid fa-tags"></i>
          <h2>No reporting tags yet</h2>
          <p>This page is now available from Settings so the Reporting Tags link resolves correctly instead of failing.</p>
        </div>
      </div>
    </section>
  </main>
</body>
</html>

