/* TWTGR Reviews Tracker – front.css */

/* ---------- Content wrapper ---------- */
.twtgr-report{
  overflow-x:auto;              /* scroll suave em mobile */
  -webkit-overflow-scrolling:touch;
}

/* ---------- Tabelas ---------- */
.twtgr-report table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden; /* clip rounded corners */
  background:#fff;
}

/* Cabeçalho sticky para tabelas altas */
.twtgr-report thead th{
  position:sticky;
  top:0;
  background:#f8fafc;
  text-align:left;
  padding:10px 12px;
  font-weight:600;
  font-size:14px;
  border-bottom:1px solid #e5e7eb;
  white-space:nowrap;
  z-index:1;
}

.twtgr-report tbody td{
  padding:10px 12px;
  border-top:1px solid #f1f5f9;
  font-size:14px;
  vertical-align:middle;
}

/* zebra + hover */
.twtgr-report tbody tr:nth-child(odd){background:#fff;}
.twtgr-report tbody tr:nth-child(even){background:#fcfdff;}
.twtgr-report tbody tr:hover{background:#f8fbff;}

.twtgr-report tbody tr:first-child td{border-top:none}

/* Colunas úteis com comportamento melhor */
.twtgr-report td:nth-child(1),  /* Data/Hora */
.twtgr-report th:nth-child(1){
  white-space:nowrap;
}
.twtgr-report td:nth-child(2),  /* Título */
.twtgr-report th:nth-child(2){
  max-width: 480px;
  overflow-wrap:anywhere;       /* quebra títulos longos sem rebentar layout */
}

/* Links */
.twtgr-report a{
  color:#2563eb;
  text-decoration:none;
}
.twtgr-report a:hover,
.twtgr-report a:focus{
  text-decoration:underline;
  outline:none;
}

/* “Sem dados.” centrado */
.twtgr-report td[colspan]{
  text-align:center;
  color:#6b7280;
}

/* ---------- Botões/CTA ---------- */
.twtgr-pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.6rem .9rem;
  border-radius:999px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
  transition:transform .06s ease, box-shadow .12s ease;
}
.twtgr-pill:hover{ transform:translateY(-1px); box-shadow:0 4px 10px rgba(0,0,0,.08); }
.twtgr-pill:active{ transform:translateY(0); box-shadow:0 1px 2px rgba(0,0,0,.06); }
.twtgr-pill:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}

.twtgr-pill .twtgr-g{
  display:inline-block;
  background:#fff;
  color:#111827;
  border-radius:999px;
  padding:.2rem .45rem;
  margin-right:.25rem;
  font-weight:800;
  line-height:1;
}

/* ---------- Grupo de exportação (quando visível no front) ---------- */
.twtgr-export-buttons{
  margin:.75rem 0 1rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.twtgr-export-buttons .button{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .8rem;
  border-radius:8px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:14px;
  line-height:1.25rem;
  text-decoration:none;
}
.twtgr-export-buttons .button:hover{
  background:#f8fafc;
  border-color:#d1d5db;
}
.twtgr-export-buttons .button:focus-visible{
  outline:2px solid #2563eb;
  outline-offset:2px;
}

/* ---------- Filtros (se usados no front) ---------- */
.twtgr-filters{
  margin:1rem 0;
  display:flex;
  gap:1rem;
  align-items:flex-end;
  flex-wrap:wrap;
}
.twtgr-filters label{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}

/* ---------- Acessibilidade / motion ---------- */
@media (prefers-reduced-motion: reduce){
  .twtgr-pill{ transition:none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px){
  .twtgr-report table{ min-width: 640px; } /* mantém colunas legíveis */
  .twtgr-pill{ width:100%; justify-content:center; }
  .twtgr-filters label{ display:block; margin:6px 0; }
}
