@import 'scss/styles.scss';

::ng-deep app-ca-tooltip-list {
  $color-white: #ffffff;
  $color-container-background: #2f2f2f;
  $color-header-bottom-border: #424242;

  $font-weight-400: 400;
  $font-weight-600: 600;
  $font-weight-700: 700;
  $font-weight-800: 800;

  .width-small {
    width: 160px;
  }

  .width-medium {
    width: 200px;
  }

  .width-large {
    width: 240px;
  }

  .tooltip-list-container {
    padding: 4px;
    background-color: $color-container-background;
    color: $color-white;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .tooltip-list-header {
    font-size: 11px;
    line-height: 14px;

    margin: 0;
    padding: 2px 4px 4px 4px;

    border-bottom: 1px solid $color-header-bottom-border;

    span {
      font-size: 11px;
      font-weight: $font-weight-800;
      color: $color-white;
      text-align: left;
      word-wrap: break-word;
      word-break: break-word; 
      white-space: normal;
    }
  }

  .tooltip-list-body-list {
    margin-top: 8px;
  }

  .tooltip-list-body-table {
    gap: 2px;
    width: 100%;
    padding: 4px 4px 0px 4px;
  }

  .tooltip-list-item {
    padding: 4px;
    font-size: 11px;
  }

  .tooltip-list-inline {
    line-height: 1;
  }

  .tooltip-list-item-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
  }

  .tooltip-list-item-label {
    font-size: 11px;
    font-weight: $font-weight-700;
    color: $color-white;
  }

  .tooltip-list-item-value {
    font-weight: $font-weight-400;
    font-size: 11px;
    color: $color-white;
    flex: 1;
  }

  .tooltip-list-item-percentage {
    font-weight: $font-weight-700;
    font-size: 11px;
    color: $color-white;
  }

  .dot-delimiter {
    margin: 0 4px;
    font-size: 0.8em;
    line-height: 1;
    color: $color-white;
  }
}