@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(../img/favicon.jpeg) no-repeat scroll left top / 25% auto;
    color: #ffffff;
    margin-left: 2px !important;
    padding-left: 70px;
}

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

.footer {
    background: #337AB7 !important;
    color: #ffffff;
    padding: 6px;
    font-size: 90%;
}

.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 }
.dropdown-menu > li > a.ex,
.dropdown-menu > li > a.pr {
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
}


/* 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;}
.m-t-25 { margin-top: 25px }
.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 > .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;
}

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

.purchase-rs > .tab-menu {
    margin-top: -20px !important;
}

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

.panel-total #total, .panel-total #total_received {
    color: red;
    font-size: 22px;
    font-weight: 600;
}

.tab-menu {
}

.tab-menu li {
}

.tab-menu > ul > li.active a, .tab-menu > ul > li.active a:hover, .tab-menu > ul > li.active a:focus {
    border-top: 2px 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: 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}
.p-0 { padding: 0}
.p-r-0 { padding-right: 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, #purchase_deposit th, #purchase_deposit td,
#purchase_payment th, #purchase_payment 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;}
.mt-0 { margin-top: 0px}
.m-t-5 { margin-top: 5px}
.m-t-10 { margin-top: 10px}
.m-t-20 { margin-top: 20px}
.m-t-50 { margin-top: 50px}
.m-b-100 { margin-bottom: 100px}
.mb-0 { margin-bottom: 0}
.mtb-0 { margin-top: 0; margin-bottom: 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 #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 !important;  /* MANDATORY */
    height: 150px !important; /* 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-b-50 { padding-bottom: 50px;}
.m-b-0 { margin-bottom: 0;}
.modal { text-align: center }
.toolbar-bottom{
    background: #fff none repeat scroll 0 0;
    border-top: 1px solid #ccc;
    bottom: 30px;
    left: 0;
    padding: 10px 0;
    position: fixed;
    right: 0;
    z-index: 2;
}
.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 }
.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;}
.dropdown-menu-custom  .dropdown-menu {
    left: auto !important;
    right: 15px;
}
.m-r-15 {
    margin-right: 15px;
}
.m-r-10 { margin-right: 10px }
.m-0 { margin: 0 }
.m-b-10 { margin-bottom: 10px }
.m-b-100 { margin-bottom: 100px }
.m-b-50 { margin-bottom: 50px }
.sale-item {
    position: fixed;
    z-index: 2;
    top: 70px;
    width: 65%;
}
.sale-item .tab-content {
    overflow-y: auto;
}
.switch-container {
    background: gray;
    max-height: 300px;
    min-height: 300px;
    overflow-y: auto;
    padding: 5px;
}
.switch-container table {
    background: #fff;
}

.msg-restore {
    position: absolute;
    left: 21px;
    bottom: 21px;
    z-index: 3;
    margin: 0 auto;
}
.category-container ul li{
    line-height: 30px;
    list-style: none;
}
.category-container ul li:hover {
    cursor: pointer;
}
.category-container ul li .cate-action{
    display: none;
    margin-left: 50px;
}
.category-container ul > li:hover > .cate-action {
    display: inline;
}
input[type=checkbox] {
    height: 18px;
    width: 18px;
    margin: 5px 0 0;
    cursor: pointer;
}
@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;
    }
    .mar-t--20 {
        overflow-x: auto;
        max-height: 390px;
    }
    .purchase-rs > .tab-menu {
        margin-top: -15px;
    }
    #purchase_inventory {
        min-height: 700px;
    }
    .purchase-rs .tab-menu > ul > li {
        border-top: 5px solid #337ab7 !important;
    }
    .tab-menu li.active a, .tab-menu li.active a:hover, .tab-menu li.active a:focus {
        border-top: 2px solid #337ab7 !important;
    }
}

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

@media screen and (max-width: 768px) {
    .nav-tabs > li { float: none}
    .toolbar-bottom { position: static;background: none;border: none}
    .sale-item { position: static;width: 100%}
}
.round.active {
    background-color: #337AB7;
    color: white;
}

.round.active:hover {
    opacity: 0.7;
}

.round {
    background: #e5e5e5;
    border-radius: 100%;
    font-size: 14px;
    padding: 8px 10px;
    color: #888;
}

.required {
    color: #ff0000;
}

.bg-transparent {
    background: transparent;
}

.policy-detail {
    border: none !important;
    padding-left: 50px !important;
}

.policy-detail li {
    line-height: 26px;
}

.policy-detail > h4 {
    font-weight: 300;
}

.text-red {
    color: red
}

.text-orange {
    color: orange
}

.text-green {
    color: green
}
.type-ahead-loading {
    width: 20px;
    position: absolute;
    top: 7px;
    right: 22px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}
tbody > .in { background-color: #fff }
tbody > tr.in:hover { background-color: #fff }
.panel-total-footer{
    padding: 10px 10px!important;
    position: static;
}
.position-sticky {
    position: sticky;
}

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

.even > tr:first-child > td,
.odd > tr:first-child > td {
    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;
}