/* 表格搜索工具栏 */
.tc-workbench-scope #table-toolbar.tc-table-workspace__head {
    display: grid !important;
}
.tc-workbench-scope #table-toolbar .tc-table-toolbar-right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
    pointer-events: auto;
    position: relative;
    z-index: 4;
}

.tc-table-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.tc-table-filter-bar__main {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}
.tc-table-filter-bar__search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 1 auto;
}
.tc-table-filter-bar__search {
    width: 14rem;
    max-width: min(18rem, 42vw);
    min-width: 9rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.5rem;
    background: #fff;
    color: #0f172a;
}
.tc-table-filter-bar__search:focus {
    outline: none;
    border-color: rgb(99 102 241);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}
.tc-table-filter-bar__reset {
    flex-shrink: 0;
    padding: 0.32rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgb(71 85 105);
    background: #fff;
    border: 1px solid rgb(203 213 225);
    border-radius: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tc-table-filter-bar__reset:hover {
    color: rgb(67 56 202);
    border-color: rgba(99, 102, 241, 0.4);
    background: rgb(238 242 255);
}
.tc-table-filter-bar__reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.tc-workbench-scope #table-toolbar .tc-table-toolbar-right #restore-columns {
    grid-column: unset;
    justify-self: unset;
    margin: 0;
}
.tc-table-filter-bar__meta {
    font-size: 0.6875rem;
    color: rgb(100 116 139);
    white-space: nowrap;
}

/* 筛选隐藏行 */
#test-case-table tr.tc-table-row--filtered-out,
#tc-vxe-table-mount .vxe-body--row.tc-table-row--filtered-out {
    display: none !important;
}

/* 表格随页面自然向下延展，不使用内嵌滚动框；横向仍可滚动 */
.tc-workbench-scope #tc-table-view-panel.tc-table-list-panel__body {
    max-height: none !important;
    overflow-x: auto;
    overflow-y: visible;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.tc-hub-ai-tab .tc-workbench-scope #tc-table-view-panel.tc-table-list-panel__body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Vxe 表格：随页面自然向下延展，不使用内嵌纵向滚动框 */
.tc-workbench-scope #tc-vxe-table-view-panel.tc-table-list-panel__body {
    max-height: none !important;
    overflow-x: auto;
    overflow-y: visible;
}
.tc-workbench-scope .tc-vxe-table-mount .vxe-table--body-wrapper,
.tc-workbench-scope .tc-vxe-table-mount .vxe-table--body-inner-wrapper,
.tc-workbench-scope .tc-vxe-table-mount .vxe-grid--layout-body-wrapper {
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}
