.si-customer-lookup-control{position:relative;display:block;width:100%;min-width:0;box-sizing:border-box}
.si-customer-lookup-control>input,
.invoice-data-conditions .si-customer-lookup-control>input,
.si-document-dialog .si-field .si-customer-lookup-control>input{padding-right:35px;min-width:0;width:100%;box-sizing:border-box}
.si-customer-lookup-control>.si-customer-lookup-trigger{position:absolute;top:1px;right:1px;bottom:1px;display:flex;align-items:center;justify-content:center;width:32px;min-height:0;height:auto;margin:0;padding:0;border:0;border-radius:0 4px 4px 0;background:transparent;color:#667085;cursor:pointer;box-sizing:border-box}
.si-customer-lookup-control>.si-customer-lookup-trigger:hover{background:#edf4fb;color:#2563a6}
.si-customer-lookup-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.si-customer-lookup-trigger:focus-visible{outline:2px solid #2563a6;outline-offset:-2px}
.si-customer-lookup-control:has(>input:disabled)>.si-customer-lookup-trigger{opacity:.45;cursor:default;pointer-events:none}
.si-customer-lookup-dialog{margin:auto;padding:0;width:min(660px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);border:1px solid #cbd7e5;border-radius:8px;box-sizing:border-box;overflow:hidden;color:#30435c;background:#fff;font-size:14px}
.si-customer-lookup-dialog[open]{display:flex;flex-direction:column}
.si-customer-lookup-dialog::backdrop{background:#0f172a55}
.si-customer-lookup-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #e5eaf0;flex:none}
.si-customer-lookup-heading h3{margin:0;font-size:16px;font-weight:600}
.si-customer-lookup-dialog .si-customer-lookup-button{height:34px;min-height:34px;padding:5px 12px;border:1px solid #cbd7e5;border-radius:4px;background:#fff;color:#30435c;font:inherit;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.si-customer-lookup-dialog .si-customer-lookup-button:hover{background:#f1f6fb;border-color:#9cb8d4}
.si-customer-lookup-dialog .si-customer-lookup-button.is-primary{background:#2563a6;border-color:#2563a6;color:#fff}
.si-customer-lookup-dialog .si-customer-lookup-button:disabled{opacity:.45;cursor:default}
.si-customer-lookup-dialog :is(button,input,select,tr):focus-visible{outline:2px solid #2563a6;outline-offset:2px}
.si-customer-lookup-search{display:flex;gap:8px;padding:14px 16px 8px;flex:none}
.si-customer-lookup-search>input{width:100%;min-width:0;height:34px;padding:5px 9px;border:1px solid #cbd7e5;border-radius:4px;background:#fff;color:#1d2129;box-sizing:border-box;font:inherit}
.si-customer-lookup-feedback{display:flex;align-items:center;gap:10px;min-height:30px;padding:0 16px 8px;color:#667085;flex:none}
.si-customer-lookup-feedback.is-error{color:#b42318}
.si-customer-lookup-feedback .si-customer-lookup-button{height:27px;min-height:27px;padding:2px 9px}
.si-customer-lookup-feedback .si-customer-lookup-button[hidden]{display:none}
.si-customer-lookup-results{min-height:100px;max-height:min(420px,calc(100dvh - 230px));overflow:auto;border-top:1px solid #e5eaf0;flex:1 1 auto}
.si-customer-lookup-results table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.si-customer-lookup-results :is(th,td){padding:9px 12px;border-bottom:1px solid #e5eaf0;text-align:left;line-height:20px}
.si-customer-lookup-results th{position:sticky;top:0;z-index:1;background:#f3f6fa;color:#4e5969;font-weight:600;white-space:nowrap}
.si-customer-lookup-results :is(th,td):first-child{width:48px;text-align:center;white-space:nowrap}
.si-customer-lookup-results .si-customer-lookup-code{width:130px;white-space:nowrap}
.si-customer-lookup-results tbody tr[tabindex]{cursor:pointer}
.si-customer-lookup-results tbody tr[tabindex]:hover td{background:#f5f9ff}
.si-customer-lookup-results tbody tr.is-selected td{background:#e8f2fd;color:#1d4f82}
.si-customer-lookup-results .si-customer-lookup-empty{text-align:center;padding:32px 12px;color:#667085}
.si-customer-lookup-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid #e5eaf0;background:#f8fafc;flex:none}
.si-customer-lookup-pager{display:flex;align-items:center;gap:8px;min-width:0}
.si-customer-lookup-pager>span{white-space:nowrap}
.si-customer-lookup-pager .si-customer-lookup-button{height:29px;min-height:29px;padding:3px 8px}
.si-customer-lookup-pager select{height:29px;min-width:0;padding:3px 5px;border:1px solid #cbd7e5;border-radius:4px;background:#fff;color:#30435c;font:inherit;box-sizing:border-box}
@media(max-width:600px){
  .si-customer-lookup-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .si-customer-lookup-heading{padding:10px}
  .si-customer-lookup-search{gap:6px;padding:10px 10px 8px}
  .si-customer-lookup-search>input{font-size:16px}
  .si-customer-lookup-feedback{padding-left:10px;padding-right:10px}
  .si-customer-lookup-footer{padding:10px;gap:8px;flex-wrap:wrap}
  .si-customer-lookup-pager{gap:6px;flex-wrap:wrap}
  .si-customer-lookup-results :is(th,td){padding:8px}
}

/* Contract results contain six business columns and remain scrollable on narrow screens. */
.si-customer-lookup-dialog.op-contract-lookup-dialog{width:min(1000px,calc(100vw - 32px))}
.op-contract-lookup-dialog .si-customer-lookup-results table{min-width:820px}
.op-contract-lookup-dialog .si-customer-lookup-results tr[aria-disabled=true]{color:#98a2b3;cursor:not-allowed}
.si-customer-lookup-help{margin:0;padding:0 16px 8px;color:#667085;font-size:13px;line-height:1.4}
.op-contract-lookup-dialog .si-customer-lookup-search>select{flex:none;max-width:110px;height:34px;padding:4px;border:1px solid #cbd7e5;border-radius:4px;background:#fff;color:#30435c;font:inherit}
.si-customer-lookup-search.has-date-range{flex-wrap:wrap}
.si-customer-lookup-search.has-date-range>input{flex:1 1 180px;width:auto}
.si-customer-lookup-dates{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-basis:100%;min-width:0}
.si-customer-lookup-dates label{display:flex;align-items:center;gap:6px;font:inherit}
.si-customer-lookup-dates input{width:145px;min-width:0;height:34px;padding:4px 6px;border:1px solid #cbd7e5;border-radius:4px;background:#fff;color:#30435c;box-sizing:border-box;font:inherit}
@media(max-width:600px){.si-customer-lookup-dates label{flex:1 1 150px;min-width:0}.si-customer-lookup-dates input{flex:1;width:125px}.si-customer-lookup-dates{gap:6px}}
