/* ==========================================================
   pandabu V2.0.4 RC16.280c6
   Notvorrat Struktur + Vorratserfassung + Navigation Polish
   Additiver Patch auf RC16.280c5.
   ========================================================== */

/* 1) Geführter Notvorrat: exakt eine mittige Verbindungslinie. */
.emergency-wizard-categories::after,
.emergency-wizard-category::before,
.emergency-wizard-category::after{
  content:none!important;
  display:none!important;
}
.emergency-wizard-categories::before{
  display:block!important;
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  left:calc(22px + (100% - 44px)/12)!important;
  right:calc(22px + (100% - 44px)/12)!important;
  top:29px!important;
  height:3px!important;
  border-radius:999px!important;
  background:#d9e0e4!important;
  pointer-events:none!important;
}
.emergency-wizard-category{
  position:relative!important;
  z-index:1!important;
  align-items:center!important;
  text-align:center!important;
}
.emergency-wizard-category-icon{
  margin-inline:auto!important;
  background:#f1f4f6!important;
  border-color:#d6dde2!important;
  box-shadow:none!important;
  position:relative!important;
  z-index:2!important;
}
.emergency-wizard-category.done .emergency-wizard-category-icon{
  background:#d9f2ef!important;
  border-color:#7ccfc6!important;
}
.emergency-wizard-category.active .emergency-wizard-category-icon{
  background:#e9f8f6!important;
  border-color:var(--accent)!important;
}
html[data-theme="dark"] .emergency-wizard-categories::before{background:#465058!important}
html[data-theme="dark"] .emergency-wizard-category-icon{background:#2a3036!important;border-color:#4b555d!important}
html[data-theme="dark"] .emergency-wizard-category.done .emergency-wizard-category-icon{background:#214742!important;border-color:#4eb9ad!important}
html[data-theme="dark"] .emergency-wizard-category.active .emergency-wizard-category-icon{background:#1d3937!important;border-color:var(--accent)!important}

/* Desktop: keine zweite obere Verbindungslinie aus älteren Layoutständen. */
@media(min-width:900px){
  .rc251-form-header .emergency-wizard-categories{
    border-top:0!important;
    background-image:none!important;
  }
}

/* Mobil: Linie exakt durch die Icon-Mitte, Icons decken die Linie sauber ab. */
@media(max-width:899px){
  .emergency-wizard-categories{
    align-items:start!important;
    justify-items:center!important;
  }
  .emergency-wizard-categories::before{
    left:calc(8px + (100% - 16px)/12)!important;
    right:calc(8px + (100% - 16px)/12)!important;
    top:26px!important;
    height:3px!important;
  }
  .emergency-wizard-category{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  .emergency-wizard-category-icon{margin-left:auto!important;margin-right:auto!important}
}

/* 2) Übersichtskategorien: inaktiv klarer, erledigt etwas dunkler. */
html:not([data-theme="dark"]) .rc262-overview-category.open{
  background:#f4f6f7!important;
  border-color:#dbe2e6!important;
}
html:not([data-theme="dark"]) .rc262-overview-category.done{
  background:#dff3f0!important;
  border-color:#9bd9d1!important;
}
html[data-theme="dark"] .rc262-overview-category.open{
  background:#2a3036!important;
  border-color:#465058!important;
}
html[data-theme="dark"] .rc262-overview-category.done{
  background:#214742!important;
  border-color:#4eb9ad!important;
}

/* 3) Direkte Vorratsmenge: nach Öffnen sofort sichtbar, keine zweite Details-Ebene. */
.rc280c6-direct-stock{
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid var(--line,#dbe2e6)!important;
}
.rc280c6-direct-stock .emergency-existing-stock-subhead{
  margin-bottom:10px!important;
}
.rc280c6-direct-stock .emergency-existing-stock-manual-body{
  padding-top:0!important;
}
.rc280c6-direct-stock .emergency-existing-stock-row{
  background:var(--surface,#fff)!important;
}
.rc280c6-direct-stock .emergency-existing-stock-save{
  margin-top:10px!important;
  width:100%!important;
}

/* 4) Kochmöglichkeit/Brennmaterial: nur eine Informationsebene. */
.emergency-product-planner.is-cooking-fuel .emergency-product-plan-row small{
  white-space:normal!important;
  line-height:1.25!important;
}

/* Die untere Planer-Ebene ist die einzige sichtbare Ziel-/Auswahl-Ebene. */
.emergency-product-planner.is-cooking-fuel{
  margin-top:10px!important;
}

/* 5) Kleine visuelle Konsistenz für die Vorratserfassungs-Aktionen. */
.emergency-existing-stock-toggle,
.emergency-existing-stock-save{
  box-shadow:none!important;
}
