/* One aligned filter row; compact, identity-safe user cards. */
#orderFilterPanel .order-customer-trigger { width:100%; height:38px; min-height:38px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 12px; border:1px solid #dfe4ec; border-radius:5px; background:#fff; color:#202a3a; font-size:13px; font-weight:400; text-align:left; }
#orderFilterPanel .order-customer-trigger span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#orderFilterPanel .order-customer-trigger svg { flex:none; color:#667085; }
#orderFilterPanel .order-customer-trigger:hover { border-color:#a9bbda; background:#fafcff; }
#orderFilterPanel .order-search-control { display:flex; align-items:center; min-width:0; width:100%; }
#orderFilterPanel .order-search-control input { min-width:0; width:100%; }
#orderFilterPanel .barcode-input-receipt { display:none; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary { grid-template-columns:minmax(240px,1.65fr) auto repeat(3,minmax(125px,.8fr)) auto; align-items:center; gap:10px; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > label { margin:0; align-self:center; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-carrier { align-self:center; }
body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-buttons { align-items:center; flex-wrap:nowrap; }
.customer-picker-mask { padding:24px; background:rgb(20 30 48 / 30%); }
.customer-picker-mask .customer-picker { width:min(880px,100%); max-width:880px; max-height:min(800px,calc(100dvh - 48px)); padding:0; border:1px solid #e4e8ef; border-radius:12px; background:#fff; box-shadow:0 18px 70px #15223c24; display:flex; flex-direction:column; overflow:hidden; }
.customer-picker-head { display:flex; align-items:center; justify-content:space-between; padding:20px 24px 16px; gap:16px; }
.customer-picker-head h3 { margin:0; color:#202a3a; font-size:18px; font-weight:650; line-height:1.4; }
.customer-picker-head .modal-close { display:grid; place-items:center; width:32px; height:32px; min-height:32px; padding:0; border:0; border-radius:5px; color:#667085; background:transparent; font-size:24px; }
.customer-picker-head .modal-close:hover { background:#f1f3f7; }
.customer-picker-tools { display:flex; gap:12px; padding:0 24px 18px; }
.customer-picker-search { display:flex; align-items:center; flex:1; gap:10px; padding:0 12px; height:42px; border:1px solid #dce2eb; border-radius:6px; background:#f8f9fb; color:#667085; }
.customer-picker-search:focus-within { border-color:#175de8; box-shadow:0 0 0 2px #175de812; background:#fff; }
.customer-picker-search svg { flex:none; }
.customer-picker-search input { width:100%; min-width:0; height:40px; padding:0; border:0!important; outline:0; box-shadow:none!important; background:transparent!important; font-size:14px; }
.customer-picker-tools .customer-picker-all { min-height:42px; padding:0 16px; border:1px solid #dce2eb; border-radius:6px; color:#344054; background:white; font-size:13px; white-space:nowrap; }
.customer-picker-results { flex:1; min-height:220px; overflow:auto; overscroll-behavior:contain; padding:0 24px 20px; }
.customer-picker-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.customer-picker-item { position:relative; min-width:0; border:1px solid #e4e8ef; border-radius:7px; background:#fff; }
.customer-picker-item:hover { border-color:#b4c5df; background:#fafcff; }
.customer-picker-item.is-selected { border-color:#175de8; background:#f4f8ff; }
.customer-picker-choice { display:flex; align-items:center; gap:10px; width:100%; min-width:0; min-height:76px; padding:14px 34px 14px 12px; text-align:left; border:0; border-radius:6px; background:transparent; color:#202a3a; }
.customer-picker-avatar { flex:none; display:grid; place-items:center; width:34px; height:34px; border-radius:6px; background:#f0f3f8; color:#53647e; font-size:15px; font-weight:600; }
.is-selected .customer-picker-avatar { background:#e5eeff; color:#175de8; }
.customer-picker-name { display:flex; flex-direction:column; min-width:0; gap:5px; }
.customer-picker-name strong { display:block; font-size:14px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
.customer-picker-name small { color:#667085; font-size:11px; line-height:1.3; overflow-wrap:anywhere; }
.customer-picker-check { position:absolute; right:12px; bottom:9px; color:#175de8; font-size:12px; }
.customer-picker-star { position:absolute; display:grid; place-items:center; right:4px; top:4px; width:32px; min-height:32px; padding:0; border:0; border-radius:5px; background:transparent; color:#7e899c; }
.customer-picker-star:hover { background:#edf2fa; color:#175de8; }
.customer-picker-star.is-starred { color:#175de8; }
.customer-picker-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 24px; border-top:1px solid #e9edf3; color:#667085; font-size:12px; background:#fafbfc; }
.customer-picker-pager > div { display:flex; align-items:center; gap:14px; }
.customer-picker-pager button { min-height:32px; padding:4px 10px; background:#fff; border:1px solid #dfe4ec; border-radius:5px; font-size:12px; }
.customer-picker-pager button:disabled { opacity:.4; }
.customer-picker-empty { min-height:220px; display:flex; align-items:center; justify-content:center; gap:12px; color:#667085; font-size:13px; }
.customer-picker :is(button,input):focus-visible, #orderCustomerSearch:focus-visible { outline:2px solid #175de8; outline-offset:2px; }
.customer-picker .customer-picker-search input:focus-visible { outline:0; }
@media (min-width:1551px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary { display:flex; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > label { flex:1 1 0; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > .order-filter-search { flex:2 1 0; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] :is(.order-filter-carrier,.order-filter-buttons) { flex:0 0 auto; }
}
@media (max-width:1550px) {
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary { grid-template-columns:minmax(160px,1fr) repeat(2,minmax(125px,.8fr)) auto; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > .order-filter-search { grid-column:1 / 4; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > .order-filter-carrier { grid-column:4; }
}
@media (max-width:900px) {
  .customer-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > .order-filter-search { grid-column:1 / -1; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-primary > .order-filter-carrier { grid-column:1 / -1; }
  body:not(.tablet-mode) #appView .workspace[data-view="orders"] .order-filter-buttons { justify-content:flex-end; }
}
@media (max-width:520px) {
  .customer-picker-mask { padding:12px; }
  .customer-picker-mask .customer-picker { max-height:calc(100dvh - 24px); border-radius:9px; }
  .customer-picker-head { padding:16px; }
  .customer-picker-tools { padding:0 16px 14px; gap:8px; }
  .customer-picker-results { padding:0 16px 16px; }
  .customer-picker-grid { grid-template-columns:1fr; gap:8px; }
  .customer-picker-choice { min-height:68px; }
  .customer-picker-star { width:40px; min-height:40px; }
  .customer-picker-pager { padding:12px 16px; }
  .customer-picker-pager > div { gap:8px; }
}
.tablet-mode #orderCustomerSearch { min-height:44px; height:44px; font-size:14px; }
