@charset "utf-8";
body {  
font-family: 'Sarabun', sans-serif;
font-size: 16px;
padding-bottom: 60px; /* ป้องกันเนื้อหาด้านล่างสุดโดนเมนูกดทับ */	
} 
/* บังคับให้โครงสร้าง dselect ยืดหยุ่น 100% ใน input-group */
.input-group .dselect-wrapper {
flex: 1 1 auto;
width: 1%; /* เทคนิค Bootstrap บังคับให้ขยายเต็มพื้นที่ที่เหลือ */
}
/* ปรับให้ปุ่มกดเลือกข้างในกว้างเต็ม 100% เสมอ */
.input-group .dselect-wrapper .form-select {
width: 100% !important;
}
.sticky-footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
background-color: #ffffff;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1000; /* ดันเมนูให้อยู่เหนือเนื้อหาอื่น */
}
.nav-item-footer {
text-decoration: none;
color: #00000;
font-size: 14px;
font-weight: 500;
}
/* กำหนดขนาดให้ทั้ง Checkbox และ Radio */
.form-check-input[type='checkbox'],
.form-check-input[type='radio'] {
width: 1.6em;
height: 1.6em;	
}	
/* กำหนดสีเมื่อถูกเลือก (:checked) ให้ทั้งคู่ */
.form-check-input[type='checkbox']:checked,
.form-check-input[type='radio']:checked {
background-color: dodgerblue;
border-color: darkblue;
}
.btn-mydanger {
position: relative;
padding: 8px 15px;
font-size: 16px;
font-family: Sarabun, sans-serif;
display: inline-block;
width: fit-content;
max-width: 350px;  /* แต่ไม่เกิน 350px */
height: 40px;
text-align: center;
color: #fff;
text-transform: uppercase;
text-decoration: none;
box-sizing: border-box;
border: none;
border-radius: 5px;
isolation: isolate; /* ใช้แทน z-index: 1; เพื่อคุมระดับชั้นเฉพาะภายในปุ่ม */
user-select: none;
cursor: pointer;
/*** full width block ***/
/* width: 100%; */
}
.btn-mydanger-colors {
background: linear-gradient(90deg, #991B1B, #EF4444, #FCA5A5, #991B1B);
background-size: 400%;
}
.btn-mydanger:hover {
animation: animate-mydanger 8s linear infinite;
}
@keyframes animate-mydanger {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}
.btn-mydanger:before {
content: "";
position: absolute;
top: -5px;
right: -5px;
bottom: -5px;
left: -5px;
z-index: -1;
background: linear-gradient(90deg, #991B1B, #EF4444, #FCA5A5, #991B1B);
background-size: 400%;
border-radius: 40px;
opacity: 0;
transition: .5s;
}
.btn-mydanger:hover:before {
filter: blur(20px);
opacity: 1;
animation: animate-mydanger 8s linear infinite;
}
.btn-mydanger:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
box-shadow: none;
background: #dcdcdc;
}
.btn-mywarning {
position: relative;
padding: 8px 15px;
font-size: 16px;
font-family: Sarabun, sans-serif;
display: inline-block;
width: fit-content;
max-width: 350px;  /* แต่ไม่เกิน 350px */
height: 40px;
text-align: center;
color: #fff;
text-transform: uppercase;
text-decoration: none;
box-sizing: border-box;
border: none;
border-radius: 5px;
isolation: isolate; /* ใช้แทน z-index: 1; เพื่อคุมระดับชั้นเฉพาะภายในปุ่ม */
user-select: none;
cursor: pointer;
/*** full width block ***/
/* width: 100%; */
}
.btn-mywarning-colors {
background: linear-gradient(90deg, #F2E50C, #F59E0B, #FDE047, #F5CF27);
background-size: 400%;
}
.btn-mywarning:hover {
animation: animate-mywarning 8s linear infinite;
}
@keyframes animate-mywarning {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}
.btn-mywarning:before {
content: "";
position: absolute;
top: -5px;
right: -5px;
bottom: -5px;
left: -5px;
z-index: -1;
background: linear-gradient(90deg, #F2E50C, #F59E0B, #FDE047, #F2E50C);
background-size: 400%;
border-radius: 40px;
opacity: 0;
transition: .5s;
}
.btn-mywarning:hover:before {
filter: blur(20px);
opacity: 1;
animation: animate-mywarning 8s linear infinite;
}
.btn-mywarning:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
box-shadow: none;
background: #dcdcdc;
}
.btn-myprimary {
position: relative;
padding: 8px 15px;
font-size: 16px;
font-family: Sarabun, sans-serif;
display: inline-block;
width: fit-content;
max-width: 350px;  /* แต่ไม่เกิน 350px */
height: 40px;
text-align: center;
color: #fff;
text-transform: uppercase;
text-decoration: none;
box-sizing: border-box;
border: none;
border-radius: 5px;
isolation: isolate; /* ใช้แทน z-index: 1; เพื่อคุมระดับชั้นเฉพาะภายในปุ่ม */
user-select: none;
cursor: pointer;
/*** full width block ***/
/* width: 100%; */
}
.btn-myprimary-colors {
background: linear-gradient(90deg, #1E3A8A, #3B82F6, #60A5FA, #1E3A8A);
background-size: 400%;
}
.btn-myprimary:hover {
animation: animate-myprimary 8s linear infinite;
}
@keyframes animate-myprimary {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}
.btn-myprimary:before {
content: "";
position: absolute;
top: -5px;
right: -5px;
bottom: -5px;
left: -5px;
z-index: -1;
background: linear-gradient(90deg, #1E3A8A, #3B82F6, #60A5FA, #1E3A8A);
background-size: 400%;
border-radius: 40px;
opacity: 0;
transition: .5s;
}
.btn-myprimary:hover:before {
filter: blur(20px);
opacity: 1;
animation: animate-myprimary 8s linear infinite;
}
.btn-myprimary:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
box-shadow: none;
background: #dcdcdc;
}
.btn-mysuccess {
position: relative;
padding: 8px 15px;
font-size: 16px;
font-family: Sarabun, sans-serif;
display: inline-block;
width: fit-content;
max-width: 350px;  /* แต่ไม่เกิน 350px */
height: 40px;
text-align: center;
color: #fff;
text-transform: uppercase;
text-decoration: none;
box-sizing: border-box;
border: none;
border-radius: 5px;
isolation: isolate; /* ใช้แทน z-index: 1; เพื่อคุมระดับชั้นเฉพาะภายในปุ่ม */
user-select: none;
cursor: pointer;
/*** full width block ***/
/* width: 100%; */
}
.btn-mysuccess-colors {
background: linear-gradient(90deg, #0F913A, #10B981, #A3E635, #0F913A);
background-size: 400%;
}
.btn-mysuccess:hover {
animation: animate-mysuccess 8s linear infinite;
}
@keyframes animate-mysuccess {
0% {
background-position: 0%;
}
100% {
background-position: 400%;
}
}
.btn-mysuccess:before {
content: "";
position: absolute;
top: -5px;
right: -5px;
bottom: -5px;
left: -5px;
z-index: -1;
background: linear-gradient(90deg, #0F913A, #10B981, #A3E635, #0F913A);
background-size: 400%;
border-radius: 40px;
opacity: 0;
transition: .5s;
}
.btn-mysuccess:hover:before {
filter: blur(20px);
opacity: 1;
animation: animate-mysuccess 8s linear infinite;
}
.btn-mysuccess:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
box-shadow: none;
background: #dcdcdc;
}
.bg-gradient-yellow {
background: linear-gradient(135deg, #EBD628 0%, #F9F3BE 100%);
}
/* โทนสีเขียว */
.bg-gradient-green {
background: linear-gradient(135deg, #0F913A 0%, #95F4B5 100%);
}
/* โทนสีฟ้า/น้ำเงิน */
.bg-gradient-blue {
background: linear-gradient(135deg, #0d6efd 0%, #92BFF6 100%);
}
/* เมื่อชี้ที่การ์ดข่าว ให้เปลี่ยนสีพื้นหลังและเพิ่ม Transition ให้ดูนุ่มนวล */
.news-scroll-container .news-item {
transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
cursor: pointer; /* เปลี่ยนรูปเมาส์เป็นมือ */
}
/* สีพื้นหลังตอน Hover (เลือกปรับโค้ดสีได้ตามใจชอบ) */
.news-scroll-container .news-item:hover {
background-color: #5BA4F1 !important; /* ตัวอย่าง: สีเขียวอ่อนๆ ละมุนตา */
/* background-color: #f8f9fa !important; */ /* ตัวอย่าง: สีเทาอ่อนแบบ Bootstrap */
/* แถม: ใส่เอฟเฟกต์ยกการ์ดขึ้นเล็กน้อยให้ดูมีมิติ (ถ้าไม่ชอบลบออกได้ครับ) */
transform: translateY(-2px); 
}
p {
line-height: 2rem;
margin-top:0px;
}
h1, .h1 {
line-height: 2rem;
margin-top:0px;
}
h2, .h2 {
line-height: 2rem;
margin-top:0px;
}
h3, .h3 {
line-height: 2rem;
margin-top:0px;
}
h4, .h4 {
line-height: 2rem;
margin-top:0px;
}
h5, .h5 {
line-height: 2rem;
margin-top:0px;
}
h6, .h6 {
line-height: 2rem;
margin-top:0px;
}   
#ui-datepicker-div {display: none;}
.ui-datepicker{
width:300px;
font-family:tahoma;
font-size:16px;
text-align:center;
}
/*css กำหนดปุ่ม ถ้ามีแสดง*/
.ui-datepicker-trigger{
border: 1px solid #cccccc;
background: #ececec !important;
padding:3px;
}
.doubleUnderline {
border-bottom: 3px double;
}
/* 1. Sticky Header ของหน้าเว็บ (อยู่ชั้นกลาง) */
.sticky-header {
position: sticky;
top: 0;
background: #D3E0ED;
box-shadow: 0 2px 5px rgba(0,0,0,.08);
z-index: 1020; /* ให้ต่ำกว่าตัว Dropdown */
}
/* 2. กล่อง Notifications Dropdown (อยู่ชั้นสูงสุดเมื่อเปิดใช้งาน) */
.dropdown-menu.notifications {
position: absolute;
z-index: 1050 !important; /* ตั้งค่าให้สูงกว่า .sticky-header (1020) เพื่อขี่ทับได้เลย */
max-height: 450px;
overflow-y: auto;/* ให้เปิด Scrollbar เฉพาะในกล่องแจ้งเตือน */
}
/* 3. หัวข้อใน Dropdown (อยู่ชั้นสูงสุด "เฉพาะภายใน" ตัว Dropdown เอง) */
.dropdown-menu.notifications .dropdown-header {
position: sticky;
top: 0;
background: #fff;
z-index: 2; /* ใส่แค่ 2 พอครับ เพื่อให้ทับแค่ List รายการแจ้งเตือนด้านล่างมัน */
padding: 10px 15px;
border-bottom: 1px solid #ddd;
}
/* Important part */
.edit{
width:100%;
min-height:35px;
line-height:35px;
border:1px solid #bad2e3;
border-radius:4px;
padding:0 8px;
background:#fff;
transition:all .2s ease;
}
.edit:hover{
border-color:#86b7fe;
}
.edit:focus{
outline:none;
border-color:#0d6efd;
background:#fff8dc;
box-shadow:0 0 0 .2rem rgba(13,110,253,.15);
}
.editMode{
border-color:#0d6efd !important;
background:#fff8dc;
}
.fixTableHead { 
max-height: 700px;
overflow-y: auto;
} 
.fixTableHead thead th { 
position: sticky; 
z-index: 10;	
top: 0; 
border: 0.1px solid #D0D0D0;
border-collapse: collapse; 
} 
.fixTableHead tfoot th { 
border: 0.1px solid #D0D0D0;
border-collapse: collapse; 
} 
.fixed-size {
width: 350px;
height: 460px;
object-fit: cover;
}	
.fixed-size-std {
width: 120px;
height: 150px;
object-fit: cover;
}
.resize-profile {
width: 135px; /* กำหนดขนาดกว้างกำลังดีสำหรับแสดงบนหน้าจอ */
height: 180px;/* กำหนดความสูงให้เท่ากันทุกรูป */
object-fit: cover;/* ทีเด็ด! คำสั่งนี้จะตัดรูป (Crop) ส่วนเกินทิ้งให้อัตโนมัติ โดยที่รูปไม่บี้ ไม่ยืด ไม่แบน */
}
.invalid-tooltip {
top: auto;
bottom: 100%; /* Moves tooltip to the top */
margin-bottom: 5px; /* Adds space between input and tooltip */
/* Optional: Centering tweak if needed */
left: 50%;
transform: translateX(-50%);
}	
/* กำหนดสไตล์พื้นฐาน และเพิ่ม animation transition */
.row-data {
border-bottom: 1px solid #dee2e6;
padding: 6px 0;
align-items: center;
transition: all 0.15s ease-in-out;
}
/* แถบคี่ สลับสีพื้นหลังอ่อนๆ (Zebra Striping) */
.row-data:nth-child(odd) {
background-color: rgba(0, 0, 0, 0.02);
}
/* เอฟเฟกต์เมื่อ Hover */
.row-data:hover {
background-color: #e8f4ff;
box-shadow: inset 3px 0 #0d6efd;
}
#ui-datepicker-div {
z-index: 1050 !important;
}
#load_data .row-data:nth-child(odd){
background-color:rgba(0,0,0,.02);
}
#load_data .row-data:hover{
background-color:rgba(0,0,0,.075);
}	
#load_data .row-data{
transition:all .15s;
}
#load_data .row-data:hover{
background:#e8f4ff;
box-shadow: inset 3px 0 #0d6efd;
}	
.table-modern tbody tr{
transition:.15s;
}
.table-modern tbody tr:hover td{
background:#e8f4ff !important;
}
.table-modern tbody tr:hover td:first-child{
border-left:4px solid #0d6efd;
}	
.my-fixed-width-button {
width: 100%;   /* ยืดเต็มจอเมื่อหน้าจอเล็ก */
max-width: 350px;  /* แต่ไม่เกิน 350px */
display: inline-block;
text-align: center; /* ให้ข้อความอยู่กลางปุ่ม */
}
/* Action Cards */
.action-cards {
margin: 3rem 0;
}
.action-card {
background: white;
border-radius: 12px;
padding: 2rem;
text-align: center;
box-shadow: 0 3px 15px rgba(0,0,0,0.08);
transition: background-color 0.3s ease, transform 0.2s ease;
border: none;
height: 100%;
border-top: 4px solid var(--primary-gold);
}
.action-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(212, 167, 98, 0.2);
background-color: #F5CF27; /* สีอ่อนของโทน #d4a762 */
}
.action-card i {
font-size: 3rem;
color: var(--primary-gold);
margin-bottom: 1rem;
}
.action-card h5 {
color: #333;
font-weight: 600;
margin-bottom: 1rem;
}
.bg-light-hover:hover {
background-color: #F5CF27 !important; 
cursor: pointer;
transition: background-color 0.3s ease;
}	
.chart {
width: 100%; 
min-height: 650px;
}