/* custom dateTimePicker */
.datepicker [class^="icon-"], [class*=" icon-"] {
    display: inline-block;
    font-family: Font Awesome\ 5 Pro;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.datepicker .prev [class^="icon-"]:before {
    content: "\f04a";
}

.datepicker .next [class^="icon-"]:before {
    content: "\f04e";
}
.datepicker .table-condensed{
	width: 100%;
}
.content-header{
	background: #ffffff !important;
    padding: 15px;
}
.content-header>h1{
	font-size: 18px;
}
.content-header>.breadcrumb{
	padding: 0px;
    font-size: 16px;
}
.user-login{
	height: 50px;
    padding: 16px;
}
.user-login a{
	color: #ffffff;
}
.user-login .change-pass,
.user-login .logout{
    padding-left: 10px;
    padding-right: 10px;
    border-left: 1px solid;
}
.box-body .row{
	padding-bottom: 5px;
}
.box-body font{
    position: absolute;
    top: 0px;
    right: 8px;
}
.box-body .error{
    color: red;
    margin-bottom: 0px;
    min-width: 100px;
}
.box-body .label-form{
    font-weight: normal;
    float: right;
    margin: 0px;
}

.box-body .label-form{
    font-weight: normal;
    float: right;
    margin: 0px;
}
.datepicker-dropdown:before{
	display: none;
}
.sidebar-toggle:before{
	display: none;	
}
.treeview-menu .tooltip-inner{
	white-space: nowrap;
	max-width: unset;
	width: 100%;
}
.treeview-menu a{
    overflow: hidden;
    text-overflow: ellipsis;
}
.swal2-cancel, .swal2-confirm{
	margin: 0px 10px;
}

@media (max-width: 991px){
	.content-header>h1{
		display: inline-block;
	}
	.content-header>.breadcrumb {
		    background: none;
	    text-align: right;
	    display: inline-block;
	    float: right;
	    margin-top: 0px;
	}
	.box-body .label-form{
		float: left;
		padding-left: 0px;
	}
	.box-body font{
		top: 30px;
	}
	.user-login a{
		color: #ffffff !important;
	}
}

.fix-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.bd-sidebar {
    position: -webkit-fixed;
    position: fixed;
    top: 5rem;
    z-index: 1000;
    max-height: calc(100vh - 5rem);
}

.main-sidebar {
	padding-top: 0px;
}

.content-hg { 
	
}

.select2-container .select2-selection--single {
	border: 1px solid #ccc;
	padding: 6px;
	border-radius: 0px;
	color: #555;
	height: 34px;
}

.dropdown-menu{
    left: unset;
    right: 0;
    width: 250px;
    height: 262px;
}
.dropdown-menu .user-header{
	text-align: center;
	height: 210px;
}
.dropdown-menu .user-footer{
	padding: 5px;
}

#map{ width:700px; height: 500px; }

.colorBox_slim_border {
    border: 10px solid rgba(255, 255, 255, 0.1);;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

.btn {
  transition: transform 0.2s;
  margin-top: 3px;
}

.btn:hover {
  -ms-transform: scale(1.1); /* IE 9 */
  -webkit-transform: scale(1.1); /* Safari 3-8 */
  transform: scale(1.1); 
}

.transAnimations{
	transition: transform .3s;
}

.transAnimations:hover{
	-ms-transform: scale(1.05); 
	-webkit-transform: scale(1.05); 
	transform: scale(1.05); 
}

.transAnimations:active {
	-ms-transform: scale(0.8); 
	-webkit-transform: scale(0.8); 
	transform: scale(0.8); 
}

.fadeIn {
 	animation: fadeIn 2s;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
   		transform: scale(0.96);
	}
	18% {
		opacity: 1;
   		transform: scale(0.997);
	}
	100% {
		transform: scale(1);
	}
}

.fadeInIcon {
 	animation: fadeInIcon 0.6s;
}

@keyframes fadeInIcon {
	0% {
		opacity: 0;
   		transform: scale(0);
	}
	30% {
		opacity: 0;
		margin-top:-3px;
   		transform: scale(0.9);
	}
	100% {
		opacity: 1;
		margin-top:0px;
		transform: scale(1);
	}
}

.fadeInSlow {
	animation: fadeInSlow 0.6s;
}

.fadeInSlow2 {
	animation: fadeInSlow 0.7s;
}

.fadeInSlow3 {
	animation: fadeInSlow 0.9s;
}

.fadeInSlow4 {
	animation: fadeInSlow 1.5s;
}

.fadeInSlow5 {
	animation: fadeInSlow 1.7s;
}

.fadeInSlow6 {
	animation: fadeInSlow 1.9s;
}

.fadeInSlow7 {
	animation: fadeInSlow 2s;
}


@keyframes fadeInSlow {
   	0% { 
   		opacity: 0;
   		margin-top:-15px;
   	}
   	100%   { 
   		opacity: 1;
   		margin-top:0px;
   	}
}

.fadeInUp {
	animation: fadeInSlow 3s;
}

@keyframes fadeInUp {
   	0% { 
   		opacity: 0;
   		margin-top:100px;
   	}
   	50%   { 
   		opacity: 0.5;
   		margin-top:-20px;
   	}
   	100%   { 
   		opacity: 1;
   		margin-top:0px;
   	}
}

[class*="col-"] {
	position: relative;
}

.box-header.with-border {
    border-bottom: 1px solid #f4f4f4;
    background-color: #F9A64C;
}

.btn-dpm {
    color: #000; /* เปลี่ยนสีตัวอักษรเป็นดำ */
    background-color: #F9A64C; /* เปลี่ยนพื้นหลังเป็นสีเหลือง */
    border-color: #ffc88c; /* เปลี่ยนสีขอบให้เป็นโทนใกล้เคียง */
}

.btn-dpm:hover {
  color: #25231f;
  background-color: #D97A18;
  border-color: #ffc88c;
}

.btn-dpm:active {
  color: #25231f !important;
  background-color: #e6ac00 !important;
  border-color: #e0b030 !important;
}

.l-left {
    float: left !important;
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  text-decoration: none !important;
  background: none !important;
  color: inherit !important;
}

.box-header.with-border {
  border-bottom: 0px solid white;
  border-radius: 8px;
}

input.form-control,
textarea.form-control {
  display: inline-block;
  width: 97%;
}

select.form-select {
  display: inline-block;
  width: 97%;
}

.select2 {
  width: 97% !important;
}

.select2-container .select2-selection--single {
  height: 45px !important;
  line-height: 45px !important;
  padding: 6px 12px;
}

.select2-container .select2-selection__rendered {
  line-height: 45px !important;
}

.select2-container .select2-selection__arrow {
  height: 45px !important;
}

.select2-selection__arrow {
  position: relative !important;
  top: -25px !important;
  left: 97% !important;
}

.form-check-input {
  border-color: #999 !important;
  background-color: #f8f9fa;
  box-shadow: 0 0 0 0.05rem rgba(0, 0, 0, 0.1);
  width: 1.1em;
  height: 1.1em;
}

input[readonly],
textarea[readonly] {
   background-color: #f8f9fa !important; /* สีเทาอ่อน */
   color: #666e75; /* สีตัวอักษร */
   cursor: not-allowed; /* เปลี่ยน cursor */
}

.card {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-title {
	height: 50px;
	margin-bottom: 70px;
}

.icon-style {
	line-height: 4;
}

.card:hover,
.card.active {
	border: 1px solid #666e75;
	border-radius: 10px;
	background-color: #fffffd;
	box-shadow: rgba(50, 50, 93, 0.01) 0px 6px 12px -2px,
	            rgba(0, 0, 0, 0.03) 15px 15px 7px -3px;
}

.box.box-primary {
    border-radius: 15px !important;
	border-top-color: white;
	background-color: white;
	box-shadow: 0px 0px 10px rgba(255, 255, 255, 1);
}

tr.info th {
  background-color: #F9A64C;
}

tr.info th a {
  color: #000000;
  text-decoration: none;
}

tr.info th:first-child {
  border-top-left-radius: 15px;
}

tr.info th:last-child {
  border-top-right-radius: 15px;
}

.table-bordered{
	border: 0px solid #f4f4f4;
}

.table {
  border-collapse: separate; /* ต้องใช้เพื่อให้ border-radius ทำงานกับ <table> */
  border-spacing: 0; /* ไม่ให้เกิดช่องว่างระหว่าง cell */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden; /* บังคับให้ตัดขอบที่โค้ง */
  font-size: 16px;
}

.footer_srb {
  background-color: #A66F00;
  color: white;
  padding: 20px 0;
  font-size: 14px;
  width: 100%;
}

.footer-content-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .footer-content-top {
    display: none !important;
  }
}

.footer-left,
.footer-right {
  flex: 1 1 45%;
}

.footer-left p,
.footer-right p,
.footer-content-bottom p {
  margin: 2px 0;
}

.footer-content-bottom {
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .footer-content-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    text-align: center;
  }
}

html, body {
  height: 100%;
  margin: 0;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
  .no-gutter-mobile {
    --bs-gutter-x: 0rem !important;
  }
}

button.active {
  outline: 2px solid #a5a28a;
  box-shadow: 0 0 1px 5px rgba(200,200,200,0.5);
}

@media (max-width: 768px) {
  #cboxContent {
    width: 340px !important;     
    height: auto !important; 
    float: none !important;
  }

  #cboxLoadedContent { 
    max-height: 80vh !important; 
    overflow: auto !important;
    width: 100% !important;     /* กว้างเต็มจอ */
    float: none !important;
  }
}

@media (max-width: 768px) {
  .content-header {
    height: 70px;
  }
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;

    min-width: 22px;     /* ขั้นต่ำเท่าเดิม */
    height: 22px;        /* สูงคงที่ */
    padding: 0 6px;      /* ขยายแนวนอนเมื่อข้อความยาว */

    background-color: #6c6c6c; /* เทา */
    color: #ffffff;            /* ตัวหนังสือขาว */

    border-radius: 999px; /* วงกลม → วงรีเมื่อยาว */
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.dropdowns {
  width: 97%;
  min-height: 45px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #fff;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.dropdowns-list {
  border: 1px solid #ccc;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
}

.tag {
  background: #eee;
  padding: 3px 6px;
  margin: 2px;
  display: inline-block;
  border-radius: 4px;
}

.child {
  margin-left: 20px;
}

#selected{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.clear-btn{
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.clear-btn:hover{
  color: #333;
}

.clear-btn.hide{
  display: none;
}

.dropdown-search{
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}