#swagger-ui {
  background-color: #f3f6fa;
  padding-bottom: 32px;
  min-height: 100vh;
}

.swagger-container .swagger-ui {
  max-width: 1440px;
  margin-inline: auto;
  position: relative;
}

/* Top bar  */
#swagger-ui .swagger-ui .topbar {
  background-color: #151519;
  padding: 0;
}

#swagger-ui .swagger-ui .info .title {
  font-weight: 500;
}

#swagger-ui .swagger-ui .topbar .wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 64px;
}

#swagger-ui .swagger-ui .topbar-wrapper {
  flex: 1;
}

#swagger-ui .swagger-ui .topbar-wrapper svg {
  display: none;
}

#swagger-ui .swagger-ui .topbar-wrapper .link:before {
  background-image: url("../swagger-ui/logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding-left: 40px;
  height: 32px;
  content: "Aurora Cloud Deep Learning";
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

/* Layout */
#swagger-ui .swagger-ui .information-container .info {
  margin: 0;
  padding-block: 16px;
}

#swagger-ui .swagger-ui .information-container .info .main,
#swagger-ui .swagger-ui .information-container .info .description {
  margin: 0;
}

#swagger-ui .swagger-ui .scheme-container {
  display: contents;
}

#swagger-ui .swagger-ui > div > .wrapper {
  padding: 0;
}

#swagger-ui .swagger-ui .scheme-container .schemes.wrapper {
  padding: 0;
  position: absolute;
  right: 0;
  top: 24px;
  width: min-content;
}

/* Select */
#swagger-ui .swagger-ui select {
  font-size: 16px;
  font-weight: 500;
  min-height: 40px;
  width: 100%;
  max-width: 340px;
  padding: 5px 40px 5px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff
    url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+ICAgIDxwYXRoIGQ9Ik0xMy40MTggNy44NTljLjI3MS0uMjY4LjcwOS0uMjY4Ljk3OCAwIC4yNy4yNjguMjcyLjcwMSAwIC45NjlsLTMuOTA4IDMuODNjLS4yNy4yNjgtLjcwNy4yNjgtLjk3OSAwbC0zLjkwOC0zLjgzYy0uMjctLjI2Ny0uMjctLjcwMSAwLS45NjkuMjcxLS4yNjguNzA5LS4yNjguOTc4IDBMMTAgMTFsMy40MTgtMy4xNDF6Ii8+PC9zdmc+)
    right 10px center no-repeat;
  background-size: 20px;
  box-shadow: none;
  color: #3b4151;
}

#swagger-ui .swagger-ui select option {
  font-size: 16px;
  line-height: 20px;
}

#swagger-ui .swagger-ui .topbar .download-url-wrapper .select-label select {
  min-height: unset;
}

#swagger-ui .swagger-ui select:hover {
  border: 1px solid #0073e6;
}

#swagger-ui .swagger-ui select:focus-visible {
  border: 1px solid #0073e6;
  outline: 1px solid #0073e6;
}

/* Input */
#swagger-ui .swagger-ui input[type="text"],
#swagger-ui .swagger-ui textarea {
  margin: 0;
  color: #212529;
  appearance: none;
  background: #fff;
  background-clip: padding-box;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  display: block;
  min-width: 100px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

#swagger-ui .swagger-ui input[type="text"] {
  min-height: 40px;
  line-height: 1.5;
}

#swagger-ui .swagger-ui input[type="text"]:hover,
#swagger-ui .swagger-ui textarea:hover {
  border: 1px solid #0073e6;
}

#swagger-ui .swagger-ui input[type="text"]:focus-visible,
#swagger-ui .swagger-ui textarea:focus-visible {
  border: 1px solid #0073e6;
  outline: 1px solid #0073e6;
}

#swagger-ui .swagger-ui input[type="text"].invalid {
  animation: unset;
  border-color: #d70015;
  background-color: #fff;
}

#swagger-ui .swagger-ui input[type="text"].invalid:hover {
  border-color: #d70015;
}

#swagger-ui .swagger-ui input[type="text"].invalid:focus-visible {
  border: 1px solid #d70015;
  outline: 1px solid #d70015;
}

#swagger-ui .swagger-ui .errors-wrapper {
  margin-block: 0;
  animation: none;
}

/* Button */
#swagger-ui .swagger-ui .btn,
#swagger-ui .swagger-ui .scheme-container .schemes .auth-wrapper .authorize {
  background-color: #0073e6;
  min-height: 40px;
  color: #fff;
  padding: 7px 11px;
  box-shadow: none;
  border: 1px solid #0073e6;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  display: inline-flex;
  position: relative;
}

#swagger-ui .swagger-ui .btn.authorize span {
  padding: 0;
}

#swagger-ui .swagger-ui .btn:hover,
#swagger-ui
  .swagger-ui
  .scheme-container
  .schemes
  .auth-wrapper
  .authorize:hover {
  box-shadow: none;
  background-color: #599fe5;
  border-color: #599fe5;
}

#swagger-ui .swagger-ui .btn:active,
#swagger-ui
  .swagger-ui
  .scheme-container
  .schemes
  .auth-wrapper
  .authorize:active {
  box-shadow: none;
  background-color: #0a53be;
  border-color: #0a53be;
}

#swagger-ui .swagger-ui .btn-done,
#swagger-ui .swagger-ui .btn.cancel {
  background-color: #fff;
  border-color: #ced2db;
  color: #1d1e23;
}

#swagger-ui .swagger-ui .btn-done:hover,
#swagger-ui .swagger-ui .btn.cancel:hover {
  background-color: #f3f6fa;
  border-color: #ced2db;
}

#swagger-ui .swagger-ui .btn-done:active,
#swagger-ui .swagger-ui .btn.cancel:active {
  background-color: #f1f8ff;
  border-color: #ced2db;
}

#swagger-ui .swagger-ui .btn {
  animation: none;
}

#swagger-ui .swagger-ui .btn svg,
#swagger-ui
  .swagger-ui
  .scheme-container
  .schemes
  .auth-wrapper
  .authorize
  svg {
  fill: #fff;
}

#swagger-ui .swagger-ui .auth-container {
  padding: 0;
}

#swagger-ui .swagger-ui .auth-btn-wrapper {
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 8px;
  padding-bottom: 0;
}

#swagger-ui .swagger-ui .auth-btn-wrapper .btn-done {
  margin: 0;
}

.btn.authorize.locked span {
  display: none;
}

.btn.authorize.locked:before {
  content: "Authorized";
}

.opblock-body .btn-group {
  gap: 8px;
  padding-inline: 16px;
}

/* Actions */
.swagger-ui .opblock .opblock-summary {
  padding: 0 4px 0 0;
}

.swagger-ui .opblock .opblock-summary .authorization__btn,
.swagger-ui .opblock .opblock-summary .view-line-link,
.swagger-ui .opblock .opblock-summary .view-line-link.copy-to-clipboard,
.swagger-ui .opblock .opblock-summary .opblock-control-arrow,
.opblock-tag-section .expand-operation {
  display: flex;
  transition: none;
  background: transparent;
  margin: 0;
  width: unset;
  padding: 4px;
  height: 28px;
}

.swagger-ui .opblock .opblock-summary .authorization__btn:hover,
.swagger-ui .opblock .opblock-summary .view-line-link:hover,
.swagger-ui .opblock .opblock-summary .opblock-control-arrow:hover,
.opblock-tag-section .expand-operation:hover {
  background-color: lightgray;
  border-radius: 4px;
}

.swagger-ui .opblock .opblock-summary:hover .view-line-link.copy-to-clipboard {
  margin: 0;
  width: unset;
}

.swagger-ui .opblock .opblock-summary .view-line-link.copy-to-clipboard svg {
  width: unset;
  height: 21px;
}

.swagger-ui
  .opblock
  .opblock-summary
  .view-line-link.copy-to-clipboard
  svg
  path {
  fill: #3b4151;
}

#swagger-ui .swagger-ui .opblock-section-header {
  box-shadow: none;
  border-bottom: 1px solid rgba(59, 65, 81, 0.2);
  padding-bottom: 4px;
}

#swagger-ui
  .swagger-ui
  .opblock.opblock-get
  .tab-header
  .tab-item.active
  h4
  span:after,
#swagger-ui
  .swagger-ui
  .opblock.opblock-post
  .tab-header
  .tab-item.active
  h4
  span:after {
  background-color: #0073e6;
}

#swagger-ui .swagger-ui .opblock-tag-section {
  background-color: #fff;
  padding: 12px 16px 16px;
  border-radius: 8px;
  gap: 8px;
  min-height: 70px;
}

#swagger-ui .swagger-ui .opblock-tag {
  font-weight: 500;
}

#swagger-ui .swagger-ui .opblock-tag:hover {
  background: none;
}

#swagger-ui .swagger-ui .opblock-tag-section .opblock-tag {
  margin: 0;
  padding: 2px;
}

#swagger-ui .swagger-ui div:has(> span .opblock-tag-section) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

#swagger-ui .swagger-ui .opblock {
  box-shadow: none;
  margin: 0;
}

#swagger-ui .swagger-ui .operation-tag-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swagger-ui .opblock.opblock-get .opblock-summary-method {
  background-color: #0061c2;
}

.swagger-ui .opblock.opblock-post .opblock-summary-method {
  background-color: #002c58;
}

#swagger-ui .swagger-ui .opblock .opblock-summary .opblock-summary-method {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#swagger-ui
  .swagger-ui
  .opblock.is-open
  .opblock-summary
  .opblock-summary-method {
  border-bottom-left-radius: 0;
}

#swagger-ui .swagger-ui .opblock .opblock-summary-control {
  outline: none;
}

#swagger-ui .swagger-ui .opblock .opblock-summary .authorization__btn,
#swagger-ui .swagger-ui .opblock .opblock-summary .opblock-control-arrow {
  display: flex;
}

#swagger-ui .swagger-ui .opblock.opblock-get,
#swagger-ui .swagger-ui .opblock.opblock-post,
#swagger-ui .swagger-ui .opblock.opblock-put,
#swagger-ui .swagger-ui .opblock.opblock-delete {
  background-color: #fff;
}

#swagger-ui .swagger-ui .opblock .response-controls {
  flex-direction: column;
}

#swagger-ui .swagger-ui .opblock .response-col_status {
  width: unset;
}

#swagger-ui .swagger-ui table thead tr td,
#swagger-ui .swagger-ui table thead tr th {
  font-size: 14px;
}

#swagger-ui .swagger-ui .highlight-code .download-contents {
  right: 25px;
}

#swagger-ui .swagger-ui .highlight-code .copy-to-clipboard {
  right: 110px;
}

#swagger-ui .swagger-ui .curl-command .copy-to-clipboard {
  height: 30px;
  width: 30px;
  bottom: 10px;
  right: 10px;
}

/* Models  */
#swagger-ui .swagger-ui .models {
    margin: 0;
    border: none;
    border-radius: 8px;
    background-color: #fff;
    min-height: 70px;
}

#swagger-ui .swagger-ui .models h4 {
  margin: 0;
  color: #3b4151;
  border: none;
  padding: 16px 16px 8px;
}

#swagger-ui .swagger-ui .models h4:hover {
  background-color: transparent;
}

#swagger-ui .swagger-ui .models-control {
  margin: 0;
  border-bottom: 1px solid rgba(59, 65, 81, 0.3);
  outline: none;
}

#swagger-ui .swagger-ui .models-control:hover {
  background-color: transparent;
}

#swagger-ui .swagger-ui .models-control span {
  font-size: 24px;
}

#swagger-ui .swagger-ui .model-container {
  margin: 0;
  display: flex;
}

.swagger-ui div.model,
.swagger-ui span.model {
  display: flex;
  flex: 1;
  align-items: flex-start;
}

.swagger-ui .model > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
}

#swagger-ui .swagger-ui .no-margin {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-inline: 16px;
}

#swagger-ui .swagger-ui .renderedMarkdown p {
  margin: 0;
}

#swagger-ui .swagger-ui .model-box-control {
  outline: none;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.renderedMarkdown,
span.property {
  padding-left: 10px;
}

span.property br {
  display: none;
}

#swagger-ui .swagger-ui .model-box span.pointer .model-title {
  padding: 0;
}

.swagger-ui table.model tr td {
  line-height: 28px;
}

.swagger-ui .swagger-ui .model-toggle {
  position: static;
}

.swagger-ui table.model {
  margin-left: 16px;
}

.model-title__text {
  padding-right: 8px;
}

.swagger-ui .model-box {
  padding: 20px;
  display: flex;
  flex: 1;
}

.swagger-ui .response-control-media-type {
  margin: 0;
}

.content-type-wrapper {
  background: rgb(51, 51, 51);
  border-radius: 4px;
}

#swagger-ui .swagger-ui select.content-type {
  pointer-events: none;
  border: none;
  background: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: white;
  font-size: 14px;
}

.body-param-content-type {
  display: none;
}

.model-hint {
  font-size: 12px;
  top: -18px;
}

.swagger-ui section.models.is-open h4 svg {
  transform: none;
}

.response-col_links {
  display: none;
}

.response-col_description div:first-child h5 {
  margin-top: 0;
}

.swagger-ui .opblock-title,
.swagger-ui .responses-inner h4 {
  font-size: 16px;
  font-weight: 700;
}

.swagger-ui .response-col_status,
.swagger-ui .renderedMarkdown {
  font-weight: 600;
  font-size: 16px;
}

.swagger-ui table tbody tr:not(:last-child) td {
  border-bottom: 1px solid lightgray;
}

.opblock-summary-path-description-wrapper {
  flex: 1;
}

.opblock-summary-description {
  text-align: end;
  font-size: 14px;
  font-weight: 500;
}

.swagger-ui .parameter__name.required {
  font-weight: 600;
}

.swagger-ui .parameter__name {
  font-weight: 500;
}

.response-control-media-type__accept-message {
  display: none;
}

.swagger-ui section.models .model-box:has(.model-box) {
  padding: 0;
}

/* Fonts  */
.swagger-ui .opblock-tag,
.swagger-ui .opblock .opblock-section-header label,
.swagger-ui .opblock .opblock-section-header h4,
.swagger-ui .opblock .opblock-summary-method,
.swagger-ui .tab li,
.swagger-ui .scheme-container .schemes > label,
.swagger-ui .loading-container .loading:after,
.swagger-ui .btn,
.swagger-ui .btn.cancel,
.swagger-ui select,
.swagger-ui .dialog-ux .modal-ux-content h4,
.swagger-ui .dialog-ux .modal-ux-header h3,
.swagger-ui section.models h4,
.swagger-ui section.models h5,
.swagger-ui .parameter__name,
.swagger-ui .topbar a,
.swagger-ui .topbar .download-url-wrapper .download-url-button,
.swagger-ui .info .title small pre,
.swagger-ui .scopes h2,
.swagger-ui .errors-wrapper hgroup h4,
.swagger-ui .topbar .download-url-wrapper .download-url-button,
.swagger-ui .opblock-tag small,
.swagger-ui .opblock .opblock-summary-description,
.swagger-ui .opblock-description-wrapper,
.swagger-ui .opblock-description-wrapper h4,
.swagger-ui .opblock-title_normal,
.swagger-ui .opblock-title_normal h4,
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .opblock-title_normal p,
.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5,
.swagger-ui .response-col_status,
.swagger-ui .dialog-ux .modal-ux-content p,
.swagger-ui .parameters-col_description p,
.swagger-ui .info p,
.swagger-ui .info a,
.swagger-ui .info .title,
.swagger-ui .info a,
.swagger-ui table thead tr td,
.swagger-ui table thead tr th {
  font-family: IBM Plex Sans, sans-serif;
}
