@import "~@inst-iot/bosch-angular-ui-components/styles/variables/colors";

.header-addnew {
  margin-bottom: 40px;
  height: 42px;

  & > * {
    display: inline;
    margin-bottom: 10px;
  }

  rb-icon-button {
    float: right;
  }
}

rb-table {
  width: 100%;
}

 td .clickable.rb-ic {
  font-size: 1.1rem;
  color: $color-gray-silver-sand;
  cursor: pointer;

  &:hover {
    color: #000;
  }
}

.status-selection {
  overflow: hidden;
  margin-bottom: 10px;
  float: left;
  margin-right: 15px;

  label {
    display: block;
    font-weight: 700;
    font-size: 10px;
  }

  rb-form-checkbox {
    float: left;
    margin-right: 10px;
    margin-top: -10px;
  }
}

.selection {
  max-width: 230px;
  float: left;
}

.paging {
  height: 50px;
  float: left;

  rb-form-input {
    max-width: 65px;
  }

  > * {
    float: left;
  }

  > button {
    margin-top: 18px;
  }

  > span {
    margin-top: 20px;
    margin-left: 5px;
  }
}

.sort-header {
  width: 100%;
  position: relative;

  & > span:first-child {
    max-width: 180px;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis;
    margin-right: 20px;
  }

  div {
    display: grid;
    grid-template-columns: 1fr;
    position: absolute;
    right: 0;
    top: 0;
    background: #FFF;

    :nth-child(1) {
      margin-bottom: -3px;
      cursor: pointer;
    }

    :nth-child(2) {
      margin-top: -3px;
      cursor: pointer;
    }
  }
}

.filters:after {
  content:"";
  clear:both;
  display:block;
}

.download {
  margin-top: 5px;
  float: right;

  & > rb-form-checkbox {
    display: inline-block;
  }

  button {
    margin-right: 10px;
  }
}

.sort-arr-up {
  position: relative;

  & > span {
    width: 0;
    height: 0;
    border-left: 6.3px solid transparent;
    border-right: 6.3px solid transparent;
    border-bottom: 6.3px solid #000;
    position: absolute;
    top: 5px;
    display: block;
    left: 2px;
  }
}

.sort-arr-down {
  position: relative;

  & > span {
    width: 0;
    height: 0;
    border-left: 6.3px solid transparent;
    border-right: 6.3px solid transparent;
    border-top: 6.3px solid #000;
    position: absolute;
    top: 5px;
    display: block;
    left: 2px;
  }
}

.fieldfilters {
  clear: both;

  & > div {
    display: grid;
    grid-template-columns: auto auto 1fr;
    float: left;
    margin-right: 30px;
  }

  & > rb-form-checkbox {
    float: left;
  }
}

.filtermode {
  max-width: 82px;
}

textarea.linkmodal {
  display: block;
  min-width: 600px;
  min-height: 200px;
  border: none;
}

.filter-inputs > * {
  display: inline-block;
  width: 220px;
}

.sample-details-table {

  td {
    max-width: none;
  }
}

.validation-close {
  margin-left: -1px;
}

.samples-table tr.clickable {
  background: none;
  transition: background-color 0.5s;

  &:hover {
    background: $color-gray-mercury;
  }
}

::ng-deep .samples-table rb-form-checkbox .input-wrapper {
  padding-top: 0;
  margin-top: -4.5px;
}

.link-dialog {
  rb-form-checkbox {
    display: inline-block;
  }

  rb-icon-button {
    float: right;
  }
}

.samples-loading {
  float: left;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr auto 1fr;

  rb-loading-spinner {
    grid-row: span 3;
    transform: scale(0.5);
  }

  & > div {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
}

.reset-preferences {
  float: right;
}
