@font-face {
    font-family: "Kh Siemreap";
    src: url("../fonts/KH-SIEMREAP.TTF") format("truetype");
}

@font-face {
    font-family: "Calibri";
    src: url("../fonts/calibri.ttf?#iefix") format("embedded-opentype"), url("../fonts/calibri.ttf") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "VerelaRoundRegular";
    src: url("../fonts/VarelaRound-Regular.ttf?#iefix") format("embedded-opentype"), url("../fonts/VarelaRound-Regular.ttf") format("woff2");
    font-weight: normal;
    font-style: normal
}

@font-face {
    font-family: "RobotoRegular";
    src: url("../fonts/Roboto-Regular.woff2?#iefix") format("embedded-opentype"), url("../fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal
}

:root {
    --main-color: #023859;
    --active-menu: #03588C
}

.form-control {
    height: 35px;
    padding: 0 10px;
}

.btn {
    padding: 5px 15px;
}

.navbar {
    min-height: 45px;
    height: 45px;
}

.navbar-right > li a {
    line-height: 19px !important;
    padding: 13px 15px;
}

.navbar-nav>li>a {
    line-height: 6px;
}

body {
    padding-top: 60px;
    padding-bottom: 40px;
    background: #808080;
    font-family: RobotoRegular, VerelaRoundRegular, Calibri, "Helvetica Neue", Helvetica, Arial, "Kh Siemreap", sans-serif;
    scrollbar-face-color: #000000;
    scrollbar-highlight-color: #000000;
    scrollbar-3dlight-color: #000000;
    scrollbar-darkshadow-color: #000000;
    scrollbar-shadow-color: #000000;
    scrollbar-arrow-color: #FF99FF;
    scrollbar-track-color: #FFCCFF;
}

::-webkit-scrollbar {
    width: 8px; /* for vertical scrollbars */
    height: 8px; /* for horizontal scrollbars */
}

::-webkit-scrollbar-track {
    background: #fff;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

div.container a.brand {
    background: url("../img/zf2-logo.png") no-repeat scroll 0 10px transparent;
    margin-left: 0;
    padding: 8px 20px 12px 40px;
}

.nav-menu {
    background: var(--main-color) !important;
    border-bottom: none;
    -webkit-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.navbar-brand, .navbar-brand:hover {
    color: #ffffff;
    padding: 0;
    margin-left: 15px !important;
}

.navbar-brand span {
    display: inline-block;
    margin-left: 8px;
    margin-right: 8px;
}

#navbar ul .active {
    background: var(--active-menu) !important;
}

#navbar ul .dropdown .open {
    background: none !important;
}

#navbar ul li a:hover, #navbar ul li a:focus {
    background: var(--active-menu) !important;
}

#navbar ul li a {
    color: #ffffff;
}

#navbar ul li a.login-profile:hover {
    background-color: var(--main-color)!important;
    cursor: default
}

.btn-primary {
    background-color: var(--main-color);
    border-color: var(--active-menu);
}

.btn-primary:active:hover, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: var(--main-color);
    border-color: var(--active-menu);
}

.footer {
    background: #fff !important;
    color: #000;
    padding: 3px 10px 3px 3px;
    font-size: 90%;
    box-shadow: 0 5px 5px 6px rgba(0, 0, 0, 0.2);
}

.footer img {
    height: 30px;
}

.loading {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9) url("../img/progress_spinner.gif") no-repeat center;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

.navbar-header > span {
    background: none !important;
}

.nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
    background: var(--main-color) !important;
    /*color: #0f0f0f !important;*/
}

.nav .open > ul {
    color: #1a242f !important;
    background: var(--main-color) !important;
}

.nav .open > .dropdown-menu, .nav .open .dropdown-submenu > .dropdown-menu {
    border: none !important;
    min-width: 200px;
}

.navbar-nav > li > .dropdown-menu {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.navbar-toggle {

}

.navbar-brand:focus {
    color: #fff
}

.dropdown-menu > li > a {
    padding: 8px 15px;
    white-space: normal !important;
}

/* Sub Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    background: var(--main-color) !important;
    border-radius: 0;
    border: none !important;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu > .active > a, .dropdown-menu > .active > a:focus, .dropdown-menu > .active > a:hover {
    background: var(--active-menu) !important;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left > .dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/* End sub menu*/

/* Customize some class or id existing name */
.border-top-0 {
    border-top: 0;
}

.padding-0 {
    padding: 0 !important;
}

.padding-left-0 {
    padding-left: 0 !important;
}

.padding-left-5 {
    padding-left: 5px !important;
}

.padding-left-15 {
    padding-left: 15px !important;
}

.padding-left-20 {
    padding-left: 20px !important;
}

.padding-right-0 {
    padding-right: 0 !important;
}

.padding-right-5 {
    padding-right: 5px !important;
}

.padding-right-15 {
    padding-right: 15px !important;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-5 {
    padding-top: 5px !important;
}

.padding-top-10 {
    padding-top: 10px;
}

.padding-top-15 {
    padding-top: 15px !important;
}

.padding-top-25 {
    padding-top: 25px !important;
}

.padding-0-5 {
    padding: 0 5px;
}

.padding-0-10 {
    padding: 0 10px;
}

.padding-0-15 {
    padding: 0 15px;
}

.padding-15 {
    padding: 15px !important;
}

.padding-10 {
    padding: 10px !important;
}

.padding-5 {
    padding: 5px !important;
}

.padding-25-0 {
    padding: 25px 0;
}

.pl-30 {
    padding-left: 30px
}

.p15-0-15 {
    padding: 15px 0 15px
}

.pt-15 {
    padding-top: 15px
}

.b-t-2 {
    border-top: 2px solid #000
}

.b-t-b-2 {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000
}

.margin-left-15 {
    margin-left: 15px !important;
}

.margin-0 {
    margin: 0;
}

.margin-left-20 {
    margin-left: 20px;
}

.padding-bottom-0 {
    padding-bottom: 0 !important;
}

.padding-bottom-3 {
    padding-bottom: 3px;
}

.padding-bottom-5 {
    padding-bottom: 5px;
}

.padding-bottom-15 {
    padding-bottom: 15px;
}

.padding-15-15-0 {
    padding: 15px 15px 0
}

th, td {
    white-space: nowrap;
}

#add-new, #sale-management-detail {
    display: none;
}

#form-login {
    margin: 0 auto;
    box-shadow: 0 10px 25px #959fb7;
    border: 1px solid #eee;
    background-color: #fff
}

.form-control[disabled], fieldset[disabled] .form-control {
    cursor: auto !important;
}

.msg-box, .msg-box-warning {
    background: none;
    position: fixed;
    z-index: 9;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.msg-label {
    position: absolute;
    background: #ffffff;
    width: auto;
    height: 40px;
    top: 40%;
    left: 40%;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-right: 3px;
    -webkit-box-shadow: -5px 1px 92px 22px rgb(92, 184, 92);
    -moz-box-shadow: -5px 1px 92px 22px rgb(92, 184, 92);
    box-shadow: -5px 1px 92px 22px rgb(92, 184, 92);
    padding: 10px !important;
    text-align: center;
}

.msg-label-warning {
    position: absolute;
    background: #ffffff;
    width: auto;
    height: 40px;
    top: 40%;
    left: 40%;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-right: 3px;
    -webkit-box-shadow: -5px 1px 92px 22px rgb(240, 173, 78);
    -moz-box-shadow: -5px 1px 92px 22px rgb(240, 173, 78);
    box-shadow: -5px 1px 92px 22px rgb(240, 173, 78);
    padding: 10px !important;
    text-align: center;
}

.control-label-left {
    text-align: left !important;
    padding-top: 7px;
    padding-right: 0px;
    margin-bottom: 5px;
}

.input-group-addon {
    cursor: pointer;
}

.print-invoice {
    margin: 0 auto;
    min-height: 200px;
    width: 5in;
    border: 1px solid #28a4c9;
    background: #efefef;
    text-align: center;
}

.purchase-rs > .tab-menu {
    margin-top: -45px;
}

.m-5-0 {
    margin: 5px 0
}

.pl-0 {
    padding-left: 0;
}

.pr-0 {
    padding-right: 0;
}

input[date-picker] {
    font-size: 14px;
}

.f-b {
    font-weight: bold;
}

.btn-group .dropdown-menu-right {
    min-width: 250px !important;
}

.navbar-right .dropdown-menu-right {
    min-width: 300px !important;
}

@media print {
    div#print-invoice {
        height: 100% !important;
        overflow-x: auto;
    }
}

.font-size-bold {
    font-weight: bold;
}

.f-100 {
    font-size: 100%;
}

.due {
    font-size: 14px !important;
    font-weight: bold;
    color: #DD5145 !important;
}

.paid {
    font-size: 14px !important;
    font-weight: bold;
    color: #18A15F !important;
}

.partial {
    font-size: 14px !important;
    font-weight: bold;
    color: #a19e1f !important;
}

.page-ul > li:focus {
    background: red !important;
}

input[disabled], button[disabled] {
    cursor: default !important;
}

.panel-default > .panel-heading {
    /*background-color: var(--main-color) !important;*/
    /*color: #fff;*/
}

.panel-total {
    position: fixed;
    bottom: 36px;
    right: 0;
    left: 0;
    background: #DDDDDD;
    padding: 10px;
}

.panel-total #total {
    color: red;
    font-size: 22px;
}

.tab-menu > ul > li.active a, .tab-menu > ul > li.active a:hover, .tab-menu > ul > li.active a:focus {
    border-top: 3px solid #337ab7;
}

.tab-menu > ul > li a {
    border-radius: 0;
    color: #434343
}

.tab-menu > ul > li > a:focus, .tab-menu > ul > li > a:hover {
    background: none;
    border-top: 3px solid #337ab7;
    transition: all .2ms;
    background: #FFFFFF;
}

.tab-content {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #FFFFFF;
    min-height: 300px;
    padding: 10px;
}

.purchase-payment {
    padding: 0;
}

.purchase-payment .tab-content {
    border: 0;
    min-height: auto;
    background: url("../img/bg.png");
}

.role-list {
    list-style: none;
    font-size: 14px;
    padding-left: 10px
}

.role-list li a {
    color: #333;
    line-height: 24px
}

.role-list li a.active {
    color: #ff0000
}

.role-list li a:hover {
    border: none
}

fieldset {
    border: 1px solid #cccccc !important;
    padding: 0 15px !important;
}

fieldset legend {
    width: auto;
    padding: 10px;
    margin: 0 0 0 10px;
    border: none;
    font-size: 16px !important;
}

.table-info fieldset {
    border: 1px solid #ccc;
    padding: 3px 15px;
    border-radius: 4px;
}

.table-info fieldset legend {
    width: auto!important;
    padding: 0 10px!important;
    margin: 0 0 5px 10px!important;
    border: none;
    font-size: 14px!important;
    font-weight: bold;
}

.data-content {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #FFFFFF;
    padding: 10px;
}

select, input {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

#sale_form th, #sale_form td,
#sale_sale_journal th, #sale_journal td,
#price_checking th, #price_checking td {
    font-size: 13px;
    padding: 5px;
}

.custom-backdrop {
    background: rgba(0, 0, 0, 0.4)
}

.custom-modal {
    width: 420px
}

.custom-modal .modal-header {
    padding: 10px 15px;
}

.custom-modal .modal-header h3 {
    font-size: 18px;
    color: #337AB7
}

.p-3-0 {
    padding: 3px 0
}

.p-15 {
    padding: 15px !important;
}

.p-10-15 {
    padding: 10px 15px !important;
}

.required {
    color: #ff0000;
}

.font-22 {
    font-size: 18px;
}

.font-12 {
    font-size: 12px;
}
.font-13 {
    font-size: 13px;
}
.font-14 {
    font-size: 14px;
}

#purchase_inventory th, #purchase_inventory td, #purchase_journal th,
#purchase_journal td {
    font-size: 13px;
    padding: 5px;
}

.readonly {
    color: #ff0000;
}

.btn-delete {
    color: #D9534F;
}

.btn-delete:hover, .btn-delete:focus {
    color: #D43F3A;
}

.calTotal input.paid {
    font-size: 18px !important;
}

.calTotal input.readonly {
    background-color: transparent !important;
    font-size: 18px;
    box-shadow: none !important;
    border: none !important;
}

/*~~~~~~~~~~~~~~~~~~ sale form 2 ~~~~~~~~~~~~~~~~~~*/
.panel-right {
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 15px;
    position: relative
}

.panel-top {
    border-bottom: 1px solid #DDDDDD
}

.panel-top ul {
    list-style: none;
    padding: 0;
}

.panel-top ul li span:first-child {
    width: 50%;
    display: inline-block;
    font-size: 20px;
}

.panel-top ul li span:last-child {
    color: red;
    font-size: 20px;
}

.m-t-5 {
    margin-top: 5px
}

.m-t-6 {
    margin-top: 6px
}

.m-t-10 {
    margin-top: 10px
}

.m-t-20 {
    margin-top: 20px
}

.m-t-25 {
    margin-top: 25px
}

.m-t-32 {
    margin-top: 32px
}

.m-t-50 {
    margin-top: 50px
}

.m-0-0-15 {
    margin: 0 0 15px
}

.m-r-0 {
    margin-right: 0
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 50px;
    background: #bbbbbb;
    padding: 11px;
    text-align: right;
}

.panel-middle {
}

.panel-bottom {
    position: absolute;
    left: 16px;
    bottom: 2px;
    border-top: 1px solid #DDDDDD;
    right: 16px;
}

.panel-bottom h3 {
    margin-top: 10px;
}

ul.nav li.active .selected {
    left: 50%;
    bottom: 0;
    position: absolute;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--active-menu);
    display: inline-block;
    margin: 0 0 -7px -7px;
    width: 0;
    height: 0;
}

/* override class */
.btn-danger {
    background-color: #e6626f;
    border-color: #e8566f;
}

.btn-danger:hover, .btn-danger:focus {
    background-color: #e6626f;
    border-color: #e85764;
}

.text-red {
    color: red
}

.text-gold {
    color: goldenrod;
}

.text-danger {
    color: var(--active-menu);
}

td > span.text-danger {
    font-weight: 600;
    color: red;
}

tr > td {
    white-space: normal;
}

.text-danger:hover, .text-danger:focus {
    color: #e6626f;
}

.text-blue {
    color: darkblue;
}

.pagination {
    margin: 0;
}

.pagination > .active > a {
    z-index: 0
}

.table-container {
    overflow-x: auto;
    margin-top: 10px;
    margin-bottom: 15px;
}

.table {
    background: linear-gradient(#e9e9e9, #e2e2e2, #d8d8d8, #cfcfcf) !important;
}

.table tr:first-child th {
    background: #ffffff;
    background: -moz-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(30%, #f6f6f6), color-stop(30%, #f6f6f6), color-stop(100%, #e5e5e5));
    background: -webkit-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -o-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -ms-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: linear-gradient(to bottom, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    border-bottom: 1px solid #ddd;
    color: #000;
}

.table > thead > tr > th {
    /*color: var(--active-menu);*/
}

.table > thead > tr > th, .table > tbody > tr > td {
    padding: 5px;
    font-size: 12px;
    vertical-align: middle;
}
.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #e9f3ff;
}

.table-striped > tbody > tr:nth-of-type(even).items,
.table-striped > tbody > tr:nth-of-type(odd).items,
.table-striped > tbody > tr:nth-of-type(even).items_blank,
.table-striped > tbody > tr:nth-of-type(odd).items_blank {
    background-color: #fff;
}

.table-striped > tbody > tr.items_blank > td {
    padding: 26px
}

.table-striped > tbody > tr:nth-of-type(odd):hover,
.table-hover > tbody > tr:hover {
    background-color: #FFFFB0 !important;
    color: #4f888a;
}

.even > tr:first-child > td,
.odd > tr:first-child > td {
    padding: 0 5px;
    vertical-align: middle;
}

.odd > tr:first-child > td {
    background-color: #e9f3ff;
}

.even > tr:first-child > td {
    background-color: #f9f9f9 !important;
}

.even > tr:hover > td, .odd > tr:hover > td {
    background-color: #FFFFB0 !important;
    color: #4f888a;
}

#icon_date, .btn-shadow {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2)
}

.font-16 {
    font-size: 16px;
}

.font-24 {
    font-size: 24px;
}

td > input[type=checkbox] {
    height: 18px;
    width: 18px;
    margin: 5px 0 0;
    cursor: pointer;
}

#croppic {
    width: 200px; /* MANDATORY */
    height: 150px; /* MANDATORY */
    position: relative; /* MANDATORY */
    border: 3px solid #FFF;
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    border-radius: 2px;
    background-image: url(../images/item/default.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.bg-white {
    background-color: #fff !important;
}

.invoice-container {
    border: 1px solid #333;
}

.p-0 {
    padding: 0;
}

.p-5 {
    padding: 5px!important
}

.p-l-0 {
    padding-left: 0;
}

.p-r-0 {
    padding-right: 0;
}

.m-b-0 {
    margin-bottom: 0!important;
}

.m-b-60 {
    margin-bottom: 60px;
}

.modal {
    text-align: center
}

.tooltip.top {
    z-index: 9999;
    position: absolute
}

/* over popover */
.popover.bottom {
    margin-top: 5px
}

.popover.bottom > .arrow {
    margin-left: -8%
}

.popover-content .list-group .list-group-item {
    border: none;
    padding: 10px 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
    color: #0066aa;
}

.popover-content .list-group .list-group-item .delete {
    color: var(--active-menu)!important;
}

.popover-content .list-group .list-group-item span {
    margin-right: 10px;
    font-weight: bold;
}

.popover {
    width: auto;
    border-radius: 0;
    padding: 0;
    left: inherit;
    position: absolute;
}

.popover-content .list-group {
    margin-bottom: 0;
}

/* end override popover */

/* block page error */
.page-login {
    height: 400px;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: #808080;
}

.page-login .media {
    margin-left: 20px;
    font-family: Arial, sans-serif
}

.page-login .media .media-heading {
    font-size: 22px;
    margin: 0 0 15px;
}
.page-login .media-left{
    width: 280px;
}
.page-login .media p{
    margin: 0 0 4px 0;
    font-size: 14px;
    color: rgba(106, 106, 106, 0.87);
}

.page-login .login {
    padding: 40px 0 35px;
}

.login {
    border: 1px solid;
    border-color: #e5e6e9 #dfe0e4 #d0d1d5;
    border-radius: 3px;
    padding: 40px 0 35px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

.login form {
    width: 300px;
    margin: 0 auto;
    text-align: center;
}

.login form h2 {
    font-size: 18px;
    line-height: 22px;
    margin-top: 0;
}

.login form .form-control {
    border: 1px solid #dddfe2;
    color: #1d2129;
    font-size: 14px;
    padding: 5px 8px;
    height: 36px;
}

.login form .btn-danger {
    line-height: 42px;
    padding: 0 24px;
    border-radius: 2px;
    font-size: 14px;
}

/* end block page error */

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block !important;
        vertical-align: middle !important;
        content: "";
        height: 100% !important;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.custom-backdrop {
    background: rgba(0, 0, 0, 0.4)
}

.modal .modal-header {
    padding-top: 2px;
    padding-bottom: 2px
}

.modal .modal-header h5 span {
    top: -1px;
    right: -5px
}

.modal .modal_custom {
    max-width: 400px !important
}

.modal .modal-footer {
    padding: 8px 15px
}

.modal-50 {
    width: 50%;
}

.modal-80 {
    width: 80%;
}

.modal-95 {
    width: 95%;
}

.has-error .form-control {
    border: 2px solid var(--active-menu);
}

.type-ahead-loading {
    width: 20px;
    position: absolute;
    top: 30px;
    right: 6px;
}

.type-ahead-loading-group {
    width: 20px;
    position: absolute;
    top: 7px;
    right: 92px;
    z-index: 3;
}

.r-20 {
    right: 20px
}

.auto_num {
    font-size: 16px;
    font-weight: bolder
}

.relative {
    position: relative;
}

.bs-example > .nav-tabs > li.active > a,
.bs-example > .nav-tabs > li.active > a:focus,
.bs-example > .nav-tabs > li.active > a:hover {
    background: url("../img/bg.png")!important
}

.bs-example > .nav-tabs > li > a {
    margin-right: 0;
    border-radius: 0
}

.lang {
    display: flex !important;
}

.flat {
    width: 20px;
    height: 18px;
    background: #FFFFFF;
    display: inline-block;
}

.flat.kh {
    background: url("../img/flat_kh.png") no-repeat center;
    background-size: 20px 18px;
}

.flat.en {
    background: url("../img/flat_en.png") no-repeat center;
    background-size: 20px 18px;
}

textarea {
    resize: vertical
}

.load-data .sub_menu {
    background: #ffffff;
    background: -moz-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(30%, #f6f6f6), color-stop(30%, #f6f6f6), color-stop(100%, #e5e5e5));
    background: -webkit-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -o-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: -ms-linear-gradient(top, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
    background: linear-gradient(to bottom, #f7f7f7 0%, #f6f6f6 30%, #f6f6f6 30%, #e5e5e5 100%);
}

.load-data .sub_menu, .load-data .sub_menu:hover {
    background-color: #ddd!important;
    color: #000!important
}

.load-data .sub_menu th {
    padding: 5px;
    font-size: 12px
}

.load-data .row-details.row-details-close {
    background: url(../img/datatable-row-openclose.png) no-repeat;
}

.load-data .row-details.row-details-close:focus {
    display: none
}

.load-data .row-details {
    margin-top: 3px;
    display: inline-block;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.load-data .row-details.row-details-open {
    background: url(../img/datatable-row-openclose.png) 0 -23px no-repeat !important;
}

.b-r-b-l-0 {
    border-bottom-left-radius: 0
}

.ui-typeahead > .dropdown-menu {
    border-radius: 0;
    top: 34px!important;
    border-top: 0;
    margin-top: 0
}

.profit-loss .table > thead > tr > th {
    padding: 8px;
}

.profit-loss .table > tbody > tr > td {
    padding: 10px;
}

.dropdown-menu .divider {
    margin: 0!important;
    background-color: #90979e!important
}

.stock-in {
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    height: calc(100vh - 225px);
}

.tran-item {
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    height: calc(100vh - 230px);
}

.table-info {
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    height: calc(100vh - 180px);
}

.role-content {
    height: calc(100vh - 280px);
}

[class*="col-"] {
    position: unset;
}

.panel-total .form-inline input {
    background-color: transparent;
    border: none;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    border-bottom: 2px solid var(--active-menu);
    font-weight: 600;
}

.panel .panel-heading p.panel-title {
    margin-top: 7px;
}

div.form-group label {
    font-size: 14px;
}

.pb-0 {
    padding-bottom: 0;
}

.mt-5 {
    margin-top: 5px;
}

.mt-8 {
    margin-top: 8px;
}

tfoot.bg-white tr td {
    font-size: 12px;
    font-weight: 600;
}

.current-stock-items > td {
    vertical-align: middle !important;
    padding: 8px !important;
}

.current-stock-items > td > ul {
    margin-bottom: 0;
}

.form-group ul.dropdown-menu {
    min-width: 240px !important;
}

.remove-image {
    right: 7px;
    position: relative;
    color: red;
    cursor: pointer;
    z-index: 9999;
    top: 10px;
    font-weight: bolder;
    font-size: 15px;
}

#crop-image-sale {
    width: 100%;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    background-origin: content-box;
    cursor: pointer;
    box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.05);
    -o-box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.05);
    -ms-box-shadow: 8px 8px 8px 0 rgba(0, 0, 0, 0.05);
}

#crop-image-sale:hover .remove-image {
    display: block;
}

tr.current-stock-items.red td.item {
    font-weight: bold;
    color: red;
}

@media (max-width: 767px) {
    .stock-in, .tran-item, .table-info {
        height: auto;
        margin-bottom: 15px
    }

    .bottom-bar {
        position: relative !important;
        bottom: 0 !important;
    }

    .navbar-nav .open .dropdown-menu > li > a {
        line-height: 30px;
        text-indent: 10px;
    }

    .navbar-brand {
        margin-left: 10px !important;
    }

    .caret {
        float: right;
        margin: 10px 0 0 0;
    }

    .navbar-toggle .icon-bar {
        background: #fff;
        display: block;
        height: 2px;
        width: 22px;
        z-index: 58;
    }

    .navbar-toggle {
        margin-right: 5px;
    }

    ul.nav li.active .selected {
        display: none;
    }

    ul.navbar-right {
        display: inline-flex;
    }
}

@media screen and (min-width: 767px) {
    .navbar-collapse {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-height: 768px) {
    .purchase-rs {
        overflow-x: auto;
        max-height: 419px;
    }

    .purchase-rs > .tab-menu {
        margin-top: -15px;
    }

    #purchase_inventory {
        min-height: 700px;
    }

    .p-l-xs-0 {
        padding-left: 0
    }

    .p-l-xs-15 {
        padding-left: 15px
    }

    .p-r-xs-15 {
        padding-right: 15px
    }

    .bottom-bar {
        position: absolute;
    }

    .page-login {
        display: block;
        padding-top: 15px;
    }

    .login {
        padding: 20px 0 10px;
    }

    .m-t-xs-0 {
        margin-top: 0!important
    }

    .float-right-xs {
        text-align: right!important
    }
}