#timeline-container {
  width: 100%;
  height: 150px;
  position: relative;
  box-sizing: border-box; /* Include padding in the element's total width and height */
  padding: 10px; /* Add desired padding */
}

.marker {
  position: absolute;
  top: 0; /* Align the marker at the top of the container */
  text-align: center;
  box-sizing: border-box; /* Ensure markers respect padding */
}

.marker span,
.marker img {
  align-items: center;
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
}

.marker img {
  margin-top: 34px; /* Adjust to align the image vertically */
}

.marker label {
  display: block;
  margin-top: 5px;
  margin-left: 6px;
  margin-right: 6px;
  font-size: 12px;
}

.event-line {
  stroke: gray;
  stroke-dasharray: 2, 2;
}

.event-label {
  font-size: 10px;
  fill: black;
}

.start-line,
.end-line {
  stroke: gray;
  stroke-width: 1;
}

.start-label,
.end-label {
  font-size: 10px;
  fill: black;
  text-align: right;
}

path.domain {
  display: none;
}

.month-rect {
  cursor: pointer;
  pointer-events: all;
}

.left-rounded,
.right-rounded {
  pointer-events: none; /* Ensure these rects don't interfere with pointer events */
}

.tooltip {
  position: absolute;
  width: auto; /* Changed from fixed width to auto for dynamic sizing */
  max-width: 400px; /* Set maximum width to prevent overly wide tooltips */
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 5px 10px;
  pointer-events: none; /* Ensures the tooltip doesn't interfere with mouse events */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10; /* Ensure it's above all other SVG elements */
  transform: translate(
    -50%,
    -100%
  ); /* Centers and moves tooltip above the rectangle */
  white-space: nowrap; /* Ensures text doesn't wrap, adjust as needed */
}

.tooltip-header {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.tooltip-agreement-type {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 4px;
}

.tooltip-data {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.tooltip-data div {
  margin: 2px 0;
  text-align: left;
}

.tooltip-section {
  margin-top: 4px;
  text-align: center;
}

/* Specific styling for aggregated graph tooltip sections */
#incentive-aggregated-progress .tooltip-section:not(:first-child) {
  margin-top: 24px;
  padding-top: 8px;
}

.tooltip-section-with-card {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.tooltip-key {
  font-weight: 500;
  font-size: 12px;
  display: inline-block;
  min-width: 120px; /* Ensures alignment */
}

.tooltip-value {
  font-weight: 500;
  font-size: 14px;
  color: #666;
}

.tooltip-line {
  border-top: 1px solid #d6d9dd;
  margin: 5px 5px;
}

.tooltip-bottom-section {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  display: flex;
  align-items: center;
  /* background-color: #f8f8f8; */
  border-radius: 8px;
  border: 1px solid #d6d9dd;
  padding: 5px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.card span {
  font-size: 12px;
  color: #333;
}

.greencard {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 15px;
  max-width: max-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #164f11;
  color: #cbff00;
  font-weight: 500;
  font-size: 12px;
}

.graycard {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 15px;
  max-width: max-content;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
  font-weight: 500;
  font-size: 12px;
}

.tooltip-inner-card {
  display: flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #d6d9dd;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  font-size: 12px;
}

.tooltip-inner-card .icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
}

.tooltip-inner-card div {
  display: flex;
  flex-direction: column;
}

.inner-card-main {
  margin-bottom: 4px;
  color: black;
}

.inner-card-sub {
  color: #63686c;
}
