@import "../../../style/var.less";

.family {
  box-sizing: border-box;
  padding: 28px 16px 0;
  height: 100%;
  background: #F6F6F6;

  &-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #242629;
    line-height: 24px;
  }

  &-list {
    border:1px solid transparent;
    margin: 16px 0 0;

    &-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      padding: 0 20px;
      height: 66px;
      background: #FFFFFF;
      border-radius: 14px;

      .Fl-item-left {
        display: flex;
        align-items: center;

        .Fli-left-image {
          margin-right: 12px;
          width: 40px;
          height: 40px;
        }

        .Fli-left-name {
          margin-right: 10px;
          font-size: 16px;
          font-weight: 600;
          color: #333333;
          line-height: 16px;
        }

        .Fli-left-relation {
          font-size: 11px;
          font-weight: 400;
          color: #999999;
          line-height: 16px;
        }
      }

      .Fl-item-right {
        width: 44px;
        height: 16px;
        background: #FFEAB7;
        border-radius: 2px 8px 2px 8px;
        text-align: center;
        font-size: 11px;
        font-weight: 400;
        color: #EAAD1A;
        line-height: 16px;
      }

      &_overlay_2 {
        border-radius: 17px;
        margin-top: 10px;
        box-shadow: 0px -5px 25px 0px rgba(0,0,0,0.07), 0px -20px 0 -10px #FFFFFF;
      }
      &_overlay_3 {
        border-radius: 17px;
        margin-top: 15px;
        box-shadow: 0px -5px 25px 0px rgba(0,0,0,0.07), 0px -20px 0 -10px #FFFFFF, 0px -25px 25px 0px rgba(0,0,0,0.07), 0px -33px 0 -14px #FFFFFF;
      }
    }
  }

  &-collapse {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
      height: 30px;
      background: #FFFFFF;
      border-radius: 14px;

      &-text {
        margin-right: 4px;
        font-size: 12px;
        font-weight: 500;
        color: #858AFF;
        line-height: 17px;
      }

      &-svg {
        transform: rotate(0deg);
        width: 16px;
        height: 16px;
        &_opened {
          transform: rotate(180deg);
        }
      }
    }

  &-form {
    padding: 20px 20px 28px;
    background: #FFFFFF;
    border-radius: 14px;

    &-item {
      display: flex;
      align-items: center;
      margin-bottom: 12px;
      padding-left: 16px;
      // height: 44px;
      background: #F6F7FA;
      border-radius: 14px;

      @{deep} .cr-cell__title {
        margin-right: 3px;
        width: 94px;

        .cr-field--title {
          font-size: 14px;
          font-weight: 400;
          color: #333333;
          line-height: 24px;
        }

        .cr-cell__label {
          display: none;
        }
      }

      @{deep} .cr-cell__value {
        font-size: 14px;
        font-weight: 600;
        color: #333333;
        line-height: 24px;
      }
    }

    &-radio {
      display: flex;
      justify-content: space-between;
      margin-bottom: 28px;
      padding-left: 10px;

      .Ff-radio-title {
        display: flex;
        align-items: center;

        .Ffr-title-text {
          margin-right: 3px;
          font-size: 14px;
          font-weight: 400;
          color: #333333;
          line-height: 24px;
        }

        .Ffr-title-svg {
          width: 12px;
          height: 12px;
        }
      }

      .Ff-radio-options {
        overflow: visible;
        padding: 0;
        width: auto;

        @{deep} .cr-cell__value {
          overflow: visible;

          .cr-radio-group {
            margin: 0;

            .cr-radio {
              // display: inline-block;
              // box-sizing: border-box;
              // padding: 12px 0;
              width: 73px;
              // height: 36px;
              // background: #FFFFFF;
              // box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.07);
              // border-radius: 8px;
              // text-align: center;

              .cr-radio__label--right {
                font-size: 0;

                div {
                  font-size: 12px;
                  font-weight: 400;
                  color: #333333;
                }
              }

              // &:first-child {
              //   margin-right: 9px;
              // }
            }
          }
        }

        .Ffr-options-text {
          display: inline-block;
          padding: 12px 0;
          box-sizing: border-box;
          width: 73px;
          height: 36px;
          background: #FFFFFF;
          box-shadow: 0px 5px 25px 0px rgba(0, 0, 0, 0.07);
          border-radius: 8px;
          text-align: center;
          font-size: 12px;
          font-weight: 400;
          color: #333333;

          &:first-child {
            margin-right: 9px;
          }
        }
      }
    }

    &-button {
      width: 100%;
      height: 52px;
      background: #FFC842 !important;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      color: #333333;
      line-height: 22px;
      &_deleted {
        width: 100%;
        margin-top: 15px;
        background: #F6F7FA !important;
      }
    }
  }

  &-modal {
    @{deep} .panel-body {
      font-size: 16px;
      font-weight: 400;
      color: #666666;
      line-height: 28px;
    }
  }

  &-confirm-modal {
    padding: 20px 17px;
    background: #F6F7FA;
    border-radius: 8px;

    .Fc-modal-item {
      display: flex;
      // justify-content: space-between;
      font-size: 12px;
      color: #333333;
      line-height: 30px;

      span:nth-child(1) {
        width: 65px;
        font-weight: 400;
      }

      span:nth-child(2) {
        font-weight: 600;
      }
    }
  }
}