body {
    font-family: 'Kanit', sans-serif;
    /*font-family: 'Sarabun', sans-serif;*/

}

/************
* Region Global
*************/
.select2-container {
    width: 100% !important;
}

.btn {
    border-radius: 2px;
}

.btn-xs-circle {
    width: 20px;
    height: 20px;
    padding: 3px 0px;
    border-radius: 15px;
    font-size: 8px;
    text-align: center;
    border: 1px solid transparent;
}

.successBtn {
    background-color: #4dbd74;
    color: #FFFFFF;
    border-radius: 3px;
}

.dangerBtn {
    background-color: #f86c6b;
    color: #FFFFFF;
    border-radius: 3px;
}

.primaryBtn {
    background-color: #4A90E2;
    color: #FFFFFF;
    border-radius: 3px;
}

.swal2-container {
    z-index: 1200;
}

.card {
    border-radius: 3px;
}

.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px) !important;
}

/**** Table *****/
.table-custom thead th:first-child, .table-custom thead td:first-child, .table-custom tbody td:first-child {
    border-left: 1px solid #c8ced3;
}

.table-custom thead th:last-child, .table-custom thead td:last-child, .table-custom tbody td:last-child {
    border-right: 1px solid #c8ced3;
}

.table-custom thead tr:last-child td, .table-custom thead tr:last-child th, .table-custom tbody tr:last-child td{
    border-bottom: 1px solid #c8ced3;
}

.table-custom thead th {
    border-bottom: 0px;
}

.table-custom tfoot tr:first-child td {
    border-top: none;
}

*, *::before, *::after {
    box-sizing: border-box; /* Fix bootstrap.grid.css when render in datatable */
}
/**** Table *****/

/**** Tag *****/
.tag {
    display: inline-flex;
    padding-left: 0.5rem;
    border-radius: 5px;
    line-height: 26px;
    margin-bottom: 0.25rem;
}

.tag .remove {
    margin-left: 0.5rem;
    border-left: 1px solid #FFFFFF;
    padding: 0 0.75rem;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.3226 1.00714L9.28295 0L5.16129 3.99286L1.03963 0L0 1.00714L4.12166 5L0 8.99286L1.03963 10L5.16129 6.00714L9.28295 10L10.3226 8.99286L6.20092 5L10.3226 1.00714Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center;
}
/**** Table *****/
.border-radius-3 {
    border-radius: 3px;
}
/************
* Endregion Global
*************/

/************
* Region Header
*************/
.app-header {
    background-color: #4A4452;
    height: 90px;
    border: none;
    z-index: 1030 !important;
}

.app-header .navbar-brand {
    width: 300px;
    height: initial;
}

.app-header .navbar-brand .navbar-brand-full {
    height: 70px;
    width: auto;
    margin: 7px 0px 10px 0px;
}

@media (min-width: 992px) {
    .header-fixed .app-body {
        margin-top: 90px;
    }
}

@media (max-width: 991.98px) {
    .app-header .navbar-brand {
        position: absolute;
        top: 0;
        left: 40%;
        margin-left: -77.5px;
    }
    .app-body {
        margin-top: 90px;
    }
}
/************
* Endregion Header
*************/

/************
* Region Sidebar
*************/
.sidebar, .sidebar .sidebar-minimizer {
    background-color: #FBFBFB;
}

.sidebar .nav-link {
    /*display: flex;*/
    /*align-items: center;*/
    color: #2F353A !important;
    font-size: 14px !important;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: initial !important;
    background-color: #C8CED3;
}

.sidebar .nav-link .nav-icon, .sidebar .nav-link.active .nav-icon, .sidebar .nav-link:hover .nav-icon {
    color: #000;
}

.sidebar .nav-dropdown.open {
    background-color: #F4F4F4;
}

.sidebar .nav-dropdown-items .nav-item {
    background-color: #FBFBFB;
    border: none;
}

.sidebar .nav-link:hover.nav-dropdown-toggle::before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='%2373818f' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E");
}
/************
* Endregion Sidebar
*************/

/************
* Region Modal right
*************/
/*https://jsfiddle.net/KyleMit/fj6n5vt2*/
.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 450px;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
}

.modal.right .modal-body {
    padding: 15px 15px 80px;
}

/*Right*/
.modal.right.fade .modal-dialog {
    right: -450px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog {
    right: 0;
}

.modal.right .modal-content {
    border-radius: 0;
    border: none;
}
/************
* Endregion Modal right
*************/

/************
* Region Checkbox & Radio
*************/
.user-select-none {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.btn-green {
    color: #fff;
    background-color: #007474;
    border-color: #007474;
}
.btn-green:hover, .btn-green:focus, .btn-green:active, .btn-green.active, .open>.dropdown-toggle.btn-green {
    color: #fff;
    background-color: #035F5F;
    border-color: #035F5F; /*set the color you want here*/
}

span.required {
    color: #ff0000;
}

/* Responsive */
@media (max-width: 768px) {
    .page-buttons {
        position: static;
        text-align: center;
        margin-top: 10px;
    }

    .previous_page_button,
    .next_page_button {
        width: 45%;
        margin: 5px 2%;
        font-size: 14px;
        padding: 6px 12px;
    }
}

.btn-theme { /* ปุ่มหลัก */
    background-color: #4A4452;
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-theme:hover {
    background-color: #3c3946;
    transform: translateY(-2px); /* effect ยกขึ้นเล็กน้อย */
}

.btn-secondary-theme { /* ปุ่มรอง */
    background-color: #6C6675;
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-secondary-theme:hover {
    background-color: #5a5365;
    transform: translateY(-2px); /* effect ยกขึ้นเล็กน้อย */
}

.btn-warning-theme { /* ปุ่มแก้ไข */
    background-color: #E3A857;
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-warning-theme:hover {
    background-color: #d39145;
    transform: translateY(-2px); /* effect ยกขึ้นเล็กน้อย */
}

.btn-info-theme { /* ปุ่มแผนที่ */
    background-color: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-info-theme:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

.btn-excel-theme {
    background-color: #7FA17F;
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-excel-theme:hover {
    background-color: #6F8F6F;
    transform: translateY(-2px);
}
.btn-cancel-theme {
    background-color: #B35A5A; /* แดงตุ่นเข้ากับ palette */
    color: #fff;
    border: none;
    border-radius: 8px;       /* โค้งนุ่มดูทันสมัย */
    padding: 10px 18px;       /* กว้างพอดี กดง่าย */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* เพิ่มความลื่นเวลา hover */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* เงาเล็กน้อย */
}
.btn-cancel-theme:hover {
    background-color: #9A4F4F;
    transform: translateY(-2px);
}











/*https://jsfiddle.net/KyleMit/fj6n5vt2*/
/*.checkbox, .radio {*/
/*    margin: 10px;*/
/*}*/
/*.checkbox, .radio {*/
/*    position: relative;*/
/*}*/
/*.label-check label {*/
/*    padding-left: 20px;*/
/*}*/
/*.label-check input[type="radio"],*/
/*.label-check input[type="checkbox"] {*/
/*    -webkit-appearance: none;*/
/*    -moz-appearance: none;*/
/*    appearance: none;*/
/*    opacity: 0;*/
/*    position: absolute;*/
/*    margin: 0;*/
/*    z-index: -1;*/
/*    width: 0;*/
/*    height: 0;*/
/*    overflow: hidden;*/
/*    left: 0;*/
/*    pointer-events: none;*/
/*}*/
/*.label-check input[type="radio"]:focus {*/
/*    outline: none;*/
/*}*/
/*.label-check input[type="radio"] + label:before,*/
/*.label-check input[type="radio"] + label:after {*/
/*    content: "";*/
/*    display: block;*/
/*    position: absolute;*/
/*    left: -10px;*/
/*    top: 1px;*/
/*    width: 18px;*/
/*    height: 18px;*/
/*    border-radius: 50%;*/
/*    -webkit-transition: 240ms;*/
/*    -o-transition: 240ms;*/
/*    transition: 240ms;*/
/*}*/
/*.label-check input[type="radio"] + label:before {*/
/*    left: -10px;*/
/*    top: 1px;*/
/*}*/
/*.label-check input[type="radio"] + label:before {*/
/*    background-color: #2196f3;*/
/*    -webkit-transform: scale(0);*/
/*    -ms-transform: scale(0);*/
/*    -o-transform: scale(0);*/
/*    transform: scale(0);*/
/*}*/
/*.label-check input[type="radio"] + label:after{*/
/*    top: 1px;*/
/*    border: 2px solid #666666;*/
/*    z-index:1;*/
/*}*/
/*.label-check input[type="radio"]:checked + label:before {*/
/*    -webkit-transform: scale(0.6);*/
/*    -ms-transform: scale(0.6);*/
/*    -o-transform: scale(0.6);*/
/*    transform: scale(0.6);*/
/*}*/
/*.label-check input[type="radio"]:disabled:checked + label:before {*/
/*    background-color: #bbbbbb;*/
/*}*/
/*.label-check input[type="radio"]:checked + label:after {*/
/*    border-color: #2196f3;*/
/*}*/
/*.label-check input[type="radio"]:disabled + label:after,*/
/*.label-check  input[type="radio"]:disabled:checked + label:after {*/
/*    border-color: #bbbbbb;*/
/*}*/
/*.label-check input[type="checkbox"]:focus {*/
/*    outline: none;*/
/*}*/
/*.label-check input[type="checkbox"]:focus + label:after{*/
/*    border-color: #2196f3;*/
/*}*/
/*.label-check input[type="checkbox"] + label:after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 2px;*/
/*    left: -10px;*/
/*    display: block;*/
/*    width: 18px;*/
/*    height: 18px;*/
/*    margin-top: -2px;*/
/*    margin-right: 5px;*/
/*    border: 2px solid #666666;*/
/*    border-radius: 2px;*/
/*    -webkit-transition: 240ms;*/
/*    -o-transition: 240ms;*/
/*    transition: 240ms;*/
/*}*/
/*.label-check input[type="checkbox"]:checked + label:before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 1px;*/
/*    left: -4px;*/
/*    display: table;*/
/*    width: 6px;*/
/*    height: 12px;*/
/*    border: 2px solid #fff;*/
/*    border-top-width: 0;*/
/*    border-left-width: 0;*/
/*    -webkit-transform: rotate(45deg);*/
/*    -ms-transform: rotate(45deg);*/
/*    -o-transform: rotate(45deg);*/
/*    transform: rotate(45deg);*/
/*    z-index:1;*/
/*}*/
/*.label-check input[type="checkbox"]:checked + label:after{*/
/*    background-color: #2196f3;*/
/*    border-color: #2196f3;*/
/*}*/
/*.label-check input[type="checkbox"]:disabled + label:after {*/
/*    border-color: #bbbbbb;*/
/*}*/
/*.label-check  input[type="checkbox"]:disabled:checked + label:after {*/
/*    background-color: #bbbbbb;*/
/*    border-color: transparent;*/
/*}*/
/************
* Endregion Checkbox & Radio
*************/

