@import '../../../core/src/style/variables';
:host {
  display: block;
  text-align: right;
}

.bom-settings-actions-wrapper {
  display: flex;

  .bom-settings-actions {
    display: flex;
    flex-direction: column;
    button {
      min-height: unset;
      line-height: inherit;
      text-align: left;
      padding-right: 0px;
      font-size: small;
      text-transform: capitalize;
      font-weight: normal;
      padding-left: 0;
      wpt-icon {
        width: 14px;
        text-align: left;

        &:before {
          line-height: 1.5em;
        }
      }
    }
  }
}

.bom-settings-buttons {
  width: fit-content;
  position: absolute;
  right: 5px;
  bottom: 0;
  
  .btn-settings {
    margin: 0;
    font-size: 14px;
  }

  .btn- {
    &cross {
      color: $red;
    }
  }
}

.bom-settings {
  text-align: left;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding-bottom: 15px; // to fit Apply|cancel buttons below

  &.disabled {
    * label {
      cursor: default !important;
    }
  }
  
  .bom-setting-item {
    @media screen and (min-width: 1361px) {
      padding-right: 100px;
    }
    
    h3 {
      line-height: normal;
      text-transform: capitalize;
      margin: 2px 0 8px 0;
      font-size: 1em;
    }

    wpt-radio-button {
      padding: 3px 0;
    }
  
    > *label {
      cursor: pointer;
      display: block;
      position: relative;
      font-size: 0.9em;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-transform: capitalize;
  
      &.error-filter {
        color: $red;
        font-weight: $font-bold;
      }
  
      &.zero-filter {
        color: $midlightgrey;
        font-style: italic;
      }
  
      &.disabled {
        color: $middarkgrey;
        font-style: italic;
        font-weight: $font-thin;
        cursor: default;
      }
  
      &.red {
        color: $red;
      }
    }
  }
}

hr {
  border-color: $lightergrey;
  margin: 5px 0;
}