@import url('https://fonts.googleapis.com/css?family=Sarabun&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

body {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-weight: 400 !important;
    color: #212529 !important;
}

.TH,
.table thead td,
.table thead th,
.jsgrid .jsgrid-table thead th,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
span,
all {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
}

b {
    color: #564477;
}


.dataTables_processing{
    z-index: 1 !important;
}

div.dataTables_wrapper div.dataTables_filter {
    display: inline-flex;
    float: right;
}

.filterBar {
    padding-left: 10px;
}

#filterB {
    color: #707070;
}

.btn-purple{
    background: #564477;
    color: #fff;
}

.card {
    border-radius: 12px;
}

.topTable {
    padding: 20px 0px 20px 10px;
}

#exportPDF {
    float: right;
    background: #d4d3e3;
    color: #564477;
}

#approved {
    background: #e7f6e1;
    color: #87d068;
}

#disapproved {
    background: #fcd4da;
    color: #f22a47;
}

#addNew {
    float: right;
    background: #564477;
    color: #fff;
    margin-left: 1%;
}

#detailIcon {
    background: #d1e4fc;
    color: #1876f2;
}


@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -999em;
    vertical-align: middle !important;
    border: .25em solid;
    border-color: currentColor transparent currentColor currentColor;
    border-radius: 50%;
    animation-name: spinner-border;
    animation-duration: .75s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner-border-reverse {
    border-color: transparent currentColor transparent transparent;

    &::after {
        position: absolute;
        top: -.25em;
        right: -.25em;
        bottom: -.25em;
        left: -.25em;
        display: inline-block;
        content: "";
        border: .25em solid rgba(0, 0, 0, .1);
        border-radius: 50%;
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .2em;

    &.spinner-border-reverse::after {
        border-width: .2em;
    }
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -999em;
    vertical-align: text-bottom;
    border: 0.25em solid;
    border-color: currentColor transparent currentColor currentColor;
    border-radius: 50%;
    animation-name: spinner-border;
    animation-duration: 0.75s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner-border-reverse {
    border-color: transparent currentColor transparent transparent;
}

.spinner-border-reverse::after {
    position: absolute;
    top: -0.25em;
    right: -0.25em;
    bottom: -0.25em;
    left: -0.25em;
    display: inline-block;
    content: "";
    border: 0.25em solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.spinner-border-sm.spinner-border-reverse::after {
    border-width: 0.2em;
}

@keyframes spinner-grow {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.spinner-grow {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    text-indent: -999em;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    animation-name: spinner-grow;
    animation-duration: 0.75s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}

.box-load {
    padding: 50px;
}

.swal2-popup {
    padding-top: 20px !important;
}


.select2-container--bootstrap4 .select2-selection {
    border-radius: 0 !important;
    border: 1px solid #f2f2f2 !important;
}


.loader {
    position: relative;
    text-align: center;
    margin: 15px auto 35px auto;
    z-index: 9999;
    display: block;
    width: 80px;
    height: 80px;
    border: 10px solid rgba(0, 0, 0, .3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.logo-text {
    font-size: 0.5em;
}

/* .nav-item p {
    font-size: 0.7em;
} */

#addNewNoti {
    float: right;
    background: #564477;
    color: #fff;
    margin-left: 1%;
}

#addNewGroupLine {
    float: right;
    background: #564477;
    color: #fff;
    margin-left: 1%;
}

.btn-keaw{
    background: #e7f6e1;
    color: #87d068;
}
.btn-dang{
    background: #fcd4da;
    color: #f22a47;
}

#status {
    background: #e7f6e1;
    color: #87d068;
}


.email {
    background: #fff9dd;
    color: #ffd200;
}

.line {
    background: #f5e6fe;
    color: #be63f9;
}

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

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

.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: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #87d068;
}

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

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%;
}

.modal-content {
    background-color: white;
}

.btnC {
    /* float: left; */
    background: #564477;
    color: #fff;
    margin: auto;
    width: 10vw;
}

.nav-link p {
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.nav-link {
    /* font-size: 14px; */
    /* display: block; */
    padding: 0.5rem 20px;
}

.nav-link i {
    font-size: 20px;

}


.dataTables_paginate {
    float: right;
}

.dataTables_length {
    float: left;
}

.dataTables_info {
    float: left;
    padding: 5px 19px !important;
}

.content-header {
    padding: 0;
    background: #fff;
}



/* // X-Small devices (portrait phones, less than 576px) */
/* // No media query for `xs` since this is the default in Bootstrap */

/* // Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}


/* Circle loader */
.circle-loader {
    width: 70px;
    height: 70px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

.circle-loader:after,
.circle-loader:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    /* border-top-color: #ffaf00; */
}

.circle-loader:before {
    z-index: 100;
    -webkit-animation: spin 1s infinite;
    animation: spin 1s infinite;
}

.circle-loader:after {
    border: 10px solid #e6eef2;
}


#loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background-color: rgba(255, 255, 255, 0.9);
}

.circle-loader:before {
    border-top-color: rgb(86, 69, 117);
}

.circle-loader {
    height: 200px;
    width: 200px;
}

.loader-demo-box {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}


@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Loaders */
#pgloading {
    position: static;
}

#pgloading .bokeh {
    font-size: 100px;
    width: 1em;
    height: 1em;
    position: relative;
    margin: 0 auto;
    border-radius: 50%;
    border: 0.01em solid #f2f2f2;
    list-style: none;
    padding: 0;
}

#pgloading .bokeh li {
    position: absolute;
    width: 0.2em;
    height: 0.2em;
    border-radius: 50%;
}

#pgloading .bokeh li:nth-child(1) {
    left: 50%;
    top: 0;
    margin: 0 0 0 -.1em;
    background: #19d895;
    -webkit-transform-origin: 50% 250%;
    transform-origin: 50% 250%;
    -webkit-animation: rota 1.13s linear infinite, opa 3.67s ease-in-out infinite alternate;
    animation: rota 1.13s linear infinite, opa 3.67s ease-in-out infinite alternate;
}

#pgloading .bokeh li:nth-child(2) {
    top: 50%;
    right: 0;
    margin: -.1em 0 0;
    background: #ff6258;
    -webkit-transform-origin: -150% 50%;
    transform-origin: -150% 50%;
    -webkit-animation: rota 1.86s linear infinite, opa 4.29s ease-in-out infinite alternate;
    animation: rota 1.86s linear infinite, opa 4.29s ease-in-out infinite alternate;
}

#pgloading .bokeh li:nth-child(3) {
    left: 50%;
    bottom: 0;
    margin: 0 0 0 -.1em;
    background: #ffaf00;
    -webkit-transform-origin: 50% -150%;
    transform-origin: 50% -150%;
    -webkit-animation: rota 1.45s linear infinite, opa 5.12s ease-in-out infinite alternate;
    animation: rota 1.45s linear infinite, opa 5.12s ease-in-out infinite alternate;
}

#pgloading .bokeh li:nth-child(4) {
    top: 50%;
    left: 0;
    margin: -.1em 0 0;
    background: #2196f3;
    -webkit-transform-origin: 250% 50%;
    transform-origin: 250% 50%;
    -webkit-animation: rota 1.72s linear infinite, opa 5.25s ease-in-out infinite alternate;
    animation: rota 1.72s linear infinite, opa 5.25s ease-in-out infinite alternate;
}

@-webkit-keyframes rota {
    from {}

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes rota {
    from {}

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes opa {
    0% {}

    12.0% {
        opacity: 0.80;
    }

    19.5% {
        opacity: 0.88;
    }

    37.2% {
        opacity: 0.64;
    }

    40.5% {
        opacity: 0.52;
    }

    52.7% {
        opacity: 0.69;
    }

    60.2% {
        opacity: 0.60;
    }

    66.6% {
        opacity: 0.52;
    }

    70.0% {
        opacity: 0.63;
    }

    79.9% {
        opacity: 0.60;
    }

    84.2% {
        opacity: 0.75;
    }

    91.0% {
        opacity: 0.87;
    }
}

@keyframes opa {
    0% {}

    12.0% {
        opacity: 0.80;
    }

    19.5% {
        opacity: 0.88;
    }

    37.2% {
        opacity: 0.64;
    }

    40.5% {
        opacity: 0.52;
    }

    52.7% {
        opacity: 0.69;
    }

    60.2% {
        opacity: 0.60;
    }

    66.6% {
        opacity: 0.52;
    }

    70.0% {
        opacity: 0.63;
    }

    79.9% {
        opacity: 0.60;
    }

    84.2% {
        opacity: 0.75;
    }

    91.0% {
        opacity: 0.87;
    }
}

/* .border-secondary,
.loader-demo-box {
    border-color: #e6eef2 !important;
    border: 1px solid #f2f2f2 !important;
}

.rounded,
.loader-demo-box {
    border-radius: 0.25rem !important;
}

.loader-demo-box {
    width: 100%;
    height: 200px; 
} */

.dropify-wrapper .dropify-message span.file-icon {
    font-size: 20px !important;
}
.noti-box{
    overflow: hidden;
}


.btn-cs{
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.noti-cus-box{
    padding-top: 12px;

}

.noti-cus-box .dropdown-item-title{
    font-size: 12px;
}
.noti-cus-box .text-muted{
    font-size: 12px !important;
}