.inventoryHeadingActions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0}
.inventoryHeadingActions .sub{flex-basis:100%;margin-top:0}
.inventoryHeadingActions>.primary{min-height:42px;white-space:nowrap}
.inventoryEditorDialog{width:min(1000px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce2e9;border-radius:16px;color:#232a31;background:#fff;box-shadow:0 24px 80px #14203244;overflow:hidden}
.inventoryEditorDialog[open]{display:flex;flex-direction:column}
.inventoryEditorDialog::backdrop{background:rgba(21,29,37,.55);backdrop-filter:blur(2px)}
.inventoryEditorHeader{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #e3e6ea}
.inventoryEditorHeader h2{margin:0;font-size:20px;line-height:1.25}
.inventoryEditorHeader button{min-height:42px;flex:none}
.inventoryEditorStatus{flex:none;padding:0 20px}
.inventoryEditorStatus:has(.smallstate:empty){display:none}
.inventoryEditorStatus .smallstate{display:block;white-space:normal;margin:10px 0}
.inventoryEditorBody{min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 20px 0;scroll-padding-bottom:80px}
.inventoryEditorDialog .inventoryForm.on{display:block;margin:0;padding:0;border:0;box-shadow:none;background:#fff}
.inventoryEditorDialog .timeActions{position:sticky;bottom:0;z-index:2;display:flex;gap:10px;justify-content:flex-end;margin:16px -2px 0;padding:12px 2px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3e6ea}
.inventoryEditorDialog .timeActions button{min-height:44px}
@media(max-width:700px){
  .inventoryHeadingActions{width:100%}
  .inventoryHeadingActions>.primary{width:100%}
  .inventoryEditorDialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}
  .inventoryEditorHeader{padding:12px}
  .inventoryEditorHeader h2{font-size:18px}
  .inventoryEditorStatus{padding:0 12px}
  .inventoryEditorBody{padding:12px 12px 0}
  .inventoryEditorDialog .inventoryGrid{grid-template-columns:minmax(0,1fr)}
  .inventoryEditorDialog .inventoryGrid>.span2{grid-column:1/-1}
  .inventoryEditorDialog .timeActions button{flex:1}
}
