/* ปุ่มเข้าสู่ระบบ */
.login-btn {
    float: right;
    margin: 10px;
  }
  
  /* ส่วนตัวเลือกกรอง */
  .filters {
    display: flex;              /* ใช้ flexbox layout */
    align-items: center;        /* จัดเรียงแนวตั้งให้อยู่ตรงกลาง */
    justify-content: space-between; /* กระจายพื้นที่ระหว่างส่วนที่เหลือ */
    flex-wrap: wrap;            /* รองรับกรณีที่หน้าจอเล็ก */
    margin-bottom: 10px;
  }
  
  .left-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;            /* ปรับให้อยู่บรรทัดเดียว ถ้าเป็นไปได้ */
    gap: 10px;
  }
  
  .right-search {
    margin-left: auto;
  }
  
  .right-search input[type="text"] {
    padding: 4px;
    width: 250px;
  }
  
  /* ปุ่มค้นหาข้อความ */
  #tableSearch {
    margin-left: 10px;
    padding: 4px;
    width: 250px;
  }
  
  /* ตารางประกาศแบบ fixed layout */
  table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 20px;
  }
  
  table th, table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
  }
  
  table th {
    background-color: #f5f5f5;
  }
  
  /* กำหนดความกว้างคอลัมน์แบบ fix */
  table th:nth-child(1) { width: 15%; }
  table th:nth-child(2) { width: 10%; }
  table th:nth-child(3) { width: 10%; }
  table th:nth-child(4) { width: 15%; }
  table th:nth-child(5) { width: 35%; }
  table th:nth-child(6) { width: 15%; }
  
  /* สไตล์สำหรับ ebook popup */
  #ebookDialog {
    display: none;
  }

  #pdf-controls button {
    margin: 0 5px;
  }
  
  /* Canvas สำหรับ PDF */
  #pdf-canvas {
    border: 1px solid #ccc;
    display: block;
    margin: auto;
    transition: opacity 0.5s ease; /* ใช้ fade effect โดยปรับ opacity */
    opacity: 1;
  }
