/* Kitchen Pass 2 final physical-QA polish. Scoped to Kitchen-only classes. */

/* Weekly Meals: keep the modal centred and rounded on every edge, including mobile. */
.k2-meal-planner{
  margin:auto!important;
  align-self:center!important;
  border-radius:24px!important;
  overflow:hidden!important;
}

/* Inventory item detail: use a centred modal rather than the mobile bottom-sheet treatment. */
.k2-item-overlay{
  width:min(94vw,580px)!important;
  max-width:580px!important;
  max-height:88dvh!important;
  margin:auto!important;
  align-self:center!important;
  border-radius:24px!important;
  overflow:hidden!important;
}
.k2-item-overlay .mdr-overlay-content{
  overflow-y:auto!important;
}

/* Confirm/save actions use the accepted positive-action green treatment. */
.k2-editor-actions .primary{
  color:var(--mdr-complete-ink)!important;
  background:var(--mdr-complete)!important;
}

@media(max-width:520px){
  .k2-meal-planner,
  .k2-item-overlay{
    width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 40px)!important;
    margin:auto!important;
    align-self:center!important;
    border-radius:22px!important;
  }
}
