.mat-tooltip,
.mat-hint,
.mat-error {
  font-size: 12px !important;
}

// allows processing of native touch gestures
// like scrolling when scroll starts on tooltip
.mat-tooltip-trigger {
  touch-action: auto !important;
}

.mat-snack-bar-container {
  max-width: 200px !important;
  color: #fff !important;

  .mat-simple-snackbar-action {
    color: #fff;
  }

  &.error {
    background-color: #dc3545 !important;
  }

  &.success {
    background-color: #28a745 !important;
  }

  &.primary {
    background-color: $brand-color !important;
  }
}

.mat-stroked-button {
  .mat-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mat-icon {
  .mat-icon-button & {
    margin-bottom: 3px;
  }

  &.smaller {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
  }

  &.larger {
    font-size: 30px;
    height: 30px;
    width: 30px;
    line-height: 30px !important;
  }
}

.mat-icon-button {
  &.inline {
    width: initial;
    height: initial;
    line-height: initial;
  }
}

.mat-list {
  & > .mat-divider:last-of-type {
    display: none;
  }

  // removes browser's native styling
  .mat-list-item {
    -webkit-appearance: none;
  }
}

.mat-form-field-appearance-outline {
  .mat-form-field-outline {
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
  }

  .mat-form-field-outline {
    background-color: #f1f5f9 !important;
  }

  .mat-form-field-underline {
    display: none !important;
  }
}

ngx-mat-select-search {
  .mat-select-search-clear {
    top: 0 !important;
    right: 0 !important;
  }
}

html,
body {
  min-height: 100%;
  height: 100%;
  margin: 0;
}

body {
  &::-webkit-scrollbar,
  *::-webkit-scrollbar {
    height: 4px;
    width: 4px;
  }

  &::-webkit-scrollbar-thumb,
  *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.26);
    border-radius: 1em;
  }

  &.no-selection {
    user-select: none;
  }
}
