

    /* Custom size text Datatables */
    table.dataTable tbody td {
        font-size: 16px;
        /* ปรับขนาด font ของแถว */
    }

    table.dataTable thead th {
        font-size: 15px;
        /* ปรับขนาด font ของหัวตาราง */
    }


    /* จอเล็ก */
@media (max-width: 767.98px) {

    /* Search เต็มบรรทัด */
    .dt-search input {
      width: 100% !important;
    }
  
    /* ปุ่ม Export / Columns เต็มความกว้าง */
    .dt-buttons .btn {
      width: 100%;
    }
  
    /* spacing ระหว่าง block */
    .dt-layout-row > div {
      margin-bottom: .5rem;
    }
  }



    /* ========== CSS for loadFiles() preview ========== */
    /* ✅ Card สำหรับ thumbnail preview */
    .cardCustom {
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* ✅ พื้นที่ thumbnail (image / icon) */
    .cardCustom a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 130px;
        background: #f9f9f9;
        border-bottom: 1px solid #eee;
        overflow: hidden;
    }

    /* ✅ รูปจริง (image, screenshot) แบบเต็มการ์ด */
    .cardCustom a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 0 10px 10px;
    }

    /* ✅ ไอคอน (PDF, Word, Excel, VDO) */
    .cardCustom a.file-icon img {
        width: 60%;
        height: auto;
        margin-top: 2px;
        object-fit: contain;
    }

    /* ✅ ปุ่ม delete */
    .cardCustom .loadFilesDeleteBtn {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border: none;
        background: #dc3545;
        color: #fff;
        width: 100%;
        padding: 5px 0;
        font-size: 16px;
        cursor: pointer;
        border-radius: 0 0 10px 10px;
    }

    .cardCustom .loadFilesDeleteBtn:hover {
        background-color: #c9302c;
    }


    


    /* ========== CSS for loadFile Form2 preview ========== */
    .file-row {
        width: 100%;
        margin-bottom: 20px;
    }

    .file-group-header {
        font-weight: 500;
        padding: 8px 15px;
        border-radius: 8px 8px 0px 0px;
        margin-bottom: 6px; 
        font-size: 15.5px;
        text-align: left;
    }

    .file-group-body {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 11px;
    }

    .file-box {
        position: relative;
        width: 100px;
        height: 100px;
        text-align: center;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.2s ease-in-out;
    }

    .file-box:hover {
        transform: translateY(-3px);
    }

    /* ✅ รูปจริง (image, screenshot) แบบเต็มการ์ด */
    .file-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 0 10px 10px;
    }

    /* ✅ ไอคอน (PDF, Word, Excel, VDO) */
    /* .file-box a.file-icon img {
        width: 70%;
        height: auto;
        margin-top: 2px;
        object-fit: contain;
    } */

    /* ===== ICON เต็ม card (readonly = true) ===== */
    .file-box a.file-icon-full img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* padding: 18px; */
    }
    
    
    /* ===== ICON เล็ก (readonly = false) ===== */
    .file-box a.file-icon-small img {
        width: 70%;
        height: auto;
        margin-top: 5px;
        object-fit: contain;
    }

    /* ✅ ปุ่ม delete */
    .file-box button {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border: none;
        background: #dc3545;
        color: #fff;
        width: 100%;
        padding: 5px 0;
        font-size: 16px;
        cursor: pointer;
        border-radius: 0 0 10px 10px;
    }




    
    /* ✅ Base style */
    .bottom-bar {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: -80px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
        z-index: 1050;
        padding: 8px 0;
        opacity: 0;
    }

    /* แสดง (เด้งขึ้นนิด ๆ) */
    .bottom-bar.show {
        animation: slideUp 0.6s ease-out forwards;
    }

    /* ซ่อน (เลื่อนลงนิ่ม ๆ) */
    .bottom-bar.hide {
        animation: slideDown 0.4s ease-in forwards;
    }

    @keyframes slideUp {
        0% {
            bottom: -80px;
            opacity: 0;
        }

        70% {
            bottom: 35px;
            opacity: 1;
        }

        100% {
            bottom: 30px;
            opacity: 1;
        }
    }

    @keyframes slideDown {
        0% {
            bottom: 30px;
            opacity: 1;
        }

        100% {
            bottom: -80px;
            opacity: 0;
        }
    }

    /* ✅ Mobile */
    @media (max-width: 768px) {
        .bottom-bar {
            width: 85%;
        }
    }

    /* ✅ Desktop */
    @media (min-width: 769px) {
        .bottom-bar {
            width: 50%;
        }
    }





    /* Variable Font size */
    .fs-15 {
        font-size: 15px;
    }

    .fs-16 {
        font-size: 16px;
    }

    .fs-17 {
        font-size: 17px;
    }

    .fs-18 {
        font-size: 18px;
    }

