body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #ffffff;
}

.container {
    max-width: 100%; /* Full width for mobile */
    margin: 10px auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff; /* White content background */
}

h1 {
    text-align: center;
    font-size: 1.5rem; /* Adjusted for mobile */
    color: #333;
}

#searchInput {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

button {
    margin-right: 5px;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    background-color: #333;
    color: #FEF200; /* Yellow text */
    font-size: 0.9rem;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

/* Highlight active button */
button.sortbtn-active {
    background-color: #FEF200; /* Yellow background */
    color: #333; /* Dark text */
    font-weight: bold; /* Emphasize active button */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem; /* Adjusted for compact view */
}

table, th, td {
    border: 1px solid #ccc;
}

/* Prevent line breaks and truncate long text */
th, td {
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Add ellipsis (...) for truncated text */
}

th, td {
    padding: 2px; /* Compact padding */
    text-align: left;
}

th {
    background-color: #FEF200; /* Yellow header */
    color: #333;
}

/* Ensure consistent borders for two-line cells */
td:nth-child(2)::after, td:nth-child(4)::after {
    border: none; /* Remove any borders */
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    display: block; /* Ensure block display */
    box-sizing: border-box; /* Include padding and border in width/height */
}
