/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
h1 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #555;
}

/* Table container for responsiveness */
.table-container {
    margin: 20px auto;
    max-width: 90%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

/* Table styling */
table {
    width: 100%;
    border-spacing: 0; /* ป้องกันช่องว่างระหว่างเซลล์ */
    border-collapse: separate; /* เปลี่ยนจาก collapse เป็น separate */
    border: 1px solid #ddd; /* เส้นขอบของตาราง */
}

thead {
    background-color: #f0cc15;
    color: #000;
}

thead th {
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-right: 1px solid #ddd; /* เส้นคั่นคอลัมน์ */
}

thead th:last-child {
    border-right: none; /* ไม่มีเส้นในคอลัมน์สุดท้าย */
}

tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

tbody td {
    padding: 10px;
    text-align: center; /* จัดกึ่งกลาง */
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

tbody td:last-child {
    border-right: none; /* ไม่มีเส้นในคอลัมน์สุดท้าย */
    text-align: center;
}

tfoot td {
    font-weight: bold;
    border-top: 2px solid #f0cc15;
    border-right: 1px solid #ddd;
    text-align: center; /* จัดให้อยู่กึ่งกลาง */
}

tfoot td:last-child {
    border-right: none; /* ไม่มีเส้นในคอลัมน์สุดท้าย */
}

/* Link styles */
a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Button styles */
button {
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 14px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
