/* Paso 9C — Diagnóstico de compras. Estilos aislados dentro de Citadel. */
.po-workspace .po-validation-stage {
  margin-top: 16px;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid #2d4359;
  border-radius: 10px;
  background: #0c141e;
  color: #e8f1fa;
}
.po-workspace .po-validation-stage[hidden],
.po-workspace .po-validation-next[hidden] {
  display: none !important;
}
.po-workspace .po-validation-heading,
.po-workspace .po-validation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.po-workspace .po-validation-heading h2 {
  font-size: 19px;
  margin: 6px 0 4px;
}
.po-workspace .po-validation-heading p,
.po-workspace .po-validation-actions p {
  margin: 0;
  color: #a7bdce;
  font-size: 12px;
}
.po-workspace .po-validation-eyebrow {
  letter-spacing: 0.12em;
  font-weight: 750;
  text-transform: uppercase;
  color: #83aed2 !important;
}
.po-workspace .po-validation-actions {
  margin: 20px 0 14px;
  justify-content: flex-start;
}
.po-workspace .po-validation-stage button,
.po-workspace .po-validation-next {
  border: 1px solid #41688a;
  border-radius: 8px;
  background: #2c5679;
  color: #fff;
  cursor: pointer;
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 750;
}
.po-workspace .po-validation-stage button:disabled,
.po-workspace .po-validation-next:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.po-workspace .po-validation-stage .po-validation-secondary {
  background: transparent;
  border-color: #354c64;
}
.po-workspace #po-validation-status {
  background: #15283b;
  color: #c0d8e9;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
}
.po-workspace #po-validation-status.po-validation-error {
  background: #3a2020;
  color: #ffd4d4;
}
.po-workspace .po-validation-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 20px;
}
.po-workspace .po-validation-summary[hidden] {
  display: none !important;
}
.po-workspace .po-validation-stat {
  border: 1px solid #2b3b4a;
  background: #111e2a;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.po-workspace .po-validation-stat strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.po-workspace .po-validation-stat span {
  font-size: 11px;
  color: #a9bdd0;
}
.po-workspace .po-val-success {
  color: #a0e5c0;
}
.po-workspace .po-val-pending {
  color: #ffdda6;
}
.po-workspace .po-val-error {
  color: #ffb4b4;
}
.po-workspace .po-validation-oc {
  border: 1px solid #2a3d52;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}
.po-workspace .po-validation-oc > summary {
  cursor: pointer;
  background: #162538;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 15px;
}
.po-workspace .po-validation-scroll {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}
.po-workspace .po-validation-scroll table {
  width: 100%;
  min-width: 890px;
  border-collapse: collapse;
  font-size: 12px;
}
.po-workspace .po-validation-scroll th {
  position: sticky;
  top: 0;
  background: #172536;
  text-align: left;
  padding: 11px;
  color: #c1d8ed;
}
.po-workspace .po-validation-scroll td {
  padding: 10px 11px;
  border-top: 1px solid #293847;
  vertical-align: top;
}
.po-workspace .po-validation-note-row {
  color: #e8b5b5;
  background: #291c22;
}
.po-workspace .po-validation-note {
  margin-top: 19px;
  border-radius: 8px;
  padding: 12px;
  background: #15283b;
  color: #c2d5e5;
  font-size: 12px;
}
#utilities-purchase-orders-section .po-steps .po-step[role='button'] {
  cursor: pointer;
}
#utilities-purchase-orders-section
  .po-steps
  .po-step[role='button']:focus-visible {
  outline: 2px solid #8abbe4;
  outline-offset: 3px;
}
@media (max-width: 1200px) {
  .po-workspace .po-validation-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .po-workspace .po-validation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
