@import './_fonts.scss';
@import './_report.scss';

@tailwind base;
@tailwind components;
@tailwind utilities;

.explore-barchart-tooltip {
  min-width: 300px;

  .__digit-point {
    border-radius: 50%;
    width: 8px;
    height: 8px;

    &.--pattern-diagonal-lines {
      color: white;
      background-image: repeating-linear-gradient(
        45deg,
        currentColor 0,
        currentColor 1px,
        transparent 0,
        transparent 50%
      );
      background-size: 5px 5px;
    }
  }

  .__digit-percentage {
    display: flex;
    align-items: center;
    font-weight: 500;
    gap: 2px;

    &.--decrease {
      color: #cf1825;
    }

    &.--increase {
      color: #139b00;
    }
  }
}

.rfm-dependency__content {
  font-family: Roboto;
  border: 3px;
  font-size: 12px;
  min-width: 230px;
  box-shadow: 0px 11px 15px 0 rgba(0, 0, 0, 0.2);
  border-radius: 3px;

  .__header {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 5px;

    .__brand-color {
      height: 8px;
      width: 16px;
      border-radius: 20px;
    }

    .__name {
      font-size: 14px;
      font-weight: 500;
    }
  }

  .__body {
    padding: 10px;

    .__title {
      font-weight: 500;
      padding-bottom: 10px;
    }

    .__node-digits-group {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .__value {
        display: flex;
        align-items: center;
        font-weight: 500;
        gap: 10px;
      }

      &.--moved-in {
        .__value {
          color: #12b800;
        }
      }

      &.--moved-out {
        .__value {
          color: #f29100;
        }
      }

      &:not(:last-child) {
        margin-bottom: 5px;
      }
    }

    .__path-digits-group {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      color: #0080e7;
    }
  }

  .__divider {
    background-color: #e5e5e5;
    height: 1px;
    width: 100%;
  }
}

.explore-treemap-tooltip {
  min-width: 200px;
}

.rfm-treemap__tooltip {
  font-family: Roboto;
  width: 270px;
  border: 3px;
  font-size: 12px;

  .__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .__btn-edit {
    color: #005eb8;
    font-weight: bold;
    cursor: pointer;

    &.disabled {
      color: #a2a2a2;
      pointer-events: none;
    }
  }
}

.rf-treemap__wrapper {
  overflow: hidden;
}
