table {
  border: 1px solid var(--ntl-5);
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  table-layout: fixed;
}

table tr {
  border: 1px solid var(--ntl-5);
  padding: 0.35em;
}

table thead td {
  padding: 0.625em;
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: bold;
  text-wrap: nowrap;
}

table tbody td {padding: 0.625em}

@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table tr {
    display: block;
    margin-bottom: 0.625em;
  }

  table tbody td {
    border-bottom: 1px solid var(--ntl-5);
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    text-align: right;
    padding: 0.625em;
  }

  table tbody td::before {
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
    flex-shrink: 0;
    padding-right: 1em;
  }

  table tbody tr td:nth-child(1)::before {
    content: "Nr.";
  }

  table tbody tr td:nth-child(2)::before {
    content: "Cod CAEM";
  }

  table tbody tr td:nth-child(3)::before {
    content: "Denumirea activității";
  }

  table tbody tr td:nth-child(3) {
    flex-direction: column;
    text-align: left;
  }

  table tbody tr td:nth-child(3)::before {
    padding-right: 0;
    margin-bottom: 0.5em;
  }

  table tbody td:last-child {
    border-bottom: 0;
  }
}

