:root {
  --blue: #009891;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #ef4130;
  --orange: #f7941d;
  --yellow: #ffc107;
  --green: #008743;
  --teal: #8dc63f;
  --cyan: #82ca9c;
  --white: #fff;
  --gray: #848f8a;
  --gray-dark: #343a40;
  --primary: #009891;
  --secondary: #848f8a;
  --success: #008743;
  --info: #82ca9c;
  --warning: #f7941d;
  --danger: #ef4130;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: Roboto, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* General body styling */
body {
  background-color: var(--light);
  font-family: var(--font-family-sans-serif);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar styling */
.navbar {
  background-color: var(--light);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--gray-dark);
  margin-left: 20px;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link-bold-large {
  font-size: 24px; /* Larger font */
  font-weight: 600; /* Semi-bold */
  color: #848f8a; /* Default text color */
  text-decoration: none; /* Remove underline */
}

.navbar-light .navbar-nav .nav-link-bold-large:hover {
  color: var(--primary); /* Hover color, defined by your theme or a specific value */
}

.navbar-light .navbar-nav .nav-link-bold-large:active {
  color: var(--primary); /* Active color (same as hover for consistency) */
}

/* Style for navbar links on larger screens */
.navbar-bold-large {
  font-weight: bold;
  font-size: 1.3rem; /* Default size for larger screens */
  text-decoration: none; /* Remove underline by default */
  color: inherit; /* Inherit text color by default */
  transition: all 0.3s ease; /* Smooth transition for hover and active effects */
}

/* Hover effect */
.nav-link-bold-large:hover {
  text-decoration: underline !important; /* Force underline on hover */
}


/* Container styling */
.container {
  background: var(--white);
  border-radius: 8px;
  flex: 1;
  padding-top: 10px;
  padding-bottom: 10px;
}

.container h2, .container h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

/* Form control focus styling */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 152, 145, 0.25);
}

/* Primary button styling */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #00726d;
  border-color: #006560;
}

/* Logo styling */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 150px;
}

/* Alert styling */
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Footer styling */
.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  background: transparent;
  margin-top: auto;
}

.footer-content {
  text-align: center;
}

.footer p {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
  font-family: var(--font-family-sans-serif);
}

.footer img {
  max-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .logo img {
    max-width: 120px;
  }
  .container h2, .container h3 {
    font-size: 1.2rem;
  }
  
  .footer img {
    max-width: 100px;
  }
}

/* Multi drop down */
.drop-primary .Select--multi .Select-value {
  background-color: var(--primary);
  color: var(--white);
}

.drop-primary .VirtualizedSelectFocusedOption {
  background-color: var(--primary);
}

.drop-secondary .Select--multi .Select-value {
  background-color: var(--secondary);
  color: var(--white);
}

.drop-secondary .VirtualizedSelectFocusedOption {
  background-color: var(--secondary);
}

.drop-warning .Select--multi .Select-value {
  background-color: var(--warning);
  color: var(--white);
}

.drop-warning .VirtualizedSelectFocusedOption {
  background-color: var(--warning);
}

/* Date range picker styling */
.date-range-primary .CalendarDay__selected_span {
  background: var(--primary);
  border: var(--primary);
}

.date-range-primary .CalendarDay__selected {
  background: var(--primary);
  border: var(--primary);
}

.date-range-success .CalendarDay__selected_span {
  background: var(--success);
  border: var(--success);
}

.date-range-success .CalendarDay__selected {
  background: var(--success);
  border: var(--success);
}

.date-range-warning .CalendarDay__selected_span {
  background: var(--warning);
  border: var(--warning);
}

.date-range-warning .CalendarDay__selected {
  background: var(--warning);
  border: var(--warning);
}

/* AG Grid styling */
.ag-row:nth-child(odd) {
  background-color: var(--white);
}

.ag-row:nth-child(even) {
  background-color: #F6F7FC;
}

.ag-row:hover {
  background-color: #7ac9c6;
}

.ag-header {
  background-color: var(--primary) !important;
  height: auto !important;
  display: flex;
  align-items: stretch;
}

.ag-header-cell {
  background-color: var(--primary) !important;
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: center; /* Horizontally center */
  flex-grow: 1
}
.ag-custom-header {
  font-size: 16px; /* Adjust font size */
  white-space: nowrap; /* Optional: Prevent text wrapping */
  text-align: center; /* Ensure the text is centered */
  align-items: center; /* Vertically center text */
  justify-content: center; /* Horizontally center text */
}
.header-secondary {
  background-color: var(--light); /* Use your secondary color */
  color: var(--dark); /* Text color */
  text-align: center; /* Ensure the text is centered */
  align-items: center; /* Vertically center text */
  justify-content: center; /* Horizontally center text */
  font-size: 16px; /* Adjust font size */
  white-space: normal; /* Optional: Prevent text wrapping */
}
.ag-header-wrap {
  background-color: var(--primary) !important;
  color: var(--white);
  text-align: center; 
  display: flex;
  height: auto !important;
  align-items: center; /* Vertically center text */
  justify-content: center; /* Ensure text stays centered */
  white-space: normal; /* Optional: allow text wrapping */
}

.ag-header-wrap:hover, .ag-header-cell:hover {
  background-color: #F6F7FC !important;
  color: var(--primary) !important;
}
.ag-cell.text-success {
  color: var(--green);
  font-weight: 600;
}
.ag-cell.text-warning {
  color: var(--orange);
  font-weight: 600;
}
.ag-cell.text-muted {
  color: var(--secondary);
  font-weight: 600;
}

.ag-cell {
  padding-left: 4px !important;
  padding-right: 4px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}

/* Center content in AG Grid headers */
.ag-header-cell-label {
  display: flex; /* Enable flexbox for alignment */
  align-items: center; /* Vertically center the text */
  justify-content: center; /* Horizontally center the text */
  text-align: center; /* Fallback for legacy layouts */
  height: 100%; /* Ensures label stretches to full header height */
}

/* Ensure parent wrappers align correctly */
.ag-header-cell-comp-wrapper,
.ag-cell-label-container {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center */
  justify-content: center; /* Horizontally center */
}

/* dcc Slider custom style */
.rc-slider-track {
  background-color: var(--primary);
}

.rc-slider-dot-active {  
  border-color: var(--primary);
  border: solid 2px var(--primary);
}

.rc-slider-handle {
  background-color: var(--primary);
  border-color: var(--primary);
}

.rc-slider-handle:hover {
  border-color: var(--primary);
}

.rc-slider-handle-active:active {
  border-color: var(--primary);
}


/* Border radius class */
.border-radius-10 {
  border-radius: 10px;
}

.border-radius-15 {
  border-radius: 15px;
}

/* Smaller typography */
.font-50, font-50 {
  font-size: 50%;
  font-weight: 300;
}

.font-80, font-80 {
  font-size: 80%;
  font-weight: 300;
}

/* AG Grid centered headers */
.center-aligned-header .ag-header-cell-label {
  align-items: center !important; /* Vertically center */
  justify-content: center !important; /* Horizontally center */
  text-align: center !important; /* Ensure text is centered */
}

.center-aligned-cell {
  text-align: center;
}

/* Apply cursor change to cells with colId equal to "download_pdf" */
.ag-cell.cursor-pointer:hover {
  cursor: pointer;
}

/* Custom tooltip styling */
.tooltip-inner {
  background-color: #d3d3d3 !important;  /* Gray background */
  color: var(--primary) !important;  /* Green text */
}

.tooltip .arrow::before {
  border-top-color: #d3d3d3 !important;  /* Gray background for the arrow */
}

.dash-date-picker .DateInput_input {
  font-family: 'Roboto', sans-serif !important;
}

.dash-dropdown .Select--multi .Select-value {
  background-color: #009891 !important;
  border: 1px solid #009891 !important;
  color: white !important;
  border-radius: .25rem !important;
}

.dash-dropdown .Select--multi .Select-value-icon {
  fill: white !important;
}

.dash-dropdown .Select--multi .Select-value-label {
  color: white !important;
}

.dash-dropdown .Select--multi .Select-option.is-selected {
  background-color: #009891 !important;
  color: white !important;
}


/* Date Picker styling */
.custom-date-picker .DateInput {
  height: 34px;  /* Match the height of the dropdowns */
  font-family: 'Roboto', sans-serif;  /* Apply Roboto font */
}

/* Ensure the entire date picker container is displayed inline */
.custom-date-picker .DateRangePicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;  /* Let the container auto-adjust based on the content */
  padding: 0;  /* Remove any internal padding */
}

/* Reduce the width, font size, and padding of the date input fields */
.custom-date-picker .DateInput_input {
  width: 90px;  /* Set the width of individual inputs */
  font-size: 14px;  /* Set font size for input */
  padding: 4px 6px;  /* Adjust padding for a compact design */
  text-align: center;  /* Align text in the center of the input */
  font-family: 'Roboto', sans-serif;  /* Apply Roboto font */
}

/* Adjust the size of the arrow */
.custom-date-picker .DateRangePickerInput_arrow_svg {
  width: 12px;  /* Adjust the width of the arrow */
  height: 14px;  /* Adjust the height of the arrow */
  stroke: var(--primary);  /* Optionally change the color of the arrow */
  vertical-align: middle;  /* Align the arrow vertically with the text */
}

/* Reduce the margin around the arrow */
.custom-date-picker .DateRangePickerInput_arrow {
  margin-left: 5px;  /* Adjust the gap before the arrow */
  margin-right: 5px;  /* Adjust the gap after the arrow */
  display: inline-flex;
  align-items: center;  /* Ensure the arrow is vertically aligned */
}

/* Ensure the inputs are aligned horizontally */
.custom-date-picker .DateRangePickerInput {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
}



/* Styling the calendar dropdown to match the Roboto font */
.custom-date-picker .DayPicker {
  font-family: 'Roboto', sans-serif; /* Apply Roboto font */
}

.custom-date-picker .CalendarMonth_caption {
  font-family: 'Roboto', sans-serif; /* Apply Roboto font */
  font-size: 16px; /* Adjust font size as needed */
  font-weight: 500; /* Adjust font weight if needed */
}

.custom-date-picker .DayPicker_weekHeader {
  font-family: 'Roboto', sans-serif; /* Apply Roboto font */
  font-size: 12px; /* Adjust font size as needed */
  font-weight: 400; /* Adjust font weight if needed */
}

.custom-date-picker .CalendarDay {
  font-family: 'Roboto', sans-serif; /* Apply Roboto font */
  font-size: 14px; /* Adjust font size as needed */
}


/* Custom switch */
.custom-switch .form-check-input:checked {
  background-color: #009891; 
  border-color: #009891;
}

/* Rounded corners for containers */
.rounded-container {
  border-radius: 15px;
}

/* Form check input */
.form-check-input:checked {
  background-color: #009891;
  border-color: #009891;
}

/* Wrap label */
.wrap-label {
  white-space: pre-wrap; /* CSS3 */
  white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  white-space: -pre-wrap; /* Opera 4-6 */
  white-space: -o-pre-wrap; /* Opera 7 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  text-align: center; /* Center align the text */
}

/* Responsive Tabs Styling */
.dash-tabs .nav-item {
  flex: 1 1 auto; /* Allow the tabs to shrink if necessary */
  text-align: center;
  white-space: nowrap; /* Prevent text from wrapping */
}

/* Adjust tab label size and padding on small screens */
@media (max-width: 576px) {
  .dash-tabs .nav {
    flex-direction: column; /* Stack tabs vertically */
  }
  .dash-tabs .nav-item {
    width: 75%; /* Make each tab full-width */
    text-align: center;
  }
  .dash-tabs .nav-link {
    padding: 0.75rem 1rem; /* Adjust padding for easier tap targets */
    font-size: 0.8rem;
  }
}

/* Responsive cards styling*/ 
/* Base styles for the icon font */
.icon-font {
  font-size: 0.9em;  /* Default size */
  color: white;
  object-fit: contain;
}

/* Base styles for the icon container */
.icon-container {
  background-color: #009891 ;  /* Adjust color if needed */
  width: clamp(35px, 1vw, 40px);  /* Responsive width that adjusts with viewport */
  height: clamp(35px, 1vw, 40px); /* Responsive height */
  aspect-ratio: 1;  /* Keeps the container square */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* Base styles for H5 and H6 */
.kpi-value {
  color: #848f8a;  /* Adjust grey color */
  font-size: 1.1rem  /* Responsive font size for larger screens clamp(1rem, 1vw, 1.5rem); */
}

.kpi-description {
  color: #848f8a;
  font-size: 0.9rem; /*clamp(0.8rem, 1vw, 1.2rem);*/
}
@media (min-width: 992px) and (max-width: 1155px) {
  .kpi-value {
    font-size: 1rem; /* Adjust font size for this screen range */
  }
  .kpi-description {
    font-size: 0.8rem; /* Adjust font size for this screen range */
    padding-bottom: 8px; /* Optional: add bottom padding */
  }
}
@media (max-width: 330px) {
  .kpi-value {
    font-size: 1rem; /* Adjust font size for this screen range */
  }
  .kpi-description {
    font-size: 0.8rem; /* Adjust font size for this screen range */
    padding-bottom: 8px; /* Optional: add bottom padding */
  }
}


/* Bundle tabs styling*/
.bundle-tab-content {
  border-radius: 15px; /* Rounded corners */
  background-color: #f9f9f9; /* Light gray background */
  border: 1px solid #ddd; /* Optional border for better visibility */
  padding: 4px; /* Optional padding inside the content */
  margin: 2px; /* Optional margin around the content */
}


/* invalid input */
.invalid-input {
  border: 1px solid green;
  border-radius: .25rem;
}

/* Wide tabs styling */
.wide-tab {
  font-size: 1.25rem;
  color: #848f8a !important;
}

.wide-tab.active {
  color: #009891 !important;
  font-weight: 500;
}


/* Center the navbar-toggler button */
.navbar-toggler {
  padding: .5rem 1.5rem; /* Increase padding for better clickable area */
  font-size: 1.5rem;      /* Adjust the icon size */
  line-height: 1;         /* Adjust the line-height for alignment */
  background-color: transparent;
  border: 1px solid #ccc; /* Light border color */
  border-radius: .25rem;  /* Rounded corners */
  width: 100% ;
  flex: 1;

}

/* Hover and focus effects for the toggler button */
.navbar-toggler:hover, .navbar-toggler:focus {
  text-decoration: none;  /* Remove underline */
  background-color: var(--light); /* Blue color on hover */
  border-color: var(--gray);     /* Darken border on hover/focus */
  color: var(--gray);              /* Change icon color to white */
}

/* Full width navbar-toggler on small screens */
@media (max-width: 767.98px) {
  .navbar-toggler {
    width: 100%;  /* Expand the toggler button to full width */
  }

  .navbar-collapse {
    width: 100%;
    display: block; /* Ensures the navbar collapses fully */
    text-align: center;  /* Center the navbar items when collapsed */
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .navbar-nav .nav-item {
    text-align: center;
    width: 100%;
  }
}



/* Style for larger screens */
.vw01 {
  font-size: 1vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw01 {
      font-size: 26px; /* or set to a specific size like 16px */
  }
}

/* Style for larger screens */
.vw07 {
  font-size: 0.7vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw07 {
      font-size: 14px; /* Set to a specific size for xs screens */
  }
}

/* Style for larger screens */
.vw08 {
  font-size: 0.8vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw08 {
      font-size: 16px; /* Set to a specific size, such as 14px, for xs screens */
  }
}

/* Style for larger screens */
.vw12 {
  font-size: 1vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw12 {
      font-size: 22px; /* or set to a specific size like 16px */
  }
}

/* Style for larger screens */
.vw15 {
  font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw15 {
      font-size: 20px; /* Set to a specific size, such as 20px, for xs screens */
  }
}


/* Style for larger screens */
.vw16 {
  font-size: 1.6vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw16 {
      font-size: 30px; /* Set to a specific size for xs screens */
  }
}

/* Style for larger screens */
.vw18 {
  font-size: 1.8vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw18 {
      font-size: 30px; /* Set to a specific size for xs screens */
  }
}


/* Style for larger screens */
.vw20 {
  font-size: 2vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw20 {
      font-size: 40px; /* Set to a specific size for xs screens */
  }
}

/* Default style for small, medium, and extra-small screens */
.img-responsive {
  height: auto; /* Maintain original aspect ratio */
  width: auto; /* Keep width proportional */
  max-height: 15.85vw; /* Constrain max height */
  margin-right: 1vw;
  margin-left: 1vw;

}

/* Override for large and extra-large screens */
@media (min-width: 992px) {
  .img-responsive {
      height: auto; /* Maintain original aspect ratio */
      max-height: 5vw; /* Constrain max height for larger screens */
      width: auto; /* Keep width proportional */
      margin-right: 0.1vw; /* Add consistent spacing */
      margin-left: 0vw;
  }
}

.no-style-link {
  all: unset; /* Resets all styles of the <a> tag */
  display: inline-block; /* Ensure the link behaves like an inline element */
}

/* Default style for small, medium, and extra-small screens */
.responsive-card {
  width: 100%;  /* Full width on small screens */
}

/* Override for large and extra-large screens */
@media (min-width: 992px) {
  .responsive-card {
      width: 50%;  /* 50% width on large screens */
  }
}



/* Style for larger screens */
.vw15 {
  font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw15 {
      font-size: 20px; /* Set to a specific size for xs screens */
  }
}


/* Style for larger screens */
.vw1 {
  font-size: 1.5vw;  /* Applies font size only on larger screens */
}

/* Override for extra-small screens (max-width: 576px) */
@media (max-width: 576px) {
  .vw1 {
      font-size: 16px; /* Set to a specific size for xs screens */
  }
}




/* Height utility classes: 
   These classes allow for flexible and reusable height management
   for dcc.Graph components. Each class corresponds to a specific height 
   (in rem), increasing in steps of 5rem from 10rem to 40rem. 
   Usage example: Apply class `height-25` to set a graph's height to 25rem.
*/

.height-10 {
  height: 10rem;
}

.height-15 {
  height: 15rem;
}

.height-20 {
  height: 20rem;
}

.height-25 {
  height: 25rem;
}

.height-30 {
  height: 30rem;
}

.height-35 {
  height: 35rem;
}

.height-40 {
  height: 40rem;
}

/* Border width utility classes:
   These classes allow for flexible and reusable border width styling.
   Each class corresponds to a specific border width (in pixels), 
   ranging from 1px to 5px.
   Usage example: Apply class `border-width-3` to set a border width of 3px.
*/

.border-width-1 {
  border-width: 1px;
}

.border-width-2 {
  border-width: 2px;
}

.border-width-3 {
  border-width: 3px;
}


/* Utility class for vertical scrolling */
.overflow-y-auto {
  overflow-y: auto !important;
}

/* Width utility clases */

.container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}


/* Bayer */

.custompadding {
  padding: 15px
}

/* to hide the map attribution */
.maplibregl-control-container {
  display: none
}

.icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.icon img {
  max-width: 30px;
}

.iconlarge {
  display: flex;
  justify-content: center;
}

.iconlarge img {
  max-width: 50px;
}

.report-card:hover {
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.hover-reveal-link {
  color: inherit;
  text-decoration: none;
  cursor: default;
}
.hover-reveal-link:hover {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer !important;
}


.scroll-target {
  scroll-margin-top: 0px; /* Adjust based on your fixed header height */
}


/* Bayer summary tables*/

.minimal-summary-table {
  width: 100%;
}

.minimal-summary-table tr {
  height: 42px; /* consistent row height */
}

.minimal-summary-table td {
  padding: 6px 0;
  color: var(--secondary);
  font-size: 14px;
  border: none !important;
  vertical-align: middle;
  line-height: 1.4;
}

.label-cell {
  font-weight: 400;
  text-align: left;
}

.value-cell {
  font-weight: 600;
  text-align: right;
}

.left-align {
  text-align: left !important;
}
.bold {
  font-weight: 600 !important;
}

table.minimal-summary-table tr.summary-row-border:not(:first-child) td {
  border-top: 0.2px solid #e2e2e2 !important;
}

.large-popover .popover {
  max-width: 800px !important;
  width: 800px !important;
  min-width: 700px !important;  /* optional */
  font-size: 14px !important;
  padding: 1rem !important;
}
.benchmark-popover {
  overflow: visible !important;
}