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

div.hp-master-full {
  
  .hp-master-list {
    position: absolute;
    top: 50px + 35px;
    left: 15px;
    right: 15px;
    bottom: 0px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0px;
    opacity: 1;
    @include transition-property(opacity);
    @include transition-duration(0s);
    
    &:focus {
      border: none;
      outline: none;
    }
    
    &.hp-changing {
      opacity: $changing-opacity;
      @include transition-delay($changing-animation-delay);
      @include transition-duration($normal-animation-duration);
    }
    
    > li.hp-pending {
      background-color: $secondary-background;
      
      @media print {
        display: none;
      }
    }
    
    li.hp-master-list-item {
      position: relative;
      border-top: 3px solid #ccc;
      margin-bottom: 10px;
      padding: 0px;
      //color: $secondary-color;
      
      &.hp-selected {
        .hp-master-list-item-primary header {
          background-color: $selected-background;
        }
      }
      
      &:hover {
        a {
          text-decoration: underline;
        }
      }
      
      &.hp-collapsed .hp-master-item-detail {
        display: none;
      }
      
      &.hp-expanded {
        .hp-master-item-summary {
          display: none;
        }
      }
      
      .hp-master-list-item-primary {
        background-image: $horizontal-dot-url;
        background-position: left bottom;
        background-repeat: repeat-x;
        padding-bottom: 1px;
        
        > * {
          padding-top: 10px;
          margin: 0px 30px;
        }
      
        > header {
          line-height: 18px;
          padding: 10px;
          margin: 0px;
          cursor: pointer;
        
          > * {
            display: inline-block;
            vertical-align: top;
          }

          .hp-collapser {
            width: 20px;
          }
          
          .hp-master-item-name {
            font-size: 16px;
            margin-left: 5px;
            margin-right: 20px;
          }
          
          .hp-summary {
            color: $secondary-color;
            margin-right: 20px;
            
            html.hp-high-contrast & {
              color: $projection-secondary-color;
            }
          }
          
          form {
            margin-bottom: 0px;
            width: auto;
            .hp-form-content {
              white-space: nowrap;
            }
          }
        }
      }
      
      .hp-master-list-item-secondary {
        padding: 10px 0px;
        margin-left: 30px;
      }
      
      form {
        display: inline-block;
        width: 45%;
        &.hp-show-form { 
          vertical-align : top;
        }
      }
    }
    
    #hp-master-load-more, #hp-master-load-more-above {
      display: inline-block;
      margin: 10px 0px 20px 15px;
      color: $text-link-color;
    }
    
    .hp-master-list-splash {
      max-width: 300px;
      margin: 40px auto;
      text-align: left;
      
      .hp-master-list-empty {
        margin-bottom: 20px;
        html.hp-high-contrast & {
          color: $projection-secondary-color;
        }
      }
      
      div.hp-help {
        margin: 10px 0px;
        .hp-add-help {
          color: $secondary-color;
        }
        .hp-add-help, .hp-add-action-link{
          margin: 10px 0px;
        }
      }
      
      .hp-add-link {
        margin: 40px 0px;
      }
      
      a {
        display: inline-block;
      }
    }
    
    .hp-master-list-control {
      @media print {
        display: none;
      }
    }
    
    @media print {
      @include print-position();
    }
  }
}
