/* Mounted customer/product selectors for the order workbench. */
.oep-overlay{position:fixed;inset:0;z-index:180;display:flex;align-items:center;justify-content:center;padding:24px;background:#132e3b66;min-width:0}
.oep-dialog{display:flex;flex-direction:column;min-width:0;width:min(1160px,100%);max-height:calc(100dvh - 48px);background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 16px 60px #132e3b33;overflow:hidden;font-size:14px;text-align:left}
.oep-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);flex:none}
.oep-head h2{margin:0;font-size:20px;line-height:1.45;color:var(--ink)}
.oep-head p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.6}
.oep-head-actions{display:flex;align-items:center;gap:8px;flex:none}
.oep-head-actions>.btn{width:36px;min-width:36px;height:36px;padding:0;font-size:22px;font-weight:400;flex:none}
.oep-filters{display:grid;grid-template-columns:minmax(240px,1.8fr) minmax(145px,1fr) minmax(165px,1fr) auto;gap:12px;padding:18px 20px 12px;align-items:end;flex:none}
.oep-filters>label{display:grid;gap:6px;min-width:0;color:var(--muted);font-size:14px}
.oep-filters input,.oep-filters select{display:block;width:100%;height:40px;min-width:0;padding:0 10px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
.oep-filters select:disabled{color:var(--muted);background:var(--canvas)}
.oep-filters input:focus,.oep-filters select:focus{outline:2px solid var(--teal);outline-offset:1px}
.oep-filter-actions{display:flex;gap:8px}
.oep-filter-actions>.btn{min-height:40px}
.oep-context{padding:0 20px 12px;color:var(--muted);font-size:12px;line-height:1.65;flex:none}
.oep-results{flex:1 1 360px;min-height:120px;max-height:55dvh;overflow:auto;margin:0 20px;border:1px solid var(--line);border-radius:var(--radius-sm);overscroll-behavior:contain;scrollbar-width:thin}
.oep-table{width:100%;min-width:880px;border-collapse:collapse;table-layout:auto;white-space:normal;font-size:14px}
.oep-table th{position:sticky;top:0;z-index:1;font-size:13px;padding:11px 12px;background:var(--canvas);border-bottom:1px solid var(--line-strong);white-space:nowrap}
.oep-table td{padding:11px 12px;height:auto;vertical-align:middle;white-space:normal;border-bottom:1px solid var(--line);overflow-wrap:anywhere;font-size:14px}
.oep-table td.oep-code{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted);font-size:13px}
.oep-table td:nth-child(2),.oep-table td:nth-child(3){max-width:280px}
.oep-table .oep-address{min-width:180px;max-width:300px}
.oep-table strong{font-size:14px;font-weight:600}
.oep-table small{display:block;margin-top:4px;font-size:12px;color:var(--muted);line-height:1.55}
.oep-table td.oep-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.oep-table tr.oep-selected td{background:var(--teal-soft)}
.oep-table tbody tr:hover td{background:#f2f8f7}
.oep-table td.oep-empty{height:180px;text-align:center;color:var(--muted)}
.oep-name{border:0;background:transparent;padding:0;min-height:32px;text-align:left;color:var(--teal);font:inherit;font-weight:600;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
.oep-select-hit{display:flex;justify-content:center;align-items:center;min-width:38px;min-height:38px;cursor:pointer}
.oep-select-hit input{width:18px;height:18px;accent-color:var(--teal);cursor:pointer}
.oep-mobile-choice{display:none}
.oep-stock-empty{color:#95570e}
.oep-muted{color:var(--muted);font-size:12px}
.oep-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;font-size:13px;color:var(--muted);flex:none}
.oep-pager>div{display:flex;gap:8px}
.oep-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--line);background:var(--canvas);flex:none}
.oep-foot>span{margin-right:auto;color:var(--muted);font-size:13px;line-height:1.6}
.oep-dialog .btn{font-size:14px}
@media(max-width:900px){.oep-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.oep-query{grid-column:1/-1}.oep-filter-actions{grid-column:1/-1;justify-content:flex-end}.oep-dialog{max-height:calc(100dvh - 24px)}.oep-overlay{padding:12px}.oep-results{flex-basis:280px}}
@media(max-width:560px){
 .oep-overlay{padding:0;align-items:stretch}
 .oep-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
 .oep-head{padding:14px 12px;gap:10px}
 .oep-head h2{font-size:18px}
 .oep-head p{font-size:12px}
 .oep-head-actions>.btn{width:44px;min-width:44px;height:44px}
 .oep-filters{padding:12px;gap:10px}
 .oep-filters input,.oep-filters select{min-height:44px;font-size:16px}
 .oep-filter-actions>.btn{flex:1;min-height:44px}
 .oep-context{padding:0 12px 10px}
 .oep-results{margin:0 12px;min-height:100px;max-height:none;flex:1 1 auto}
 .oep-results .oep-table{display:block;min-width:0;width:100%;table-layout:fixed}
 .oep-table>thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .oep-table>tbody{display:block;width:100%;min-width:0}
 .oep-table .oep-result-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px;border-bottom:1px solid var(--line);background:var(--surface)}
 .oep-table .oep-result-row:last-child{border-bottom:0}
 .oep-table .oep-result-row td{display:block;min-width:0!important;max-width:none!important;height:auto;padding:0;border:0;white-space:normal!important;overflow-wrap:anywhere;text-align:left;font-size:14px;background:transparent!important}
 .oep-table .oep-result-row td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5;margin-bottom:2px}
 .oep-table .oep-result-row .oep-item-name{grid-column:1/-1;grid-row:1;padding-right:82px;min-height:44px}
 .oep-table .oep-result-row .oep-item-name strong{display:block;font-size:15px;line-height:1.65}
 .oep-table .oep-result-row .oep-choice{position:absolute;right:8px;top:10px;max-width:76px!important}
 .oep-table .oep-result-row .oep-choice .btn{min-height:44px;padding:6px 12px}
 .oep-table .oep-result-row .oep-code{grid-column:1/-1;grid-row:2}
 .oep-table .oep-result-row .oep-code::before{display:inline;margin:0 8px 0 0}
 .oep-table .oep-result-row .oep-spec{grid-column:1/-1;grid-row:3}
 .oep-table .oep-result-row .oep-spec::before{display:inline;margin:0 8px 0 0}
 .oep-table .oep-result-row .oep-price,.oep-table .oep-result-row .oep-stock{grid-row:4}
 .oep-table .oep-result-row .oep-address{grid-column:1/-1;grid-row:4}
 .oep-table .oep-result-row .oep-group,.oep-table .oep-result-row .oep-contact{grid-row:3}
 .oep-table .oep-result-row small{margin-top:2px}
 .oep-table .oep-result-row.oep-selected{background:var(--teal-soft);box-shadow:inset 3px 0 0 var(--teal)}
 .oep-table td.oep-empty{display:block;min-height:120px;width:100%;height:auto;padding:32px 16px;white-space:normal}
 .oep-mobile-choice{display:inline;font-size:13px;color:var(--teal)}
 .oep-pager{padding:10px 12px;gap:8px;font-size:12px;flex-wrap:wrap}
 .oep-pager>div{margin-left:auto}
 .oep-pager .btn{min-height:44px;padding:6px 10px}
 .oep-foot{padding:10px 12px max(12px,env(safe-area-inset-bottom));gap:8px}
 .oep-foot>span{flex-basis:100%;font-size:12px}
 .oep-foot>.btn{flex:1;min-height:44px;padding:6px 8px}
 .oep-select-hit{min-width:44px;min-height:44px;gap:6px}
 .oep-name{min-height:44px}
}
