/* =========================================================
   XMLREPORT - style.css
   Minimalista • Moderno • Responsivo • Print-friendly
========================================================= */

/* Badge “XML Report” (hover) */
.xmlreport-badge {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;

  border: 1px solid rgba(59, 130, 246, 0.15);
  color: rgba(59, 130, 246, 0);
  background: rgba(59, 130, 246, 0);
  transform: translateY(2px);
  opacity: 0;

  transition: all 180ms ease;
}

.group:hover .xmlreport-badge {
  color: rgba(59, 130, 246, 0.95);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
  transform: translateY(0);
  opacity: 1;
}

/* Hover sutil no logo Rouglas */
.rouglas-logo {
  transition: filter 180ms ease, opacity 180ms ease;
  filter: saturate(0.9) brightness(0.95);
}
.group:hover .rouglas-logo {
  filter: saturate(1) brightness(1.05);
}

/* ===== Corrige header sticky transparente (não sobrepor conteúdo) ===== */
thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background: inherit;             /* herda fundo do thead */
  background-clip: padding-box;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

/* Scrollbar (Chrome/Windows) */
*::-webkit-scrollbar { height: 10px; width: 10px; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
*::-webkit-scrollbar-track { background: #f1f5f9; }

/* ===== Impressão (PDF) ===== */
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  footer { display: none !important; } /* evita duplicar com rodapé do PDF */
  @page { size: A4 landscape; margin: 12mm; }
  table { font-size: 9px !important; }
  tr { page-break-inside: avoid; }
}
/* ===== Sticky header 100% sólido (não “vaza” texto por trás) ===== */
.table-scroll { position: relative; }

/* garante sticky e prioridade na pilha */
.table-scroll thead th{
  position: sticky;
  top: 0;
  z-index: 50;

  /* fundo opaco (resolve a sobreposição) */
  background-color: #f8fafc;   /* slate-50 */
  background-clip: padding-box;

  /* separação visual */
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.10);
}

/* canceladas: fundo opaco vermelho */
.table-scroll--red thead th{
  background-color: #fef2f2;   /* red-50 */
}
