@import "../../../../themes/core/colors";
@import "../../../../themes/core/typography";

.list-related {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: normal;
  color: $default-color;

  .list-related__title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 22px;
    margin-bottom: 1rem;
  }

  .list-related__body {
    .list-related__body-parent {
      .qms-list-item.mat-2-line.image-item {
        height: auto;
      }

      .qms-list-item.image-item .qms-list-item-content {
        margin: 0;
      }

      .wrap-image.image-square,
      .wrap-image.image-square img {
        background: transparent;
        margin: auto;
        height: 24px;
        width: 24px;
      }

      .qms-list-item.image-item .qms-list-text,
      .qms-list-item.image-item .trailing-box {
        margin-left: 1.5rem;
        border-bottom: none;
        padding-bottom: 7px;
        padding-top: 7px;

        .material-icons-outlined {
          font-size: 13px;
        }
      }

      .breadcrumb-containe {
        .qms-breadcrumb-item {
          .mat-icon {
            font-size: 16px!important;
            padding-bottom: 1px;
        }
        }
      }

      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #ddd;

      .block {
        font-weight: normal;
        font-size: 1rem;
        line-height: 28px;
        display: flex;
        align-items: center;

        .title {
          margin-left: 1.5rem;
          padding-top: 5px;
          padding-bottom: 5px;

          .caption {
            color: black(0.6);
            font-size:0.75rem;
            line-height: 22px;
          }
        }

        mat-icon {
          color: black(0.6);
          padding: 0;
        }

        button.qms-btn-icon {
          width: 40px;
          height: 40px;
          line-height: 40px;
        }
      }
    }

    .list-related__body-child {
      font-weight: normal;
      font-size: 0.875rem;
      line-height: 22px;

      .default {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #ddd;

        .title {
          margin-left: 3rem;
        }

        .group-button {
          margin-right: 2rem;
          display: flex;
        }
      }
    }

    .remain {
      font-weight: 600;
      font-size: 0.875rem;
      line-height: 22px;

      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #fafafa;

      border-bottom: 1px solid #ddd;
      color: $primary;
      min-height: 48px;
      border-bottom: 1px solid #ddd;

      .title {
        margin-left: 3rem;
      }
    }
  }
}

.label-red,
.label-yellow,
.label-green {
  font-family: Open Sans;
  font-style: normal;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  margin-left: 1rem;
  width: 24px;
  height: 24px;

  font-size: 0.75rem;
  border-radius: 1px;
}

.label-red {
  background-color: $secondary;
  color: white;
}

.label-yellow {
  background-color: $risk-yellow;
  color: black(0.87);
}

.label-green {
  background-color: $risk-green;
  color: white;
}

.cursor {
  cursor: pointer;
}
