@import 'mixins/mixins';
@import 'common/var';

@include b(invoice-air) {
  color: $--invoice-title-color-10;
  position: relative;
  table {
    width: 100%;
    padding: 2px;
  }
  tr {
    min-height: 32px;
    border: 1px solid $--invoice-title-color-10;
    &:nth-last-child(-n + 3) {
      height: 38px;
      line-height: 38px;
    }
    // 排除第2行和最后1行，其他行取消 border-bottom
    &:not(:nth-child(2)):not(:last-child) {
      border-bottom: none;
    }
    // 排除最后3行的td
    &:not(:nth-last-child(-n + 3)) {
      td {
        display: flex;
        flex-direction: column;
        border-left: 1px solid $--invoice-title-color-10;
      }
    }
    td:nth-child(1) {
      padding: 0 10px;
      border-left: none;
    }
  }
  td {
    padding: 0 4px;
    box-sizing: border-box;
    span {
      &:nth-child(odd) {
        color: $--invoice-title-color-10;
      }
      &:nth-child(even) {
        color: $--invoice-value-color-03;
      }
    }
  }
}
@include b(invoice-air-qrcode) {
  width: 50px;
  height: 50px;
  position: absolute;
  left: -60px;
  bottom: 12px;
}
@include b(invoice-air-header) {
  height: 86px;
  position: relative;
  display: flex;
  header {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
  }
  article {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 4px;
    section {
      position: relative;
      line-height: 36px;
      margin-bottom: -14px;
    }
    div {
      span:nth-child(odd) {
        color: $--invoice-title-color-10;
      }
      span:nth-child(even) {
        color: $--invoice-value-color-03;
      }
    }
  }
  @include m(title) {
    margin-bottom: 10px;
    font-size: 20px !important;
  }
}
@include b(invoice-air-msg) {
  @include m(row) {
    display: flex;
  }
  @include m(row1) {
    height: 70px;
    td {
      line-height: 24px;
    }
  }
  @include m(row2) {
    line-height: 32px;
    text-align: center;
    letter-spacing: -1px;
  }
  @include m(row3) {
    line-height: 28px;
    letter-spacing: -0.6px;
    td:not(:nth-child(1)) {
      text-align: center;
      color: $--invoice-value-color-03;
    }
    border-top: none !important;
  }
  @include m(row4) {
    height: 38px;
    letter-spacing: -1px;
    border-top: none !important;
    td:not(:nth-child(1)) {
      border-top: 1px solid $--invoice-title-color-10;
    }
    span:nth-child(2) {
      margin-top: 6px;
      text-align: center;
    }
  }
  @include m(btn) {
    width: fit-content;
    height: fit-content;
    line-height: 16px;
    padding: 5px 24px;
    box-sizing: border-box;
    border-radius: 2px;
    color: #fff !important;
    cursor: pointer;
    background-color: $--invoice-title-color-10;
  }

  @include m(row1_1) {
    width: 25%;
  }
  @include m(row1_2) {
    width: 33%;
  }
  @include m(row1_3) {
    width: 42%;
  }

  @include m(row2_1) {
    width: 21%;
  }
  @include m(row2_2) {
    width: 7%;
  }
  @include m(row2_3) {
    width: 8%;
  }
  @include m(row2_4) {
    width: 7.5%;
  }
  @include m(row2_5) {
    width: 8.5%;
  }
  @include m(row2_6) {
    width: 7%;
  }
  @include m(row2_7) {
    width: 14%;
  }
  @include m(row2_8) {
    width: 10%;
  }
  @include m(row2_9) {
    width: 10%;
  }
  @include m(row2_10) {
    width: 7%;
  }

  @include m(row3_1) {
    width: 21%;
  }
  @include m(row3_2) {
    width: 7%;
  }
  @include m(row3_3) {
    width: 8%;
  }
  @include m(row3_4) {
    width: 7.5%;
  }
  @include m(row3_5) {
    width: 8.5%;
  }
  @include m(row3_6) {
    width: 7%;
  }
  @include m(row3_7) {
    width: 14%;
  }
  @include m(row3_8) {
    width: 10%;
  }
  @include m(row3_9) {
    width: 10%;
  }
  @include m(row3_10) {
    width: 7%;
  }

  @include m(row4_1) {
    width: 21%;
  }
  @include m(row4_2) {
    width: 12%;
  }
  @include m(row4_3) {
    width: 10.5%;
  }
  @include m(row4_4) {
    width: 8.5%;
  }
  @include m(row4_5) {
    width: 9.5%;
  }
  @include m(row4_6) {
    width: 10.5%;
  }
  @include m(row4_7) {
    width: 11%;
  }
  @include m(row4_8) {
    width: 17%;
  }

  @include m(row5_1) {
    width: 32%;
    letter-spacing: -0.8px;
  }
  @include m(row5_2) {
    width: 16%;
  }
  @include m(row5_3) {
    width: 35%;
  }
  @include m(row5_4) {
    width: 17%;
    border-left: 1px solid $--invoice-title-color-10;
  }

  @include m(row6_1) {
    width: 32%;
    letter-spacing: -0.8px;
  }
  @include m(row6_2) {
    width: 49%;
  }
  @include m(row6_3) {
    width: 19%;
  }

  @include m(row7_1) {
    width: 51.5%;
  }
  @include m(row7_2) {
    width: 48.5%;
  }
}
