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

\RenewDocumentCommand\TblrAlignBoth{}{\justifying}
\RenewDocumentCommand\TblrAlignLeft{}{\RaggedRight}
\RenewDocumentCommand\TblrAlignCenter{}{\Centering}
\RenewDocumentCommand\TblrAlignRight{}{\RaggedLeft}

\UseTblrLibrary{siunitx}

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

\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,
	}
}