:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #20242a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* Public Swagger viewer */
.public-viewer-page {
  min-height: 100vh;
  background: #ffffff;
}

.viewer-titlebar {
  border-bottom: 1px solid #dfe4ea;
  background: #ffffff;
}

.viewer-brand {
  min-width: 0;
  line-height: 1.25;
}

.viewer-brand small {
  max-width: min(45vw, 620px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-main {
  min-height: calc(100vh - 70px);
  background: #ffffff;
}

#swagger-ui .topbar,
#swagger-ui .models {
  display: none;
}

.public-viewer-page #swagger-ui .swagger-ui {
  padding-bottom: 32px;
}

/* Bootstrap admin */
.admin-page {
  min-height: 100vh;
  background: #f4f6f8;
}

.admin-topbar {
  z-index: 1040;
}

.admin-page .navbar-brand {
  min-width: 0;
  line-height: 1.25;
}

.admin-layout {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-sidebar {
  width: 260px !important;
  border-right: 1px solid #dfe4ea;
  background: #ffffff;
}

.admin-sidebar .offcanvas-body {
  position: sticky;
  top: 66px;
}

.admin-sidebar .nav-link {
  color: #3f4b59;
  font-weight: 600;
}

.admin-sidebar .nav-link:hover {
  background: #f1f5f8;
}

.admin-sidebar .nav-link.active {
  background: #0f6f5f;
  color: #ffffff;
}

.admin-content {
  min-width: 0;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-page .navbar-brand small {
  max-width: min(60vw, 560px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-surface {
  overflow: hidden;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
}

.admin-search {
  width: min(100%, 320px);
}

.admin-page .table {
  min-width: 780px;
}

.admin-page th {
  color: #4a5563;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-page td {
  color: #20242a;
}

.table-name {
  color: #0d5f9f;
  font-weight: 700;
  text-decoration: none;
}

.local-id {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f3ed;
  color: #17633e;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-badge.deprecated {
  background: #fbe9e7;
  color: #9b2c20;
}

.status-badge.pending {
  background: #fff3cd;
  color: #795b00;
}

.status-badge.revoked {
  background: #fbe9e7;
  color: #9b2c20;
}

.status-badge.approved {
  background: #e8f3ed;
  color: #17633e;
}

.admin-empty {
  display: none;
  color: #637083;
}

.admin-empty i {
  font-size: 28px;
}

.modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(25, 34, 45, 0.24);
}

.modal-header,
.modal-footer {
  padding: 16px 20px;
}

.modal-body {
  padding: 20px;
}

.form-label {
  color: #3a4350;
  font-size: 13px;
  font-weight: 650;
}

/* Login */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #eef2f5;
}

.auth-panel {
  width: min(420px, 100%);
  border: 1px solid #d5dde6;
  border-radius: 8px;
  padding: 28px;
  background: #ffffff;
}

.auth-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f6f5f;
  color: #ffffff;
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #0f6f5f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-message {
  min-height: 20px;
  color: #a12424;
  font-size: 14px;
}

@media (max-width: 760px) {
  .viewer-brand small {
    max-width: 100%;
  }

  .auth-panel {
    padding: 22px;
  }
}

@media (max-width: 575.98px) {
  .admin-page .navbar-brand small {
    max-width: 48vw;
  }

  .admin-page .modal-dialog {
    margin: 8px;
  }

  .admin-page .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .admin-page .modal-footer > div,
  .admin-page .modal-footer button {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .admin-layout {
    display: block;
  }

  .admin-sidebar {
    width: min(300px, 86vw) !important;
  }

  .admin-sidebar .offcanvas-body {
    position: static;
  }
}
