/*BSD LICENSE

Copyright(c) 2022 Intel Corporation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in
    the documentation and/or other materials provided with the
    distribution.
  * Neither the name of Intel Corporation nor the names of its
    contributors may be used to endorse or promote products derived
    from this software without specific prior written permission.
    
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT

LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/

.mat-dialog-title {
  margin: 0;
}

.pool {
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 5px;
}

.pool-name {
  font-size: initial;
  font-weight: 500;
}

.cbm-button {
  border-radius: 0%;
  border: 1px solid;
  min-width: 25px;
  padding: 0 0.2rem;
  line-height: 30px;
  margin-right: 2px;
}

.cbm-button.large {
  padding: 0 1rem;
}

.cbm-button.small {
  padding: 0 0.2rem;
}

.header-dialog {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-text {
  font-size: small;
}

.divider {
  margin: 1rem 0 1rem 0;
}

.mat-dialog-content {
  margin: auto;

  .error {
    color: red;
    padding-left: 1rem;
    margin: 0;
    font-size: small;
  }

  .cbm,
  .mba,
  .cdp,
  .pool-mba-mbps {
    display: flex;
    align-items: center;
    justify-content: space-evenly;

    .apply-button {
      line-height: 2.1rem;
      margin-left: 0.7rem;
    }

    .reset-button {
      line-height: 2.1rem;
      margin-left: 0.7rem;
      color: white;
    }
  }

  .pool-cbm {
    padding: 0.5rem 0;
  }

  .pool-cdp {
    padding: 0.5rem 0;
    display: inline-block;
  }

  .cdp-label {
    float: left;
    margin-right: 1rem;
  }

  .cdp-code {
    margin-top: 0.3rem;
  }

  .cdp-data {
    margin-top: 1.8rem;
  }

  .cdp-buttons {
    position: relative;
  }

  .cdp-apply-button {
    position: absolute;
    top: 50%;
    margin-top: -17px;
    margin-left: 0.7rem;
  }

  .pool-mba {
    padding-top: 1rem;
  }

  .mat-slider-horizontal {
    min-width: 30rem;
  }
}

.pool-mba-mbps {
  padding: 0.5rem 2rem 0 0;

  .mat-form-field {
    width: 20rem;

    .mat-form-field-flex {
      padding: 0 0.75rem;
    }
  }

  mat-label {
    font-size: initial;
    color: #000000;
  }
}
