.card-container {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  padding: 0px;
  margin-bottom: 20px;
}

.filter-dropdown .Select-option.option-bold,
.filter-dropdown .Select-value-label.option-bold {
    font-weight: bold !important;
    color: #1F5BB4 !important;
}

.filter-dropdown .Select-option.option-normal,
.filter-dropdown .Select-value-label.option-normal {
    font-weight: normal;
    color: #000;
}

.filter-dropdown .Select-option:hover {
    background-color: rgba(31, 91, 180, 0.1);
}

.Select-option {
    padding: 8px 10px;
}

.Select-option[data-value^="indice_"] {
    font-weight: bold;
}

.filter-dropdown .Select-menu-outer {
    max-height: 400px;
}


.map-table-container {
  display: flex;
  gap: 15px;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 0; 
}


.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;
  height: 70vh;
  overflow: hidden;
  position: relative;
  padding: 0;
  margin: 0;
}


.map-card > div {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.js-plotly-plot {
  width: 100% !important;
  height: 100% !important;
}

.js-plotly-plot .plot-container {
  width: 100% !important;
  height: 100% !important;
}


.plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.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;
}

.table-card h4 {
  margin: 5px 0;
}

.table-card h6 {
  margin: 5px 0;
  font-size: 12px;
}

.table-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: left;
}

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



.table-data {
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-height: calc(85vh - 100px);
  margin-bottom: 10px;
}

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

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


.dash-table thead th {
  background-color: #f8f9fa;
  font-weight: bold;
  border: 1px solid #ddd;
  font-size: 12px;
  padding: 4px;
  white-space: pre-line;
  height: 28px;
  line-height: 1.1;
}

.dash-table tbody td {
  text-align: center;
  padding: 3px;
  border: 1px solid #ddd;
  font-size: 11px;
  height: 24px;
  line-height: 1.0;
}

.dash-table tbody tr:nth-child(odd) {
  background-color: #f5f5f5;
}

.group-ranking-apply-button:hover {
  background-color: #0056b3;
}

.option-normal {
    font-weight: normal;
}

.option-bold {
    font-weight: bold;
}

.dash-dropdown .VirtualizedSelectOption[data-value^="indice_"] {
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
  .map-table-container {
    flex-direction: column;
  }

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

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

  .table-card {
    padding: 10px;
  }

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

  .table-subtitle {
    font-size: 14px;
  }
}


.card-container.table-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tabela-dados-filtrados-p1 {
  flex: 1;
  overflow: auto !important; 
  max-height: 100%;
  width: 100%;
}


#tabela-dados-filtrados-p1 .dash-table-container {
  overflow-y: auto !important;
  height: auto !important;
  max-height: 100% !important;
}


#tabela-dados-filtrados-p1 .dash-spreadsheet {
  overflow-y: auto !important;
  max-height: calc(100vh - 250px) !important; 
}


#tabela-dados-filtrados-p1 .dash-spreadsheet-container {
  overflow-y: visible !important;
}

#tabela-dados-filtrados-p1 .dash-spreadsheet thead tr {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  background-color: #f1f1f1;
}


@media screen and (max-width: 768px) {
  #tabela-dados-filtrados-p1 .dash-spreadsheet {
    max-height: 400px !important;
  }
  
  .card-container.table-card {
    max-height: 500px;
    overflow: hidden;
  }
}


@media screen and (max-width: 480px) {
  #tabela-dados-filtrados-p1 .dash-spreadsheet {
    max-height: 300px !important;
  }
  
  .card-container.table-card {
    max-height: 400px;
  }
}