/* Importações */
@import url("core.css");

/* Variáveis globais */
:root {
  --bg-color: #fff;
  --primary-color: #fff;
  --secondary-color: #163134;
  --text-color: #333;
  --border-color: #ccc;
  --heading-color: #163134;
  --highlight-color: #ff3d3d;
  --font-size-base: 14px;
  --font-size-small: 12px;
  --font-size-large: 18px;
  --padding-base: 10px;
  --button-bg-color: #225055;; /* Cor de fundo do botão */
  --button-border-color: #bbb; /* Cor da borda do botão */
  --button-hover-bg-color: #e0e0e0; /* Cor de fundo do botão no hover */
  --button-active-bg-color: #ccc; /* Cor de fundo do botão quando ativo */
}

/* Reset e normalização */
* {
  margin-top: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: var(--font-size-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.5;
}

/* Títulos */
#title {
  border-bottom: 4px solid var(--border-color);
  display: none;
}

#title h1 {
  color: var(--heading-color);
  font-size: var(--font-size-large);
  padding: var(--padding-base);
  line-height: 1.2;
}

#title h1 .small {
  color: var(--text-color);
  font-size: var(--font-size-small);
  padding-left: var(--padding-base);
}



/* Estilo dos links quando o mouse passa por cima (hover) */

/* Conteúdo do documento */
#doc-content {
  padding: var(--padding-base);
  overflow: auto;
}

/* Sumários */
.jd-sumtable {
  margin: 0.5em auto;
  width: 95%;
  font-size: 0.9em;
  border-spacing: 0;
  border-collapse: collapse;
}

.jd-sumtable th {
  text-align: left;
  font-style: italic;
}

.jd-sumtable td {
  padding: var(--padding-base);
  border: 1px solid var(--border-color);
}

/* Avisos */
p.note {
  padding-left: var(--padding-base);
  border-left: 4px solid var(--secondary-color);
}

p.warning {
  border-color: var(--highlight-color);
}

p.caution {
  border-color: #ffcf00;
}

/* Resumo */
.toggle-all {
  display: block;
  text-align: right;
  font-size: var(--font-size-small);
  font-weight: normal;
}

/* BEGIN image and caption styles (originally for UI Guidelines docs) */

table.image-caption {
  margin: 0.5em 0;
  border: none;
  width: 100%; /* Garantir que a tabela ocupe toda a largura disponível */
}

td.image-caption-i {
  font-size: 0.92rem; /* Use rem para tamanhos mais flexíveis */
  padding: 0 0.5em;
  margin: 0;
  border: none;
}

td.image-caption-i img {
  padding: 0 1em;
  margin: 0;
  max-width: 100%; /* Garante que a imagem não ultrapasse o tamanho da célula */
  height: auto;
}

.image-list {
  width: 24px;
  text-align: center;
}

td.image-caption-c {
  font-size: 0.92rem;
  padding: 1em 2px 2px 2px;
  margin: 0;
  border: none;
  width: 100%;
}

.grad-rule-top {
  background-image: url(images/grad-rule-qv.png);
  background-repeat: no-repeat;
  padding-top: 1em;
  margin-top: 0;
}

.image-caption-nested {
  margin-top: 0;
  padding: 0 0 0 1em;
}

.image-caption-nested td {
  padding: 0 0.25em 0.125em 0;
  margin: 0;
  border: none;
}

/* END image and caption styles */

/* table of contents */

ol.toc {
  margin: 0 0 1em 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

ol.toc li {
  font-weight: bold;
  margin: 0 0 0.5em 1em;
}

ol.toc li p {
  font-weight: normal;
}

ol.toc li ol {
  margin: 0;
  padding: 0;
}

ol.toc li li {
  padding: 0;
  margin: 0 0 0 1em;
  font-weight: normal;
  list-style: none;
}

table ol.toc {
  margin-left: 0;
}

.columns td {
  padding: 0 0.5em;
  border: none;
}

/* link table */
.jd-linktable {
  margin: 0 0 1em;
  border-bottom: 1px solid #888;
}

.jd-linktable th,
.jd-linktable td {
  padding: 0.3em 0.5em;
  vertical-align: top;
  text-align: left;
  border: none;
}

.jd-linktable tr {
  background-color: #fff;
}

.jd-linktable td {
  border-top: 1px solid #888;
}

.jd-linktable td p {
  padding: 0 0 0.5em;
}

.jd-linktable .jd-typecol {
  text-align: right;
}

.jd-linktable .jd-commentrow {
  border-top: none;
  padding-left: 1.5em;
}

.jd-deprecated-warning {
  margin-top: 0;
  margin-bottom: 1em;
}

tr.alt-color {
  background-color: #f6f6f6;
}

/* expando trigger */
#jd-content .jd-expando-trigger-img {
  margin: 0;
}

/* jd-expando */
.jd-inheritedlinks {
  padding-left: 1rem;
}

/* SDK PAGE */
table.download tr {
  background-color: #d9d9d9;
}

table.download tr.alt-color {
  background-color: #ededed;
}

table.download td,
table.download th {
  border: 2px solid #fff;
  padding: 1em 0.5em;
}

table.download th {
  background-color: #6d8293;
  color: #fff;
}

/* INLAY 180 COPY and 240PX EXTENSION */
/* Refatoração para melhor responsividade e clareza */
.g-tpl-240 .g-unit,
.g-unit .g-tpl-240 .g-unit,
.g-unit .g-unit .g-tpl-240 .g-unit {
  display: block;
  margin: 0 0 0 15rem;
  width: 100%;
  float: none;
}

.g-unit .g-unit .g-tpl-240 .g-first,
.g-unit .g-tpl-240 .g-first,
.g-tpl-240 .g-first {
  display: block;
  margin: 0;
  width: 15rem;
  float: left;
}

/* Adaptação das variações de largura (200px, 190px, 180px) com flexibilidade */
.g-tpl-200 .g-unit,
.g-unit .g-tpl-200 .g-unit,
.g-unit .g-unit .g-tpl-200 .g-unit {
  display: block;
  margin: 0 0 0 12.5rem;
  width: 100%;
}

.g-unit .g-unit .g-tpl-200 .g-first,
.g-unit .g-tpl-200 .g-first,
.g-tpl-200 .g-first {
  display: block;
  margin: 0;
  width: 12.5rem;
  float: left;
}

/* Estilos do Layout para 190px */
.g-tpl-190 .g-unit,
.g-unit .g-tpl-190 .g-unit,
.g-unit .g-unit .g-tpl-190 .g-unit {
  display: block;
  margin: 0 0 0 11.875rem;
  width: 100%;
}

.g-unit .g-unit .g-tpl-190 .g-first,
.g-unit .g-tpl-190 .g-first,
.g-tpl-190 .g-first {
  display: block;
  margin: 0;
  width: 11.875rem;
  float: left;
}

/* Estilos para 180px */
.g-tpl-180 .g-unit,
.g-unit .g-tpl-180 .g-unit,
.g-unit .g-unit .g-tpl-180 .g-unit {
  display: block;
  margin: 0 0 0 11.25rem;
  width: 100%;
}

.g-unit .g-unit .g-tpl-180 .g-first,
.g-unit .g-tpl-180 .g-first,
.g-tpl-180 .g-first {
  display: block;
  margin: 0;
  width: 11.25rem;
  float: left;
}

/* JQUERY RESIZABLE STYLES */
.ui-resizable {
  position: relative;
}

.ui-resizable-handle {
  position: absolute;
  display: none;
  font-size: 0.1px;
  z-index: 1;
}

.ui-resizable .ui-resizable-handle {
  display: block;
}

body .ui-resizable-disabled .ui-resizable-handle {
  display: none;
}

body .ui-resizable-autohide .ui-resizable-handle {
  display: none;
}

.ui-resizable-s {
  cursor: s-resize;
  height: 6px;
  width: 100%;
  bottom: 0;
  left: 0;
  background: transparent url("images/resizable-s2.gif") repeat center top;
}

.ui-resizable-e {
  cursor: e-resize;
  width: 6px;
  right: 0;
  top: 0;
  height: 100%;
  background: transparent url("images/resizable-e2.gif") repeat right center;
}

/* Estilos para impressão */
@media print {
  body {
    overflow: visible;
  }

  #header {
    height: 60px;
  }

  #headerLeft {
    padding: 0;
  }

  #header-tabs,
  #headerRight,
  #side-nav,
  #api-info-block {
    display: none;
  }

  #body-content {
    position: inherit;
  }

  #doc-content {
    margin-left: 0 !important;
    height: auto !important;
    width: auto !important;
    overflow: inherit;
    display: inline;
  }

  #jd-content {
    padding: 1em 0 0;
  }

  #footer {
    float: none;
    margin: 2em 0 0;
  }

  h4.jd-details-title {
    border-bottom: 1px solid #666;
  }

  pre {
    white-space: pre-wrap; /* Suporte melhorado para quebras de linha */
    word-wrap: break-word; /* Quebra de palavras */
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  table, img {
    page-break-inside: avoid;
  }
}

.container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

#content {
  flex-grow: 1; /* O conteúdo pode crescer para ocupar espaço */
  min-width: 0; /* Permite o conteúdo diminuir sem empurrar a sidebar */
  overflow: auto;
}

.sidebar2 {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  background-color: #ffffff;
  min-height: 100vh;
  overflow: auto;
  resize: none; /* trava o redimensionamento interno */
  flex-shrink: 0; /* impede que a sidebar diminua em layouts flexíveis */
}




.sidebar2-header {
  background-color: #ffffff;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #6c757d;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* sombra leve */
}


.menu-item, .dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 15px;
  color: #6c757d; /* COR CINZA PADRÃO */
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  outline: none;
  white-space: nowrap; 
  overflow: hidden;    
  text-overflow: ellipsis;
}

.menu-item:hover, .dropdown-btn:hover {
  background-color: #ffffff; /* FUNDO CONTINUA BRANCO */
  color: #00a335; /* MOUSE EM CIMA → VERDE */
}

.menu-item.active, .dropdown-btn.active {
  color: #00a335; /* ITEM ATIVO → VERDE */
  background-color: #ffffff; /* FUNDO BRANCO MESMO ATIVO */
}

.dropdown-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
  flex-direction: column;
}

.dropdown-container a {
  padding: 10px 40px;
  font-size: 14px;
  color: #6c757d; /* COR CINZA PADRÃO */
  text-decoration: none;
  display: block;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-container a:hover {
  background-color: #ffffff; /* FUNDO BRANCO MESMO NO HOVER */
  color: #00a335; /* TEXTO VERDE NO HOVER */
}

.dropdown-container a.active {
  color: #00a335; /* TEXTO VERDE SE ATIVO */
  background-color: #ffffff;
}

.caret {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.rotate {
  transform: rotate(90deg);
}
