@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Sarabun/Sarabun-Medium.ttf');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 500;
    src: url('/fonts/Sarabun/Sarabun-Medium.ttf');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Sarabun/Sarabun-Bold.ttf');
}

.btn-primary {
    /* background-color: #008080 !important;
    border-color: #008080 !important; */
    background-color: #1572e8 !important;
    border-color: #1572e8 !important;
}

body {
    font-family: 'Sarabun' !important;
    box-sizing: border-box;
    height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sarabun', sans-serif;
}

.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    flex: 1;
}

.login-body {
    height: 100%;
    width: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.login-form {
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    max-width: 450px;
    min-height: 100vh;
}

.login-inner {
    min-height: 100vh;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
}

.text-login {
    color: #fff;
    margin: 0;
    line-height: 1.5;
    margin-bottom: 5px;
}

.form-header {
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    padding: 1rem;
    margin-bottom: 3rem;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 5px;
    background: #525f7f;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.bg-img {
    background-image: url('/images/bg_steel.jpg') !important;
    background-position: 64%;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff !important;
    padding: 15px 15px 200px;
}

.bg-img h1 {
    color: #fff !important;
}

.main-login-container {
    display: -webkit-box;
    display: flex;
}

.side-login-left {
    background: url('/images/XHHN1113-2.jpg');
    -webkit-box-flex: 1;
    flex: 1;
    background-size: cover;
    flex-basis: 0;
    -webkit-filter: blur(1px);
    filter: blur(1px);
}

.side-login-right {
    background: url('/images/XHHN1129.jpg');
    -webkit-box-flex: 1;
    flex: 1;
    background-size: cover;
    flex-basis: 0;
    -webkit-filter: blur(1px);
    filter: blur(1px);
}

#login-form a {
    color: #595959;
}

label {
    color: #595959;
}

.form-control-feedback {
    color: #595959;
}

.skin-blue .main-header .logo,
.skin-blue-light .main-header .logo {
    background: #38679f;
}

.skin-blue .main-header .navbar,
.skin-blue-light .main-header .navbar {
    background: #6e9ecc;
}

.skin-black .main-sidebar,
.skin-blue .main-sidebar,
.skin-green .main-sidebar,
.skin-purple .main-sidebar,
.skin-red .main-sidebar,
.skin-yellow .main-sidebar {
    background: #183d6a !important;
    border-right: 0 !important;
}

.skin-blue .sidebar-menu > li.active > a {
    border-left-color: #f4f4f4;
}

.skin-black .sidebar-menu > li.active > a,
.skin-black .sidebar-menu > li.menu-open > a,
.skin-black .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a,
.skin-blue .sidebar-menu > li.menu-open > a,
.skin-blue .sidebar-menu > li:hover > a,
.skin-green .sidebar-menu > li.active > a,
.skin-green .sidebar-menu > li.menu-open > a,
.skin-green .sidebar-menu > li:hover > a,
.skin-purple .sidebar-menu > li.active > a,
.skin-purple .sidebar-menu > li.menu-open > a,
.skin-purple .sidebar-menu > li:hover > a,
.skin-red .sidebar-menu > li.active > a,
.skin-red .sidebar-menu > li.menu-open > a,
.skin-red .sidebar-menu > li:hover > a,
.skin-yellow .sidebar-menu > li.active > a,
.skin-yellow .sidebar-menu > li.menu-open > a,
.skin-yellow .sidebar-menu > li:hover > a {
    background: #38679f !important;
}

.skin-black .sidebar-menu > li > .treeview-menu,
.skin-blue .sidebar-menu > li > .treeview-menu,
.skin-green .sidebar-menu > li > .treeview-menu,
.skin-purple .sidebar-menu > li > .treeview-menu,
.skin-red .sidebar-menu > li > .treeview-menu,
.skin-yellow .sidebar-menu > li > .treeview-menu {
    background: #38679f !important;
}

@media screen and (max-width: 1024px) {
    .login-container {
        flex-basis: 305px;
    }
}

@media screen and (max-width: 500px) {
    .login-container {
        flex-basis: 100%;
    }
}

.m-t-5 {
    margin-top: 10px;
}

select:read-only .select2-container--default,
select:read-only .select2-selection--single {
    background-color: #eee !important;
}

.no-wrap {
    white-space: nowrap;
}

.bg-secondary {
    background-color: #eee !important;
}

/* .select2-selection__rendered{
  color: #9f9999 !important;
  line-height: 28px;
  font-size: 14px;
} */

.white-pre {
    white-space: pre;
}

.ui-autocomplete {
    z-index: 99999;
}

.px-10 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.width-50 + .select2.select2-container.select2-container--default {
    width: 50% !important;
}
.width-40 + .select2.select2-container.select2-container--default {
    width: 40% !important;
}
.width-60 + .select2.select2-container.select2-container--default {
    width: 60% !important;
}
.width-100 + .select2.select2-container.select2-container--default {
    width: 100% !important;
}

.btn-file {
    background-color: #1572e8;
    color: #fff !important;
    transition: all 0.2ms ease;
    -webkit-transition: all 0.2ms ease;
    -moz-transition: all 0.2ms ease;
    -ms-transition: all 0.2ms ease;
    -o-transition: all 0.2ms ease;
}

.btn-file:hover,
.btn-primary:hover {
    opacity: 0.8;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.justify-content-end {
    justify-content: end;
}

.gap-5 {
    gap: 5px;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}
.d-none {
    display: none;
}

.table>tbody>tr>td,
table th {
    vertical-align: middle;
}

.text-nowrap{
    white-space:nowrap;
}

.table>thead>tr>th {
    vertical-align: middle;
}

.table-blue thead th {
    background: #3865A1;
    color: white;
}


.table.is-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    background-color: #fff;
    border: 2px solid #ccc;
    cursor: pointer;
    position: relative;
}

.table.is-checkbox input[type="checkbox"]:checked {
    background-color: #183D6A;
    border-color: #183D6A;
}

.table.is-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
}

.form-radio-label {
    position: relative;
    padding-left: 10px;
    font-weight: 400;
}

.custom-radio {
    display: none;
}

.custom-radio+.form-radio-label::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    vertical-align: middle;
    position: relative;
    left: -10px;
}

.custom-radio:checked+.form-radio-label::before {
    background-color: #3865A1;
}

.custom-radio+.form-radio-label:hover::before {
    border: solid 2px #3865A1;
}

.custom-radio:checked+.form-radio-label::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

form {
    margin-bottom: 0;
}
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pe-none {
    pointer-events: none;
}

.w-100 {
    width: 100%;
}
.w-auto {
    width: auto;
}


.sidebar-menu>li>a>.fa, .sidebar-menu>li>a>.glyphicon, .sidebar-menu>li>a>.ion, .treeview-menu>li>a>.fa, .treeview-menu>li>a>.glyphicon, .treeview-menu>li>a>.ion {
    width: 25px;
    font-size: 16px;
    text-align: center;
    margin-right: 5px;
}

.sidebar-menu>li>a {
    font-weight: 400!important;
    padding: 12px 16px 10px 10px;
}

.sidebar-collapse .sidebar-menu>li>a {
    padding: 12px 5px 10px 8px;
}

@media (min-width: 768px) {
    .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu, .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span:not(.pull-right) {
        display: block !important;
        position: absolute;
        width: 212px;
        left: 50px;
    }
}