/* Datentabelle (Paket H, gemeinsame Komponente Q-5) – Markup aus src/Ui/DataTable.php, Verhalten in ui-datatable.js */
.dt { margin: 0; }
.dt [hidden] { display: none !important; }
.dt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.dt-bar .dt-q { width: 260px; max-width: 100%; padding: 5px 8px; }
.dt-bar .dt-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.dt-colmenu { position: relative; }
.dt-colmenu > summary { list-style: none; }
.dt-colmenu > summary::-webkit-details-marker { display: none; }
.dt-colmenu-box { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 300px; max-height: 60vh; overflow: auto; padding: 10px;
    background: var(--card, #fff); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.dt-colmenu-box p { margin: 0 0 6px; }
.dt-collist { list-style: none; margin: 0 0 8px; padding: 0; }
.dt-collist li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 4px; border-radius: 4px; cursor: grab; }
.dt-collist li:hover { background: var(--primary-soft, #fff1e6); }
.dt-collist label { margin: 0; font-weight: normal; flex: 1; }
.dt-collist .dt-mv { display: inline-flex; gap: 2px; }
.dt-collist .dt-mv .btn { padding: 0 6px; line-height: 1.6; }

.dt-table thead tr.dt-head th { position: relative; white-space: nowrap; user-select: none; }
.dt-table thead th .dt-sort { all: unset; cursor: pointer; font: inherit; font-weight: 600; color: inherit; }
.dt-table thead th .dt-sort:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dt-table thead th[aria-sort="ascending"], .dt-table thead th[aria-sort="descending"] { color: var(--primary-text, #b34700); }
.dt-table thead th .dt-grip { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; }
.dt-table thead th.dt-dragging { opacity: .5; }
.dt-table thead th.dt-dropover { box-shadow: inset 3px 0 0 var(--primary); }
.dt-table thead tr.dt-filters th { padding-top: 2px; padding-bottom: 6px; font-weight: normal; }
.dt-table thead tr.dt-filters input, .dt-table thead tr.dt-filters select { width: 100%; min-width: 60px; padding: 3px 6px; font-size: 12px; }
.dt-table.dt-fixedw { table-layout: fixed; }
.dt-table.dt-fixedw td { overflow: hidden; text-overflow: ellipsis; }
.dt-table tr.dt-group th { text-align: left; background: var(--bg, #f4f6f9); padding: 6px 8px; }
.dt-table .dt-group-btn { all: unset; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.dt-table .dt-group-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dt-table tr.dt-group.dt-collapsed .dt-caret { display: inline-block; transform: rotate(-90deg); }
.dt-table td.num, .dt-table th.num { text-align: right; white-space: nowrap; }
.dt-pager:empty { display: none; }
@media (max-width: 700px) {
    .dt-bar .dt-q { width: 100%; }
    .dt-bar .dt-tools { margin-left: 0; }
    .dt-table thead tr.dt-filters { display: none; }
}
@media print {
    .dt-bar, .dt-pager, .dt-table thead tr.dt-filters { display: none; }
}
