#po-approver-nav[hidden],
#utilities-purchase-approvals-section[hidden] {
  display: none !important;
}
.po-approver-review {
  background: var(--panel, #111b27);
  border: 1px solid #2a3949;
  border-radius: 10px;
  padding: 18px;
}
.po-approver-review h2,
.po-approver-review h3 {
  margin: 0 0 8px;
}
.po-approver-review p {
  line-height: 1.55;
}
.po-approver-review .po-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.po-approver-review .po-review-metric {
  border: 1px solid #28384b;
  border-radius: 7px;
  padding: 12px;
  background: #0b1420;
}
.po-approver-review .po-review-card {
  border: 1px solid #2c4053;
  border-radius: 7px;
  padding: 12px;
  margin: 12px 0;
  background: #0b1420;
}
.po-approver-review button {
  padding: 9px 12px;
  border: 1px solid #426483;
  background: #2f5272;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.po-approver-review button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.po-approver-review .po-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.po-approver-review details {
  background: #0d1928;
  border: 1px solid #293e51;
  margin: 8px 0;
  border-radius: 6px;
}
.po-approver-review summary {
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 600;
}
.po-approver-review table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.po-approver-review th,
.po-approver-review td {
  padding: 8px;
  border-top: 1px solid #28384b;
  text-align: left;
}
.po-approver-review .po-review-scroll {
  width: 100%;
  overflow: auto;
}
.po-approver-review .po-review-note {
  font-size: 0.86rem;
  color: #adc4dd;
}
.po-approver-review .po-review-bad {
  color: #ffce96;
}

/* Paso 10B-2: decisión única, sin selección por OC. */
.po-approver-review .po-review-decisions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #344b60;
}
.po-approver-review .po-review-decisions .po-review-reject {
  background: #53383c;
  border-color: #93636a;
}
.po-approver-review .po-review-reason-area {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.po-approver-review .po-review-reason-area[hidden] {
  display: none !important;
}
.po-approver-review .po-review-reason-area textarea {
  width: 100%;
  resize: vertical;
  color: #fff;
  background: #0d1928;
  border: 1px solid #4d6477;
  border-radius: 5px;
  padding: 9px;
  font: inherit;
}
.po-approver-review .po-review-reason-area button {
  align-self: flex-start;
}

/* Etiquetas de empresa y proyectos extensas sin recortar identificadores comerciales. */
.po-approver-review .po-review-card,
.po-approver-review .po-review-metric,
.po-approver-review details > summary { overflow-wrap: anywhere; }
.po-approver-review .po-footer { margin-top: 20px; border-top: 1px solid #344b60; padding-top: 14px; }

/* CITADEL-APPROVER-LAYOUT-3X2 */
/* Seis indicadores comerciales: tres columnas, dos filas. */
#utilities-purchase-approvals-section
  .po-approver-review
  .po-review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 600px) {
  #utilities-purchase-approvals-section
    .po-approver-review
    .po-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
