@import "mixins/mixins";
@import "common/var";

@include b(invoice-list) {
  p,
  ul {
    margin: 0;
    padding: 0;
    li {
      display: flex;
      align-items: center;
      list-style-type: none;
    }
  }
  font-size: $--invoice-font-size !important;
  color: $--invoice-list-color;
  @include scroll-bar-invoice;

  @include m(title) {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-size: 22px;
    font-weight: 700;
  }
  @include m(header) {
    li {
      margin-bottom: 8px;
    }
    :nth-child(1) {
      display: inline-block;
    }
    :nth-child(2) {
      display: flex;
      li:first-child {
        width: 37%;
      }
    }
  }
  @include m(content) {
    border-top: $--invoice-list-border-theme;
    border-right: $--invoice-list-border-theme;
    ul {
      min-height: 25px;
      line-height: 1;
      display: flex;
      li {
        display: flex;
        padding: 0 4px;
        box-sizing: border-box;
        word-break: break-all;
        border-left-color: #e5e5e5 !important;
      }
      :nth-child(n + 5) {
        justify-content: flex-end;
      }
      :nth-child(1) {
        width: 5%;
        justify-content: center;
        border-left: $--invoice-list-border-theme !important;
      }
      :nth-child(2) {
        width: 27%;
      }
      :nth-child(3) {
        width: 8%;
      }
      :nth-child(4) {
        width: 5%;
      }
      :nth-child(5) {
        width: 6%;
      }
      :nth-child(6) {
        width: 20%;
      }
      :nth-child(7) {
        width: 14%;
      }
      :nth-child(8) {
        width: 6%;
      }
      :nth-child(9) {
        width: 9%;
        box-sizing: border-box;
      }
      li {
        border-left: $--invoice-list-border-theme;
      }
    }
    @include e(bottom-two) {
      // border-left: $--invoice-list-border-theme;
      max-height: 24px !important;
      line-height: 24px !important;
      li {
        border: none;
      }
    }
    @include e(title) {
      min-height: $--invoice-row-height;
      li {
        border-bottom: $--invoice-list-border-theme;
        border-left: $--invoice-list-border-theme !important;
        justify-content: center !important;
      }
    }
    @include e(content) {
      box-sizing: border-box;
      border-bottom: $--invoice-list-border-theme;
      @include when(scroll) {
        overflow-y: scroll;
      }
    }
  }
  @include e(add-width) {
    width: calc(9% + 8px) !important;
  }

  @include m(bottom) {
    display: flex;
    min-height: $--invoice-row-height;
    line-height: $--invoice-row-height;
    border: $--invoice-list-border-theme;
    :nth-child(1) {
      width: 5%;
      text-align: center;
      border-right: $--invoice-list-border-theme;
    }
    :nth-child(2) {
      padding: 0 4px;
      width: 94%;
    }
  }

  @include m(footer) {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 0 0;
  }
}
