.permission-assignment {
  .permissions-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
  }

  th,
  td {
    text-align: center;
    vertical-align: top;
    padding-top: 7.5px;
    padding-bottom: 7.5px;

    &:first-child {
      padding-left: 0;
      padding-right: 0;
      vertical-align: middle;

      > ui-button {
        margin: 0;
      }
    }

    &:nth-child(2) {
      text-align: left;
    }

    &:nth-child(3) {
      text-align: left;
    }
  }

  .ui-header__actions {
    > .ui-option:nth-child(1) {
      > .ui-option__control {
        > span:first-child {
          text-align: right;
        }
      }
    }
    > .ui-option:nth-child(2) {
      > .ui-option__control {
        margin-left: 0.5rem;

        > span:first-child {
          display: none;
        }
      }
    }
  }

  .ui-panel__body {
    overflow: hidden;

    > div:nth-child(2) {
      overflow: hidden;
      overflow-y: overlay;
    }
  }

  // Checkbox alignment hack
  ui-checkbox {
    > label {
      width: 18.75px;
    }
  }

  a.crud-link {
    color: var(--primary, $primary);
    text-decoration: underline;

    &:hover {
      color: var(--primary-darken-20, darken($primary, 20%));
    }
  }
}
