@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

    :root {
        --header-height: 3rem;
        --nav-width: 68px;
        --first-color: #3e4c8f;
        --first-color-light: #AFA5D9;
        --white-color: #F7F6FB;
        --body-font: 'Nunito', sans-serif;
        --normal-font-size: 1rem;
        --font-color: #28333b;
        --z-fixed: 100;
        --color-primary: #486bcb;
        --color-primary-hover: #3959b1;
        --color-info: #68dcff;
        --color-danger: #FF0000;
        --color-danger-hover: #dc0000;
        --color-orange: #ff4501;
        --color-orange-hover: #ff2b01;
        --font1: 'Sarabun', system-ui;
    }
    *, ::before, ::after { box-sizing: border-box; }
    html { 
        min-height: 100%;
        display: flex;
        flex-direction: column; 
    }
    body {
        flex-grow: 1;
        background: #FAFAFA;
        /* background: -webkit-linear-gradient(to right, #E8E8E8, #D2D7EE); */
        /* background: linear-gradient(to right, #E8E8E8, #D2D7EE); */
        padding-bottom: 8rem;
        font-family: var(--font1);
        font-size: 0.9rem;
        color: #28333b;
    }
    a { text-decoration: none; }
    button:focus,
    input:focus, 
    select:focus, 
    textarea:focus {
        outline: none;
        box-shadow: none !important;
        -moz-box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -o-box-shadow: none !important;
        -ms-box-shadow: none !important; 
    }


.control-size-1 {
    max-width: 5em !important;
}
.control-size-2 {
    max-width: 7em !important;
}
.control-size-3 {
    max-width: 9em !important;
}
.control-size-4 {
    max-width: 12em !important;
}
.box-min-w-40 {
    min-width: 40px !important;
}
.box-min-w-60 {
    min-width: 60px !important;
}
.box-min-w-70 {
    min-width: 70px !important;
}
.box-min-w-80 {
    min-width: 80px !important;
}
.box-min-w-100 {
    min-width: 100px !important;
}
.box-min-w-120 {
    min-width: 120px !important;
}
.box-min-w-140 {
    min-width: 140px !important;
}
.box-min-w-160 {
    min-width: 160px !important;
}
.box-min-w-180 {
    min-width: 180px !important;
}


.box-max-w-40 {
    max-width: 40px !important;
}
.box-max-w-60 {
    max-width: 60px !important;
}
.box-max-w-80 {
    max-width: 80px !important;
}
.box-max-w-100 {
    max-width: 100px !important;
}
.box-max-w-120 {
    max-width: 120px !important;
}
.box-max-w-140 {
    max-width: 140px !important;
}

.strong {
    font-weight: 600 !important;
}

.fs-de { font-size: 1rem !important; }
.fs-sm { font-size: 0.725rem !important; }
.fs-md { font-size: 0.825rem !important; }
.fs-lg { font-size: 1.125rem !important; }
.text-dec-inc {
    font-size: 0.725rem !important;
}
.number-dec-inc {
    font-size: 1rem !important;
}
.dec-inc {
    padding: 0.24rem 0.24rem;
    border-radius: 50% !important;
    border: 1px solid #333;
}

.border-dot {
    border: 1px dotted #4e45ae !important;
}
.border-dot-light {
    border: 1px dotted hsla(245, 43%, 48%, 0.25) !important;
}

/*
.main-content::-webkit-scrollbar-track {
	background-color: #FFF;
}
.main-content::-webkit-scrollbar {
	width: 12px;
	background-color: #FFF;
}
.main-content::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(179, 179, 179, 0.719);
	background-color: #8e8e8e;
}
*/

.section {
    display: block;
    min-height: 100%;
    padding-top: 24px;
    padding-bottom: 40px;
}
.section-secondary {
    min-height: 100%;
    padding-top: 4px;
    padding-bottom: 4px;
}
.bg-custom {
    background: #D2D7EE;
    background: -webkit-linear-gradient(to right, #E8E8E8, #D2D7EE);
    background: linear-gradient(to right, #E8E8E8, #D2D7EE);
}
.bg-custom-second {
    background: hsla(229, 45%, 88%, 0.9);
    background: -webkit-linear-gradient(to right, hsla(0, 0%, 91%, 0.9), hsla(229, 45%, 88%, 0.9));
    background: linear-gradient(to right, hsla(0, 0%, 91%, 0.9) hsla(229, 45%, 88%, 0.9));
}


.fixed-side-menu {
    position: absolute;
    background: rgba(68, 68, 68, 0.9);
    color: #fff;
    writing-mode: tb-rl;
    right: -42px;
    top: 8px;
    cursor: pointer;
    height: 100px;
    padding: 10px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}

.fixed-side-menu span {
    padding: 14px;
}
.nav-fixed-side {
    padding: 8px 4px 4px 12px;
    width: 160px;
    border-right: 30px solid #ffffff00;
    position: fixed;
    left: -132px;
    /* top: 50%; */
    transition: all 0.8s;
    z-index: 11;
    border-radius: 5px;
}
.open-fixed-side {
    left: 0;
}


/* Nav Types Menu */
.navbar-nav .nav-types {
    /* padding-top: 10px;
    margin: 4px 0; */
    padding: 0px;
}
.navbar-nav .nav-types .nav-type {
    width: 100%;
    min-width: 100px;
    background: #f2f4f7;
    border: 2px solid #e8ebed;
    padding: 12px 6px;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.5s ease;
}
.navbar-nav .nav-types .nav-type:hover {
    border: 2px solid rgba(64,179,255,0.5);
}
.navbar-nav .nav-types .nav-type:hover .nav-logo,
.navbar-nav .nav-types .nav-type:hover p {
    color: #28333b;
}

.navbar-nav .nav-types .nav-type .nav-logo,
.navbar-nav .nav-types .nav-type p {
    transition: all 0.5s ease;
}
.navbar-nav .nav-types .nav-type .nav-logo {
    font-size: 28px;
    color: #8a959c;
}
.navbar-nav .nav-types .nav-type .nav-logo img {
    max-width: 48px;
    margin-bottom: 8px;
}
.navbar-nav .nav-types .nav-type p {
    margin-bottom: 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #737b81;
}

/* Sidebar */
.sidebar {
    /* margin-top: 4.8rem; */
    height: calc(93vh);
    overflow-y: scroll;
}
.sidebar::-webkit-scrollbar {
    /* display: none; */
    width: 8px;
    height: 8px;
    background-color: #fff;
}
  
.sidebar::-webkit-scrollbar-thumb {
    background-color: #545454ac;
}

.custome-sidebar {
    padding-top: 12px;
    padding-bottom: 24px;
}
.custome-sidebar li a {
    width: 100%; 
    display: block;
}
.custome-sidebar .nav-types {
    padding-top: 1px;
    margin: 2px 0;
}
.custome-sidebar .nav-types .nav-type {
    width: 100%;
    min-width: 100px;
    background: #f2f4f7;
    border: 2px solid #e8ebed;
    padding: 12px 6px;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.5s ease;
}
.custome-sidebar .nav-types .nav-type:hover {
    border: 2px solid rgba(64,179,255,0.5);
}
.custome-sidebar .nav-types .nav-type:hover .nav-logo,
.custome-sidebar .nav-types .nav-type:hover p {
    color: #28333b;
}

.custome-sidebar .nav-types .nav-type .nav-logo,
.custome-sidebar .nav-types .nav-type p {
    transition: all 0.5s ease;
}
.custome-sidebar .nav-types .nav-type .nav-logo {
    font-size: 28px;
    color: #8a959c;
}
.custome-sidebar .nav-types .nav-type .nav-logo img {
    max-width: 48px;
    margin-bottom: 8px;
}
.custome-sidebar .nav-types .nav-type p {
    margin-bottom: 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #737b81;
}


/* Nav Types More */
.nav-types {
    padding-top: 10px;
    margin: 4px 0;
}
.nav-types .nav-type {
    width: 100%;
    min-width: 140px;
    background: #f2f4f7;
    border: 2px solid #e8ebed;
    padding: 15px 6px;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.5s ease;
}
.nav-types .nav-type:hover {
    border: 2px solid rgba(64,179,255,0.5);
}
.nav-types .nav-type:hover .nav-logo,
.nav-types .nav-type:hover p {
    color: #28333b;
}

.nav-types .nav-type .nav-logo,
.nav-types .nav-type p {
    transition: all 0.5s ease;
}
.nav-types .nav-type .nav-logo {
    font-size: 48px;
    color: #8a959c;
}
.nav-types .nav-type .nav-logo img {
    max-width: 80px;
    margin-bottom: 8px;
}
.nav-types .nav-type p {
    margin-bottom: 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #737b81;
}
.bg-none {
    background-color: none !important;
    background: none !important;
}
.grid-form {
    padding: 18px 10px;
}
.header-logo-login img {
    width: 100% !important;
    max-width: 120px !important;
    margin-bottom: 18px;
}
.btn-custom-login {
    padding: 12px 40px;
    font-size: 1.1rem;
}
.footer-powered {
    width: 100%;
    padding-top: 24px;
    text-align: center;
    /*
    display: flex;
    display: -webkit-flex; 
    flex-wrap: nowrap;
    white-space: nowrap; */
}
#process_overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    cursor: pointer;
}
  
#text_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}

/* DROPZONE */
/*
.dropzone {
    align-items: center !important;
    -ms-flex-item-align: center !important;
}
*/
.dz-clickable {
    border-radius: 5px;
    border: 1px dashed rgb(0, 115, 255) !important;
}
.dz-remove {
    margin-top: 4px;
    color: #fff;
    background-color: var(--color-orange);
    border-radius: 5px;
    border-color: var(--color-orange-hover);
    box-shadow: unset; 
    font-size: 0.78rem;
}
.dropzone_image_preview {
    width: 100%;
    max-width: 150px !important;
}

/* DATATABLES */
.datatables {
    font-size: 0.9rem !important;
}
table.th-custom-sm th {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}
.dt-buttons {
    text-align: left !important;
    padding-left: 7px !important;
}
.dataTables_filter {
    display: flex;
    align-items: center;
    justify-content: end;
    margin-top: 4px !important;
    padding-left: 0 !important;
    text-align: right !important;
}
  
@media (max-width: 772px) {
    .dataTables_filter {
      justify-content: start;
    } 
    .fixed-side-menu {
        right: -40px;
    }
}

.header-container h4 {
    padding-top: 18px;
    font-weight: 600;
    font-family: 'Sarabun', system-ui;
    font-size: 1.6rem;
    text-transform: uppercase; 
    color: #3f4e58;
}

.main-list {
    width: 100%;
}
.main-list .header-main-list {
    top: 7px;
}

.main-list .body-main-list {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.header-container {
    background: #E6E6FA; 
    border-radius: 0.78rem;
    width: 100%;
    margin-top: 18px;
    text-align: left;
    padding-left: 20px;
    padding-bottom: 10px;
    align-items: center;
    justify-items: center;
}

.header-title {
    margin-top: 18px;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.content-detail {
    min-height: 120px !important;
}

.cartsidebar-img {
    max-width: 48px;
}
.shopping-img {
    width: 100%;
    max-width: 280px;
    margin-bottom: 4px;
}

.fs-content-title {
    font-size: 0.96rem !important;
    font-weight: 500 !important;
    word-wrap: break-word;
}

.navbar-name {
    font-weight: 600;
    text-transform: uppercase;
}
.card-title {
    padding: 20px 0 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #012970;
}


.ui-draggable, .ui-droppable {
	background-position: top;
}
#ui-datepicker-div {
    z-index: 1111 !important;
}
#ui-datepicker-div,
.ui-datepicker-title,
select.ui-datepicker-month,
select.ui-datepicker-year {
    font-family: var(--font1) !important;
}
/*
.ui-datepicker {
    z-index: 11111 !important;
}
*/

.form-checkbox-custom {
    display: block;
    padding: 4px 0px;
}
  
.form-checkbox-custom input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}
  
.form-checkbox-custom label {
    position: relative;
    cursor: pointer;
}
  
.form-checkbox-custom label:before {
    content:'';
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 2px solid #0079bf;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 10px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
}
  
.form-checkbox-custom input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 9px;
    width: 6px;
    height: 14px;
    border: solid #0079bf;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.toggle-switch {
    display: inline-block;
    background: #ccc;
    border-radius: 16px;
    width: 52px;
    height: 25px;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
    cursor: pointer;
}
.toggle-switch:before, .toggle-switch:after {
    content: "";
}
.toggle-switch:before {
    display: block;
    background: linear-gradient(to bottom, #fff 0%, #eee 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
    width: 20px;
    height: 20px;
    position: absolute;
    top: 2px;
    left: 1px;
    transition: left 0.25s;
}
.form-switch-toggle:hover .toggle-switch:before {
    background: linear-gradient(to bottom, #fff 0%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.switch-toggle-checkbox:checked + .toggle-switch {
    background: #56c080;
}
.switch-toggle-checkbox:checked + .toggle-switch:before {
    left: 30px;
}
  
.switch-toggle-checkbox {
    position: absolute;
    visibility: hidden;
}
  
.switch-toggle-label {
    margin-left: 5px;
    position: relative;
    top: 2px;
}

/* *** WIDTH TABLE *** */
.min-w-980 {
    min-width: 980px !important;
}
.min-w-800 {
    min-width: 800px !important;
}
.min-w-600 {
    min-width: 600px !important;
}
.min-w-480 {
    min-width: 480px !important;
}
.min-w-280 {
    min-width: 280px !important;
}
.min-w-230 {
    min-width: 230px !important;
}
.min-w-180 {
    min-width: 180px !important;
}
.min-w-120 {
    min-width: 120px !important;
}

.offcanvas-top {
    min-height: 280px !important;
}

.items-img {
    max-width: 60px !important;
}

.main-card {
    min-height: 100vh !important;
}

/* gffgfgdfg */
.tbcart-quantity{
    width: auto;
    display: flex;
	justify-content: space-between;
}
.tbcart-price-per{
    min-width: 100px; 
    /* text-align: right; */
}
.tbcart-price-total{
    min-width: 100px; 
    /* text-align: right; */
}
.tbcart-points{
    min-width: 80px; 
    /* text-align: right; */
}
.cart-quantity{
    min-width: 60px; 
    text-align: center;
}
.tbfooter-text-total {
    /* text-align: right; */
    font-size: 1.2rem;
    font-weight: 600;
}
.tbfooter-total {
    min-width: 120px;
    /* text-align: right; */
    font-size: 1.2rem;
    font-weight: 600;
}
@media(max-width: 292px) {
    .tbfooter-text-total,
    .tbfooter-total {
        font-size: 0.98rem;
        font-weight: 600;
    }
}
.btn-update-quantity{
    border: 0;
    border-radius: 3px;
    background-color: hsl(0, 2%, 90%);
}
.btn-remove-action{
    border: 0;
    border-radius: 3px;
    background-color: hsl(0, 100%, 50%);
    color: hsl(0, 0%, 94%);
}
  
.notification-badge { 
    background-color: rgba(255, 255, 255, 0.7); 
    float: right; 
    color: #222; 
    padding: 0px 6px !important; 
    border-radius: 2px; 
}


.scrollarea {
    overflow-y: auto;
}


.nav-breadcrumb {
    padding-top: 1.24rem;
    padding-left: 0.4rem;
}


/*
.side-navbar {
    width: 256px;
    position: fixed;
    margin-left: -300px;
    background-color: var(--first-color);
    background: #1f2f83;
    background: -webkit-linear-gradient(to right, #1f2f83, #3549a1);
    background: linear-gradient(to right, #1f2f83, #3549a1);
    transition: 0.5s;
    z-index: 33;
}
*/
.warpper-sidebar {
    padding: 1.68rem 0.1rem;
}
.nav-link:active,
.nav-link:focus,
.nav-link:hover {
    background-color: #ffffff26;
}
.nav-link a {
    color: var(--white-color);
}
.nav-link a:active,
.nav-link a:focus,
.nav-link a:hover {
    color: #c8d0f6
}
.warpper-container {
    transition: 0.4s;
} 
.nav-sidebar-show {
    margin-left: 0;
}
.sidebar-show {
    margin-left: 256px;
}
.nav-sidebar-logo img {
    max-width: 28px;
}
.nav-sidebar-logo span {
    padding-left: 0.7rem;
    margin-top: 0.34rem;
}
.nav-sidebar-link {
    padding-left: 0.8rem;
}
.nav-sidebar-link i {
    font-size: 0.65rem;
}
.nav-sidebar-link span {
    padding-left: 0.7rem;
}
.nav small {
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
    font-size: 1.1rem;
    color: #acacac;
}
.nav-footer {
    background: hsla(254, 22%, 19%, 0.15);
    padding: 8px 4px;
    font-size: 1.4rem !important;
}
.nav-footer a,
.nav-footer a:hover {
    color: #dadada;
}
@media screen and (max-width: 992px) {
    .sidebar {
        height: calc(83vh);
    }
    .side-navbar {
        margin-top: 4.8rem;
    }
    .nav-sidebar-show {
        margin-left: 0;
    }
    .sidebar-show {
        margin-left: 0;
    }
}
.sidebar ul li a:hover{
	text-decoration: none;
}


.fs-content-title {
    font-size: 0.78rem !important;
}


.navbar-slider {
    padding: 4px 28px;
    margin-bottom: 8px !important;
    max-height: 9rem;
}
.navbar-slider .box {
    position: relative;
    width: 100%;
    background: #fffefe;
    background: -webkit-linear-gradient(to right, #ffffff, #fffefe);
    background: linear-gradient(to right, #ffffff, #fffefe);
    border-radius: 1rem;
    border: 1px solid #e7e7e7;
    margin: 1px 2px;
    padding: 1px;
}
.navbar-slider .box a,
.navbar-slider .box a:hover {
    color: var(--color-primary-hover);
}
.navbar-slider .box .icon {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}
.navbar-slider .box .icon img {
    height: 4rem;
    max-width: 4.8rem;
    opacity: 0.78;
}
.navbar-slider .box .icon img:hover,
.navbar-slider .box .icon img:focus {
    opacity: 1;
}
.navbar-slider .box .title {
    padding: 6px 0;
    width: 100%;
    font-size: 0.745rem;
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: .2rem .2rem .8rem .8rem;
}

.navbar-slider .box .notification-badge { 
    background-color: rgba(249, 0, 0, 0.7); 
    position: absolute; 
    color: #ffffff; 
    right: 0;
    padding: 0px 6px !important; 
    border-radius: 2px 1rem 0 2px;
    z-index: 1;
}

.navbar-slider .NextArrow {
	position: absolute;
	top: 50%;
	right: 0px;
	width: 25px;
	height: 45px;
	background: rgba(0, 14, 162, 0.25);
	border: 0 none;
	margin-top: -22.5px;
	text-align: center;
	font: 20px/45px FontAwesome;
	color: #FFF;
	z-index: 2;
}
  
.navbar-slider .NextArrow:before { content: '\f105'; }  
.navbar-slider .PrevArrow {
	position: absolute;
	top: 50%;
	left: 0px;
	width: 25px;
	height: 45px;
	background: rgba(0, 14, 162, 0.25);
	border: 0 none;
	margin-top: -22.5px;
	text-align: center;
	font: 20px/45px FontAwesome;
	color: #FFF;
	z-index: 5;
}
.navbar-slider .PrevArrow:before { content: '\f104'; }
.navbar-slider .slick-dots {
	position: absolute;
	height: 5px;
	background: rgba(255,255,255,.20);
	bottom: 0px;
	width: 100%;
	left: 0px;
	padding: 0px;
	margin: 0px;
	list-style-type: none;
}
.navbar-slider .slick-dots li button { display: none; }
.navbar-slider .slick-dots li {
	float: left;
	width: 0px;
	height: 1px;
	background: var(--color-primary-hover);
	position: absolute;
	left: 0px;
	bottom: 0px;
}
  
.navbar-slider .slick-dots li.slick-active {
	width: 100%;
	-webkit-animation: ProgressDots 6s both;
			animation: ProgressDots 6s both;
}
@-webkit-keyframes ProgressDots { from { width: 0px; } to { width: 100%; } }
@keyframes ProgressDots { from { width: 0px; } to { width: 100%; } }
