// Local, scoped button base — this app has no global .btn framework (confirmed: not in
// projects/gbhost/src/styles.scss, and gbformaction.component.scss's own .formbuttons styling
// is scoped to that component's template only), so every screen using .btn/.btn-primary/.btn-sm
// classes needs to define them itself. Kept in sync across every Promotion admin screen.
.btn {
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  background: #fff;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }
}

.btn-sm {
  padding: 4px 10px;
}

.btn-primary {
  background: #1976d2;
  border-color: #1976d2;
  color: #fff;
}

.ent-page {
  padding: 12px;
}

.ent-page-head {
  margin-bottom: 16px;
}

.ent-subtext {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.ptv-loading,
.ptv-empty {
  padding: 12px 0;
  color: rgba(0, 0, 0, 0.5);
}

.ptv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;

  th,
  td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
}

.ptv-new-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;

  label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    gap: 4px;
  }
}

.ptv-pem-textarea {
  font-family: monospace;
  font-size: 11px;
  white-space: pre;
  overflow-x: auto;
}

.ptv-checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
}

.btn-danger {
  margin-left: 6px;
  border-color: #b00020;
  color: #b00020;
}
