
table.list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}


/* body */

table.list > tbody > tr > td {
  padding: 0.6rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

table.list > tbody > tr:nth-child(odd) > td {
  background-color: #ffffff;
}

table.list > tbody > tr:nth-child(even) > td {
  background-color: #f9f9f9;
}

table.list > tbody > tr:hover > td {
  background-color: #e9f5e9;
}

table.list > tbody > tr > td > a {
  color: #2c5f2d;
  text-decoration: underline;
  text-decoration-color: #97bc62;
  margin: 0 0.3rem;
  transition: opacity 0.2s;
}

table.list > tbody > tr > td.action > a {
  font-size: 1.2rem;
  text-decoration: none;
}

table.list > tbody > tr > td > a:hover {
  opacity: 0.7;
}


/* header + footer */

table.list > thead > tr,
table.list > tfoot > tr {
  background: linear-gradient(135deg, #2c5f2d 0%, #4a8a4c 100%);
}

table.list > thead > tr {
  border-bottom: 2px solid #97bc62;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

table.list > tfoot > tr {
  border-top: 2px solid #97bc62;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

table.list > thead > tr:first-child > th:first-child {
  border-top-left-radius: 8px;
}

table.list > thead > tr:first-child > th:last-child {
  border-top-right-radius: 8px;
}

table.list > tfoot > tr:last-child > td:first-child {
  border-bottom-left-radius: 8px;
}

table.list > tfoot > tr:last-child > td:last-child {
  border-bottom-right-radius: 8px;
}

table.list > thead > tr > th,
table.list > tfoot > tr > td {
  color: #fff;
  font-weight: 600;
}

table.list > thead > tr > th {
  text-align: left;
  padding: 0.8rem;
}

table.list > tfoot > tr > td {
  text-align: center;
  padding: 0.2rem;
}

table.list > thead a:link,
table.list > thead a:visited,
table.list > thead a:active,
table.list > tfoot b,
table.list > tfoot a:link,
table.list > tfoot a:visited,
table.list > tfoot a:active {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 1rem;
  border-radius: 4px;
  border: 1px solid #1a3d1b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

table.list > thead a:hover,
table.list > tfoot b,
table.list > tfoot a:hover {
  background: #2c5f2d;
  border-color: #97bc62;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* navigation */

table.list tfoot table.navi {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.5rem;
  margin: 0;
}

table.list tfoot table.navi td {
  border: none;
  padding: 0;
}


@media (max-width: 768px) {
  table.list {
    font-size: 0.85rem;
    border-radius: 4px;
  }

  table.list tbody td {
    padding: 0.4rem 0.3rem;
    font-size: 0.85rem;
  }

  table.list thead th {
    padding: 0.5rem 0.4rem;
    font-size: 0.85rem;
  }

  table.list thead th a {
    padding: 0.2rem 0.3rem;
    font-size: 0.85rem;
  }

  table.list tfoot td {
    padding: 0.3rem 0.2rem;
  }

  table.list tfoot b,
  table.list tfoot a {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }

  table.list tfoot table.navi {
    border-spacing: 0.2rem;
  }

  table.list > tbody > tr > td > a {
    font-size: 0.85rem;
    margin: 0 0.2rem;
  }

  table.list > thead > tr:first-child > th:first-child {
    border-top-left-radius: 4px;
  }

  table.list > thead > tr:first-child > th:last-child {
    border-top-right-radius: 4px;
  }

  table.list > tfoot > tr:last-child > td:first-child {
    border-bottom-left-radius: 4px;
  }

  table.list > tfoot > tr:last-child > td:last-child {
    border-bottom-right-radius: 4px;
  }
}