.pc-mapping-panel {
  margin-bottom: 18px;
}

.pc-mapping-panel .panel-header {
  align-items: flex-start;
}

.pc-mapping-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 720px;
}

.sap-app-control {
  height: 30px;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
}

.sap-app-action {
  min-width: 130px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sap-app-action svg,
.sap-reference-link svg {
  width: 13px;
  height: 13px;
}

.sap-app-action.is-ready {
  background: var(--navy);
  color: #FFFFFF;
}

.sap-app-action.is-ready:hover {
  background: var(--blue);
}

.sap-app-action.is-pending {
  background: #F8F9FC;
  color: var(--muted);
}

.sap-reference-link {
  width: 30px;
  border-left: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.sap-reference-link:hover {
  background: var(--pale);
  color: var(--navy);
}

.pc-mapping-table {
  min-width: 860px;
}

.pc-mapping-table th:nth-child(4),
.pc-mapping-table td:nth-child(4),
.pc-mapping-table th:nth-child(5),
.pc-mapping-table td:nth-child(5),
.pc-mapping-table th:nth-child(6),
.pc-mapping-table td:nth-child(6) {
  text-align: center;
}

.hierarchy-node {
  display: inline-block;
  padding: 3px 6px;
  background: #F1F3FF;
  color: var(--navy);
  font-size: 9px;
  font-weight: 600;
}

.status-pill.PENDING_SAP_VALIDATION {
  border-color: #EDC78F;
  background: var(--amber-pale);
  color: var(--amber);
}

@media (max-width: 1180px) {
  .pc-mapping-panel .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .pc-mapping-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .sap-app-control {
    width: 100%;
  }

  .sap-app-action {
    flex: 1;
    justify-content: flex-start;
  }
}
