\NeedsTeXFormat{LaTeX2e}
\ProvidesExplPackage{PrimeTeX/packages/Tables}{2025-07-09}{1.0}{
	Tabularray configuration.
}

\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}	= {bandedRowColor},
	row{1}		= {bg=pageColor, font=\bfseries},
	hline{1,Z}	= {0.6pt},
	hline{2}	= {0.4pt},
}

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