@font-face {
    font-family: 'DB_Heavent';
    font-style: normal;
    font-weight: normal;
    src: local("DB_Heavent"),
        url('../fonts/DB-Heavent-v3.2.1.ttf') format('truetype');
}

@font-face {
    font-family: 'DB_Heavent_Li';
    font-style: normal;
    font-weight: normal;
    src: local("DB_Heavent_Li"),
        url('../fonts/DB-Heavent-Li-v3.2.1.ttf') format('truetype');
}

@font-face {
    font-family: 'DB_Heavent_Med';
    font-style: normal;
    font-weight: normal;
    src: local("DB_Heavent_Med"),
        url('../fonts/DB-Heavent-Med-v3.2.1.ttf') format('truetype');
}


@font-face {
    font-family: 'DB_Heavent';
    src: local("DB_Heavent"),
        url('../fonts/DB-Heavent-v3.2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'DB_Heavent_Li';
    src: local("DB_Heavent_Li"),
        url('../fonts/DB-Heavent-Li-v3.2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'DB_Heavent_Med';
    src: local("DB_Heavent_Med"),
        url('../fonts/DB-Heavent-Med-v3.2.1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.sidebar-mini #logo_mini{display:none;}
.sidebar-mini.sidebar-collapse #logo_main{display:none !important;}
.sidebar-mini.sidebar-collapse #logo_mini{display:block;}


*{font-size:100%; font-family: 'DB_Heavent_Li';}
.alert{font-size:22px; line-height:22px;}
.alert ul{padding-left:15px; margin-bottom:0;}
.card .card-header h3{font-size:24px; line-height:24px;}
.table{font-size:18px;}
.user-panel .info a{font-size:18px;}
.login-box-msg{font-size:22px;}
a, input, label, 
.dropdown-item, .dropdown-footer, .dropdown-header,
.btn, .form-control{font-size:22px; line-height:24px;}
.dropdown-menu-lg .dropdown-item{font-size:20px; line-height:20px;}
.swal2-title{font-size:46px; line-height:46px;}
.swal2-toast .swal2-title{margin-top:0; margin-bottom:0; font-size:28px !important;}
div:where(.swal2-container) .swal2-html-container{font-size:26px !important;}
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm,
div:where(.swal2-container) button:where(.swal2-styled).swal2-deny,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{font-size:22px !important; line-height:22px !important;}

.card-tools .btn i{font-size:14px;}
.btn_top_right{position:absolute; top:6px; right:6px;}
.btn_smz{padding:3px 5px; font-size:16px; line-height:16px;}
.btn_smz i{font-size:12px;}

table th{background-color:#f1f1f1;}

.navbar-nav>.user-menu .user-image{width:40px; height:40px; border:solid 1px #ccc; /*box-shadow:0 2px 4px rgba(0, 0, 0, 0.5);*/}
@media (max-width:766px) {
    .navbar-nav>.user-menu .user-image{width:2.1rem; height:2.1rem;}
}

/***** Paginate *****/
.pagination .page-link{line-height:24px;}

/***** Sidebar *****/
.sidebar .nav-link p{font-size:23px;}
.nav-item a p{font-size:23px;}
.nav-sidebar .nav-treeview>.nav-item>.nav-link>.nav-icon{text-align:left;}
/* .nav.nav-treeview{margin-left:20px; width:calc(100% - 20px); border-radius:5px; background:rgb(81, 81, 81);} */
/* .sidebar-mini .main-sidebar .nav-item .nav-link{width:100%;}
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link{background-color:#515151;}
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active, 
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus, 
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover{color:#ffffff; background-color:#9b9b9b;} */


/***** Datepicker *****/
.datepicker.datepicker-dropdown{font-size:20px;}
/* ขยายขนาดฟอนต์ของตัว Widget ทั้งหมด */
.bootstrap-datetimepicker-widget {
    font-size: 1.5rem !important;
}

/* ปรับความกว้างของปฏิทินให้สมดุลกับฟอนต์ที่ใหญ่ขึ้น */
.bootstrap-datetimepicker-widget.dropdown-menu {
    width: 250px !important;
}



.box_course{border:solid 1px #e7e7e7 !important;}
.box_course:hover{background:#f3f3f3 !important;}




/* Popup Image */
/* หน้ากากโปร่งแสงพื้นหลัง */
.image-popup-overlay {
    display: none; /* ซ่อนไว้ก่อน */
    position: fixed;
    z-index: 1100; /* สูงกว่า Bootstrap Modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* พื้นหลังดำโปร่งแสง 90% */
    
    /* ใช้ Flexbox เพื่อจัดให้รูปภาพและคำอธิบายอยู่กึ่งกลางจอเสมอ ทั้งแนวตั้งและแนวนอน */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* กล่องจัดการรูปภาพใน Popup */
.image-popup-content {
    display: block;
    /* ⚡ หัวใจสำคัญของ Responsive: รูปจะขยายใหญ่สุดเท่าที่จอจะรับไหว แต่ไม่เกินขนาดจริงของรูป */
    width: auto;
    height: auto;
    max-width: 95vw;  /* กว้างไม่เกิน 95% ของความกว้างหน้าจอ */
    max-height: 80vh; /* สูงไม่เกิน 80% ของความสูงหน้าจอ เพื่อเหลือพื้นที่ให้ Caption และปุ่มปิด */
    object-fit: contain; /* ป้องกันไม่ให้รูปเบี้ยว สัดส่วนคงเดิมแน่นอน */
    
    /* Animation ตอนเปิด */
    animation: zoom 0.3s ease-in-out;
}

/* ปุ่มปิด (กากบาท) */
.image-popup-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    z-index: 1101; /* อยู่เหนือรูปภาพขึ้นไปอีก */
    line-height: 1;
}

.image-popup-close:hover {
    color: #bbb;
}

/* คำอธิบายใต้ภาพ */
#imagePopupCaption {
    margin-top: 15px;
    text-align: center;
    color: #ccc;
    font-size: 16px;
    max-width: 90vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ถ้าข้อความยาวเกินไปบนมือถือ จะใส่ ... ให้เอง */
}

/* Effect ซูมตอนเปิด */
@keyframes zoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 📱 ปรับแต่งเพิ่มเติมสำหรับหน้าจอมือถือขนาดเล็ก (Responsive Breakpoint) */
@media only screen and (max-width: 576px) {
    .image-popup-overlay {
        padding: 10px; /* ลดฟัดดิ้งรอบข้างเพื่อให้รูปขยายได้เต็มที่ขึ้น */
    }
    .image-popup-close {
        top: 10px;
        right: 15px;
        font-size: 35px; /* ลดขนาดปุ่มกากบาทลงเล็กน้อยไม่ให้บังรูป */
    }
    #imagePopupCaption {
        font-size: 14px; /* ลดขนาดฟอนต์คำอธิบายภาพบนมือถือ */
    }
}











/************* สำหรับ Full Calendar  **************/
.fc-header-toolbar{padding-top:0 !important; padding-bottom:0 !important;}

#calendar {
    margin-top:0 !important;
    max-width: 900px;
    margin: 40px auto 40px;
    font-family: Arial, sans-serif;
}
#calendar_desc {
    max-width: 900px;
    margin: 40px auto 40px;
}
.fc-day:hover { cursor: pointer; }
.fc-highlight { background-color: rgba(0, 255, 255, 0.4) !important; }
.fc-event {
    padding: 1px 8px !important;
    /* border-radius: 6px !important; */
    font-size: 18px !important;
}
.fc-daygrid-day-frame { padding: 4px !important; }
/* ป้องกันไม่ให้เมาส์ไปโดนตัวหนังสือข้างใน แล้วสั่ง Trigger รัวๆ */
.fc-daygrid-day-frame, .fc-daygrid-day-top {
    pointer-events: none; /* ให้เมาส์ทะลุไปโดนตัวช่องหลัก (.fc-day) ทีเดียวจบ */
}
.fc-day {
    pointer-events: auto !important;
}
.fc-daygrid-dot-event .fc-event-title{font-size:12px; font-weight:normal; font-family:initial; color:#515151; line-height:20px;}

.swap_choice_draft .fc-daygrid-event-dot{border-color:#a8a8a8;}
.swap_choice_draft .fc-event-title{color:#a8a8a8;}

/************* จบ Full Calendar  **************/

