/* Screen workspaces use all available space. Keep paper previews, dialogs,
   table columns and individual controls under their own sizing rules. */
@media screen {
    body.workbench-home { --app-page-max-width: none; }

    /* These are page/content containers, including nested legacy wrappers.
       Important width declarations keep late inline/template styles from
       reinstating a fixed cap; other page layout properties stay local. */
    :is(
        .oa-fluid-page,
        .oa-page-layout,
        .workflow-page,
        .workflow-page [data-workflow-content],
        .collection-workbench,
        .compensation-shell,
        .compensation-task-pane .commission-form,
        .compensation-task-pane .follow-settings-form,
        .credit-shell,
        .credit-form,
        .finance-shell,
        .freight-page,
        .if-page,
        .spr-page,
        .fee-form,
        .hc-shell,
        .hc-detail-page,
        .handover-shell,
        .detail-shell,
        .task-shell,
        .handover-forbidden,
        .daily-report,
        .disclosure-page,
        .customer-inquiry-shell,
        .execution-overview,
        .execution-task-page,
        .execution-list-page,
        .hi,
        .hd,
        .label-history-page,
        .label-packing-print-page,
        .shipment-today-shell,
        .packing-entry,
        .quality-photo-page,
        .finished-library,
        .plan-preview-page,
        .od-shell,
        .cancel-shell,
        .oc-shell,
        .change-request-page,
        .change-create-page,
        .change-list-page,
        .delivery-schedule-page,
        .quote-merge,
        .timing-page,
        .direct-entry-form,
        .cf-page,
        .cp-app,
        .mcw-page,
        .pc-shell,
        #mc-manager,
        .order-sheet-workbench,
        .sales-document-workspace,
        .sales-document-product-detail-panel,
        .sales-document-original-template-shell,
        .sales-style-template,
        .sales-quote-edit-panel,
        .contract-editor-toolbar,
        .contract-validation-panel,
        .contract-workspace-files,
        .order-delivery-inline--contract,
        .admin-overview,
        .admin-settings-page,
        .history-personnel,
        .rules-page,
        .product-line-workbench,
        .company-info-form-page,
        .company-info-admin-page,
        .repair-workflow-page,
        .same-problem-page,
        .recognition-feedback-review-form,
        .chassis-retest-form,
        .codex-repair-page,
        .continue-repair,
        .pricing-group-shell,
        .pricing-rule-definition-page,
        .review-workbench,
        .rule-overview-shell,
        .contract-review,
        .crm-module .content,
        .crm-module .form-shell,
        .app-shell > .main > .content,
        .app-shell > .main > .content .form-shell
    ) {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        margin-inline: 0;
    }
}
