
/* Cursor de carregamento de camada WMS */
.map-is-loading,
.map-is-loading .leaflet-grab,
.map-is-loading .leaflet-interactive {
  cursor: progress !important;
}

/* Overlay de abertura do mapa: cobre #map até a base cartográfica inicial carregar. */
#map {
  position: relative;
}

.map-boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(18, 22, 26, 0.88);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.map-boot-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.map-boot-overlay-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #00AEEF;
  border-radius: 50%;
  animation: map-boot-spin 0.8s linear infinite;
}

.map-boot-overlay-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #f0f2f4;
}

@keyframes map-boot-spin {
  to { transform: rotate(360deg); }
}

/* Remove o retângulo de foco padrão; layer-loader.js desenha o próprio contorno de seleção. */
.leaflet-interactive:focus {
  outline: none;
}

*{
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  font-family: "open sans", sans-serif;
}

body {
  background: #fff;
}

.link-button label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 110%;
}

.leaflet-touch .link-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: #fff;
  margin-bottom: 5px;
  padding: 5px;
}

.link-button:hover {
  background-color: #f4f4f4;
  fill: #a200ff;
}

.link-button:hover:after {
  position: absolute;
  display: flex;
  justify-content: end;
  content: attr(title);
  right: 40px;
  width: auto;
  white-space: nowrap;
  background: #fff;
  padding: 5px;
}

.geojson {
  display: none;
}

input[type="file"] {
  font-size: 0;
}
::file-selector-button {
  font-size: initial;
}

.icon-geojson {
  width: 25px;
  height: 25px;
}

.geojson-tool-window {
  min-width: 36px;
  background: rgba(240, 234, 217, 0.82);
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(1px);
  overflow: hidden;
}

.geojson-tool-window-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(227, 216, 186, 0.76);
  border-bottom: 1px solid rgba(178, 165, 134, 0.7);
}

.geojson-tool-window-title {
  font-size: 15px;
  color: #3c3321;
  user-select: none;
  line-height: 1;
  display: flex;
  align-items: center;
}

.geojson-tool-window-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(178, 165, 134, 0.75);
  background: rgba(255, 250, 240, 0.88);
  color: #3c3321;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.geojson-tool-window-content {
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  zoom: 0.75;
}

.geojson-tool-window .leaflet-control {
  margin: 0;
  float: none;
}
.geojson-tool-window .leaflet-draw-toolbar {
  margin-top: 0;
}
.geojson-tool-window .leaflet-draw-actions {
  display: none !important;
}

.geojson-tool-window .leaflet-draw-section {
  margin: 0;
}

.geojson-tool-window .link-button i {
  font-size: 15px;
  color: #333;
  pointer-events: none;
}

.geojson-tool-window .link-button:hover i {
  color: #4a90c4;
}

.geojson-tool-window .link-button:hover:after {
  display: none;
}

.geojson-tool-window .legend-panel-toggle-active i {
  color: #00AFF0;
}

.geojson-tool-divider-line {
  height: 1px;
  background: rgba(178, 165, 134, 0.7);
  margin: 3px 4px;
}

/* Aproxima o botão de Tabela de Atributos do botão de Opacidade de Camadas. */
.geojson-tool-window .opacity-panel-toggle + .attr-table-panel-toggle {
  margin-top: -4px;
}

.geojson-tool-window-minimized {
  min-width: 40px;
  max-width: 40px;
  min-height: 34px;
  height: 34px !important;
}

.geojson-tool-window-minimized .geojson-tool-window-content {
  display: none;
}

.geojson-tool-window-minimized .geojson-tool-window-header {
  border-bottom: 0;
  justify-content: center;
  padding: 4px 6px;
}

.legend-floating-window {
  min-width: 240px;
  width: max-content;
  max-width: min(580px, calc(100vw - 24px));
  background: rgba(240, 234, 217, 0.88);
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(1px);
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease;
}

.legend-floating-window.legend-hidden {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

.legend-floating-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(227, 216, 186, 0.76);
  border-bottom: 1px solid rgba(178, 165, 134, 0.7);
}

.legend-floating-window-title {
  flex: 1 1 auto;
  color: #3c3321;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.legend-floating-window-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(178, 165, 134, 0.75);
  background: rgba(255, 250, 240, 0.88);
  color: #3c3321;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.legend-floating-window-content {
  max-height: min(44vh, 380px);
  overflow-y: auto;
  padding: 8px;
}

.legend-floating-window-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-floating-window-item {
  border: 1px solid rgba(178, 165, 134, 0.5);
  background: rgba(255, 250, 240, 0.7);
  border-radius: 4px;
  padding: 6px;
}

.legend-floating-window-item-grid {
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr);
  gap: 8px;
}

.legend-floating-window-column {
  min-width: 0;
  overflow-x: hidden;
}

.legend-floating-window-column-title {
  font-size: 11px;
  font-weight: 700;
  color: #5c4f33;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.legend-floating-window-description-column {
  border-left: 1px solid rgba(178, 165, 134, 0.4);
  padding-left: 8px;
}

.legend-floating-window-description-value {
  font-size: 12px;
  line-height: 1.4;
  color: #4d4029;
  word-break: break-word;
  display: flex;
  flex-direction: column;
}

.legend-floating-window-description-line {
  display: block;
  padding: 4px 0;
}

.legend-floating-window-description-line + .legend-floating-window-description-line {
  border-top: 1px dashed rgba(178, 165, 134, 0.55);
}

.legend-floating-window-item-title {
  font-size: 12px;
  color: #4d4029;
  line-height: 1.25;
  margin-bottom: 4px;
}

.legend-floating-window-item-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 320px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.legend-floating-window-unavailable {
  display: block;
  font-size: 11px;
  color: #888;
  font-style: italic;
  padding: 4px 0;
}

.legend-feicao-container {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(178, 165, 134, 0.3);
}

.legend-feicao-label {
  display: block;
  font-size: 11px;
  color: #9a8a6a;
  font-style: italic;
  line-height: 1.3;
}

.legend-feicao-label.legend-feicao-active {
  font-style: normal;
  color: #3d3020;
  font-size: 12px;
}

/* Destaque da feição na legenda ao clicar */
@keyframes feicao-highlight-flash {
  0%   { background-color: rgba(212, 167, 38, 0.38); }
  65%  { background-color: rgba(212, 167, 38, 0.18); }
  100% { background-color: rgba(212, 167, 38, 0.15); }
}
.legend-feicao-container.feicao-flash {
  animation: feicao-highlight-flash 0.85s ease-out forwards;
}
.legend-description-placeholder {
  font-style: italic;
  color: #9a8a6a;
}

.legend-floating-window-description-value.legend-description-active {
  font-style: normal;
  color: #3d3020;
}

@media (max-width: 640px) {
  .legend-floating-window-item-grid {
    grid-template-columns: 1fr;
  }

  .legend-floating-window-description-column {
    border-left: 0;
    border-top: 1px solid rgba(178, 165, 134, 0.4);
    padding-left: 0;
    padding-top: 6px;
  }
}

.legend-floating-window-empty {
  font-size: 12px;
  color: #5b4e34;
  margin: 0;
}

.legend-floating-window-minimized {
  min-width: 40px;
  max-width: 40px;
  min-height: 34px;
  height: 34px !important;
}

.legend-floating-window-minimized .legend-floating-window-content {
  display: none;
}

.legend-floating-window-minimized .legend-floating-window-title {
  display: none;
}

.legend-floating-window-minimized .legend-floating-window-header {
  border-bottom: none;
  justify-content: center;
  padding: 4px 6px;
}

.geojson-tool-window .opacity-panel-toggle-icon {
  width: 15px;
  height: 15px;
  color: #333;
  pointer-events: none;
  vertical-align: middle;
}

.geojson-tool-window .link-button:hover .opacity-panel-toggle-icon {
  color: #4a90c4;
}

.geojson-tool-window .opacity-panel-toggle-active .opacity-panel-toggle-icon {
  color: #00AFF0;
}

.opacity-floating-window {
  min-width: 240px;
  width: 260px;
  max-width: min(320px, calc(100vw - 24px));
  background: rgba(240, 234, 217, 0.88);
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(1px);
  overflow: hidden;
}

.opacity-floating-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(227, 216, 186, 0.76);
  border-bottom: 1px solid rgba(178, 165, 134, 0.7);
}

.opacity-floating-window-title {
  color: #3c3321;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.opacity-floating-window-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(178, 165, 134, 0.75);
  background: rgba(255, 250, 240, 0.88);
  color: #3c3321;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.opacity-floating-window-content {
  max-height: min(44vh, 320px);
  overflow-y: auto;
  padding: 4px 8px;
}

.opacity-panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(178, 165, 134, 0.3);
}

.opacity-panel-row:last-child {
  border-bottom: none;
}

.opacity-panel-row-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: #3c3321;
}

.opacity-panel-row-label-track {
  display: inline-block;
  white-space: nowrap;
  transition-property: transform;
  transition-timing-function: ease-in-out;
}

.opacity-panel-row-range {
  flex: 0 0 auto;
  width: 96px;
  cursor: pointer;
}

.opacity-panel-row-value {
  flex: 0 0 auto;
  font-size: 11px;
  color: #5b4e34;
  width: 34px;
  text-align: right;
}

.opacity-floating-window-empty {
  font-size: 12px;
  color: #5b4e34;
  margin: 6px 2px;
}

/* Janela de tabela de atributos */

.geojson-tool-window .attr-table-panel-toggle-icon,
.attr-table-panel-toggle i {
  width: 15px;
  height: 15px;
  font-size: 15px;
  color: #333;
  pointer-events: none;
  vertical-align: middle;
}

.geojson-tool-window .link-button:hover .attr-table-panel-toggle i {
  color: #4a90c4;
}

.geojson-tool-window .attr-table-panel-toggle-active i {
  color: #00AFF0;
}

.attr-table-floating-window {
  width: 520px;
  max-width: calc(100vw - 24px);
  background: rgba(240, 234, 217, 0.88);
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(1px);
  overflow: hidden;
}

.attr-table-floating-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(227, 216, 186, 0.76);
  border-bottom: 1px solid rgba(178, 165, 134, 0.7);
}

.attr-table-floating-window-title {
  flex: 1 1 auto;
  color: #3c3321;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.attr-table-mode-btn,
.attr-table-floating-window-toggle {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(178, 165, 134, 0.75);
  background: rgba(255, 250, 240, 0.88);
  color: #3c3321;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.attr-table-mode-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.attr-table-mode-btn-active {
  border-color: #00AFF0;
  color: #00AFF0;
}

.attr-table-floating-window-content {
  max-height: min(60vh, 460px);
  min-height: 160px;
  overflow: auto;
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attr-table-empty {
  font-size: 12px;
  color: #5b4e34;
  margin: 6px 2px;
}

.attr-table-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 4px;
}

/* Destaque ao atualizar por clique numa feição — mesmo efeito da legenda */
@keyframes attr-table-highlight-flash {
  0%   { background-color: rgba(212, 167, 38, 0.38); }
  65%  { background-color: rgba(212, 167, 38, 0.18); }
  100% { background-color: rgba(212, 167, 38, 0); }
}
.attr-table-body.attr-table-flash {
  animation: attr-table-highlight-flash 0.85s ease-out forwards;
}

.attr-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}

.attr-table-fulldata-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.88);
  color: #3c3321;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.attr-table-fulldata-btn:hover {
  border-color: #4a90c4;
  color: #4a90c4;
}

.attr-table-fulldata-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.attr-table-fulldata-btn-active {
  border-color: #00AFF0;
  color: #00AFF0;
  background: rgba(0, 175, 240, 0.12);
}

.attr-table-more-btn {
  margin: 6px;
}

.attr-table-toolbar-info {
  font-size: 11px;
  color: #5b4e34;
}

.attr-table-groups {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(178, 165, 134, 0.4);
  padding-bottom: 6px;
}

.attr-table-group-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.attr-table-group-label {
  flex: 0 0 56px;
  font-size: 11px;
  font-weight: 700;
  color: #5b4e34;
}

.attr-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  color: #222;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(178, 165, 134, 0.6);
}

.attr-table-badge-empty {
  color: #8a7f66;
  font-style: italic;
  border-style: dashed;
}

.attr-table-badge-selectable {
  cursor: pointer;
}

.attr-table-badge-selectable:hover {
  border-color: #4a90c4;
}

.attr-table-badge-selected {
  border-color: #00AFF0;
  background: rgba(0, 175, 240, 0.16);
}

.attr-table-badge-remove {
  border: none;
  background: transparent;
  color: #8b0000;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 2px;
}

.attr-table-ghost-badge {
  display: inline-flex;
}

.attr-table-ghost-select {
  font-size: 11px;
  border: 1px dashed rgba(178, 165, 134, 0.8);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: #5b4e34;
  padding: 2px 4px;
  max-width: 140px;
}

.attr-table-scroll {
  flex: 1 1 auto;
  overflow: auto;
  border: 1px solid rgba(178, 165, 134, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.attr-table {
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

.attr-table th,
.attr-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(178, 165, 134, 0.3);
  border-right: 1px solid rgba(178, 165, 134, 0.2);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attr-table th {
  position: sticky;
  top: 0;
  background: rgba(227, 216, 186, 0.92);
  text-align: left;
  min-width: 90px;
  vertical-align: top;
}

/* Linha correspondente à feição clicada no mapa */
.attr-table tr.attr-table-row-active td {
  background: rgba(0, 175, 240, 0.16);
  box-shadow: inset 0 1px 0 #00AFF0, inset 0 -1px 0 #00AFF0;
}
.attr-table tr.attr-table-row-active td:first-child {
  box-shadow: inset 1px 0 0 #00AFF0, inset 0 1px 0 #00AFF0, inset 0 -1px 0 #00AFF0;
}
.attr-table tr.attr-table-row-active td:last-child {
  box-shadow: inset -1px 0 0 #00AFF0, inset 0 1px 0 #00AFF0, inset 0 -1px 0 #00AFF0;
}

@keyframes attr-table-row-highlight-flash {
  0%   { background-color: rgba(212, 167, 38, 0.55); }
  100% { background-color: rgba(0, 175, 240, 0.16); }
}
.attr-table tr.attr-table-row-active.attr-table-row-flash td {
  animation: attr-table-row-highlight-flash 0.9s ease-out forwards;
}

/* Linha injetada p/ feição clicada que não está na amostra/dados exibidos */
.attr-table tr.attr-table-row-synthetic td {
  border-bottom: 1px dashed #00AFF0;
}

.attr-table-col-droppable {
  cursor: pointer;
}

.attr-table-col-droppable:hover {
  background: rgba(0, 175, 240, 0.18);
}

.attr-table-col-name {
  font-weight: 700;
  color: #3c3321;
}

.attr-table-col-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 2px;
}

.attr-table-col-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
  color: #fff;
}

.attr-table-col-tag-legenda { background: #4a90c4; }
.attr-table-col-tag-hover { background: #7a9c5e; }
.attr-table-col-tag-detalhes { background: #b8863b; }


/* Banner "em homologação" (desativado)
.banner-homologacao {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: #8b0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 9999;
}*/

.banner-homologacao i {
  font-size: 14px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-homologacao ~ .wrapper .header        { top: 20px; }
.banner-homologacao ~ .wrapper .sidebar       { top: 90px; }
.banner-homologacao ~ .wrapper #map           { margin-top: 90px; height: calc(100vh - 90px); }
.banner-homologacao ~ .wrapper .main-container{ margin-top: 90px; height: calc(100vh - 90px); }
.banner-homologacao ~ .wrapper #external-panel{ margin-top: 90px; height: calc(100vh - 90px); }

.wrapper .header {
  /* Acima do maior z-index do Leaflet (controles: 1000). */
  z-index: 2000;
  background: #22242A;
  position: fixed;
  width: calc(100% - 0%);
  height: 70px;
  display: flex;
  top: 0;
}

.homologacao-tooltip {
  position: fixed;
  /* Fora do centro (onde agora fica o #header-title) e fora da faixa do menu/usuário à
     direita — só a posição inicial, o usuário pode arrastar pra qualquer lugar depois. */
  top: 22px;
  right: 140px;
  background: #8b0000;
  color: #fff;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  white-space: nowrap;
  z-index: 100020;
}

.homologacao-tooltip--dragging {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.wrapper .header .header-menu {
  position: relative;
  width: calc(100% - 0%);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 300px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wrapper .header .header-menu .title{
  color: #fff;
  font-size: 25px;
  text-transform: uppercase;
  font-weight: 900;
}
.wrapper .header .header-menu .title span{
  color: #009ee3;
}

.wrapper .header .header-menu .sidebar-btn{
  color:#fff;
  position: absolute;
  margin-left: 240px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
  transition-property: color;
}

.wrapper .header .header-menu .sidebar-btn:hover{
  color: #009ee3;
}

.wrapper .header .header-menu ul{
  display: flex;
}

.wrapper .header .header-menu ul li a{
  background: #fff;
  color:#000;
  display: block;
  margin: 0 10px;
  font-size: 18px;
  width: 34px;
  height: 34px;
  line-height: 35px;
  text-align: center;
  border-radius: 50px;
  transition: 0.3s;
  transition-property: backround, color;
}

.wrapper .header .header-menu ul li a:hover{
  background: #009ee3;
  color:#fff;
}

.wrapper .sidebar{
  z-index:1;
  background: #2f323a;
  position: fixed;
  top: 70px;
  width: 250px;
  height: calc(100% - 0%);
  transition: 0.3s;
  transition-property: width;
  overflow-y: auto;
}

.wrapper .sidebar .sidebar-menu{
  overflow: hidden;
}

.wrapper .sidebar .sidebar-menu .profile img{
  margin:20px 0;
  width: 170px;
  height: 90px;
  /* border-radius: 50px; */
}

.wrapper .sidebar .sidebar-menu .profile p{
  color:#bbb;
  font-weight: 700;
  margin-bottom: 10px;
}

.wrapper .sidebar .sidebar-menu .item{
  width: 250px;
  overflow: hidden;
}

.wrapper .sidebar .sidebar-menu .item .menu-btn{
  display: block;
  color: #fff;
  position: relative;
  padding: 25px 20px;
  transition: 0.3s;
  transition-property: color;
}

.wrapper .sidebar .sidebar-menu .item .menu-btn:hover{
  color: #009ee3;
}

.wrapper .sidebar .sidebar-menu .item .menu-btn i{
  margin-right: 20px;
}

.wrapper .sidebar .sidebar-menu .item .menu-btn .drop-down{
  float:right;
  font-size: 12px;
  margin-top: 3px;
}

.wrapper .sidebar .sidebar-menu .item .sub-menu{
  background: #009ee3;
  overflow: hidden;
  max-height: 0;
  transition: 0.3s;
  transition-property: background, max-height;
}

.wrapper .sidebar .sidebar-menu .item .sub-menu a{
  display: block;
  position: relative;
  color: #fff;
  white-space: nowrap;
  font-size: 15px;
  padding: 20px;
  border-bottom: 1px solid #8fc5e9;
  transition: 0.3s;
  transition-property: background;
}

.wrapper .sidebar .sidebar-menu .item .sub-menu a:hover{
  background: #009ee3;
}

.wrapper .sidebar .sidebar-menu .item .sub-menu i{
  padding-right: 20px;
  font-size:10px;
}

.wrapper .sidebar .sidebar-menu .item:target .sub-menu{
  max-height: 500px;
}


.wrapper .main-container{
  width: calc(100% - 0px);
  margin-top: 70px;
  margin-left: 250px;
  padding: 15px;
  background: #e5e5e5;
  background-size: cover;
  height: calc(100vh - 70px);
  transition: 0.3s;
}

.wrapper #map{
  width: calc(100% - 0px);
  margin-top: 70px;
  background-size: cover;
  height: calc(100vh - 70px);
  transition: 0.3s;
}

.external-panel {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 70px;
  height: calc(100vh - 70px);
  background: #16181d;
}

.external-panel.is-open {
  display: flex;
}

.tools-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.tools-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.tools-menu-btn i { font-size: 15px; }

.tools-menu-btn:hover,
.tools-menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tools-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #22242a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 8px 6px 6px;
  display: flex;
  flex-direction: column;
  z-index: 100000;
}

.tools-menu-dropdown[hidden] { display: none; }

.tools-menu-grid {
  display: flex;
  gap: 4px;
  padding: 0 2px 4px;
}

.tools-menu-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  padding: 12px 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}

.tools-menu-tile i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.tools-menu-tile span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  line-height: 1.2;
}

.tools-menu-tile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tools-menu-tile:hover i,
.tools-menu-tile:hover span {
  color: #fff;
}

.tools-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease;
}

.tools-menu-item i { width: 14px; text-align: center; color: rgba(255, 255, 255, 0.55); }

.tools-menu-item:hover { background: rgba(255, 255, 255, 0.1); }

.tools-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 4px;
}

.external-panel-iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
}

.wrapper.collapse .sidebar .profile img,
.wrapper.collapse .sidebar .profile p,
.wrapper.collapse .sidebar a span{
  display: none;
}

.wrapper.collapse .sidebar .sidebar-menu .item .menu-btn{
  font-size: 23px;
}

.wrapper.collapse .sidebar .sidebar-menu .item .sub-menu i{
  font-size: 18px;
  padding-left: 3px;
}

.wrapper.collapse #map{
  width: auto;
  margin-left: 70px;
}

.wrapper.collapse .main-container{
  width: calc(100% - 0%);
  margin-left: 70px;
}

.wrapper .main-container .card{
  background: #fff;
  padding: 15px;
  font-size: 16px;
  margin-bottom: 10px;
}

.wrapper .main-container .card .contentBX{
  position: relative;
  margin: 10px 20px;
}


.wrapper .main-container .card{
  max-width: 700px;
}

.wrapper .main-container .card .contentBX .label{
  position: relative;
  padding: 10px;
  background: #009ee3;
  color: #fff;
  cursor: pointer;
}

.wrapper .main-container .card .contentBX .label::before{
  content: '+';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1.5em;
}

.wrapper .main-container .card .contentBX.active .label::before{
  content: '-';
}

.wrapper .main-container .card .contentBX .content{
  position:relative;
  background: #fff;
  height: 0;
  overflow: hidden;
  transition: 0.5s;
  overflow-y: auto;
}

.wrapper .main-container .card .contentBX.active .content{
  height: auto;
  padding: 10px;
}

.wrapper .main-container .card .contentBX .content .minha-tabela{
  border-collapse: collapse;
  width: 100%;
}

.wrapper .main-container .card .contentBX .content .minha-tabela td{
  border: 1px #000 solid;
}

.wrapper .main-container .content_list{
  display: flex;
  justify-content: space-between;
}

.wrapper .main-container .content_list .links{
  display: flex;
  gap: 12px;
}



.dblclick-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(54, 54, 54, 0.82);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font: 12px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
  z-index: 1100;
  pointer-events: none;
  white-space: nowrap;
}

.basemap-select {
  display: block;
  width: 100%;
  padding: 3px 5px;
  margin-top: 3px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.floating-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 55%, rgba(140, 120, 80, 0.45) 55%);
  border-radius: 0 0 6px 0;
  z-index: 20;
  touch-action: none;
}
.floating-resize-handle:hover {
  background: linear-gradient(135deg, transparent 55%, rgba(100, 80, 40, 0.65) 55%);
}

/* Tarjas dos títulos de grupo no controle de camadas — hierarquia por profundidade */
.leaflet-layerstree-header:has(strong) {
  border-radius: 3px;
  margin: 3px 0 2px 0;
  padding: 2px 5px;
  background-color: #c8c8c8;
}

/* depth 1 — Base ZEE, Base Cartográfica */
.leaflet-layerstree-children .leaflet-layerstree-header:has(strong) {
  background-color: #c8c8c8;
}

/* depth 2 — Aptidão Agrícola, Biodiversidade, Clima… */
.leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-header:has(strong) {
  background-color: #d8d8d8;
}

/* depth 3 — Fauna, Ictiofauna, Por Área:, Por Zonas:… */
.leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-header:has(strong) {
  background-color: #e8e8e8;
}

/* depth 4 — Zona 1/2/3 subzonas, Por Espécie:… */
.leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-children .leaflet-layerstree-header:has(strong) {
  background-color: #f8f8f8;
}

/* Tooltip consolidado de clique / "sticky" */
.wms-click-tooltip {
  white-space: normal;
  max-width: 260px;
}
.wms-click-tooltip .leaflet-tooltip-content {
  padding: 4px 2px;
}

/* Callout de clique (círculo + linha + janela flutuante), estilo identify */
.zeer-click-callout-circle {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #2b2b2b;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 999;
}
.zeer-click-callout-line {
  position: absolute;
  height: 1.5px;
  background: #6b5a35;
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 999;
}
.zeer-click-callout {
  /* left/top: definidos em pixels pelo JS. */
  position: absolute;
  z-index: 1000;
  background: #ece2c6;
  border: 1px solid #9c8a5e;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  padding: 8px 22px 8px 10px;
  min-width: 170px;
  max-width: 260px;
  font-size: 12px;
  color: #2c2410;
  white-space: normal;
  cursor: move;
  touch-action: none;
}
@media (max-width: 640px) {
  .zeer-click-callout {
    /* Limite de altura só no mobile, para conteúdo longo não ultrapassar a tela. */
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.zeer-click-callout-close {
  position: absolute;
  top: 4px;
  right: 7px;
  width: 14px;
  height: 14px;
  line-height: 13px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #6b5a35;
  cursor: pointer;
  user-select: none;
}
.zeer-click-callout-close:hover {
  color: #000;
}
.zeer-click-callout-row {
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.zeer-click-callout-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.zeer-click-callout-row:first-child {
  padding-top: 0;
}
.zeer-click-callout-label {
  font-weight: bold;
  color: #2c2410;
  margin-bottom: 1px;
}
.zeer-click-callout-value {
  color: #2c2410;
  line-height: 1.3;
  word-break: break-word;
  white-space: pre-line;
}

/* Headers hierárquicos */
.wms-gh {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  padding: 4px 0 0;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}
.wms-gh1 { font-size: 10px; color: #333; padding-top: 0; }
.wms-gh2 { color: #666; }
.wms-gh3 { color: #888; font-size: 8.5px; }
.wms-gh-sep {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 5px 0 3px;
}

.wms-click-row {
  display: flex;
  flex-direction: column;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 140px;
  max-width: 240px;
}
.wms-click-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.wms-click-layer {
  font-size: 10px;
  color: #555;
  line-height: 1.2;
  margin-bottom: 1px;
}
.wms-click-value {
  font-size: 12px;
  font-weight: normal;
  color: #222;
  line-height: 1.3;
  word-break: break-word;
  white-space: pre-line;
}

/* Painel flutuante de download de camada */
.download-panel {
  display: none;
  position: absolute;
  z-index: 2100;
  width: 265px;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
  font-family: inherit;
  font-size: 13px;
  overflow: hidden;
  touch-action: none;
}

.download-panel.download-panel-visible {
  display: block;
}

.download-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  background: #00AEEF;
  color: #fff;
  cursor: move;
  user-select: none;
}

.download-panel-header-title {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.download-panel-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  opacity: 0.80;
  flex: 0 0 auto;
}
.download-panel-close:hover { opacity: 1; }

.download-panel-body {
  padding: 10px 12px 10px;
}

.download-panel-layer-title {
  font-weight: 600;
  font-size: 12px;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.35;
  word-break: break-word;
}

.download-panel-formats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.download-panel-formats-label {
  font-size: 12px;
  color: #555;
  flex: 0 0 auto;
}

.download-panel-format-opt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  cursor: pointer;
}

.download-panel-format-opt input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.download-panel-format-opt label {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.download-panel-btn-row {
  text-align: center;
  margin-bottom: 8px;
}

.download-panel-btn {
  background: #00AEEF;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.download-panel-btn:hover:not(:disabled) { background: #0097cc; }
.download-panel-btn:disabled {
  background: #80d6f7;
  cursor: not-allowed;
}

/* Barra de progresso */
.download-panel-progress-wrap {
  display: none;
  margin: 0 0 8px;
  height: 7px;
  background: #e4e4e4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.download-panel-progress-wrap.download-panel-progress-visible {
  display: block;
}

.download-panel-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #00AEEF;
  border-radius: 4px;
  transition: width 0.25s ease;
}

/* Animação indeterminada: barra deslizante */
.download-panel-progress-indeterminate {
  width: 38% !important;
  transition: none !important;
  animation: dlProgressSlide 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes dlProgressSlide {
  0%   { left: -38%; }
  100% { left: 100%; }
}

.download-panel-status {
  min-height: 18px;
  font-size: 12px;
  text-align: center;
  color: #666;
}

.download-panel-status-loading {
  color: #00AEEF;
}

.download-panel-status-success {
  color: #1e7a1e;
  font-weight: 600;
}

.download-panel-status-error {
  color: #c00;
}

/* Seção de checkboxes de layers (layerGroups) */
.download-panel-layers-section {
  display: none;
  margin-bottom: 10px;
}

.download-panel-layers-checks {
  margin-top: 4px;
}

.download-panel-layer-check {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}

.download-panel-layer-check-input {
  margin: 0;
  cursor: pointer;
  flex: 0 0 auto;
  accent-color: #00AEEF;
}

.download-panel-layer-check-label {
  cursor: pointer;
  margin: 0;
  font-size: 12px;
  user-select: none;
}

/* Welcome modal */

.wm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 25, 15, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.wm-overlay--in  { opacity: 1; }
.wm-overlay--out { opacity: 0; pointer-events: none; }

.wm-dialog {
  background: rgba(248, 244, 233, 0.98);
  border: 1px solid rgba(178, 165, 134, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  width: min(740px, calc(100vw - 48px));
  max-height: min(660px, calc(100vh - 56px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  transition: transform 300ms ease;
  box-sizing: border-box;
}

.wm-overlay--in .wm-dialog  { transform: translateY(0); }
.wm-overlay--out .wm-dialog { transform: translateY(16px); }

.wm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 16px;
  background: rgba(227, 216, 186, 0.9);
  border-bottom: 1px solid rgba(178, 165, 134, 0.6);
  border-radius: 16px 16px 0 0;
}

.wm-logo {
  flex-shrink: 0;
  height: 48px;
  width: auto;
}

.wm-header-text { flex: 1; min-width: 0; }

.wm-title {
  font-size: 15px;
  font-weight: 700;
  color: #3c3321;
  line-height: 1.3;
  margin: 0 0 4px;
}

.wm-subtitle {
  font-size: 11px;
  color: #6b5c3e;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wm-body {
  padding: 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  container-type: inline-size;
}

.wm-lead {
  font-size: 14px;
  color: #3d3223;
  line-height: 1.5;
  margin: 0;
}

.wm-objective {
  font-size: 13px;
  color: #3d3223;
  line-height: 1.55;
  text-align: justify;
  margin: 0;
  padding: 10px 14px;
  background: rgba(220, 210, 180, 0.35);
  border-left: 3px solid rgba(178, 165, 134, 0.7);
  border-radius: 0 6px 6px 0;
}

.wm-objective strong {
  color: #3c3321;
}

.wm-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #3c3321;
  margin: 2px 0 0;
}

.wm-features {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(178, 165, 134, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.wm-feature {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #3c3321;
  text-align: center;
}

.wm-feature + .wm-feature {
  border-left: 1px solid rgba(178, 165, 134, 0.5);
}

.wm-feature-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: #7a6030;
}

.wm-interactive-copy {
  padding: 10px 16px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(178, 165, 134, 0.35);
  margin: 2px 0 4px;
}

.wm-hover-copy {
  margin: 0;
  font-size: 13px;
  color: #3d3223;
  line-height: 1.5;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wm-hover-copy strong {
  display: block;
  font-weight: 700;
  margin-bottom: 3px;
}

.wm-carousel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(178, 165, 134, 0.35);
}

.wm-carousel-item {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  cursor: default;
  transition: transform 200ms ease, filter 200ms ease;
  position: relative;
}

.wm-carousel-item--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.wm-carousel-item:hover,
.wm-carousel-item:focus-visible {
  transform: scale(1.03);
  z-index: 2;
}

.wm-carousel-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 62%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  background: #111;
  animation: wm-card-sway 4.5s ease-in-out infinite;
}

/* Delay crescente da direita pra esquerda: o balanço parece se propagar nessa direção,
   e como cada card é pintado depois do vizinho à esquerda (ordem do DOM), ao avançar ele
   sobrepõe levemente o vizinho antes de voltar pra posição inicial. */
.wm-carousel-item:nth-child(3) .wm-carousel-image-wrap {
  animation-delay: 0s;
}

.wm-carousel-item:nth-child(2) .wm-carousel-image-wrap {
  animation-delay: 0.25s;
}

.wm-carousel-item:nth-child(1) .wm-carousel-image-wrap {
  animation-delay: 0.5s;
}

.wm-carousel-item:hover .wm-carousel-image-wrap,
.wm-carousel-item:focus-visible .wm-carousel-image-wrap {
  animation-play-state: paused;
}

@keyframes wm-card-sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .wm-carousel-image-wrap,
  .wm-carousel-item:nth-child(1) .wm-carousel-image-wrap,
  .wm-carousel-item:nth-child(2) .wm-carousel-image-wrap,
  .wm-carousel-item:nth-child(3) .wm-carousel-image-wrap {
    animation: none;
  }
}

.wm-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.wm-carousel-item:hover .wm-carousel-image,
.wm-carousel-item:focus-visible .wm-carousel-image,
.wm-carousel-item--active .wm-carousel-image {
  transform: scale(1.08);
}

.wm-carousel-item--active {
  transform: scale(1.03);
  z-index: 2;
}

.wm-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(178, 165, 134, 0.5);
  border-radius: 6px;
  padding: 12px 14px;
}

.wm-card-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: #7a6030;
  margin-top: 2px;
  width: 22px;
  text-align: center;
}

.wm-card strong {
  display: block;
  font-size: 13px;
  color: #3c3321;
  margin-bottom: 3px;
}

.wm-card p {
  font-size: 12px;
  color: #6b5c3e;
  line-height: 1.5;
  margin: 0;
}

.wm-disclaimer {
  font-size: 11px;
  color: #8c7a5a;
  line-height: 1.45;
  margin: 0;
  padding: 8px 12px;
  background: rgba(220, 210, 180, 0.35);
  border-left: 3px solid rgba(178, 165, 134, 0.7);
  border-radius: 0 4px 4px 0;
}

.wm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(227, 216, 186, 0.5);
  border-top: 1px solid rgba(178, 165, 134, 0.55);
  border-radius: 0 0 10px 10px;
  gap: 12px;
}

.wm-no-show {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b5c3e;
  cursor: pointer;
  user-select: none;
}

.wm-no-show input[type="checkbox"] {
  cursor: pointer;
  accent-color: #7a6030;
  margin: 0;
}

.wm-btn {
  background: #7a6030;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 150ms ease, transform 100ms ease;
  white-space: nowrap;
}

.wm-btn:hover  { background: #634e27; }
.wm-btn:active { transform: scale(0.97); }

.wm-version-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: #7a6030;
  cursor: pointer;
}
.wm-version-link:hover { color: #634e27; }

@media (max-width: 900px), (max-height: 850px) {
  .wm-header {
    padding: 16px 20px 14px;
    gap: 14px;
  }

  .wm-logo {
    height: 44px;
  }

  .wm-title {
    font-size: 15px;
  }

  .wm-subtitle {
    font-size: 11px;
  }

  .wm-body {
    padding: 18px 18px 16px;
    gap: 12px;
  }

  .wm-interactive-copy {
    margin: 2px 0 4px;
    padding: 9px 14px 8px;
  }
}

@media (max-width: 720px), (max-height: 770px) {
  .wm-dialog {
    border-radius: 12px;
  }

  .wm-header {
    padding: 16px 18px 14px;
  }

  .wm-body {
    padding: 16px 16px 14px;
  }

  .wm-carousel {
    margin: 4px 0 6px;
    padding: 8px;
    gap: 6px;
  }

  .wm-carousel-item:hover,
  .wm-carousel-item:focus-visible {
    transform: none;
  }

  .wm-carousel-image-wrap {
    padding-top: 78%;
  }

  .wm-footer {
    padding: 12px 16px;
  }
}

@media (max-width: 520px) {
  .wm-header {
    padding: 14px 14px 12px;
  }

  .wm-title {
    font-size: 14px;
  }

  .wm-lead,
  .wm-hover-copy {
    font-size: 13px;
  }

  .wm-interactive-copy {
    padding: 9px 12px 8px;
  }

  .wm-feature {
    flex-direction: column;
    gap: 5px;
    padding: 10px 6px;
    font-size: 11px;
  }

  .wm-btn {
    width: 100%;
    justify-content: center;
  }
}

.wm-overlay--nested { z-index: 100010; }

.wm-close-x {
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #8c7a5a;
  cursor: pointer;
  padding: 2px 4px;
}
.wm-close-x:hover { color: #3c3321; }

.wm-footer--end { justify-content: flex-end; }

.wm-changelog-heading {
  font-size: 14px;
  font-weight: 700;
  color: #3c3321;
  margin: 0;
}

.wm-changelog-text {
  font-size: 13px;
  color: #4d4029;
  line-height: 1.6;
  margin: 0;
}

.wm-changelog-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(178, 165, 134, 0.6);
  border-radius: 6px;
  margin: 0 auto;
}

.wm-changelog-inline-img {
  display: inline-block;
  height: 20px;
  width: auto;
  max-width: 140px;
  vertical-align: middle;
  border: 1px solid rgba(178, 165, 134, 0.6);
  border-radius: 4px;
  margin: 0 2px;
}

.wm-changelog-hr {
  border: none;
  border-top: 1px solid rgba(178, 165, 134, 0.5);
  margin: 4px 0;
}

.wm-changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wm-changelog-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 250, 240, 0.8);
  border: 1px solid rgba(178, 165, 134, 0.5);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}

.wm-changelog-item:hover {
  background: rgba(227, 216, 186, 0.6);
  border-color: rgba(178, 165, 134, 0.9);
}

.wm-changelog-item-version {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #7a6030;
  border-radius: 4px;
  padding: 3px 8px;
}

.wm-changelog-item-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #3c3321;
}

.wm-changelog-item-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #8c7a5a;
}

.wm-changelog-back {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #7a6030;
  cursor: pointer;
}

.wm-changelog-back:hover {
  color: #634e27;
}

/* Aviso de edição da tabela de atributos (reaproveita .wm-* acima) */

.attr-alert-overlay { z-index: 100000; }

.attr-alert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 17px;
  color: #b4462f;
  background: rgba(180, 70, 47, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attr-alert-text {
  text-align: justify;
}

.attr-alert-question {
  font-weight: 600;
  color: #3c3321;
}

.attr-alert-changes {
  list-style: disc;
  margin: 0;
  padding: 10px 12px 10px 28px;
  background: rgba(220, 210, 180, 0.35);
  border-left: 3px solid rgba(178, 165, 134, 0.7);
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
  color: #4d4029;
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
}

.attr-alert-changes li + li {
  margin-top: 2px;
}

.attr-alert-footer {
  justify-content: flex-end;
}

.attr-alert-btn-secondary {
  background: transparent;
  color: #6b5c3e;
  border: 1px solid rgba(178, 165, 134, 0.75);
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}

.attr-alert-btn-secondary:hover { background: rgba(178, 165, 134, 0.18); }

/* Botão de login (header) + modal de autenticação */

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

.auth-btn i { font-size: 15px; }

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

.auth-btn--logged {
  color: #00A2FF;
}

.auth-btn--logged:hover {
  background: rgba(0, 162, 255, 0.12);
  color: #00A2FF;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-welcome {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.auth-menu-wrap {
  position: relative;
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 6px;
  display: flex;
  flex-direction: column;
  z-index: 100000;
}

.auth-dropdown[hidden] { display: none; }

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #22242a;
  border-radius: 6px;
  cursor: pointer;
  transition: background 150ms ease;
}

.auth-dropdown-item i { width: 14px; text-align: center; }

a.auth-dropdown-item { text-decoration: none; }

.auth-dropdown-item:hover { background: #f0f1f3; }

.auth-dropdown-item--danger { color: #d64545; }
.auth-dropdown-item--danger:hover { background: rgba(214, 69, 69, 0.1); }

.am-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 26, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.am-overlay--in  { opacity: 1; }
.am-overlay--out { opacity: 0; pointer-events: none; }

.am-dialog {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  width: min(320px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  transform: translateY(16px);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.am-overlay--in .am-dialog  { transform: translateY(0); }
.am-overlay--out .am-dialog { transform: translateY(16px); }

.am-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #8a8f98;
  font-size: 16px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 150ms ease, color 150ms ease;
}

.am-close:hover { background: #f0f1f3; color: #22242a; }

.am-title {
  font-size: 18px;
  font-weight: 700;
  color: #22242a;
  margin: 0 0 18px;
  text-align: center;
}

.am-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-label {
  font-size: 12px;
  font-weight: 600;
  color: #565a63;
  margin-top: 10px;
}

.am-input {
  border: 1px solid #d7d9dd;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 14px;
  color: #22242a;
  transition: border-color 150ms ease;
}

.am-input:focus {
  outline: none;
  border-color: #009ee3;
}

.am-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 9px 10px;
  background: rgba(214, 69, 69, 0.08);
  border: 1px solid rgba(214, 69, 69, 0.25);
  border-radius: 6px;
  color: #c23636;
  font-size: 12.5px;
  line-height: 1.4;
}

.am-error[hidden] { display: none; }

.am-error::before {
  content: "\f06a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.am-submit {
  margin-top: 18px;
  background: #009ee3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
}

.am-submit:hover  { background: #0086c2; }
.am-submit:active { transform: scale(0.98); }

.am-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  color: #9a9ea6;
  font-size: 12px;
}

.am-divider::before,
.am-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e5e8;
}

.am-google {
  display: flex;
  justify-content: center;
}

.am-google-link {
  font-size: 12px;
  color: #9a9ea6;
  text-align: center;
  margin: 0;
  text-decoration: none;
  cursor: pointer;
}

.am-google-link:hover { text-decoration: underline; }

/* Aviso pós-login (reaproveita .am-overlay/.am-close acima) */

.ln-dialog {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  transform: translateY(16px);
  transition: transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.am-overlay--in .ln-dialog  { transform: translateY(0); }
.am-overlay--out .ln-dialog { transform: translateY(16px); }

.ln-title {
  font-size: 18px;
  font-weight: 700;
  color: #22242a;
  margin: 0 0 6px;
  text-align: center;
}

.ln-subtitle {
  font-size: 13px;
  color: #565a63;
  margin: 0 0 18px;
  text-align: center;
  line-height: 1.5;
}

.ln-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ln-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 158, 227, 0.06);
  border: 1px solid rgba(0, 158, 227, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
}

.ln-card-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: #009ee3;
  margin-top: 2px;
  width: 22px;
  text-align: center;
}

.ln-card strong {
  display: block;
  font-size: 13px;
  color: #22242a;
  margin-bottom: 3px;
}

.ln-card p {
  font-size: 12px;
  color: #565a63;
  line-height: 1.5;
  margin: 0;
}

.ln-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.ln-btn {
  background: #009ee3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 100ms ease;
}

.ln-btn:hover  { background: #0086c2; }
.ln-btn:active { transform: scale(0.98); }
