<?php
// admin/contador/_layout.php
// Layout simple (Bootstrap CDN). Si querés usar el layout del core, reemplazá este archivo.
?>
<!doctype html>
<html lang="es">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= h($title ?? 'Contador') ?></title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <style>
    .kpi { font-size: 1.35rem; font-weight: 700; }
    .kpi small { font-size: .85rem; font-weight: 500; opacity: .8; display:block; }
    .table thead th { white-space: nowrap; }
    .text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
  </style>
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
  <div class="container-fluid">
    <a class="navbar-brand" href="./">Contador</a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#nav" aria-controls="nav" aria-expanded="false">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="nav">
      <ul class="navbar-nav me-auto">
        <li class="nav-item"><a class="nav-link" href="contador_iva_compras.php">Libro IVA Compras</a></li>
        <li class="nav-item"><a class="nav-link" href="contador_iva_ventas.php">Libro IVA Ventas</a></li>
      </ul>
      <span class="navbar-text small">/admin/contador</span>
    </div>
  </div>
</nav>

<main class="container-fluid py-3">
  <?= $content ?? '' ?>
</main>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
