
/* Generated Backend API reference (site/kb/062 backend-api/, see
   generate-backend-api-reference.mjs). Interactive behavior lives in
   site/kb-api-tester.js. */
.kb .bapi-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px 0;
}

.kb .bapi-method {
  background: rgb(20, 87, 107);
  color: white;
  font-weight: bold;
  font-size: 9pt;
  padding: 2px 8px;
  border-radius: 4px;
}

.kb .bapi-url {
  overflow-wrap: anywhere;
}

.kb .bapi-auth {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 9pt;
  padding: 1px 8px;
  border-radius: 10px;
  cursor: help;
}

.kb .bapi-required {
  display: inline-block;
  color: var(--accent-color);
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 4px;
}

.kb .bapi-parent {
  opacity: 0.6;
}

.kb .bapi-try {
  background: #f5f8f9;
  border: 1px solid #d5e0e3;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 16px 0;
}

.kb .bapi-token-line {
  font-size: 10pt;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}

.kb .bapi-token-set {
  color: #2b7a1f;
}

.kb .bapi-payload {
  width: 100%;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 10pt;
  line-height: 1.4;
  padding: 8px;
  border: 1px solid #c4d0d4;
  border-radius: 4px;
  background: white;
  resize: vertical;
}

.kb .bapi-payload.invalid {
  border-color: #d93025;
}

.kb .bapi-json-error {
  color: #d93025;
  font-size: 10pt;
  margin-top: 4px;
}

.kb .bapi-actions,
.kb .bapi-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.kb .bapi-try button,
.kb .bapi-downloads button,
.kb .bapi-tab-bar button,
.bapi-dialog button {
  font-family: ubuntu, sans-serif;
  font-size: 10pt;
  padding: 5px 12px;
  border-radius: 4px;
  border: 1px solid #b8c4c8;
  background: white;
  cursor: pointer;
}

.kb .bapi-try .bapi-send,
.kb .bapi-downloads button,
.bapi-dialog .bapi-dialog-ok {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  font-weight: bold;
}

.kb .bapi-try button:disabled {
  opacity: 0.6;
  cursor: default;
}

.kb .bapi-try .bapi-forget {
  padding: 1px 8px;
  font-size: 9pt;
}

.kb .bapi-status {
  font-weight: bold;
  font-size: 10pt;
}

.kb .bapi-status.ok {
  color: #2b7a1f;
}

.kb .bapi-status.error {
  color: #d93025;
}

.kb .bapi-response {
  background: white;
  border: 1px solid #d5e0e3;
  border-radius: 4px;
  padding: 8px;
  max-height: 420px;
  overflow: auto;
  font-family: monospace;
  font-size: 10pt;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kb .bapi-tabs {
  margin-bottom: 16px;
}

.kb .bapi-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.kb .bapi-tab-bar .bapi-tab.active {
  background: rgb(20, 87, 107);
  border-color: rgb(20, 87, 107);
  color: white;
}

.kb .bapi-tab-bar .bapi-copy {
  margin-left: auto;
}

.kb .bapi-schema {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.kb .bapi-schema summary {
  margin-bottom: 0;
}

.kb .bapi-schema[open] summary {
  margin-bottom: 8px;
}

.kb .bapi-origin {
  font-size: 9pt;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0 6px;
  margin-left: 4px;
}

.bapi-dialog {
  max-width: 520px;
  width: calc(100% - 32px);
  border: none;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.bapi-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.bapi-dialog h3 {
  margin-top: 0;
}

.bapi-dialog p {
  font-size: 11pt;
  line-height: 1.4;
}

.bapi-dialog a {
  color: var(--accent-color);
}

.bapi-dialog label {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

.bapi-dialog .bapi-token-input-row {
  display: flex;
  gap: 6px;
}

.bapi-dialog .bapi-token-input {
  flex: 1;
  font-family: monospace;
  font-size: 10pt;
  padding: 6px 8px;
  border: 1px solid #b8c4c8;
  border-radius: 4px;
}

.bapi-dialog .bapi-dialog-note {
  font-size: 10pt;
  color: #555;
}

.bapi-dialog .bapi-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Compact property tables (request / response / callback). Two columns; the
   name column stacks name, required badge, type and default. Nested object
   properties sit in a collapsed <details> inside their parent row. */
.kb table.bapi-fields {
  width: 100%;
  margin: 8px 0 18px;
  font-size: 10.5pt;
  line-height: 1.4;
}

.kb table.bapi-fields th,
.kb table.bapi-fields td {
  padding: 6px 12px;
}

.kb table.bapi-fields th:first-child,
.kb table.bapi-fields td:first-child {
  padding-left: 4px;
  width: 34%;
}

.kb table.bapi-fields td.bapi-prop {
  overflow-wrap: anywhere;
}

.kb .bapi-name {
  font-weight: bold;
}

.kb .bapi-type {
  margin-top: 2px;
  color: #666;
}

.kb .bapi-type code {
  color: #666;
  font-size: 9pt;
}

.kb .bapi-default {
  font-size: 9pt;
  margin-left: 8px;
}

.kb .bapi-enum {
  margin-top: 4px;
  font-size: 9.5pt;
}

.kb .bapi-enum code {
  background: #f0f3f4;
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 2px;
}

.kb .bapi-nested {
  margin-top: 6px;
}

.kb .bapi-nested summary {
  display: inline-block;
  margin: 0;
  font-size: 9.5pt;
  color: rgb(20, 87, 107);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.kb .bapi-nested summary::-webkit-details-marker {
  display: none;
}

.kb .bapi-nested summary::before {
  content: "\25B8\00a0Show ";
}

.kb .bapi-nested[open] > summary::before {
  content: "\25BE\00a0Hide ";
}

.kb .bapi-nested > table.bapi-fields-nested {
  margin: 6px 0 2px;
  border-left: 3px solid #d5e0e3;
  background: #fafbfc;
  font-size: 10pt;
}

.kb table.bapi-fields-nested td:first-child {
  padding-left: 10px;
}

.kb table.bapi-fields-nested tr:last-child td {
  border-bottom: none;
}
