.smart-table-host {
    display: block;
    min-width: 0;
}

.smart-table-card {
    border: 1px solid var(--tsh-border, rgba(148, 163, 184, .22));
    background: var(--tsh-surface, rgba(20,24,32,.88));
    border-radius: var(--tsh-radius-lg, 18px);
    overflow: hidden;
    box-shadow: var(--tsh-shadow-card, 0 18px 50px rgba(0,0,0,.22));
}

.smart-table-toolbar,
.smart-pagination,
.smart-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148, 163, 184, .14));
}

.smart-table-toolbar {
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

.smart-table-title {
    display: grid;
    gap: 3px;
    min-width: 180px;
}

.smart-table-title strong {
    color: var(--tsh-text, #e5e7eb);
    font-size: .98rem;
    letter-spacing: -.01em;
}

.smart-table-title small {
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .78rem;
}

.smart-table-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.smart-search-wrap {
    min-width: 220px;
    max-width: 360px;
    flex: 1 1 240px;
}

.smart-table-search {
    width: 100%;
}

.smart-input.compact,
.ah-btn.compact {
    min-height: 28px;
    height: 28px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: .78rem;
}

.smart-toolbar-toggle.active {
    border-color: var(--tsh-primary, #60a5fa);
    color: var(--tsh-primary, #60a5fa);
    background: color-mix(in srgb, var(--tsh-primary, #60a5fa) 12%, transparent);
}

.smart-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--tsh-primary, #3b82f6);
    font-size: .68rem;
    font-weight: 850;
}

.smart-filter-panel,
.smart-column-panel {
    padding: 12px 14px 14px;
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148, 163, 184, .14));
    background: rgba(255,255,255,.028);
}

.smart-filter-panel[hidden],
.smart-column-panel[hidden],
.smart-bulk-bar[hidden] {
    display: none !important;
}

.smart-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.smart-panel-head strong {
    color: var(--tsh-text, #e5e7eb);
    font-size: .88rem;
}

.smart-panel-note {
    margin-top: 9px;
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .76rem;
}

.smart-filter-grid,
.smart-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.smart-filter-field,
.smart-column-field {
    display: grid;
    gap: 6px;
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .77rem;
    font-weight: 700;
}

.smart-column-field {
    grid-template-columns: auto minmax(0, 1fr) 74px;
    align-items: center;
    padding: 8px 9px;
    border: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.18));
    border-radius: var(--tsh-radius-md, 12px);
    background: rgba(255,255,255,.03);
}

.smart-column-field span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-table-hint {
    padding: 8px 14px;
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .73rem;
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.12));
    background: rgba(255,255,255,.015);
}

.smart-pagination {
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--tsh-text-muted, #94a3b8);
    background: rgba(255,255,255,.018);
}

.smart-pagination-bottom {
    border-top: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.14));
    border-bottom: 0;
}

.smart-page-size,
.smart-page-controls,
.page-jump-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.smart-page-size select {
    width: 76px;
}

.smart-page-summary {
    font-weight: 750;
    color: var(--tsh-text, #e5e7eb);
}

.smart-page-controls .ah-btn.icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
}

.page-jump {
    width: 58px;
    text-align: center;
}

.table-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(148,163,184,.25);
    border-top-color: var(--tsh-primary, #60a5fa);
    border-radius: 50%;
    animation: spin .75s linear infinite;
    opacity: 0;
}

.table-spinner.active {
    opacity: 1;
}

.smart-bulk-bar {
    justify-content: flex-start;
    border-color: color-mix(in srgb, var(--tsh-primary, #60a5fa) 32%, var(--tsh-border, rgba(148,163,184,.22)));
    background: linear-gradient(90deg, color-mix(in srgb, var(--tsh-primary, #60a5fa) 14%, transparent), rgba(255,255,255,.02));
}

.smart-bulk-bar [data-st-selection-count] {
    font-weight: 850;
    color: var(--tsh-text, #e5e7eb);
}

.smart-table-wrap {
    overflow: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.22) transparent;
}

.smart-table.server-driven {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 100%;
    width: max-content;
}

.smart-table.server-driven th,
.smart-table.server-driven td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.12));
    text-align: left;
    vertical-align: middle;
}

.smart-table.server-driven th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--tsh-text-muted, #cbd5e1);
    background: var(--tsh-surface-strong, #111827);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .065em;
    font-weight: 850;
    user-select: none;
}

.smart-table.server-driven th.sorted {
    color: var(--tsh-primary, #60a5fa);
    background: color-mix(in srgb, var(--tsh-primary, #60a5fa) 12%, var(--tsh-surface-strong, #111827));
}

.smart-table.server-driven th.dragging {
    opacity: .55;
}

.smart-table.server-driven th.drag-over {
    outline: 2px solid color-mix(in srgb, var(--tsh-primary, #60a5fa) 55%, transparent);
    outline-offset: -2px;
}

.smart-th-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    position: relative;
    padding-right: 9px;
}

.smart-sort-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.smart-sort-button:disabled {
    cursor: default;
    opacity: .72;
}

.smart-sort-button span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sort-mark {
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}

.sort-index {
    display: inline-grid;
    place-items: center;
    min-width: 14px;
    height: 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tsh-primary, #60a5fa) 24%, transparent);
    color: var(--tsh-primary, #60a5fa);
    font-size: .58rem;
    font-weight: 900;
}

.smart-col-drag {
    cursor: grab;
    color: var(--tsh-text-muted, #94a3b8);
    opacity: .7;
    font-size: .8rem;
    line-height: 1;
}

.smart-col-drag:active {
    cursor: grabbing;
}

.smart-col-resize {
    position: absolute;
    top: -7px;
    right: -4px;
    width: 9px;
    height: calc(100% + 14px);
    cursor: col-resize;
    z-index: 3;
}

.smart-col-resize::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(148,163,184,.42);
}

.smart-col-resize:hover::after {
    background: var(--tsh-primary, #60a5fa);
}

.smart-resizing,
.smart-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

.smart-table.server-driven td {
    color: var(--tsh-text, #e5e7eb);
    font-size: .82rem;
    height: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-table.server-driven tbody tr:hover td {
    background: rgba(255,255,255,.036);
}

.smart-cell-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smart-cell-time,
.smart-muted {
    color: var(--tsh-text-muted, #94a3b8);
}

.smart-cell-code .ah-code,
.smart-table .ah-code {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-col {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    text-align: center !important;
}

.select-col input {
    width: 14px;
    height: 14px;
    accent-color: var(--tsh-primary, #60a5fa);
}

.row-actions-col {
    width: 1%;
    min-width: 132px;
    white-space: nowrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.row-actions .ah-btn,
.smart-bulk-bar .ah-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.row-actions .btn-ico,
.smart-bulk-bar .btn-ico {
    width: 13px;
    height: 13px;
}

.smart-table-empty-cell {
    padding: 26px !important;
}

.smart-row-enter {
    animation: smartRowEnter .18s ease both;
}

@keyframes smartRowEnter {
    from { opacity: .3; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.smart-row-d0 { animation-delay: 0ms; }
.smart-row-d1 { animation-delay: 8ms; }
.smart-row-d2 { animation-delay: 12ms; }
.smart-row-d3 { animation-delay: 16ms; }
.smart-row-d4 { animation-delay: 20ms; }
.smart-row-d5 { animation-delay: 24ms; }
.smart-row-d6 { animation-delay: 28ms; }
.smart-row-d7 { animation-delay: 32ms; }
.smart-row-d8 { animation-delay: 36ms; }
.smart-row-d9 { animation-delay: 40ms; }
.smart-row-d10 { animation-delay: 44ms; }
.smart-row-d11 { animation-delay: 48ms; }
.smart-row-d12 { animation-delay: 52ms; }
.smart-row-d13 { animation-delay: 56ms; }
.smart-row-d14 { animation-delay: 60ms; }
.smart-row-d15 { animation-delay: 64ms; }
.smart-row-d16 { animation-delay: 68ms; }

@media (prefers-reduced-motion: reduce) {
    .smart-row-enter { animation: none; }
}

@media (max-width: 820px) {
    .smart-table-toolbar,
    .smart-pagination {
        align-items: stretch;
        flex-direction: column;
    }
    .smart-table-tools,
    .smart-page-controls,
    .smart-page-size {
        width: 100%;
    }
    .smart-search-wrap {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* CSP-safe persisted column widths: classes only, no inline style attributes. */
.smart-table.server-driven .st-w-80 { width: 80px; min-width: 80px; max-width: 80px; }
.smart-table.server-driven .st-w-90 { width: 90px; min-width: 90px; max-width: 90px; }
.smart-table.server-driven .st-w-100 { width: 100px; min-width: 100px; max-width: 100px; }
.smart-table.server-driven .st-w-110 { width: 110px; min-width: 110px; max-width: 110px; }
.smart-table.server-driven .st-w-120 { width: 120px; min-width: 120px; max-width: 120px; }
.smart-table.server-driven .st-w-130 { width: 130px; min-width: 130px; max-width: 130px; }
.smart-table.server-driven .st-w-140 { width: 140px; min-width: 140px; max-width: 140px; }
.smart-table.server-driven .st-w-150 { width: 150px; min-width: 150px; max-width: 150px; }
.smart-table.server-driven .st-w-160 { width: 160px; min-width: 160px; max-width: 160px; }
.smart-table.server-driven .st-w-170 { width: 170px; min-width: 170px; max-width: 170px; }
.smart-table.server-driven .st-w-180 { width: 180px; min-width: 180px; max-width: 180px; }
.smart-table.server-driven .st-w-190 { width: 190px; min-width: 190px; max-width: 190px; }
.smart-table.server-driven .st-w-200 { width: 200px; min-width: 200px; max-width: 200px; }
.smart-table.server-driven .st-w-210 { width: 210px; min-width: 210px; max-width: 210px; }
.smart-table.server-driven .st-w-220 { width: 220px; min-width: 220px; max-width: 220px; }
.smart-table.server-driven .st-w-230 { width: 230px; min-width: 230px; max-width: 230px; }
.smart-table.server-driven .st-w-240 { width: 240px; min-width: 240px; max-width: 240px; }
.smart-table.server-driven .st-w-250 { width: 250px; min-width: 250px; max-width: 250px; }
.smart-table.server-driven .st-w-260 { width: 260px; min-width: 260px; max-width: 260px; }
.smart-table.server-driven .st-w-270 { width: 270px; min-width: 270px; max-width: 270px; }
.smart-table.server-driven .st-w-280 { width: 280px; min-width: 280px; max-width: 280px; }
.smart-table.server-driven .st-w-290 { width: 290px; min-width: 290px; max-width: 290px; }
.smart-table.server-driven .st-w-300 { width: 300px; min-width: 300px; max-width: 300px; }
.smart-table.server-driven .st-w-310 { width: 310px; min-width: 310px; max-width: 310px; }
.smart-table.server-driven .st-w-320 { width: 320px; min-width: 320px; max-width: 320px; }
.smart-table.server-driven .st-w-330 { width: 330px; min-width: 330px; max-width: 330px; }
.smart-table.server-driven .st-w-340 { width: 340px; min-width: 340px; max-width: 340px; }
.smart-table.server-driven .st-w-350 { width: 350px; min-width: 350px; max-width: 350px; }
.smart-table.server-driven .st-w-360 { width: 360px; min-width: 360px; max-width: 360px; }
.smart-table.server-driven .st-w-370 { width: 370px; min-width: 370px; max-width: 370px; }
.smart-table.server-driven .st-w-380 { width: 380px; min-width: 380px; max-width: 380px; }
.smart-table.server-driven .st-w-390 { width: 390px; min-width: 390px; max-width: 390px; }
.smart-table.server-driven .st-w-400 { width: 400px; min-width: 400px; max-width: 400px; }
.smart-table.server-driven .st-w-410 { width: 410px; min-width: 410px; max-width: 410px; }
.smart-table.server-driven .st-w-420 { width: 420px; min-width: 420px; max-width: 420px; }
.smart-table.server-driven .st-w-430 { width: 430px; min-width: 430px; max-width: 430px; }
.smart-table.server-driven .st-w-440 { width: 440px; min-width: 440px; max-width: 440px; }
.smart-table.server-driven .st-w-450 { width: 450px; min-width: 450px; max-width: 450px; }
.smart-table.server-driven .st-w-460 { width: 460px; min-width: 460px; max-width: 460px; }
.smart-table.server-driven .st-w-470 { width: 470px; min-width: 470px; max-width: 470px; }
.smart-table.server-driven .st-w-480 { width: 480px; min-width: 480px; max-width: 480px; }
.smart-table.server-driven .st-w-490 { width: 490px; min-width: 490px; max-width: 490px; }
.smart-table.server-driven .st-w-500 { width: 500px; min-width: 500px; max-width: 500px; }
.smart-table.server-driven .st-w-510 { width: 510px; min-width: 510px; max-width: 510px; }
.smart-table.server-driven .st-w-520 { width: 520px; min-width: 520px; max-width: 520px; }
.smart-table.server-driven .st-w-530 { width: 530px; min-width: 530px; max-width: 530px; }
.smart-table.server-driven .st-w-540 { width: 540px; min-width: 540px; max-width: 540px; }
.smart-table.server-driven .st-w-550 { width: 550px; min-width: 550px; max-width: 550px; }
.smart-table.server-driven .st-w-560 { width: 560px; min-width: 560px; max-width: 560px; }
.smart-table.server-driven .st-w-570 { width: 570px; min-width: 570px; max-width: 570px; }
.smart-table.server-driven .st-w-580 { width: 580px; min-width: 580px; max-width: 580px; }
.smart-table.server-driven .st-w-590 { width: 590px; min-width: 590px; max-width: 590px; }
.smart-table.server-driven .st-w-600 { width: 600px; min-width: 600px; max-width: 600px; }
.smart-table.server-driven .st-w-610 { width: 610px; min-width: 610px; max-width: 610px; }
.smart-table.server-driven .st-w-620 { width: 620px; min-width: 620px; max-width: 620px; }
.smart-table.server-driven .st-w-630 { width: 630px; min-width: 630px; max-width: 630px; }
.smart-table.server-driven .st-w-640 { width: 640px; min-width: 640px; max-width: 640px; }
.smart-table.server-driven .st-w-650 { width: 650px; min-width: 650px; max-width: 650px; }
.smart-table.server-driven .st-w-660 { width: 660px; min-width: 660px; max-width: 660px; }
.smart-table.server-driven .st-w-670 { width: 670px; min-width: 670px; max-width: 670px; }
.smart-table.server-driven .st-w-680 { width: 680px; min-width: 680px; max-width: 680px; }
.smart-table.server-driven .st-w-690 { width: 690px; min-width: 690px; max-width: 690px; }
.smart-table.server-driven .st-w-700 { width: 700px; min-width: 700px; max-width: 700px; }

.smart-table .ah-btn.smart-action-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.smart-table .ah-btn.smart-action-icon .btn-ico {
    width: 14px;
    height: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Iteration 2 hotfix 4: SmartTable dropdown panels and contained table scroll. */
.smart-table-host,
.smart-table-card {
    max-width: 100%;
    min-width: 0;
}

.smart-table-card {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.smart-menu-layer {
    position: relative;
    z-index: 30;
    height: 0;
}

.smart-dropdown-panel {
    position: absolute;
    top: 8px;
    right: 14px;
    width: min(560px, calc(100vw - 72px));
    max-height: min(70vh, 620px);
    overflow: auto;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--tsh-primary, #60a5fa) 22%, var(--tsh-border, rgba(148,163,184,.22)));
    border-radius: var(--tsh-radius-lg, 18px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--tsh-primary, #60a5fa) 10%, transparent), transparent 220px),
        var(--tsh-surface-strong, #111827);
    box-shadow: 0 26px 70px rgba(15,23,42,.34), 0 0 0 1px rgba(255,255,255,.04) inset;
    animation: smartDropdownIn .14s ease-out both;
}

.smart-dropdown-panel[hidden] {
    display: none !important;
}

@keyframes smartDropdownIn {
    from { opacity: .45; transform: translateY(-4px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.smart-panel-head > div {
    display: grid;
    gap: 2px;
}

.smart-panel-head small {
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .72rem;
    font-weight: 650;
}

.smart-filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.14));
}

.smart-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 4px 4px 9px;
    border: 1px solid color-mix(in srgb, var(--tsh-primary, #60a5fa) 28%, var(--tsh-border, rgba(148,163,184,.22)));
    border-radius: 999px;
    background: color-mix(in srgb, var(--tsh-primary, #60a5fa) 10%, transparent);
    color: var(--tsh-text, #e5e7eb);
    font-size: .76rem;
}

.smart-filter-chip strong {
    font-weight: 850;
}

.smart-filter-chip em {
    color: var(--tsh-text-muted, #94a3b8);
    font-style: normal;
}

.smart-filter-chip button {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--tsh-text, #e5e7eb);
    cursor: pointer;
    line-height: 1;
}

.smart-filter-chip button:hover {
    background: rgba(248,113,113,.18);
    color: #fecaca;
}

.smart-empty-mini {
    width: 100%;
    padding: 10px 11px;
    border: 1px dashed var(--tsh-border-subtle, rgba(148,163,184,.18));
    border-radius: var(--tsh-radius-md, 12px);
    color: var(--tsh-text-muted, #94a3b8);
    background: rgba(255,255,255,.025);
    font-size: .78rem;
}

.smart-filter-builder {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(130px, .9fr) minmax(150px, 1.1fr) auto;
    align-items: end;
    gap: 10px;
}

.smart-filter-builder label {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--tsh-text-muted, #94a3b8);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.smart-filter-builder [data-st-filter-value-slot] {
    display: block;
    min-width: 0;
}

.smart-filter-builder [data-st-filter-value-slot] .smart-input {
    width: 100%;
}

.smart-column-panel .smart-column-grid {
    max-height: 440px;
    overflow: auto;
    padding-right: 2px;
}

.smart-table-wrap {
    max-width: 100%;
    max-inline-size: 100%;
    overflow: auto;
    max-height: min(62vh, 720px);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-top: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.12));
    border-bottom: 1px solid var(--tsh-border-subtle, rgba(148,163,184,.12));
}

.smart-table.server-driven {
    width: max-content;
    min-width: 100%;
    max-width: none;
}

.smart-table-card.is-refreshing .smart-table-wrap {
    opacity: .72;
    transition: opacity .12s ease;
}

.smart-row-removing {
    opacity: .38;
    transform: translateX(4px);
    transition: opacity .16s ease, transform .16s ease;
}

.smart-row-updated td {
    animation: smartRowUpdated .9s ease-out both;
}

@keyframes smartRowUpdated {
    0% { background-color: color-mix(in srgb, var(--tsh-primary, #60a5fa) 22%, transparent); }
    100% { background-color: transparent; }
}

@media (max-width: 920px) {
    .smart-dropdown-panel {
        left: 10px;
        right: 10px;
        width: auto;
    }
    .smart-filter-builder {
        grid-template-columns: 1fr;
    }
}

/* Iteration 2 hotfix 5: dropdown panels must float above short tables/cards. */
.tv-admin-body .tsh-content:has(.smart-table-host),
.tv-admin-body .tv-section:has(.smart-table-host),
.tv-admin-body .tsh-tab-card:has(.smart-table-host),
.tv-admin-body .tsh-tab-panel:has(.smart-table-host),
.tv-admin-body .tsh-card:has(.smart-table-host),
.tv-admin-body .smart-table-host,
.tv-admin-body .smart-table-card {
    overflow: visible !important;
}

.tv-admin-body .tv-section:has(.smart-dropdown-panel:not([hidden])),
.tv-admin-body .tsh-tab-card:has(.smart-dropdown-panel:not([hidden])),
.tv-admin-body .tsh-tab-panel:has(.smart-dropdown-panel:not([hidden])),
.tv-admin-body .tsh-card:has(.smart-dropdown-panel:not([hidden])),
.tv-admin-body .smart-table-host:has(.smart-dropdown-panel:not([hidden])),
.tv-admin-body .smart-table-card:has(.smart-dropdown-panel:not([hidden])) {
    position: relative;
    z-index: 1300 !important;
}

.tv-admin-body .smart-menu-layer {
    z-index: 1350 !important;
    pointer-events: none;
}

.tv-admin-body .smart-dropdown-panel {
    z-index: 1360 !important;
    pointer-events: auto;
    overflow: visible;
}

.tv-admin-body .smart-dropdown-panel select,
.tv-admin-body .smart-dropdown-panel input,
.tv-admin-body .smart-dropdown-panel button,
.tv-admin-body .smart-dropdown-panel .smart-filter-chip,
.tv-admin-body .smart-dropdown-panel .smart-column-field {
    position: relative;
    z-index: 1361;
}

.tv-admin-body .smart-column-panel .smart-column-grid,
.tv-admin-body .smart-filter-chip-list {
    overflow: auto;
}

.tv-admin-body .ah-btn.is-running {
    opacity: .7;
    cursor: progress;
}
