/*!
 * Apphrbem
 * Python
 * HRS BEM 2019
 */


/* edit bootstrap */

.navbar {
    padding: .5rem .25rem;
}

@font-face {
    font-family: "PSL-Kittithada";
    src: url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.eot");
    /* IE9*/
    src: url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.woff2") format("woff2"), /* chrome、firefox */
    url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.woff") format("woff"), /* chrome、firefox */
    url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
    url("/static/webfonts/PSL-Kittithada/b37cec1772007bb4bf27090dc9597172.svg#PSL-Kittithada") format("svg");
    /* iOS 4.1- */
}

@font-face {
    font-family: "Krub-Regular";
    src: url("/static/webfonts/Krub/Krub-Regular.eot");
    /* IE9 Compat Modes */
    src: url("/static/webfonts/Krub/Krub-Regular.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    url("/static/webfonts/Krub/Krub-Regular.otf") format("opentype"), /* Open Type Font */
    url("/static/webfonts/Krub/Krub-Regular.svg") format("svg"), /* Legacy iOS */
    url("/static/webfonts/Krub/Krub-Regular.ttf") format("truetype"), /* Safari, Android, iOS */
    url("/static/webfonts/Krub/Krub-Regular.woff") format("woff"), /* Modern Browsers */
    url("/static/webfonts/Krub/Krub-Regular.woff2") format("woff2");
    /* Modern Browsers */
    font-weight: normal;
    font-style: normal;
}

.font-Krub {
    font-family: "Krub-Regular" !important;
    font-size: 16pt;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
}


/* end  edit bootstrap */

@media (max-width: 576px) {
    #username_login{
        white-space: nowrap;
        width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    } 
}
/*bg-bem-rail-culture */

 :root {
    --bg-bem-safety-awareness: #b1d34b;
    --bg-bem-accountability: #f68121;
    --bg-bem-customer-oriented: #fcd808;
    --bg-bem-teanwork: #ee58a0;
    --bg-bem-learning: #28c3f3;
    --bg-bem: #0E4285;
    --color-bem: #0E4285;
}

body,
html {
    font: unset;
    background-color: #f5f5f5;
    min-height: 100vh;
    font-family: "Krub-Regular" !important;
    font-size: 1rem;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
}

button {
    font: unset;
    font-family: "Krub-Regular" !important;
}

.form-control:focus {
    color: #0E4285;
    border-color: #9E905E;
    box-shadow: 0 0 0 0.2rem #9e905e47;
}

.form-control {
    color: #0E4285;
}

.page-content {
    background-color: #FFF;
}

.animation-event-click {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    text-transform: unset;
    transition: unset;
}

.event-click {
    position: absolute;
    /*background: #9E905E;*/
    background-color: #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: animate-event-click .75s linear 1;
    opacity: .2;
}

@keyframes animate-event-click {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.box-login {
    min-width: 300px;
    max-width: 380px;
    /*height: 360px;*/
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 10px;
    background: #c0c0c0d9;
    border-radius: 5px;
}

.box-login h1 {
    color: #0E4285;
}

.icon-system {}

.icon-system-animetion {
    color: #9E905E;
    text-align: center;
    display: block;
    transition: .3s;
}

.icon-system-content {
    background-color: #9e905e0f;
    transition: .3s;
    margin: .8rem;
}

.icon-system-icon {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    /*width: 100%;*/
    width: 150px;
    padding: .8rem;
    padding-bottom: 0px;
}

.icon-system-title {
    /*font-size:1rem;padding:.275rem .75rem; border-radius:5px;*/
    transition: .3s;
    font-size: 1rem;
    /* padding: .275rem .75rem; */
    /* border-radius: 5px; */
    transition: .3s;
    position: relative;
    /* font-size: 14px; */
    height: 2rem;
    /* line-height: 18px; */
    /* color: #0E4285; */
    /* white-space: pre-wrap; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /*text-overflow: ellipsis;*/
    /*overflow: hidden;*/
    padding: .175rem .25rem;
}

.icon-system-animetion:hover {
    text-decoration: none;
    color: #0E4285;
}

.icon-system-animetion:hover .icon-system-icon {}

.icon-system-animetion:hover .icon-system-content {
    background-color: #0E4285;
    /*background-color: #a18d631c;*/
    margin: .2rem;
}

.icon-system-animetion:hover .icon-system-title {
    /*box-shadow: 0 0 10px #9E905E,0 0 5px #9E905E,0 0 5px #9E905E ;*/
    color: #f5f5f5;
    background-color: #9E905E;
}

.bg-BEM {
    background-color: #0E4285!important;
}

.font-color-gold-bem {
    color: #9E905E !important;
}

.bg-bem-safety-awareness {
    background-color: #b1d34b;
    background-color: var(--bg-bem-safety-awareness)
}

.bg-bem-accountability {
    background-color: #f68121;
    background-color: var(--bg-bem-accountability);
}

.bg-bem-customer-oriented {
    background-color: #fcd808;
    background-color: var(--bg-bem-customer-oriented);
}

.bg-bem-teanwork {
    background-color: #ee58a0;
    background-color: var(--bg-bem-teanwork);
}

.bg-bem-learning {
    background-color: #28c3f3;
    background-color: var(--bg-bem-learning);
}

.color-bem {
    color: #0E4285;
    color: var(--color-bem);
}


/* product-item */

.product-item {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    border: 0.5px solid #CCC;
}

.products-item-link {
    text-decoration: none;
    color: #000;
}

.products-item-link:hover {
    text-decoration: none;
    color: #000;
}

.products-item:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .25);
    -webkit-transform: all .3s ease-in-out;
    -ms-transform: all .3s ease-in-out;
    transform: all .3s ease-in-out;
    position: relative;
}

.products-item .products-item-desc {
    padding: 4.5px;
}

.products-item-pading {
    padding: 5px !important;
}

.products-item-desc>.products-item-desc-title {
    position: relative;
    font-size: 1rem;
    height: 3rem;
    /*line-height: 1.75rem;*/
    color: #000;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-top: 4.5px;
}

.products-item-desc>.products-item-title {
    font-size: xx-large;
    color: #0E4285;
}

.products-item-desc-price-first-line {
    font-size: 1.25rem;
    color: #f68121;
}

.products-item-desc-price-second-line {
    font-size: .75rem;
    color: #F44336;
}

.products-item-desc-price-second-line>.products-item-desc-price-text>.products-item-price {}

.products-item-desc-price-second-line>.products-item-desc-price-text {
    text-decoration: line-through;
    color: #CCC;
}

.bd-highlight-type {
    background-color: rgb(245, 245, 245);
    min-width: 80px;
}

.bd-highlight-type:hover {
    border: 1px solid #f68121;
}

.bd-highlight-type:active,
.bd-highlight-type:focus,
bd-highlight-type.active {
    background-color: #f68121;
    background-color: var(--bg-bem-accountability);
}

.shopping_radio {
    display: none;
}

.shopping_radio:checked+label {
    color: #FFF;
    background-color: #f68121;
}

.shopping_radio+label:hover {
    cursor: pointer;
    background-color: #f68121;
    color: #FFF;
}

.list-cart-item {
    margin-bottom: 12px;
    background-color: #FFF;
    /*padding-right: 10px;*/
    /*padding-top: 7px;*/
    border-radius: 5px;
}

.cart_summay {
    padding: 12px;
    border-radius: 5px;
}

.list-chekout-item {
    background-color: #FFF;
    padding: 5px;
    border-radius: 5px;
}

.icon-card {
    border: 1px solid #CCC;
    padding: 2px;
}

.icon-bank {
    width: 50px;
    border: 0px;
}

.payment-type-radio {
    display: none;
}

.payment-type-radio:checked+label {
    background-color: #f68121;
}

#payment_visa~#box_payment_visa {
    display: none;
}

#payment_visa:checked~#box_payment_visa {
    display: block;
}

#payment_transfer~#box_payment_transfer {
    display: none;
}

#payment_transfer:checked~#box_payment_transfer {
    display: block;
}

@media (max-width: 991.98px) {
    .list-chekout-item {
        font-size: smaller;
    }
}

#ajx_wait {
    display: none;
    border: 1px solid black;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fcfefcdb;
    padding: 2px;
    width: 100%;
    height: 100%;
    z-index: 999;
    text-align: center;
}

#ajx_wait img {
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
}

.add-event-loading {
    background-position: center;
    /* border: 1px solid black; */
    width: 100px;
    height: 100px;
    /* height: 360px; */
    padding: 10px 10px;
    /* background: #c0c0c0d9; */
    border-radius: 5px;
    background-image: url(/static/images/icon-bem-loading.gif);
    background-size: 100%;
    background-color: transparent;
    margin: auto;
}

.add-event-loading.fixed-loading {
    position: fixed;
    z-index: 1204;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.alert-color-bem {
    background: #0E4285;
    color: #FFF;
    border: 1px solid #003375;
}

.btn-bem-ppl {
    color: #fff;
    background-color: #7952b3;
    border-color: #7952b3;
}

.btn-bem-ppl:active,
.btn-bem-ppl:hover {
    color: #fff;
    background-color: #ff9800;
    border-color: #ff9800;
}


/* Extra small devices (portrait phones, less than 576px)*/

@media (max-width: 575.98px) {
    .logo_bem {
        width: 150px;
    }
    .title_apphrbem {
        display: none;
    }
    .icon-system-content {
        margin: .3rem;
    }
    .icon-system-icon {
        padding: .3rem;
    }
    .icon-system-title {
        font-size: .5rem;
    }
    .icon-system-icon {
        width: 75px;
    }
}


/*Small devices (landscape phones, less than 768px)*/

@media (min-width: 575.99px) {
    .logo_bem {
        width: 200px;
    }
}