:root{
  /* Fundo claro com “cara de finanças” */
  --bgA: #f6fbf8;
  --bgB: #f2f7ff;
  --bgC: #fff8ef;

  /* Superfícies */
  --card: rgba(255,255,255,.78);
  --card2: rgba(255,255,255,.62);
  --border: rgba(15, 23, 42, .12);

  /* Texto */
  --text: rgba(15, 23, 42, .92);   /* quase preto */
  --muted: rgba(15, 23, 42, .62);

  /* Acentos (dinheiro) */
  --mint: #10b981;
  --gold: #f59e0b;
  --cyan: #06b6d4;

  /* Sombras suaves */
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin: 0;
  padding: 28px;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  color: var(--text);

  /* Gradient claro, com “halos” discretos */
  background:
    radial-gradient(900px 700px at 12% 12%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(900px 700px at 88% 18%, rgba(245,158,11,.16), transparent 55%),
    radial-gradient(800px 700px at 55% 90%, rgba(6,182,212,.12), transparent 60%),
    linear-gradient(135deg, var(--bgA), var(--bgB) 55%, var(--bgC));
  background-attachment: fixed;
}

/* Links */
a{
  color: #0f766e;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

h1, h2{
  margin: 0 0 12px 0;
  letter-spacing: .2px;
}

h1{
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1.1;

  /* Título com gradiente (mas escuro o bastante pra ler) */
  background: linear-gradient(90deg, #0f172a, #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2{
  margin-top: 18px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(15, 23, 42, .88);
}

.muted{ color: var(--muted); }

/* Container opcional */
.container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards de totais */
.totais{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0 18px 0;
}

.card{
  flex: 1 1 220px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card .muted{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.card strong{
  font-size: 18px;
  color: rgba(15, 23, 42, .92);
}

/* Tabelas */
table{
  width:100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}

thead th{
  padding: 12px 10px;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .82);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.70));
  border-bottom: 1px solid var(--border);
}

tbody td{
  padding: 10px 10px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  vertical-align: top;
  color: rgba(15, 23, 42, .90);
}

tbody tr:nth-child(odd){
  background: rgba(255,255,255,.52);
}

tbody tr:hover{
  background: rgba(16,185,129,.12);
}

td strong{
  color: rgba(15, 23, 42, .95);
}

/* Pager */
.pager{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.pager a{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
  color: rgba(15, 23, 42, .92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
}

.pager a:hover{
  background: rgba(16,185,129,.16);
  border-color: rgba(16,185,129,.45);
  text-decoration: none;
}

.pager span{ color: rgba(15, 23, 42, .70); }



/* Código */
code{
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .10);
  color: rgba(15, 23, 42, .92);
}

/* Acessibilidade: foco visível */
:focus-visible{
  outline: 3px solid rgba(6,182,212,.45);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Responsivo */
@media (max-width: 760px){
  body{ padding: 16px; }
  table{ display:block; overflow-x:auto; white-space: nowrap; }
  .card{ flex: 1 1 100%; }
}
