/* Actual document partner controls only; master pickers keep their existing
   result, ID and account-selection logic. Match the original header height. */
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.op-customer-lookup-control,.op-master-lookup-control,.op-contract-lookup-control,.document-select-lookup-control,.qn-master-lookup-control,.si-document-header .si-customer-lookup-control) {position:relative;display:flex;align-items:center;flex:1;min-width:0;width:100%;box-sizing:border-box;}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.op-customer-lookup-control,.op-master-lookup-control,.op-contract-lookup-control,.document-select-lookup-control,.qn-master-lookup-control,.si-document-header .si-customer-lookup-control)>:is(input,select) {box-sizing:border-box;display:block;width:100%;min-width:0;max-width:none;padding-right:36px!important;flex:1;}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.document-select-lookup-control,.qn-master-lookup-control)>button {position:absolute;inset:1px 1px 1px auto;display:flex;align-items:center;justify-content:center;width:32px;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0 4px 4px 0;background:transparent;color:var(--business-theme-primary,#667085);box-sizing:border-box;cursor:pointer;}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.document-select-lookup-control,.qn-master-lookup-control)>button>svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.document-select-lookup-control,.qn-master-lookup-control)>button:hover {background:var(--business-theme-hover,#edf4fb);}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.document-select-lookup-control,.qn-master-lookup-control)>button:focus-visible {outline:1px solid var(--business-theme-primary,#2563a6);outline-offset:-1px;}
:is(.sv-customer-lookup-control,.sv-master-lookup-control,.wuxi-m7-customer-control,.wuxi-m7-master-control,.document-select-lookup-control,.qn-master-lookup-control)>button:disabled {opacity:.45;cursor:default;}

.document-select-lookup-control>select {appearance:none;-webkit-appearance:none;cursor:pointer;}
/* Supplementary headers keep the original common control column and height. */
.quotation-application-dialog>label>.document-select-lookup-control {box-sizing:border-box;width:100%;max-width:none;min-width:0;}
.quotation-application-dialog:not(.special-application-dialog) .document-select-lookup-control>select {box-sizing:border-box;width:100%;max-width:none;height:36px;min-height:36px;}
.special-application-dialog .document-select-lookup-control>select {height:44px;min-height:44px;}

/* Funds account pickers share the existing amount/remark row height and cell padding. */
#mainWrap .erp-document-design .ed-section .ed-table>tbody>tr>td>.sv-fund-account-control {height:var(--detail-cell-input-height,39px);min-height:0;align-self:stretch;}
#mainWrap .tab-page .erp-document-design .ed-section .ed-table>tbody>tr>td>.sv-fund-account-control>input.sv-fund-account-input {height:100%;min-height:0;padding:0 36px 0 8px!important;}

/* Quotation staff keeps its free-text name field and the original header height. */
.quotation-live-page .quotation-staff-lookup-control {display:flex;flex:1;min-width:0;width:100%;}
.quotation-live-page .quotation-staff-lookup-control>input {width:100%;max-width:none;padding-right:36px;}
.qn-field>.qn-master-lookup-control>input {flex:1;min-width:0;box-sizing:border-box;height:34px;border:1px solid #ccd4e2;border-radius:4px;background:white;padding:5px 36px 5px 8px;text-align:left;font:inherit;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* M7 funds retain the original cell height and reserve space for the inner lookup. */
#mainWrap .tab-page .erp-document-design .ed-section .ed-table>tbody>tr>td>.wuxi-m7-fund-account-control {height:var(--detail-cell-input-height,39px);min-height:0;align-self:stretch;}
#mainWrap .tab-page .erp-document-design .ed-section .ed-table>tbody>tr>td>.wuxi-m7-fund-account-control>input {height:100%;min-height:0;padding:0 36px 0 8px!important;}

.wuxi-hover-lookup:not(:hover) > .wuxi-m7-master-trigger:not(:focus-visible) {opacity:0;pointer-events:none;}
