/* CSS เดิมคุณ (คัดมาเฉพาะส่วนสำคัญ) */
td[contenteditable="true"] {
    background-color: #ffffcc; /* สีพื้นหลังเมื่อเซลล์สามารถแก้ไขได้ */
}
.table-container {
    margin-top: 30px;
}
.btn-container {
    margin-bottom: 20px;
}
.dropdown-item:hover {
    background-color: #d4edda; /* สีเขียวอ่อน */
    color: #155724; /* เขียวเข้ม */
}
#summaryTable {
    font-size: 16px !important; /* ปรับขนาดตัวอักษรในตารางให้ใหญ่ขึ้น */
}
#summaryTable th, #summaryTable td {
    padding: 10px;
    text-align: center;
}
/* ปรับให้คอลัมน์ชื่อ (คอลัมน์ที่ 3) ชิดซ้าย */
#summaryTable td:nth-child(3),
#summaryTable th:nth-child(3) {
    text-align: left !important;
}
/* สีพื้นหลังของแถวตารางเมื่อชี้เมาส์ไป */
#summaryTable tr:hover {
    background-color: #f1f1f1;
}
/* ปรับสีของหัวตารางและทำให้ sticky */
#summaryTable th {
    background-color: #4CAF50;
    color: white;
    position: sticky; /* ทำให้หัวตารางติดอยู่ */
    top: 0; /* ติดที่ด้านบน */
    z-index: 10; /* ให้หัวตารางอยู่บนสุด */
}
/* ปรับสีของแถวหลัก */
#summaryTable td {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ddd; /* เส้นขอบสีเทาอ่อน */
}
/* CSS ส่วนอื่นๆ ของคุณ (ยังคงเหมือนเดิม) */
.top-area {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.dataTables_length, .dataTables_filter {
    margin-bottom: 0;
}

.card-primary {
    padding: 10px; /* เพิ่มระยะห่างภายในการ์ด */
}
#summaryTablereport {
    font-size: 10px;
    border-collapse: collapse;
    width: 100%;
}
#summaryTablereport th, #summaryTable td {
    padding: 5px;
    text-align: center;
}
#summaryTablereport tr:hover {
    background-color: #f1f1f1;
}
#summaryTablereport th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
#summaryTablereport td {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ddd;
}
#summaryTablereport tbody td:nth-last-child(1),
#summaryTablereport tbody td:nth-last-child(2),
#summaryTablereport tbody td:nth-last-child(3) {
    background-color: #eaf8e1;
    font-weight: bold;
}
#summaryTablereport tr:nth-child(even) {
    background-color: #f9f9f9;
}
.dt-button.buttons-copy {
    background-color: #4CAF50 !important;
    color: white !important;
}
.dt-button.buttons-excel {
    background-color: #FF9800 !important;
    color: white !important;
}
.dt-button.buttons-print {
    background-color: #2196F3 !important;
    color: white !important;
}
.dt-buttons .btn {
    margin-right: 5px;
}
.approve {
    background-color: #28a745;
    color: white;
}
.approve:hover {
    background-color: #218838;
}
.reject {
    background-color: #dc3545;
    color: white;
}
.reject:hover {
    background-color: #c82333;
}
form {
    display: inline-block;
}
.dropdown-item:hover {
    background-color: #d4edda;
    color: #155724;
}
.highlight-row {
    background-color: #ffff99 !important;
}
