/**
 * psn Tabellen — Frontend.
 * Neutral gehalten (erbt Theme-Schrift/Farbe); responsive ueber den Wrapper.
 */

.psn-table-wrap {
    width: 100%;
    overflow-x: auto;            /* schmale Viewports: horizontal scrollen statt brechen */
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.2em;
}

table.psn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
    line-height: 1.5;
    background: transparent;
}

table.psn-table th,
table.psn-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

table.psn-table--compact th,
table.psn-table--compact td {
    padding: 5px 9px;
}

/* Ausrichtung pro Spalte (Klassen am th/td). */
table.psn-table .psn-ta-center { text-align: center; }
table.psn-table .psn-ta-right  { text-align: right; }

/* Kopfzeile. */
table.psn-table thead th,
table.psn-table th[scope="row"] {
    font-weight: 600;
}
table.psn-table thead th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}

/* Rahmenlinien (optional). */
table.psn-table--bordered th,
table.psn-table--bordered td {
    border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Zebra (optional). */
table.psn-table--zebra tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.04);
}

/* Sortierbare Kopfzellen. */
table.psn-table--sortable thead th[data-sort] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
table.psn-table--sortable thead th[data-sort]:hover {
    background: rgba(0, 0, 0, 0.05);
}
table.psn-table .psn-table-arrow {
    display: inline-block;
    width: 0.9em;
    margin-left: 0.3em;
    opacity: 0.55;
    font-size: 0.85em;
}
table.psn-table thead th.psn-sort-asc  .psn-table-arrow::after { content: "\25B2"; }
table.psn-table thead th.psn-sort-desc .psn-table-arrow::after { content: "\25BC"; }
