The fact is i need some CB features, as an example to highlight new pms or connection requests.
Anyway nevermind, i found out how to do it.
I'm sharing the solution in case someone else needs it, and marking the current thread as solved:
File to be edited:
/libraries/CBLib/CB/Legacy/LegacyComprofilerFunctions.php
Replace
Code:
$_CB_framework->document->addHeadStyleSheet( $livePath . '/' . $templateFile, \in_array( $templateFile, [ 'template.css', 'bootstrap.css', 'fontawesome.css' ], true ), $media );
with
Code:
$jinput = JFactory::getApplication()->input->get('option');
if (strpos($jinput,"com_comprofiler")){
$_CB_framework->document->addHeadStyleSheet( $livePath . '/' . $templateFile, \in_array( $templateFile, [ 'template.css', 'bootstrap.css', 'fontawesome.css' ], true ), $media );
}