/* aedifion brand restyle of Swagger UI 3 (PLAT-809).
   Overrides the bundled swagger-ui.css; loaded after it in index.html. */

body {
  margin: 0;
  background: #fafafa;
}

/* Branded header above the Swagger UI container */
#header {
  background-color: #e50046;
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

#header #logo img {
  height: 32px;
  display: block;
}

/* Brand font */
.swagger-ui,
.swagger-ui .info .title,
.swagger-ui .info li, .swagger-ui .info p, .swagger-ui .info table,
.swagger-ui .opblock-tag,
.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock .opblock-section-header h4,
.swagger-ui .btn,
.swagger-ui label,
.swagger-ui .parameter__name,
.swagger-ui .parameter__type,
.swagger-ui .response-col_status,
.swagger-ui .model-title,
.swagger-ui table thead tr td, .swagger-ui table thead tr th,
.swagger-ui .dialog-ux .modal-ux-content h4,
.swagger-ui .dialog-ux .modal-ux-header h3 {
  font-family: "Lato", Helvetica, Arial, sans-serif;
}

/* Hide the servers dropdown: the spec declares a single same-origin server
   ("/"), so the selector carries no information (matches the Swagger UI 2
   look, which had no such control). */
.swagger-ui .servers,
.swagger-ui .servers-title {
  display: none;
}

/* Brand accents */
.swagger-ui .info a {
  color: #e50046;
}

.swagger-ui .btn.authorize {
  color: #e50046;
  border-color: #e50046;
  border-radius: 8px;
}

.swagger-ui .btn.authorize svg {
  fill: #e50046;
}

.swagger-ui .btn.authorize:hover {
  background-color: #e50046;
  color: #fff;
}

.swagger-ui .btn.authorize:hover svg {
  fill: #fff;
}

.swagger-ui .dialog-ux .modal-ux .btn.modal-btn.auth.authorize {
  background-color: #e50046;
  border-color: #e50046;
  color: #fff;
}

/* Scope selection: the only scope (openid) is mandatory — hide the
   select all / select none shortcuts and signal the locked checkbox
   (unchecking is blocked in index.html). */
.swagger-ui .auth-container .scopes h2 a {
  display: none;
}

.swagger-ui .auth-container .checkbox:has(input[id^="openid-"][id*="-checkbox-"]) {
  cursor: not-allowed;
}

.swagger-ui .auth-container .checkbox:has(input[id^="openid-"][id*="-checkbox-"]) label {
  pointer-events: none;
}

/* The client_id is fixed — injected via initOAuth from /settings/swagger-ui —
   and must not be edited by the user: hide the input row in the authorize
   dialog entirely. */
.swagger-ui .auth-container div:has(> label[for="client_id"]) {
  display: none;
}
