/* 控制面列表与筛选的紧凑密度。 */

.shell-v4 .wcp-filter-card {
    padding: 8px 10px;
    border-radius: var(--wcp-radius-lg);
    box-shadow: var(--wcp-shadow-card);
}

.shell-v4 .wcp-filter-panel {
    gap: 10px;
}

.shell-v4 .wcp-filter-action-row {
    min-height: 30px;
    gap: 6px;
}

.shell-v4 .wcp-filter-main {
    gap: 5px;
}

.shell-v4 .wcp-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6px 10px;
}

.shell-v4 .wcp-filter-item label {
    min-width: 58px;
    color: var(--wcp-text-2);
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.shell-v4 .wcp-filter-meta {
    margin-top: 0;
    line-height: 1.2;
}

.shell-v4 .wcp-filter-meta .wcp-link {
    color: var(--wcp-accent);
    font-size: 12px;
    font-weight: 650;
}

.shell-v4 .wcp-btn {
    height: 30px;
    padding-inline: 11px;
}

.shell-v4 .wcp-filter-action-row > .wcp-filter-item-actions {
    order: 0;
}

.shell-v4 .wcp-filter-action-row > .wcp-page-toolbar-in-filter {
    order: -1;
}

.shell-v4 .wcp-content-card {
    border-color: var(--cp-border);
    border-radius: 9px;
    box-shadow: var(--cp-shadow);
}

.shell-v4 .wcp-table-wrap {
    border-radius: var(--wcp-radius-lg);
    background: var(--wcp-surface);
}

.shell-v4 .wcp-table th,
.shell-v4 .wcp-table td {
    height: 39px;
    padding: 5px 10px;
    border-bottom-color: var(--cp-border-soft);
}

.shell-v4 .wcp-table th {
    background: var(--wcp-surface);
    color: var(--wcp-text-3);
    font-size: 12px;
    font-weight: 500;
}

.shell-v4 .wcp-table .wcp-btn-mini,
.shell-v4 .wcp-table .wcp-json-preview-button {
    min-width: 50px;
    height: 26px;
    padding: 0 9px;
    border-color: var(--wcp-line);
    border-radius: 8px;
    background: var(--wcp-surface);
    color: var(--wcp-text-2);
    font-size: 12px;
    font-weight: 700;
}

.shell-v4 .wcp-table .wcp-btn-mini:hover {
    border-color: var(--wcp-line-strong);
    background: var(--wcp-surface-3);
    color: var(--wcp-text);
}

.shell-v4 .wcp-table .status-pill,
.shell-v4 .wcp-table .wcp-tag {
    min-height: 20px;
    height: 20px;
    padding-inline: 9px;
    font-size: 11px;
}

.shell-v4 .wcp-table th.wcp-table-select-cell,
.shell-v4 .wcp-table td.wcp-table-select-cell {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
}

.shell-v4 .wcp-table-select-box,
.shell-v4 .wcp-table-select-box input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.shell-v4 .wcp-pagination-size .select-enhanced-trigger,
.shell-v4 .wcp-pagination .wcp-btn {
    height: 28px;
    min-height: 28px;
}

@media (min-width: 1440px) {
    .shell-v4 .wcp-filter-grid {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }
}

/* 控制面列表行操作。 */
.shell-v4 .wcp-table .wcp-btn-mini:not(.wcp-action-menu-trigger) {
    min-width: auto;
    height: 24px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
    color: var(--wcp-text-2);
    box-shadow: none;
}

.shell-v4 .wcp-table .wcp-btn-mini:not(.wcp-action-menu-trigger):hover {
    border-color: transparent;
    background: var(--wcp-surface-3);
    color: var(--wcp-text);
}

.shell-v4 .wcp-table .wcp-btn-mini:not(.wcp-action-menu-trigger):focus-visible {
    outline: none;
    border-color: transparent;
    background: var(--wcp-surface);
    box-shadow: 0 0 0 3px var(--wcp-focus);
}

.shell-v4 .wcp-table tbody tr:hover .wcp-btn-mini:not(.wcp-action-menu-trigger) {
    border-color: var(--wcp-line);
    background: var(--wcp-surface);
}

.shell-v4 .wcp-table .status-information,
.shell-v4 .wcp-table .status-pill {
    background: var(--wcp-accent-soft);
    color: var(--wcp-accent);
}

.shell-v4 .wcp-table .ui-code-text,
.shell-v4 .wcp-table .ui-name-text,
.shell-v4 .wcp-table .ui-time-text {
    color: var(--wcp-text);
}

.shell-v4 .wcp-shell-layout__inner > .app-copyright-footer,
.shell-v4 .wcp-shell-layout__inner > footer {
    flex: 0 0 auto;
}

/* 控制面页签与内容区域承载。 */

















.shell-v4 .wcp-content-card:has(.content-manager-layout),
.shell-v4 .wcp-content-card:has(.content-manager-layout) {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    height: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.shell-v4 .wcp-content-card:has(.content-manager-layout) > .content-manager-layout,
.shell-v4 .wcp-content-card:has(.content-manager-layout) > .content-manager-layout {
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    .shell-v4 .wcp-shell-layout__inner:has(.content-manager-layout) {
        height: auto;
        max-height: none;
        overflow: visible !important;
    }

    .shell-v4 .wcp-page:has(.content-manager-layout),
    .shell-v4 .wcp-page:has(.content-manager-layout),
    .shell-v4 .wcp-content-card:has(.content-manager-layout),
    .shell-v4 .wcp-content-card:has(.content-manager-layout) {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }
}

.shell-v4 .wcp-content-card:has(.wcp-table-wrap) > .flow-section {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.shell-v4 .wcp-table-wrap.is-minor-horizontal-overflow {
    overflow-x: hidden;
}

/* 共享控制面组件沿用 OCR 控制台的紧凑列表密度。 */
.shell-v4 .wcp-filter-item input,
.shell-v4 .wcp-filter-item select,
.shell-v4 .wcp-filter-item textarea {
    min-height: 34px;
    height: 34px;
    border-color: transparent;
    border-radius: 9px;
    padding: 6px 10px;
    color: var(--wcp-text);
    font-size: 13px;
    background-color: var(--wcp-surface-3);
    box-shadow: none;
}

.shell-v4 .wcp-filter-item input:hover,
.shell-v4 .wcp-filter-item select:hover,
.shell-v4 .wcp-filter-item textarea:hover {
    border-color: transparent;
    background-color: var(--wcp-surface-2);
}

.shell-v4 .wcp-filter-meta {
    margin-top: 0;
    line-height: 1.2;
}

.shell-v4 .wcp-filter-meta .wcp-link {
    color: var(--wcp-accent);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.shell-v4 .wcp-table th,
.shell-v4 .wcp-table td {
    height: 39px;
    padding: 5px 10px;
    border-bottom-color: var(--cp-border-soft);
}

.shell-v4 .wcp-table th {
    background: var(--wcp-surface);
    color: var(--wcp-text-3);
    font-size: 12px;
    font-weight: 500;
}

.shell-v4 .wcp-action-menu .wcp-action-menu-trigger {
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
}
