*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Mukta, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #4f546c;
  font-size: 0.9rem;
  background-color: #f9fbff;
}

table {
  border-collapse: collapse;
  box-shadow: 0 5px 10px #e1e5ee;
  background-color: white;
  text-align: left;
  width: auto; /* Maintain the original size */
  max-width: 90%; /* Prevent it from overflowing the screen */
}

thead {
  background-color: #f4f6fb;
  position: sticky;
  top: 0; /* Keeps the header visible while scrolling */
}

th, td {
  padding: 1rem 2rem;
  text-transform: capitalize;
}

th {
  font-weight: 900;
}

a {
  text-decoration: none;
  color: #2962ff;
}

.status {
  border-radius: 0.2rem;
  padding: 0.2rem 1rem;
  text-align: center;
}

.status-paid {
  background-color: #c8e6c9;
  color: #388e3c;
}

tr:nth-child(even) {
  background-color: #f4f6fb;
}

.table-fixed {
  overflow-x: auto; /* Adds horizontal scrolling for small screens */
}

.table-fixed tbody {
  display: block;
  max-height: 300px; /* Maintain height to show 5 rows at a time */
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll in the body */
}

.table-fixed tr {
  display: table;
  width: 100%;
  table-layout: fixed; /* Ensure columns have consistent widths */
}

th, td {
  width: auto; /* Automatically adjust column width based on content */
}

td {
  text-overflow: unset;
  overflow: visible;
  white-space: normal;
  word-wrap: break-word; /* Ensures long words are wrapped */
}

