/* 
MY WASTE METRICS SECTIONS */

div > div:nth-child(1) > div > svg > g:nth-child(3) > text {
  font-family: Gill Sans Light, sans-serif !important;
  font-weight: 300 !important;
  font-size: 22px !important;
  color: #009739 !important;
}

.visualizer-front-container .table td {
  border: none;
}

.visualizer-front-container .table th {
  border: none;
}

.visualizer-front-container .table tr {
  border: none !important;
}

.visualizer-front-container .dataTable {
  border: none !important;
}

#chart_wrapper_visualizer-8233-1580846348 {
  border: none !important;
}

.sorting {
  font-family: Gill Sans Light, sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #009739 !important;
  text-align: left;
}

.sorting_asc {
  font-family: Gill Sans Light, sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: #009739 !important;
  text-align: left;
}
/* 
recurring dashboard frontend */

#user-registration .recurring-db-btn {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

/* 
phase 2 styles */

.datepicker.hasDatepicker {
  width: 25% !important;
  margin: 0px 12px 0px 12px !important;
}

.graph-filters > label:nth-child(3) {
  padding-left: 12px;
}

.graph-filters {
  border-color: #f3f3f3 !important;
  border: solid;
  padding: 12px 12px 12px 12px;
}

.page-id-8210 .graph_heading {
  display: none;
  margin-top: 62px;
}

.graph_heading {
  margin-top: 62px;
}

.graph-filters label {
  font-size: 16px !important;
  font-weight: 600;
}

#ui-datepicker-div > div > a.ui-datepicker-next.ui-corner-all > span {
  padding: 12px;
}

#ui-datepicker-div > table {
  background-color: #fff;
}

.graph {
  margin: 0px 0px 32px 0px;
  background-color: #f3f3f3f3;
  padding: 32px 32px 32px 32px;
}

#ui-datepicker-div {
  background-color: #fff;
  margin: 12px 0px 12px 0px;
  padding: 12px;
}

.apply-filters {
  border-color: #2e93ee !important;
  color: #fff !important;
  border-width: 1px !important;
  padding: 4px 14px 4px 14px !important;
  letter-spacing: 0 !important;
  margin-left: 12px !important;
}

.apply-filters:hover {
  background-color: #fff !important;
  color: #2e93ee !important;
}

.graph-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.graph-filters > label {
  margin-top: 7px;
}

.graph-filters > label {
  margin-top: 7px;
}

/* hide targets form registration form */

#reduction_targets_field {
  display: none;
}

/* 
tables and graphs on home page */

body:not(.logged-in) #waste-metrics-home {
  display: none !important;
}

.graph {
  height: 500px;
}

/* 
hide date filters on home page */
.page-id-71 .graph-filters {
  display: none;
}

/* 
waste mterics tabs styling */
.e-n-tabs-content .e-n-tab-title {
  display: none !important;
}

.e-n-tabs-heading {
  display: flex !important;
}

@media screen and (max-width: 400px) {
  .graph-filters > label {
    display: none;
  }
}

@media screen and (max-width: 400px) {
  .datepicker.hasDatepicker {
    width: 50% !important;
    margin-left: -4px !important;
  }
}

/* hide waste metrics from nav not logged in */

body:not(.logged-in) .nav-metrics {
  display: none !important;
}

.column_data {
  padding: 12px 5px 12px 5px !important;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  border: none;
}

.column_heading {
  padding: 12px 5px 12px 5px !important;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
  border: none;
  text-transform: uppercase;
}

#user-registration-frontend-listing-1 {
  background: #fff !important;
}

#user-registration-frontend-listing-1:hover {
  background: #fff !important;
}

/* 	
date-picker-calendar
 */
#ui-datepicker-div {
  border: solid;
  border-width: 1px;
}
/* 
hide target notice on home page */

#business-target-home > div > div > p {
  display: none;
}

/* hide tables on home page */

#waste-metrics-home .data_table {
  display: none !important;
}

#business-target-home .data_table {
  display: none;
}

#ur-frontend-form > form > div > div > div > div > div:nth-child(17) > div {
  display: none;
}

/*
tabs on mobile */

@media screen and (max-width: 750px) {
  .e-n-tab-title-text {
    width: 290px !important;
    padding: 16px 0px 16px 0px;
  }
}

/* 
diversion percentage styles */
.percentage {
  font-weight: 700;
  margin-top: -215px;
  padding-bottom: 50px;
  position: relative;
  margin-left: 80%;
}

.percentage:has(.carbon-summary) {
  margin-left: 70%;
  margin-top: 0px;
  position: absolute;
  top: 18%;
}

.percentage:has(.compost-summary) {
  margin-left: 70%;
  margin-top: 0px;
  position: absolute;
  top: 18%;
}

.percentage:has(.saving-summary) {
  margin-left: 68%;
  margin-top: 0px;
  position: absolute;
  top: 18%;
}

/* Circle for percentage */
.percentage_value {
  display: flex;
  justify-content: center; /* center text horizontally */
  align-items: center; /* center text vertically */
  background-color: #2e93ee;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-family: League Gothic;
  color: #fff;
  font-size: 42px;
  margin-top: 10px; /* spacing from label */
}

.percentage_label {
  text-align: center !important;
  font-weight: 700;
  text-transform: uppercase;
}

@media screen and (max-width: 750px) {
  .percentage {
    margin-left: 20%;
    margin-top: 0px;
    padding-bottom: 64px !important;
  }
}

.graph-canvas-wrapper {
  min-height: 500px; /* adjust as desired */
}

.graph-canvas-wrapper canvas {
  height: 100% !important;
}

#chartjs-tooltip {
  opacity: 1 !important;
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 3px;
  pointer-events: none;
  z-index: 9999 !important;
  padding: 10px;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.graph-canvas-wrapper {
  position: relative !important;
}

.carbon-summary {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
}

.carbon-summary p {
  margin: 5px 0;
}

.carbon-summary em {
  color: #666;
  font-size: 12px;
}

.compost-summary {
  background: #f1f8e9;
  border-left: 4px solid #8bc34a;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
}

.compost-summary p {
  margin: 5px 0;
}

.compost-summary em {
  color: #666;
  font-size: 12px;
}

.legend-note {
  background: #e8f5e9;
  padding: 8px;
  border-radius: 4px;
  margin-top: 10px;
  font-size: 13px;
  border-left: 3px solid #4caf50;
}

.saving-summary {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
}

.saving-summary p {
  margin: 5px 0;
}

.savings-highlight {
  background: #e8f5e9;
  padding: 8px;
  border-radius: 4px;
  font-size: 15px;
  color: #2e7d32;
}

.saving-highlight {
  color: #2e7d32;
  font-weight: 600;
}

.saving-summary em {
  color: #666;
  font-size: 12px;
}

.toggle-chart-type {
  border-color: #757575 !important;
  color: #fff !important;
  background-color: #757575 !important;
  border-width: 1px !important;
  padding: 4px 14px 4px 14px !important;
  letter-spacing: 0 !important;
  margin-left: 12px !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-chart-type:hover {
  background-color: #fff !important;
  color: #757575 !important;
}

.toggle-icon {
  font-size: 16px;
  margin-right: 5px;
}

/* Ensure button stays in line with filters */
.graph-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media screen and (max-width: 768px) {
  .toggle-chart-type {
    margin-top: 10px;
    width: 100%;
  }
}
