/*
 * GTO2 – Spaltenausrichtung in Tabellen (Rückmeldung TD-Bereich, 2026-12-02)
 *
 * Regel: Inhalt links oder mittig, nie rechtsbündig. Eine Tabelle mischt sonst rechts- und
 * linksbündige Nachbarspalten, deren Inhalte zusammenkleben.
 *
 * DataTables 2 richtet Spalten, deren Inhalt nach Zahl oder Datum aussieht, selbst rechts aus
 * (Klassen dt-type-numeric / dt-type-date, Überschrift eingeschlossen) – je nach Daten, nicht nach
 * Absicht. Diese Regeln stellen das zurück auf links. Ausdrücklich zentrierte Spalten
 * (Bootstrap text-center, DataTables dt-center) bleiben zentriert.
 */
html body table.dataTable th.dt-type-numeric:not(.dt-center),
html body table.dataTable th.dt-type-date:not(.dt-center),
html body table.dataTable td.dt-type-numeric:not(.dt-center),
html body table.dataTable td.dt-type-date:not(.dt-center) {
  text-align: left;
}

/* Titel und Sortiersymbol der Überschrift in normaler Reihenfolge statt gespiegelt */
html body table.dataTable th.dt-type-numeric div.dt-column-header,
html body table.dataTable th.dt-type-numeric div.dt-column-footer,
html body table.dataTable th.dt-type-date div.dt-column-header,
html body table.dataTable th.dt-type-date div.dt-column-footer,
html body table.dataTable td.dt-type-numeric div.dt-column-header,
html body table.dataTable td.dt-type-numeric div.dt-column-footer,
html body table.dataTable td.dt-type-date div.dt-column-header,
html body table.dataTable td.dt-type-date div.dt-column-footer {
  flex-direction: row;
}

/* Kleine Tabellen: Sortiersymbol wieder rechts wie bei Textspalten */
html body table.dataTable.table-sm > thead > tr th.dt-type-numeric .dt-column-order,
html body table.dataTable.table-sm > thead > tr th.dt-type-date .dt-column-order,
html body table.dataTable.table-sm > thead > tr td.dt-type-numeric .dt-column-order,
html body table.dataTable.table-sm > thead > tr td.dt-type-date .dt-column-order {
  left: auto;
}
