.mat-mdc-tooltip {
  --mdc-plain-tooltip-container-color: #ffe377;
  --mdc-plain-tooltip-supporting-text-color: #000;
  --mdc-plain-tooltip-supporting-text-size: 12px;
  --mdc-plain-tooltip-supporting-text-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mdc-plain-tooltip-supporting-text-weight: auto;
  --mdc-plain-tooltip-supporting-text-tracking: 0.0333333333em;

  white-space: normal !important;
  max-width: 250px !important;
  padding: 0px;
  line-height: 1.42857143;
  word-break: break-word !important;
  position: relative;
  background: #ffe377;
  color: #000;
  border-radius: 8px;
}

.mat-mdc-tooltip-panel-above .mat-mdc-tooltip {
  /* Clip-path with centered tail */
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%,
      55% 100%, 50% calc(100% + 10px),
      45% 100%, 0% 100%);
}

.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #ffe377;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
}

.mat-mdc-tooltip-panel-below .mat-mdc-tooltip {
  /* Clip-path with centered tail at the top */
  clip-path: polygon(0% 0%, 45% 0%, 50% -10px, 55% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::after {
  content: "";
  position: absolute;
  top: -8px; /* Move the triangle to the top */
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #ffe377;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.mat-mdc-tooltip-panel-left .mat-mdc-tooltip {
  /* Clip-path with centered tail on the right */
  clip-path: polygon(0% 0%, 100% 0%, 100% 45%, calc(100% + 10px) 50%, 100% 55%, 100% 100%, 0% 100%);
}

.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px; /* Move the triangle to the right */
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ffe377;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.mat-mdc-tooltip-panel-right .mat-mdc-tooltip {
  /* Clip-path with centered tail on the left */
  clip-path: polygon(0% 45%, -10px 50%, 0% 55%, 0% 100%, 100% 100%, 100% 0%, 0% 0%);
}

.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px; /* Move the triangle to the left */
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #ffe377;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
