.group-ranking-content-container {
  display: flex;
  gap: 15px;
  align-items: stretch;
  flex-wrap: wrap;
}


.Select-menu-outer {
  width: 100% !important;
  overflow-y: auto !important; 
}


.group-ranking-map-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 320px; 
  max-width: 65%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  padding: 0;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.group-ranking-map {
  width: 100%;
  height: 70vh;
}


.group-ranking-statistics-card {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
  padding: 15px;
  border-radius: 10px;
  width: 320px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.group-ranking-statistics-title {
  font-size: 20px; 
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.group-ranking-statistics-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.group-ranking-statistics-card div:last-child {
  margin-bottom: 0;
}

.group-ranking-statistics-card span {
  white-space: nowrap;
}


.group-ranking-table-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 320px; 
  max-width: 35%;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: white;
  padding: 15px;
  height: 70vh;
  overflow: hidden;
}


.group-ranking-table-card .dash-table-container {
  flex: 1;
  overflow: auto !important;
  height: calc(70vh - 120px) !important; 
  min-height: 200px;
}

.dash-table-container .dash-spreadsheet-container {
  max-height: none !important;
  height: 100% !important;
}

.dash-spreadsheet-inner {
  height: 100% !important;
  overflow-y: auto !important;
}


.dash-cell {
  height: 30px !important; 
  line-height: 1.2 !important;
}


.dash-spreadsheet-inner table {
  width: 100% !important;
}


.dash-table-container ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dash-table-container ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dash-table-container ::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.group-ranking-table-card > * {
  width: 100%;
  margin: 0 auto;
}

.group-ranking-table-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  margin: 0 auto 10px auto;
  text-align: left;
}

.group-ranking-table-subtitle {
  font-size: 14px;
  margin-bottom: 10px;
  margin: 0 auto 10px auto;
  text-align: left;
}


.group-ranking-table-card .dash-table {
  height: 30vh;
  max-height: 30vh;
  flex: 1;
  overflow: auto;
  margin: 0 auto;
  width: 100%;
}

.group-ranking-data-table th, .group-ranking-data-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.group-ranking-data-table th {
  background-color: #f1f1f1;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

.group-ranking-table-card .dash-table .dash-cell {
  padding: 6px;
}


.Select-menu-outer {
  display: block !important;
  position: absolute !important;
  z-index: 9999 !important;
  background: white !important;
  border: 1px solid #ccc !important;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.Select.dash-dropdown.has-value.is-searchable.Select--single {
  width: 250px !important;
}

span.group-ranking-filter-title {
  color: rgb(31, 91, 180);
}

.js-plotly-plot .layer.below path,
.js-plotly-plot .layer.above path {
  cursor: pointer !important;
}


@media screen and (max-width: 1200px) {
  .group-ranking-map-card,
  .group-ranking-table-card {
    max-width: 100%;
    height: 60vh;
  }

  .group-ranking-map {
    height: 60vh;
  }

  .group-ranking-statistics-card {
    width: 280px;
  }
}

@media screen and (max-width: 1024px) {
  .group-ranking-content-container {
    flex-direction: column;
    gap: 15px;
  }

  .group-ranking-map-card,
  .group-ranking-table-card {
    max-width: 100%;
    width: 100%;
    height: fit-content;
    min-height: 200px;
  }

  .group-ranking-map {
    height: 60vh;
  }

  .group-ranking-table-card {
    height: fit-content;
    max-height: none;
    overflow: visible;
  }

  .group-ranking-table-card .dash-table {
    height: auto;
    max-height: none;
  }

  #tabela-dados,
  #tabela-dados4 {
    max-height: none;
    overflow-y: visible;
  }
}

@media screen and (max-width: 768px) {
  .group-ranking-content-container {
    padding: 5px;
    gap: 10px;
  }

  .group-ranking-map-card {
    height: fit-content;
  }

  .group-ranking-map {
    height: 50vh;
  }

  .group-ranking-table-card {
    padding: 10px;
  }

  .group-ranking-table-title {
    font-size: 16px;
  }

  .group-ranking-table-subtitle {
    font-size: 12px;
  }

  .group-ranking-table-card .dash-table {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .group-ranking-map-card,
  .group-ranking-table-card {
    height: 45vh;
    min-width: 280px;
  }

  .group-ranking-statistics-card {
    width: 200px;
    font-size: 11px;
  }
}


.Select-control {
  min-height: 36px !important;
}

.Select-menu-outer {
  max-width: 100% !important;
  width: auto !important;
  min-width: 200px !important;
}

.Select.is-open .Select-menu-outer {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
}
