body {
    font-family: 'Prompt', sans-serif;
} 
/* กำหนดให้ตัวเนื้อหาสามารถเลื่อนดูได้ */
.content {
    overflow-y: auto; /* ทำให้มีการเลื่อนแนวตั้ง */
    margin-bottom: 80px; /* ระยะห่างจากเมนูด้านล่าง */
    padding: 20px; /* เพิ่มช่องว่างรอบเนื้อหา */
}

.a {
    text-decoration: none;
    color: #000000;
}
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
}

.table td {
    background-color: #ffffff;
}




.menu-toggle {
    display: none;
    background-color: #5D4174;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 25px;
    font-size: 20px;
    cursor: pointer;
}

.btn-container {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.btn-group {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-app {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    color: white;
    background-color: #5D4174;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, font-size 0.3s;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 600px) {
    .btn-container {
        max-height: 200px;
    }

    .menu-toggle {
        display: block;
    }

    .menu-logo {
        display: none;
    }

    .btn-container.collapsed + .menu-logo {
        display: block;
    }
}

@media (min-width: 601px) {
    .btn-container {
        max-height: none;
    }

    .menu-toggle {
        display: none;
    }

    .menu-logo {
        display: none;
    }
}

/* Media Queries for different screen sizes */
@media (max-width: 768px) {
    .table th, .table td {
        font-size: 0.9em; /* Reduce font size for tablets and small screens */
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .table th, .table td {
        font-size: 0.8em; /* Further reduce font size for mobile screens */
        padding: 4px;
    }
}

.table-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.table-header, .table-row {
    display: flex;
    flex-direction: row;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table-header div, .table-row div {
    flex: 1;
    text-align: left;
    padding: 5px;
}

.table-header {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-row:nth-child(even) {
    background-color: #f9f9f9;
}

/* Media Queries for different screen sizes */
@media (max-width: 768px) {
    .table-header div, .table-row div {
        font-size: 0.9em; /* Reduce font size for tablets and small screens */
    }
}

@media (max-width: 480px) {
    .table-header div, .table-row div {
        font-size: 0.8em; /* Further reduce font size for mobile screens */
    }
}
@media print {
    .print-button, .no-print {
        display: none;
    }
    .header, .footer {
        width: 100%;
        left: 0;
    }

    .header {
        top: 0;
        height: 100px; /* Adjust the height as needed */
    }

    .footer {
        bottom: 0;
        height: 50px; /* Adjust the height as needed */
    }
    body {
        margin-top: 0px; /* Adjust according to header height */
        margin-bottom: 70px; /* Adjust according to footer height */
    }
}

.search-container {
    display: flex;
    margin-bottom: 10px;
    padding: 0 15px;
    gap: 10px; /* ระยะห่างระหว่าง input และปุ่ม */
}

.search-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    flex: 1; /* ทำให้ input ขยายเต็มพื้นที่ที่เหลือ */
    box-sizing: border-box; /* ทำให้ padding รวมอยู่ใน width */
}

.search-button {
    padding: 8px 16px;
    background-color: #5D4174;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap; /* ป้องกันปุ่มขยายเต็ม */
}

.search-button:hover {
    background-color: #4b3563;
}

.bottom-menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fcfcfc;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000; /* ให้เมนูอยู่เหนือเนื้อหา */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}



.menu-item {
    text-align: center;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    flex: 1;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 5px;
}

.center {
    position: absolute; /* เปลี่ยนตำแหน่งให้คงที่ */
    top: -20px;
    width: 60px;
    height: 60px;
    background-color: #5D4174;
    border-radius: 50%;
    display: flex;
    flex-direction: column; /* เปลี่ยนเป็นแนวตั้ง */
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.center span {
    font-size: 12px;
    text-align: center;
    display: block;
}

.center .menu-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0px; /* เอา margin-bottom ออกเพื่อให้ไอคอนอยู่ตรงกลาง */
}
.top-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1000; /* ให้แน่ใจว่าเมนูอยู่ด้านบนสุด */
}

.top-menu img {
    height: 40px; /* ขนาดของโลโก้ */
}
.item-container {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.item-time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

a {
    text-decoration: none; /* ไม่แสดงเส้นใต้ */
    color: #e41576; /* กำหนดสีลิงก์ */
}

a:hover {
    text-decoration: none; /* แสดงเส้นใต้เมื่อเอาเมาส์ไปชี้ */
    color: #934260; /* สีของลิงก์เมื่อเอาเมาส์ไปชี้ */
}

