
#progress-container {
    width: 260px;
    background: #fbf0f0; /* light neutral color for empty space */
    height: 20px;
    border-radius: 10px;
    margin-bottom: 1em;
    overflow: hidden;
    position: relative;
    border: 2px solid #e53935; /* default to red, will be set dynamically */
    box-sizing: border-box;
  }
  
  #progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.2s linear, background 0.2s linear;
    position: relative;
    /* Remove margin-left so bar fills full width */
  }
  
  #progress-icon {
    position: absolute;
    left: -3px; /* moved slightly more left for overlay */
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 20;
    display: block;
    pointer-events: none;
    background: transparent; /* transparent background */
    border-radius: 50%;
    padding: 2px;
    /* Use filter to force foreground color to #fbf0f0 */
    filter: brightness(0) saturate(100%) invert(94%) sepia(2%) saturate(1000%) hue-rotate(320deg);
  }
  
  #progress-value {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff; /* match progress bar empty space color */
    font-size: 14px;
    font-weight: 500 !important;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    padding: 0 6px;
    border-radius: 6px;
    margin-left: 22px; /* space for icon */
  }
  
  #controls {
    margin-bottom: 1em;
  }
  
  #legacy-value {
    color: #000;
    font-weight: 600;
    font-size: 16px;
  }
  
  .cf-header-title {
    display: flex;
    width: 35%;
    margin-left: -6px;
  }
  
  .cf-header-plan {
    display: flex;
    width: 30%;
    justify-content: flex-start;
    padding-left: 0px;
    margin-left: -3px !important;
  }
  
  .cf-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 35%;
    white-space: nowrap;
  }
  
  .cf-header-actions .cashflow-link {
    width: auto;
  }
  
  .cf-header-actions .network-link {
    width: auto;
  }
  
  .cf-header-actions .taxes-link {
    width: auto;
  }
  
  #plan-cards-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }
  
  #plan-cards-section > .pc-cashflowcard {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .compare-sections-scroll {
    display: block;
    box-sizing: border-box;
    height: 650px;
    min-height: 630px;
    max-height: 630px;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }
  
  .compare-sections-scroll .pc-social-security-chart {
    /* border-radius: 8px; */
    overflow: hidden;
  }
  
  .compare-sections-scroll .pc-card-chart-heading,
  .compare-sections-scroll .cf-header-row {
    position: sticky;
    top: 0;
    z-index: 6;
    background: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .compare-sections-scroll .cf-header-row {
    text-align: left;
  }
  
  .cf-toggle-btn {
    border-radius: 4px;
    border: solid 1px #041459;
    background-color: #fff;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left:15px;
  }
  
  .cf-toggle-icon {
    width: 16px;
    height: 16px;
  }
  
  .cf-chart-content {
    display: block;
  }
  
  .nw-chart-content {
    display: block;
  }
  
  .tx-chart-content {
    display: block;
  }
  
  [eventproxy="cashFlows"] {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    overflow-x: hidden !important;
  }
  
  .taxes-section-placeholder {
    min-height: 8px;
  }
  
  .taxes-rerun-card {
    height: 298px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    background-color: #fafafa;
    margin-right:20px;
    margin-bottom: 20px;
  }
  
  .taxes-rerun-msg {
    height: 40px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
  }
  .taxes-rerun-label{
    height: 20px;
    flex-grow: 1;
    font-family: Roboto;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    letter-spacing: normal;
    text-align: center;
    color: #323135;
  }
  
  .taxes-rerun-button {
    width: 285px;
    height: 40px;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 12px;
    border-radius: 4px;
    border: solid 1px #041459;
    background-color: #fff;
    cursor:pointer;
  }
  
  .taxes-rerun-button span {
    height: 20px;
    flex-grow: 0;
    font-family: Roboto;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    letter-spacing: normal;
    text-align: left;
    color: #041459;
  }
  
  .taxes-rerun-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .button-caret-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
  }
  
  .pc-social-security-chart.cf-collapsed {
    height: auto !important;
    min-height: 0 !important;
  }
  
  #plan-cards-section .pc-cashflowcard {
    height: auto !important;
  }
  
  #plan-cards-section .pc-networthcard {
    height: auto !important;
  }
  