.mfg-page {
  padding: 24px;
}

.mfg-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mfg-header h1 {
  font-size: 28px;
  margin: 0 0 6px;
}

.mfg-header p {
  color: #667085;
  margin: 0;
}

.mfg-actions,
.mfg-toolbar,
.mfg-section-head {
  align-items: center;
  display: flex;
  gap: 10px;
}

.mfg-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mfg-panel {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
}

.mfg-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.mfg-grid label,
.mfg-notes {
  color: #344054;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.mfg-toolbar {
  margin-bottom: 12px;
}

.mfg-toolbar .form-control {
  max-width: 340px;
}

.mfg-toolbar .form-select {
  max-width: 190px;
}

.mfg-section-head {
  justify-content: space-between;
  margin-bottom: 10px;
}

.mfg-section-head h2 {
  font-size: 18px;
  margin: 0;
}

.mfg-table {
  margin: 0;
  vertical-align: middle;
}

.mfg-table th {
  color: #475467;
  font-size: 12px;
  white-space: nowrap;
}

.mfg-table td {
  font-size: 13px;
  white-space: nowrap;
}

.mfg-table .form-control,
.mfg-table .form-select {
  min-width: 120px;
}

.mfg-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.mfg-kpi {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 14px;
}

.mfg-kpi span {
  color: #667085;
  display: block;
  font-size: 12px;
}

.mfg-kpi strong {
  color: #101828;
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

.mfg-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
}

.mfg-badge.ok {
  background: #ecfdf3;
  color: #027a48;
}

.mfg-badge.warn {
  background: #fffaeb;
  color: #b54708;
}

@media (max-width: 720px) {
  .mfg-page {
    padding: 14px;
  }

  .mfg-header,
  .mfg-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mfg-toolbar .form-control,
  .mfg-toolbar .form-select {
    max-width: none;
  }
}
