* {
  box-sizing: border-box;
}

body {
  background: #f1f1f1;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 32px;
}

.topbar-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.brand {
  color: #111;
  font-size: 24px;
  font-weight: bold;
}

.brand span {
  color: #2e8646;
}

.topbar-subtitle {
  color: #555;
  font-size: 16px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.topbar-user {
  color: #666;
  font-size: 13px;
}

.topbar-logout {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  padding: 6px 12px;
  text-decoration: none;
}

.topbar-logout:hover {
  background: #eee;
  color: #111;
}

.hero {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  padding: 16px 32px;
}

.hero-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero h1 {
  color: #222;
  font-size: 24px;
  margin: 0;
}

.hero-version {
  background: #e8f5ec;
  border: 1px solid #b8dfc4;
  border-radius: 999px;
  color: #2e8646;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .04em;
  padding: 3px 10px;
}

.hero-url {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-left: 3px solid #2e8646;
  border-radius: 4px;
  flex: 0 1 auto;
  margin-left: auto;
  max-width: 480px;
  width: 100%;
  padding: 8px 10px;
}

.hero-url-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hero-url-label {
  color: #666;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-url-copy {
  background: transparent;
  border: 0;
  color: #2e8646;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
}

.hero-url-copy:hover {
  text-decoration: underline;
}

.hero-url-value {
  color: #1a1a1a;
  display: block;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-info div {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-left: 4px solid #2e8646;
  border-radius: 3px;
  padding: 8px 12px;
}

.topbar-info strong {
  color: #555;
  display: block;
  font-size: 11px;
  letter-spacing: .05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  margin: 24px 0;
  padding: 0 32px;
  width: 100%;
}

aside {
  align-self: start;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  padding: 12px;
  position: sticky;
  top: 16px;
}

aside h2 {
  border-left: 2px solid #2e8646;
  color: #222;
  font-size: 14px;
  margin: 0 0 12px;
  padding-left: 8px;
}

aside a {
  border-left: 2px solid #2e8646;
  color: #222;
  display: block;
  font-weight: bold;
  padding: 7px 0 7px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.menu-category {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 8px;
}

.menu-category summary {
  align-items: center;
  border-left: 2px solid #2e8646;
  color: #222;
  cursor: pointer;
  display: flex;
  font-weight: bold;
  justify-content: space-between;
  list-style: none;
  padding: 7px 0 7px 8px;
  white-space: nowrap;
}

.menu-category summary::-webkit-details-marker {
  display: none;
}

.menu-category summary::after {
  color: #2e8646;
  content: '+';
  font-weight: bold;
  padding-left: 8px;
}

.menu-category[open] summary::after {
  content: '-';
}

.category-link {
  border-left-color: #d7d7d7;
  color: #555;
  font-size: 12px;
  margin-left: 10px;
  padding-left: 10px;
}

.entity-link {
  border-left-color: #d7d7d7;
  color: #555;
  font-size: 12px;
  margin-left: 10px;
  padding-left: 10px;
}

aside a:hover {
  color: #2e8646;
}

main {
  min-width: 0;
}

section,
details,
article {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.intro,
.entity {
  margin-bottom: 22px;
  padding: 24px;
}

.category-group {
  border-left: 3px solid #2e8646;
  margin-bottom: 12px;
}

.category-group > summary,
.auth-group > summary {
  font-size: 17px;
  line-height: 1.3;
}

.category-group > .category-body {
  padding-top: 12px;
}

.category-description {
  margin: 0 0 16px;
}

.category-group .entity {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: none;
  margin: 0 0 12px;
  padding: 14px 16px;
}

.category-group .entity:last-child {
  margin-bottom: 0;
}

h2,
h3,
h4 {
  color: #222;
}

h2 {
  border-left: 4px solid #2e8646;
  margin-top: 0;
  padding-left: 10px;
}

.entity > h3 {
  border-left: 3px solid #2e8646;
  font-size: 15px;
  margin-top: 0;
  padding-left: 10px;
}

.method-category {
  background: #2e8646;
  min-width: 46px;
}

code,
pre {
  background: #f8f9fa;
  border-radius: 3px;
  font-family: Consolas, Monaco, monospace;
}

code {
  padding: 2px 5px;
}

pre {
  border: 1px solid #ddd;
  border-left: 4px solid #2e8646;
  font-size: 12px;
  line-height: 1.35;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

table {
  border-collapse: collapse;
  margin: 8px 0 12px;
  width: 100%;
}

th,
td {
  border: 1px solid #ddd;
  overflow-wrap: anywhere;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

th {
  background: #f8f9fa;
  color: #222;
}

.endpoint-info table {
  font-size: 12px;
  table-layout: fixed;
}

.endpoint-info th:first-child,
.endpoint-info td:first-child {
  width: 42%;
}

.endpoint-info th:nth-child(2),
.endpoint-info td:nth-child(2) {
  width: 11%;
}

.endpoint-info th:nth-child(2) {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.endpoint-info th:nth-child(3),
.endpoint-info td:nth-child(3) {
  width: 10%;
}

.endpoint-info table.parametros-table th:nth-child(4),
.endpoint-info table.parametros-table td:nth-child(4),
.endpoint-info table.parametros-table th:nth-child(5),
.endpoint-info table.parametros-table td:nth-child(5) {
  width: 18.5%;
  max-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.texto-colapsavel {
  min-width: 0;
}

.texto-colapsavel-conteudo {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.texto-colapsavel.is-expanded .texto-colapsavel-conteudo,
.texto-colapsavel.is-short .texto-colapsavel-conteudo {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.texto-colapsavel-toggle[hidden] {
  display: none !important;
}

.texto-colapsavel-toggle {
  background: none;
  border: 0;
  color: #2e8646;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  padding: 0;
}

.texto-colapsavel-toggle:hover {
  text-decoration: underline;
}

.endpoint-info td code {
  font-size: 12px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.endpoint-group {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  margin-top: 18px;
  overflow: hidden;
}

.endpoint-group[data-method="GET"] {
  border-left: 3px solid #2e8646;
}

.endpoint-group[data-method="POST"] {
  border-left: 3px solid #2563eb;
}

.endpoint-group[data-method="PUT"] {
  border-left: 3px solid #d97706;
}

.endpoint-group.auth-group {
  border-left: 3px solid #2e8646;
}

.endpoint-group > summary {
  align-items: center;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  font-weight: bold;
  gap: 8px;
  list-style: none;
  padding: 12px 16px;
}

.endpoint-group > summary::-webkit-details-marker {
  display: none;
}

.endpoint-group > summary::after {
  color: #888;
  content: '+';
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  margin-left: auto;
  padding-left: 16px;
}

.endpoint-group[open] > summary::after {
  content: '\2212';
}

.endpoint-group > summary:hover {
  background: #f3f7f4;
}

.endpoint-group[open] > summary {
  border-bottom: 1px solid #e5e5e5;
}

.endpoint-group .endpoint {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: none;
  margin: 10px 12px;
}

.endpoint-group .endpoint:last-child {
  margin-bottom: 12px;
}

.endpoint-group .endpoint + .endpoint {
  border-top: 1px solid #e8e8e8;
}

.endpoint {
  margin-top: 18px;
  padding: 0;
}

.endpoint > summary.endpoint-header {
  background: #fff;
  border-bottom: 0;
  cursor: pointer;
  display: block;
  list-style: none;
  padding: 12px 44px 12px 16px;
  position: relative;
  transition: background .12s ease;
}

.endpoint > summary.endpoint-header::-webkit-details-marker {
  display: none;
}

.endpoint > summary.endpoint-header::after {
  color: #2e8646;
  content: '+';
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.endpoint > summary.endpoint-header:hover {
  background: #f7faf8;
}

.endpoint[open] > summary.endpoint-header {
  background: #f3f8f5;
  border-bottom: 1px solid #e5e5e5;
}

.endpoint[open] > summary.endpoint-header::after {
  content: '\2212';
}

.endpoint-summary-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 6px;
  min-width: 0;
}

.endpoint-summary-path {
  background: #f0f2f4;
  border-radius: 3px;
  color: #1f2937;
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: normal;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 3px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-summary-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 8px;
}

.endpoint-summary-name {
  color: #111;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.3;
}

.endpoint-summary-desc {
  color: #666;
  display: -webkit-box;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.endpoint-header {
  background: #fbfbfb;
  border-bottom: 1px solid #ddd;
  padding: 12px 16px;
}

.endpoint-body {
  padding: 14px 16px;
}

.endpoint-content {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.endpoint-info,
.endpoint-examples {
  min-width: 0;
}

.endpoint-info {
  overflow-x: auto;
}

.endpoint-examples h4:first-child,
.endpoint-info h4:first-child {
  margin-top: 0;
}

.endpoint-tabs {
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 0;
  margin: 4px 0 0;
}

.endpoint-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  color: #666;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: -1px;
  padding: 8px 14px;
}

.endpoint-tab.is-active {
  background: #fff;
  border-color: #ddd;
  border-bottom-color: #fff;
  color: #2e8646;
}

.endpoint-tab-panel {
  display: none;
}

.endpoint-tab-panel.is-active {
  display: block;
}

.campos-table code {
  background: none;
  border-radius: 0;
  padding: 0;
}

.endpoint-info table.campos-table th:first-child,
.endpoint-info table.campos-table td:first-child {
  width: 28%;
}

.endpoint-info table.campos-table th:nth-child(2),
.endpoint-info table.campos-table td:nth-child(2) {
  width: 14%;
}

.endpoint-info table.campos-table th:nth-child(3),
.endpoint-info table.campos-table td:nth-child(3) {
  width: 58%;
  white-space: normal;
}

.campo-grupo > td {
  background: #fff;
  padding: 0;
}

.campo-colapsavel > summary {
  align-items: center;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  font-weight: normal;
  gap: 0;
  grid-template-columns: 28% 14% 58%;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.parametro-colapsavel > summary {
  grid-template-columns: 42% 11% 10% 18.5% 18.5%;
}

.parametro-colapsavel > summary > span {
  border-right: 1px solid #ddd;
  box-sizing: border-box;
  min-width: 0;
}

.parametro-colapsavel > summary > span:last-child {
  border-right: 0;
}

.parametro-colapsavel .campos-aninhados {
  table-layout: fixed;
  width: 100%;
}

.parametro-colapsavel .campos-aninhados td:first-child {
  width: 42%;
}

.parametro-colapsavel .campos-aninhados td:nth-child(2) {
  width: 11%;
}

.parametro-colapsavel .campos-aninhados td:nth-child(3) {
  width: 10%;
}

.parametro-colapsavel .campos-aninhados td:nth-child(4),
.parametro-colapsavel .campos-aninhados td:nth-child(5) {
  width: 18.5%;
}

.campo-colapsavel > summary::-webkit-details-marker {
  display: none;
}

.campo-colapsavel > summary::after {
  content: none;
}

.campo-nome,
.campo-colapsavel > summary .campo-obrigatorio,
.campo-colapsavel > summary .campo-tipo,
.campo-colapsavel > summary .campo-descricao,
.campo-colapsavel > summary .campo-notas {
  padding: 8px;
}

.campo-nome::before {
  color: #2e8646;
  content: '+';
  display: inline-block;
  font-weight: bold;
  margin-right: 8px;
  width: 1em;
}

.campo-colapsavel[open] > summary .campo-nome::before {
  content: '\2212';
}

.campo-colapsavel > summary .campo-tipo,
.campo-colapsavel > summary .campo-descricao {
  color: #222;
}

.campos-aninhados {
  border: 0;
  margin: 0;
  width: 100%;
}

.campos-aninhados td {
  border-left: 0;
  border-right: 0;
}

.campos-aninhados tr:last-child td {
  border-bottom: 0;
}

.campos-aninhados td:first-child {
  padding-left: 28px;
}

.endpoint-examples {
  background: #fafbfc;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 12px 14px;
}

.endpoint-examples pre {
  background: #ffffff;
  font-size: 11px;
  line-height: 1.3;
  margin: 6px 0 12px;
  max-height: 280px;
  overflow: auto;
}

.endpoint-examples pre.response-example {
  max-height: 360px;
  overflow-y: auto;
}

.endpoint-examples pre:last-child {
  margin-bottom: 0;
}

.example-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.example-title p {
  margin: 0;
}

.copy-example {
  background: transparent;
  border: 0;
  color: #2e8646;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.copy-example:hover {
  text-decoration: underline;
}

.method {
  background: #2e8646;
  border-radius: 3px;
  color: #ffffff;
  display: inline-block;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .03em;
  margin-right: 0;
  min-width: 42px;
  padding: 3px 7px;
  text-align: center;
}

.method-get,
.method-auth {
  background: #2e8646;
}

.method-post {
  background: #2563eb;
}

.method-put {
  background: #d97706;
}

.endpoint-route {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
  padding: 8px 10px;
}

.endpoint-route-value {
  background: transparent;
  flex: 1 1 auto;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0;
  word-break: break-all;
}

.endpoint-route-copy {
  background: transparent;
  border: 0;
  color: #2e8646;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  margin-left: auto;
  padding: 0;
}

.endpoint-route-copy:hover {
  text-decoration: underline;
}

.permalink {
  color: #2e8646;
  flex-shrink: 0;
  font-size: 11px;
  margin-left: auto;
  text-decoration: none;
  white-space: nowrap;
}

.permalink:hover {
  text-decoration: underline;
}

.permalink-copied {
  color: #1f6f39;
  font-weight: bold;
}

.muted {
  color: #666;
}

.empty-entity {
  color: #999;
  cursor: default;
  display: block;
  padding: 7px 0 7px 13px;
}

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

  .endpoint-content {
    display: block;
  }

  .endpoint-examples {
    margin-top: 16px;
  }

  .endpoint-summary-path {
    flex: 1 1 140px;
  }

  aside {
    margin-bottom: 20px;
    position: static;
  }
}
