.mfg-std {
  --std-border: #dce4ef;
  --std-muted: #52647b;
  --std-accent: #2563eb;
  min-width: 0;
  display: grid;
  gap: 14px;
  font-size: 14px;
}
.mfg-std-panel, .mfg-std-batchbar, .mfg-std-empty {
  min-width: 0;
  border: 1px solid var(--std-border);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.mfg-std-filters { display: grid; gap: 12px; }
.mfg-std-filters > div:not([data-list-key]):not(.mfg-std-gallery),
.mfg-std-filters > form, .mfg-std-order header, .mfg-std-batchbar, .mfg-std-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.mfg-std-filters label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mfg-std-filters input, .mfg-std-filters select, .mfg-std-filters textarea {
  max-width: 100%;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--std-border);
  border-radius: 5px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.mfg-std-filters input:focus, .mfg-std-filters select:focus, .mfg-std-filters textarea:focus {
  outline: 2px solid #93b4ff;
  outline-offset: 1px;
}
.mfg-std-order header { padding-bottom: 12px; }
.mfg-std-order header time, .mfg-std-muted, .mfg-std small { color: var(--std-muted); }
.mfg-std-order .el-table, .mfg-std-panel .el-table { max-width: 100%; }
.mfg-std:has(.mfg-std-batchbar) { padding-bottom: 76px; }
.mfg-std-batchbar { position: fixed; inset: auto 30px 12px; z-index: 8; justify-content: space-between; box-shadow: 0 -3px 16px #0d234310; }
.mfg-std-columns, .mfg-std-template { display: grid; gap: 12px; }
.mfg-std-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mfg-std-template { grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); }
.mfg-std h3 { margin: 0 0 10px; font-size: 15px; }
.mfg-std-columns button, .mfg-std-template aside button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.mfg-std-columns button:hover, .mfg-std-template aside button:hover { background: #eff5ff; }
.mfg-std-columns button.active, .mfg-std-template aside button.active { color: #1d4ed8; background: #e0ebff; font-weight: 600; }
.mfg-std-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 156px), 1fr)); gap: 12px; }
.mfg-std-gallery article { display: grid; gap: 6px; align-content: start; border: 1px solid var(--std-border); border-radius: 6px; padding: 8px; overflow-wrap: anywhere; }
.mfg-std-gallery img, .mfg-std-no-preview { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f1f5fa; border-radius: 4px; }
.mfg-std-no-preview { display: grid; place-items: center; color: var(--std-muted); }
.mfg-std-error { color: #a01824; }
.mfg-std-import, .mfg-std-import textarea { width: 100%; }
@media (max-width: 680px) {
  .mfg-std-columns, .mfg-std-template { grid-template-columns: minmax(0, 1fr); }
  .mfg-std-template aside button { display: inline-block; width: auto; }
  .mfg-std-filters input { width: min(190px, 100%); }
}

.mfg-main:has(.mfg-std) { overflow: visible; }
@media (max-width: 680px) {
  #app:has(.mfg-std) .topbar .motto { display: none; }
  #app:has(.mfg-std) .topbar .el-breadcrumb { flex: 0 0 auto; white-space: nowrap; }
  .mfg-std:has(.mfg-std-batchbar) { padding-bottom: 110px; }
  .mfg-std-batchbar { inset-inline: 12px; padding: 10px; gap: 8px; }
}
