\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{PrimeTeX/packages/Tables}[2025-07-09]

% Table formatting.
\RequirePackage{tabularray}

\UseTblrLibrary{siunitx}

\SetTblrInner{
	rowhead		= 1,
	row{1}		= {font=\bfseries},
	hline{1,Z}	= {0.6pt},
	hline{2}	= {0.4pt},
}

%\renewcommand{\TblrOverlap}[1]{#1}

\DeclareTblrTemplate{remark-tag}{default}{
	\strong{\InsertTblrRemarkTag}
}

\NewTblrEnviron{tblrBanded}
\SetTblrInner[tblrBanded]{
	rowhead		= 1,
	row{odd}	= {bandedRow},
	row{1}		= {bg=page, font=\bfseries},
	hline{1,Z}	= {0.6pt},
	hline{2}	= {0.4pt},
}

\NewTblrTableCommand{\midtitle}[1][page]{
	\SetCell[c=2]{
		c,
		bg = #1,
		font = \bfseries,
	}
}

\RequirePackage{csvsimple-l3}