/* pages/vehicleMaintenance/operation/offer/offer.wxss */
.container {
  height: 100vh;
  background: #EFF1F4;
  position: relative;
  overflow: hidden;

  .content-box {
    height: calc(100vh - 84px);
    overflow-y: auto;

    .content {
      padding: 8px;
      margin-bottom: 10px;
      background: #fff;

      .top {
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;

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

          .line {
            width: 4px;
            height: 22px;
            margin: 0 8px 0 2px;
            background: linear-gradient(180deg, #4E87FC 0%, #38B1FE 100%);
            border-radius: 2px;
          }

          .title {
            color: #333F53;
            font-size: 14px;
            font-weight: bold;
          }
        }

        .right {
          .btn-add {
            padding: 8px 24px;
            background: #E9F2FF;
            border-radius: 4px;
            border: 1px dashed #4381FC;
            color: #4381FC;
            font-size: 14px;
            display: flex;
            align-items: center;

            image {
              width: 18px;
              height: 18px;
              margin-right: 9px;
              display: inline-block;
            }
          }
        }
      }

      .offer-content {
        .offer-list {
          .offer-item {
            padding: 8px;
            margin-bottom: 10px;
            background: #ECEFF5;
            border-radius: 4px;
            color: #2F3B50;
            font-size: 14px;

            .row {
              padding: 10px 12px;
              background: #fff;
              border-bottom: 1px solid #E6EAF2;
              display: flex;
              justify-content: space-between;
              align-items: center;

              .label {}

              .val {
                width: 60%;
                display: flex;
                align-items: center;

                >.project-select {
                  width: 100%;
                  // border: 1px solid #DBDBDB;
                  border-radius: 4px;
                  background: #ffffff;

                  picker {
                    width: 100%;
                    position: relative;

                    .picker {
                      width: 100%;
                      height: 20px;
                      padding: 0 20px 0 8px;
                      box-sizing: border-box;
                      // border: 1px solid #E6EAF2;
                      border-radius: 4px;
                      font-size: 14px;
                      display: flex;
                      justify-content: flex-end;
                      align-items: center;
                    }

                    .picker::after {
                      content: '';
                      width: 0;
                      height: 0;
                      border-top: 6px solid #636B83;
                      border-right: 6px solid transparent;
                      border-bottom: 6px solid transparent;
                      border-left: 6px solid transparent;
                      position: absolute;
                      top: 50%;
                      right: 6px;
                      transform: translateY(-2px);
                    }
                  }
                }

                >input {
                  width: 100%;
                  font-size: 14px;
                  text-align: right;
                }

                .unit {
                  width: 56rpx;
                  margin-left: 6px;
                  color: #636B83;
                  font-size: 24rpx;
                  white-space: nowrap;
                }
              }

              .num-val {
                width: 50%;
                display: flex;
                align-items: center;
                justify-content: flex-end;

                >input {
                  width: 50%;
                  text-align: center;
                }

                .up,
                .down {
                  width: 20px;
                  height: 20px;
                  line-height: 18px;
                  box-sizing: border-box;
                  border-radius: 50%;
                  border: 1px solid #C3CBE4;
                  color: #C3CBE4;
                  font-size: 18px;
                  font-weight: bold;
                  display: flex;
                  justify-content: center;
                  align-items: center;
                  // image {
                  //   width: 100%;
                  //   height: 100%;
                  //   display: block;
                  // }
                }
              }
            }

            .total-row {
              margin-top: 8px;
              display: flex;
              align-items: center;
              justify-content: space-between;

              .total {
                padding: 0 6px;
                color: #2E3A4F;
                font-size: 14px;
                display: flex;
                align-items: center;

                .num {
                  margin: 0 8px;
                  font-size: 16px;
                  font-weight: bold;
                }
              }

              .btn-del {
                padding: 2px 16px;
                background: #FFEEEE;
                border: 1px solid #FDD0DD;
                border-radius: 4px;
                color: #FA5955;
                font-size: 14px;
              }
            }
          }
        }

        .btn-show,
        .btn-hide {
          padding: 8px;
          color: #2F3B50;
          font-size: 14px;
          display: flex;
          justify-content: center;
          align-items: center;

          image {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            display: block;
          }
        }
      }

      >.row {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .label {
          color: #2F3B50;
          font-size: 14px;
        }

        .val {
          display: flex;
          align-items: center;

          >input {
            width: 100%;
            font-size: 14px;
            text-align: right;
          }

          .unit {
            width: 56rpx;
            margin-left: 6px;
            color: #636B83;
            font-size: 24rpx;
            white-space: nowrap;
          }
        }
      }

      .marker {
        padding: 12px 8px;
        border: 1px solid #E6EAF2;
        border-radius: 8px;
      }

      .upload {
        padding: 12px 0;
      }
    }

    .echoFile {
      display: flex;
      flex-wrap: wrap;
    }

    .photo-list {
      width: 64px;
      height: 64px;
      margin-left: 8px;
      border-radius: 4px;
      position: relative;

      image {
        width: 100%;
        height: 100%;
        display: block;
      }

      .del {
        width: 20px;
        height: 20px;
        position: absolute;
        top: -10px;
        right: -10px;

        image {
          width: 100%;
          height: 100%;
          display: block;
        }
      }
    }
  }

  .bottom {
    width: 100%;
    padding: 22px 10px;
    background: #fff;
    box-sizing: border-box;
    border-radius: 8px 8px 0 0;
    box-shadow: 0px -2px 12px 0px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 0;
    left: 0;

    .btn-box {
      width: 100%;
      display: flex;
      justify-content: space-between;

      .btn {
        width: calc(50% - 8px);
        height: 40px;
        background-color: #FFFFFF;
        line-height: 40px;
        border-radius: 8px;
        color: #2E3A4F;
        text-align: center;
        border: 1px solid #D6D6D6;
      }

      .apply {
        background: linear-gradient(90deg, #3B7CFC 0%, #548BFC 100%);
        color: #2E3A4F;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
      }
    }
  }

  .require {
    &::after {
      content: '*';
      width: 6px;
      height: 100%;
      color: red;
      margin-left: 8px;
      display: inline-block;
    }
  }

  .searchBox {
    position: absolute;
    width: 100%;
    left: 0;
    top: 80rpx;
    z-index: 63;
  }

  .arrow {
    width: 0;
    height: 0;
    border-left: 11rpx solid transparent;
    border-right: 11rpx solid transparent;
    border-top: 13rpx solid #636B83;
    margin-left: 18rpx;
  }

  .delete {
    width: 12px;
    height: 12px;
    margin-left: 8px;
  }

  .requireItem {
    &::before {
      content: '*';
      width: 6px;
      height: 100%;
      color: red;
      margin-right: 4px;
      display: inline-block;
    }
  }

  .picker {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
}