.table {
  @apply bg-white w-full;

  thead {
    th {
      padding: 20px 18px;
      @apply font-bold align-middle text-left;
      &:first-child {
        min-width: 100px;
      }
      &:nth-child(2) {
        min-width: 150px;
      }
    }
  }

  tbody {
    border: none;
    padding: 0;
    margin: 0;
    td {
      @apply border-t border-border text-left align-middle;
      padding: "20px 18px";
    }
  }
}

.pagination {
  display: flex;
  justify-content: flex-end;
  background-color: rgba(255, 255, 255, var(--bg-opacity));
  border-top: 1px solid rgb(214, 213, 212);
  padding: 20px 40px 20px 0px;
  color: rgb(80, 90, 95);

  svg {
    fill: #505a5f;
    @apply ml-md;
  }
}

.pagination button:nth-child(1) span::after {
  content: "\f105";
}

.fullWidth {
  width: 100% !important;
}

.customTable {
  width: 100%;
  th {
    font-weight: bold;
  }

  th,
  td {
    text-align: left;
    border-bottom: 1px solid #b1b4b6;
    padding: 15px 10px;
  }

  tr:nth-child(odd) {
    background-color: #eeeeee;
  }
  tr:nth-child(even) {
    background-color: #fff;
  }

  thead {
    tr:first-child {
      background-color: unset;
    }
  }
}

.table-fixed-first-column {
  thead {
    th:first-child {
      position: sticky;
      background: #fff;
      left: 0;
      border-right: 1px solid #b1b4b6;
      border-top-left-radius: 4px;
    }
  }
  tbody {
    td:first-child {
      position: sticky;
      background: #fff;
      color:#a82227;
      left: 0;
      border-right: 1px solid #b1b4b6;
    }
  }
}
.table-fixed-column-common-pay {
  thead {
    th:first-child {
      position: sticky;
      background: rgb(238, 238, 238);
      left: 0;
      border-top-left-radius: 4px;
    }
    th:last-child {
      position: sticky;
      background: rgb(238, 238, 238);
      right: 0;
      border-top-left-radius: 4px;
    }
  }
  tbody {
    td:first-child {
      position: sticky;
      background: rgb(238, 238, 238);
      left: 0;
    }
    td:last-child {
      position: sticky;
      background: rgb(238, 238, 238);
      right: 0;
    }
  }
}

.table-fixed-first-second-column {
  thead {
    th:nth-child(2) {
      position: sticky;
      left: 0;
      background-color: white;
    }
  }
  tbody {
    td:nth-child(2) {
      position: sticky;
      left: 0;
      background-color: inherit;
    }
  }
}
.table-border-style {
  border: 1px solid #b1b4b6;
  border-radius: 4px;
  border-spacing: 0;
  border-collapse: separate;
}
.dss-table-wrapper {
  width: 100%;
  display: block;
  overflow-x: auto;
  table {
    th {
      .tooltip {
        min-width: 80px;
      }
    }
    tr {
      td {
        span {
          white-space: pre;
          min-width: 80px;
        }
      }
    }
  }
}

.reports-table {
  margin-top: 2rem;
  thead {
    th {      
      &:first-child {
        min-width: unset;
      }
    }
  }
}
