/* ============================================================
   smgr · css/pages/viz_triples_recibidos.css — DISEÑO DE LA TARJETA capturable
   de "Triples recibidos" (visualizacion_triples_recibidos.php). Portado 1:1 del
   clásico, con TODO scopeado bajo #captureArea. Sin `body{background}` ni reset
   global (los aporta viz.css). Ancho fijo 920px. Layout con <table>.
   ============================================================ */

#captureArea {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 920px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera de la tarjeta ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 11px 18px;
  text-align: center;
  position: relative;
}
#captureArea .header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}
#captureArea .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
#captureArea .header h1 { font-size: 22px; font-weight: 800; margin: 0; position: relative; z-index: 1; line-height: 1.15; }
#captureArea .header p { font-size: 12px; opacity: 0.92; margin-top: 3px; position: relative; z-index: 1; }

/* ---------- Tabla ---------- */
#captureArea table.t3 {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
#captureArea table.t3 thead th {
  background: #2d3748;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 6px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
#captureArea table.t3 thead th:last-child { border-right: none; }
#captureArea table.t3 thead th.left { text-align: left; padding-left: 14px; }
#captureArea table.t3 thead th.sub { font-size: 10px; opacity: 0.85; font-weight: 500; }
#captureArea table.t3 tbody td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid #edf2f7;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}
#captureArea table.t3 tbody td.rank {
  color: #6b7280;
  font-weight: 700;
  font-size: 12px;
  width: 40px;
}
#captureArea table.t3 tbody td.team-cell {
  text-align: left;
  padding-left: 14px;
  font-weight: 700;
}
#captureArea table.t3 tbody tr:nth-child(even) { background: #fafbfc; }

#captureArea .team-info { display: flex; align-items: center; gap: 9px; }
#captureArea .team-shield { width: 26px; height: auto; display: block; }
#captureArea .team-code {
  font-weight: 800;
  font-size: 14px;
  color: #2d3748;
  letter-spacing: 0.3px;
}

#captureArea td.muted { color: #6b7280; font-weight: 500; font-size: 13px; }
#captureArea td.bad {
  background: rgba(220, 80, 80, 0.18);
  color: #991b1b;
  font-weight: 700;
}
#captureArea td.good {
  background: rgba(5, 150, 105, 0.18);
  color: #065f46;
  font-weight: 700;
}
#captureArea td.sep { border-right: 1px dashed #cbd5e0; }
#captureArea th.sep { border-right: 1px dashed rgba(255,255,255,0.18); }

#captureArea tr.totals td {
  background: #1a365d !important;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-top: 2px solid #1a365d;
}
#captureArea tr.totals td.rank { color: rgba(255,255,255,0.6); }
#captureArea tr.totals td.team-cell { padding-left: 14px; letter-spacing: 0.4px; }

/* ---------- Pie de la tarjeta ---------- */
#captureArea .footer {
  background: #2d3748;
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
}
#captureArea .social-links { margin-top: 3px; font-size: 11px; opacity: 0.9; }
#captureArea .social-links span { margin: 0 8px; }
