@use '@angular/material' as mat;
/* You can add global styles to this file, and also import other style files */

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Roboto, 'Helvetica Neue', sans-serif;
}

dl {
  dt {
    font-weight: bold;
  }

  dd {
    margin: 0;
    margin-bottom: 0.5rem;
  }
}

mat-paginator {
  margin-top: -1px;
  bottom: 0;
  position: sticky;
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

table.mat-mdc-table {
  width: 100%;

  th,
  td {
    padding-right: 0.5rem;
  }

  td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

    &.mat-column-distance {
      width: 3rem;
    }

    &.mat-column-id {
      width: 15rem;
    }

    &.mat-column-source {
      white-space: pre-line;
    }

    &.mat-column-source,
    &.mat-column-target {
      width: 20rem;
    }

    &.mat-column-description,
    &.mat-column-meaning,
    &.mat-column-state {
      width: 10rem;
    }

    &.mat-column-action {
      width: 2rem;
    }
  }

  mat-form-field {
    display: block;
  }
}

.tooltip-linebreak.mat-mdc-tooltip {
  white-space: pre-line;
  max-width: 40rem;
}

.mat-mdc-autocomplete-panel {
  scrollbar-color: mat.m2-get-color-from-palette(mat.$m2-indigo-palette, 500) transparent;
  scrollbar-width: thin;

  &::-webkit-scrollbar {
    width: 6px;
  }
  &::-webkit-scrollbar-thumb {
    background-color: mat.m2-get-color-from-palette(mat.$m2-indigo-palette, 500);
  }
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
}
