@mixin xmat-material-overrides {
  mat-table {
    &.debug {
      mat-header-cell.mat-header-cell, mat-cell.mat-cell {
        border: 1px solid map-get($xmat-colors, red);
      }
    }
    // Bug fix for mat-checkbox inside a mat-cell
    mat-cell.mat-cell, mat-header-cell.mat-header-cell {
      overflow: visible;
    }
  }

  mat-form-field {
    &.autoWidth {
      min-width: 140px;
      > div.mat-input-wrapper {
        > div.mat-input-flex {
          > div.mat-input-infix {
            width: auto;
          }
        }
      }
    }
    &.invert {
      .mat-form-field-underline {
        background-color: rgba(map-get($xmat-colors, white), 0.75);
      }
      input.mat-input-element, label.mat-form-field-placeholder {
        color: map-get($xmat-colors, white);
      }
      &.mat-form-field-disabled {
        opacity: 0.2;
        input.mat-input-element {
          cursor: not-allowed;
        }
      }
    }
    .mat-form-field-prefix {
      mat-icon.mat-icon {
        &.matPrefixSmall {
          font-size: 100%;
          margin-right: 10px;
        }
      }
    }
  }

  snack-bar-container {
    &.xmat-snack-success {
      border-top: 5px solid map-get($xmat-colors, green);
    }
    &.xmat-snack-fail {
      border-top: 5px solid map-get($xmat-colors, red);
    }
  }

}
