// (C) Copyright 2020 Hewlett-Packard Enterprise Company, L.P.

form.hp-edit-form, form.hp-add-form {
  .hp-form-contents {
    fieldset {
      padding-left:15px;
      padding-right:15px;
    }
    iframe{
      margin-bottom: 20px; 
    }
  }

  position: relative;
  width: 100%;
  min-width: 600px;
  
  body.hp-narrow & {
    min-width: 340px;
  }
  
  ol.hp-stacked-panels {
    fieldset {
      padding-left:30px;
      padding-right:30px;
    }
  }
  
  fieldset {
    position: relative;
    border: none;
    @include box-sizing(border-box);
    padding: 20px 0px 0px;
    background-image: $horizontal-dot-url;
    background-position: left top;
    background-repeat: repeat-x;
    margin: 20px 0px;
    min-width: 630px;
    
    &:first-of-type {
      background-image: none;
      margin-top: 0px;
      padding-top: 0px;
    }
    
    > legend {
      float: left;
      width: 100%;
      
      span {
        display: block;
        color: $secondary-color;
        font-size: 16px;
        padding: 10px 0px 20px 0px;
      
        html.hp-high-contrast & {
          color: $projection-secondary-color;
        }
      }
    }
    
    &.hp-collapsible {
      &.hp-collapsed {
        > label {
          background-position: -407px -577px;
          &:hover {
            background-position: -407px -537px;
          }
        }
      }
      > label {
        position: relative;
        top: -10px;
        width: 100%;
        height: 20px; // span line-height + padding
        font-size: 16px;
        margin: 0px;
        padding: 0px 0px 0px 15px;
        background-position: -405px -455px;
        &:hover {
          background-position: -405px -415px;
        }
      }
    }
    
    table {
      margin-top: 10px;
      
      input, .selectBox, .hp-search-combo {
        margin-bottom: 0px;
      }
    }
    
    .hp-table-controls {
      margin-top: 15px;
      
      > * {
        display: inline-block;
        margin-right: 6px;
      }
      
      .hp-message {
        color: $secondary-color;
      }
    }
  }
}
