
/* DS.06J - WMS Workflow Product Picker */

.wfp-overlay{
  position:fixed;
  inset:0;
  z-index:99990;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(3,10,25,.72);
  backdrop-filter:blur(5px);
}

.wfp-dialog{
  box-sizing:border-box;
  width:min(680px,100%);
  max-height:min(90dvh,900px);
  overflow:auto;
  padding:26px;
  border:1px solid #d4dfef;
  border-radius:20px;
  background:#fff;
  color:#101d31;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
  font-family:inherit;
}

.wfp-dialog *{
  box-sizing:border-box;
}

.wfp-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}

.wfp-eyebrow{
  margin-bottom:8px;
  color:#245de2;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
}

.wfp-head h2{
  margin:0 0 9px;
  font-size:26px;
  line-height:1.2;
  color:inherit;
}

.wfp-head p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#63738c;
}

.wfp-close{
  flex:none;
  width:42px;
  height:42px;
  border:1px solid #cbd9eb;
  border-radius:11px;
  background:#f4f7fc;
  color:#233755;
  cursor:pointer;
  font-size:24px;
}

.wfp-label{
  display:block;
  margin:16px 0 8px;
  font-size:13px;
  font-weight:800;
  color:inherit;
}

.wfp-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
}

.wfp-dialog input{
  width:100%;
  min-height:46px;
  padding:10px 13px;
  border:1px solid #bacbe3;
  border-radius:10px;
  background:#fff;
  color:#101d31;
  font:inherit;
  font-size:14px;
}

.wfp-dialog input:focus{
  outline:2px solid #7daaff;
  outline-offset:1px;
}

.wfp-primary,
.wfp-secondary{
  min-height:46px;
  padding:10px 18px;
  border-radius:10px;
  border:1px solid transparent;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.wfp-dialog .wfp-primary{
  background:#2563eb;
  color:#fff;
  -webkit-text-fill-color:#fff;
}

.wfp-secondary{
  background:#eef3fa;
  color:#172b48;
  border-color:#ccdaec;
}

.wfp-primary:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.wfp-hint{
  margin:10px 0;
  color:#63738c;
  font-size:12px;
}

.wfp-results{
  display:grid;
  gap:7px;
  max-height:260px;
  overflow:auto;
  margin:12px 0;
}

.wfp-result{
  display:grid;
  grid-template-columns:minmax(85px,110px) minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border:1px solid #d1dceb;
  border-radius:10px;
  background:#f8fafc;
  color:#14243b;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.wfp-result:hover,
.wfp-result.selected{
  background:#eaf2ff;
  border-color:#3b82f6;
}

.wfp-result-sku{
  color:#245de2;
  font-weight:900;
}

.wfp-result-name{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:13px;
  line-height:1.45;
}

.wfp-selected{
  padding:11px 13px;
  border:1px solid #a8dcc7;
  border-radius:10px;
  background:#e9f9f1;
  color:#116348;
  font-size:13px;
  font-weight:700;
  overflow-wrap:anywhere;
}

.wfp-selected[hidden],
.wfp-error[hidden]{
  display:none;
}

.wfp-note{
  margin-top:12px;
  color:#64748b;
  font-size:12px;
}

.wfp-error{
  margin-top:12px;
  color:#b91c1c;
  font-size:13px;
  font-weight:800;
}

.wfp-footer{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:24px;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-dialog{
  border-color:#304564;
  background:#101d32;
  color:#f7faff;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-head p,
:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-hint,
:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-note{
  color:#a7b8ce;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-dialog input{
  border-color:#3b5275;
  background:#091629;
  color:#f7faff;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-result{
  border-color:#334b6d;
  background:#142640;
  color:#f7faff;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-result:hover,
:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-result.selected{
  border-color:#60a5fa;
  background:#1a3b65;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-close,
:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-secondary{
  border-color:#3b5275;
  background:#23364f;
  color:#f7faff;
}

:is(html[data-theme="dark"],body[data-theme="dark"]) .wfp-selected{
  border-color:#236b5a;
  background:#10362f;
  color:#91f1ce;
}

@media(max-width:600px){
  .wfp-dialog{
    padding:18px;
    border-radius:15px;
  }
  .wfp-head h2{
    font-size:21px;
  }
  .wfp-search-row{
    grid-template-columns:1fr;
  }
  .wfp-result{
    grid-template-columns:1fr;
    gap:4px;
  }
  .wfp-footer{
    flex-direction:column-reverse;
  }
  .wfp-footer button{
    width:100%;
  }
}
