@font-face {
    font-family: khos;
    src: url("../fonts//KhmerOSsiemreap.ttf");
}

@font-face {
    font-family: tacteng;
    src: url("../fonts/TACTENG.TTF");
}
@font-face {
    font-family: khmerOSmuollight;
    src: url("../fonts/KhmerOSmuollight.ttf");
}
@font-face {
    font-family: wingding2;
    src: url("../fonts/wingdings2.ttf");
}
@font-face {
    font-family: kh;
    src: url("../fonts/KhmerOS_sys.ttf");
}

html, body{
    scroll-behavior: smooth;
}
body {
    --system-color : #493ce0;
    --sideBar-color : #000000;
    /* font-family: Roboto; */
    /* font-family: kk; */
}
/* .icheck-primary>input:first-child:checked+label::before {
    background-color: greenyellow;
    border-color: var(---color);
} */
#print{
    display: none;
}

.kh_muol {
    font-size: 18px;
    padding: 0;
    font-family: KhmerOSmuollight;
}

.kh_content {
    padding: 0;
    font-family: khos;
}

.border-bot {
    border-bottom: 0.5px solid var(--system-color);
}
.border-tup{
    border-top: 0.5px solid var(--system-color);   
}
.shadow-system-xs{
    box-shadow: 0px 0px 2px var(--system-color);
}
.shadow-system {
    box-shadow: -7px -7px 7px var(--system-color),7px 7px 7px var(--system-color);
    transition: all 0.2s ease;
}
.shadow-system:hover {
    box-shadow: -7px -7px 7px var(--system-color), -14px -14px 7px black;
}
.shadow-system-sm{
    box-shadow: 6px 6px 2px var(--system-color);
    border: 0.5px solid var(--system-color);
    transition: all 0.5s ease;
}
.shadow-system-sm:hover{
    box-shadow: 7px 7px 10px var(--system-color);
    scale: 0.95;
}
.search {
    border: 1px solid var(--system-color) !important;
}

.search:focus {
    color: var(--system-color);
    box-shadow: 1px 0px 5px var(--system-color);
}
.sidebar-dark-primary{
    background-color: var(--sideBar-color);
}
.txt-kh{
    font-family:sans-serif;
}
/* .bg-img{
    background-image: url('../img/bg.jpg');
    background-repeat:   no-repeat;
    background-position: center center; 
    background-size: cover;
} */
.loader {
    display: -ms-flexbox;
    display: flex;
    background-color: #f4f6f9;
    height: 100vh;
    width: 100%;
    transition: height .2s linear;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}
.login-background{
    /* background-image: url('../img/nexttech.png'); */
    background-image: url('https://htmlcolorcodes.com/assets/images/html-color-codes-color-tutorials-hero.jpg');
    background-repeat:   no-repeat;
    background-position: center center; 
    background-size: cover;
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 1300;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: var(--system-color); */
    /* color: var(--system-color); */
    padding: 0;
    margin: 0;
}
.page404{
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1300;
    background-color: white;
}
.btn-telegram{
    background-color: #229ED9;
    color: aliceblue;
}
.btn-telegram:hover {
    background-color: #0088cc;
    color: aliceblue;
}
.icon-button{
    position: absolute;
    top: 0;
    left: 0px;
    width: 38px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    padding-left: 20px;
    font-size: 1rem;
} 
.login-card-body .input-group .form-control:focus~.input-group-append .input-group-text, .login-card-body .input-group .form-control:focus~.input-group-prepend .input-group-text, .register-card-body .input-group .form-control:focus~.input-group-append .input-group-text, .register-card-body .input-group .form-control:focus~.input-group-prepend .input-group-text {
    border-color: var(--system-color);
}
.btn-login{
    background-color: var(--system-color);
    color: aliceblue;
}
.btn-login:hover{
    background-color: var(--system-color);
    color: aliceblue;
}
.txt-system{
    color: var(--system-color);
}
div.txt-system:hover{
    color: var(--system-color);
}
a.txt-system:hover{
    color: var(--system-color);
}
.btn-system{
    background-color: var(--system-color);
    border: 1px solid var(--system-color);
    color: white;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.btn-system:hover{
    background-color: var(--system-color);
    color: #ffffff;
}
.bg-system{
    background-color: var(--system-color);
}
.hover-card:hover{
    background-color: transparent !important;
}
.border-card{
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
.loading-parent{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}
.loading-child{
    margin-right: 15px;
}
.sale-page{
    width: 100%;
    max-height: 100vh;
    background-color: #f4f6f9;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1300;
    overflow: hidden;
}
.product-side{
    position: relative;
    min-height: 100vh;
    /* padding: 0 25px 25px 25px; */
    padding-bottom: 25px;
}
.m-10{
    margin-left: 2px;
    margin-right: 2px;
}
.pl-10{
    padding-left: 10px !important;
}
.pr-10{
    padding-right: 10px;
}
.receipt-side{
    position: relative !important;
    max-height: 100vh;
}
.btn-category{
    height: 48px;
    line-height: 48px;
    text-align: center;
    width: 150px;
    background-color: #88a9d0;
    border-radius: 0.25rem;
}
.bg-category{
    background-color: #88a9d0;
}
.bg-category:hover{
    background-color: #9bb4d3;
    color: #ffffff;
}
.img-product{
    width: 100%;
    height: 100%;
    background-color: #f4f6f9;
    background-position: top;
    background-size: cover;
}
.receipt{
    width: 100%;
    height: auto;
    max-height: 100vh;
    position: sticky;
    padding: 25px 30px 25px 25px;
    top: 0;
    left: 0;
    overflow-y: scroll;
    /* overflow: hidden; */
}
.border-top-radius{
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.border-bottom-radius{
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
.border-radius{
    border-radius: 5px;
}
.border-top-left-radius{
    border-top-left-radius: 5px;
}
.border-top-right-radius{
    border-top-right-radius: 5px;
}
.border-bottom-left-radius{
    border-bottom-left-radius: 5px;
}
.border-bottom-right-radius{
    border-bottom-right-radius: 5px;
}
.img-p{
    /* height: 180px; */
    height: 169.75px;
    position: relative;
}
.img-add, .img-add-danger{
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
}
.img-add::after, .img-add-danger::after{
    content: attr(img-title);
    position: absolute;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    top: 5px;
    right: 10px;
    padding: 1px 10px;
    border-radius: 3px;
    background-color: white;
    box-shadow: 4px 4px 2px var(--system-color), 8px 8px 5px #ffffff;
    color: var(--system-color);
}
.img-add-danger::after{
    box-shadow: 4px 4px 2px red, 8px 8px 5px #ffffff;
    color: red;
}
.top {
    box-shadow: 0px -15px 10px -15px var(--system-color);   
}
.bottom {
    box-shadow: 0px 12px 10px -15px var(--system-color) !important;    
}
.left {
  box-shadow: -15px 0px 10px -15px var(--system-color);    
}
.right {
    box-shadow: 15px 0px 10px -15px var(--system-color);    
}
.border-left-side{
    border-left: 0.1px solid var(--system-color) !important;
}
.border-bottom-side{
    border-bottom: 0.1px solid var(--system-color) !important;
}
.border-top-side{
    border-top: 0.1px solid var(--system-color) !important;
}
.border-right-side{
    border-right: 0.1px solid var(--system-color) !important;
}
.add-sale{
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 0.25rem;
    background-color: #f4f6f9;
    color: var(--system-color);
    /* border: 1px solid var(--system-color); */
    outline: none;
    border: none;
    box-shadow: 1px -1px 10px var(--system-color);
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    word-spacing: 2px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.add-sale-data{
    width: 100%;
    height: 48px;
    line-height: 48px;
    border-radius: 0.25rem;
    background-color: #f4f6f9;
    color: var(--system-color);
    /* border: 1px solid var(--system-color); */
    outline: none;
    border: none;
    box-shadow: 1px -1px 10px var(--system-color);
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    word-spacing: 2px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.btn-outline-system, .btn-animate{
    border: 0.7px solid var(--system-color);
    color: var(--system-color) !important;
    background-color: transparent;
    border-radius: 0.25rem;
    width: 100%;
    height: 48px;
    letter-spacing: 2px;
}
.btn-outline-system-sm {
    color: var(--system-color) !important;
    background-color: transparent;
    letter-spacing: 2px;
}
.btn-outline-system-xs{
    border: 0.7px solid var(--system-color);
    color: var(--system-color) !important;
    background-color: transparent;
    letter-spacing: 2px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.btn-animate{
    border: none;
}
.btn-animate::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 0.25rem;
    top: 0;
    left: 0;
    background-color: var(--system-color);
    animation: linear infinite alternate;
    animation-name: btnAnimate;
    animation-duration: 1s;
}
@keyframes btnAnimate{
    0% {
        background-color: #babaf0;
    }
    50% {
        background-color: #9494df;
    }
    70% {
        background-color: #6e6ec5;
    }
    100% {
        background-color: #493ce0;   
    }
}

.btn-outline-system:hover , .btn-outline-system-sm:hover , .btn-outline-system-xs:hover{
    background-color: var(--system-color) !important;
    color: white !important;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
.shadow-receipt{
    box-shadow: 0px 0px 1px var(--system-color);
}
.receipt-content{
    width: 100%;
    min-height: 75vh;
    height: auto;
}
.no-sale{
    width: 100%;
    height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.no-sale-content{
    width: 80%;
    height: 80%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed var(--system-color);
    border-radius: 0.25rem;
    color: var(--system-color);
}
.product-hover{
    transition: 0.4s ease;
    pointer-events: none;
}
/* .product-hover:hover{
    padding-top: 0px !important;
    transform: scale(1.02) translateY(-10px);
} */
/* .product-hover:hover{
    padding-top: 0 !important;
}
.product-hover:hover > div{
    box-shadow: 0px 0px 5px var(--system-color);
}  */
.product-item, .product-item-danger{
    pointer-events: auto;
}
.product-item:hover{
    box-shadow: 0px 0px 5px var(--system-color);
}
.product-item-danger:hover{
    box-shadow: 0px 0px 5px red;
}

 /* for sidebar system  */
li a.active , li>a.bg-primary{
    background-color: var(--system-color) !important;
    color: #ffffff !important;
}

li>a.bg-primary:hover{
    background-color: var(--system-color) !important;
    color: #ffffff !important;
}
ul>li a.active{
    background-color: #ffffff !important;
    color: #000000 !important;
}
li a:hover{
    color: var(--system-color) !important;
}
li a.active:hover{
    color: white !important;
}
li ul li a.active{
    color: var(--system-color) !important;
}
li ul li a.active:hover{
    color: var(--system-color) !important;
}
li a.nav-link.acitve.bg-primary{
    background-color: var(--system-color) !important;
    color: #ffffff !important;
}
/* li.menu-open a:hover{
    color: #ffffff !important;
    background-color: var(--system-color) !important;
} */
div.dob a:focus{
    background-color: #ffffff;
}

/* background animation */
.bg-animate{
    background-color: #3d4152;
    z-index: 100;
    animation: linear infinite alternate;
    animation-name: run;
    animation-duration: 1s;
}
@keyframes run {
    0% {
        background-color: #e0e0e4;
    }
    50% {
        background-color: #7b7c7f;
    }
    70% {
        background-color: #414348;
    }
    100% {
        background-color: #3d4152;   
    }
}


@keyframes loading-anim {
    from { opacity: 1; }
    to { opacity: 0.3; }
  }

  
  .loading {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 40px;
    color: var(--system-color);
    letter-spacing: -0.05em;
    font-weight: bold;
    animation: loading-anim 1s ease-in-out alternate infinite;
  }
  .load{
    opacity: 0.6 !important;
  }

  /* alert */
    .ajs-message{
        color: white !important;
        border-radius: 0.5rem !important;
    }
    .ajs-button{
        color : var(--system-color) !important;
        background-color: transparent;
        border: 0;
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
    }
    .ajs-close{
        position: relative !important;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif !important;
    }
    .ajs-close::after{
        content: '\02A02';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ffff !important;
        color: var(--system-color) !important;
    }

 /* bootstrap */
 textarea:focus,
    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="datetime"]:focus,
    input[type="datetime-local"]:focus,
    input[type="date"]:focus,
    input[type="month"]:focus,
    input[type="time"]:focus,
    input[type="week"]:focus,
    input[type="number"]:focus,
    input[type="email"]:focus,
    input[type="url"]:focus,
    input[type="search"]:focus,
    input[type="tel"]:focus,
    input[type="color"]:focus,
    .uneditable-input:focus {   
    border-color: var(--system-color);
    /* box-shadow: rgba(49, 99, 185, 0.25) 0px 0px 10px, rgba(53, 63, 174, 0.13) 0px 0px 1px 1px; */
    box-shadow: 1px 0px 5px var(--system-color);
    outline: 0 none;
}
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--system-color);
    outline: 0;
    box-shadow: inset 0 0 0 transparent;
}
.btn.dropdown-toggle.btn-light{
    padding: 0.29rem .75rem !important;
}
li.page-item.active .page-link{
    background-color: var(--system-color) !important;
    border: 1px solid var(--system-color) !important;
    opacity: 1 !important;
    color: white !important;
}
li.page-item.active .page-link:hover{
    color:  white !important;
}

/* select2 */
.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 38px;
    user-select: none;
    -webkit-user-select: none;
}
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--system-color) !important;
}
.select2-container--default .select2-dropdown .select2-search__field:focus, .select2-container--default .select2-search--inline .select2-search__field:focus {
    outline: none !important;
    border: 1px solid var(--system-color) !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--system-color) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
    background-color: var(--system-color) !important;
    color: #fff;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

/* select picker */
.bootstrap-select.form-control-sm .dropdown-toggle,
.bootstrap-select.form-control .dropdown-toggle
{
    border: 1px solid rgba(0,0,0,.125);
}
.bootstrap-select.form-control-sm .dropdown-toggle:focus, 
.bootstrap-select.form-control .dropdown-toggle:focus
{
    outline:  none !important;
    border: 1px solid var(--system-color);
}
.dropdown-item.active.selected{
    color: var(--system-color) !important;
}
.border-page-color{
    border: 1px solid rgba(0,0,0,.125) !important;
    border-radius: 0.3rem;
}
.border-page-color .dropdown-toggle:focus{
    outline:  none !important;
    border: 1px solid var(--system-color);
    color: var(--system-color) !important;
    background-color: #ffff !important;
}
.dropdown-item:focus{
    background-color: var(--system-color) !important;
    color: white !important;
}
.dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: var(--system-color) !important;
}

.txt-gray{
    color: rgba(0,0,0,.125) !important;
}
.txt-gray:hover{
    background-color: none !important;
}
.link-page{
    
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--system-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    
}
.link-page-right{
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-right: -1px;
    line-height: 1.25;
    color: var(--system-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
.link-page.txt-system:hover, .link-page-right.txt-system:hover{
    background-color: #e9ecef;
    border-color: #dee2e6;
}
.nav-item .dropdown.bootstrap-select.nav-link.form-control{
    padding-left: 7px;
}








/* checkbox to switch button */
.switch input
{
  display: none;
}
.switch 
{
  display: block;
  width: 30px; /*=w*/
  height: 15px; /*=h*/
  /* margin: 2px; */
  transform: translateY(50%);
  left: 26%;
  position: relative;
}

.slider
{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 15px;
  box-shadow: 0 0 0 2px #dee2e6, 0 0 4px #dee2e6;
  cursor: pointer;
  border: 4px solid transparent;
  overflow: hidden;
  transition: 0.2s;
}

.slider:before
{
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  background-color: #dee2e6 !important;
  border-radius: 15px;
  transform: translateX(-15px); /*translateX(-(w-h))*/
  transition: 0.2s;
}

input:checked + .slider:before
{
  transform: translateX(5px); /*translateX(w-h)*/
  background-color: var(--system-color) !important;
}

input:checked + .slider
{
  box-shadow: 0 0 0 2px var(--system-color), 0 0 8px var(--system-color);
}

.switch200 .slider:before
{
  width: 200%;
  transform: translateX(-82px); /*translateX(-(w-h))*/
}

.switch200 input:checked + .slider:before
{
  background-color: red;
}

.switch200 input:checked + .slider
{
  box-shadow: 0 0 0 2px red, 0 0 8px red;
}


/* processing */
.processing{
    width: 100%;
    height: 100%;
    /* background-color: #f4f6f9; */
    position: absolute;
    top: 0;
    left: 0;
}
div.dataTables_wrapper>.row:first-child, 
div.dataTables_wrapper>.row:last-child
{
    display: none !important;
}

/* switch 
 */

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: var(--system-color) !important;
    background-color: var(--system-color) !important;
    box-shadow: none;
}
.custom-control-input:not(:disabled):active~.custom-control-label::before {
    color: #fff;
    background-color: var(--system-color);
    border-color: var(--system-color);
    box-shadow: none;
}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: var(--system-color);
}
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: inset 0 0 0 var(--system-color);
}
.img {
    position: relative;
}
.outline-system{
    /* outline : 1px solid var(--system-color); */
    /* outline-offset: 2px; */
    box-shadow: 0px 0px 5px var(--system-color);

}
.photo-default::before{
    content: attr(data-default);
    font-size: 10px;
    position: absolute;
    left: 12px;
    top: 4px;
    border-radius: 10px;
    padding: 2px 7px 2px 7px;
    color: white;
    background-color: var(--system-color);
    box-shadow: 0px 0px 3px var(--system-color);
}
.icon-delete::after{
    content: attr(data-delete);
    font-size: 10px;
    position: absolute;
    right: 12px;
    top: 3px;
    border-radius: 50px;
    padding: 2px 7px 2px 7px;
    color: white;
    background-color: red;
    box-shadow: 0px 0px 3px red;
    cursor: pointer;
}
.icon-edit::before{
    content: attr(data-edit);
    font-size: 10px;
    position: absolute;
    left: 12px;
    top: 3px;
    border-radius: 50px;
    padding: 2px 7px 2px 7px;
    color: white;
    background-color: green;
    box-shadow: 0px 0px 3px green;
    cursor: pointer;
}
.btn-white{
    background-color: white;
}





    






/* media screen */
@media only screen and (max-width: 1200px) {
    .img-p{
        /* height: 342px; */
        height: 130px;
    }
}
@media only screen and (max-width: 1000px) {
    .img-p{
        height: 342px;
        /* height: 95.91px; */
    }
    .sale-page{
        overflow-y: scroll;
    }
    .yeah{
        padding: 0 !important;
        margin: 0px 0px 7px 0px !important;
    }
    .response-mb{
        margin-bottom: 20px !important;
    }
}
@media screen and (max-width: 600px) {
    .receipt{
        overflow-y: scroll;
    }
    .img-p{
        height: 226;
    }
    .switch {
        transform: translateY(30%);
        left: 90%;
    }
    .slider:before{
        width: 30%;
        transform: translateX(-22px); /*translateX(-(w-h))*/
        transition: 0.2s;
    }

    input:checked + .slider:before{
        transform: translateX(-7px); /*translateX(w-h)*/
    }
}
@media only screen and (max-width: 500px) {
    .img-p{
        /* height: 145px; */
        height: 121px;
    }
}
@media print {
    .alertify-notifier{
        display: none !important;
    }
    #print{
        display: none;
    }
    .main-footer{
        display: none;
    }
}
.border-system{
    border-color: var(--system-color);
}

.alertify .ajs-body .ajs-content .ajs-input {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 4px;
    border-radius: 2px;
    border: 1px solid #CCC;
}