/* BR-UI-71174-005（使用者決定）：手機上兩兩並排的欄位、按鍵各佔一半（中間 8px），一列只剩一個就佔滿整列；
   日期區間照 BR-UI-71172-005 佔滿整列。用 flex 換行：每格基準寬 50%-4px，單獨一格自動撐滿。 */
@media(max-width:700px){
html:root body main :is(.dc-tool-search-group,.reconciliation-selection-toolbar,.dc-module-tools>.dc-action-right,.product-filter-row,.purchase-share-actions,.supplier-stage>.toolbar,.unit-tools-actions,.dc-personnel-actions,.dc-work-filters,form.dc-review-filter,.catalog-head):is(#dc-none,div){display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;max-width:none!important;min-width:0!important;flex:1 1 100%!important;justify-content:flex-start!important;align-items:stretch!important;grid-template-columns:none!important}
html:root body main :is(.dc-tool-search-group,.reconciliation-selection-toolbar,.dc-module-tools>.dc-action-right,.product-filter-row,.purchase-share-actions,.supplier-stage>.toolbar,.unit-tools-actions,.dc-personnel-actions,.dc-work-filters,form.dc-review-filter,.catalog-head)>:is(#dc-none,label,span,div,button,a,form){flex:1 1 calc(50% - 4px)!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important}
html:root body main :is(.dc-module-tools>.dc-action-right,.supplier-stage>.toolbar)>:is(#dc-none,strong,h2,h3):not(#dc-full),html:root body main .product-filter-row>:is(#dc-none,.filter-actions,.toolbar):not(#dc-full){flex:1 1 100%!important}
html:root body main :is(.dc-tool-search-group,.reconciliation-selection-toolbar) :is(.dc-size-control select,.dc-search-control input):is(#dc-none,select,input){width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 auto!important}
html:root body main :is(.dc-tool-search-group,.reconciliation-selection-toolbar,.purchase-share-actions,.supplier-stage>.toolbar,.dc-module-tools>.dc-action-right)>:is(#dc-none,button,a){justify-content:center!important}
html:root body main .product-filter-row>label.field>:is(#dc-none,select,input,.dc-search-select){width:100%!important;max-width:none!important}
html:root body main :is(.dc-personnel-actions,.dc-work-filters,form.dc-review-filter,.catalog-head)>:is(#dc-none,strong,h2,h3,.r-dates,.dc-field-keyword,label:has(.dc-date-range-control,.date-range-controls,.dc-date-range-inline)):not(#dc-full){flex:1 1 100%!important}
html:root body main .catalog-head>.dc-catalog-view-tools:is(#dc-none,div):not(#dc-full){flex:0 0 auto!important}
html:root body main :is(.dc-personnel-actions>.dc-list-delete-actions,.dc-personnel-actions>.dc-list-delete-actions>button,.dc-work-filters>label>:is(select,input),form.dc-review-filter>label>:is(select,.dc-search-select),.catalog-head>label>:is(select,.dc-search-control)):is(#dc-none,div,button,select,input,span){width:100%!important;max-width:none!important;min-width:0!important}
html:root body main .dc-personnel-actions>.dc-list-delete-actions:is(#dc-none,div){display:flex!important}
html:root body main .stock-item-tools:is(#dc-none,div){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html:root body main form.stock-create .stock-create-row :is(.dc-date-wrap.dc-date-single,.dc-date-wrap.dc-date-single .dc-date-display):is(#dc-none,span,input){width:100%!important;max-width:none!important}
html:root body main form.stock-create .stock-create-row .stock-clock>.dc-hm:is(#dc-none,span){width:100%!important;max-width:none!important;flex:1 1 auto!important}
html:root body main form.stock-create .stock-create-row .stock-clock>.dc-hm>.dc-hm-display:is(#dc-none,input){flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important}
html:root body main .dc-action-right:has(>.dc-list-delete-actions>[data-dc-list-action]):is(#dc-none,div){flex:1 1 100%!important;width:100%!important;max-width:none!important;margin:0!important}
html:root body main .dc-list-delete-actions:has(>[data-dc-list-action]):is(#dc-none,div){display:flex!important;gap:8px!important;width:100%!important;max-width:none!important;justify-content:stretch!important}
html:root body main .dc-list-delete-actions:has(>[data-dc-list-action])>:is(#dc-none,button,a){flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;justify-content:center!important}
html:root body main form.stock-create .dc-section-actions:is(#dc-none,div){gap:8px!important}
html:root body main form.stock-create .dc-section-actions>:is(#dc-none,button,a){flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important}
html:root body main :is(.dc-compact-tools>label.field,.approval-rule-grid>label.field,.cg-basic>label.field,label.field[style*="width"],form.dc-policy-filter.toolbar>label.field,.dc-filter-grid>.dc-size-control):is(#dc-none,label){flex:1 1 100%!important;width:100%!important;max-width:none!important}
html:root body main :is(.dc-compact-tools>label.field,.approval-rule-grid>label.field,.cg-basic>label.field,form.dc-policy-filter.toolbar>label.field,.dc-filter-grid>.dc-size-control)>:is(#dc-none,select,input,.dc-search-select){width:100%!important;max-width:none!important}
}
