/* SVG Styles */
#codb-map-container svg path {
  fill: rgba(255, 255, 255, 0.25);
  stroke: #ffffff;
  stroke-width: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#codb-map-container svg path:hover {
  opacity: 0.4;
}

#codb-map-container svg path.ok-path {
  fill: #669B41 !important;
  stroke: #669B41 !important;
}

#codb-map-container svg path.selected {
  fill: #ffffff !important;
  fill-opacity: 1 !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
}

/* Table Styles */
.codb-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  table-layout: fixed;
  font-size: 1em;
}

.codb-table th,
.codb-table td {
  padding: 0.5em;
  border: 1px solid #ddd;
  word-wrap: break-word;
}

.codb-table th {
  text-align: left;
  background-color: #f5f5f5;
}

.codb-table td.metric {
  font-weight: bold;
}

/* Column widths for desktop: first 70%, next two 15% each */
.codb-table th:nth-child(1),
.codb-table td:nth-child(1) {
  width: 70%;
}

.codb-table th:nth-child(2),
.codb-table td:nth-child(2),
.codb-table th:nth-child(3),
.codb-table td:nth-child(3) {
  width: 15%;
}

/* Mobile adjustments */
@media only screen and (max-width: 767px) {
  .codb-table {
    font-size: 0.6em;
  }
  /* first column → 40% */
  .codb-table th:nth-child(1),
  .codb-table td:nth-child(1) {
    width: 40% !important;
    line-height: 1;
  }
  /* last two columns → 30% each */
  .codb-table th:nth-child(2),
  .codb-table td:nth-child(2),
  .codb-table th:nth-child(3),
  .codb-table td:nth-child(3) {
    width: 30% !important;
  }
}
