  <style>
<style>
  :root {
    --bg: #ffffff;          /* Fundo Branco */
    --card: #ffffff;        /* Card Branco */
    --border: #d1d5db;      /* Bordas Cinzas */
    --muted: #f3f4f6;       /* Cabeçalho Cinza Claro */
    --fg: #111827;          /* Texto quase Preto */
    --accent: #e11d48;
    --ring: #3b82f6;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg); /* Alterado para Branco */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--fg);      /* Alterado para Preto */
    padding: 1.5rem;
  }

  .wrapper {
    width: 100%;
    max-width: 960px;
  }

  h1 {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
  }

  .card {
    background: var(--card);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    /* Sombra mais suave para fundo claro */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  .table-container {
    width: 100%;
    overflow-x: auto;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
  }

  th,
  td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  th {
    background: var(--muted); /* Tons de cinza */
    font-weight: 600;
    text-align: center;
    color: #374151;
  }

  td {
    background: #ffffff;     /* Fundo das células branco */
    color: var(--fg);
  }

  /* Efeito zebra em tons de cinza muito suaves */
  tbody tr:nth-child(even) td {
    background: #f9fafb;
  }

  td.text-center {
    text-align: left;
  }

  td.pactos {
    text-align: center;
  }

  td.semana {
    text-align: center;
  }

  td.mes {
    text-align: center;
  }

  td.ano {
    text-align: center;
  }


  td.label-cell {
    white-space: nowrap;
    font-weight: 500;
  }

  .input-aparente {
    width: 5rem;
    padding: 0.25rem 0.4rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #000;
    font-size: 0.875rem;
    text-align: center;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .input-aparente:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }

  .valor-cell {
    font-weight: 700;
    text-align: center;
  }

  /* Cores de status ajustadas para melhor contraste no fundo branco */
  .valor-erro {
    color: #dc2626; /* Vermelho mais forte */
  }

  .valor-x {
    color: #9ca3af; /* Cinza médio */
  }

  .valor-ok {
    color: #002366; /* Verde escuro (melhor leitura) #166534*/
  }

  .subtitle {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #4b5563; /* Cinza escuro */
  }

  @media (max-width: 640px) {
    h1 {
      font-size: 1.4rem;
    }
  }
</style>
  </style>
