.table-wrapper {
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Table controls & footer */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 10px;
  margin-top: 0;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 10px;
  margin-top: 10px;
}
.table-controls select,
.table-controls input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Table wrapper for scrollable body */
.table-scroll {
  width: 100%;
  overflow-x: auto; /* only horizontal scroll for table */
}

/* Actual table */
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* ensures horizontal scroll if table wider than container */
}

th, td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}

th {
  background: #f4f4f4;
  cursor: pointer;
  position: relative;
}

th.asc::after {
  content: "▲";
  position: absolute;
  right: 8px;
  font-size: 12px;
}

th.desc::after {
  content: "▼";
  position: absolute;
  right: 8px;
  font-size: 12px;
}

tr:nth-child(even) {
  background: #fafafa;
}
tbody, td, tfoot, th, thead, tr {
    border-bottom: 1px solid;
    border-color: #dddddd80;
}
/* Pagination */
.pagination {
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.pagination li a {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.pagination li a.active,
.pagination li a:hover {
  background: #007bff;
  color: #fff;
}

.table-info {
  font-size: 14px;
}
