/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* chart/graph styling */
.CaptionedChart {
  padding: 5px 10px;
}

.CaptionedChart,
.chart {
  width: 330px;
  height: auto;
}

.HeaderHTML {
  padding: 10px 5px;
  font-family: "IBM Plex Serif", sans-serif;
  font-size: 10px;
  font-weight: 500;
}

.chart {
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  color: #343333;
}

.chart-labels {
  font-size: 6px;
  font-family: "IBM Plex Sans", sans-serif;
}

.diagram-labels {
  font-size: 10px;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Tooltip */
.tooltip {
  pointer-events: none;
  position: fixed;
  z-index: 10; 
  width: auto;
  height: auto;
  background-color: white;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 6px;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* max-width: 220px;  */
}

.diagram-tooltip {
  pointer-events: none;
  position: fixed;
  width: auto;
  height: auto;
  padding: 5px;
  background-color: white;
  opacity: 0.9;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tooltip-title {
  font-weight: bold;
  border-radius: 5px 5px 0 0;
  padding: 3px 4px;
  background-color: #f1eded;
}

.tooltip-total {
  border-radius: 0 0 5px 5px;
  border-top: 1px solid #d3d3d3;
}

.tooltip-content .value,
.tooltip-total .value {
  text-align: right;
}

table.tooltip-content,
table.tooltip-total {
  width: 100%;
  border-spacing: 0;
}

.tooltip-content td{
  padding: 1.5px 4px;
}

.tooltip-total td {
  padding: 2px 4px;
}

.tooltip-content td:first-child,
.tooltip-total td:first-child {
  padding-right: 4px;
}

.color-legend {
  display: inline-block;
  background-color: inherit;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 20%;
}



/* Map Dropdown */
#map-dropdown {
  margin-left: 20px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ced4da;
  background-color: #fff;
  color: #495057;
  cursor: pointer;
  appearance: none; /* Removes default arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: calc(100% - 5px) center;
  padding-left: 10px;
  padding-right: 30px; /* Ensure space for the arrow */
}

#map-dropdown:hover {
  background-color: #e9ecef; /* Light grey background on hover */
}


/* pie chart */
path.slice {
  stroke-width: 2px;
}

polyline {
  opacity: .3;
  stroke: black;
  stroke-width: 2px;
  fill: none;
}



/* Styled Table */

.styled-table {
  border-collapse: collapse;
  font-size: 1em;
  font-family: 'Arial', sans-serif;
  overflow-x: auto;
  max-width: 100%; /* Ensure it doesn't exceed the container */
}

.styled-table thead tr {
  background-color: #1C476D;
  color: #ffffff;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
  background-color: #FED679;
}

.table-labels {
  font-size: 6px;
}

.flex-container {
  display: flex;
  justify-content: flex-end; /* To right-align */
}

.integer-part {
  text-align: right;
}

.decimal-part {
  text-align: left;
}


/* tablet */
@media only screen and (min-width: 720px) {

  /* starts here */
  .CaptionedChart {
    padding: 10px 20px;
  }

  .CaptionedChart,
  .chart {
    width: 500px;
  }

  .HeaderHTML {
    font-size: 18px;
  }

  .chart-labels {
    font-size: 10px;
  }

  .table-labels {
    font-size: 8px;
  }

  .diagram-labels {
    font-size: 16px;
  }

  .tooltip {
    font-size: 10px;
  }

  .tooltip-title {
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    padding: 6px 8px;
    background-color: #f1eded;
  }
  
  .tooltip-total {
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #d3d3d3;
  }
  
  .tooltip-content .value,
  .tooltip-total .value {
    text-align: right;
  }
  
  table.tooltip-content,
  table.tooltip-total {
    width: 100%;
    border-spacing: 0;
  }
  
  .tooltip-content td{
    padding: 3px 8px;
  }
  
  .tooltip-total td {
    padding: 4px 8px;
  }
  
  .tooltip-content td:first-child,
  .tooltip-total td:first-child {
    padding-right: 8px;
  }
  
  .color-legend {
    display: inline-block;
    background-color: inherit;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 20%;
  }
}

/* desktop */
@media screen and (min-width: 1025px) {

  /* starts here */
  .CaptionedChart {
    padding: 10px 20px;
  }

  .CaptionedChart,
  .chart {
    width: 650px;
  }

  .HeaderHTML {
    font-size: 20px;
  }

  .chart-labels {
    font-size: 12px;
  }

  .table-labels {
    font-size: 10px;
  }

  .diagram-labels {
    font-size: 18px;
  }

  .tooltip {
    font-size: 12px;
  }

  .tooltip-title {
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    padding: 6px 8px;
    background-color: #f1eded;
  }
  
  .tooltip-total {
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #d3d3d3;
  }
  
  .tooltip-content .value,
  .tooltip-total .value {
    text-align: right;
  }
  
  table.tooltip-content,
  table.tooltip-total {
    width: 100%;
    border-spacing: 0;
  }
  
  .tooltip-content td{
    padding: 3px 8px;
  }
  
  .tooltip-total td {
    padding: 4px 8px;
  }
  
  .tooltip-content td:first-child,
  .tooltip-total td:first-child {
    padding-right: 8px;
  }
  
  .color-legend {
    display: inline-block;
    background-color: inherit;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 20%;
  }
}