body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
.top-bar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding: 10px; }
.top-bar h1 { margin: 0; }
.top-bar h1 a { text-decoration: none; color: black; }
.needed { margin-top: 4px; font-size: 0.9em; }
.needed a { text-decoration: none; color: #d9534f; font-weight: bold; }
.top-links a { text-decoration: none; color: #0073e6; font-weight: bold; margin-left: 10px; }

form { padding: 0 10px; margin-bottom: 10px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px; border: 1px solid #ddd; text-align: center; }
th { background: #0073e6; color: white; }
tr:nth-child(even) { background: #f2f2f2; }
a.sort-link { color: white; text-decoration: none; }

@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { display: none; }
    tr { margin: 10px; border: 1px solid #ccc; padding: 10px; border-radius: 6px; }
    td { border: none; text-align: left; display: flex; justify-content: space-between; }
    td::before { content: attr(data-label); font-weight: bold; flex-basis: 40%; }
    input, select, button { width: 100%; margin-top: 5px; }
}
