/* NovaCore 6.1.136 – Produktions-Preise UX
   1) Sofortsuche für Rohstoffe/Zwischenprodukte.
   2) Detailfenster bleibt am tatsächlichen Klickpunkt; bei wenig Platz wird
      seine Höhe verkleinert statt es weit nach oben zu verschieben. */
.pp-material-searchbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
  padding:9px 10px;
  border:1px solid rgba(93,190,236,.14);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(12,27,38,.92),rgba(8,20,29,.92));
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.pp-material-searchbox{
  display:grid;
  grid-template-columns:auto minmax(180px,520px) auto;
  align-items:center;
  gap:8px;
  flex:1 1 620px;
  max-width:720px;
  min-width:0;
  border:1px solid rgba(103,199,149,.22);
  border-radius:10px;
  background:#07131d;
  padding:0 9px;
}
.pp-material-searchicon{color:#65cfff;font-size:18px;line-height:1;opacity:.9}
.pp-material-searchbox input{
  width:100%;
  min-width:0;
  height:38px;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#eff8fb!important;
  box-shadow:none!important;
  font-size:12px;
  font-weight:750;
}
.pp-material-searchbox input::placeholder{color:#758995}
.pp-material-searchbox button{
  width:28px;height:28px;border:0;border-radius:8px;background:rgba(255,255,255,.04);color:#8ca1ad;font-size:18px;cursor:pointer
}
.pp-material-searchbox button:hover{background:rgba(255,255,255,.09);color:#fff}
.pp-material-searchcount{flex:0 0 auto;color:#8296a2;font-size:10px;font-weight:850;white-space:nowrap}
.pp-material-unit[hidden]{display:none!important}

/* Die Klickposition aus JS gewinnt gegen ältere rechte Seitenpanel-Regeln. */
.pp-material-panel.open .pp-material-panel-card{
  top:var(--pp-anchor-top,82px)!important;
  left:var(--pp-anchor-left,auto)!important;
  right:auto!important;
  bottom:auto!important;
  width:var(--pp-anchor-width,470px)!important;
  max-height:var(--pp-anchor-max-height,560px)!important;
  height:auto!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
}
.pp-material-panel.open .pp-material-panel-scroll{min-height:0!important;overflow:auto!important}
.pp-material-panel.open .pp-material-panel-editor{position:relative!important;bottom:auto!important}

@media(max-width:760px){
  .pp-material-searchbar{align-items:stretch;flex-direction:column}
  .pp-material-searchbox{max-width:none;flex-basis:auto;grid-template-columns:auto minmax(0,1fr) auto}
  .pp-material-searchcount{padding-left:2px}
}
