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

% Table formatting.
\RequirePackage{tabularray}

% Enable putting a list in a tabularray
%\UseTblrLibrary{varwidth}

\DeclareTblrTemplate{note-tag}{default}{\textsuperscript{\InsertTblrNoteTag}}

\NewTblrEnviron{tblrBoxout}
\SetTblrInner[tblrBoxout]{
	colspec 	= {Q[c,h]X[1,m]},
	hline{1,Z}	= {0.6pt,PrimeBlue},
	vline{1,Z}	= {0.6pt,PrimeBlue},
	hline{2}	= {0.0pt,PrimePaleBlue},
	vline{2}	= {0.0pt,PrimePaleBlue},
	vborder{Z}	= {leftspace=12pt},
	columns		= {PrimePaleBlue},
}

\NewTblrEnviron{tblrBanded}
\SetTblrOuter[tblrBanded]{
	tall,
}
\SetTblrInner[tblrBanded]{
	rowhead		= 1,
	row{odd}	= {paleGray},
	row{1}		= {bg=pageColor, font=\bfseries},
	hline{1,Z}	= {0.6pt},
	hline{2}	= {0.4pt},
}

\NewTblrTableCommand{\midtitle}{
	\SetCell[c=2]{
		c,
		bg = PrimePaleBlue,%pageColor,
		font = \bfseries,
	}
}

\RequirePackage{csvsimple-l3}