/* ============================================================
   smgr · css/pages/viz_concentracion_minutos.css — DISEÑO DE LA TARJETA
   capturable de "Concentración de minutos por equipo"
   (visualizacion_concentracion_minutos.php). Portado 1:1 del clásico, con
   TODO scopeado bajo #captureArea. Tabla blanca con barra apilada. Ancho
   natural 880px. Sin reset global ni body{background}.
   ============================================================ */

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

/* ---------- Cabecera ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 10px 20px;
  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: 15px;
  position: relative;
  z-index: 1;
}
#captureArea .logo {
  width: 70px;
  height: 53px;
  background: #fff;
  border-radius: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
#captureArea .logo img { width: 100%; height: 100%; object-fit: contain; }
#captureArea .header h1 { font-size: 22px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
#captureArea .header p { font-size: 12px; opacity: 0.9; margin-top: 3px; position: relative; z-index: 1; }

/* ---------- Leyenda ---------- */
#captureArea .legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 6px 20px;
  background: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #4a5568;
}
#captureArea .legend-item { display: flex; align-items: center; gap: 5px; }
#captureArea .legend-color { width: 14px; height: 14px; border-radius: 2px; }

/* ---------- Tabla ---------- */
#captureArea table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
#captureArea thead th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 7px 4px;
  text-align: center;
  white-space: nowrap;
  background: #2d3748;
  color: #fff;
  font-size: 11px;
}
#captureArea thead th.th-left { text-align: left; padding-left: 8px; }

#captureArea tbody td {
  padding: 4px 4px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 12px;
}
#captureArea tbody tr:nth-child(even) td { background-color: rgba(0,0,0,0.02); }

#captureArea td.pos { font-weight: 800; font-size: 13px; color: #2d3748; }
#captureArea td.team-cell { text-align: left; white-space: nowrap; padding-left: 8px; }
#captureArea .team-info { display: flex; align-items: center; gap: 6px; }
#captureArea .team-shield { width: 22px; height: 26px; border-radius: 3px; border: 1px solid #e2e8f0; }
#captureArea .team-abbr { font-weight: 700; font-size: 12px; color: #2d3748; }

#captureArea td.mins { font-variant-numeric: tabular-nums; }
#captureArea td.bar-cell { padding: 4px 8px; }

/* ---------- Barra apilada ---------- */
#captureArea .stacked-bar {
  display: flex;
  width: 100%;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
}
#captureArea .bar-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}
#captureArea .seg-1-3 { background: #2c5282; }
#captureArea .seg-4-5 { background: #3182ce; }
#captureArea .seg-6-8 { background: #63b3ed; color: #1a365d; }
#captureArea .seg-9-12 { background: #bee3f8; color: #2a4365; }
#captureArea .seg-rest { background: #e2e8f0; color: #4a5568; }

/* ---------- Pie ---------- */
#captureArea .footer {
  background: #2d3748;
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
#captureArea .footer span { opacity: 0.8; }
