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

body {
    padding-top: 60px;
    padding-bottom: 40px;
    background: #f2f2f2;
    font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif, "Kh Siemreap";
}

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: #337AB7 !important;
    border-bottom: none;
}

.navbar-brand, .navbar-brand:hover {
    background: rgba(0, 0, 0, 0) url("../images/pos_le.jpg") no-repeat scroll left center / 40% auto;
    color: #ffffff;
    margin-left: 1px !important;
    padding-left: 100px;
}

#navbar ul .active {
    background: #2E6DA4 !important;
}

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

#navbar ul li a:hover, #navbar ul li a:focus {
    background: #2E6DA4 !important;
}

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



.loading {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8) url("../img/loading.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: #2E6DA4 !important;
    color: #0f0f0f !important;
}

.nav .open > ul {
    color: #1a242f !important;
    background: #337AB7 !important;
}

.nav .open > .dropdown-menu {
    border: none !important;
}

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

.navbar-toggle {
    background: #ffffff !important;
    border-radius: 0 !important;
}

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

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

.dropdown-menu > li > a {
    padding: 8px 15px
}

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

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    background: #337AB7 !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: #2E6DA4 !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;
}

.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, #add-new-p, #sale-management-detail {
    display: none;
}

#form-login > .col-md-4:first-child {
    box-shadow: 1px 3px 1px #efefef;
    border: 1px solid #eee;
    border-radius: 5px
}

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

.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;
    padding: 10px 15px;
}

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

.msg-box, .msg-box-warning {
    background: none;
    position: fixed;
    z-index: 99999;
    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;
}

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

@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;
    }
}

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

.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-total {
    position: fixed;
    bottom: 27px;
    right: 0;
    left: 0;
    background: #DDDDDD;
    padding: 15px;
    border-top: 1px solid #ccc;
}

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

.tab-menu {
}

.tab-menu li {
}

.tab-menu li.active a, .tab-menu li.active a:hover, .tab-menu li.active a:focus {
    border-top: 2px solid #337AB7;
}

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

.tab-menu > ul > li > a:focus, .tab-menu > ul > li > a:hover {
    background: none;
    border-top: 2px 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;
}

.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
}

.required {
    color: #ff0000;
}

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

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

.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;
}

/*~~~~~~~~~~~~~~~~~~ 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-10 {
    margin-top: 10px
}

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

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

.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 #2E6DA4;
    display: inline-block;
    margin: 0 0 -7px -7px;
    width: 0;
    height: 0;
}

/* override class */
.pagination {
    margin: 0;
}

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

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

.table {
    background: #dddddd
}

#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;
}

#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;
}

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

.modal {
    text-align: center
}

@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.expense {
    padding: 10px;
}
.modal .modal-header h5 span {
    top: -1px;
    right: -5px
}

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

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

.type-ahead-loading {
    width: 15px;
    position: absolute;
    top: 17px;
    right: 13px;
}

.type-ahead-loading-input-group {
    width: 20px;
    position: absolute;
    top: 5px;
    right: 38px;
    z-index: 2;
}

.relative {
    position: relative;
}

.card-title {
    font-size: 16px;
    padding: 10px 0;
}

.toolbar-header {
    clear: both;
    display: table;
    width: 100%;
}

.toolbar-header label {
    font-weight: normal
}

.toolbar-header .col {
    padding-left: 0;
}

.m-b-5 {
    margin-bottom: 5px;
}
.m-b-50 {
    margin-bottom: 50px;
}
.m-b-4 {
    margin-bottom: 4px;
}

.panel-custom {
    position: relative
}

.panel-custom .panel-body {
    padding-left: 15px;
    padding-right: 0;
}

.print-button {
    position: absolute;
    top: 6px;
    right: 15px;
}
.print-button .btn {
    color: #337AB7;
    border-color: #337AB7;
}
.panel-total label {
    display: block;
}
.panel-total .list-unit-type {
    margin: 0;
}
.panel-total .list-unit-type li {
    display: inline-block;
    padding-right: 30px;
}
@media (max-width: 972px) {
    .print-button {
        position: static;
        padding: 15px;
    }
    .panel-total {
        position: static;
        padding: 10px 15px 0 0;
        margin-top: 10px;
        border-top: none;
    }
    .panel-total .form-inline {
        margin-bottom: 5px;
    }
    .panel-total .col-md {
        padding-right: 0;
    }
    .panel-total label {
        padding: 10px 0;
        margin: 0;
        font-size: 13px;
    }
    .panel-total #total {
        font-size: 16px;
        text-align: right;
    }
}
.underline a{
    text-decoration: none!important;
}
