.table-column-resize{position:absolute;top:0;right:0;bottom:0;width:9px;z-index:8;cursor:col-resize;touch-action:none;user-select:none;border-radius:2px}
.table-column-resize:hover,.table-column-resize:focus-visible{background:color-mix(in srgb,#38bdf8 45%,transparent);outline:0}
.table-columns-resizing,.table-columns-resizing *{cursor:col-resize!important;user-select:none!important}
.column-sized-table{max-width:none!important}.column-sized-table>thead>tr>th,.column-sized-table>tbody>tr>th,.column-sized-table>tbody>tr>td{overflow:hidden;text-overflow:ellipsis}
.column-sized-table>thead>tr>th{overflow:visible}
.column-sized-table .table-column-resize{color:#38bdf8}
.column-sized-table input:not([type=checkbox]):not([type=radio]),.column-sized-table select,.column-sized-table fieldset{min-width:0!important;max-width:100%}
.column-sized-table .account-description .description-text,.column-sized-table .source-select,.column-sized-table .source-cell-text{max-width:100%}

.column-sized-table:not(.diagonal-column-table)>thead>tr>th{overflow:hidden;text-overflow:ellipsis}

#data-cleanup [data-column-key="cleanup-datev"] td:nth-child(2)>a,#data-cleanup [data-column-key="cleanup-datev"] td:nth-child(2)>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* One column grid for all tables, including tables with their own sizing code. */
:root body table>:is(thead,tbody,tfoot)>tr>:is(th,td):not(:last-child):not(.diagonal-heading){border-inline-end:1px solid var(--news-border)}
.global-table-scroll{max-width:100%;min-width:0}

/* Shared row treatment for tables using the application table design. */
.global-table-design{border-spacing:0;--table-row-accent:#38bdf8}
.global-table-design>tbody>tr:nth-child(odd)>:is(th,td){background:var(--news-background)}
.global-table-design>tbody>tr:nth-child(even)>:is(th,td){background:color-mix(in srgb,var(--news-muted-text) 9%,var(--news-background))}
.global-table-design>tbody>tr:hover>:is(th,td){box-shadow:inset 0 1px 0 var(--table-row-accent),inset 0 -1px 0 var(--table-row-accent);border-bottom-color:var(--table-row-accent)}
.global-table-design>tbody>tr:hover>:first-child,.global-table-design>tbody>tr:hover>:first-child :is(span,small,a,strong,label,button):not(:where(.icon-button,.icon-button *,.admin-settings-action,.admin-settings-action *)){color:var(--table-row-accent);font-weight:700}

/* Shared design also covers newly introduced card and settings tables.
   Card-specific geometry and semantic group/total styles retain their rules. */
.global-table-design :where(th,td){padding:9px 10px;font-variant-numeric:tabular-nums}
.global-table-design>thead>tr>th,.global-table-design>tfoot>tr>:is(th,td){background:var(--news-input-background,var(--news-background))}
.global-table-design:where(:not(:has(thead tr+tr)))>thead>tr>th{position:sticky;top:0;z-index:3}
:root body main table.global-table-design>tbody>tr[data-table-stripe=odd]>:is(th,td){background:var(--news-background)}
:root body main table.global-table-design>tbody>tr[data-table-stripe=even]>:is(th,td){background:color-mix(in srgb,var(--news-muted-text) 9%,var(--news-background))}
:root body main table.global-table-design>tbody>tr:hover>:is(th,td){box-shadow:inset 0 1px 0 #38bdf8,inset 0 -1px 0 #38bdf8;border-bottom-color:#38bdf8}
:root body main table.global-table-design>tbody>tr:hover>:first-child:not(.is-negative-amount):not(.is-negative),
:root body main table.global-table-design>tbody>tr:hover>:first-child :is(span,small,a,strong,label,button):not(:where(.icon-button,.icon-button *,.admin-settings-action,.admin-settings-action *,.is-negative-amount,.is-negative)){color:#38bdf8;font-weight:700}

/* Establish the common table geometry in the first stylesheet paint. */
main table{--table-row-accent:#38bdf8}
main table :where(th,td){padding:9px 10px;font-variant-numeric:tabular-nums}
