body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    /*background: radial-gradient(circle at 50% 100%, rgb(40 183 232) 0%, rgb(40 62 79) 35%);*/
    /*background: linear-gradient(to right, rgb(43, 75, 116) 0%, rgb(51, 156, 229) 100%);*/
    height: 1100px;
}


.container {
    width: 100%;
    max-width: 600px;
    margin-top: 50px;
    text-align: center;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e4e6e8;
}

h3{
    margin-top: 20px;
}

.search-container {
    width: 100%;
    transition: margin-top 0.3s ease-in-out;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    /* margin-bottom: 10px; */
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #005F9C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

/* Style for disabled button with higher specificity */
button:disabled,
button:disabled:hover {
    background-color: #cccccc; /* Light gray background */
    color: #666666; /* Dark gray text */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
    opacity: 0.6; /* Slightly transparent */
}

.result-container {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 16px;
    text-align: left;
}

.name-list {
    margin-top: 20px;
    text-align: left;
}

.name-item {
    cursor: pointer;
    padding: 10px;
    /* background-color: #ecf0f1; */
    border-radius: 4px;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f7f9fc;
    font-weight: 500;
}

td {
    background-color: #fdfdfd;
}

.dropdown-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    padding: 5px 0;
}

.dropdown-container select {
    flex: 1;
    padding: 8px 12px;
    min-width: 200px;
    font-size: 16px;
    border-radius: 4px;
    /* margin-right: 10px; */
    height: 44px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.dropdown-container button {
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #005F9C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dropdown-container button:hover {
    background-color: #2980b9;
}

.dropdown-container input {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Custom tooltip styles */
.custom-tooltip-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.custom-tooltip-icon {
    color: #005F9C;
    font-size: 20px;
    cursor: help;
    margin: 0 10px;
}

.custom-beta-button {
    background-color: #005F9C;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}

.custom-tooltip-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    font-size: 14px;
    width: 300px;
    white-space: normal;
}

.custom-tooltip-wrapper:hover .custom-tooltip-box {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dropdown-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dropdown-container select,
    .dropdown-container input,
    .dropdown-container button,
    .dropdown-container > div {
        width: 100%;
        margin: 5px 0;
    }
    
    .custom-tooltip-wrapper {
        justify-content: center;
    }
    
    .custom-tooltip-box {
        width: 250px;
        margin-left: -125px;
    }
}

.description {
    font-size: 14px;
    color: #666;
}

 /* Include your other styles here */


.loader {
  --w: 13ch;
  font-weight: bold;
  font-family: monospace;
  font-size: 20px;
  line-height: 1.4em;
  letter-spacing: var(--w);
  width: var(--w);
  overflow: hidden;
  white-space: nowrap;
  color: #005F9C;
  text-shadow:
    calc(0*var(--w)) 0 #005F9C,
    calc(-1*var(--w)) 0 #005F9C,
    calc(-2*var(--w)) 0 #005F9C,
    calc(-3*var(--w)) 0 #005F9C,
    calc(-4*var(--w)) 0 #005F9C,
    calc(-5*var(--w)) 0 #005F9C,
    calc(-6*var(--w)) 0 #005F9C,
    calc(-7*var(--w)) 0 #005F9C,
    calc(-8*var(--w)) 0 #005F9C,
    calc(-9*var(--w)) 0 #005F9C,
    calc(-10*var(--w)) 0 #005F9C,
    calc(-11*var(--w)) 0 #005F9C,
    calc(-12*var(--w)) 0 #005F9C;
  animation: dotJump 2s infinite linear;
}
.loader:before {
  content: "Processing...";
  animation: words 24s infinite;
  display: inline-block;
  color: transparent;
  font-weight: 400;
  font-size: 15px;
}

/* Hourglass spinner used in the Program overlay header */
.hourglass-spinner {
  width: 26px;
  height: 26px;
  position: relative;
  transform-origin: 50% 50%;
  animation: hourglassSpin 1.2s infinite linear;
}

.hourglass-spinner::before,
.hourglass-spinner::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}

.hourglass-spinner::before {
  top: 3px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 10px solid #005F9C;
}

.hourglass-spinner::after {
  bottom: 3px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid #3392D7;
}

@keyframes hourglassSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Get Insights full-screen overlay (same loader + hourglass language as Program) */
.get-insights-pipeline-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
}

/* Breakthrough Savings: full-screen blocking overlay (same pattern as Get Insights) */
.breakthrough-pipeline-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  pointer-events: auto;
  cursor: wait;
}

.breakthrough-pipeline-panel {
  width: 100%;
  max-width: min(640px, 96%);
  pointer-events: auto;
  cursor: default;
}

body.breakthrough-pipeline-overlay-open {
  overflow: hidden;
}

.get-insights-pipeline-panel {
  max-width: min(640px, 100%);
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 95, 156, 0.35);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 95, 156, 0.16),
    0 0 14px rgba(0, 95, 156, 0.38),
    0 0 34px rgba(51, 146, 215, 0.34),
    0 0 64px rgba(0, 95, 156, 0.22),
    0 14px 36px rgba(0, 95, 156, 0.20),
    0 2px 8px rgba(0, 0, 0, 0.06);
  animation: aiPanelGlowPulse 2.2s ease-in-out infinite alternate;
}

@keyframes aiPanelGlowPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(0, 95, 156, 0.14),
      0 0 10px rgba(0, 95, 156, 0.30),
      0 0 24px rgba(51, 146, 215, 0.26),
      0 0 48px rgba(0, 95, 156, 0.16),
      0 10px 28px rgba(0, 95, 156, 0.16),
      0 2px 8px rgba(0, 0, 0, 0.06);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 95, 156, 0.22),
      0 0 18px rgba(0, 95, 156, 0.48),
      0 0 40px rgba(51, 146, 215, 0.40),
      0 0 74px rgba(0, 95, 156, 0.28),
      0 16px 40px rgba(0, 95, 156, 0.24),
      0 2px 8px rgba(0, 0, 0, 0.06);
  }
}

/* Animated progress bar gradient for the Program overlay */
.programOverlayProgressBarInner {
  background-size: 200% 100%;
  animation: programOverlayGradientShift 1.2s linear infinite;
}

@keyframes programOverlayGradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Word rotation */
@keyframes words {
  0%, 32% {
    content: "Processing...";
  }
  33%, 65% {
    content: "Evaluating...";
  }
  66%, 99% {
    content: "Generating...";
  }
  100% {
    content: "Processing...";
  }
}
/* Dot jumping */
@keyframes dotJump {
  0%,100% {
    text-shadow:
      calc(0*var(--w)) 0 #005F9C,
      calc(-1*var(--w)) 0 #005F9C,
      calc(-2*var(--w)) 0 #005F9C,
      calc(-3*var(--w)) 0 #005F9C,
      calc(-4*var(--w)) 0 #005F9C,
      calc(-5*var(--w)) 0 #005F9C,
      calc(-6*var(--w)) 0 #005F9C,
      calc(-7*var(--w)) 0 #005F9C,
      calc(-8*var(--w)) 0 #005F9C,
      calc(-9*var(--w)) 0 #005F9C,
      calc(-10*var(--w)) 0 #005F9C,
      calc(-11*var(--w)) 0 #005F9C,
      calc(-12*var(--w)) 0 #005F9C;
  }
  15% {
    text-shadow:
      calc(0*var(--w)) 0 #005F9C,
      calc(-1*var(--w)) 0 #005F9C,
      calc(-2*var(--w)) 0 #005F9C,
      calc(-3*var(--w)) 0 #005F9C,
      calc(-4*var(--w)) 0 #005F9C,
      calc(-5*var(--w)) 0 #005F9C,
      calc(-6*var(--w)) 0 #005F9C,
      calc(-7*var(--w)) 0 #005F9C,
      calc(-8*var(--w)) 0 #005F9C,
      calc(-9*var(--w)) 0 #005F9C,
      calc(-10*var(--w)) -10px #3392D7,
      calc(-11*var(--w)) 0 #005F9C,
      calc(-12*var(--w)) 0 #005F9C;
  }
  30% {
    text-shadow:
      calc(0*var(--w)) 0 #005F9C,
      calc(-1*var(--w)) 0 #005F9C,
      calc(-2*var(--w)) 0 #005F9C,
      calc(-3*var(--w)) 0 #005F9C,
      calc(-4*var(--w)) 0 #005F9C,
      calc(-5*var(--w)) 0 #005F9C,
      calc(-6*var(--w)) 0 #005F9C,
      calc(-7*var(--w)) 0 #005F9C,
      calc(-8*var(--w)) 0 #005F9C,
      calc(-9*var(--w)) 0 #005F9C,
      calc(-10*var(--w)) 0 #3392D7,
      calc(-11*var(--w)) -10px #E1E8ED,
      calc(-12*var(--w)) 0 #005F9C;
  }
  45% {
    text-shadow:
      calc(0*var(--w)) 0 #005F9C,
      calc(-1*var(--w)) 0 #005F9C,
      calc(-2*var(--w)) 0 #005F9C,
      calc(-3*var(--w)) 0 #005F9C,
      calc(-4*var(--w)) 0 #005F9C,
      calc(-5*var(--w)) 0 #005F9C,
      calc(-6*var(--w)) 0 #005F9C,
      calc(-7*var(--w)) 0 #005F9C,
      calc(-8*var(--w)) 0 #005F9C,
      calc(-9*var(--w)) 0 #005F9C,
      calc(-10*var(--w)) 0 #3392D7,
      calc(-11*var(--w)) 0 #E1E8ED,
      calc(-12*var(--w)) -10px #005F9C;
  }
  60% {
    text-shadow:
      calc(0*var(--w)) 0 #005F9C,
      calc(-1*var(--w)) 0 #005F9C,
      calc(-2*var(--w)) 0 #005F9C,
      calc(-3*var(--w)) 0 #005F9C,
      calc(-4*var(--w)) 0 #005F9C,
      calc(-5*var(--w)) 0 #005F9C,
      calc(-6*var(--w)) 0 #005F9C,
      calc(-7*var(--w)) 0 #005F9C,
      calc(-8*var(--w)) 0 #005F9C,
      calc(-9*var(--w)) 0 #005F9C,
      calc(-10*var(--w)) 0 #005F9C,
      calc(-11*var(--w)) 0 #005F9C,
      calc(-12*var(--w)) 0 #005F9C;
  }
}


.dropdown-container {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    margin-top: 10px;
}

.dropdown-container select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    /* margin-right: 10px; */
}

.dropdown-container button {
    padding: 10px 15px;
    font-size: 16px;
    background-color: #005F9C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-container button:hover {
    background-color: #2980b9;
}

.dropdown-container {
    display: flex;
    align-items: center; /* Vertically center the items */
    margin-top: 10px;
}

.dropdown-container select {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    /* margin-right: 10px; */
    height: 44px; /* Ensure consistent height with the button */
}

.dropdown-container button {
    max-width: 14%;
    margin-top: -20px;
    padding: 10px;
    font-size: 16px;
    background-color: #005F9C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px; /* Match the height of the select box */
}

.dropdown-container button:hover {
    background-color: #2980b9;
}

/* Apply the width change to the parent container */
.container {
    width: 80%; /* Make the container 80% of the screen width */
    max-width: 1200px; /* Optional: set a maximum width */
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Add padding around the container */
}

/* Make sure the search-container takes up full width within the parent container */
.search-container {
    width: 100%; /* Full width of the parent container */
    padding: 20px; /* Add padding around the container */
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 100px -36px;
}



.search-bar button {
    height: 46.5px;
    width: 24%;
}



.name-item {
    /* display: flex; /*Use flexbox to align items */
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    align-items: center; /* Vertically center content */
    padding: 10px;
    border-radius: 5px; /* Optional: Rounded corners for better UI */
}

.name-item span{
    padding: 5px;
}

.name-item div {
    flex: 1; /* Make the text take up the available space */
}

.name-item button {
    max-width: 15%;
    font-size: 12px; /* Make the buttons smaller */
    margin-left: 10px; /* Add space between the two buttons */
    cursor: pointer; /* Show a pointer cursor on hover */
}

.button-container {
    display: flex; /* Align buttons horizontally */
    justify-content: flex-end; /* Align buttons to the right */
}

#priceChartContainer {
    margin: 20px 0;
}

.year-range-filter{
    display: flex;
    justify-content: end;
    align-items: baseline;
}

.year-range-filter label{
    padding: 5px;
}

.year-range-filter button{
    max-width: 100px;
    margin-left: 10px;
}

.hide{
    display: none;
}

.cost-analysis-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-info-container button{
    width: 20%;
    margin-left: 5px;
}

/* Smooth floating particles */
@keyframes float {
    0% {
      transform: translate(0px, 0px);
      opacity: 0.8;
    }
    25% {
      transform: translate(20px, -15px);
      opacity: 0.6;
    }
    50% {
      transform: translate(-25px, 30px);
      opacity: 0.4;
    }
    75% {
      transform: translate(15px, -20px);
      opacity: 0.7;
    }
    100% {
      transform: translate(0px, 0px);
      opacity: 0.8;
    }
  }
  
  .particle {
    position: absolute;
    /* background-color: rgba(255, 255, 255, 0.15); /* Light particles */
     background-color: #ffffff; 
    border-radius: 50%;
    animation: float infinite ease-in-out;
  }
  
  /* Different particle sizes, durations, and initial positions */
  .particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 15%;
    animation-duration: 12s;
  }
  
  .particle:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 35%;
    left: 70%;
    animation-duration: 9s;
  }
  
  .particle:nth-child(3) {
    width: 5px;
    height: 5px;
    top: 60%;
    left: 40%;
    animation-duration: 7s;
  }
  
  .particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 80%;
    left: 30%;
    animation-duration: 10s;
  }
  
  .particle:nth-child(5) {
    width: 7px;
    height: 7px;
    top: 50%;
    left: 80%;
    animation-duration: 11s;
  }
  
  /* Add more particles if needed */

  /* Version text styling */
.version {
    font-style: italic;
    font-family: 'Arial', sans-serif; /* Fallback fonts if custom fonts are unavailable */
    font-weight: 300;
    color: #ffc41e; /* A subtle accent color for the version text */
    font-size: 0.9em; /* Slightly smaller size to differentiate from the title */
    padding-left: 5px; /* Space between the title and version text */
    opacity: 0.8; /* Adds a soft look */
}



#searchInput:focus {
    border-color: #005F9C;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    outline: none;
}


/* Style the search button */
button {
    width: 100%;
    padding: 12px;
    background-color: #005F9C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}


.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spreads the NAICS/title and buttons apart */
}

.button-container {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
}

.cost-analysis-button, .price-analysis-button {
    margin-left: 10px; /* Adds spacing between buttons */
}

.description-class{
 
    margin-top: 20px;
    max-width: 60%;
    padding: 10px;
    font-size: 14px;
}

.button-container {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 10px; /* Add some space between buttons */
}

#priceChartContainerTable{
   
   display: none;
}

.main-container{
    display: flex;
}

.price-analysis{
    padding-right: 30px;
    padding-left: 10px;
    border: 1px solid #dddddd;

    background: #eeeeee63;
}

.cost-analysis{
    padding-left: 30px;

    border: 1px solid #dddddd;
    padding-right: 10px;

    background: #6868c11a;
}

.ca-label{
    text-align: center;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px !important; /* Increased width for better grabbing */
    height: 14px !important; /* For horizontal scrollbars */
}
  
::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light gray track */
    border-radius: 0; /* Removed border radius for cleaner look */
    border: 4px solid transparent; /* Creates padding effect */
    background-clip: padding-box;
}
  
::-webkit-scrollbar-thumb {
    background-color: #999999; /* Darker shade for better visibility */
    border-radius: 8px;
    border: 4px solid transparent; /* Creates padding effect */
    background-clip: padding-box;
    min-height: 50px; /* Ensures minimum grabbable area */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #005F9C; /* Brand color on hover */
    cursor: pointer;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: auto !important; /* Changed from thin to auto for wider scrollbar */
    scrollbar-color: #999999 #f1f1f1;
}

/* Corner where scrollbars meet */
::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* For Firefox hover effect */
*:hover {
    scrollbar-color: #005F9C #f1f1f1;
}

/* Hide all tab content by default */
.tab-content {
    display: none;
    padding: 16px;
    border-top: none;
}

/* Style the tab buttons */
.tab-button {
    width: 15%;
    color: #005F9C;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}

/* Active tab button */
.tab-button.active {
    background-color: #fdfdfd;
    color: #005F9C;
    border-left: 2px solid #dddddd;
    border-top: 2px solid #dddddd;
    border-right: 2px solid #dddddd;
}

/* Show the active tab */
.tab-content.active {
    display: block;
}

.tab-container{
    text-align: left;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-info-container h3{
    /* text-align: center; */
}

/* Add this to your CSS file or within a <style> tag */
.tab-button.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.highlighted-row{
    font-style: italic;
    /*color: #005F9C; */
}

.highlighted-row td{
    padding-left: 20px !important;
}


.highlighted-row2 td{
    padding-left: 30px !important;
}

/* Manufacturing Overhead ICP/Should Cost sub-lines (CSV breakdown) */
#icpTable tr.moh-breakdown-icp-row td {
    font-style: italic;
}
#scTable tr.moh-breakdown-sc-row td,
#shouldCostTable tr.moh-breakdown-sc-row td {
    font-style: italic;
}

/* Wholesale (NAICS 42) — G&A sub-lines under Total GSA */
#icpTable tr.icp-wholesale-gsa-sub-row td {
    font-style: italic;
    font-size: 13px;
}
#icpTable tr.icp-wholesale-gsa-sub-row td:first-child {
    padding-left: 35px !important;
}
#icpTable tr.icp-wholesale-gsa-sub-row td:nth-child(2) {
    padding-left: 35px !important;
    font-size: 13px !important;
}
#icpTable tr.icp-service-soh-sub-row td {
    font-style: italic;
    font-size: 13px;
}
#icpTable tr.icp-service-soh-sub-row td:first-child,
#icpTable tr.icp-service-soh-sub-row td:nth-child(2) {
    padding-left: 35px !important;
}
#icpTable tr.icp-wholesale-purchases-row td {
    font-style: normal !important;
}
#icpTable tr.icp-wholesale-purchases-row td:first-child {
    padding-left: 8px !important;
}
#icpTable tr.icp-wholesale-purchases-row td:nth-child(2) {
    padding-left: 8px !important;
}

/* .bomContainer{
    display: none;
}

.dropdown-container{
    display: none;
}

.types-header{
    display : none;
} */


.logout-btn{
    width: 105px;
    margin-right:2px;
}

.header{
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

h1{
    text-align: center;
}

.side-menu{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}


  /* Floating Feedback Button */
  .feedback-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #d4b872;
    color: white;
    width: 38px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: rgba(0, 0, 0, 0.1) -4px -12px 25px 0px;
    border-radius: 2px 2px 0px 0px;
}

.feedback-btn div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feedback-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.feedback-btn span {
    font-family: Inter, Helvetica, Arial, sans-serif;
    font-size: 17px;
    transform: rotate(-90deg);
    white-space: nowrap;
    line-height: 1;
}

/* Feedback Form Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 43, 55, 0.3);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* Modal and form styling */
.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    width: 350px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: left;
}

.form-group select,
.form-group textarea,
.form-group input[type="email"] {
    width: 100% !important;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group textarea {
    resize: none;
}

.form-group input[type="submit"] {
    background-color: #d4b872;
    color: white;
    cursor: pointer;
    border: none;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    margin-top: 15px;
}

.thank-you-message {
    display: none;
    font-size: 16px;
    color: green;
    text-align: center;
    margin-top: 20px;
}

/* Close button styling */
.modal-content .close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    .modal-content {
        width: 90%;
        padding: 15px 20px;
    }
}

#feedbackOptiont{
    width: 100% !important;
}

#priceChart{

    background: white;

}   

/* Styling for the toggle container */
.toggle-container {
    display: inline-flex; /* Ensures the label and toggle are aligned horizontally */
    align-items: center; /* Vertically aligns the elements */
    margin-top: 10px; /* Adds some space above the container to avoid overlap */
    margin-left: 0px; /* Adjust margin to align properly with the title */
    float: inline-end;
}

/* Ensure the label text and toggle are aligned */
.toggle-container span {
    font-size: 14px; /* Adjust text size */
    font-weight: 500; /* Slightly bold */
    white-space: nowrap; /* Prevents the label from wrapping to the next line */
}

/* Existing styles for the toggle button */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    background-color: #005F9C;
    border-radius: 20px;
    width: 40px;
    height: 20px;
    transition: background-color 0.3s;
    display: inline-block;
}

.toggle-label:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-input:checked + .toggle-label {
    background-color: #005F9C;
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(20px);
}

/* Accordion Row Styling */
.accordion-row {
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Padding and alignment for accordion content */
.accordion-row td {
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Strategic Options Header */
.accordion-row strong {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Styling for unordered list */
.accordion-row ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
}

/* List item styling for Strategic Options */
.accordion-row ul li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #ddd;
    background-color: #f7f9fc;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* List item hover effect */
.accordion-row ul li:hover {
    /*background-color: #eaf4ff;
    border-color: #005F9C;*/
}

/* Styling for the title in each list item */
.accordion-row ul li strong {
    color: #2c3e50;
    font-size: 14px;
    flex: 0 0 250px; /* Fixed width for titles */
}

/* Styling for the description in each list item */
.accordion-row ul li span {
    font-size: 14px;
    color: #555;
    flex: 1; /* Take remaining space */
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .accordion-row ul li {
        flex-direction: column;
        gap: 5px;
    }

    .accordion-row ul li strong {
        font-size: 14px;
        text-align: left; /* Align titles to the left for smaller screens */
    }

    .accordion-row ul li span {
        font-size: 12px;
    }
}

/* General Table Styling */
tbody tr {
    border-bottom: 1px solid #ccc; /* Add border between rows */
}

/* Styling for 'blue-text clickable' cells in columns 2, 3, and 4 */
tbody td.blue-text.clickable {
    color: #3392d7;
    padding: 8px; /* Consistent padding */
    cursor: pointer; /* Pointer cursor for interactivity */
    border-radius: 4px; /* Slightly rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

/* Hover Effect for 'blue-text clickable' cells */
tbody td.blue-text.clickable:hover {
    background-color: #e7f0fe;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Accordion Row Styling */
tbody tr.accordion-row {
    display: none; /* Default state hidden */
    background-color: #f9f9f9; /* Light gray background for accordion rows */
}

/* Accordion Content Styling */
tbody td#accordion-content-0,
tbody td#accordion-content-1,
tbody td#accordion-content-2 {
    color: #333; /* Standard text color */
    font-size: 14px; /* Adjust font size */
    padding: 12px; /* Add padding for readability */
    border: 1px solid #ccc; /* Border for accordion content */
    background-color: #ffffff; /* White background */
}

/* Make Strategic Options List Look Like a Table */
tbody td#accordion-content-0 ul,
tbody td#accordion-content-1 ul,
tbody td#accordion-content-2 ul {
    list-style: none; /* Remove default bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

tbody td#accordion-content-0 ul li,
tbody td#accordion-content-1 ul li,
tbody td#accordion-content-2 ul li {
    display: flex; /* Use flexbox for alignment */
    
}


tbody td#accordion-content-0 ul li strong,
tbody td#accordion-content-1 ul li strong,
tbody td#accordion-content-2 ul li strong {
   /*  color: #005F9C; Highlight titles in blue */
}

/* Responsive Design */
@media (max-width: 768px) {
    tbody td.blue-text.clickable {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 6px; /* Adjust padding */
    }

    tbody td#accordion-content-0,
    tbody td#accordion-content-1,
    tbody td#accordion-content-2 {
        font-size: 12px; /* Adjust accordion content font size */
    }
}
.clicked-cell {
    background-color: #e7f0fe !important;
}
.accloader {
    text-align: center;
    font-size: 14px;
    color: #005F9C;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.accloader:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #005F9C;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    margin-top: 2px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.accordion-row td p {
    margin-left: 2px;
    font-size: 15px;
    color: #333333;
    font-weight: bold;
}

.citation-popup {
    width: 350px; /* Fixed width for the popup */
    max-width: 350px;
    word-wrap: break-word;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: visible; /* Allow the popup to grow with content */
}

.citation-popup table {
    width: 100%; /* Match table width to the popup width */
    border-collapse: collapse;
    margin-top: 10px;
}

.citation-popup th {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

.citation-popup td {
    padding: 8px;
    word-break: break-word; /* Ensure long URLs break properly */
}

.citation-popup a {
    color: #007BFF;
    text-decoration: none;
}

.citation-popup a:hover {
    text-decoration: underline;
}

.citation-popup button {
    text-align: right;
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: transparent;
    color: #333;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.citation-popup button:hover {
    color: #000;
}

.info-icon{
    float:right;
}



#bomContainer {
    display: flex;
    flex-direction: column;
}

.hamburger-menu {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

/* Hamburger Button Styles */
.hamburger-btn {
    background-color: white; /* Set the button color to white */
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 100px; /* Optional: Add some shadow */
}

.hamburger-btn i {
    color: #005F9C; /* Set the icon color (optional, can match text color) */
}

/* Popup Menu Styles */
.menu-popup {
    position: absolute;
    top: 50px; /* Adjust as per your layout */
    left: 0;
    background-color: white; /* Keep the popup background white */
    border-radius: 5px;
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 100px -36px;
    padding: 10px;
    z-index: 1000;
    display: none; /* Hidden by default */
}

.menu-popup.show {
    display: block; /* Show the popup when toggled */
}

.menu-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-popup li {
    margin: 8px 0;
}

.menu-popup button {
    background: none;
    border: none;
    color: #005F9C; /* Set the text color to #005F9C */
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    padding: 5px 0;
    width: 100%;
}

.menu-popup button:hover {
    text-decoration: underline; /* Optional: Add underline on hover */
    background-color: #f0f0f0; /* Optional: Add hover effect background */
}

/* Save Button Styles */
.save-btn {
    max-width: 50px;
    position: relative; /* For positioning the tooltip */
    /*margin-left: auto; /* Push it to the right */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #005F9C; /* Save icon color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn i {
    pointer-events: none; /* Prevent hover effects on the icon */
}

/* Tooltip Styles */
.save-btn .tooltip {
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Fully transparent */
    position: absolute;
    bottom: -30px; /* Position below the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* Tooltip background */
    color: #fff; /* Tooltip text color */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Tooltip Visibility on Hover */
.save-btn:hover .tooltip {
    visibility: visible;
    opacity: 1; /* Fully visible */
}

.modal-save-analysis {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content-save-analysis {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 70%;
    z-index: 99;
}

/* Form Group */
.form-group-save-analysis {
    margin-bottom: 15px;
}

.modal-actions-save-analysis{
    text-align: end;
}

/* Modal Actions */
.modal-actions-save-analysis button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 120px;
}

.modal-actions-save-analysis button:first-child {
    background-color: #ccc;
}

.modal-actions-save-analysis button:last-child {
    background-color: #005F9C;
    color: white;
}

/* Save Button */
.save-btn-unique {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #005F9C;
}


/* .bomContainer h3:nth-of-type(-n+3),
.bomContainer table:nth-of-type(-n+3) {
    display: none;
} */

.container {
    padding: 20px;
}

.analysis-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.analysis-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.analysis-name {
    font-weight: bold;
    color: #005F9C;
    float: left;
}

.analysis-date {
    font-size: 12px;
    color: #666;
}

.toggle-button {
    background: none;
    border: none;
    cursor: pointer;
}

.analysis-content {
    background: white !important;
    padding: 10px;
    display: none;
}

.loader {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.menu-item {
    display: block;
    color: #005F9C; /* Text color */
    text-decoration: none; /* Remove underline */
    text-align: left;
    font-size: 16px;
    padding: 5px 0;
}

.menu-item:hover {
    background-color: #f0f0f0; /* Add hover effect */
    color: #2980b9; /* Slightly darker text color on hover */
    text-decoration: underline; /* Add underline */
}

.back-button {
    max-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease;
}

.back-button i {
    margin-right: 8px; /* Space between arrow and text if needed */
}

.back-button:hover {
    background: transparent;
    color: #005F9C;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.analysis-table th, .analysis-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.analysis-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.analysis-section h3 {
    margin-top: 20px;
    font-size: 18px;
}

.price-chart {
    margin-top: 20px;
    height: 300px;
}

.cost-table-container {
    overflow-x: auto;
    margin: 10px 0;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.cost-table th, .cost-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.cost-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
}

.cost-table td {
    background-color: #fff;
}

.cost-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cost-table td:nth-child(2),
.cost-table td:nth-child(3),
.cost-table td:nth-child(4),
.cost-table td:nth-child(5) {
    text-align: center;
}

.analysis-section h3 {
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.price-chart {
    margin-top: 20px;
    height: 300px;
}

#inputWrapper{
    background: white;
    padding: 15px;
}

#dynamicTable th, #dynamicTable td {
    border: 1px solid #ccc;
    text-align: left;
}

#dynamicTable input {
    outline: none;
}

#static-tooltip{
    display:none !important;
}

#observations {
    width: 98%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    border: none;
}

#observations h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#observations > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
}

#observations > div:nth-child(even) {
    background-color: #f4f4f4;
}

#observations label {
    font-size: 1rem;
    color: #555;
    flex: 1;
    text-align: left;
}

#observations div div {
    font-size: 1rem;
    flex: 1;
    text-align: right;
}

.recent-searches-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.recent-search-button {
    
    color: #005F9C;
    width: auto !important;
    padding: 5px 10px;
    background-color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.recent-search-button:hover {
    background-color: #2980b9;
    color: white;
}

.delete-icon {
    margin-right: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.delete-icon:hover {
    color: #ff0000;
}

.recent-search-item {
    border: 1px solid #005F9C;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-container select {
    max-width: 540px;
}

.sc-title {
    position: relative;
    font-size: 18px; /* Adjust font size as needed */
    color: #333;
}


.sc-title::before:hover {
    content: "This feature is in beta. Feedback is welcome!"; /* Show message on hover */
    background-color: #0056b3; /* Darker blue on hover */
    padding: 4px 12px; /* Adjust padding for longer text */
    border-radius: 8px; /* Slightly less rounded for the tooltip */
    font-size: 12px; /* Smaller font for the tooltip */
    white-space: nowrap; /* Prevent text from wrapping */
    max-width: calc(100vw - 16px); /* Ensure it doesn't exceed the viewport */
    left: 0;
    right: auto; /* Dynamically adjust position */
    transition: all 0.3s ease; /* Smooth transition effect */
}

/* Tooltip container */
.sc-title:hover .beta-tooltip {
    display: block;
}

.beta-tooltip {
    display: none; /* Initially hidden */
    position: absolute;
    top: 50%;
    left: 54%; /* Position the tooltip to the right of the bubble */
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: #333;
    width: 300px; /* Fixed width for tooltip */
    z-index: 1000;
}

/* Tooltip Arrow */
.beta-tooltip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px; /* Position the arrow to point to the bubble */
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #ddd transparent transparent; /* Arrow border */
}

.beta-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -8px; /* Position the inner arrow to align with the border */
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff transparent transparent; /* Arrow fill */
}


#observations h4{
    text-align: left;
    padding-left: 15px;

}



/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 40px -36px;
    padding-top: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* Ensure main content does not overlap */
body {
    margin-left: 250px; /* Shift main content right */
}

/* Sidebar Title */
.sidebar-title {
    text-align: center;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    border-bottom: 1px solid #ddd;
}

.sidebar-title h1 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.sidebar-subtitle {
    font-size: 12px;
    color: #757575;
    margin-top: 5px;
}

/* Sidebar Header (User Info) */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: #005F9C;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Menu Items */
.sidebar-menu li {
    height: auto; /* Allow items to expand naturally */
    display: flex;
    flex-direction: column; /* Ensures submenu stays inside */
    align-items: stretch;
    padding: 10px;
}



/* Font Awesome Icon Styling */
.sidebar-menu li i {
    margin-right: 10px;
    color: #005F9C;
    font-size: 18px;
}

/* 🔥 Fix: Hover Effect Stays Inside Sidebar */
.sidebar-menu li:hover {
    background: rgba(0, 95, 156, 0.1);
}

.sidebar-menu .active {
    background: rgba(0, 95, 156, 0.1);
}

/* 🔥 FIX: Sidebar Submenu Opens Below */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0; /* Hides submenu by default */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

/* Show the submenu when toggled */
.sidebar-submenu.show {
    max-height: 400px; /* Expandable height */
    opacity: 1;
    visibility: visible;
}

/* Sidebar Submenu Items */
.sidebar-submenu li {
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 20px; /* Indent submenu items */
    
}

/* Sidebar Submenu Links */
.sidebar-submenu li a {
    font-size: 14px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Sidebar Submenu Icons */
.sidebar-submenu li i {
    margin-right: 8px;
    color: #005F9C;
}

.user-details{
    font-size: 12px;
}

.user-email {
    max-width: 140px; /* Adjust based on sidebar width */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Sidebar: Make it a flex container */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 40px -36px;
    padding-top: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;  /* Ensures proper stacking */
    justify-content: space-between; /* Pushes last section to the bottom */
}

/* Sidebar Menu: Takes up remaining space */
.sidebar-menu {
    flex-grow: 1; /* This makes sure the menu takes up available space */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Header (User Avatar & Email Section) */
.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: #005F9C;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

/* Ensure Email is Truncated */
.user-email {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Logout Button: Stick it at the bottom */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* Ensure logout button spans full width */
.sidebar-footer button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #015f9c;
    font-size: 16px;
    cursor: pointer;
}

.sidebar-footer button i {
    margin-right: 10px;
    color: #005F9C;
}

/* Hover Effect */
.sidebar-footer button:hover {
    background: rgba(0, 95, 156, 0.1);
}

/* Sidebar: Make it a flex container */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background: #ffffff;
    box-shadow: rgba(0, 95, 156, 0.8) 10px 10px 40px -36px;
    padding-top: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;  /* Ensures proper stacking */
    justify-content: space-between; /* Pushes last section to the bottom */
}

/* Sidebar Menu: Takes up remaining space */
.sidebar-menu {
    flex-grow: 1; /* This makes sure the menu takes up available space */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Header (User Avatar & Email Section) */
.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    background: #005F9C;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
}

/* Ensure Email is Truncated */
.user-email {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Logout Button: Stick it at the bottom */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* Ensure logout button spans full width */
.sidebar-footer button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #015f9c;
    font-size: 16px;
    cursor: pointer;
}

.sidebar-footer button i {
    margin-right: 10px;
    color: #005F9C;
}

/* Hover Effect */
.sidebar-footer button:hover {
    background: rgba(0, 95, 156, 0.1);
}

.result-container td{
    text-align: start !important;
}

.bold-row td {
    font-weight: bold;
    background-color: rgb(231, 240, 254);
}

.padded-row td{
    padding-left: 40px !important;
    font-style: italic;
}



.delete-button{
    max-width: 100px;
    background: rgb(220, 53, 69);
}

.delete-button:hover {
    background-color: #c82333;
}

.tab-button{
    text-align: start;
}

/* Style for info icon */
.info-icon {
    font-size: 16px;
    color: #005F9C;
    transition: color 0.2s;
}

.info-icon:hover {
    color: #003F7C;
}

/* Modal Background */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.video-modal-content {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

/* Vimeo iframe */
.video-modal iframe {
    width: 100%;
    height: 400px;
    border-radius: 5px;
}

.analysis-meta{
    float:left;
}

#directMaterialsTable{
    margin-bottom: 0px;
}

.bomContainer h3{
    display: block;
}

#dmWrapper{
    margin-bottom: 0px;
}

#sc-title{
    margin-top: 15px;
}

.custom-tooltip-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .custom-tooltip-icon {
    margin-left: 10px;
    cursor: help;
    color: #111111;
  }
  
  .custom-tooltip-box {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    text-align: center !important;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 12px !important;
    width: 300px;
    white-space: normal;
    text-align: left !important;
  }

  .custom-tooltip-inner-title{
    font-weight: bold;
    font-size: 14px;
    justify-self: left;
    margin-bottom: 10px;
    text-align: left !important;
  }


  
  .custom-tooltip-wrapper:hover .custom-tooltip-box {
    display: block;
  }
  
  .custom-beta-button{
    background-color: #005F9C;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    cursor: help;
  }

    .custom-tooltip-icon1 {
    color: #333333;
    font-size: 18px;
    cursor: help;
    margin-left: 6px;
    }

    .custom-tooltip-box1 {
    position: absolute;
    background-color: white;
    color: #333;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 280px;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
    pointer-events: none;
    }

.custom-tooltip-icon2 {
    color: #333333;
    font-size: 18px;
    cursor: help;
    margin-left: 6px;
}

.custom-tooltip-box2 {
    position: absolute;
    background-color: white;
    color: #333;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 280px;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
    pointer-events: none;
}

#addPriceRecord{
    background-color: #005F9C !important;

}

#deleteRecord{
    max-width: 54px;
}

.pulsating-button {
    text-align: center !important;
    color: white !important;
    background-color: #005F9C !important;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 0 rgba(0, 95, 156, 0.4);
    transition: box-shadow 0.3s ease-in-out;
    width: 100%; /* optional: makes button span full width of sidebar-footer */
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 95, 156, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 95, 156, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 95, 156, 0);
    }
}

#childProductSelect{
    padding: 8px 12px;
    min-width: 200px;
    max-width: 600px;
    font-size: 16px;
    border-radius: 4px;
    height: 44px;
    border: 1px solid #ccc;
    box-sizing: border-box;   
}

#startMonth, #startYear, #endMonth, #endYear, #bomVersionSelector {
    height: 45px;
    padding: 5px;
    margin: 5px;
    font-size: 16px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    border-image: initial;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
  }
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #005f9c;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    height: 20px;
  }
  .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  input:checked + .slider {
    background-color: #005f9c;
  }
  input:checked + .slider:before {
    transform: translateX(20px);
  }

  #ppiToggle{
    padding: 8px 12px;
    min-width: 600px !important;
    font-size: 16px;
    border-radius: 4px;
    margin-right: 10px;
    height: 44px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  #childProductSelect{
    width: 60%;
    flex: 1 1 auto;
    min-width: 0;
  }

  #currency{
    padding: 8px 12px;
    min-width: 600px !important;
    font-size: 16px;
    border-radius: 4px;
    margin-right: 10px;
    height: 44px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  #wrapperDiv{
    margin-top: 10px;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    display: flex;
  }

  #wrapperDiv label{
    width: 16.5%;
    flex: 0 0 16.5%;
  }

  #selectButton{
    max-width: 100px;
  }

  .save-button-container{
    border-left: 2px solid #dddddd;
    border-top: 2px solid #dddddd;
    border-right: 2px solid #dddddd;
  }

  #priceAnalysis{
    border-left: 2px solid rgb(221, 221, 221);
    border-right: 2px solid rgb(221, 221, 221);
    border-bottom: 2px solid rgb(221, 221, 221);
  }

  #costAnalysis{
    border-left: 2px solid rgb(221, 221, 221);
    border-right: 2px solid rgb(221, 221, 221);
    border-bottom: 2px solid rgb(221, 221, 221);
  }

  #breakthroughSavings{
    position: relative;
    min-height: 700px;
    border-left: 2px solid rgb(221, 221, 221);
    border-right: 2px solid rgb(221, 221, 221);
    border-bottom: 2px solid rgb(221, 221, 221);
  }

  #resultContainer table:first-of-type {
    display: none;
  }

  #industryLabel{
    border: 1px solid rgb(221, 221, 221);
    padding: 15px;
    width: 14.5%;
    text-align: start;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  #industryNameDisplay{
    border: 1px solid rgb(221, 221, 221);
    padding: 15px;
    width: 85.5%;
    text-align: start;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .industry-name-display-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .industry-change-dropdown {
    position: relative;
    flex-shrink: 0;
  }

  .industry-change-trigger {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 12px;
    font-size: 14px;
    color: #005F9C;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
  }

  .industry-change-trigger:hover {
    background: #f5f9fc;
  }

  .industry-change-chevron {
    font-size: 12px;
    transition: transform 0.15s ease;
  }

  .industry-change-trigger.is-open .industry-change-chevron {
    transform: rotate(180deg);
  }

  .industry-change-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 320px;
    max-width: min(480px, 92vw);
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 2000;
  }

  .industry-change-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgb(238, 238, 238);
  }

  .industry-change-option:last-child {
    border-bottom: none;
  }

  .industry-change-option:hover {
    background: #f5f9fc;
  }

  .industry-change-option-label {
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
  }

  .industry-change-info-wrap {
    flex-shrink: 0;
  }

  .industry-change-info-icon {
    color: #005F9C;
    cursor: help;
    font-size: 15px;
  }

  #industryInfoContainer{
    align-items: stretch !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  .year-range-filter{
    margin-top: 35px;
  }

  .unitRateChangeCell,
  .price-impact-cell,
  #unitRateChangeHeader,
  #priceImpactHeader {
      display: none;
  }

  #impactPeriodSelect{
    height: 45px;
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    border-image: initial;
    margin: 15px;
  }

#scTable tbody tr:last-child td.sc-rate-change-cell,
#scTable tbody tr:last-child td.sc-price-impact-cell {
    background-color: rgb(231, 240, 254); 
    font-weight: bold;
}

.sc-rate-change-header{
    width: 65px;
}

.sc-price-impact-header{
    width: 120px;

}

.save-button-container{
    display: flex;
    justify-content: end;
    padding-top: 5px;
}

.menu-text{
    font-weight: 100;
}

#dimensionsdiv img{
    margin-left: 20px;
}

#addBomButton{
    width: 70px;
}

@keyframes blink-green {
  0% { background-color: #d4edda; }   /* light green */
  100% { background-color: white; }
}

.blink-success {
  animation: blink-green 0.8s ease-in-out;
}

.hide{
    display:none;
}

#welcomeContainer, #searchContainer {
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none;
}

#welcomeContainer.visible, #searchContainer.visible {
    display: block;
    opacity: 1;
}

#wizardOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9999; /* must be less than .wizard-popup */
    display: none;
}

/* Force everything underneath to be non-interactive */
#wizardOverlay.active ~ *:not(#welcomeContainer) {
    pointer-events: none !important;
    user-select: none;
}
#welcomeContainer {
    z-index: 9999;
    position: relative;
    pointer-events: auto !important;
}

.wizard-highlight {
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.wizard-popup {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2), 0 8px 20px rgba(0, 123, 255, 0.2);
    font-size: 16px;
    color: #333;
    z-index: 99999; /* must be higher than overlay */
    width: 270px;
}


.wizard-popup .step-label {
    font-weight: bold;
    color: #005F9C;
    margin-bottom: 8px;
    display: block;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(0, 123, 255, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    transform: scale(1);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
  transition: transform 0.2s;
  z-index: 10001;
  position: relative;
}

#accept_all{
    couror: pointer;
    pointer-events: all;
}

#viewDiagram{
    couror: pointer;
    pointer-events: all;   
}

#diagramModal{
 z-index: 100000 !important;

}

#diagramModal span{
 pointer-events: all;   
}

/* Subscription Canceled Modal Styles */
.subscription-canceled-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 10002 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: blur(5px) !important;
}

.subscription-canceled-modal > div {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.types-header{
    margin-top: 5%;
}

/* Make directMaterialCostEstimate wider and thicker */
#directMaterialCostEstimate {
    padding: 12px 16px;
    min-width: 300px;
    max-width: 800px;
    font-size: 18px;
    border-radius: 6px;
    height: 50px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

/* Hide specified elements */
#modelDimensions {
    display: none !important;
}

#dmWrapper {
    display: none !important;
}

#infoIcon2 {
    display: none !important;
}

#monetizedBomTable{
    display: none;
}

#bomTable{
    display: none;
}

.hide{
    display: none;
}

/* Sharing Modal Styles */
.sharing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sharing-modal-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.sharing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sharing-modal-header h3 {
    margin: 0;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #333;
}

.sharing-modal-body {
    margin-bottom: 20px;
}

.company-selector {
    margin-bottom: 20px;
}

.company-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.company-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.sharing-actions {
    display: flex;
    gap: 10px;
}

.share-button {
    flex: 1;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.share-button:hover {
    background: #0056b3;
}

.shared-companies-list {
    max-height: 300px;
    overflow-y: auto;
}

.shared-company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
}

.company-info {
    flex: 1;
}

.company-info strong {
    display: block;
    margin-bottom: 4px;
}

.company-details {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

.shared-date {
    font-size: 12px;
    color: #999;
}

.unshare-button {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.unshare-button:hover {
    background: #c82333;
}

/* Sharing Options Modal */
.sharing-options {
    display: flex;
    gap: 10px;
}

.option-button {
    width: 50%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.option-button:hover {
    background: #004d80;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.option-button i {
    font-size: 18px;
    color: #007bff;
}

.sharing-options{
    display: flex;
    gap: 10px;
}

.option-button{
    width: 50%;
    background-color: #005F9C;
    color: #f8f9fa;
}

#versionTestDisplay{
    display: none;
}

/* Fix quantity container positioning to always appear above update button */
#quantityToModelContainer {
    order: -1 !important;
    margin-bottom: 10px !important;
}

/* Ensure the wrapper containing both elements uses flexbox column layout */
#quantityToModelContainer:parent {
   /*display: flex !important;
    flex-direction: column !important;*/
}

/* Alternative: Target the wrapper div that contains both elements */
/* div[style*="align-items: center"][style*="gap: 8px"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
} */

/* Ensure quantity container appears first */
div[style*="align-items: center"][style*="gap: 8px"] #quantityToModelContainer {
    order: -1 !important;
    margin-bottom: 10px !important;
}

/* Ensure update button appears second */
div[style*="align-items: center"][style*="gap: 8px"] #updateShouldCostBtn {
    order: 1 !important;
    margin-top: 0 !important;
}

/* Chart Source Styling */
.chart-source {
    color: #00609d;
    text-align: right;
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.9px;
    font-style: italic;
    position: relative;
    cursor: pointer;
}

/* Chart Source Popup */
.chart-source-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    white-space: nowrap;
    font-size: 13px;
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    min-width: 300px;
    text-align: left;
}

/* CAMS Source Popup - wider for textarea */
#camsSourcePopup {
    white-space: normal;
    min-width: 400px;
    max-width: 500px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chart-source-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.chart-source-popup::before {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 7px;
    border-style: solid;
    border-color: #ddd transparent transparent transparent;
    margin-top: -1px;
}

.chart-source-popup a {
    color: #00609d;
    text-decoration: none;
}

.chart-source-popup a:hover {
    text-decoration: underline;
}

#infoIcon{
    display: none;
}

.obs-hide {
    display: none !important;
}

#searchIntroSection{
    display: none;
}

/* Saved project app tabs (+ button) and Add New APP modal */
.project-tabs-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.project-tabs-bar .save-button-container {
    flex-shrink: 0;
}

.project-tabs-strip {
    display: flex;
    align-items: stretch;
    min-width: 0;
    flex: 1 1 0;
    background: #f1f1f1;
    border-radius: 6px 6px 0 0;
}

.project-tabs-list {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    /* Room for active-tab bottom corner fillets (::before / ::after) */
    padding: 0 14px;
    box-sizing: border-box;
}

.project-tabs-list::-webkit-scrollbar {
    height: 4px;
}

.project-tabs-list::-webkit-scrollbar-thumb {
    background: #c8c8c8;
    border-radius: 4px;
}

/* Override global `button { width: 100% }` for tab row controls */
.project-tabs-bar .tab-button,
.project-tabs-bar .tab-add-button {
    width: auto;
    max-width: none;
    margin: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    cursor: pointer;
}

.project-tabs-bar .tab-button {
    position: relative;
    z-index: 0;
    min-width: 120px;
    flex: 0 0 auto;
    padding: 10px 16px;
    background-color: transparent;
    color: #005F9C;
    border-radius: 10px 10px 0 0;
    border-top: 1px solid #d0d0d0;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    border-bottom: none;
    box-sizing: border-box;
}

/* Overlap tab borders so shared edges aren’t doubled */
.project-tabs-bar .tab-button:not(.hide) + .tab-button:not(.hide) {
    margin-left: -1px;
}

.project-tabs-bar .tab-button:hover:not(.active) {
    background-color: #e8e8e8;
}

/*
 * Active tab: raised with smooth bottom joins (true quarter-circles via radial-gradient, not stepped box-shadows).
 * Disc center sits on each bottom corner of the tab; only the outer quadrant is painted.
 */
.project-tabs-bar .tab-button.active {
    z-index: 2;
    background-color: #fdfdfd;
    color: #005F9C;
    border-color: #dddddd;
    border-bottom: 1px solid #fdfdfd;
    margin-bottom: -1px;
    border-radius: 14px 14px 0 0;
    overflow: visible;
}

.project-tabs-bar .tab-button.active::before,
.project-tabs-bar .tab-button.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 3;
    /* Tab fill stepped into the scoop (avoids hairline gap at the join) */
    box-shadow: 5px 5px 0 0 #fdfdfd;
    transform: translateZ(0);
}

/* Quarter disc outside bottom-left: fill + 1px arc border (smooth vector edge) */
.project-tabs-bar .tab-button.active::before {
    left: -20px;
    background: radial-gradient(
        circle 20px at 100% 100%,
        #f1f1f1 0,
        #f1f1f1 18px,
        #dddddd 18px,
        #dddddd 19px,
        transparent 19px
    );
}

/* Quarter disc outside bottom-right */
.project-tabs-bar .tab-button.active::after {
    right: -20px;
    box-shadow: -5px 5px 0 0 #fdfdfd;
    background: radial-gradient(
        circle 20px at 0% 100%,
        #f1f1f1 0,
        #f1f1f1 18px,
        #dddddd 18px,
        #dddddd 19px,
        transparent 19px
    );
}

/* (Border is baked into gradients above) */

.project-tabs-bar .tab-button:not(.active):not(.hide) + .tab-button:not(.hide) {
    box-shadow: none;
}

.project-tabs-bar .tab-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: sticky;
    right: 0;
    z-index: 2;
    box-sizing: border-box;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    padding: 0;
    background-color: #f1f1f1;
    color: #005F9C;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.project-tabs-bar .tab-add-button.hide {
    display: none !important;
}

.project-tabs-bar .tab-add-button:hover {
    background-color: rgba(0, 95, 156, 0.12);
    color: #00487a;
}

.project-tabs-bar .tab-add-button:focus-visible {
    outline: 2px solid #005F9C;
    outline-offset: -2px;
}

.add-project-app-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.add-project-app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
}

.add-project-app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 96vw);
    max-height: min(640px, 92vh);
    background: #fff;
    border-radius: 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 24px 48px -12px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.add-project-app-modal__header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e8ecf1;
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.add-project-app-modal__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-align: left;
}

.add-project-app-modal__subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #64748b;
    font-weight: 400;
    text-align: left;
    max-width: 42rem;
}

.add-project-app-modal__body {
    display: grid;
    grid-template-columns: minmax(240px, 36%) 1fr;
    min-height: 360px;
    flex: 1 1 auto;
    min-height: 0;
}

.add-project-app-modal__pick,
.add-project-app-modal__detail-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.add-project-app-modal__section-label {
    margin: 0;
    padding: 14px 20px 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    flex-shrink: 0;
}

.add-project-app-modal__catalog {
    flex: 1 1 auto;
    overflow-y: auto;
    background: #f8fafc;
    padding: 8px 14px 20px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    border-right: 1px solid #e8ecf1;
    scrollbar-width: thin;
}

.add-project-app-modal__catalog::-webkit-scrollbar {
    width: 6px;
}

.add-project-app-modal__catalog::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.add-project-app-tile {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 14px 10px 12px;
    text-align: center;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.add-project-app-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.add-project-app-tile__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #16a34a;
    font-size: 14px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

.add-project-app-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef5fb 0%, #e2eef9 100%);
    color: #005F9C;
    font-size: 1.375rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.add-project-app-tile.is-selected {
    border-color: #005F9C;
    background: #f0f7fc;
    box-shadow:
        0 0 0 1px #005F9C,
        0 6px 16px rgba(0, 95, 156, 0.12);
}

.add-project-app-tile.is-selected .add-project-app-tile__icon {
    background: #005F9C;
    color: #fff;
}

.add-project-app-tile__label {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.3;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.add-project-app-modal__detail-col .add-project-app-modal__section-label {
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    padding-bottom: 10px;
}

.add-project-app-modal__detail {
    flex: 1 1 auto;
    overflow-y: auto;
    background: #fff;
    padding: 16px 28px 28px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    scrollbar-width: thin;
}

.add-project-app-modal__detail::-webkit-scrollbar {
    width: 6px;
}

.add-project-app-modal__detail::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.add-project-app-detail__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.add-project-app-detail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #eef5fb 0%, #e2eef9 100%);
    color: #005F9C;
    font-size: 1.25rem;
    border: 1px solid #e2e8f0;
}

.add-project-app-detail__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
}

.add-project-app-detail__description {
    margin: 0 0 22px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
    flex: 1 1 auto;
}

.add-project-app-detail__install {
    align-self: flex-start;
    border: none;
    border-radius: 8px;
    background: #005F9C;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 11px 22px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 95, 156, 0.2);
}

.add-project-app-detail__install:hover {
    background: #004a7a;
    box-shadow: 0 4px 12px rgba(0, 95, 156, 0.25);
}

.add-project-app-detail__install:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.add-project-app-detail__installed {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Breakthrough Savings — inner stage tabs (scoped buttons override global `button { width:100% }`) */
.breakthrough-subtabs {
    background: #fff;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.breakthrough-subtabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.breakthrough-subtabs__btn {
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 8px 14px;
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.breakthrough-subtabs__btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.breakthrough-subtabs__btn.active {
    background: #005F9C;
    color: #fff;
    border-color: #005F9C;
    box-shadow: 0 2px 8px rgba(0, 95, 156, 0.2);
}

.breakthrough-subtabs__btn:focus-visible {
    outline: 2px solid #005F9C;
    outline-offset: 2px;
}

.breakthrough-subtabs__panels {
    flex: 1 1 auto;
    min-height: 200px;
    padding: 20px 16px 24px;
    background: #fff;
}

.breakthrough-subtabs__panel[hidden] {
    display: none !important;
}

/* Breakthrough — Summary stage */
.bs-summary-loading,
.bs-summary-empty {
    padding: 32px 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.bs-summary-loading__text,
.bs-summary-empty__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-summary-empty__text {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bs-summary-value-card {
    padding: 28px 32px 36px 48px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    background: #fff;
}

.bs-summary-value-card__title {
    margin: 0 0 8px;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: -0.01em;
}

.bs-summary-value-card__basis {
    margin: 0 0 24px;
    font-size: 0.875rem;
    color: #64748b;
}

.bs-summary-overview {
    margin-bottom: 36px;
}

.bs-summary-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.bs-summary-totals__item {
    flex: 1 1 200px;
    min-width: 0;
}

.bs-summary-totals__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bs-summary-totals__amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #005F9C;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.bs-summary-totals__item--realized .bs-summary-totals__amount {
    color: #059669;
}

.bs-summary-totals__pct {
    display: block;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.bs-summary-overview__pies {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
}

.bs-summary-overview__pie {
    flex: 1 1 280px;
    max-width: 420px;
}

.bs-summary-overview__pie-heading {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
}

.bs-summary-overview__pie-chart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 32px;
}

.bs-summary-overview__pie-wrap {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
}

.bs-summary-overview__pie-wrap canvas {
    display: block;
    width: 240px !important;
    height: 240px !important;
}

.bs-summary-overview__pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42%;
    pointer-events: none;
    text-align: center;
}

.bs-summary-overview__pie-pct {
    display: block;
    width: 100%;
    font-size: 1.625rem;
    font-weight: 700;
    color: #005F9C;
    line-height: 1.15;
}

.bs-summary-overview__pie-pct--realized {
    color: #059669;
}

.bs-summary-overview__pie-label {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.bs-summary-overview__pie-legend {
    flex: 1 1 200px;
    min-width: 200px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.bs-summary-overview__pie-legend li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    margin-bottom: 12px;
}

.bs-summary-overview__pie-legend li:last-child {
    margin-bottom: 0;
}

.bs-summary-overview__legend-label {
    min-width: 0;
    white-space: nowrap;
    color: #475569;
}

.bs-summary-overview__legend-value {
    justify-self: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #334155;
}

.bs-summary-overview__swatch {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.bs-summary-overview__swatch--identified {
    background: #005F9C;
}

.bs-summary-overview__swatch--realized {
    background: #059669;
}

.bs-summary-overview__swatch--total {
    background: #e2e8f0;
}

.bs-summary-strategies {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.bs-summary-strategies__heading {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
}

.bs-summary-strategies__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bs-summary-strategies__table th,
.bs-summary-strategies__table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.bs-summary-strategies__table th {
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.bs-summary-strategies__name {
    color: #334155;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
    min-width: 240px;
}

.bs-summary-strategies__pct {
    color: #334155;
    white-space: nowrap;
}

.bs-summary-strategies__amount {
    color: #334155;
    white-space: nowrap;
}

/* Breakthrough Savings — Eternal tab */
.bs-eternal-loading,
.bs-eternal-empty {
    padding: 28px 20px;
    text-align: center;
    color: #64748b;
}

.bs-eternal-loading__text,
.bs-eternal-empty__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-eternal-empty__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bs-eternal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bs-eternal-card__title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.bs-eternal-card__intro {
    margin: 0 0 18px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
}

.bs-eternal-table-wrap {
    overflow-x: auto;
}

.bs-eternal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bs-eternal__table th,
.bs-eternal__table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.bs-eternal__table th {
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    white-space: nowrap;
}

.bs-eternal__col-index {
    width: 40px;
    color: #64748b;
    white-space: nowrap;
}

.bs-eternal__col-name {
    color: #334155;
    min-width: 220px;
    line-height: 1.45;
    word-break: break-word;
}

.bs-eternal__col-status {
    white-space: nowrap;
}

.bs-eternal__col-actions,
.bs-eternal__col-amount {
    white-space: nowrap;
    color: #334155;
}

.bs-eternal__col-amount--realized {
    color: #059669;
    font-weight: 600;
}

.bs-eternal__na {
    color: #94a3b8;
}

.bs-eternal__status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.bs-summary-strategies__amount--realized {
    color: #059669;
    font-weight: 600;
}

.bs-summary-strategies__na {
    color: #94a3b8;
    font-weight: 500;
}

.bs-summary-chart {
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.bs-summary-chart__heading {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
}

.bs-summary-chart__layout {
    display: grid;
    grid-template-columns: minmax(240px, 44%) 1fr;
    gap: 0 16px;
    align-items: stretch;
}

.bs-summary-chart__labels {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 56px;
}

.bs-summary-chart__label-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    box-sizing: border-box;
}

.bs-summary-chart__label-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 500;
    color: #334155;
    word-break: break-word;
}

.bs-summary-chart__bars {
    min-width: 0;
}

.bs-summary-chart__canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 220px;
    overflow: visible;
}

.bs-summary-chart__canvas-wrap canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
}

/* Breakthrough — Agree stage */
.bs-agree__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.bs-agree__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bs-agree__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.bs-agree__input {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9375rem;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bs-agree__input:hover {
    border-color: #cbd5e1;
}

.bs-agree__input:focus {
    outline: none;
    border-color: #005F9C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 95, 156, 0.12);
}

.bs-agree__textarea {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9375rem;
    font-family: inherit;
    line-height: 1.45;
    color: #0f172a;
    box-sizing: border-box;
    resize: vertical;
    min-height: 5.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bs-agree__textarea:hover {
    border-color: #cbd5e1;
}

.bs-agree__textarea:focus {
    outline: none;
    border-color: #005F9C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 95, 156, 0.12);
}

.bs-goals-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

.bs-goals-wrap > .bs-agree__label {
    margin: 0;
}

.bs-goals-add-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #005F9C;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 95, 156, 0.25);
    transition: background 0.15s ease, transform 0.1s ease;
}

.bs-goals-add-btn:hover {
    background: #004a7a;
}

.bs-goals-add-btn:focus-visible {
    outline: 2px solid #005F9C;
    outline-offset: 2px;
}

.bs-goals__table {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.bs-goals__head {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr) 40px;
    gap: 0;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.bs-goals__body {
    display: flex;
    flex-direction: column;
}

.bs-goals__empty {
    margin: 0;
    padding: 20px 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.bs-goals__empty[hidden] {
    display: none;
}

.bs-goals-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.bs-goals-row:last-child {
    border-bottom: none;
}

.bs-goals-row__owner,
.bs-goals-row__goal {
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.875rem;
    color: #0f172a;
    box-sizing: border-box;
    min-width: 0;
}

.bs-goals-row__owner::placeholder,
.bs-goals-row__goal::placeholder {
    color: #94a3b8;
}

.bs-goals-row__owner:hover,
.bs-goals-row__goal:hover {
    border-color: #cbd5e1;
}

.bs-goals-row__owner:focus,
.bs-goals-row__goal:focus {
    outline: none;
    border-color: #005F9C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 95, 156, 0.1);
}

.bs-goals-row__remove {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.bs-goals-row__remove:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.bs-goals-row__remove:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

@media (max-width: 640px) {
    .bs-goals__head {
        display: none;
    }

    .bs-goals-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 12px;
    }

    .bs-goals-row__owner {
        grid-column: 1 / -1;
    }

    .bs-goals-row__goal {
        grid-column: 1;
    }

    .bs-goals-row__remove {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }
}

.bs-agree__status {
    margin: 16px 0 0;
    font-size: 0.8125rem;
    min-height: 1.25em;
}

/* Breakthrough — Identify (should cost tree) */
.bs-identify-units {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.bs-identify-units__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.bs-identify-units__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.bs-identify-empty {
    padding: 28px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.bs-identify-empty__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-identify-empty__text {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.bs-identify-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #005F9C;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bs-identify-empty__btn:hover {
    background: #004a7a;
}

.bs-identify-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.bs-identify-table__head,
.bs-identify-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 110px;
    gap: 12px;
    align-items: center;
}

.bs-identify-table--with-current .bs-identify-table__head,
.bs-identify-table--with-current .bs-identify-row {
    grid-template-columns: minmax(0, 1fr) 120px 120px 110px;
}

.bs-identify-table__head {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}

.bs-identify-table__head span:nth-child(n + 2),
.bs-identify-row__cost,
.bs-identify-row__current-cost,
.bs-identify-row__pct {
    text-align: right;
}

.bs-identify-table__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #f1f5f9;
}

.bs-identify-row {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    color: #0f172a;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bs-identify-row[draggable="true"] {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.bs-identify-row[draggable="true"]:active {
    cursor: grabbing;
}

.bs-identify-row:hover {
    border-color: #93c5fd;
}

.bs-identify-row.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.bs-identify-row.is-drag-over-child {
    box-shadow: inset 0 0 0 2px #005F9C;
    background: #eff6ff;
}

.bs-identify-row.is-drag-over-before {
    box-shadow: inset 0 3px 0 0 #005F9C;
}

.bs-identify-row.is-drag-over-after {
    box-shadow: inset 0 -3px 0 0 #005F9C;
}

.bs-identify-row--root.is-drag-over-child {
    background: #eff6ff;
}

.bs-identify-row--root {
    cursor: default;
    font-weight: 600;
}

.bs-identify-row__main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bs-identify-row__toggle {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.bs-identify-row__toggle:disabled {
    visibility: hidden;
    pointer-events: none;
}

.bs-identify-row__toggle-spacer {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.bs-identify-row__drag {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.bs-identify-row__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-identify-row__cost,
.bs-identify-row__current-cost,
.bs-identify-row__pct {
    font-variant-numeric: tabular-nums;
}

.bs-identify-row__cost {
    color: #22c55e;
    font-weight: 600;
}

.bs-identify-row__current-cost {
    color: #334155;
}

@media (max-width: 640px) {
    .bs-identify-table__head,
    .bs-identify-row {
        grid-template-columns: minmax(0, 1fr) 88px 72px;
        gap: 8px;
    }

    .bs-identify-table--with-current .bs-identify-table__head,
    .bs-identify-table--with-current .bs-identify-row {
        grid-template-columns: minmax(0, 1fr) 72px 72px 64px;
    }
}

/* Breakthrough — Measure & Define */
.bs-measure {
    max-width: 1100px;
}

.bs-measure-empty {
    padding: 28px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.bs-measure-empty__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-measure-empty__text {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.bs-measure-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #005F9C;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.bs-measure-empty__btn:hover {
    background: #004a7a;
}

.bs-measure__board {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bs-measure__header {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px 24px;
    align-items: end;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 2px solid #e2e8f0;
}

.bs-measure__section-label--critical {
    margin-bottom: 0;
}

.bs-measure__section-label--drivers {
    margin-bottom: 0;
    grid-column: 2;
}

.bs-measure__block {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.bs-measure__block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bs-measure__row-main {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
}

.bs-measure__critical-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-measure__strategic-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.bs-measure__block--strategic-collapsed .bs-measure__strategy-list {
    display: none;
}

.bs-measure__section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bs-measure__critical-card {
    background: #005F9C;
    color: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.bs-measure__critical-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bs-measure__critical-card-value {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 4px;
}

.bs-measure__drivers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.bs-measure__driver-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-measure__driver-card {
    position: relative;
    height: 130px;
    min-height: 130px;
    max-height: 130px;
    padding: 10px 28px 10px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.bs-measure__driver-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 0;
    flex: 1;
    padding-left: 8px;
}

.bs-measure__driver-fraction {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.15;
    max-width: 100%;
}

.bs-measure__driver-fraction-line {
    display: block;
    width: 100%;
    max-width: 56px;
    height: 1px;
    background: #cbd5e1;
}

.bs-measure__driver-card-bar {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: #005F9C;
    border-radius: 0 2px 2px 0;
}

.bs-measure__driver-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bs-measure__driver-card-value {
    display: block;
    margin-top: 2px;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.bs-measure__driver-menu,
.bs-measure__strategy__menu {
    display: none !important;
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bs-measure__strategy-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bs-measure__strategy {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 32px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.bs-measure__strategy--loading,
.bs-measure__strategy--empty {
    justify-content: center;
    font-size: 0.8125rem;
    color: #64748b;
    font-style: italic;
}

.bs-measure__strategy__label {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .bs-measure__header,
    .bs-measure__row-main {
        grid-template-columns: 1fr;
    }

    .bs-measure__section-label--drivers {
        grid-column: auto;
    }

    .bs-measure__drivers-grid {
        grid-template-columns: 1fr;
    }
}

/* Breakthrough Savings — Reduce tab */
.bs-reduce {
    padding: 4px 0 16px;
}

.bs-reduce-loading,
.bs-reduce-empty {
    padding: 32px 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.bs-reduce-empty__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-reduce-empty__text {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.bs-reduce-empty__btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #005F9C;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.bs-reduce-empty__btn:hover {
    background: #004a7a;
}

.bs-reduce__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.bs-reduce__title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.bs-reduce__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 640px;
}

.bs-reduce__toolbar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.bs-reduce__status {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.bs-reduce__btn {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.bs-reduce__btn:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.bs-reduce__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bs-reduce__btn--primary {
    background: #005F9C;
    border-color: #005F9C;
    color: #fff;
}

.bs-reduce__btn--primary:hover:not(:disabled) {
    background: #004a7a;
    border-color: #004a7a;
}

.bs-reduce__scope-card {
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.bs-reduce__scope-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-reduce__scope-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 0.8125rem;
    color: #475569;
}

.bs-reduce__scope-pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #005F9C;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.bs-reduce__scope-cost {
    font-weight: 600;
}

.bs-reduce__scope-stat {
    color: #64748b;
}

.bs-reduce__tag-groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-reduce__tag-group-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.bs-reduce__tag--cost {
    background: #fef3c7;
    color: #92400e;
}

.bs-reduce__tag--driver {
    background: #ede9fe;
    color: #5b21b6;
}

.bs-reduce__tag--option {
    background: #e0f2fe;
    color: #0369a1;
}

.bs-reduce__block {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.bs-reduce__block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.bs-reduce__element-title {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.bs-reduce__element-cost {
    font-size: 0.875rem;
    font-weight: 700;
    color: #005F9C;
}

.bs-reduce__hint {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

.bs-reduce__empty {
    margin: 0;
    padding: 16px;
    font-size: 0.8125rem;
    color: #94a3b8;
    font-style: italic;
    border: 1px dashed #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.bs-reduce__statements {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-reduce__statement {
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fafbfc;
}

.bs-reduce__statement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.bs-reduce__savings-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
}

.bs-reduce__statement-text {
    margin: 0 0 10px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #334155;
}

.bs-reduce__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bs-reduce__tag {
    display: inline-block;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bs-reduce__tags-empty {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
}

/* Breakthrough — Implement & Verify */
.bs-implement {
    padding: 4px 0 24px;
}

.bs-implement-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.bs-implement-empty {
    padding: 40px 28px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.bs-implement-empty__title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.bs-implement-empty__text {
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.bs-implement-empty__btn {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #005f9c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.bs-implement-empty__btn:hover {
    background: #004a7a;
}

.bs-implement__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.bs-implement__title {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.bs-implement__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 40rem;
}

.bs-implement__toolbar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bs-implement__status {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    min-height: 1.1em;
}

.bs-implement__btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.bs-implement__btn:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.bs-implement__btn--primary {
    background: #005f9c;
    border-color: #005f9c;
    color: #fff;
}

.bs-implement__btn--primary:hover:not(:disabled) {
    background: #004a7a;
    border-color: #004a7a;
}

.bs-implement__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bs-implement__overview {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.bs-implement__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-end;
}

.bs-implement__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 72px;
}

.bs-implement__stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.bs-implement__stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bs-implement__stat--completed .bs-implement__stat-value {
    color: #15803d;
}

.bs-implement__stat--progress .bs-implement__stat-value {
    color: #005f9c;
}

.bs-implement__progress-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.bs-implement__progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.bs-implement__progress-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.bs-implement__progress-pct {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #005f9c;
}

.bs-implement__progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bs-implement__progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #005f9c, #0b84d8);
    transition: width 0.25s ease;
}

.bs-implement__loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.bs-implement__loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #005f9c;
    border-radius: 50%;
    animation: bs-implement-spin 0.8s linear infinite;
}

@keyframes bs-implement-spin {
    to {
        transform: rotate(360deg);
    }
}

.bs-implement__loading-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

.bs-implement__loading-text {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 22rem;
}

.bs-implement__strategies {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bs-implement__strategy {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.bs-implement__strategy-details {
    margin: 0;
}

.bs-implement__strategy-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px 16px;
    align-items: start;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    border-bottom: 1px solid transparent;
}

.bs-implement__strategy-details[open] > .bs-implement__strategy-summary {
    border-bottom-color: #e2e8f0;
}

.bs-implement__strategy-summary::-webkit-details-marker {
    display: none;
}

.bs-implement__chevron {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.bs-implement__strategy-details[open] .bs-implement__chevron {
    transform: rotate(45deg);
    margin-top: 4px;
}

.bs-implement__strategy-index {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.bs-implement__strategy-summary-main {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.bs-implement__strategy-summary-side {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 148px;
    text-align: right;
}

.bs-implement__strategy-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bs-implement__savings-pill {
    display: inline-block;
    margin-bottom: 0;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
}

.bs-implement__value-identified {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
}

.bs-implement__value-realized-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
}

.bs-implement__strategy-status-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.bs-implement__strategy-status-select {
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.bs-implement__stat--value {
    min-width: 108px;
}

.bs-implement__stat-value--currency {
    font-size: 1rem;
}

.bs-implement__value-realized {
    margin: 0 18px 14px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
}

.bs-implement__value-realized-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
}

.bs-implement__value-realized-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.bs-implement__value-realized-input {
    width: min(180px, 100%);
    padding: 8px 10px;
    font-size: 0.875rem;
    border: 1px solid #86efac;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
}

.bs-implement__value-realized-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.bs-implement__value-realized-hint {
    font-size: 0.8125rem;
    color: #64748b;
}

.bs-implement__strategy-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #334155;
}

.bs-implement__mini-progress {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.bs-implement__mini-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bs-implement__mini-fill {
    height: 100%;
    border-radius: 999px;
    background: #22c55e;
    transition: width 0.2s ease;
}

.bs-implement__strategy-body {
    padding: 0 0 12px;
}

.bs-implement__table-wrap {
    overflow-x: auto;
}

.bs-implement__empty-actions {
    margin: 16px 18px 0;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.45;
}

.bs-implement__actions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.bs-implement__actions-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.bs-implement__actions-table tbody tr {
    transition: background 0.15s ease;
}

.bs-implement__actions-table tbody tr:hover {
    background: #f8fafc;
}

.bs-implement__actions-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.bs-implement__col-step {
    width: 40px;
    text-align: center;
}

.bs-implement__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
}

.bs-implement__col-action {
    width: 52%;
    min-width: 200px;
}

.bs-implement__col-date {
    width: 20%;
    min-width: 150px;
}

.bs-implement__col-status {
    width: 22%;
    min-width: 160px;
}

.bs-implement__action-row--completed {
    background: #f0fdf4;
}

.bs-implement__action-row--completed .bs-implement__action-input {
    color: #64748b;
}

.bs-implement__action-row--overdue {
    background: #fff7ed;
}

.bs-implement__overdue-tag {
    display: block;
    margin-top: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #c2410c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bs-implement__action-input {
    width: 100%;
    min-height: 2.75rem;
    padding: 9px 11px;
    font-size: 0.875rem;
    line-height: 1.45;
    font-family: inherit;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}

.bs-implement__action-input:focus {
    outline: none;
    border-color: #005f9c;
    box-shadow: 0 0 0 2px rgba(0, 95, 156, 0.12);
}

.bs-implement__date-input,
.bs-implement__status-select {
    width: 100%;
    padding: 9px 11px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    background: #fff;
}

.bs-implement__date-input--overdue {
    border-color: #fdba74;
    background: #fffaf5;
}

.bs-implement__date-input:focus,
.bs-implement__status-select:focus {
    outline: none;
    border-color: #005f9c;
    box-shadow: 0 0 0 2px rgba(0, 95, 156, 0.12);
}

.bs-implement__status-select--not_started {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.bs-implement__status-select--in_progress {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.bs-implement__status-select--completed {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.bs-implement__status-select--on_hold {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #b45309;
}

.bs-implement__strategy-footer {
    padding: 4px 18px 10px;
}

.bs-implement__add-action {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #005f9c;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    cursor: pointer;
}

.bs-implement__add-action:hover {
    background: #f0f9ff;
    border-color: #005f9c;
}

@media (max-width: 900px) {
    .bs-implement__overview {
        grid-template-columns: 1fr;
    }

    .bs-implement__strategy-summary {
        grid-template-columns: auto 1fr;
    }

    .bs-implement__strategy-summary-side {
        grid-column: 2;
        grid-row: 3;
        text-align: left;
        margin-top: 4px;
    }
}

body.add-project-app-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .add-project-app-modal__body {
        grid-template-columns: 1fr;
    }

    .add-project-app-modal__catalog {
        border-right: none;
        border-bottom: 1px solid #e8ecf1;
        max-height: 260px;
    }

    .add-project-app-modal__header {
        padding: 18px 20px 16px;
    }
}

/* #addProjectAppTabBtn{
    display: none !important;
} */