html,
body {
    height: 100%;
}

body {
    display: block;
    margin: 0;
    overflow: hidden;
}

main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1rem;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.interactive-table-page {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    min-height: 0;
    overflow: hidden;
}

.interactive-table-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    max-width: none !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 2rem;
    overflow: hidden;
}

.container.content-card.interactive-table-card {
    padding-top: 0.5rem;
}

/* Keep the navigation logo level with the toolbar after adding the page inset. */
body:has(> main > .interactive-table-page) > header {
    top: calc(1rem + var(--tnx-guest-banner-height, 0px));
}


.interactive-table-cell--priority,
.interactive-table-cell--priority .interactive-table-input,
.interactive-table-cell--priority .interactive-table-input--readonly,
.interactive-table-cell--priority input,
.interactive-table-cell--priority textarea,
.interactive-table-cell--priority select,
.interactive-table-cell--priority .markdown-readonly {
    font-weight: 700;
    color: var(--accent-color);
}

.interactive-table-cell--hidden-by-dependency {
    background: transparent;
}

.interactive-table-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-top: 0.35rem;
    padding-bottom: 0;
}

/* on desktop the horizontal scrolling always belongs to the custom scrollbar below the table, so
   the native one never takes part in the layout: it used to be forced on with "overflow-x: scroll",
   which painted a horizontal scrollbar on the very first frame even when nothing overflowed and
   took it away again as soon as the table script had measured the real width, which made the table
   jump; the viewport stays scrollable through scrollLeft (hidden only removes the native bar), so
   the custom scrollbar now simply appears once, right away and only when it is really needed */
@media (min-width: 720px) {
    .interactive-table-main {
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }

    /* the cards display mode brings its own overflow-x further down, so the active custom
       scrollbar has to keep the native one away there as well */
    .interactive-table-main[data-custom-horizontal-scrollbar="1"] {
        overflow-x: hidden;
    }

    /* if the custom scrollbar stays away on purpose although the table would overflow (all columns
       minimized), the native one jumps in as a fallback, but "auto" keeps it away as long as there
       is nothing to scroll, which is the normal case for this state */
    .interactive-table-main[data-custom-horizontal-scrollbar="0"] {
        overflow-x: auto;
    }
}

/* without javascript nothing can measure the table or move the custom scrollbar, so there the
   native one keeps the horizontal scrolling, again only when there is really something to scroll */
@media (min-width: 720px) and (scripting: none) {
    .interactive-table-main {
        overflow-x: auto;
    }
}


.interactive-table-error-state,
.interactive-table-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
    padding: 1rem;
}

.interactive-table-empty-state {
    flex: 1 1 auto;
}

.interactive-table-loading-state {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--interactive-table-loading-width, 100%);
    min-width: 0;
    margin-left: var(--interactive-table-loading-offset, 0px);
    padding: 0.85rem 0;
    color: var(--primary-color);
    pointer-events: none;
    box-sizing: border-box;
}

.interactive-table-loading-state[hidden] {
    display: none !important;
}

.interactive-table-error-state {
    color: var(--danger-color, #cc0000);
}

.interactive-table-error-state a {
    display: inline;
    float: none;
}

@media (max-width: 719px) {

    body:has(> main > .interactive-table-page) > header {
        top: calc(0.5rem + var(--tnx-guest-banner-height, 0px));
    }

    #interactiveTableReturnLink {
        display: none;
    }

    .interactive-table-page--board .interactive-table-column-manager-link {
        display: none;
    }

    .interactive-table-page--board {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    .interactive-table-card--board {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
    }

    .interactive-table-main--board {
        overflow-x: hidden;
    }

    .interactive-table-main:not(.interactive-table-main--board) {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y pinch-zoom;
    }

    .interactive-table-main--board {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow: auto;
    }


}

.interactive-table-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "meta new download";
    gap: 0.4rem 1rem;
    align-items: center;
    flex: 0 0 auto;
    margin-top: 1rem;
    position: relative;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    background: var(--bg-color, #121212);
    z-index: 2;
}

.interactive-table-footer__meta {
    grid-area: meta;
    justify-self: start;
    min-width: 0;
    max-width: 34vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

.interactive-table-footer--hide-meta {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: ". new download";
}

.interactive-table-footer--hide-meta .interactive-table-footer__meta {
    display: none;
}

.interactive-table-footer__new-entry-links {
    grid-area: new;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    text-align: center;
}

.interactive-table-footer__new-entry-links[hidden] {
    display: none;
}

.interactive-table-new-entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.interactive-table-new-entry-link--additional-conditions,
.interactive-table-new-entry-link--additional-conditions:visited {
    color: var(--interactive-table-additional-conditions-color, #ff9800);
    opacity: 0.5;
}


.interactive-table-new-entry-separator {
    opacity: 0.5;
}

table.csv-table th.interactive-table-header--has-new-entry-link {
    --interactive-table-header-label-lines: 2;
    --interactive-table-header-label-max-height: 2.4em;
    padding-bottom: 8px;
}

table.csv-table th > .interactive-table-entry-header-new-link {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    max-width: calc(100% - 16px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
    z-index: 1;
}

.interactive-table-missing-entry-new-link {
    opacity: 0.5;
}

.interactive-table-footer__actions {
    grid-area: download;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.interactive-table-footer-action.is-feedback {
    pointer-events: none;
}

.interactive-table-footer-action.is-feedback > span {
    visibility: hidden;
}

.interactive-table-footer-action.is-unavailable {
    visibility: hidden;
    pointer-events: none;
}

.table-icon-box { border: 1px solid var(--border-color); background-color: var(--table-icon-bg, var(--input-bg)); }


@media (max-width: 900px) {
    .interactive-table-main {
        padding-bottom: 0;
    }

    .interactive-table-footer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "new"
            "meta"
            "download";
        justify-items: center;
    }

    .interactive-table-footer__meta,
    .interactive-table-footer__actions {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .interactive-table-footer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "new"
            "meta"
            "download";
        justify-items: center;
    }

    .interactive-table-footer__meta,
    .interactive-table-footer__actions {
        justify-self: center;
        text-align: center;
    }
}

.entry-top-bar {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
    align-items: center;
    column-gap: 0.5rem;
    flex: 0 0 auto;
    min-height: var(--menu-icon-container-size, 48px);
}
.interactive-table-footer-action[hidden] { display:none; }

.entry-top-bar__section {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.entry-top-bar__section--left {
    justify-self: start;
}

.entry-top-bar__section--center {
    justify-self: center;
    text-align: center;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
}

.interactive-table-title-row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
}

.interactive-table-display-mode-link,
.interactive-table-search-toggle,
.interactive-table-sql-filter-link,
.interactive-table-pivot-link,
.interactive-table-column-manager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.4em;
    height: 1.4em;
    color: var(--link-color);
    text-decoration: none;
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.interactive-table-title-row > [hidden] {
    display: none;
}

.interactive-table-display-mode-link:hover,
.interactive-table-display-mode-link:focus-visible,
.interactive-table-pivot-link:hover,
.interactive-table-pivot-link:focus-visible,
.interactive-table-column-manager-link:hover,
.interactive-table-column-manager-link:focus-visible {
    color: var(--link-color);
    text-decoration: none;
    /* header.php sets the variable to 80% of the resting opacity after any opacity range mapping. */
    opacity: var(--tnx-link-hover-opacity, 0.56);
}

/* The filter keeps its active colors, only its opacity follows the other symbols. */
a.interactive-table-sql-filter-link:hover,
a.interactive-table-sql-filter-link:focus-visible {
    opacity: var(--tnx-link-hover-opacity, 0.56);
}

.entry-top-bar__section--right {
    justify-self: end;
    text-align: right;
}

@media (min-width: 720px) {
    .entry-top-bar__section--left {
        padding-left: calc(var(--tnx-logo-space) + 0.75rem);
    }
}

.interactive-table-selector {
    flex: 0 1 34rem;
    width: min(100%, 34rem);
    min-width: 0;
    max-width: 100%;
}

.interactive-table-selector,
.interactive-table-selector-slot .interactive-table-global-search {
    box-sizing: border-box;
    min-height: 2.25rem;
    margin: 0;
    padding: 0.4rem 0.65rem;
}

.interactive-table-selector-slot {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    flex: 0 1 34rem;
    min-width: 0;
    min-height: 2.25rem;
    max-width: min(100%, 34rem);
}
.interactive-table-selector-slot > .interactive-table-selector { width: 100%; }
.interactive-table-selector-slot.is-searching > :not(.interactive-table-global-search, .tnx-search-control) { visibility: hidden; }
.interactive-table-selector-slot > .tnx-search-control { position: absolute; inset: 0; }
.interactive-table-selector-slot > .tnx-search-control > .interactive-table-global-search { position: static; }
.interactive-table-global-search {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}
.interactive-table-global-search[hidden], .interactive-table-search-toggle[hidden],
.interactive-table-search-hidden, .interactive-table-search-empty[hidden] { display: none !important; }
.interactive-table-search-empty { text-align: center; padding: 1rem; opacity: 0.5; }
.interactive-table-search-results[hidden] { display: none !important; }
.interactive-table-search-results { padding: 1rem; overflow-wrap: anywhere; }
.interactive-table-search-results article { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color, #ddd); }
.interactive-table-search-results article > div { opacity: 0.7; margin-top: 0.25rem; }
.interactive-table-search-results [role="status"] { padding: 0.75rem 0; opacity: 0.7; }
.interactive-table-page .interactive-table-board.interactive-table-board--searching {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    align-items: start;
    width: 100%;
    gap: 0.85rem;
    overflow-y: auto;
}
.interactive-table-board--searching > .interactive-table-board-column,
.interactive-table-board--searching .interactive-table-board-column-body { display: contents !important; }
.interactive-table-board--searching .interactive-table-board-column-header,
.interactive-table-board--searching .interactive-table-board-mobile-pills,
.interactive-table-board--searching .interactive-table-board-search,
.interactive-table-board--searching .interactive-table-board-filtered-out-note,
.interactive-table-board--searching .interactive-table-collapsed-group { display: none !important; }
.interactive-table-board--searching .interactive-table-board-card { min-width: 0; margin: 0; }
.interactive-table-board--searching .interactive-table-board-card:not([hidden]):not(.interactive-table-search-hidden) { display: block !important; }
@media (max-width: 1499px) {
    .interactive-table-page .interactive-table-board.interactive-table-board--searching { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
    .interactive-table-page .interactive-table-board.interactive-table-board--searching { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .interactive-table-page .interactive-table-board.interactive-table-board--searching { grid-template-columns: minmax(0, 1fr); }
    .interactive-table-page .entry-top-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-left: calc(var(--tnx-logo-space) + 0.5rem);
    }
    .interactive-table-page .entry-top-bar__section--center {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        box-sizing: border-box;
    }
    .interactive-table-page .interactive-table-title-row { display: flex; width: 100%; }
    .interactive-table-page .interactive-table-selector-slot { flex: 1 1 0; }
    .interactive-table-page .entry-top-bar__section--left { display: none; }
    .interactive-table-page .entry-top-bar__section--right { grid-column: 2; grid-row: 1; }
}

.interactive-table-selector:disabled {
    cursor: wait;
    opacity: 0.6;
}

.interactive-table-heading-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interactive-table-symbol-box { border: 1px solid var(--border-color); background-color: var(--interactive-table-symbol-bg, var(--input-bg)); }


.saving-indicator {
    opacity: 0.8;
}

#tableMeta {
    opacity: 0.3;
}

#downloadCsvBtn {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

table.csv-table {
    min-width: 100%;
    width: max-content;
    /* separate borders (not collapse): collapsed borders are painted on the
       shared grid lines and never move with position:sticky cells, so the
       scrolling content shines through exactly at the border pixels */
    border-collapse: separate;
    border-spacing: 0;
}

/* Use the existing header widths from the first layout, including before deferred
   rows arrive. A zero preferred width lets their sum set the horizontal extent;
   min-width still fills the viewport when there are only a few columns. */
#interactiveTable:not(.interactive-table--cards) {
    table-layout: fixed;
    width: 0;
}

.interactive-table-main--cards {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
}

.interactive-table-card-overview {
    position: sticky;
    left: 0;
    z-index: 12;
    display: flex;
    flex: 0 0 18rem;
    flex-direction: column;
    align-self: stretch;
    min-width: 18rem;
    max-width: 22rem;
    min-height: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    box-sizing: border-box;
    overflow: hidden;
}

.interactive-table-card-overview[hidden] {
    display: none !important;
}

.interactive-table-card-overview-header {
    --interactive-table-header-label-lines: 2;
    --interactive-table-header-label-max-height: 2.4em;
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.interactive-table-card-overview-header > .interactive-table-entry-header-new-link {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    display: inline-flex;
    max-width: calc(100% - 16px);
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interactive-table-card-overview-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.75rem;
    background: var(--bg-color);
    overflow-x: hidden;
    overflow-y: auto;
}

.interactive-table-card-overview-search {
    position: sticky;
    top: -0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: -0.75rem -0.75rem 0;
    padding: 0.75rem;
    background: var(--bg-color);
}

.interactive-table-card-overview-search input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
}

.interactive-table-card-overview-empty {
    padding: 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    opacity: 0.72;
    text-align: center;
}

.interactive-table-card-overview-empty--loading {
    border-style: none;
    padding: 0;
    opacity: 1;
}

.interactive-table-card-overview-entry[hidden] {
    display: none !important;
}

.interactive-table-card-overview-entry.is-open {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 2px 4px var(--shadow-color);
}

.interactive-table-card-overview-entry.tnx-exact-idpk-match {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color), 0 2px 4px var(--shadow-color);
}

#interactiveTable .interactive-table-card-field-label,
#interactiveTable .interactive-table-card-actions {
    display: none;
}

#interactiveTable:not(.interactive-table--cards) .interactive-table-card-field-label
    ~ .tnx-entry-note-marker--label-sibling,
#interactiveTable:not(.interactive-table--cards) .interactive-table-card-field-label
    ~ .tnx-entry-note-separator[data-entry-note-decoration],
#interactiveTable.interactive-table--cards .tnx-interactive-note-inline {
    display: none !important;
}

#interactiveTable.interactive-table--cards {
    display: block;
    flex: 1 0 calc(100% - 19rem);
    align-self: stretch;
    width: calc(100% - 19rem);
    min-width: min(16rem, calc(100% - 19rem));
    height: 100%;
    margin: 0;
    border: 0;
    overflow: visible;
}

#interactiveTable.interactive-table--cards thead {
    display: none;
}

#interactiveTable.interactive-table--cards tbody {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    height: 100%;
}

#interactiveTable.interactive-table--cards tbody > tr {
    display: none;
}

#interactiveTable.interactive-table--cards tbody > tr.is-card-open:not([hidden]) {
    position: relative;
    display: grid;
    flex: 1 0 16rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    column-gap: 1rem;
    width: auto;
    min-width: 16rem;
    max-width: 28rem;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    /* Half a line of breathing room above the entry title link at the top of the card. */
    padding: 0.6rem 0 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    box-sizing: border-box;
    clip-path: inset(0 round 8px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 0 1.5rem;
    padding: 0 0.85rem;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    overflow: visible;
    text-align: left;
    grid-column: 1 / -1;
}

/* The run bar of an adjacent start/end pair is the one row child that is not a cell, so it needs
   the full-width placement the cells get from their own rule. Outside an open card a row lays its
   children out as cells, where the bar would read as one, so there it is taken out of the flow. */
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > .tnx-temporal-progress {
    grid-column: 1 / -1;
}

#interactiveTable:not(.interactive-table--cards) .tnx-temporal-progress,
#interactiveTable tbody > tr:not(.is-card-open) > .tnx-temporal-progress {
    display: none !important;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--temporal-start {
    grid-column: 1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--temporal-end {
    grid-column: 2;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td:is(
    .interactive-table-card-field--temporal-start,
    .interactive-table-card-field--temporal-end
):not(.interactive-table-card-field--readonly-inline) {
    display: flex;
    flex-direction: column;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td:is(
    .interactive-table-card-field--temporal-start,
    .interactive-table-card-field--temporal-end
):not(.interactive-table-card-field--readonly-inline) > .interactive-table-card-field-label {
    flex-grow: 1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--temporal-readonly-end::before {
    content: " | ";
    position: absolute;
    top: 50%;
    left: -0.5rem;
    opacity: 0.25;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--temporal-start:has(+ td:is(
    .interactive-table-cell--collapsed,
    .interactive-table-collapsed-column-line,
    .interactive-table-cell--hidden-by-dependency,
    .interactive-table-collapsed-column-hidden,
    [hidden]
)) {
    grid-column: 1 / -1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td:is(
    .interactive-table-cell--collapsed,
    .interactive-table-collapsed-column-line,
    .interactive-table-cell--hidden-by-dependency,
    .interactive-table-collapsed-column-hidden,
    [hidden]
) + td.interactive-table-card-field--temporal-end {
    grid-column: 1 / -1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td:is(
    .interactive-table-cell--collapsed,
    .interactive-table-collapsed-column-line,
    .interactive-table-cell--hidden-by-dependency,
    .interactive-table-collapsed-column-hidden,
    [hidden]
) + td.interactive-table-card-field--temporal-readonly-end::before {
    display: none;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--collapsed:not(:first-of-type),
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-collapsed-column-line:not(:first-of-type),
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--hidden-by-dependency:not(:first-of-type),
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-collapsed-column-hidden:not(:first-of-type) {
    display: none;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-sticky-entry-link-cell {
    position: relative;
    left: auto;
    z-index: auto;
    background-color: transparent;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td:first-of-type .interactive-table-entry-link {
    font-weight: 700 !important;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) .interactive-table-start-divider-hitbox,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) .interactive-table-top-divider-hitbox {
    display: none !important;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) .interactive-table-card-field-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: left;
    overflow-wrap: anywhere;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) .interactive-table-card-field-label--entry {
    display: -webkit-box;
    max-height: 2.4em;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline > .interactive-table-card-field-label {
    display: inline;
    margin: 0 0.25em 0 0;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline > .interactive-table-input--readonly {
    display: inline;
    width: auto;
    min-height: 0;
    max-width: 100%;
    vertical-align: baseline;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline .preview-pill,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline .readonly-boolean-pill {
    vertical-align: middle;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--system-only {
    opacity: 0.5;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--system-only .interactive-table-system-only-content {
    opacity: 1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--human-primary .linked-entry-link,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--human-primary .linked-entry-link a,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--human-primary .field-note {
    font-weight: 700;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--human-primary .interactive-table-input {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--state > .interactive-table-card-field-label,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--state .interactive-table-input,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--state .interactive-table-input option,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--state .preview-pill {
    color: var(--accent-color) !important;
    font-weight: 700;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--state .preview-pill {
    border-color: var(--accent-color);
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--empty {
    opacity: 1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--boolean {
    text-align: left;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .interactive-table-input:not([type="color"]) {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .interactive-table-input:focus:not([readonly]):not(:disabled):not([type="color"]) {
    outline: none;
    border-color: var(--tnx-checkbox-focus-color, var(--primary-color));
    background-color: var(--bg-color);
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .interactive-table-input--readonly:not([type="color"]) {
    min-height: 1.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .interactive-table-cell-meta {
    opacity: 1;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td textarea.interactive-table-input {
    min-height: 100px !important;
    resize: vertical;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td input[type="checkbox"].interactive-table-input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .interactive-table-checkbox-line {
    display: inline-flex;
    justify-content: flex-start;
    width: auto;
    vertical-align: middle;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline > .interactive-table-checkbox-line > .interactive-table-input--readonly {
    display: inline-flex;
    width: auto;
    min-height: 0;
    max-width: 100%;
    vertical-align: middle;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--boolean .interactive-table-input--readonly,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--boolean .readonly-boolean-pill {
    margin-left: 0;
    margin-right: 0;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-cell--boolean .interactive-table-input--readonly {
    display: inline;
    width: auto;
    text-align: left;
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .readonly-boolean-pill--false {
    background: transparent;
    color: var(--text-color);
}

:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td .readonly-boolean-pill--false::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: red;
    opacity: 0.2;
}

#interactiveTable.interactive-table--cards tbody > tr.is-card-open .interactive-table-card-actions {
    position: static;
    display: flex !important;
    visibility: visible !important;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    margin: 1rem 0;
    padding: 0 0.85rem;
    box-sizing: border-box;
    pointer-events: auto !important;
    grid-column: 1 / -1;
}

@media (min-width: 720px) {
    #interactiveTable.interactive-table--cards tbody > tr.is-card-open .interactive-table-card-actions {
        order: 1;
    }
}

#interactiveTable .interactive-table-card-action {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

#interactiveTable .interactive-table-card-action:hover,
#interactiveTable .interactive-table-card-action:focus {
    background-color: var(--primary-hover);
    color: white;
}

.interactive-table-card-action--close {
    opacity: 1;
}

.interactive-table-card-action--close:hover,
.interactive-table-card-action--close:focus,
.interactive-table-card-action--close.is-peer-hover {
    opacity: 0.8;
}

@media (max-width: 719px) {
    .interactive-table-main--cards {
        display: block;
        overflow-x: hidden;
    }

    .interactive-table-card-overview {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 100%;
    }

    .interactive-table-card-overview.is-detail-open {
        display: none;
    }

    #interactiveTable.interactive-table--cards {
        width: 100%;
        min-width: 0;
        height: 100%;
    }

    #interactiveTable.interactive-table--cards tbody {
        display: block;
        width: 100%;
        height: 100%;
    }

    #interactiveTable.interactive-table--cards tbody > tr.is-card-open:not([hidden]) {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 0;
        height: 100%;
        max-height: 100%;
    }
}

table.csv-table th,
table.csv-table td {
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    min-width: 8.5rem;
    max-width: 18rem;
    padding: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

table.csv-table thead th {
    border-top: 1px solid var(--border-color);
}

table.csv-table th:first-child,
table.csv-table td:first-child {
    border-left: 1px solid var(--border-color);
}

table.csv-table th {
    --interactive-table-header-label-lines: 3;
    --interactive-table-header-label-max-height: 3.6em;
    position: sticky;
    top: 0;
    z-index: 4;
    width: 12rem;
    background: var(--bg-color);
    background-clip: padding-box;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    vertical-align: top;
    white-space: normal;
}

table.csv-table th:first-child,
table.csv-table td:first-child,
table.csv-table th[data-column-name^="__entry__"],
table.csv-table td.interactive-table-entry-link-cell {
    min-width: 9.5rem;
    width: 10rem;
    max-width: 14rem;
}

table.csv-table th[data-field-type="dropdown"],
table.csv-table td.interactive-table-cell--dropdown,
table.csv-table th.interactive-table-header--compact-number,
table.csv-table td.interactive-table-cell--compact-number {
    min-width: 7.5rem;
    width: 9.5rem;
    max-width: 14rem;
}

table.csv-table th[data-field-type="textarea"],
table.csv-table td.interactive-table-cell--textarea {
    min-width: 14rem;
    width: 18rem;
    max-width: 28rem;
}

/* A drawing column fits CLEAN, a gap of two color circles and all circles on one line. */
table.csv-table th[data-field-type="drawing"],
table.csv-table td.interactive-table-cell--drawing {
    min-width: 20rem;
    width: 21rem;
    max-width: 28rem;
}

table.csv-table:not(.interactive-table--cards) td.interactive-table-cell--centered {
    text-align: center;
}

table.csv-table:not(.interactive-table--cards) td.interactive-table-cell--centered .tnx-structured-field,
table.csv-table:not(.interactive-table--cards) td.interactive-table-cell--centered .tnx-structured-choices,
table.csv-table:not(.interactive-table--cards) td.interactive-table-cell--centered .tnx-symbol-picker {
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.interactive-table-start-divider-hitbox {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: none;
    width: 10px;
    cursor: pointer;
}

.interactive-table-start-divider-hitbox::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
}

.interactive-table-top-divider-hitbox {
    position: absolute;
    right: -1px;
    bottom: -1px;
    left: -1px;
    z-index: 7;
    display: none;
    height: 10px;
    cursor: pointer;
}

.interactive-table-top-divider-hitbox::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--border-color);
}

@media (min-width: 720px) {
    #interactiveTable[data-sticky-entry-link-column="1"] th.interactive-table-sticky-entry-link-header,
    #interactiveTable[data-sticky-entry-link-column="1"] td.interactive-table-sticky-entry-link-cell {
        position: sticky;
        left: 0;
        background-color: var(--bg-color);
        background-clip: border-box;
    }

    #interactiveTable[data-sticky-entry-link-column="1"] th.interactive-table-sticky-entry-link-header {
        z-index: 8;
    }

    #interactiveTable[data-sticky-entry-link-column="1"] td.interactive-table-sticky-entry-link-cell {
        z-index: 3;
    }

    .interactive-table-main[data-scrolled-x="1"] #interactiveTable[data-sticky-entry-link-column="1"] .interactive-table-start-divider-hitbox {
        display: block;
    }
}

.interactive-table-main[data-scrolled-y="1"] table.csv-table th > .interactive-table-top-divider-hitbox {
    display: block;
}

table.csv-table td {
    vertical-align: top;
    overflow: visible;
}

table.csv-table td > * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.interactive-table-cell--boolean {
    text-align: center;
}

.interactive-table-cell--boolean .interactive-table-input--readonly,
.interactive-table-cell--boolean .readonly-boolean-pill {
    margin-left: auto;
    margin-right: auto;
}

.interactive-table-cell--boolean .readonly-boolean-pill {
    display: flex;
    flex: 0 0 1.6rem;
}

.interactive-table-cell--boolean .interactive-table-input--readonly {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    text-justify: auto;
}

.interactive-table-cell--empty {
    opacity: 0.45;
}

/* In the table (not the cards) an empty cell dims its content and the colour of its lines rather
   than itself, so every line is drawn once and only by one cell: a line stays full when either of the
   two cells it separates has a value (the right neighbour through :has(), the one below through
   interactive-table-cell--below-filled from ./InteractiveTableCore.js) and is dimmed between empty
   cells only. Nothing is drawn on top of another line, so no line ever gets thicker. */
#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty:not(.interactive-table-cell--special-cancelled-dim) {
    --interactive-table-dim-grid-color: color-mix(in srgb, var(--border-color) 45%, transparent);
    opacity: 1;
    border-right-color: var(--interactive-table-dim-grid-color);
    border-bottom-color: var(--interactive-table-dim-grid-color);
}

#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty:not(.interactive-table-cell--special-cancelled-dim):first-child {
    border-left-color: var(--interactive-table-dim-grid-color);
}

#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty:not(.interactive-table-cell--special-cancelled-dim):has(+ td:not(.interactive-table-cell--empty)) {
    border-right-color: var(--border-color);
}

#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty.interactive-table-cell--below-filled:not(.interactive-table-cell--special-cancelled-dim) {
    border-bottom-color: var(--border-color);
}

#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty:not(.interactive-table-cell--special-cancelled-dim):not(:has(.tnx-interactive-note-inline)) > * {
    opacity: 0.45;
}

#interactiveTable:not(.interactive-table--cards) tbody td.interactive-table-cell--empty:not(.interactive-table-cell--special-cancelled-dim):not(:has(.tnx-interactive-note-inline)) > .interactive-table-system-only-content {
    opacity: 0.225;
}

.interactive-table-header--state,
.interactive-table-cell--state .interactive-table-input--state,
.interactive-table-cell--state .interactive-table-input--state option,
.interactive-table-cell--state .preview-pill {
    color: var(--accent-color) !important;
    font-weight: 700;
}

.interactive-table-cell--state .preview-pill {
    border-color: var(--accent-color);
}

.interactive-table-cell--special-cancelled-dim {
    opacity: 0.5;
}

.interactive-table-cell--empty.interactive-table-cell--special-cancelled-dim {
    opacity: 0.225;
}

.interactive-table-system-only-content {
    opacity: 0.5;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--empty:has(.tnx-interactive-note-inline),
#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--special-cancelled-dim:has(.tnx-interactive-note-inline),
#interactiveTable:not(.interactive-table--cards) .interactive-table-system-only-content:has(.tnx-interactive-note-inline) {
    opacity: 1;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--empty:has(.tnx-interactive-note-inline) .interactive-table-input {
    opacity: 0.45;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--special-cancelled-dim:has(.tnx-interactive-note-inline) .interactive-table-input,
#interactiveTable:not(.interactive-table--cards) .interactive-table-system-only-content:has(.tnx-interactive-note-inline) > .interactive-table-input {
    opacity: 0.5;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--empty.interactive-table-cell--special-cancelled-dim:has(.tnx-interactive-note-inline) .interactive-table-input,
#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--empty:has(.tnx-interactive-note-inline) > .interactive-table-system-only-content > .interactive-table-input {
    opacity: 0.225;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--special-cancelled-dim:has(.tnx-interactive-note-inline) > .interactive-table-system-only-content > .interactive-table-input {
    opacity: 0.25;
}

#interactiveTable:not(.interactive-table--cards) td.interactive-table-cell--empty.interactive-table-cell--special-cancelled-dim:has(.tnx-interactive-note-inline) > .interactive-table-system-only-content > .interactive-table-input {
    opacity: 0.1125;
}

.interactive-table-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    padding: 6px;
    border-radius: 4px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Server-rendered controls carry these states so their first paint matches the client-side
   field chrome that continues updating them after interaction. */
.interactive-table-input.is-empty {
    opacity: 0.3 !important;
}

.interactive-table-input.is-empty[data-price-field="true"],
.interactive-table-input.has-value {
    opacity: 1 !important;
}

.interactive-table-input.is-zero {
    opacity: 0.6 !important;
}

.interactive-table-input:focus:not([readonly]):not(:disabled) {
    opacity: 1 !important;
}

.interactive-table-editable-markdown-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.interactive-table-editable-markdown-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    color: var(--text-color);
}

.interactive-table-editable-markdown-preview[hidden] {
    display: none;
}

.interactive-table-editable-markdown-preview__content {
    min-height: 100%;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.interactive-table-editable-markdown-marker {
    font-weight: inherit;
    font-style: inherit;
}

.interactive-table-editable-markdown-shell--active > .interactive-table-input {
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--text-color);
}

.interactive-table-editable-markdown-shell--active > .interactive-table-input::selection {
    -webkit-text-fill-color: transparent;
}

.interactive-table-input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
}

.interactive-table-input[type="checkbox"]:checked,
.interactive-table-input[type="checkbox"].is-checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.interactive-table-input[type="checkbox"]:checked::after,
.interactive-table-input[type="checkbox"].is-checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 1rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.interactive-table-input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--tnx-checkbox-focus-color, var(--primary-color));
    box-shadow: none;
}

.interactive-table-input[type="checkbox"]:disabled {
    cursor: default;
}

.interactive-table-input[data-editable-state="readonly"] {
    cursor: default;
}

.interactive-table-input[data-editable-state="readonly"].readonly-textarea-preview--expandable {
    cursor: pointer;
}

.interactive-table-input[data-editable-state="readonly"]:focus {
    outline: none;
}

.interactive-table-input--readonly {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    min-height: 1.2rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: justify;
    text-justify: inter-word;
}

.interactive-table-input--system-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    text-justify: auto;
}

.interactive-table-input--readonly:focus {
    outline: none;
    border: none;
    background: transparent;
    box-shadow: none;
}

.interactive-table-input--readonly-linked a,
.interactive-table-input--readonly-linked span,
.interactive-table-input--readonly-semantic-linked a,
.interactive-table-input--readonly-semantic-linked span {
    display: inline;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.interactive-table-input--readonly-semantic-linked,
.interactive-table-input--readonly-linked {
    text-align: left;
    text-justify: auto;
}

.interactive-table-input--readonly-semantic-linked a {
    max-width: 100%;
}

.preview-pill {
    display: inline-block;
    max-width: 100%;
    padding: 1px 8px;
    border: 1px solid var(--text-color);
    border-radius: 999px;
    font-size: 0.8rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.readonly-boolean-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    min-width: 1.6rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 999px;
    border: 1px solid var(--text-color);
    box-sizing: border-box;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.readonly-boolean-pill__symbol {
    position: relative;
    z-index: 1;
    font-weight: 700;
    line-height: 1;
}

.readonly-boolean-pill--true {
    background: green;
    color: #fff;
}

.readonly-boolean-pill--false {
    background: red;
    color: #fff;
}

.readonly-boolean-pill--false::before {
    content: none;
}

.readonly-textarea-preview {
    white-space: normal;
    cursor: default;
    user-select: none;
    line-height: inherit;
    text-align: justify;
    text-justify: inter-word;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.readonly-textarea-preview--expandable {
    cursor: pointer;
}

/* A collapsed preview shows at most the three preview lines plus its tail line. Only the
   browser can tell where a long unbroken value wraps, so the height is bounded here and
   the value is already the right size on the first paint, instead of being drawn at full
   height and shrunk once the renderer has measured the wrapped lines. */
.readonly-textarea-preview--collapsed {
    max-height: 6em;
    max-height: 4lh;
    overflow: hidden;
}

.readonly-textarea-preview--expanded {
    user-select: text;
}

.readonly-textarea-preview__line {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: inherit;
    cursor: inherit;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: justify;
}

.readonly-textarea-preview__paragraph {
    white-space: normal;
    word-break: break-word;
    line-height: inherit;
    cursor: inherit;
    text-align: justify;
    text-justify: inter-word;
}

.readonly-textarea-preview__paragraph--flattened {
    text-align: left;
    text-justify: auto;
    text-align-last: auto;
}

.readonly-textarea-preview__paragraph--manual-breaks,
.readonly-textarea-preview__line--manual-break {
    text-align: left;
    text-justify: auto;
    text-align-last: auto;
}

.readonly-textarea-preview__line--flattened {
    text-align-last: auto;
}

.readonly-textarea-preview__line--tail {
    text-align: left;
    text-align-last: auto;
    text-justify: auto;
}

.readonly-textarea-preview__tail-text {
    opacity: 0.5;
}

.readonly-textarea-preview__tail-text--full {
    opacity: 1;
}

.readonly-textarea-preview__dots {
    color: var(--primary-color);
    margin-left: 0.25em;
    cursor: pointer;
}


.interactive-table-input.negative-value {
    color: #d40000;
}

.interactive-table-input--textarea {
    height: 56px;
    min-height: 56px;
    resize: vertical;
    transition: height 0.2s ease, min-height 0.2s ease;
}

.interactive-table-input--textarea.is-measuring-height {
    transition: none;
}

.interactive-table-cell-meta {
    margin-top: 4px;
    opacity: 1;
    font-size: 0.8rem;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.interactive-table-cell-meta > :not(.interactive-table-meta-inline),
.interactive-table-meta-inline > :not(.tnx-interactive-note-inline) {
    opacity: 0.55;
}

.interactive-table-meta-inline > .tnx-interactive-note-inline,
.interactive-table-meta-inline > .tnx-interactive-note-inline > .tnx-entry-note-marker {
    opacity: 1 !important;
}

.interactive-table-checkbox-line {
    container-name: tnx-interactive-checkbox-line;
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-width: 0;
}

.interactive-table-checkbox-line > .tnx-interactive-checkbox-note-inline {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    margin-inline-end: 0.15em;
}

.interactive-table-checkbox-line > .interactive-table-input,
.interactive-table-checkbox-line > .interactive-table-input--readonly {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin-right: 0;
    margin-left: 0;
}

.interactive-table-checkbox-line > input[type="checkbox"].interactive-table-input {
    width: 1.5rem;
    min-width: 1.5rem;
}

@container tnx-interactive-checkbox-line (max-width: 5rem) {
    .interactive-table-checkbox-line > .tnx-interactive-checkbox-note-inline {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        margin-top: 0.15em;
        margin-inline-end: 0;
    }

    .interactive-table-checkbox-line > .interactive-table-input,
    .interactive-table-checkbox-line > .interactive-table-input--readonly {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

.interactive-table-header--empty {
    opacity: 0.5;
}

.tnx-table-nav-column-header-selected,
.tnx-table-nav-row-key-selected {
    color: var(--accent-color);
    font-weight: 700;
}

.tnx-table-nav-row-key-selected .interactive-table-entry-link {
    color: var(--link-color);
    font-weight: 700;
}

.interactive-table-header-content {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    min-height: 1.25em;
}

/* Two label lines and, under them, the row the "+ NEW" link sits in: the label keeps its full width
   instead of giving way to the link on every line, and the header stays as tall as a 3-line one. */
.interactive-table-header-content--has-new-entry {
    min-height: 3.6em;
    padding-bottom: 1.2em;
}

.interactive-table-header-label {
    display: -webkit-box;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: var(--interactive-table-header-label-max-height, 3.6em);
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
    hyphens: none;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--interactive-table-header-label-lines, 3);
    line-clamp: var(--interactive-table-header-label-lines, 3);
}

.interactive-table-entry-header-label {
    color: inherit;
}

.interactive-table-entry-header-table-link,
.interactive-table-entry-header-table-link:visited {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.interactive-table-entry-header-table-link:hover {
    color: inherit;
    opacity: 0.8;
}

.interactive-table-entry-header-table-name {
    cursor: default;
}

.interactive-table-header-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.interactive-table-header-collapsed-actions {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    white-space: nowrap;
}

.interactive-table-header-content--collapsed {
    display: flex;
    justify-content: flex-end;
}

.interactive-table-header-content--collapsed .interactive-table-header-collapsed-actions {
    position: static;
    transform: none;
}

.interactive-table-header-action-link {
    color: var(--link-color);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s;
}

.interactive-table-header-action-link:hover,
.interactive-table-header-action-link:focus-visible {
    color: var(--link-color);
    text-decoration: none;
    opacity: var(--tnx-link-hover-opacity, 0.8);
}

.interactive-table-header-map {
    opacity: 0.5;
}

.interactive-table-header-map:hover,
.interactive-table-header-map:focus-visible {
    opacity: var(--tnx-link-hover-opacity, 0.4);
}

.interactive-table-filter-menu {
    position: fixed;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    width: min(22rem, calc(100vw - 16px));
    max-height: min(32rem, calc(100vh - 16px));
    overflow: hidden;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg, var(--background-color));
    color: var(--text-color);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.interactive-table-filter-option--sql-baseline-applied {
    opacity: 0.5;
}

.interactive-table-filter-menu__options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    min-height: 0;
    margin: 0.7rem 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    scrollbar-gutter: stable;
}

.interactive-table-filter-menu__options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.interactive-table-filter-menu__options input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.interactive-table-filter-menu__options label > span {
    line-height: 1.2;
}

/* Long values stay on one line, the label's title carries the full text. */
.interactive-table-filter-menu__options .interactive-table-filter-option-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.interactive-table-filter-menu__master {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

.interactive-table-filter-menu__master-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.interactive-table-filter-menu__master-row > .interactive-table-filter-menu__master {
    flex: 1 1 auto;
    min-width: 0;
}

/* Keep the header filters accessible alongside the empty-result message. */
#interactiveTableMain.tnx-table-all-rows-filtered > #interactiveTable:not(.interactive-table--cards):not(.tnx-pivot-source-hidden):not([hidden]) {
    display: table !important;
}

.interactive-table-filter-menu__search-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color, var(--input-bg));
    color: var(--text-color);
    font-size: 0.9rem;
}

.interactive-table-filter-menu__search-results {
    display: grid;
    gap: 0.35rem;
}

.interactive-table-filter-menu__search-empty {
    color: #c0392b;
    font-size: 0.82rem;
}

.interactive-table-filter-menu__search-results[hidden],
.interactive-table-filter-menu__search-empty[hidden] {
    display: none;
}

/*
 * While the box holds a query the matches live in the results container, so every remaining
 * resting node (including the SELECT ALL / UNSELECT ALL master row) stays out of the way until
 * the query is cleared again.
 */
.interactive-table-filter-menu__options.is-team-filter-searching > *:not(.interactive-table-filter-menu__search):not(.interactive-table-filter-menu__colorcode):not(.interactive-table-filter-menu__search-results):not(.interactive-table-filter-menu__search-empty) {
    display: none;
}

.interactive-table-filter-temporal-group-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
    font-weight: 700;
}

.interactive-table-filter-temporal-group-text {
    font-weight: 700;
    line-height: 1.2;
}

.interactive-table-filter-team-role-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.interactive-table-filter-team-role-text {
    font-weight: 700;
    line-height: 1.2;
}

.interactive-table-filter-team-role-content {
    margin-left: 1rem;
}

.interactive-table-filter-temporal-year-content,
.interactive-table-filter-temporal-month {
    margin-left: 1rem;
}

.interactive-table-filter-temporal-month-content {
    margin-left: 1rem;
}

.interactive-table-filter-option-value--true {
    color: #16833a;
    font-weight: 700;
}

.interactive-table-filter-option-value--false {
    color: #c0392b;
    font-weight: 700;
}

.interactive-table-column-manager-menu .interactive-table-filter-menu__options {
    margin-bottom: 0;
}

table.csv-table th.interactive-table-header--collapsed > *,
table.csv-table th.interactive-table-header--collapsed *,
table.csv-table td.interactive-table-cell--collapsed > *,
table.csv-table td.interactive-table-cell--collapsed * {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

table.csv-table th.interactive-table-header--collapsed,
table.csv-table td.interactive-table-cell--collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center;
    white-space: nowrap;
    overflow: hidden !important;
}

table.csv-table th.interactive-table-header--collapsed::before,
table.csv-table th.interactive-table-header--collapsed::after,
table.csv-table td.interactive-table-cell--collapsed::before,
table.csv-table td.interactive-table-cell--collapsed::after {
    display: none !important;
    content: none !important;
}

table.csv-table th.interactive-table-collapsed-column-line,
table.csv-table td.interactive-table-collapsed-column-line {
    width: 5px !important;
    min-width: 5px !important;
    max-width: 5px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border-color: var(--border-color) !important;
    background: var(--border-color) !important;
    background-clip: border-box !important;
    box-shadow: none !important;
    cursor: pointer;
}

#interactiveTableMain.tnx-table-all-columns-minimized + #interactiveTableHorizontalScrollbar,
#interactiveTableMain.tnx-table-all-rows-filtered + #interactiveTableHorizontalScrollbar {
    display: none !important;
}

table.csv-table th.interactive-table-header--collapsed:focus,
table.csv-table td.interactive-table-cell--collapsed:focus,
table.csv-table th.interactive-table-header--collapsed *:focus,
table.csv-table td.interactive-table-cell--collapsed *:focus {
    outline: none !important;
    box-shadow: none !important;
}

table.csv-table th.interactive-table-collapsed-column-hidden,
table.csv-table td.interactive-table-collapsed-column-hidden {
    display: none !important;
}

.linked-entry-link {
    text-align: right;
    margin-top: 4px;
}

.linked-entry-link.linked-entry-link--reserved {
    min-height: 1.2em;
}

.linked-entry-note {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.35em;
    flex-wrap: wrap;
    width: 100%;
    text-align: right;
}

.linked-entry-note-text {
    color: red;
}

.linked-entry-search-results .linked-entry-note {
    justify-content: flex-start;
    text-align: left;
}

.interactive-table-cell--human-primary .linked-entry-link,
.interactive-table-cell--human-primary .linked-entry-link a,
.interactive-table-cell--human-primary .field-note {
    font-weight: 700;
}

.contact-link {
    display: none;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 4px;
    opacity: 0.3;
}

/* A contact name is as long as a person's name happens to be, so it is cut the way the linked
   entry label beside it already is: an ellipsis at the end rather than a meta line pushed past
   the cell. The short "EMAIL" keeps every bit of room it always had. */
.contact-link--contact {
    min-width: 0;
    max-width: 100%;
}

.contact-link--contact > a {
    display: block;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-link {
    display: none;
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0;
    margin-left: auto;
    order: 2;
    opacity: 0.3;
}

.linked-entry-search-results {
    margin-top: 4px;
    max-height: 120px;
    overflow-y: auto;
    border-left: 2px solid var(--border-color);
    padding-left: 8px;
}

.search-results .search-select {
    cursor: pointer;
}

.search-results button.search-select {
    background: none;
    border: none;
    color: var(--link-color);
    padding: 0;
    font: inherit;
    text-align: left;
}
.search-results .search-select.search-select-active {
    opacity: 0.8;
}
.search-results .search-select.tnx-keyboard-nav-link-selected {
    display: inline-block;
    max-width: 100%;
}

.loading-dots {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
}

.loading-dots.left {
    justify-content: flex-start;
    padding-left: 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.field-note {
    margin-top: 2px;
    font-size: 0.8em;
}

.interactive-table-meta-inline {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.5em;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 2px;
}

.interactive-table-meta-right {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    /* Shrinkable so a long linked label truncates instead of pushing the meta line
       past the cell. Only the linked label itself gives way, see below. */
    flex: 0 1 auto;
    min-width: 0;
    order: 2;
    margin-left: auto;
    white-space: nowrap;
}

.interactive-table-meta-right > .contact-link,
.interactive-table-meta-right > .calendar-link,
.interactive-table-meta-right > .linked-entry-link,
.interactive-table-meta-right > .field-note--price {
    margin-top: 0;
}

.interactive-table-meta-right > .contact-link,
.interactive-table-meta-right > .calendar-link,
.interactive-table-meta-right > .field-note--price {
    flex: 0 0 auto;
}

/* Only the one that carries a name gives way, exactly like the linked entry label below. */
.interactive-table-meta-right > .contact-link--contact {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

.interactive-table-meta-right > .linked-entry-link {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

/* Clipping the label for its ellipsis stops it from handing a text baseline upwards, so
   both rows around it would align it against a synthesized one and drop it onto a line of
   its own below the note marker. Every item on these rows is one line of the same size,
   so aligning them by their bottom edge puts them back on one shared line. */
.interactive-table-meta-right:has(> .linked-entry-link > :is(a, span)) {
    align-items: flex-end;
    align-self: flex-end;
}

.interactive-table-meta-inline > .tnx-interactive-note-separator {
    display: none;
}

.interactive-table-meta-inline > .tnx-interactive-note-inline
    + .tnx-interactive-note-separator:has(~ .field-note:not(:empty), ~ .entry-date-note:not(:empty)) {
    display: inline;
}

.field-note--price {
    opacity: 0.5;
    text-align: right;
}

.field-note--price.has-gross-note {
    opacity: 1;
    font-weight: 700;
}

.interactive-table-gross-note--inline {
    display: inline;
    margin-left: 0.35em;
    opacity: 1;
    font-weight: inherit;
    vertical-align: baseline;
}

.field-note--date {
    opacity: 0.3;
    text-align: left;
    margin-top: 0;
    order: 1;
}

.interactive-table-readonly-calendar-note {
    opacity: 0.5;
}

.interactive-table-field-type {
    margin-top: 2px;
    opacity: 0.7;
}

/* Structured readonly values (color, multiselect pills, tri-state) sit inside their field wrapper. */
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline > .tnx-structured-field,
:is(#interactiveTable.interactive-table--cards, .interactive-table-card-fields) tbody > tr.is-card-open > td.interactive-table-card-field--readonly-inline > .tnx-structured-field > .interactive-table-input--readonly {
    display: inline;
    width: auto;
    min-height: 0;
    max-width: 100%;
    vertical-align: middle;
}

/* Expandable board cards share field presentation with the regular mobile cards. */
.interactive-table-board-card-heading { display: flex; align-items: center; gap: .5rem; padding: .35rem .85rem; min-height: 2.5rem; cursor: pointer; }
.interactive-table-board-card-heading > .interactive-table-board-card-link { flex: 1 1 0; width: auto; min-width: 0; padding: .4rem 0; font-weight: 700; }
a.interactive-table-card-toggle,
a.interactive-table-card-move { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; box-sizing: border-box; width: max(48px, 3rem); min-width: 48px; max-width: none; height: max(48px, 3rem); margin: 0; padding: .5rem; color: var(--link-color); cursor: pointer; font-weight: 700; text-decoration: none; }
.interactive-table-card-toggle:hover,
.interactive-table-card-move:hover { opacity: .5; }
.interactive-table-card-toggle[hidden], .interactive-table-card-details[hidden] { display: none !important; }
.interactive-table-chevron { display: block; width: .6em; height: .6em; border-right: .18em solid currentColor; border-bottom: .18em solid currentColor; transform: rotate(45deg); }
[aria-expanded="true"] > .interactive-table-chevron { transform: rotate(225deg); }
#interactiveTableExpandAll { width: 1.6rem; min-width: 0; max-width: 1.6rem; height: 1.6rem; padding: .2rem; font-size: .8rem; opacity: .7; transition: opacity .2s ease; }
#interactiveTableExpandAll:is(:hover, :focus-visible) { opacity: var(--tnx-link-hover-opacity, .56); }
.interactive-table-card-details { margin-top: .6rem; cursor: auto; }
.interactive-table-card-fields, .interactive-table-card-fields > tbody { display: block; width: 100%; border: 0; }
.interactive-table-card-fields > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; column-gap: .6rem; }
.interactive-table-card-fields > tbody > tr > td:first-of-type,
.interactive-table-card-fields td[hidden],
.interactive-table-card-fields .interactive-table-card-actions { display: none !important; }
.interactive-table-card-fields td { white-space: normal; }
.interactive-table-board[data-cards-layout="grid"] { display: block; width: 100%; }
.interactive-table-board[data-cards-layout="grid"] > .interactive-table-board-column { width: 100%; max-width: none; min-width: 0; border: 0; background: transparent; }
.interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column-header,
.interactive-table-board[data-cards-layout="grid"] .interactive-table-board-mobile-pills { display: none; }
.interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; align-items: start; gap: .85rem; }
.interactive-table-board[data-cards-layout="grid"] .interactive-table-board-search { position: static; align-self: start; }
.interactive-table-board[data-cards-layout="grid"] .interactive-table-board-card { min-width: 0; margin: 0; }
@media (max-width: 1499px) { .interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099px) { .interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column-body { grid-template-columns: minmax(0, 1fr); } }

a.interactive-table-card-move { display: none; }
@media (max-width: 719px) {
    a.interactive-table-card-move { display: inline-flex; }
    .interactive-table-board[data-cards-layout="grid"] .interactive-table-board-column { display: flex !important; }
}

.interactive-table-board-card-heading > a.interactive-table-card-toggle {
    position: relative;
    color: var(--link-color);
    opacity: 1;
}
.interactive-table-board-card-heading > a.interactive-table-card-toggle:is(:hover, :focus-visible) {
    color: var(--link-color);
    opacity: .8;
}
.interactive-table-board-card-heading > .interactive-table-card-toggle::before,
.interactive-table-board-card-heading > .interactive-table-card-toggle::after {
    content: '';
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    border-radius: 50%;
    pointer-events: none;
}
.interactive-table-board-card-heading > .interactive-table-card-toggle::before {
    border: 2px solid var(--link-color);
    opacity: .2;
    mask: conic-gradient(transparent calc(var(--card-completion, 0) * 1%), #000 0);
}
.interactive-table-board-card-heading > .interactive-table-card-toggle::after {
    opacity: .7;
    background: conic-gradient(var(--link-color) calc(var(--card-completion, 0) * 1%), transparent 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 1px));
}
.interactive-table-board-card-heading .interactive-table-chevron {
    width: .8em;
    height: .5em;
    border: 0;
    background: currentColor;
    clip-path: polygon(0 25%, 15% 0, 50% 60%, 85% 0, 100% 25%, 50% 100%);
    transform: none;
}
.interactive-table-board-card-heading [aria-expanded="true"] > .interactive-table-chevron {
    transform: rotate(180deg);
}
