Table has border using colspan

by KhuyenNH

HTML

<div class="wrap">
  <table>
    <thead>
      <tr>
        <th>Hích đờ</th>
        <th>Hích đờ</th>
        <th>Hích đờ</th>
        <th>Hích đờ</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td rowspan="3">ahihi x 3,14</td>
        <td rowspan="3">ahihi x 3,14</td>
        <td>ahihi x 3,14</td>
        <td>ahihi x 3,14</td>
      </tr>
      <tr>
        <td>ahihi x 3,14</td>
        <td>ahihi x 3,14</td>
      </tr>
      <tr>
        <td>ahihi x 3,14</td>
        <td>ahihi x 3,14</td>
      </tr>
      <tr>
        <td rowspan="3">ahihi x 3,14</td>
        <td rowspan="3">ahihi x 3,14</td>
        <td>ahihi x 3,14</td>
        <td rowspan="3">ahihi x 3,14</td>
      </tr>
      <tr>
        <td>ahihi x 3,14</td>
      </tr>
      <tr>
        <td>ahihi x 3,14</td>
      </tr>
    </tbody>
  </table>
</div>

SCSS

@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
  padding: 0px 40px;
  background-image: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
}

.wrap {
  flex: 1;
  border: 2px solid #36304a;
  border-radius: 5px;
  overflow: hidden;
}

table {
  width: 100%;
  
  tr {
    &:not(:last-child) {
      td {
        border-bottom: 1px dashed #9a3232;
      }
    }
    
    &:nth-last-child(3) {
      td[rowspan] {
        border-bottom: 0;
      }
    }    
  }
  
  td {
    padding: 10px 20px;
    background: rgba(#fff, .9);
  }
  
  th {
    padding: 20px;
    color: white;
    background: #36304a;
  }
  
  td, th {
    &:not(:last-child) {
      border-right: 1px solid #36304a;
    }
  }
}