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

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

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

  .list-risk__body {
    .list-risk__body-parent {
      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;
        }

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

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

        .label-archived {
          font-weight: 600;
          font-size: 0.875rem;
          line-height: 1rem;
          color: #525252;
          padding: 5px;
          background: linear-gradient(
              0deg,
              rgba(0, 0, 0, 0.1),
              rgba(0, 0, 0, 0.1)
            ),
            #ffffff;
          border-radius: 2px;
        }
      }
    }

    .list-risk__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;
}
