
/* 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;
    }
}

.dp-dash-app .container {
    border-radius: var(--bs-border-radius-xl)!important;
}

.dp-dash-app label {
    font-weight: 600!important;
}

/* Cleanup */

/* Styles from Bayer HTML templates */

/* From analytics.html */
.mega-menu-overlay {
  position: absolute;
  top: 70px;
  left: 250px; /* default when sidebar is visible */
  right: 0;
  z-index: 2000;
  background: #fff;
  padding: 2rem 1rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: none;
  transition: left 0.3s ease;
  margin-left: 20px;
  margin-right: 20px;
}

.mega-menu {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Adjust when sidebar is collapsed */
.sidebar.collapsed ~ .content-wrapper .mega-menu-overlay {
  left: 0 !important;
}

/* Shift 300px left on screen < 1200px */
@media (max-width: 1200px) {
  .mega-menu-overlay {
    left: -300px !important;
    padding: 1.5rem 1rem;
  }
}

/* Optional styling enhancements */
.mega-menu-title {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  color: var(--bs-primary);
  align-items: center;
  margin-bottom: 1rem;
}

.mega-menu-title i {
  margin-right: 0.5rem;
}

.mega-menu-link {
  display: flex;
  align-items: start;
  padding: 0.5rem;
  text-decoration: none;
  color: #848f8a;
  border-radius: 6px;
  transition: all 0.2s;
}

.mega-menu-link:hover {
  background-color: #f2f2f2;
  color: var(--bs-primary);
}

.mega-menu-item {
    display: flex;
    align-items: center; /* vertical alignment */
    gap: 0.75rem; /* spacing between icon and text */
}

.mega-menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bs-primary);
    border-radius: 8px;
    color: var(--bs-white);
    flex-shrink: 0; /* prevent shrinking */
}

.mega-menu-item-content {
    display: flex;
    align-items: center;
}

.mega-menu-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


.mega-menu-link:hover .mega-menu-item-icon {
  background-color: #d2f4f1;
  color: var(--bs-primary);
}

/* From bayer_topbar.html */
.bayer-topbar-wrapper {
  margin-left: 0;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  transition: margin-left 0.3s ease;
}

.bayer-topbar-wrapper .burger-wrapper {
  display: none; /* Hidden by default for small screens */
}

/* For screens 1000px and above */
@media (min-width: 1000px) {
  .bayer-topbar-wrapper .burger-wrapper {
    display: inline-block; /* Show burger menu on larger screens */
  }
}

/* When sidebar is open */
.sidebar-open .bayer-topbar-wrapper {
  margin-left: 300px;
}

.sidebar-open .bayer-topbar-wrapper .burger-wrapper {
  display: none;
}

/* From initiatives.html and source_initiatives.html */
label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
}

select[multiple] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #fdfdfd;
    height: 40px
}

.select-clean {
    border: none !important;
    box-shadow: none !important;
    background-color: rgba(0, 0, 0, 0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.uniform-height {
    height: 35px !important;
    /* or any desired consistent height */
}

.kpi-card {
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding-left: 1.75rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.kpi-card .kpi-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--bs-primary);
    margin-bottom: 0rem;
    min-width: 45px;
}

.kpi-card .kpi-label {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--bs-primary);
}

.kpi-card .kpi-value {
    font-size: 1.1rem;
}

.kpi-card .kpi-label {
    font-size: 1.0rem;
}

.kpi-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.responsive-plot > div {
    display: flex;
    justify-content: center;
}

.responsive-plot iframe {
    width: 100% !important;
    max-width: 400px;
    max-height: 400px;
    aspect-ratio: 1 / 1;
    height: auto !important;
    display: block;
    margin: auto;
}

.progress-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.progress-bar .progress-text {
    right: 0.5rem;
    width: 100%;
    text-align: right;
}

.progress-bar.progress-complete {
    background-color: #008743 !important;
}

.progress-bar.progress-very-high {
    background-color: #008743 !important;
    opacity: .5;
}

.progress-bar.progress-high {
    background-color: #848f8a !important;
    opacity: .25;
}

.progress-bar.progress-low {
    background-color: #848f8a !important;
    opacity: .25;
}

.progress-bar.progress-warning {
    background-color: #f7941d !important;
}

td {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.progress-text.outside {
    position: absolute;
    left: 105%; /* move it slightly to the right of the bar */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    z-index: 0;
    right: 8px;
}

.circle-group {
    display: flex;
    gap: 4px;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.circle.filled {
    background-color: var(--bs-primary);
}

/* From landing_page.html */
/* --- Core Styling --- */
.programs-section {
  margin: 3rem 0;
}

.program-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.program-card-people::before {
  background: var(--bs-primary);
}

.program-card-planet::before {
  background:  #8dc63f;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.program-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.program-icon {
  width: 64px;
  height: 64px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.program-card-people .program-icon {
  background: var(--bs-primary);
  color: white;
}

.program-card-planet .program-icon {
  background:  #8dc63f;
  color: white;
}

.program-title h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #343a40;
}

.program-title p {
  font-size: 1rem;
  color: #343a40;
  margin: 0;
  font-weight: 500;
}

.program-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.program-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.program-sdgs {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.sdg-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.sdg-mini-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.program-subcategories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.subcategory-item {
  background: #f1f3f5;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.subcategory-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.subcategory-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: #222;
  font-weight: 500;
  border-radius: .5rem;
}

.subcategory-link i {
  width: 20px;
  color: #888;
  transition: color 0.2s;
}

.program-card-people .subcategory-link:hover i {
  color: var(--bs-primary);
}

.program-card-planet .subcategory-link:hover i {
  color: var(--bs-primary);
}

.program-action {
  margin-top: auto;
}

.btn-people,
.btn-planet {
  padding: 0.875rem 1.5rem;
  border-radius: .5rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-people,
.btn-people:hover {
  background: var(--bs-primary);
  color: white;
}

.btn-planet,
.btn-planet:hover {
  background:  #8dc63f;
  color: white;
}

.btn-people:hover,
.btn-planet:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  color: white;
}

/* Nav styles */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

.nav-link:focus, .nav-link:hover {
  text-decoration: none;
}

.nav-link.disabled {
  color: #6c757d;
  pointer-events: none;
  cursor: default;
}

/* Tab styles */
.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

/* Navbar styles */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar .container, .navbar .container-fluid, .navbar .container-lg, .navbar .container-md, .navbar .container-sm, .navbar .container-xl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.navbar-nav .nav-link {
  padding-right: 0;
  padding-left: 0;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

@media (min-width: 768px) {
  .navbar-expand-md {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-md .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-md .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-expand-md .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-md .navbar-toggler {
    display: none;
  }
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Additional styles from /assets/styles.css for /app/open/performance-technologies/ */

/* Navbar styling for nav-link-bold-large */
.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) */
}

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

/* Responsive utility classes */
/* 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 */
  }
}

/* Image styling */
/* 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;
  }
}

/* Navbar toggler styling */
/* 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%;
  }
}

/* Wide tabs styling */
.wide-tab {
    font-size: 1.25rem!important;
    color: var(--bs-secondary) !important;
}

.wide-tab.active {
    background-color: var(--bs-white)!important;
    color: var(--bs-primary) !important;
    font-weight: 500!important;
}

.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    line-height: 0;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.dash-tabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 600;
    border: 2px solid var(--bs-primary);
    border-bottom: 2px solid transparent;
    background-color: #ffffff;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

table.minimal-summary-table tr.summary-row-border:first-child td {
    font-weight: 600!important;
}

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

.minimal-summary-table td {
}

.dp-dashboard-box {
    background-color: var(--bs-white);
    border-radius: .5rem;
    padding: 1rem;
    height: 100%;
}


/* Title text inside each accordion button */
.accordion-item-small-title .accordion-button {
  font-size: 0.875rem; /* Change this to control label size */
  padding: 0.75rem 1rem; /* Top/bottom and left/right padding */
  color: var(--bs-secondary); /* Or your preferred color */
  font-weight: 500;
  background-color: #f9f9f9; /* Optional for a soft background */
  border-radius: 0.3rem;
}

/* Style when item is expanded */
.accordion-item-small-title .accordion-button:not(.collapsed) {
  font-size: 0.875rem; /* Keep consistent or make slightly smaller/larger */
  color: var(--bs-secondary);
  background-color: #f9f9f9; /* Optional */
}

.initiative-description {
  font-size: 0.875rem; /* or any size you prefer */
  color: var(--bs-dark); /* Bootstrap secondary or custom */
  line-height: 1.4;
}

/* Slightly larger label/title for accordion items */
.accordion-item-larger-label .accordion-button {
  font-size: 1rem; /* slightly larger than default */
  font-weight: 600;
  color: var(--bs-secondary);
  padding: 0.85rem 1.2rem;
}

/* Optional: style when expanded */
.accordion-item-larger-label .accordion-button:not(.collapsed) {
  color: var(--bs-secondary);
}