@font-face {
    font-family: 'Sarabun-L';
    src: url('../../dist/fonts/Sarabun/Sarabun-Light.woff2') format('woff2'), url('../../dist/fonts/Sarabun/Sarabun-Light.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sarabun-B';
    src: url('../../dist/fonts/Sarabun/Sarabun-SemiBold.woff2') format('woff2'), url('../../dist/fonts/Sarabun/Sarabun-SemiBold.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Sarabun-L' !important;
}

.pointer {
    cursor: pointer !important;
}


/*----------------------- Toggle Switch ---------------------------*/


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2656ab;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2656ab;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked+.slider-d {
    background-color: #dc3545 !important;
}

.disabled input:checked+.slider {
    background-color: rgba(33, 149, 243, 0.377);
}


/* .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
    color: #8397bb !important;
} */


/*----------------------- END Toggle Switch ---------------------------*/

.bg-main {
    background-color: #d80505;
}

.btn-main {
    background-color: #d80505;
    color: aliceblue;
}

.c-main {
    color: #d80505;
}

.b-main {
    border-color: #af0c0c;
}

.card-main .card-header {
    background-color: #d80505;
    color: aliceblue;
}

.l-light {
    font-weight: normal !important;
}

.icheck-main>input:first-child:not(:checked):not(:disabled):hover+input[type=hidden]+label::before,
.icheck-main>input:first-child:not(:checked):not(:disabled):hover+label::before {
    border-color: #d80505;
}

.icheck-main>input:first-child:checked+input[type=hidden]+label::before,
.icheck-main>input:first-child:checked+label::before {
    background-color: #d80505;
    border-color: #d80505;
    /* border-color:#000000; */
}

.modal-xl {
    max-width: 70%;
}

@media (max-width: 576px) {
    .modal-xl {
        max-width: 100%;
    }
}

.modal-xxl {
    max-width: 90%;
}

@media (max-width: 576px) {
    .modal-xxl {
        max-width: 100%;
    }
}

.have-click {
    color: #F97825 !important;
    cursor: pointer;
}

.append-r {
    border-top-right-radius: 3px !important;
    border-bottom-right-radius: 3px !important;
}


/*----------------------- Scroll Bar ---------------------------*/


/* width */

 ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}


/* Track */

 ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey(255, 0, 0);
    border-radius: 10px;
}


/* Handle */

 ::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(0, 90, 180)), color-stop(0.72, rgb(0, 90, 180)), color-stop(0.86, rgb(0, 90, 180)));
}


/* Handle on hover */

 ::-webkit-scrollbar-thumb:hover {
    background: grey;
}


/*----------------------- Font Size ---------------------------*/

.f-10 {
    font-size: 10px;
}

.f-12 {
    font-size: 12px;
}

.f-14 {
    font-size: 14px;
}

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

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


/* images */

.img-popup {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: 120px;
    cursor: pointer;
}

.img-popup:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}


/*----------------------- END Font Size ---------------------------*/

.star-rq {
    font-size: 10px!important;
    color: #DD3342;
}

fieldset {
    border-radius: 5px;
    border: 2px solid !important;
    padding: 1rem !important;
}

legend {
    width: auto;
    margin: 0px;
    padding-right: .5rem;
    padding-left: .5rem;
}

.datepicker,
.datetimepicker {
    background-color: #ffffff!important;
    text-align: center!important;
}