body.pos {
  min-width: 1024px;
  min-height: 768px;
  overflow: visible;
}
.fv-has-feedback {
  position: relative;
}
.fv-control-feedback {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  text-align: center;
}
.fv-help-block {
  display: block;
}
.fv-form-bootstrap .help-block {
  margin-bottom: 0;
}
.fv-form-bootstrap .tooltip-inner {
  text-align: left;
}
.fv-form-bootstrap .fv-icon-no-label {
  top: 0;
}
.fv-form-bootstrap .fv-bootstrap-icon-input-group {
  z-index: 100;
}
.form-inline.fv-form-bootstrap .form-group {
  vertical-align: top;
}
.content {
  padding-bottom: 0;
}
#ajaxCall {
  display: none;
  color: #000;
  background: #fff;
  border-radius: 25px;
  top: 8%;
  right: 1%;
  position: fixed;
  width: 51px;
  height: 50px;
  z-index: 55555;
  text-align: center;
}
#ajaxCall i {
  font-size: 50px;
}
.treeview-menu .divider {
  border-top: 1px solid rgba(127, 127, 127, 0.1);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  margin: 4px 0 4px -5px !important;
  display: block;
}
.dataTables_processing {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 250px;
  margin-left: -125px;
  text-align: center;
  color: #999;
  font-size: 0px;
  padding: 2px 0;
  background: url("../../images/loading_bar.gif") no-repeat center;
  z-index: 1000;
  height: 20px;
}
.default {
  cursor: default;
}
.pointer {
  cursor: pointer;
}
.trash-opacity-50 {
  opacity: 0.5;
  filter: alpha(opacity=50);
}
.table thead th {
  text-align: center;
}
.table td {
  vertical-align: middle !important;
}
.table-calendar td {
  vertical-align: top !important;
}
.table-calendar .table td {
  font-weight: bold;
}
.has-success .select2-container .select2-selection {
  border-color: #00a65a !important;
}
.has-error .select2-container .select2-selection {
  border-color: #dd4b39 !important;
}
.bootbox .modal-footer {
  padding-top: 5px;
  border-top: 0;
}
.select2-hidden-accessible {
  height: 0;
}
.table td:last-child .btn-group .btn:hover {
  border: 0;
  padding: 2px 5px;
  margin: 0;
}
.table td:last-child .btn-group .btn.btn-danger:hover {
  border-radius: 0 3px 3px 0 !important;
}
.calendar .table th,
.calendar .table td {
  border: 1px solid #ccc !important;
}
.calendar .cl_wday {
  text-align: center;
  font-weight: bold;
}
.calendar .cl_equal {
  width: 14%;
}
.calendar .cl_left {
  width: 50%;
  float: left;
  text-align: left;
}
.calendar .cl_right {
  width: 50%;
  float: right;
  text-align: right;
  font-weight: bold;
}
.calendar .highlight {
  color: #0088cc;
  font-weight: bold;
}
@media (max-width: 767px) {
  .calendar .cl_left {
    width: 100%;
    float: none;
  }
  .calendar .cl_right {
    width: 100%;
    float: none;
  }
}

.pos {
  min-width: 1020px !important;
}
.pos .alerts {
  width: 400px;
  position: absolute;
  top: 60px;
  right: 20px;
  z-index: 1040;
}
.alerts .alert {
  margin-top: 10px;
}
.pos button.edit {
  white-space: normal;
  text-align: left !important;
}
.dropdown-menu .menu {
  position: relative;
  overflow: hidden;
  max-height: 300px !important;
}
.pos .btn-group {
  z-index: 1;
}
.pos .control-sidebar {
  position: fixed;
  max-height: 100%;
  overflow: auto;
}
.pos .control-sidebar .tab-content {
  z-index: 2080;
}
.pos .control-sidebar-menu .active {
  background: #1e282c;
  cursor: default;
}

.pos #categories-list.control-sidebar {
  padding-left: 10px;
}

.column-text-center {
  text-align: center !important;
}
@media (min-width: 1200px) {
  .pos .pos-category-toggle {
    display: none;
  }
  .pos #categories-list.control-sidebar {
    top: 50px;
    right: 0;
    width: 160px;

    height: calc(100vh - 50px);
    max-height: calc(100vh - 50px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .pos #categories-list .tab-content {
    padding: 15px 10px;
  }
  .pos #categories-list .control-sidebar-menu > li > a {
    padding: 8px 5px;
  }
  .pos #categories-list .control-sidebar-menu .menu-icon {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 16px;
  }
  .pos #categories-list .control-sidebar-menu .menu-info {
    margin-left: 42px;
  }
  .pos .content-wrapper .layout-table {
    width: calc(100% - 160px) !important;
    min-width: 840px !important;
  }
}
@media (min-width: 1366px) {
  .pos #categories-list.control-sidebar {
    width: 180px;
  }
  .pos .content-wrapper .layout-table {
    width: calc(100% - 180px) !important;
  }
}
.pos .content-wrapper .layout-table {
  position: absolute;
  min-width: 0 !important;
}
.pos .leftdiv .layout-table td {
  padding: 15px !important;
}
.pos table td {
  vertical-align: top;
}
.pos #pos {
  padding: 15px;
}
.pos .contents {
  padding: 15px 65px 15px 0;
  position: relative;
  min-height: 440px;
  overflow: hidden;
}
.pos #list-table-div {
  min-height: 160px;
}
.pos .contents .product-nav {
  position: absolute;
  bottom: 0;
  padding-right: 65px;
}
.pos .contents #item-list .btn {
  width: 120px;
  text-align: center;
}
.pos .contents #item-list .items {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.pos .contents #item-list .btn-name {
  width: 116px;
  height: 60px;
  line-height: 16px;
  white-space: pre-wrap;
  margin: 2px;
}
.pos .contents #item-list .btn-img,
.pos .contents #item-list .btn-both {
  background: transparent;
  padding: 3px;
}
.pos .contents #item-list .btn-img:hover,
.pos .contents #item-list .btn-both:hover {
  background: #ccc;
}
.pos .contents #item-list .btn-both .bg-img {
  background: #fff;
  height: 110px;
  padding: 5px;
}
.pos .contents #item-list .btn-both span {
  display: block;
  width: 110px;
  background: #e5e5e5;
  height: 40px;
  overflow: hidden;
  white-space: pre-wrap;
  margin-left: 1px;
}
.pos .contents #item-list .btn-both span span {
  display: table-cell;
  vertical-align: middle;
  overflow: hidden;
  white-space: pre-wrap;
  line-height: 16px;
  padding: 3px 2px;
}
.pos .print {
  display: none;
}
.pos .input-qty {
  padding: 0;
  height: auto;
}
.pos .quick-cash .badge {
  position: absolute;
  top: 1px;
  right: 1px;
  padding: 1px 3px;
}
.pos .font16 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}
.pos .modal-success .table-bordered > tbody > tr > td {
  background: #fff;
  color: #333;
  border: 1px solid #00a65a;
}
.pos .modal-success .table-bordered > tbody > tr > td:nth-child(odd) {
  border-right-color: #fff !important;
}
@media only screen and (max-width: 998px) {
  .pos {
    min-width: 1020px;
  }
  .pos-wrapper {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    min-width: 990px;
  }
  .pos .container .navbar-header,
  .pos .container .navbar-collapse {
    margin-right: 0;
    margin-left: 0;
  }
  .pos .navbar-header {
    float: left;
  }
  .pos .navbar-collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
  }
  .pos .navbar-toggle {
    display: none;
  }
  .pos .navbar-collapse {
    border-top: 0;
  }
  .pos .navbar-brand {
    margin-left: -15px;
  }
  .pos .navbar-nav {
    float: left;
    margin: 0;
  }
  .pos .navbar-nav > li {
    float: left;
  }
  .pos .navbar-nav > li > a {
    padding: 15px;
  }

  .pos .navbar-nav.navbar-right {
    float: right;
  }
  .pos .navbar .navbar-nav .open .dropdown-menu {
    position: absolute;
    float: left;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-width: 0 1px 1px;
    border-radius: 0 0 4px 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  }
  .pos .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #333;
  }
  .pos .navbar .navbar-nav .open .dropdown-menu > li > a:hover,
  .pos .navbar .navbar-nav .open .dropdown-menu > li > a:focus,
  .pos .navbar .navbar-nav .open .dropdown-menu > .active > a,
  .pos .navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
  .pos .navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: #fff !important;
    background-color: #428bca !important;
  }
  .pos .navbar .navbar-nav .open .dropdown-menu > .disabled > a,
  .pos .navbar .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .pos .navbar .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: #999 !important;
    background-color: transparent !important;
  }
  .pos .main-header {
    position: relative;
  }
  .pos .main-header .logo,
  .pos .main-header .navbar {
    width: 100%;
    float: left;
    position: static !important;
  }
  .pos .main-header .navbar {
    margin: 0;
  }
  .pos .main-header .navbar-custom-menu {
    float: right;
    position: absolute;
    right: 0;
  }
  .pos .main-header .logo {
    width: 50px;
  }
  .pos.sidebar-mini.sidebar-collapse .main-header .logo > .logo-mini {
    display: block;
    margin-left: -15px;
    margin-right: -15px;
    font-size: 18px;
  }
  .pos.sidebar-mini.sidebar-collapse .main-header .logo > .logo-lg {
    display: none;
  }
  .pos.sidebar-mini.sidebar-collapse .main-header .navbar {
    margin-left: 50px;
    float: none;
  }
  .control-sidebar {
    padding-top: 50px;
    position: fixed;
  }
}
@media (max-width: 767px) {
  .pos .main-header .navbar-custom-menu {
    float: right;
    position: absolute;
    right: 0;
  }
  .pos.sidebar-mini.sidebar-collapse .main-header .navbar {
    margin-left: 50px;
    float: none;
  }
}

.ui-keyboard {
  padding: 0.3em;
  z-index: 16001;
  background: rgba(255, 255, 255, 0.8);
  right: 0 !important;
  left: 0 !important;
  top: auto !important;
  bottom: 0px !important;
  position: fixed !important;
  width: 100%;
  min-width: 750px;
  height: 160px;
  -webkit-box-shadow: -2px 0px 5px rgba(50, 50, 50, 0.5);
  -moz-box-shadow: -2px 0px 5px rgba(50, 50, 50, 0.5);
  box-shadow: -2px 0px 5px rgba(50, 50, 50, 0.5);
}
.ui-keyboard-has-focus {
  z-index: 16001;
}
.ui-keyboard div {
  font-size: 1.1em;
}
.ui-keyboard-button {
  height: 2em;
  width: 2em;
  margin: 0.1em;
  cursor: pointer;
  overflow: hidden;
  border: 0;
  background: #eee;
}
.ui-keyboard-button:hover {
  background: #c8c8c8;
}
.ui-keyboard-button span {
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.ui-keyboard-button-endrow {
  clear: left;
}
.ui-keyboard-widekey {
  width: 3em;
}
.ui-keyboard-preview {
  text-align: left;
  margin: 0 0 3px 0;
  display: inline;
  width: 99%;
}
.ui-keyboard-keyset {
  text-align: center;
}
.ui-keyboard-input-placeholder {
  color: #888;
}
.ui-keyboard-nokeyboard {
  color: #888;
  border-color: #888;
}
.ui-keyboard-button.disabled {
  opacity: 0.5;
  filter: alpha(opacity=50);
}
.ui-keyboard-button.ui-keyboard-combo.ui-state-default {
  border-color: #357ebd;
}
.ui-keyboard .ui-state-active {
  border-color: #357ebd;
  color: #357ebd;
}
.ui-keyboard-space {
  width: 11.4em;
  text-indent: -999em;
}
.ui-keyboard .ui-keyboard-bksp {
  width: 4em;
  background-color: #f39c12;
  border-color: #e08e0b;
  color: #fff;
}
.ui-keyboard .ui-keyboard-bksp:hover {
  background-color: #e08e0b;
}
.ui-keyboard .ui-keyboard-enter {
  background-color: #3c8dbc;
  border-color: #367fa9;
  color: #fff;
  width: 6.2em;
}
.ui-keyboard .ui-keyboard-enter:hover {
  background-color: #367fa9;
}
.ui-keyboard .ui-keyboard-shift {
  width: 2.8em;
}
.ui-keyboard .ui-keyboard-accept {
  width: 6.6em;
  background-color: #00a65a;
  border-color: #008d4c;
  padding-left: 2px;
  padding-right: 2px;
  color: #fff;
}
.ui-keyboard .ui-keyboard-accept:hover {
  background-color: #008d4c;
}
.ui-keyboard .ui-keyboard-cancel {
  width: 4em;
  background-color: #dd4b39;
  border-color: #d73925;
  color: #fff;
  padding-left: 2px;
  padding-right: 2px;
}
.ui-keyboard .ui-keyboard-cancel:hover {
  background-color: #d73925;
}

.no-results {
  padding-left: 15px;
  color: #ccc;
}

.login-page-blue {
  background: #3c8dbc !important;
}
.login-page-green {
  background: #00a65a !important;
}
.login-page-red {
  background: #dd4b39 !important;
}
.login-page-purple {
  background: #605ca8 !important;
}
.login-page-yellow {
  background: #f39c12 !important;
}
.login-page-black {
  background: #151515 !important;
}
@media (min-width: 768px) {
  .pos .main-header .navbar-custom-menu {
    right: 40px;
  }
}
@media print {
  .box {
    border: 0;
  }
  a:after,
  .main-footer,
  .box-header,
  .dataTables_length,
  .dataTables_filter,
  .dataTables_paginate {
    display: none;
  }

  /* Strong thermal-printer typography for reports only. */
  .thermal-report-print,
  .thermal-report-print p,
  .thermal-report-print div,
  .thermal-report-print span,
  .thermal-report-print table,
  .thermal-report-print thead,
  .thermal-report-print tbody,
  .thermal-report-print tfoot,
  .thermal-report-print tr,
  .thermal-report-print td {
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
  }
  .thermal-report-print h1,
  .thermal-report-print h2,
  .thermal-report-print h3,
  .thermal-report-print h4,
  .thermal-report-print h5,
  .thermal-report-print h6,
  .thermal-report-print th,
  .thermal-report-print strong,
  .thermal-report-print b {
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-weight: 700 !important;
  }
  .thermal-report-print .text-muted,
  .thermal-report-print .small,
  .thermal-report-print small,
  .thermal-report-print .text-primary,
  .thermal-report-print .text-success,
  .thermal-report-print .text-info,
  .thermal-report-print .text-warning,
  .thermal-report-print .text-danger {
    color: #000 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
  }
  .thermal-report-print table,
  .thermal-report-print th,
  .thermal-report-print td {
    border-color: #000 !important;
  }
  .thermal-report-print .table-bordered th,
  .thermal-report-print .table-bordered td {
    border: 1px solid #000 !important;
  }
  .thermal-report-print tfoot td,
  .thermal-report-print tfoot th,
  .thermal-report-print .total,
  .thermal-report-print .report-total,
  .thermal-report-print .grand-total,
  .thermal-report-print .net-profit,
  .thermal-report-print .net-row td,
  .thermal-report-print .due-thermal-summary,
  .thermal-report-print .expense-thermal-summary {
    color: #000 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
  }
  .thermal-report-print .due-thermal-record,
  .thermal-report-print .due-thermal-summary,
  .thermal-report-print .expense-thermal-record,
  .thermal-report-print .expense-thermal-summary {
    border-color: #000 !important;
  }
  .thermal-report-print {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* POS category-column responsive integration. Keep these after the legacy POS rules. */
@media (max-width: 1199px) {
  .pos,
  .pos .pos-wrapper {
    min-width: 0 !important;
  }
  .pos .content-wrapper .layout-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }
  .pos .contents,
  .pos .contents #item-list {
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .pos .content-wrapper .layout-table,
  .pos .content-wrapper .layout-table > tbody,
  .pos .content-wrapper .layout-table > tbody > tr,
  .pos .content-wrapper .layout-table > tbody > tr > td {
    display: block;
    width: 100% !important;
  }
  .pos .content-wrapper .layout-table {
    position: relative;
  }
  .pos .contents {
    padding-left: 15px;
  }
}

/* POS category sidebar: one toggleable panel on every screen size. */
.pos .pos-category-toggle {
  display: block !important;
}

/* Closed is the base state; AdminLTE's control-sidebar-open class opens it. */
.pos #categories-list.control-sidebar {
  right: -230px;
}
.pos #categories-list.control-sidebar.control-sidebar-open {
  right: 0;
}

/* Tablet/laptop: keep the standard 230px sidebar and make room when open. */
@media (min-width: 768px) and (max-width: 1199px) {
  .pos .content-wrapper .layout-table {
    width: 100% !important;
  }
  .pos.category-sidebar-open .content-wrapper .layout-table {
    width: calc(100% - 230px) !important;
  }
}

/* Desktop: retain the compact POS category width, but allow it to close. */
@media (min-width: 1200px) {
  .pos #categories-list.control-sidebar {
    right: -160px;
  }
  .pos #categories-list.control-sidebar.control-sidebar-open {
    right: 0;
  }
  .pos .content-wrapper .layout-table {
    width: 100% !important;
  }
  .pos.category-sidebar-open .content-wrapper .layout-table {
    width: calc(100% - 160px) !important;
  }
}

@media (min-width: 1366px) {
  .pos #categories-list.control-sidebar {
    right: -180px;
  }
  .pos #categories-list.control-sidebar.control-sidebar-open {
    right: 0;
  }
  .pos.category-sidebar-open .content-wrapper .layout-table {
    width: calc(100% - 180px) !important;
  }
}

/* Mobile: closed by default; when opened it overlays instead of shrinking POS. */
@media (max-width: 767px) {
  .pos #categories-list.control-sidebar {
    right: -230px;
  }
  .pos #categories-list.control-sidebar.control-sidebar-open {
    right: 0;
  }
  .pos .content-wrapper .layout-table,
  .pos.category-sidebar-open .content-wrapper .layout-table {
    width: 100% !important;
  }
}



/* POS product-grid overflow fix: keep product cards inside the available POS width. */
.pos .content-wrapper .layout-table {
  table-layout: fixed !important;
  max-width: 100%;
}

/* The order panel keeps its desktop width; the product panel consumes only the remainder. */
@media (min-width: 768px) {
  .pos .content-wrapper .layout-table > tbody > tr > td:first-child {
    width: 460px !important;
  }
  .pos .content-wrapper .layout-table > tbody > tr > td:last-child {
    width: auto !important;
    min-width: 0 !important;
    overflow: hidden;
  }
}

.pos #right-col,
.pos #item-list,
.pos #item-list .items {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Product buttons are fixed-size cards, but the list itself must wrap them.
   This prevents a final card/column from being hidden behind the category sidebar. */
.pos #item-list .items {
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-x: hidden !important;
  white-space: normal !important;
}

.pos #item-list .items > .product {
  flex: 0 0 120px;
  max-width: 120px;
}

/* Keep the navigation bar inside the same usable product width. */
.pos .contents .product-nav {
  left: 0;
  right: 65px;
  width: auto !important;
  box-sizing: border-box;
}

/* On phones, allow the order/product blocks to use the full viewport width. */
@media (max-width: 767px) {
  .pos .content-wrapper .layout-table > tbody > tr > td:first-child,
  .pos .content-wrapper .layout-table > tbody > tr > td:last-child {
    width: 100% !important;
    min-width: 0 !important;
  }
  .pos #item-list .items > .product {
    flex: 0 0 120px;
    max-width: 120px;
  }
}




.control-sidebar-bg{
  width: auto !important;
}
