/* WPBakery Page Builder Compatibility - Simple Container Fitting */

/* All containers adapt to WPBakery column width */
.wp-block .ecs-results-container,
.vc_row .ecs-results-container,
.vc_column .ecs-results-container,
.vc_column_container .ecs-results-container,
.wpb_column .ecs-results-container,
.elementor-widget .ecs-results-container,
.et_pb_module .ecs-results-container,
.wp-block .ecs-filtered-container,
.vc_row .ecs-filtered-container,
.vc_column .ecs-filtered-container,
.vc_column_container .ecs-filtered-container,
.wpb_column .ecs-filtered-container,
.elementor-widget .ecs-filtered-container,
.et_pb_module .ecs-filtered-container,
.wp-block .ecs-table-tabs-container,
.vc_row .ecs-table-tabs-container,
.vc_column .ecs-table-tabs-container,
.vc_column_container .ecs-table-tabs-container,
.wpb_column .ecs-table-tabs-container,
.elementor-widget .ecs-table-tabs-container,
.et_pb_module .ecs-table-tabs-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Tables always fill their container completely */
.ecs-result-table,
.ecs-filtered-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
    border-collapse: collapse !important;
}

/* All data columns share remaining space equally */
.ecs-result-table th:not(.ecs-rfq-cell),
.ecs-result-table td:not(.ecs-rfq-cell),
.ecs-filtered-table th:not(.ecs-rfq-cell),
.ecs-filtered-table td:not(.ecs-rfq-cell) {
    width: auto !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* RFQ column gets proper width to use available space */
.ecs-result-table th.ecs-rfq-cell,
.ecs-result-table td.ecs-rfq-cell,
.ecs-filtered-table th.ecs-rfq-cell,
.ecs-filtered-table td.ecs-rfq-cell {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}