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

.Select-menu-outer {
  z-index: 999999;
}

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

.classificacao-map {
  width: 100%;
}

.classificacao-statistics-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;
  overflow: auto;
}

.classificacao-statistics-card .dash-table-container {
  flex: 1;
  overflow: auto !important;
  height: 300px !important;
  max-height: 300px !important;
  min-height: 200px;
  border: none !important;
  border-radius: 8px;
}

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

.classificacao-statistics-card > * {
  width: 100%;
  margin: 0 auto;
}

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

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

.classificacao-statistics-card .dash-table {
  height: 300px !important;
  max-height: 300px !important;
  flex: 1;
  overflow: auto !important;
  margin: 0 auto;
  width: 100%;
}

.classificacao-statistics-card .dash-table .dash-cell {
  padding: 6px;
}

.dash-table-container table,
.dash-table-container th,
.dash-table-container td {
    border: none !important;
    box-shadow: none !important;
}

.dash-table-container tr {
    border-bottom: 1px solid #f0f0f0 !important;
}

.dash-table-container tr:hover {
    background-color: #f0f7ff !important;
}

.matriz-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 10px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.matriz-row {
  display: flex;
  gap: 1px;
  width: 100%;
}

.matriz-header {
  font-weight: bold;
}

.matriz-header-corner {
  width: 25%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: none;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  padding: 5px;
  line-height: 1.2;
}

.matriz-header-col {
  width: 25%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  border: none;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  line-height: 1.2;
}

.matriz-header-col:last-child {
  border-right: none;
}

.matriz-header-row {
  width: 25%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  border: none;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  padding: 5px;
  line-height: 1.2;
}

.matriz-cell {
  width: 25%;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  font-weight: bold;
  cursor: help;
  transition: opacity 0.2s;
  padding: 8px;
  text-align: center;
  position: relative;
  background-color: white !important;
}

.matriz-cell-number {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  pointer-events: none;
  color: white !important;
}

.matriz-cell-text {
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  pointer-events: none;
  color: black !important;
  font-weight: normal !important;
}

/* Classes para as cores dos círculos */
.matriz-cell-number.prioridade-1 {
  background-color: #dc3545;
}

.matriz-cell-number.prioridade-2 {
  background-color: #fd7e14;
}

.matriz-cell-number.prioridade-3 {
  background-color: #ff6b35;
}

.matriz-cell-number.prioridade-4 {
  background-color: #fd7e14;
}

.matriz-cell-number.prioridade-5 {
  background-color: #ffc107;
}

.matriz-cell-number.prioridade-6 {
  background-color: #20c997;
}

.matriz-cell-number.prioridade-7 {
  background-color: #28a745;
}

.matriz-cell-number.prioridade-8 {
  background-color: #17a2b8;
}

.matriz-cell-number.prioridade-9 {
  background-color: #007bff;
}

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

  .classificacao-map {
    height: 60vh;
  }

  .matriz-header-corner,
  .matriz-header-col {
    height: 45px;
    font-size: 12px;
  }

  .matriz-header-row {
    height: 70px;
    font-size: 12px;
  }

  .matriz-cell {
    height: 70px;
    font-size: 12px;
    padding: 5px;
  }
}

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

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

  .classificacao-map {
    height: 60vh;
  }

  .classificacao-statistics-card {
    height: fit-content;
    max-height: none;
    overflow: visible;
  }

  .classificacao-statistics-card .dash-table {
    height: auto;
    max-height: none;
  }

  .classificacao-statistics-card .dash-table-container {
    height: auto !important;
  }

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

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

  .classificacao-map-card {
    height: fit-content;
  }

  .classificacao-map {
    height: 50vh;
  }

  .classificacao-statistics-card {
    padding: 10px;
    overflow-x: auto !important;
  }

  .classificacao-statistics-title {
    font-size: 16px;
  }

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

  .classificacao-statistics-card .dash-table {
    font-size: 12px;
  }

  .matriz-header-corner,
  .matriz-header-col {
    height: 45px;
    font-size: 10px;
    padding: 4px;
  }

  .matriz-header-row {
    height: 60px;
    font-size: 10px;
    padding: 4px;
  }

  .matriz-cell {
    height: 60px;
    font-size: 10px;
    padding: 3px;
  }

  /* Esconder texto descritivo em telas pequenas */
  .matriz-cell-text {
    display: none;
  }

  .matriz-cell-number {
    font-size: 20px;
    margin-bottom: 0;
  }
}

@media screen and (max-width: 480px) {
  .classificacao-map-card,
  .classificacao-statistics-card {
    height: auto;
    min-width: 280px;
  }

  .classificacao-statistics-card {
    padding: 8px;
  }

  .matriz-header-corner,
  .matriz-header-col {
    height: 40px;
    font-size: 9px;
    padding: 3px;
  }

  .matriz-header-row {
    height: 50px;
    font-size: 9px;
    padding: 3px;
  }

  .matriz-cell {
    height: 50px;
    font-size: 9px;
    padding: 2px;
  }

  .matriz-cell-number {
    font-size: 20px;
  }
}

@media screen and (max-width: 390px) {
  .classificacao-statistics-card {
    padding: 5px;
    min-width: 350px;
  }

  .matriz-header-corner,
  .matriz-header-col {
    height: 35px;
    font-size: 8px;
    padding: 2px;
  }

  .matriz-header-row {
    height: 45px;
    font-size: 8px;
    padding: 2px;
  }

  .matriz-cell {
    height: 45px;
    font-size: 8px;
    padding: 2px;
  }

  .classificacao-statistics-title {
    font-size: 14px;
  }

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

  .matriz-cell-number {
    font-size: 16px;
  }
}

@media screen and (max-width: 350px) {
  .classificacao-statistics-card {
    min-width: 320px;
    padding: 3px;
  }

  .matriz-header-corner,
  .matriz-header-col {
    height: 28px;
    font-size: 6px;
    padding: 1px;
  }

  .matriz-header-row {
    height: 40px;
    font-size: 7px;
    padding: 1px;
  }

  .matriz-cell {
    height: 40px;
    font-size: 7px;
    padding: 1px;
  }

  .matriz-cell-number {
    font-size: 14px;
  }
}

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

.Select-menu-outer {
  max-width: 100% !important;
  width: auto !important;
  min-width: 200px !important;
  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.is-open .Select-menu-outer {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

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

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