.search-field__result-wrapper {
  position: absolute;

  left: 0;
  bottom: 12px;

  transform: translateY(100%);

  display: none;

  width: 100%;

  padding-top: 12px;
  padding-left: 16px;
  padding-right: 16px;

  border-left: 1px solid #0068ff;
  border-right: 1px solid #0068ff;
  border-bottom: 1px solid #0068ff;

  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;

  background-color: #ffffff;

  &.search-field__result-wrapper--active {
    display: block;
  }

  ul {
    height: 104px;

    margin: 0;
    padding: 16px 0;

    border-top: 1px solid #d9dfec;

    list-style: none;
    overflow-y: auto;

    li + li {
      margin-top: 12px;
    }
    li {
      font-size: 14px;
      font-weight: 400;

      letter-spacing: -0.56px;
      line-height: 1;

      color: #5b6371;
    }
  }
}

/* index.html start */
body#page-search {
  display: flex;
  align-items: center;

  height: 100%;

  padding: 16px;

  background-color: #f5f6f8;

  #search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 20px;

    width: 100%;
  }

  .button-scan {
    background-color: transparent;
    border: none;
  }
}
/* index.html end */

/* scan.html start */
body#page-scan {
  display: flex;
  flex-direction: column;

  height: 100%;

  .scan-content {
    display: flex;
    align-items: center;

    width: 100%;
    flex-grow: 1;

    padding: 28px;

    background-color: #00000099;

    .scan-area {
      aspect-ratio: 1;
      width: 100%;

      background-color: #d9d9d9;
      border-radius: 24px;
    }
  }

  .bottom-area {
    flex-shrink: 0;

    width: 100%;
    height: 80px;

    background-color: #000000;
  }
}
/* scan.html end */

/* purchase common components start */
#search-purchase {
  padding: 16px;

  border-bottom: 4px solid #e4e8f1;
}
.purchase-list-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 8px;

  padding: 16px;

  .purchase-list-item {
    width: 100%;

    padding: 8px 12px;

    border: 1px solid #d9dfec;
    border-radius: 16px;

    background-color: #ffffff;

    &.purchase-list-item--selected {
      background-color: #0068ff0d;
      border-color: #0068ff;
    }

    .purchase-list-item__title {
      width: 100%;

      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

      font-size: 15px;
      font-weight: 500;
      line-height: 1;
      letter-spacing: -0.6px;
      color: #000000;
    }
    .purchase-list-item__divider {
      width: 100%;

      margin: 8px 0;

      border-top: 1px solid #d9dfec;
    }
    .purchase-list-item__summary {
      display: flex;
      align-items: center;
      gap: 8px;

      .purchase-list-item__summary__divider {
        width: 1px;
        height: 12px;

        background-color: #cdcdcd;
      }
      .purchase-list-item__summary__project {
        flex-grow: 1;

        font-weight: 400;
        font-size: 14px;
        line-height: 14px;
        letter-spacing: -0.56px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        color: #5b6371;
      }
      .purchase-list-item__summary__date {
        display: flex;
        gap: 4px;

        align-items: center;

        flex-shrink: 0;

        padding-right: 8px;

        font-weight: 500;
        font-size: 14px;
        line-height: 1;
        letter-spacing: -0.56px;

        color: #000000;

        img {
          flex-shrink: 0;
        }
      }

      .purchase-list-item__summary__quantity {
        display: flex;
        align-items: center;

        gap: 8px;

        flex-grow: 1;

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

          font-weight: 400;
          font-size: 14px;
          line-height: 14px;
          letter-spacing: -0.56px;

          color: #5b6371;

          .quantity__item__icon {
            margin-right: 2px;
          }

          .quantity__item__count {
            min-width: 16px;

            font-weight: 500;

            text-align: center;

            color: #000000;
          }
        }
      }

      .purchase-list-item__summary__badge {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 24px;

        border: 1px solid #d9dfec;
        border-radius: 4px;

        background-color: #ffffff;

        font-weight: 500;
        font-size: 13px;
        line-height: 1;
        letter-spacing: -0.52px;
        text-align: center;

        color: #5b6371;

        &.purchase-list-item__summary__badge--success {
          background-color: #d9dfec;
          border-color: #aeb7c6;

          color: #717b8a;
        }
        &.purchase-list-item__summary__badge--warn {
          background-color: #ff4c4c1a;
          border-color: #ff4c4c;

          color: #ff4c4c;
        }
      }
    }
  }
}
/* purchase common components end */

/* purchase-list.html start */
body#page-purchase-list {
  background-color: #f5f6f8;
}
/* purchase-list.html end */

/* purchase-info.html start */
body#page-purchase-info {
  background-color: #f5f6f8;

  #purchase-info {
    width: 100%;

    background-color: #ffffff;

    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;

    .purchase-info__header {
      display: flex;
      justify-content: space-between;
      align-items: center;

      padding: 16px 24px;

      width: 100%;
      height: 64px;

      cursor: pointer;

      &.purchase-info__header--active {
        .purchase-info__header__icon {
          transform: rotate(180deg);
        }
      }

      .purchase-info__header__title {
        font-weight: 700;
        font-size: 18px;

        line-height: 1;
        letter-spacing: -0.72px;

        color: #000000;
      }
      .purchase-info__header__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        width: 32px;
        height: 32px;

        border: 1px solid #d9dfec;
        border-radius: 50%;

        transition: transform 0.2s ease-in-out;

        img {
          width: 8px;
        }
      }
    }

    .purchase-info__content {
      display: flex;
      flex-direction: column;
      gap: 24px;

      width: 100%;

      padding: 0 16px 24px 16px;

      .purchase-info__table-wrapper {
        border: 1px solid #c2cadb;
        border-radius: 16px;

        overflow: hidden;

        table {
          width: 100%;

          border-collapse: collapse;

          tr {
            height: 40px;

            font-size: 13px;

            line-height: 1;
            text-align: left;
            letter-spacing: -0.52px;

            &:not(:last-child) {
              border-bottom: 1px solid #c2cadb;
            }

            th {
              width: 120px;

              padding: 0 16px;

              font-weight: 500;
              color: #000;

              background-color: #f5f6f8;
            }
            td {
              padding: 0 16px;

              color: #383d48;
            }
          }
        }
      }

      .purchase-status {
        padding: 0 8px;

        .purchase-status__subheader {
          margin-bottom: 12px;

          font-weight: 700;
          font-size: 16px;

          line-height: 16px;
          letter-spacing: -0.56px;

          color: #282e3e;
        }

        .purchase-status__content {
          display: flex;
          align-items: center;
          justify-content: space-between;

          gap: 8px;

          padding: 12px;

          width: 100%;
          height: 40px;

          background-color: #ffffff;

          border: 1px solid #d9dfec;
          border-radius: 12px;

          .purchase-status__content__item__divider {
            flex-shrink: 1;

            width: 1px;
            height: 12px;

            background-color: #cdcdcd;
          }

          .purchase-status__content__item {
            display: flex;
            align-items: center;

            gap: 8px;

            width: 90px;

            .purchase-status__content__item__title {
              font-weight: 400;
              font-size: 15px;
              line-height: 1;
              letter-spacing: -0.6px;
            }
            .purchase-status__content__item__value {
              width: 50px;

              text-align: center;

              font-weight: 500;
              font-size: 14px;
              line-height: 1;
              letter-spacing: -0.56px;
            }
          }
        }
      }
    }
  }

  #search-purchase {
    .search-actions {
      display: flex;
      justify-content: space-between;

      gap: 8px;

      margin-top: 8px;

      .button-action {
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 4px;

        flex-grow: 1;

        width: 100%;
        height: 40px;

        padding: 0 14px;

        border: 1px solid #c2cadb;
        border-radius: 12px;

        background-color: #ffffff;

        span {
          font-weight: 400;
          font-size: 15px;
          line-height: 1;
          letter-spacing: -0.6;
          text-align: center;

          color: #000000;

          white-space: nowrap;
        }
      }
    }
  }

  .purchase-list-item-wrapper {
    display: flex;
    align-items: center;

    gap: 4px;

    width: 100%;

    .purchase-list-item {
      max-width: calc(100% - 24px);
    }
  }
}
/* purchase-info.html end */
