/* Font */
@font-face {
	font-family: 'Sarabun';
	font-weight: 100;
	font-style: normal;
	src: url(../font/Sarabun-Thin.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 100;
	font-style: italic;
	src: url(../font/Sarabun-ThinItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 200;
	font-style: normal;
	src: url(../font/Sarabun-ExtraLight.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 200;
	font-style: italic;
	src: url(../font/Sarabun-ExtraLightItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 300;
	font-style: normal;
	src: url(../font/Sarabun-Light.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 300;
	font-style: italic;
	src: url(../font/Sarabun-LightItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 400;
	font-style: normal;
	src: url(../font/Sarabun-Regular.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 400;
	font-style: italic;
	src: url(../font/Sarabun-Italic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 500;
	font-style: normal;
	src: url(../font/Sarabun-Medium.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 500;
	font-style: italic;
	src: url(../font/Sarabun-MediumItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 600;
	font-style: normal;
	src: url(../font/Sarabun-SemiBold.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 600;
	font-style: italic;
	src: url(../font/Sarabun-SemiBoldItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 700;
	font-style: normal;
	src: url(../font/Sarabun-Bold.ttf) format('truetype');
}
@font-face {
	font-family: 'Sarabun';
	font-weight: 700;
	font-style: italic;
	src: url(../font/Sarabun-BoldItalic.ttf) format('truetype');
}

:root {
	--bs-primary: #641310;
	--bs-secondary: #fce9e7;
	--bs-info: #47afd8;
	--bs-success: #009b63;

	--bg-page-1: #f9f9f9;

	--kbank: #138f2d;
}


/* Main */
html,
body {
	font: 300 14px/1.5 'Sarabun' !important;
	background-color: var(--bg-page-1);
}


/* Image */
.profile-image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}


/* Badge */
.badge {
	font-size: 0.9rem;
	font-weight: 500;
}


/* Typo */
b, strong, .strong {
	font-weight: 600;
}
.bg-primary {
	background-color: var(--bs-primary) !important;
}
.text-primary {
	color: #9d6b3d !important;
}
.border-gray {
	border-color: #dfe3e6 !important;
}
.fs-7 {
	font-size: 1.1rem !important;
}
.bg-kbank {
	background-color: var(--kbank) !important;
}
.bg-success {
	background-color: var(--bs-success) !important;
}


/* Button */
a {
	color: #9d6b3d;
}
a:hover,
a:focus,
a:active {
	color: #784f29;
}
.btn {
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
}
.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-primary);
	--bs-btn-border-color: var(--bs-primary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #500b09;
	--bs-btn-hover-border-color: #500b09;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #350604;
	--bs-btn-active-border-color: #350604;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--bs-primary);
	--bs-btn-disabled-border-color: var(--bs-primary);
}
.btn-success {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-success);
	--bs-btn-border-color: var(--bs-success);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #006d45;
	--bs-btn-hover-border-color: #006d45;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #005939;
	--bs-btn-active-border-color: #005939;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: var(--bs-success);
	--bs-btn-disabled-border-color: var(--bs-success);
}



/* Dropdown */
.dropdown-toggle::after {
	display: none;
}
.dropdown-menu {
	--bs-dropdown-min-width: 175px;
	--bs-dropdown-border-width: 0;
	--bs-dropdown-border-radius: 12px;
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.04);
	--bs-dropdown-padding-y: 0;
	--bs-dropdown-item-padding-y: 0.6rem;
	--bs-dropdown-link-hover-color: var(--bs-primary);
	--bs-dropdown-link-hover-bg: var(--bs-secondary);
	--bs-dropdown-link-active-color: var(--bs-primary);
	--bs-dropdown-link-active-bg: var(--bs-secondary);
	--bs-dropdown-divider-margin-y: .25rem;
	z-index: 1021;
}
.dropdown-menu > li:first-child > a {
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}
.dropdown-menu > li:last-child > a {
	border-bottom-left-radius: 12px;
	border-bottom-right-radius: 12px;
}



/* Form */
label {
	font-weight: 500;
}
.form-control {
	border-color: #dee2e6;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
}
.form-control:focus {
	border-color: var(--bs-primary);
}
.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
	color: #7c8185;
}
.form-check-input:checked {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
}
.input-with-icon {
	position: relative;
}
.input-with-icon i,
.input-with-icon img {
	position: absolute;
	left: 14px;
	top: 10px;
}
.input-with-icon img {
	top: 10px;
}
.input-with-icon .form-control {
	padding-left: 40px;
}
.input-with-icon.right i,
.input-with-icon.right img {
	right: 14px;
	left: auto;
}
.input-with-icon.right .form-control {
	padding-left: 15px;
	padding-right: 40px;
}
.form-check {
	padding-left: 25px;
}
.form-check .form-check-input {
	margin-left: -25px;
}
.form-check-input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
}
.form-check-input:checked {
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
}
.form-check-input:checked[type=radio] {
	--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='4' stroke='white' stroke-width='3' fill='none' /%3e%3c/svg%3e");
}


/* Navbar */
.navbar {
	--bs-navbar-padding-y: 9px;
	border-bottom: 1px solid #ECEFF8;
}
.navbar-nav {
	--bs-nav-link-color: var(--gray-1);
	--bs-nav-link-hover-color: var(--bs-primary);
	--bs-navbar-active-color: var(--bs-primary);
	--bs-nav-link-font-weight: 400;
	--bs-navbar-nav-link-padding-x: 1rem;
	--bs-nav-link-padding-y: 0.75rem;
}
.nav-link .icon {
	font-size: 16px;
}

/* Sidebar */
.main-sidebar {
	position: fixed;
    width: 260px;
    left: 0;
    top: 50px;
    bottom: 0;
    background-color: #fff;
    padding: 15px 0;
    border-right: 1px solid #dfe3e6;
    z-index: 100;
    overflow: scroll;
}
.sidebar-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sidebar-menu > li > a {
	padding: 12px 15px;
	border-left: 4px solid transparent;
	color: #0f212e;
}
.sidebar-menu > li > a > span {
	display: inline-block;
	line-height: 20px;
	vertical-align: middle;
	font-weight: 500;
}
.sidebar-menu > li > a img {
	margin-right: 10px;
}
.sidebar-menu > li > a i {
	font-size: 18px;
	vertical-align: middle;
	margin-right: 15px;
}
.sidebar-menu > li > a:hover,
.sidebar-menu > li > a:focus,
.sidebar-menu > .active > a {
	background-color: #f0f3f6;
	border-color: #9d6b3d;
	color: #9d6b3d;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu {
    padding: 0;
    margin: 0;
    display: none;
    position: relative !important;
    float: none;
    width: 100%;
    box-shadow: none;
    background-color: transparent;
    -webkit-transition: .25s all;
    -moz-transition: .25s all;
    transition: .25s all;
    height: 0;
    inset: auto !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    border: none;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu > li > a {
	padding-left: 50px;
	color: #0f212e;
}
.main-sidebar .sidebar-menu li ul.dropdown-menu.show {
	display: block;
	height: auto;
	opacity: 1;
	visibility: visible;
}


/* Content */
.main-content {
	/* margin-top: 60px; */
	padding: 20px;
	padding-top: 80px;
	min-height: calc(100vh - 50px);
}

.section-header h1 {
	font-size: 28px;
	margin: 0;
}
.section-header {
	margin-bottom: 25px;
}
.same-line > div {
	font-size: 0;
}
.same-line > div > label,
.same-line > div > span {
	font-size: 1rem;
	display: inline-block;
	width: 50%;
	vertical-align: top;
}
.same-line.label-wider > div > label {
	width: 60%;
}
.same-line.label-wider > div > span {
	width: 40%;
}


/* Card */
.card {
	background-color: #fffcf3;
	border: none;
	border-radius: 0;
}
.card-border {
	border: 1px solid #9d6b3d;
}
.card-body {
	padding: 20px;
}
.card-header {
	background-color: var(--bs-secondary);
	padding: 20px;
	border: none;
}
.card-header h4 {
	font-size: 18px;
	display: inline-block;
	margin: 0;
	line-height: 32px;
}
.card .card-header + .card-body {
	padding-top: 0;
}
.card-header h4 .btn {
	font-size: 14px;
}
.card-header-action {
	float: right;
}
.card-header-action.left {
	display: inline-block;
	float: none;
}
.card-header-action .input-group {
	width: 360px;
	float: left;
}
.card-header-action.wider .input-group {
	width: 960px;
}
.card-header-action .input-group .form-control {
	background-color: transparent;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
}
.card-header-action .input-group .btn {
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
}
.card-header-action .btn-action {
	width: 120px;
}
.card-p0 {
	background-color: transparent;
}
.card-p0 .card-header {
	padding-left: 0;
	padding-right: 0;
	background-color: transparent;
	padding-bottom: 20px;
}
.card-filter .form-group {
	margin: 0;
}
.card-filter .selectgroup-button {
	height: 42px;
	line-height: 40px;
}
.card-filter .btn {
	padding: 8px;
}
.card-bottom {
	position: fixed;
	right: 0;
	left: 250px;
	bottom: 0;
	padding: 10px 30px;
	-webkit-transition: .5s all;
	-moz-transition: .5s all;
	transition: .5s all;
}
.card-bottom.mini-sidebar {
	left: 65px;
}
.card-stat {
	background-color: #fff;
}
.card-stat h3 {
	margin: 0;
}
.required > label:first-child {
	position: relative;
}
.required > label:first-child:after {
	content: "*";
	color: red;
	display: block;
	position: absolute;
	top: 0;
	right: -12px;
}
.custom-control-label {
	cursor: pointer;
}
.custom-checkbox-notext {
	line-height: 1rem !important;
	min-height: 0;
	padding: 0;
}
.custom-checkbox-notext .custom-control-label::before {
	position: relative;
	top: 0;
	left: 0;
}
.custom-checkbox-notext .custom-control-label::after {
	position: absolute;
	top: 0;
	left: 0;
}


/* Navtab */
.nav-tabs .nav-link {
	color: #152935;
	font-weight: 500;
	border-color: #dfe3e6;
	border-bottom: none;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
	background-color: #fffcf3;
	border-color: #fffcf3;
}


/* Pagination */
.pagination > li + li {
	margin-left: 10px;
}
.pagination > li:first-child > .page-link,
.pagination > li:last-child > .page-link {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
.page-link {
	border-color: #8c9ba5;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	background-color: transparent;
	color: #8c9ba5;
}
.page-link img {
	margin-top: -2px;
}
.page-item.disabled .page-link {
	background-color: transparent;
}
.page-link:hover {
	font-weight: 500;
    color: #9d6b3d;
    background-color: transparent;
    border-color: #8c9ba5;
}
.page-item.active .page-link {
	font-weight: 500;
    color: #9d6b3d;
    border-color: #9d6b3d;
    background-color: transparent;
}


/* Breadcrumb */
.section-header-breadcrumb a {
	color: #7c8185;
	font-size: 20px;
	text-decoration: none;
}
.section-header-breadcrumb .active {
	font-size: 24px;
	color: #152935;
	font-weight: 500;
}
.section-header-breadcrumb > div {
	line-height: 24px;
}


/* Modal */
.modal-content {
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	background-color: #e1e8f3;
}
.modal-header {
	border: none;
	padding: 20px 20px 0;
}
.modal-body {
	padding: 20px;
}


/* Table */
.table thead th {
	background-color: var(--bs-secondary);
}
.table td,
.table tfoot th {
	background-color: #fff;
}
.table th,
.table td {
	padding: 8px 12px;
	vertical-align: middle;
}


/* QR SCAN */

/* Font */
@font-face {
	font-family: 'Kanit';
	font-weight: 100;
	font-style: normal;
	src: url(../font/Kanit-Thin.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 100;
	font-style: italic;
	src: url(../font/Kanit-ThinItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 200;
	font-style: normal;
	src: url(../font/Kanit-ExtraLight.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 200;
	font-style: italic;
	src: url(../font/Kanit-ExtraLightItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 300;
	font-style: normal;
	src: url(../font/Kanit-Light.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 300;
	font-style: italic;
	src: url(../font/Kanit-LightItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 400;
	font-style: normal;
	src: url(../font/Kanit-Regular.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 400;
	font-style: italic;
	src: url(../font/Kanit-Italic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 500;
	font-style: normal;
	src: url(../font/Kanit-Medium.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 500;
	font-style: italic;
	src: url(../font/Kanit-MediumItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 600;
	font-style: normal;
	src: url(../font/Kanit-SemiBold.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 600;
	font-style: italic;
	src: url(../font/Kanit-SemiBoldItalic.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 700;
	font-style: normal;
	src: url(../font/Kanit-Bold.ttf) format('truetype');
}
@font-face {
	font-family: 'Kanit';
	font-weight: 700;
	font-style: italic;
	src: url(../font/Kanit-BoldItalic.ttf) format('truetype');
}

.bg-gray-1 {
	background-color: #eee !important;
}

.btn-white {
	--bs-btn-color: var(--bs-primary);
	--bs-btn-bg: #fff;
	--bs-btn-border-color: #fff;
	--bs-btn-hover-color: var(--bs-primary);
	--bs-btn-hover-bg: #ddd;
	--bs-btn-hover-border-color: #ddd;
	--bs-btn-focus-shadow-rgb: ;
	--bs-btn-active-color: var(--bs-primary);
	--bs-btn-active-bg: #ddd;
	--bs-btn-active-border-color: #ddd;
	--bs-btn-active-shadow: ;
	--bs-btn-disabled-color: var(--bs-primary);
	--bs-btn-disabled-bg: #fff;
	--bs-btn-disabled-border-color: #fff;
}
