.manufacturing-poc {
  --poc-blue: #2a5ea2;
  --poc-blue-dark: #1c4f92;
  --poc-green: #168454;
  --poc-amber: #b7791f;
  --poc-red: #bd3636;
  --poc-purple: #674ab0;
  --poc-slate: #52657c;
}

.poc-command-panel,
.poc-card {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(21, 34, 50, 0.04);
}

.poc-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  padding: 22px;
  align-items: stretch;
}

.poc-command-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.poc-eyebrow,
.poc-card-kicker {
  color: var(--poc-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.poc-title {
  color: #1e1e1e;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
  max-width: 880px;
}

.poc-scenario-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e6edf5;
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
}

.poc-field,
.poc-field-row {
  display: flex;
  gap: 10px;
}

.poc-field {
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
}

.poc-field-row {
  align-items: stretch;
}

.poc-main-btn {
  flex: 1 1 0;
  min-height: 40px;
}

.poc-scenario-status {
  border-radius: 8px;
  background: #eef6ff;
  color: var(--poc-blue-dark);
  padding: 10px 12px;
}

.poc-view {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.poc-view.is-active {
  display: flex;
}

.poc-kpi-grid,
.poc-work-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.poc-grid {
  display: grid;
  gap: 16px;
}

.poc-grid.two {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.poc-grid.bom-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.poc-grid.costing-layout {
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
}

.poc-card {
  min-width: 0;
  overflow: hidden;
}

.poc-card-header,
.poc-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
}

.poc-card-title {
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 2px 0 0;
}

.poc-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fff;
}

.poc-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poc-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--poc-blue);
  background: #eaf3ff;
}

.poc-kpi-icon.green {
  color: var(--poc-green);
  background: #eaf8f0;
}

.poc-kpi-icon.amber {
  color: var(--poc-amber);
  background: #fff6df;
}

.poc-kpi-icon.red {
  color: var(--poc-red);
  background: #fff0f0;
}

.poc-kpi-title {
  color: #6d7b8a;
  font-size: 12px;
  font-weight: 700;
}

.poc-kpi-value {
  color: #1e1e1e;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.poc-kpi-caption {
  color: #526273;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.poc-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  padding: 18px;
  align-items: center;
}

.poc-flow-step {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--poc-blue-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.poc-flow-arrow {
  display: none;
}

.poc-capacity-list,
.poc-bom-list,
.poc-work-order-list,
.poc-recommendation-list,
.poc-shortage-summary,
.poc-cost-bars,
.poc-cost-summary,
.poc-summary-strip,
.poc-routing,
.poc-insight {
  padding: 16px 18px;
}

.poc-capacity-item,
.poc-bom-card,
.poc-work-order,
.poc-recommendation,
.poc-shortage-item {
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #fff;
}

.poc-capacity-item {
  padding: 12px;
}

.poc-capacity-item + .poc-capacity-item,
.poc-bom-card + .poc-bom-card,
.poc-work-order + .poc-work-order,
.poc-recommendation + .poc-recommendation,
.poc-shortage-item + .poc-shortage-item {
  margin-top: 10px;
}

.poc-capacity-head,
.poc-bom-head,
.poc-work-order-head,
.poc-recommendation-head,
.poc-shortage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poc-capacity-name,
.poc-bom-name,
.poc-work-order-title,
.poc-recommendation-title,
.poc-shortage-name {
  color: #263238;
  font-size: 14px;
  font-weight: 800;
}

.poc-capacity-meta,
.poc-bom-meta,
.poc-work-order-meta,
.poc-recommendation-meta,
.poc-shortage-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.poc-progress-track {
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.poc-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--poc-blue), var(--poc-blue-dark));
}

.poc-progress-bar.green {
  background: linear-gradient(90deg, #16a34a, #168454);
}

.poc-progress-bar.amber {
  background: linear-gradient(90deg, #f59e0b, #b7791f);
}

.poc-progress-bar.red {
  background: linear-gradient(90deg, #ef4444, #bd3636);
}

.poc-bom-card {
  width: 100%;
  padding: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.poc-bom-card:hover,
.poc-bom-card.is-active {
  border-color: #9db9dc;
  background: #f8fbff;
  box-shadow: 0 6px 16px rgba(42, 94, 162, 0.08);
}

.poc-bom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.poc-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef3f8;
  color: #52657c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.poc-chip.green {
  background: #eaf8f0;
  color: var(--poc-green);
}

.poc-chip.amber {
  background: #fff6df;
  color: var(--poc-amber);
}

.poc-chip.red {
  background: #fff0f0;
  color: var(--poc-red);
}

.poc-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid #eef2f6;
}

.poc-summary-cell {
  border: 1px solid #e6edf5;
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.poc-summary-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.poc-summary-value {
  color: #1e1e1e;
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}

.compact-table .data-table th,
.compact-table .data-table td {
  height: 42px;
}

.poc-subsection {
  border-top: 1px solid #eef2f6;
}

.poc-subsection > .poc-card-kicker {
  padding: 16px 18px 0;
}

.poc-routing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.poc-routing-step {
  border: 1px solid #e6edf5;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.poc-routing-no {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--poc-blue);
  font-size: 12px;
  font-weight: 800;
}

.poc-routing-title {
  margin-top: 8px;
  color: #263238;
  font-size: 13px;
  font-weight: 800;
}

.poc-routing-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.poc-form-view .form-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poc-work-order {
  padding: 13px;
}

.poc-work-order-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eaf3ff;
  color: var(--poc-blue);
  font-size: 12px;
  font-weight: 800;
}

.poc-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
}

.poc-work-center-card {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.poc-work-center-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eef2f6;
}

.poc-work-center-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf3ff;
  color: var(--poc-blue);
  flex: 0 0 auto;
}

.poc-work-center-name {
  color: #263238;
  font-size: 15px;
  font-weight: 800;
}

.poc-work-center-code {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.poc-work-center-body {
  padding: 14px 16px 16px;
}

.poc-work-center-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.poc-mini-metric {
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
  padding: 9px;
}

.poc-mini-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.poc-mini-value {
  color: #263238;
  font-size: 14px;
  font-weight: 800;
  margin-top: 3px;
}

.poc-insight {
  color: #263238;
  background: #f8fbff;
  border-bottom: 1px solid #eef2f6;
  line-height: 1.55;
}

.poc-recommendation,
.poc-shortage-item {
  padding: 13px;
}

.poc-recommendation.is-critical,
.poc-shortage-item.is-critical {
  border-color: #ffd0d0;
  background: #fffafa;
}

.poc-cost-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid #eef2f6;
}

.poc-cost-tile {
  border: 1px solid #e6edf5;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.poc-cost-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.poc-cost-value {
  color: #1e1e1e;
  font-size: 20px;
  font-weight: 800;
  margin-top: 5px;
}

.poc-cost-bar-row {
  margin-bottom: 14px;
}

.poc-cost-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #263238;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.poc-cost-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.poc-cost-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--poc-blue), var(--poc-blue-dark));
}

.poc-cost-bar.labor {
  background: linear-gradient(90deg, #16a34a, #168454);
}

.poc-cost-bar.overhead {
  background: linear-gradient(90deg, #f59e0b, #b7791f);
}

.search-hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .poc-command-panel,
  .poc-grid.two,
  .poc-grid.bom-layout,
  .poc-grid.costing-layout {
    grid-template-columns: 1fr;
  }

  .poc-kpi-grid,
  .poc-work-center-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .poc-command-panel {
    padding: 16px;
  }

  .poc-title {
    font-size: 23px;
  }

  .poc-field-row,
  .poc-flow,
  .poc-routing,
  .poc-summary-strip,
  .poc-cost-summary {
    grid-template-columns: 1fr;
  }

  .poc-field-row {
    flex-direction: column;
  }

  .poc-kpi-grid,
  .poc-work-center-grid {
    grid-template-columns: 1fr;
  }
}
