.page-order-all {
  .ant-drawer {
    .ant-drawer-header {
      padding: 14px 18px;
      border-bottom: 1px solid #f0f0f0;
    }

    .ant-drawer-body {
      padding: 16px 20px;
    }

    .ant-drawer-footer {
      padding: 12px 20px;
      border-top: 1px solid #f0f0f0;
    }
  }
}

.oa-section {
  margin-bottom: 22px;

  .oa-section-title {
    padding-left: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: rgb(0 0 0 / 88%);
    border-left: 3px solid #1677ff;
  }
}

.oa-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  font-size: 13px;

  .label {
    color: rgb(0 0 0 / 45%);
  }

  .full {
    grid-column: 1 / -1;
  }
}

.oa-order-no {
  font-family: ui-monospace, sfmono-regular, menlo, consolas, monospace;
}

.oa-detail-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;

  th {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgb(0 0 0 / 45%);
    text-align: left;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;

    &.right {
      text-align: right;
    }
  }

  td {
    padding: 8px 10px;
    color: rgb(0 0 0 / 88%);
    border-bottom: 1px solid #f5f5f5;

    &.right {
      text-align: right;
    }
  }
}

.oa-amount-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px 0;
  font-size: 13px;

  > div {
    display: flex;
    justify-content: space-between;
    color: rgb(0 0 0 / 65%);
  }

  .discount {
    color: #ff4d4f;
  }

  .total {
    padding-top: 8px;
    margin-top: 4px;
    font-weight: 600;
    color: rgb(0 0 0 / 88%);
    border-top: 1px solid #f0f0f0;

    span:last-child {
      font-size: 15px;
      color: #1677ff;
    }
  }
}

.oa-timeline {
  position: relative;
  padding-left: 22px;

  .oa-timeline-item {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 18px;
    font-size: 13px;

    &::before {
      position: absolute;
      top: 5px;
      left: -22px;
      width: 10px;
      height: 10px;
      content: '';
      background: #1677ff;
      border: 2px solid #d6e4ff;
      border-radius: 50%;
    }

    &::after {
      position: absolute;
      top: 17px;
      left: -18px;
      width: 2px;
      height: calc(100% - 12px);
      content: '';
      background: #e8e8e8;
    }

    &:last-child {
      padding-bottom: 0;

      &::after {
        display: none;
      }
    }

    .text {
      font-weight: 500;
      color: rgb(0 0 0 / 88%);
    }

    .time {
      color: rgb(0 0 0 / 45%);
    }
  }
}

.oa-remark {
  padding: 10px 14px;
  font-size: 13px;
  color: rgb(0 0 0 / 65%);
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}
