public function getPanel(): string
	{
		if (empty($this->queries)) {
			return '';
		}

		$params = $this->connection->getParams();
		$host = ($params['driver'] === 'pdo_sqlite' && isset($params['path']))
			? 'path: ' . basename($params['path'])
			: sprintf('host: %s%s/%s', $this->connection->getHost(),
				(($p = $this->connection->getPort()) ? ':' . $p : ''),
				$this->connection->getDatabase());

		return	'<style>
				#nette-debug td.nette-Doctrine2Panel-sql { background: white !important}
				#nette-debug .nette-Doctrine2Panel-source { color: #BBB !important }
				#nette-debug nette-Doctrine2Panel tr table { margin: 8px 0; max-height: 150px; overflow:auto }
				#tracy-debug td.nette-Doctrine2Panel-sql { background: white !important}
				#tracy-debug .nette-Doctrine2Panel-source { color: #BBB !important }
				#tracy-debug nette-Doctrine2Panel tr table { margin: 8px 0; max-height: 150px; overflow:auto }
			</style>' .
				sprintf('<h1>Queries: %s%s, %s</h1>', count($this->queries),
					($this->totalTime ? ', time: ' . sprintf('%0.3f', $this->totalTime * 1000) . ' ms' : ''), $host) .
			'<div class="nette-inner tracy-inner nette-Doctrine2Panel">' .
				implode('<br>', array_filter([$this->renderPanelCacheStatistics(), $this->renderPanelQueries()])) .
			'</div>';
	}