What is the most elegant way to reach that style (by using a Tikz-matrix):
MWE:
€dit: I set a simplification at the lists. This makes it clearer which elements should be emphasized.
\documentclass[margin=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[] \def\A{A} \def\B{B} \def\C{C} \def\D{D} \matrix[matrix of nodes, column sep=0.125em, row sep=0.1525em, fill=gray!33, anchor=north, rs/.style={row #1/.style={row sep=0.525em}}, rs/.list={6,12,18}, emp/.style 2 args={row #1 column #2/.style={nodes={fill=pink}}}, emp/.list={{1}{1},{2}{1},{3}{1},{4}{1},{5}{1},{6}{1}, {7}{2},{8}{2},{9}{2},{10}{2},{11}{2},{12}{2}, {13}{3},{14}{3},{15}{3},{16}{3},{17}{3},{18}{3}, {19}{4},{20}{4},{21}{4},{22}{4},{23}{4},{24}{4} }, ] (s1) at (0,0){ \A & \B & \C & \D \\ \A & \B & \D & \C \\ \A & \C & \B & \D \\ \A & \C & \D & \B \\ \A & \D & \B & \C \\ \A & \D & \C & \B \\ % \A & \B & \C & \D \\ \A & \B & \D & \C \\ \C & \B & \A & \D \\ \C & \B & \D & \A \\ \D & \B & \A & \C \\ \D & \B & \C & \A \\ % \A & \B & \C & \D \\ \A & \D & \C & \B \\ \B & \A & \C & \D \\ \B & \D & \C & \A \\ \D & \A & \C & \B \\ \D & \B & \C & \A \\ % \A & \B & \C & \D \\ \A & \C & \B & \D \\ \B & \A & \C & \D \\ \B & \C & \A & \D \\ \C & \A & \B & \D \\ \C & \B & \A & \D \\ }; \end{tikzpicture} \end{document} 

matrixhere?