@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

@media (max-width: 767px) {
    .main-header .navbar-custom-menu {
        float: none !important;
        display: block !important;
    }
    .main-header .navbar-custom-menu .dropdown-menu {
        left: auto !important;
    }
    .skin-blue-light .main-header .navbar .dropdown-menu li a {
        color: #777;
    }
    .main-header .navbar {
      height: auto;
    }
}
.bg-danger {
    background-color: #f2dede !important;
}
.btn-big {
    padding: 10px 30px;
    font-size: 18px;
    line-height: 1.3333333;
}

.of-visible {
    overflow: visible !important;
}

#online_indicator {
  font-size: 8px;
  vertical-align: middle;
}

.pt-0 {
  padding-top: 0px;
}
.f-right {
  float: right;
}
.mb-10 {
  margin-bottom: 10px;
}
.discount-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  padding: 7px;
}

.discount-badge-small {
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 12px;
  padding: 6px;
}
.product-info-table td, .product-info-table th {
  font-size: 12px;
}
.pos-postcode-suggestions .list-group-item:hover {
    background-color: #f5f5f5;
}

tr.pos-non-catalogue-line {
    background-color: #fff9e6;
}

.pos-non-catalogue-badge {
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

.catalogue {
  max-height: 127px;
  margin: auto;
  margin-bottom: 18px;
}
.catalogue-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}
.bg-light-gray {
  background-color: #f8f8f8 !important;
}
.p-5-5 {
  padding: 5px 5px !important;
}
.m-4 {
  margin: 4px;
}
.skin-black .main-header, .skin-black-light .main-header {
  color: #525f7f !important;
}
.skin-black .main-header .navbar .nav .open>a {
  color: #999 !important;
}
.skin-black .main-header .navbar .nav>li>a:hover{
  color: #999 !important;
}
.skin-black .main-header .navbar > .sidebar-toggle:hover {
  color: #999 !important;
}
.mt-0{
  margin-top: 0 !important;
}
.table-pdf thead tr{
  background-color: #357ca5 !important;
  color: #fff;
}
.table-pdf thead tr th {
  color: #fff !important;
}
.blue-heading {
  background-color: #357ca5;
  color: #fff;
}

.table-pdf .odd {
    background-color: #DCE6F1;
}
.p-4{
  padding: 4px;
}
.p-10{
  padding: 10px !important;
}
.jquery-top-scrollbar{
    height: 6px !important;
}
.jquery-top-scrollbar div {
    height: 6px !important;
}
.scroll-top-bottom {
  width: 100%; 
  overflow: scroll;
}
.scroll-top-bottom::-webkit-scrollbar {
    height: 6px;
}

.scrolltop {
  display:none;
  width:100%;
  margin:0 auto;
  position:fixed;
  bottom:20px;
  right:10px; 
}
.scroll {
  position:absolute;
  right:20px;
  bottom:20px;
  background:#b2b2b2;
  background:rgba(178,178,178,0.7);
  padding:7px;
  text-align: center;
  margin: 0 0 0 0;
  cursor:pointer;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s; 
  border-radius: 6px;   
}
.scroll:hover {
  background:rgba(178,178,178,1.0);
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;    
}
.scroll:hover .fas {
  padding-top:-10px;
}
.scroll .fas {
  font-size:25px;
  margin-top:-5px;
  margin-left:1px;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;  
}

.f-left {
  float: left;
}
.align-left {
 text-align: left;
}
.align-right {
 text-align: right;
}

.table-pdf {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 8px 10px;
}
.td-border td, .td-border th{
  border-bottom: 1px solid lightgrey;
  padding: 8px 5px;
}

.ws-nowrap {
  white-space:nowrap;
}

.btn-app>.fas, .btn-app>.fab{
    font-size: 20px;
    display: block;
}
.dropdown-menu>li>a>.fas{
    margin-right: 6px;
}
.mt-5 {
  margin-top: 5px !important;
}
.pos-form-actions{
  height: auto;
  padding-top: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  overflow: visible;
  /* Anchor absolutely positioned cash tender to this bar */
  isolation: isolate;
}

/* POS lockscreen: main scroll area must not use a fixed 100vh inner height (causes overlap with header/footer) */
body.hold-transition.lockscreen main.tw-flex {
  min-height: 0;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
body.hold-transition.lockscreen #scrollable-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  /* Room for multi-row fixed footer when zoomed or many actions visible */
  padding-bottom: calc(10rem + env(safe-area-inset-bottom, 0px));
}
body.hold-transition.lockscreen .pos-sales-performance-help {
  scroll-margin-bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px));
}

/* #pos_sales_performance_section — gap between metrics, gray labels, orange theme values */
#pos_sales_performance_section .pos-sp-header-row {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto;
  overflow-y: visible;
}
#pos_sales_performance_section {
  overflow: visible;
}
#pos_sales_performance_col {
  overflow: visible;
}
/* Metrics cluster: pin to end of header row */
#pos_sales_performance_section .pos-sp-header-row #pos_sales_performance_metrics {
  margin-inline-start: auto;
}
#pos_sales_performance_section .pos-sp-panel-toggle.btn.btn-default {
  padding: 0.125rem 0.625rem;
  min-height: 1.625rem;
  margin-inline-start: 0.375rem;
  line-height: 1.2;
  font-size: 0.75rem;
  border: 1px solid #f37021 !important;
  background-color: #fff !important;
  color: #f37021 !important;
  box-sizing: border-box;
}
#pos_sales_performance_section .pos-sp-panel-toggle.btn.btn-default:hover,
#pos_sales_performance_section .pos-sp-panel-toggle.btn.btn-default:focus {
  background-color: #fff7ed !important;
  color: #ea580c !important;
  border-color: #f37021 !important;
}
#pos_sales_performance_section .pos-sp-panel-toggle--open .pos-sp-panel-toggle__icon {
  transform: rotate(180deg);
}
#pos_sales_performance_section .pos-sp-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
}
#pos_sales_performance_section .pos-sp-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f37021 !important;
  -webkit-text-fill-color: #f37021;
}

/* Sales Performance help — sticky note above panel on heading hover */
.pos-sp-section-wrap {
  position: relative;
  overflow: visible;
  z-index: 20;
}
.pos-wallet-performance-row {
  overflow: visible;
}
.pos-sp-heading-wrap .pos-sp-heading:focus {
  outline: none;
}
.pos-sp-heading-wrap .pos-sp-heading:focus-visible {
  outline: 2px solid #f37021;
  outline-offset: 2px;
  border-radius: 0.25rem;
}
#pos_sales_performance_help_panel.pos-sales-performance-help-sticky {
  display: none;
  position: fixed;
  z-index: 1060;
  width: 15.5rem;
  max-width: min(15.5rem, 80vw);
  padding: 0.625rem 0.75rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #57534e;
  background: linear-gradient(165deg, #fef9c3 0%, #fef08a 48%, #fde047 100%);
  border: 1px solid #eab308;
  border-radius: 0.125rem 0.125rem 0.125rem 0;
  box-shadow:
    2px 3px 8px rgba(0, 0, 0, 0.12),
    inset 0 -1.5rem 0 rgba(234, 179, 8, 0.08);
  transform: rotate(-2deg);
  transform-origin: left bottom;
  pointer-events: auto;
  white-space: normal;
}
#pos_sales_performance_help_panel.pos-sales-performance-help-sticky::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: -0.4rem;
  top: auto;
  width: 0.75rem;
  height: 0.75rem;
  background: #fef08a;
  border-right: 1px solid #eab308;
  border-bottom: 1px solid #eab308;
  transform: rotate(45deg);
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.06);
}
.pos-sp-section-wrap.is-sp-help-visible .pos-sp-help-hint {
  color: #ca8a04;
}

body.hold-transition.lockscreen main #app {
  flex: 0 0 auto;
}
body.hold-transition.lockscreen main .pos-header {
  flex-shrink: 0;
}

/* POS header bar — #353B40, logo, vertical rule, dark location pill, muted datetime, orange actions */
body.hold-transition.lockscreen .pos-header-bar,
body.hold-transition.lockscreen .pos-header-bar__main {
  background-color: #353b40;
}
/* Logo: same 2rem row height + horizontal inset as toolbar icon buttons (tw-h-8 / tw-px-2) */
body.hold-transition.lockscreen .pos-header-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 2rem !important;
  min-height: 2rem !important;
  max-height: 2rem !important;
  padding: 0 0.5rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
body.hold-transition.lockscreen .pos-header-logo-img {
  display: block !important;
  max-height: 1.5rem !important;
  width: auto !important;
  max-width: 9rem !important;
  object-fit: contain !important;
}
body.hold-transition.lockscreen .pos-header-logo-divider {
  width: 1px;
  height: 2rem;
  align-self: center;
  background: rgba(255, 255, 255, 0.22);
}
body.hold-transition.lockscreen .pos-header-icon-btn--ghost {
  color: #fff !important;
}
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar,
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-text-btn--toolbar,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-text-btn--toolbar {
  background: #f37021 !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar:hover,
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-text-btn--toolbar:hover,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar:hover,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-text-btn--toolbar:hover {
  background: #e85f10 !important;
}
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar .fa,
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar .fas,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar .fa,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar .fas {
  color: #fff !important;
}
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar.pos-header-icon-btn--danger,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar.pos-header-icon-btn--danger {
  background: #dc2626 !important;
}
body.hold-transition.lockscreen .pos-header-toolbar .pos-header-icon-btn--toolbar.pos-header-icon-btn--danger:hover,
body.hold-transition.lockscreen .pos-header-secondary .pos-header-icon-btn--toolbar.pos-header-icon-btn--danger:hover {
  background: #b91c1c !important;
}
body.hold-transition.lockscreen .pos-header-datetime-cluster {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}
body.hold-transition.lockscreen .pos-header-datetime-pill--muted {
  background: #5c636a !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow: hidden !important;
}
body.hold-transition.lockscreen .pos-header-datetime-pill--muted .pos-header-datetime-pill__time,
body.hold-transition.lockscreen .pos-header-datetime-pill--muted .curr_datetime {
  color: #fff !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  flex: 1 1 auto;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
body.hold-transition.lockscreen .pos-header-datetime-pill--muted .fa-calendar {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Keyboard shortcuts: separate control outside the time pill */
body.hold-transition.lockscreen .pos-header-shortcut-btn {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center !important;
}
body.hold-transition.lockscreen .pos-header-shortcut-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}
body.hold-transition.lockscreen .pos-header-bar__main {
  align-items: center !important;
}
body.hold-transition.lockscreen .pos-header-bar__right {
  align-items: center !important;
}
body.hold-transition.lockscreen .pos-header-secondary {
  align-items: center !important;
}
/* Right cluster: SALES + user + toolbar in one horizontal strip (scroll if needed) */
body.hold-transition.lockscreen .pos-header-bar__right {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  body.hold-transition.lockscreen .pos-header-bar__right {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}
/* Toolbar: do NOT set display here — it would override Tailwind tw-hidden / md:tw-flex */
body.hold-transition.lockscreen .pos-header-toolbar {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 1 auto;
}
/* Hamburger: pos-header-icon-btn uses display:inline-flex !important, which beats md:tw-hidden */
@media (min-width: 768px) {
  body.hold-transition.lockscreen button.pos-header-mobile-menu-btn {
    display: none !important;
  }
}

/* POS two-column shell: enforce row + bounds without relying on Tailwind breakpoints alone */
body.hold-transition.lockscreen .pos-pos-main-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 0%;
  min-height: 0;
}
@media (min-width: 768px) {
  body.hold-transition.lockscreen .pos-pos-main-layout {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }
  body.hold-transition.lockscreen .pos-sidebar-column {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    min-height: 0;
    max-height: calc(100dvh - 5.5rem);
    overflow: hidden;
    align-self: stretch;
  }
  body.hold-transition.lockscreen .pos-sidebar-column .pos-sidebar-stack {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.hold-transition.lockscreen .pos-sidebar-stack .pos-sidebar-product-pane {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.hold-transition.lockscreen .pos-sidebar-stack .pos-sidebar-product-pane-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }
}
@media (min-width: 1024px) {
  body.hold-transition.lockscreen .pos-sidebar-column.lg\:tw-w-\[25\%\],
  body.hold-transition.lockscreen .pos-sidebar-column.lg\:tw-w-\[20\%\] {
    width: 20% !important;
    max-width: 20%;
    flex: 0 0 20%;
  }
}
@media (max-width: 767px) {
  body.hold-transition.lockscreen .pos-sidebar-column {
    max-height: min(52vh, 460px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.hold-transition.lockscreen .pos-sidebar-column .pos-sidebar-stack {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.hold-transition.lockscreen .pos-sidebar-stack .pos-sidebar-product-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.hold-transition.lockscreen .pos-sidebar-stack .pos-sidebar-product-pane-inner {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
  }
}

/* POS lockscreen: section fills scroll area so inner card can stretch to footer (empty or full cart) */
body.hold-transition.lockscreen #scrollable-container > section.content,
body.hold-transition.lockscreen #scrollable-container > .content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
}
body.hold-transition.lockscreen #scrollable-container > .content form#add_pos_sell_form,
body.hold-transition.lockscreen #scrollable-container > .content form#edit_pos_sell_form {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.hold-transition.lockscreen form#add_pos_sell_form > .row.mb-12,
body.hold-transition.lockscreen form#edit_pos_sell_form > .row.mb-12 {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.hold-transition.lockscreen form#add_pos_sell_form > .row.mb-12 > .col-md-12,
body.hold-transition.lockscreen form#edit_pos_sell_form > .row.mb-12 > .col-md-12 {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.hold-transition.lockscreen .pos-pos-main-layout > div:first-child {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.hold-transition.lockscreen .pos-main-card {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hold-transition.lockscreen .pos-main-card .box-body {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hold-transition.lockscreen .pos-sale-scroll-column {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hold-transition.lockscreen .pos-cart-stretch {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.hold-transition.lockscreen .pos-cart-row {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.hold-transition.lockscreen .pos_product_div {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

/* Cart: fills space down to footer when empty; scrolls when lines exceed that area */
body.hold-transition.lockscreen .pos-cart-table-scroll {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.hold-transition.lockscreen .pos-cart-table-scroll .pos-pos-table-wrap.table-responsive {
  display: block;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
body.hold-transition.lockscreen #pos_table {
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  margin-bottom: 0;
}

/* POS lockscreen: maximize cart area — flex fill, trim gaps between sections */
body.hold-transition.lockscreen .pos-sale-scroll-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  gap: 0;
}
body.hold-transition.lockscreen .pos-sale-scroll-column > .pos-form-upper--compact {
  flex: 0 0 auto;
  margin-bottom: 0.25rem;
}
body.hold-transition.lockscreen .pos-sale-scroll-column > .pos-cart-stretch {
  flex: 1 1 auto;
  min-height: 10rem;
  max-height: none;
}
body.hold-transition.lockscreen .pos-sale-scroll-column > .pos_form_totals,
body.hold-transition.lockscreen .pos-sale-scroll-column > .pos-wallet-performance-row {
  flex: 0 0 auto;
  margin-top: 0.25rem !important;
  margin-bottom: 0 !important;
}
body.hold-transition.lockscreen .pos-main-card {
  padding: 0.5rem 0.625rem !important;
  margin-bottom: 0 !important;
}
body.hold-transition.lockscreen .pos-main-card .box-body.pb-0 {
  padding-top: 0.125rem !important;
  padding-bottom: 0 !important;
}
body.hold-transition.lockscreen .pos-pos-main-layout {
  gap: 0.5rem !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form > .row.mb-12 > .col-md-12,
body.hold-transition.lockscreen form#edit_pos_sell_form > .row.mb-12 > .col-md-12 {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
body.hold-transition.lockscreen .pos_form_totals {
  margin-bottom: 0 !important;
}
body.hold-transition.lockscreen .pos-form-totals-wrap.row {
  margin-left: 0;
  margin-right: 0;
}
body.hold-transition.lockscreen .pos-customer-search-row {
  margin-bottom: 0.25rem !important;
}
body.hold-transition.lockscreen .pos-form-fields-row {
  margin-top: 0 !important;
}
body.hold-transition.lockscreen .pos-form-upper--compact .pos-form-field-label,
body.hold-transition.lockscreen .pos-form-upper--compact .form-group > label.pos-form-field-label {
  margin-bottom: 0.25rem !important;
  font-size: 0.75rem !important;
}
body.hold-transition.lockscreen .pos-form-upper--compact .form-group.tw-mb-2 {
  margin-bottom: 0.25rem !important;
}
body.hold-transition.lockscreen #pos_table tbody td {
  padding: 0.3rem 0.45rem !important;
  vertical-align: middle;
}
body.hold-transition.lockscreen #pos_table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #000000 !important;
  color: #ffffff !important;
  font-size: 0.625rem !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  padding: 0.35rem 0.45rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: #1a1a1a !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
body.hold-transition.lockscreen #pos_table.table-striped > thead > tr > th {
  background: #000000 !important;
  color: #ffffff !important;
}
body.hold-transition.lockscreen #pos_table thead th .fa,
body.hold-transition.lockscreen #pos_table thead th .fas,
body.hold-transition.lockscreen #pos_table thead th .text-info {
  color: rgba(255, 255, 255, 0.9) !important;
}
body.hold-transition.lockscreen #pos_table thead th i.text-info {
  font-size: 0.6875rem !important;
}
/* Product column: wider, header left-aligned */
body.hold-transition.lockscreen #pos_table thead th.pos-table-th-product {
  text-align: left !important;
  min-width: min(22rem, 88vw);
  width: 46%;
}
body.hold-transition.lockscreen #pos_table tbody tr > td:first-child {
  min-width: min(22rem, 88vw);
  width: 46%;
}
body.hold-transition.lockscreen #pos_table tbody tr > td.pos-td-product {
  min-width: min(22rem, 88vw);
  width: 46%;
}
/* POS cart: product column middle-aligned; other cells top-aligned */
#pos_table tbody td {
  vertical-align: top;
}
#pos_table tbody td.pos-td-product {
  vertical-align: middle;
}
/* POS product cell: image | title | stock on one row */
#pos_table td.pos-td-product .pos-product-cell-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  margin-bottom: 0.4rem;
}
#pos_table .pos-cart-drag-handle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: #94a3b8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#pos_table .pos-cart-drag-handle:active {
  cursor: grabbing;
}
#pos_table tbody tr.pos-cart-sortable-placeholder > td {
  background: #f1f5f9;
  box-shadow: inset 0 0 0 2px #cbd5e1;
}
#pos_table tbody tr.ui-sortable-helper {
  display: table;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
#pos_table td.pos-td-product .pos-product-cell-img {
  flex: 0 0 auto;
}
#pos_table td.pos-td-product .pos-product-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
#pos_table td.pos-td-product .pos-product-cell-main {
  flex: 1 1 auto;
  min-width: 0;
}
#pos_table td.pos-td-product .pos-product-title-line {
  min-width: 0;
  line-height: 1.35;
  word-break: break-word;
}
#pos_table td.pos-td-product .pos-product-title-line .text-link:hover,
#pos_table td.pos-td-product .pos-product-title-line .text-link:focus {
  text-decoration: none;
}
#pos_table td.pos-td-product .pos-product-name {
  font-weight: 600;
}
#pos_table td.pos-td-product .pos-product-cell-stock {
  flex: 0 1 auto;
  max-width: min(52%, 20rem);
  text-align: right;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}
#pos_table td.pos-td-product .pos-product-stock-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}
#pos_table td.pos-td-product .pos-product-stock {
  display: block;
  line-height: 1.3;
  white-space: normal;
  text-align: right;
  min-width: 0;
}
#pos_table td.pos-td-product .pos-product-total-stock {
  display: block;
  line-height: 1.25;
  font-size: 0.85em;
  text-align: right;
  white-space: normal;
  min-width: 0;
}
#pos_table td.pos-td-product .pos-location-stock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  line-height: 1.25;
  font-size: 11px;
  flex-shrink: 0;
}
#pos_table tr.product_row.pos-cart-row-selected > td.pos-td-product {
  box-shadow: inset 3px 0 0 0 rgba(249, 115, 22, 0.85);
}
/* Qty / unit price / subtotal: shrink to content, nowrap labels, flexible growth */
#pos_table thead th.pos-table-th-qty,
#pos_table thead th.pos-table-th-unit-price,
#pos_table thead th.pos-table-th-discount,
#pos_table thead th.pos-table-th-margin,
#pos_table thead th.pos-table-th-subtotal {
  white-space: nowrap;
  width: 1%;
  max-width: none;
}
#pos_table tbody td.pos-td-quantity {
  width: 1%;
  min-width: min-content;
  max-width: none;
}
#pos_table tbody td.pos-td-unit-price {
  width: 1%;
  min-width: min-content;
  max-width: none;
}
#pos_table tbody td.pos-td-margin {
  width: 1%;
  min-width: min-content;
  max-width: none;
  white-space: nowrap;
  vertical-align: middle;
}
#pos_table tbody td.pos-td-margin .pos_line_margin_text {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  min-width: 3.5rem;
}
#pos_table tbody td.pos-td-discount {
  width: 1%;
  min-width: min-content;
  max-width: none;
  white-space: nowrap;
  vertical-align: middle;
}
#pos_table tbody td.pos-td-discount .pos_line_discount_text {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  min-width: 3rem;
}
#pos_table tbody td.pos-td-discount .pos_line_discount_text.text-link.text-muted {
  color: #3c8dbc;
}
#pos_table tbody td.pos-td-discount .pos_line_discount_text.text-link.text-warning {
  color: #d97706;
}
#pos_table td.pos-td-product .pos-line-metrics {
  line-height: 1.35;
  margin-top: 3px;
}
#pos_table td.pos-td-product .pos-line-metrics .pos_line_margin_text.text-danger {
  color: #d97706;
}
#pos_table tbody td.pos-td-subtotal {
  width: 1%;
  min-width: min-content;
  max-width: none;
  white-space: nowrap;
}
/* Text inputs: width follows value (field-sizing); fallback min in ch */
#pos_table tbody input.form-control.pos_quantity,
#pos_table tbody input.form-control.pos_unit_price,
#pos_table tbody input.form-control.pos_unit_price_inc_tax,
#pos_table tbody input.form-control.pos_line_total,
#pos_table tbody input.form-control.row_discount_amount,
#pos_table tbody td.pos-td-quantity input.form-control.input-sm.input_number:not(.pos_quantity) {
  field-sizing: content;
  width: auto !important;
  min-width: max(3ch, 2.25rem);
  max-width: 100%;
  box-sizing: border-box;
}
/* Native selects: shrink to selected option text */
#pos_table tbody td select.form-control.tax_id,
#pos_table tbody td select.form-control.row_discount_type {
  width: auto !important;
  max-width: 100%;
  min-width: min-content;
}
#pos_table tbody td.pos-td-subtotal .pos_line_total_text {
  width: auto !important;
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

#pos_table td.pos-td-quantity .pos-qty-cell-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  min-width: min-content;
}
#pos_table td.pos-td-quantity .pos-qty-stepper.input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
}
#pos_table td.pos-td-quantity .pos-qty-stepper .input-group-btn {
  flex: 0 0 auto;
  display: flex;
  float: none;
  width: auto;
}
#pos_table td.pos-td-quantity .pos-qty-stepper .input-group-btn > .btn {
  align-self: stretch;
}
#pos_table td.pos-td-quantity .pos-qty-stepper > .form-control.pos_quantity {
  flex: 0 0 auto;
  min-width: max(3ch, 2rem);
  width: auto !important;
  max-width: none;
}
#pos_table td.pos-td-quantity .pos-qty-cell-row select.pos-qty-sub-unit {
  flex: 0 1 auto;
  min-width: min-content;
  max-width: none;
  width: auto;
}
#pos_table td.pos-td-quantity .pos-qty-cell-row .pos-qty-unit-label {
  display: none !important;
}

/* Space for fixed POS bottom bar when not using lockscreen flex fill */
#add_pos_sell_form,
#edit_pos_sell_form {
  padding-bottom: clamp(72px, 11vh, 120px);
}
@media (max-width: 767px) {
  #add_pos_sell_form,
  #edit_pos_sell_form {
    padding-bottom: clamp(260px, 42vh, 520px);
  }
}
/* Lockscreen POS: main column fills to the footer strip (no blank strip under the card) */
body.hold-transition.lockscreen #add_pos_sell_form,
body.hold-transition.lockscreen #edit_pos_sell_form {
  padding-bottom: 0;
}
body.hold-transition.lockscreen form#add_pos_sell_form > .row.mb-12,
body.hold-transition.lockscreen form#edit_pos_sell_form > .row.mb-12 {
  min-height: calc(100dvh - 8.25rem);
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  body.hold-transition.lockscreen form#add_pos_sell_form > .row.mb-12,
  body.hold-transition.lockscreen form#edit_pos_sell_form > .row.mb-12 {
    min-height: calc(100dvh - 9.5rem);
  }
}
.mb-12 {
  margin-bottom: 12px !important;
}
.pb-0{
  padding-bottom: 0px !important;
}
.pr-12{
  padding-right: 12px !important;
}
.main-header .sidebar-toggle:before {
    content: "" !important;
}
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
} 
.margin-bottom-20 {
  margin-bottom: 20px !important;
}

/* DataTables toolbar – prevent overlap on smaller screens */
.dataTables_wrapper .datatable-controls > div {
  margin-bottom: 10px;
}

.dataTables_wrapper .datatable-length label {
  white-space: normal;
  text-align: left;
}

.dataTables_wrapper .datatable-buttons .dt-buttons.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  float: none;
  justify-content: flex-start;
}

.dataTables_wrapper .datatable-buttons .dt-buttons .btn {
  float: none;
  margin: 0 !important;
}

@media (min-width: 992px) {
  .dataTables_wrapper .datatable-filter {
    text-align: right;
  }
}

@media (max-width: 991px) {
  .dataTables_wrapper .datatable-filter {
    text-align: left;
  }

  .dataTables_wrapper .datatable-filter input {
    width: 100%;
    max-width: 320px;
  }
}

.text-white {
  color: #fff;
}
.wizard > .steps > ul > li {
  width: 33.33% !important;
}
.wizard > .content {
  /* background: #445867 !important; */
}
legend {
  color: #fff;
  margin-bottom: 6px;
  border-bottom: none;
}
.left-col {
  background: linear-gradient(0deg,rgba(0, 0, 0, 0.76),rgba(51, 51, 51, 0.32)),url(../img/home-bg.jpg); 
  text-align: center;
  background-size: cover;
  background-position: center;
}
.left-col-content {
  color: #1A7BF9;
  width: 100%;
}
.login-header {
  font-size: 27px;
  font-weight: 600;
}
.login-header a {
  color: #fff;
}
.form-header {
  font-size: 18px;
  margin: 16px 0;
}
.btn-login {
  padding: 6px 52px !important;
}


/* .right-col label {
  color: #fff;
}

.right-col a, .text-white a {
  color: #fff;
  font-weight: 600;
  font-size: 15px
}
.right-col a:hover, .text-white a:hover {
  color: #ccc;
}
.right-col-content {
  padding: 10% 16%;
  padding-bottom: 3%;
}
.right-col-content-register {
  padding: 2% 8%;
} */

.input_inline {
  width: 100%;
  display: inline-flex;
}
.input_inline input, .input_inline span {
  width: 50%;
}
.bg-manufacturing {
  background-color: #ff851b;
}
.img-thumbnail {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border .2s ease-in-out;
  padding: 4px;
  margin: 3px;
  text-align: center;
}
.img-thumbnail>.badge{
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu {
  max-height: 350px;
}
.bg-aqua-lite {
  background-color: #7FFFD4;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu>li>a {
  white-space: normal;
}
.spacer {
  margin-top: 20px;
}
#product_list_body {
    max-height: 485px;
    overflow-y: scroll;
    overflow-x: hidden;
    /* Uniform grid: equal horizontal + vertical gaps (overrides .eq-height-row flex) */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    padding: 2px;
}
/* Grid cells: no Bootstrap float/width — column gap comes from #product_list_body gap */
#product_list_body > .product_list,
#product_list_body > .pos-product-grid-cell {
    float: none !important;
    width: auto !important;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    min-width: 0;
}
#product_list_body .product_box {
    margin-bottom: 0;
}
#product_list_body .product_box .image-container img {
    max-height: 50px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
/* POS sidebar grid tiles: orange theme (aligned with POS category chips active #f97316) — price & stock qty */
#product_list_body .pos-product-grid-price,
#product_list_body .pos-product-grid-stock {
    color: #f97316 !important;
}
#product_list_body .pos-product-grid-price {
    font-weight: 600;
}
#product_list_body .pos-product-grid-stock {
    font-weight: 500;
}
/* POS sidebar: list scrolls inside column; height comes from flex parent (not a tall 100dvh calc) */
body.hold-transition.lockscreen .pos-sidebar-stack #product_list_body {
    max-height: none !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
@media (max-width: 767px) {
    body.hold-transition.lockscreen .pos-sidebar-stack #product_list_body {
        flex: none !important;
        max-height: min(48vh, 400px) !important;
    }
}
.div-overlay {
    cursor: not-allowed;
    background: #e9e9e9; 
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

.d-inline-table {
  display: inline-table;
}

.label-round{
  font-size: 8px;
  border-radius: 44%;
}
.table>tbody+tbody{
  border-top: 0;
}
.table-pl-12 td, .table-pl-12 th{
  padding-left: 12px !important;
}
table tbody td.pl-20-td{
  padding-left: 20px !important;
}
table.table-border-center > tbody > tr > td:first-child, 
table.table-border-center > thead > tr > th:first-child,
table.table-border-center > tfoot > tr > td:first-child
{
  border-right: 1px solid darkgray;
}
table.table-border-center-col > tbody > tr > td:nth-child(2), 
table.table-border-center-col > thead > tr > th:nth-child(2),
table.table-border-center-col > tfoot > tr > td:nth-child(2)
{
  border-right: 1px solid darkgray;
  border-left: 1px solid darkgray;
}
.bg-transparent{
  background-color: transparent !important;
}
.mb-0{
  margin-bottom: 0;
}

.nav-tabs>li>a{
  font-size: 18px;
  font-weight: 600;
}
.table-transparent, .table-transparent th {
    background-color: transparent !important;
    color: #000 !important;
}
.td-full-width {
  white-space:nowrap;
}
.font-17{
    font-size: 17px !important;
}
table.dataTable tbody>tr.selected{
    background-color: #B0BED9;
}
tr.footer-total > td {
    vertical-align: middle !important;
}
.error{
	color: red !important;
}
/*  pos tab */
div.pos-tab-container{
  z-index: 10;
  background-color: #ffffff;
  padding: 0 !important;
  border-radius: 4px;
  -moz-border-radius: 4px;
  border:1px solid #ddd;
    margin-bottom: 28px;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  -moz-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  background-clip: padding-box;
}
div.pos-tab-menu{
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}
div.pos-tab-menu div.list-group{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
  color: #5A55A3;
}
div.pos-tab-menu div.list-group>a:first-child{
  border-top-right-radius: 0;
  -moz-border-top-right-radius: 0;
}
div.pos-tab-menu div.list-group>a:last-child{
  border-bottom-right-radius: 0;
  -moz-border-bottom-right-radius: 0;
}


/* div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa{
  background-color: #3c8dbc;
  color: #ffffff;
    border-color: #3c8dbc;
} */

div.pos-tab-menu div.list-group > a.active,
div.pos-tab-menu div.list-group > a.active .glyphicon,
div.pos-tab-menu div.list-group > a.active .fa {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: #ffffff;
  border-color: transparent;
}


div.pos-tab-menu div.list-group>a.active:after{
  /* content: ''; */
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -13px;
  border-left: 0;
  border-bottom: 13px solid transparent;
  border-top: 13px solid transparent;
  border-left: 10px solid #3c8dbc;
}

div.pos-tab-content{
  background-color: #ffffff;
  /* border: 1px solid #eeeeee; */
  padding-left: 20px;
  padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active){
  display: none;
}

.add-product-price-table th{
	background-color: #5cb85c;
    color: white;
}
.blue-header th {
	background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
	background-color: #5cb85c;
    color: white;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
.active-cell {
    border: 2px dotted #3c8dbc !important;
}
.cursor-pointer{
    cursor: pointer !important;
}
/* POS cart height: lockscreen uses flex (see .pos_product_div rules above); non–POS-sale pages keep a sane cap */
:root {
    --pos-cart-height-offset: 380px;
}
.pos_product_div {
    box-sizing: border-box;
}
.bg-lightgray{
    background-color: #F0EDED !important;
}
.balance_due_box >li{
    padding: 11px 5px 0px 5px;
}
.option-div {
    padding: 15px;
    background-color: #d2d6de;
    color: #333;
    border:1px solid #d2d6de;
    cursor: pointer;
}
.option-div input[type="radio"]{
    display: none;
}
.option-div-group .icon {
    color: #d33724;
    display: none;
}
.option-div-group .option-div:hover{
    border:1px solid gray;
}
.option-div-group .active .icon{
    display: block;
}
.margin-left-10 {
    margin-left: 10px;
}
.margin-bottom-12{
    margin-bottom: 12px;
}
.bg-info{
    background-color: #00c0ef !important;
}
.bg-info > a{
    color: #FFFFFF !important;
}
.bg-info>a:hover{
    background-color: #337ab7 !important;
}
ul.dt-button-collection{
    background-color: #00c0ef;
}
td.details-control {
    background: url('/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.details td.details-control {
    background: url('/img/details_close.png') no-repeat center center;
}
/* iCheck: visible fallback — sprite path in vendor.css points to missing
   public/images/vendor/icheck/skins/square/blue.png (role edit & all icheck UIs). */
.icheckbox_square-blue,
.iradio_square-blue {
  margin-right: 10px;
  background-image: none !important;
  box-sizing: border-box !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.icheckbox_square-blue {
  background-color: #fff !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 4px !important;
}
.icheckbox_square-blue.hover {
  border-color: #64748b !important;
  background-color: #f8fafc !important;
}
.icheckbox_square-blue.checked {
  background-color: #3c8dbc !important;
  border-color: #2a6f8d !important;
  position: relative;
}
.icheckbox_square-blue.checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.iradio_square-blue {
  background-color: #fff !important;
  border: 2px solid #94a3b8 !important;
  border-radius: 50% !important;
}
.iradio_square-blue.hover {
  border-color: #64748b !important;
  background-color: #f8fafc !important;
}
.iradio_square-blue.checked {
  background-color: #fff !important;
  border-color: #3c8dbc !important;
  position: relative;
}
.iradio_square-blue.checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #3c8dbc;
}
.header-right-div{
    right: 10px;
    float: right;
    position: absolute;
    top: 15px;
}
.header-left-div{
    margin-top: 15px;
    display: inline-flex;
}
.m-8 {
    margin: 8px;
}
.mt-10{
    margin-top: 10px;
}
.mt-15{
    margin-top: 15px;
}
.m-5 {
    margin: 5px;
}
.icon-link{
  text-align:center;
  display:block;
  margin-bottom: 18px;
}
.icon-link > a {
    display:grid;
}
.icon-link > .badge{
    position: absolute;
    top: 20px;
    right: 67px;
}
.link-des {
    display: inline-block;
    text-align: left;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>img {
    border: none;
    height: auto;
    width: 100%;
    max-height: 120px;
}
.bg-light-green{
    background-color: #98D973 !important;
    color: #fff !important
}
.hover-q {
    font-size: 16px;
    margin-left: 3px;
    cursor: help;
}
.input-group-addon .hover-q{
    margin-left: 0px;
}
.text-bold{
    font-weight: bold;
}
.tour .popover-content{
    padding: 18px 14px;
}
.table-slim>tbody>tr>td, .table-slim>tbody>tr>th, .table-slim>tfoot>tr>td, .table-slim>tfoot>tr>th, .table-slim>thead>tr>td, .table-slim>thead>tr>th{
    padding: 1px;
}

/* Custom scroll bar start*/

/* width */
/* ::-webkit-scrollbar {
    width: 7px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #f1f1f1; 
} */
 
/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #888; 
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #555; 
} */

/* Custom scroll bar end*/

.product_cell{
    height: 100px;
    padding: 1%;
}
.product_cell_div{
    height: 100% !important;
    width: 100% !important;
    text-align: center;
    vertical-align: middle;
    padding-top: 5px;
    cursor: pointer;
    overflow: hidden;
}

/*CSS to print receipts*/
.print_section{
    display: none;
}
@media print{
    .print_section{
        display: block !important;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        z-index: 99999;
    }
    .modal,
    .modal-backdrop {
        display: none !important;
    }
    ::-webkit-scrollbar{
        display: none !important;
    }
    #toast-container {
      display: none;
    }
}

.input-number .btn-default{
    background-color: white;
    padding: 6px 9px;
}

.width-50{
    width: 50% !important;
}
.width-40{
    width: 40% !important;
}
.width-60{
    width: 60% !important;
}
.width-100{
    width: 100% !important;
}

.font-30{
    font-size: 30px !important;
}

.font-23{
    font-size: 23px !important;
}
.padding-5{
    padding: 5px !important;
}
.padding-10{
    padding: 10px !important;
}
.padding-side-15{
    /*padding-left: 15px !important;
    padding-right: 15px !important;*/
}
.text-muted-imp{
    color: #A3A3A3 !important;
}

.table-no-top-cell-border td{
    border-top: 0px !important;
    border-bottom: 0px !important;
}
.table-no-top-cell-border th{
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.table-no-side-cell-border td{
    border-left: 0px !important;
    border-right: 0px !important;
}
.table-no-side-cell-border th{
    border-left: 0px !important;
    border-right: 0px !important;
}

.color-555 {
    color: #555555 !important;
}
.color-555 *{
    color: #555555 !important;
}
.color-white {
    color: white !important;
}
.col-no-padding{
    padding-left: 0px;
    padding-right: 0px;
}
.col-2px-padding{
    padding: 2px;
}

.pos-express-btn{
    font-size: 23px !important;
    overflow: hidden !important;
    height: 73px !important;
    white-space: normal;
}
.word-wrap{
    word-wrap: break-word !important;
}

.modal-xl{
    width: 90%; /* respsonsive width */
    margin-left: auto !important;
    margin-right: auto !important;
}
table.ajax_view tbody tr{
    cursor: pointer;
}
.bg-white{
    background-color: #fff;
}

.product-thumbnail-small{
    height: 40px;
    width: 40px;
    max-width: 40px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.product-datatable-fullwidth,
#product_table_wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
}

.product-datatable-loading-wrap {
    position: relative;
}

#product_table_wrapper .dataTables_length,
#product_table_wrapper .dt-buttons,
#product_table_wrapper .dataTables_filter,
#product_table_wrapper .dataTables_info,
#product_table_wrapper .dataTables_paginate {
    position: relative;
    z-index: 2;
}

#product_table_wrapper .product-datatable-scroll-host {
    position: relative;
    min-height: 280px;
}

.product-datatable-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(1px);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.product-datatable-loader.hide {
    display: none;
}

.tw-filter-panel > .js-filter-panel-body.collapse:not(.in) {
    display: none !important;
}

.tw-filter-panel > .js-filter-panel-body.collapse.in {
    display: block !important;
}

.product-datatable-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-datatable-loader__icon {
    font-size: 2rem;
    color: #d97706;
}

.product-datatable-loader__text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

#product_table_wrapper .dataTables_processing {
    display: none !important;
}

#product_table_wrapper .dataTables_scroll {
    width: 100% !important;
}

#product_table_wrapper .dataTables_scrollHead,
#product_table_wrapper .dataTables_scrollBody,
#product_table_wrapper .dataTables_scrollFoot {
    width: 100% !important;
}

#product_table_wrapper .dataTables_scrollHeadInner table,
#product_table_wrapper .dataTables_scrollBody table {
    min-width: 100% !important;
}

#product_table {
    width: 100% !important;
    min-width: 100%;
}

#product_table th.product-table-image-col,
#product_table td.product-table-image-col {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    text-align: center;
    vertical-align: middle !important;
    white-space: nowrap;
    padding: 6px 4px !important;
}

#product_table .product-table-image-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    margin: 0 auto;
}

table.table-text-center td, table.table-text-center th{
    vertical-align: middle !important;
}
.product_list{
    padding-left: 3px;
    padding-right: 3px;
}
.product_box{
  width: 100%;
  /*padding-top: 5px;
  padding-bottom: 2px;*/
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  /*border: 1px solid darkgray;*/
  font-weight: 600;
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 8px;
}
/* POS create/edit: labeled dropdowns above selects (match Select invoice layout style) */
.pos-form-upper .pos-form-field-label,
.pos-form-upper .form-group > label.pos-form-field-label {
    display: block !important;
    visibility: visible !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}
.pos-form-upper .form-group .select2-container {
    width: 100% !important;
}
body.hold-transition.lockscreen .pos-customer-search-row .pos-customer-input-group .select2-container {
    width: auto !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.pos-form-upper .pos-form-fields-row .form-group {
    margin-bottom: 12px;
}

/* POS meta row: invoice layout, commission, sale date, invoice scheme — one compact row */
.pos-form-meta-row {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.pos-form-meta-row > .pos-form-meta-col {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.pos-form-meta-row .form-group {
  margin-bottom: 0.25rem !important;
}
.pos-form-meta-row .pos-form-field-label {
  display: block;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 0.15rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-form-meta-row .pos-form-meta-input {
  height: 2rem;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.25;
}
.pos-form-meta-row .select2-container {
  width: 100% !important;
  max-width: 100%;
}
.pos-form-meta-row .select2-container .select2-selection--single {
  min-height: 2rem !important;
  height: 2rem !important;
  border-radius: 0.375rem;
}
.pos-form-meta-row .select2-container .select2-selection__rendered {
  line-height: 1.85rem !important;
  font-size: 0.8125rem !important;
  padding-left: 0.45rem !important;
  padding-right: 1.5rem !important;
}
.pos-form-meta-row .select2-container .select2-selection__arrow {
  height: 1.85rem !important;
}
@media (min-width: 992px) {
  .pos-form-meta-row > .pos-form-meta-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
body.hold-transition.lockscreen .pos-form-extra-row {
  margin-top: 0.125rem;
}
body.hold-transition.lockscreen .pos-form-meta-row {
  margin-top: 0.25rem !important;
}
body.hold-transition.lockscreen .pos-form-meta-row .pos-form-meta-input {
  height: var(--pos-field-height) !important;
  min-height: var(--pos-field-height) !important;
  max-height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen .pos-form-meta-row .select2-container .select2-selection--single {
  min-height: var(--pos-field-height) !important;
  height: var(--pos-field-height) !important;
  max-height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen .pos-form-meta-row .select2-container .select2-selection__rendered {
  line-height: calc(var(--pos-field-height) - 2px) !important;
}
body.hold-transition.lockscreen .pos-form-meta-row .select2-container .select2-selection__arrow {
  height: calc(var(--pos-field-height) - 2px) !important;
}
.product_box .image-container{
  height: 50px;
  margin: auto;
  width: 100%;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product_box .image-container img{
  display: block;
  max-width: 100%;
  max-height: 50px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
}
.eq-height-row{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:flex;
    flex-wrap: wrap;
}
.eq-height-col{
    display: flex;
}

.product_box .text_div{
    margin-top: 3px;
}
.product_box .text{
    width: 100%;
    overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 1; /* number of lines to show */
   line-height: 14px;        /* fallback */
   max-height: 14px;       /* fallback */
}
.small-box.bg-gray:hover{
    color: #000;
    text-decoration: none;
}

#calendar table tbody td {
    cursor: pointer;
}

.min-height-90hv{
    min-height: 90vh !important;
}

/* Grow Shadow */
.hvr-grow-shadow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
}
.hvr-grow-shadow:hover, .hvr-grow-shadow:focus, .hvr-grow-shadow:active {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.text-link{
    cursor: pointer;
}

.text-link:hover{
    text-decoration: underline;
}

.v-center{
    vertical-align: middle !important;
}

.bg-woocommerce{
  background-color: #9E458B !important;
}

/*.box, .info-box, .nav-tabs-custom, .external-event{
  box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2) !important;
}*/

.user_avatar {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  margin: 1px;
}

.fs-10 {
  font-size: 10px;
}

.timeline-lode-more-btn {
  margin-left: 50px;
  margin-top: 25px;
  padding-right: 12px;
  padding-left: 12px;
}

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

.mt-56{
  margin-top: 56px !important;
}

.m-2{
  margin: 2px !important;
}

.treeview-menu i{
  display: none !important;
}
.treeview-menu a{
  padding-left: 25px !important;
  font-size: 95% !important;
}
.treeview-menu a::before{
  content: "\2192 ";
}

/* Keep POS footer fixed on narrow viewports so totals/actions stay reachable while scrolling */
.pos-pos-table-wrap.table-responsive,
.pos-form-totals-table-wrap.table-responsive {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

/* POS footer: below md — wrap buttons in a grid instead of fixed-width horizontal scroll */
/* POS footer: LCD-style numerals (total, cash received, change); Orbitron loaded at top of file */
.pos-footer-digital-num {
  font-family: 'Orbitron', 'Courier New', Courier, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.pos-footer-cash-tender__lcd {
  background: linear-gradient(180deg, #123524 0%, #0a1f14 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pos-footer-cash-tender__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 1.55rem;
}
.pos-footer-cash-tender__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(220, 252, 231, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pos-footer-cash-tender .pos-bar-total-payable.pos-footer-digital-num {
  color: #86efac !important;
}
.pos-footer-cash-tender .pos-footer-change-amount.pos-footer-digital-num {
  color: #fde047 !important;
}
.pos-footer-cash-received-input {
  width: 6.75rem;
  min-width: 0;
  max-width: 100%;
  min-height: 1.65rem;
  padding: 0.15rem 0.35rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.25;
  text-align: right;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #86efac;
}
.pos-footer-cash-received-input:focus {
  border-color: rgba(134, 239, 172, 0.65);
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.25);
  outline: none;
}

@media (max-width: 1279px) {
  .pos-form-actions .pos-form-actions-scroll {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll {
    width: 100% !important;
    margin-right: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    row-gap: 0.4rem !important;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll__secondary,
  .pos-form-actions .pos-form-actions-buttons-scroll__checkout {
    margin-inline-start: 0 !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    width: 100%;
  }
  .pos-form-actions .pos-footer-tender-dock {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-inline-start: 0 !important;
    gap: 0.35rem !important;
  }
  .pos-form-actions .pos-footer-action-btn {
    min-height: 2.25rem;
    padding: 0.35rem 0.45rem !important;
    font-size: 0.625rem;
  }
  .pos-form-actions .pos-footer-action-btn i,
  .pos-form-actions .pos-footer-action-btn .fas,
  .pos-form-actions .pos-footer-action-btn .fa {
    font-size: 0.75rem;
  }
}

@media (max-width: 767px) {
  .pos-form-actions .pos-footer-tender-dock {
    align-self: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
  }
  .pos-form-actions .pos-footer-cash-tender {
    max-width: min(17.5rem, calc(100vw - 0.75rem));
  }
  .pos-form-actions .pos-form-actions-buttons-scroll {
    row-gap: 0.5rem;
    justify-content: flex-start !important;
    overflow-x: visible;
    flex-wrap: wrap;
    align-content: flex-start;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll__checkout {
    margin-inline-start: 0;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: max-content !important;
    min-width: min-content;
    flex-shrink: 0;
    white-space: nowrap !important;
    text-align: center;
    min-height: 2.5rem;
    font-size: 0.625rem;
    line-height: 1.2;
    padding: 0.4rem 0.5rem !important;
    hyphens: manual;
    overflow-wrap: normal;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn i,
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn .fas,
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn .fa {
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .pos-form-actions .pos-footer-tender-dock__recent.pos-footer-action-btn {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    min-height: 2.5rem;
    font-size: 0.625rem;
    line-height: 1.2;
    padding: 0.4rem 0.5rem !important;
  }
}
@media (max-width: 380px) {
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn {
    flex: 0 0 auto !important;
  }
}

/* POS footer: large desktop — horizontal bar */
@media (min-width: 1280px) {
  .pos-form-actions .pos-form-actions-scroll {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll {
    flex-wrap: wrap !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    align-content: flex-start !important;
    gap: 0.4rem 0.5rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .pos-form-actions .pos-form-actions-buttons-scroll__checkout {
    margin-inline-start: auto;
  }
  .pos-form-actions .pos-footer-tender-dock {
    width: auto !important;
    flex: 0 0 auto !important;
    align-items: flex-end !important;
    margin-inline-start: auto;
  }
  .pos-form-actions .pos-footer-cash-tender {
    max-width: min(18rem, calc(100vw - 1.25rem));
  }
  .pos-form-actions .pos-form-actions-buttons-scroll .pos-footer-action-btn {
    flex: 0 0 auto !important;
    width: max-content !important;
    max-width: max-content !important;
    min-width: min-content !important;
    white-space: nowrap !important;
  }
}
.mr-8 {
  margin-right: 8px !important;
}

@media (max-width: 1279px) {
   .pos_form_totals{
        margin-bottom: 72px;
    }
}

@media (max-width: 1024px) {
   .pos_form_totals{
        margin-bottom: 88px;
    }
}
body.hold-transition.lockscreen .pos_form_totals {
  margin-bottom: 0 !important;
}

.swal-modal .swal-text {
    text-align: center;
}

.pos-total {
    /* display: inline-block; */
    padding: 8px 10px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}
.pos-form-actions .pos-total {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

/* POS footer: hide horizontal scrollbars (row still scrolls with wheel / drag) */
.pos-form-actions .pos-form-actions-scroll,
.pos-form-actions .pos-form-actions-buttons-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pos-form-actions .pos-form-actions-scroll::-webkit-scrollbar,
.pos-form-actions .pos-form-actions-buttons-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* POS footer: orange action buttons — width from label (nowrap); primary checkout cluster right-aligned */
.pos-form-actions .pos-footer-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-sizing: border-box;
    margin: 0;
    min-height: 2.375rem;
    flex: 0 0 auto;
    min-width: min-content;
    width: max-content;
    max-width: max-content;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff !important;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #f37021;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
    overflow-wrap: normal;
    -webkit-appearance: none;
    appearance: none;
}
.pos-form-actions .pos-form-actions-buttons-scroll {
    gap: 0.35rem 0.45rem;
    justify-content: space-between;
    align-content: center;
}

.pos-form-actions .pos-form-actions-buttons-scroll__secondary {
    justify-content: flex-start;
    align-items: center;
    align-content: flex-start;
}

.pos-form-actions .pos-form-actions-buttons-scroll__checkout {
    justify-content: flex-end;
    align-items: center;
    align-content: flex-start;
}

/* POS header clock: white chip + #f37021 theme text (no Tailwind text-white) */
.pos-header .pos-header-datetime-pill.pos-footer-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    box-sizing: border-box;
    margin: 0;
    min-height: 2.375rem;
    width: auto;
    max-width: min(12.5rem, 100%);
    min-width: 0;
    overflow: hidden;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #f37021 !important;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    border-radius: 0.5rem;
    border: 2px solid #f37021 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(243, 112, 33, 0.18);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: default;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn .curr_datetime {
    color: #f37021 !important;
    -webkit-text-fill-color: #f37021;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn .pos-header-datetime-help {
    cursor: help;
    line-height: 1;
    flex-shrink: 0;
    color: #f37021;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn .pos-header-datetime-help:focus {
    outline: 2px solid rgba(243, 112, 33, 0.45);
    outline-offset: 2px;
}
.pos-form-actions .pos-footer-action-btn:hover,
.pos-form-actions .pos-footer-action-btn:focus {
    background: #e85f10;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn:hover,
.pos-header .pos-header-datetime-pill.pos-footer-action-btn:focus {
    background: #fff8f4 !important;
    color: #f37021 !important;
    border-color: #e85f10 !important;
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.22);
    outline: none;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn:hover .curr_datetime,
.pos-header .pos-header-datetime-pill.pos-footer-action-btn:focus .curr_datetime {
    color: #f37021 !important;
    -webkit-text-fill-color: #f37021;
}
.pos-form-actions .pos-footer-action-btn:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.12);
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn:active {
    box-shadow: 0 1px 2px rgba(243, 112, 33, 0.2);
}
.pos-form-actions .pos-footer-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.pos-form-actions .pos-footer-action-btn i,
.pos-form-actions .pos-footer-action-btn .fas,
.pos-form-actions .pos-footer-action-btn .fa {
    color: #fff !important;
    font-size: 0.8125rem;
    flex-shrink: 0;
}
.pos-header .pos-header-datetime-pill.pos-footer-action-btn i,
.pos-header .pos-header-datetime-pill.pos-footer-action-btn .fas,
.pos-header .pos-header-datetime-pill.pos-footer-action-btn .fa {
    color: #f37021 !important;
    -webkit-text-fill-color: #f37021;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

/* POS footer: muted (white/gray border) — Quotation, Suspend, Credit sale, Sell return, Recent */
.pos-form-actions .pos-footer-action-btn--muted {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}
.pos-form-actions .pos-footer-action-btn--muted:hover,
.pos-form-actions .pos-footer-action-btn--muted:focus {
    background: #f9fafb !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}
.pos-form-actions .pos-footer-action-btn--muted i,
.pos-form-actions .pos-footer-action-btn--muted .fas,
.pos-form-actions .pos-footer-action-btn--muted .fa {
    color: #4b5563 !important;
}

/* Multiple pay — blue */
.pos-form-actions .pos-footer-action-btn--blue {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35) !important;
}
.pos-form-actions .pos-footer-action-btn--blue:hover,
.pos-form-actions .pos-footer-action-btn--blue:focus {
    background: #1d4ed8 !important;
    border-color: #1e40af !important;
    color: #fff !important;
}
.pos-form-actions .pos-footer-action-btn--blue i,
.pos-form-actions .pos-footer-action-btn--blue .fas {
    color: #fff !important;
}

/* Cash — green */
.pos-form-actions .pos-footer-action-btn--green {
    background: #16a34a !important;
    border-color: #15803d !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.35) !important;
}
.pos-form-actions .pos-footer-action-btn--green:hover,
.pos-form-actions .pos-footer-action-btn--green:focus {
    background: #15803d !important;
    border-color: #166534 !important;
    color: #fff !important;
}
.pos-form-actions .pos-footer-action-btn--green i,
.pos-form-actions .pos-footer-action-btn--green .fas {
    color: #fff !important;
}

/* Cancel — bright red (distinct from orange default) */
.pos-form-actions .pos-footer-action-btn--danger-red {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.35) !important;
}
.pos-form-actions .pos-footer-action-btn--danger-red:hover,
.pos-form-actions .pos-footer-action-btn--danger-red:focus {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

/* POS cart totals: gray labels; summary row values = orange theme (matches footer / brand #f37021) */
.pos-form-totals-main-table .pos-form-totals-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}
@media (min-width: 768px) {
    .pos-form-totals-main-table .pos-form-totals-label {
        font-size: 0.875rem;
    }
}
.pos-form-totals-main-table .pos-form-totals-value-num {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}
.pos-form-totals-main-table tr.pos-form-totals-summary-row .pos-form-totals-value-num,
.pos-form-totals-main-table tr.pos-form-totals-summary-row .pos-form-totals-total-payable-num {
    color: #f37021 !important;
    -webkit-text-fill-color: #f37021;
    font-weight: 700;
}
.pos-form-totals-main-table .pos-form-totals-payable-cell {
    background-color: #fff7ed;
    border-radius: 0.375rem;
    padding: 0.375rem 0.625rem !important;
    vertical-align: middle;
}
.pos-form-totals-main-table .pos-form-totals-payable-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) {
    .pos-form-totals-main-table .pos-form-totals-payable-label {
        font-size: 1rem;
    }
}
.pos-form-totals-main-table .pos-form-totals-total-payable-num {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .pos-form-totals-main-table .pos-form-totals-total-payable-num {
        font-size: 1.3125rem;
    }
}
body.hold-transition.lockscreen .pos-form-totals-main-table .pos-form-totals-payable-cell {
    vertical-align: middle;
}
body.hold-transition.lockscreen .pos-form-totals-main-table td.pos-form-totals-cell {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* POS lockscreen: header location <select> — matches datetime pill (white + orange border / text) */
body.hold-transition.lockscreen .pos-header select#select_location_id.pos-header-location-select,
body.hold-transition.lockscreen .pos-header select#select_location_id {
    width: 100%;
    max-width: 100%;
    min-height: 2.375rem;
    padding-block: 0.375rem;
    padding-inline: 0.625rem 1.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f37021 !important;
    background-color: #ffffff !important;
    border: 2px solid #f37021 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 3px rgba(243, 112, 33, 0.15);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
body.hold-transition.lockscreen .pos-header select#select_location_id.pos-header-location-select:hover,
body.hold-transition.lockscreen .pos-header select#select_location_id:hover {
    background-color: #fff8f4 !important;
    border-color: #e85f10 !important;
}
body.hold-transition.lockscreen .pos-header select#select_location_id.pos-header-location-select:focus,
body.hold-transition.lockscreen .pos-header select#select_location_id:focus {
    outline: none;
    border-color: #e85f10 !important;
    box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.22);
    background-color: #fff8f4 !important;
}
body.hold-transition.lockscreen .pos-header select#select_location_id.pos-header-location-select option,
body.hold-transition.lockscreen .pos-header select#select_location_id option {
    color: #111827;
    font-weight: 600;
    background-color: #fff;
}

/* Dark charcoal location pill on #353B40 header (overrides orange/white rules above) */
body.hold-transition.lockscreen .pos-header .pos-header-bar select#select_location_id.pos-header-location-pill-dark,
body.hold-transition.lockscreen .pos-header .pos-header-bar select#select_location_id.pos-header-location-pill-dark:hover,
body.hold-transition.lockscreen .pos-header .pos-header-bar select#select_location_id.pos-header-location-pill-dark:focus {
    color: #ffffff !important;
    background-color: #454b51 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    min-height: 2rem !important;
    font-size: 0.8125rem !important;
    padding-block: 0.28rem !important;
    padding-inline: 0.75rem 1.6rem !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.hold-transition.lockscreen .pos-header .pos-header-bar select#select_location_id.pos-header-location-pill-dark:hover,
body.hold-transition.lockscreen .pos-header .pos-header-bar select#select_location_id.pos-header-location-pill-dark:focus {
    background-color: #4f565d !important;
    outline: none !important;
}

/* POS lockscreen: customer + search row — slim pills, light gray customer / white search */
body.hold-transition.lockscreen .pos-form-upper--compact {
    padding-top: 0;
    margin-top: 0;
}
body.hold-transition.lockscreen .pos-customer-search-row {
    margin-top: 0 !important;
    align-items: flex-start !important;
}
/* POS field row: fixed height (avoids layout shift after Select2 / JS init) */
body.hold-transition.lockscreen {
    --pos-field-height: 2.2rem;
    --pos-brand-orange: #f37021;
    --pos-brand-orange-hover: #d9650f;
    --pos-brand-orange-border: #c55a0d;
    --pos-brand-charcoal: #353b40;
}
/* Unified height + action button size for customer + search product rows */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group {
    gap: 0;
    height: var(--pos-field-height);
    min-height: var(--pos-field-height);
    max-height: var(--pos-field-height);
    box-sizing: border-box;
    overflow: hidden;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > .input-group-addon,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > .input-group-addon,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > .input-group-btn {
    margin: 0 !important;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    align-self: auto;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn {
    width: var(--pos-field-height) !important;
    min-width: var(--pos-field-height) !important;
    max-width: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0.875rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group > .input-group-btn:last-child > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group > .input-group-btn:last-child > .btn.pos-input-group-action-btn {
    border-radius: 0 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fa,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fas,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fa,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fas {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group > .input-group-btn:first-child > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group > .input-group-btn:first-child > .btn.pos-input-group-action-btn {
    border-radius: 9999px 0 0 9999px !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group > .input-group-btn:last-child > .btn.pos-input-group-action-btn:last-child,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group > .input-group-btn:last-child > .btn.pos-input-group-action-btn:last-child {
    border-radius: 0 9999px 9999px 0 !important;
}
body.hold-transition.lockscreen .pos-customer-search-shipping-col .pos-customer-search-shipping {
    min-height: var(--pos-field-height);
    display: flex;
    align-items: center;
}
body.hold-transition.lockscreen .pos-customer-search-shipping-col .pos-delivery-shipping-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}
body.hold-transition.lockscreen .pos-customer-search-shipping-col .pos-separate-delivery-label {
    font-size: 0.6875rem;
    line-height: 1.25;
    margin-bottom: 0;
    white-space: nowrap;
}
body.hold-transition.lockscreen .pos-customer-search-shipping-col .pos-delivery-address-summary {
    font-size: 0.6875rem;
    line-height: 1.25;
    flex: 1 1 100%;
    min-width: 0;
}
body.hold-transition.lockscreen .pos-customer-search-shipping-label {
    margin-bottom: 0.25rem !important;
    font-size: 0.75rem !important;
}
body.hold-transition.lockscreen #add_pos_sell_form .pos-sale-scroll-column,
body.hold-transition.lockscreen #edit_pos_sell_form .pos-sale-scroll-column {
    padding-top: 0 !important;
}
body.hold-transition.lockscreen #add_pos_sell_form .box-body.pb-0,
body.hold-transition.lockscreen #edit_pos_sell_form .box-body.pb-0 {
    padding-top: 0.25rem !important;
}

body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Customer: soft gray bar, square corners */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group {
    border: none;
    border-radius: 0;
    background: #eceff1;
    box-shadow: none;
    max-height: 2.2rem;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group:focus-within,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group:focus-within,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group:has(.select2-container--focus),
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group.pos-pos-theme-input-group:has(.select2-container--focus) {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Product search: white field, hairline border */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group.pos-pos-theme-input-group {
    border: none;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group.pos-pos-theme-input-group:focus-within,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group.pos-pos-theme-input-group:focus-within {
    box-shadow: inset 0 0 0 1px #d1d5db, 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-addon--customer,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-addon--customer {
    background: transparent !important;
    border: 0 !important;
    color: #6b7280 !important;
    border-radius: 0 !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: var(--pos-field-height);
    width: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-addon--customer .fa,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-addon--customer .fa,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-addon--customer .fas,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-addon--customer .fas {
    color: #6b7280 !important;
    font-size: 0.9375rem !important;
    line-height: 1;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-container,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-container {
    flex: 1 1 0%;
    min-width: 0;
    width: auto !important;
    max-width: none;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group select#customer_id,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group select#customer_id {
    max-width: 100%;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    padding: 0 0.5rem;
    line-height: var(--pos-field-height);
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-container .select2-selection--single,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-container .select2-selection--single {
    border: 0 !important;
    border-radius: 0 !important;
    min-height: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-selection__rendered,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-selection__rendered {
    color: #111827 !important;
    font-weight: 600;
    line-height: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-inline-start: 0.25rem !important;
    padding-inline-end: 1.5rem !important;
    font-size: 0.8125rem !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-selection__placeholder,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-selection__placeholder {
    color: #6b7280 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-selection__arrow,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-selection__arrow {
    height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .select2-selection__arrow b,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .select2-selection__arrow b {
    border-color: #9ca3af transparent transparent transparent !important;
}

/* POS Select2 (e.g. customer): dropdown is attached to body — force light search field so typed text stays visible */
body.hold-transition.lockscreen .select2-dropdown {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}
body.hold-transition.lockscreen .select2-dropdown .select2-search__field {
    background-color: #ffffff !important;
    color: #111827 !important;
    color-scheme: light;
    border: 1px solid #d1d5db !important;
}
body.hold-transition.lockscreen .select2-dropdown .select2-search__field:focus {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
    outline: none;
}
body.hold-transition.lockscreen .select2-dropdown .select2-search__field::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}
body.hold-transition.lockscreen .select2-container--default .select2-results__option {
    color: #374151;
}
body.hold-transition.lockscreen .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #ffffff !important;
}

body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-input-group .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-input-group .input-group-btn {
    border-inline-start: 1px solid rgba(0, 0, 0, 0.06);
}

/* BS3 .input-group-btn — flex row for POS chips */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-group > .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-group > .input-group-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto !important;
    min-width: 0;
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-pos-theme-input-group > .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-pos-theme-input-group > .input-group-btn > .btn.pos-input-group-action-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
}

body.hold-transition.lockscreen form#add_pos_sell_form #search_product.pos-theme-search-product,
body.hold-transition.lockscreen form#edit_pos_sell_form #search_product.pos-theme-search-product {
    flex: 1 1 0%;
    min-width: 0;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #374151 !important;
    font-weight: 500;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.8125rem !important;
    border-radius: 0 !important;
    line-height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form #search_product.pos-theme-search-product::placeholder,
body.hold-transition.lockscreen form#edit_pos_sell_form #search_product.pos-theme-search-product::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group > .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group > .input-group-btn {
    border-inline-start: 1px solid #f3f4f6;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-search-product-input-group > .input-group-btn:first-child,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-search-product-input-group > .input-group-btn:first-child {
    border-inline-start: 0;
    border-inline-end: 1px solid #f3f4f6;
}

/* POS header: location + date cluster — left-aligned, width capped */
.pos-header-shell__left {
    align-self: flex-start;
}
.pos-header-location-datetime {
    justify-content: flex-start !important;
}
.pos-header .pos-header-location-datetime .pos-header-location-select-wrap + .pos-header-datetime-pill {
    margin-inline-start: 0.5rem;
}
@media (min-width: 768px) {
    .pos-header .pos-header-location-datetime .pos-header-location-select-wrap + .pos-header-datetime-pill {
        margin-inline-start: 0.875rem;
    }
}
.pos-header-location-select-wrap {
    flex: 0 1 auto;
}
.pos-header-location-select-wrap select#select_location_id {
    max-width: 100%;
}
@media (min-width: 768px) {
    .pos-header-shell__left {
        align-self: center;
    }
}

/* POS header: icon toolbar — fill remaining row width so justify-end pins to viewport right */
#pos_header_more_options.pos-header-more-options {
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: 0.625rem;
}
#pos_header_more_options.pos-header-more-options .pull-right {
    float: none !important;
}
@media (min-width: 768px) {
    #pos_header_more_options.pos-header-more-options {
        flex: 1 1 0%;
        min-width: 0;
        width: 100%;
        max-width: none;
    }
    .pos-header-shell {
        align-items: center;
    }
}
@media (max-width: 767px) {
    #pos_header_more_options.pos-header-more-options {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        justify-content: flex-end;
    }
}

/* POS screen (body.lockscreen): header toolbar — orange chrome, white icons (matches pos-footer-action-btn) */
body.hold-transition.lockscreen .pos-header-icon-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2rem !important;
    height: 2rem !important;
    padding: 0 0.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.375rem;
    background: #f37021;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
}
body.hold-transition.lockscreen .pos-header-icon-btn:hover,
body.hold-transition.lockscreen .pos-header-icon-btn:focus {
    background: #e85f10;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
}
body.hold-transition.lockscreen .pos-header-icon-btn .fa,
body.hold-transition.lockscreen .pos-header-icon-btn .fas,
body.hold-transition.lockscreen .pos-header-icon-btn .far,
body.hold-transition.lockscreen .pos-header-icon-btn strong,
body.hold-transition.lockscreen .pos-header-icon-btn span {
    color: #fff !important;
}
body.hold-transition.lockscreen .pos-header-icon-btn--danger {
    background: #dc2626;
    border-color: rgba(255, 255, 255, 0.2);
}
body.hold-transition.lockscreen .pos-header-icon-btn--danger:hover,
body.hold-transition.lockscreen .pos-header-icon-btn--danger:focus {
    background: #b91c1c;
    border-color: rgba(255, 255, 255, 0.25);
}
body.hold-transition.lockscreen .pos-header-text-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #f37021;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
}
body.hold-transition.lockscreen .pos-header-text-btn:hover,
body.hold-transition.lockscreen .pos-header-text-btn:focus {
    background: #e85f10;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
}
body.hold-transition.lockscreen .pos-header-text-btn .fa,
body.hold-transition.lockscreen .pos-header-text-btn .fas {
    color: #fff !important;
}
.pos-header-text-btn.pos-header-text-btn--nowrap,
body.hold-transition.lockscreen .pos-header-text-btn.pos-header-text-btn--nowrap {
    white-space: nowrap;
}

/* POS: customer row / search input-group action buttons */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn {
    background: #f37021 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn:hover,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn:focus,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn:hover,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn:focus {
    background: #e85f10 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fa,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fas,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fa,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .input-group-btn > .btn.pos-input-group-action-btn .fas {
    color: #fff !important;
}

/* POS cart row: +/- quantity controls (product_row partial) */
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn {
    background: #f37021 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    min-width: 2rem;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn:hover,
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn:focus,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn:hover,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn:focus {
    background: #e85f10 !important;
    color: #fff !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn .fa,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .input-group-btn > .btn.pos-input-group-action-btn .fa {
    color: #fff !important;
}

/* Remove column: narrow cell, header + chip sized to icon */
#pos_table thead th.pos-table-th-remove,
#pos_table tbody td.pos-td-remove {
    width: 0.01%;
    min-width: 1.5rem;
    max-width: 2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    white-space: nowrap;
    box-sizing: border-box;
}
#pos_table thead th.pos-table-th-remove {
    vertical-align: middle;
}
#pos_table tbody td.pos-td-remove {
    vertical-align: top;
}
#pos_table thead th.pos-table-th-remove i {
    font-size: 0.625rem;
    line-height: 1;
    vertical-align: middle;
}

/* Remove line: compact × (icon-sized chip) */
#pos_table .pos_remove_row {
    border-radius: 0.25rem;
    padding: 0.12rem 0.22rem;
    display: inline-block;
    line-height: 1;
    font-size: 0.625rem;
}
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .pos_remove_row,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .pos_remove_row {
    color: #fff !important;
    background: #dc2626;
}
body.hold-transition.lockscreen form#add_pos_sell_form #pos_table .pos_remove_row:hover,
body.hold-transition.lockscreen form#edit_pos_sell_form #pos_table .pos_remove_row:hover {
    background: #b91c1c;
}

/* POS sidebar: primary / category nav — white icons on orange */
body.hold-transition.lockscreen .pos-sidebar-stack .btn-primary,
body.hold-transition.lockscreen .pos-sidebar-stack .btn-primary:focus {
    background: #f37021 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}
body.hold-transition.lockscreen .pos-sidebar-stack .btn-primary:hover {
    background: #e85f10 !important;
    color: #fff !important;
}

@media (min-width: 768px) {
    .pos-form-actions .pos-footer-action-btn {
        margin-right: 0;
    }
    .pos-form-actions .pos-footer-action-btn i,
    .pos-form-actions .pos-footer-action-btn .fas,
    .pos-form-actions .pos-footer-action-btn .fa,
    .pos-header .pos-header-datetime-pill.pos-footer-action-btn i,
    .pos-header .pos-header-datetime-pill.pos-footer-action-btn .fas,
    .pos-header .pos-header-datetime-pill.pos-footer-action-btn .fa {
        font-size: 0.875rem;
    }
}
.pos-form-actions .pos-footer-action-btn--danger {
    background: #dc2626;
    border-color: rgba(255, 255, 255, 0.2);
}
.pos-form-actions .pos-footer-action-btn--danger:hover,
.pos-form-actions .pos-footer-action-btn--danger:focus {
    background: #b91c1c;
    border-color: rgba(255, 255, 255, 0.25);
}

/* POS footer: recent + cash tender grouped at the end of the bar (tender = rightmost) */
.pos-form-actions .pos-footer-tender-dock {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}
.pos-form-actions .pos-footer-cash-tender {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    min-width: 0;
    width: auto;
    max-width: min(18rem, calc(100vw - 1rem));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    pointer-events: auto;
}
.pos-form-actions .pos-footer-cash-tender__lcd {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.pos-form-actions .pos-footer-cash-tender .pos-bar-total-payable {
    white-space: nowrap;
}
.pos-form-actions .pos-footer-cash-tender .pos-footer-change-amount {
    white-space: nowrap;
}
.pos-total span.number{
    font-size: 26px;
    vertical-align: middle;
    font-weight: bolder;
}

.pos-total span.text{
    font-weight: bolder;
    display: inline-block;
    width: 60px;
    vertical-align: middle;
}
.mb-40 {
    margin-bottom: 40px !important;
}

@media print {
    a:after { content:''; }
    a[href]:after { content: none !important; }
    .pos-form-actions .pos-footer-tender-dock {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .pos-form-actions .pos-footer-cash-tender {
        max-width: none;
        margin: 0 0 0.5rem;
        box-shadow: none;
        border-radius: 6px;
    }
}

.fa-times{
    font-size: 30px
}
.mb-5{
  margin-bottom: 5px !important;
}
.tree-actions {
  margin-left: 20px;
  display: none;
}
.jstree-hovered .tree-actions {
  display: inherit;
}

/* Variation Table Column Widths */
.variation_value_table th:nth-child(3),
.variation_value_table td:nth-child(3) {
  min-width: 200px;
}

/* Variation Image Upload Styles */
.variation-image-cell {
  width: 50px;
  min-width: 50px;
  max-width: 60px;
  text-align: center;
}
.variation-image-upload {
  position: relative;
}
.variation-upload-btn {
  position: relative;
  min-width: 36px;
}
.variation-upload-btn .image-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.variation-image-preview {
  max-width: 200px;
}
.variation-image-preview .preview-thumb img {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.existing-images .img-thumbnail {
  max-width: 50px;
  max-height: 50px;
  overflow: hidden;
}
.existing-images .img-thumbnail img {
  width: 100%;
  height: auto;
}

/* ============================================
 * Custom theme: Greyish Orange
 * Key: greyish_orange
 * Palette:
 *   Primary   #343A40 (greyish)
 *   Secondary #EB7514 (orange)
 *   Background/Text #FFFFFF
 * This follows the existing pattern where
 *  - body gets class "skin-{theme_color}"
 *  - header/home gradients use "tw-from-{theme_color}-800 tw-to-{theme_color}-900"
 * ============================================ */

/* Tailwind-style utility classes for the new theme
   These are used where we dynamically build classes like:
   tw-bg-{theme_color}-800, tw-from-{theme_color}-800, tw-to-{theme_color}-900
*/
.tw-bg-greyish_orange-800 {
  background-color: #343A40 !important;
  color: #FFFFFF !important;
}

.tw-bg-greyish_orange-900 {
  background-color: #343A40 !important;
  color: #FFFFFF !important;
}

/* Gradient usage:
   Elements typically have:
     tw-bg-gradient-to-r tw-from-...-800 tw-to-...-900
   We emulate that gradient specifically for Greyish Orange.
*/
.tw-from-greyish_orange-800.tw-to-greyish_orange-900 {
  background-image: linear-gradient(to right, #343A40, #EB7514) !important;
  background-color: #343A40 !important;
  color: #FFFFFF !important;
}

.tw-from-greyish_orange-800 {
  background-color: #343A40 !important;
  color: #FFFFFF !important;
}

.tw-to-greyish_orange-900 {
  background-color: #EB7514 !important;
  color: #FFFFFF !important;
}

/* AdminLTE-like skin support so that body.skin-greyish_orange
   styles the header and sidebar similarly to other skins. */
.skin-greyish_orange .main-sidebar {
  background: #343A40 !important;
  border-right: 0 !important;
}

.skin-greyish_orange .sidebar-menu > li:hover > a,
.skin-greyish_orange .sidebar-menu > li.active > a,
.skin-greyish_orange .sidebar-menu > li.menu-open > a {
  background-color: #343A40 !important;
  background-image: linear-gradient(to right, #343A40, #2b3036) !important;
  border-left: 4px solid #EB7514 !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .sidebar-menu > li > .treeview-menu {
  background: #2b3036 !important;
}

/* Highlight icons/text for active/hovered sidebar entries */
.skin-greyish_orange .sidebar-menu > li:hover > a > i,
.skin-greyish_orange .sidebar-menu > li.active > a > i,
.skin-greyish_orange .sidebar-menu > li.menu-open > a > i {
  color: #EB7514 !important;
}

/* Submenu (treeview) active/hover state */
.skin-greyish_orange .sidebar-menu > li > .treeview-menu > li > a:hover,
.skin-greyish_orange .sidebar-menu > li > .treeview-menu > li.active > a {
  background-color: #2b3036 !important;
  border-left: 3px solid #EB7514 !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .main-header .logo {
  background: #343A40;
  color: #FFFFFF;
}

.skin-greyish_orange .main-header .logo:hover {
  background: #343A40;
}

.skin-greyish_orange .main-header .navbar {
  background-color: #343A40;
  background-image: linear-gradient(to right, #343A40, #EB7514);
}

.skin-greyish_orange .main-header li.user-header {
  background-color: #343A40;
}

.skin-greyish_orange .content-wrapper .content-header-custom {
  background-color: #343A40;
  background-image: linear-gradient(to right, #343A40, #EB7514);
  color: #FFFFFF !important;
  padding: 15px 15px 200px;
}

.skin-greyish_orange .content-wrapper .content-header-custom h1,
.skin-greyish_orange .content-wrapper .content-header-custom small,
.skin-greyish_orange .content-wrapper .content-header-custom a {
  color: #FFFFFF !important;
}

.skin-greyish_orange .content-wrapper .content-header-custom .breadcrumb {
  color: #FFFFFF;
}

.skin-greyish_orange .content-wrapper .content-header-custom .breadcrumb > .active {
  color: #FFFFFF;
}

.skin-greyish_orange .content-wrapper .content-custom {
  margin-top: -210px;
}

/* --------------------------------------------
 * Theme-aware default link color for Greyish Orange
 * -------------------------------------------- */
.skin-greyish_orange a {
  color: #EB7514;
}

.skin-greyish_orange a:hover,
.skin-greyish_orange a:focus {
  color: #c55a0d;
}

/* --------------------------------------------
 * Theme-aware pagination (DataTables, bootstrap)
 * -------------------------------------------- */
.skin-greyish_orange .dataTables_paginate .pagination > li > a,
.skin-greyish_orange .dataTables_paginate .pagination > li > span {
  border-color: #e0e0e0;
  color: #343A40;
}

.skin-greyish_orange .dataTables_paginate .pagination > li.active > a,
.skin-greyish_orange .dataTables_paginate .pagination > li.active > span,
.skin-greyish_orange .dataTables_paginate .pagination > li > a:focus,
.skin-greyish_orange .dataTables_paginate .pagination > li > a:hover,
.skin-greyish_orange .dataTables_paginate .pagination > li > span:focus,
.skin-greyish_orange .dataTables_paginate .pagination > li > span:hover {
  background-color: #EB7514;
  border-color: #d9650f;
  color: #FFFFFF;
}

.skin-greyish_orange .dataTables_paginate .pagination > li.disabled > a,
.skin-greyish_orange .dataTables_paginate .pagination > li.disabled > span {
  background-color: #f3f3f3;
  border-color: #e0e0e0;
  color: #a0a0a0;
}

/* --------------------------------------------
 * Theme-aware "Choose file" (bootstrap-fileinput)
 * -------------------------------------------- */
.skin-greyish_orange .btn-file,
.skin-greyish_orange .file-input .btn,
.skin-greyish_orange .file-caption .btn {
  background-color: #EB7514 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .btn-file:hover,
.skin-greyish_orange .file-input .btn:hover,
.skin-greyish_orange .file-caption .btn:hover {
  background-color: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

/* Product image upload preview — keep large images inside the preview frame */
.product_form .file-input:has(+ #upload_image) .file-preview-image {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product_form .file-input:has(+ #upload_image) .kv-file-content {
  overflow: hidden;
}

/* --------------------------------------------
 * Theme-aware modals (POS and others)
 * -------------------------------------------- */
.skin-greyish_orange .modal-content {
  border-top: 4px solid #EB7514;
  border-radius: 8px;
}

.skin-greyish_orange .modal-header {
  background-color: #343A40;
  background-image: linear-gradient(to right, #343A40, #EB7514);
  color: #FFFFFF;
  border-bottom: none;
}

.skin-greyish_orange .modal-header .close,
.skin-greyish_orange .modal-header .close span {
  color: #FFFFFF;
  opacity: 0.8;
}

.skin-greyish_orange .modal-header .close:hover,
.skin-greyish_orange .modal-header .close span:hover {
  opacity: 1;
}

.skin-greyish_orange .modal-footer {
  border-top: 1px solid #e0e0e0;
}

/* Neutral / secondary modal buttons (e.g. Close) */
.skin-greyish_orange .tw-dw-btn-neutral,
.skin-greyish_orange .btn-default {
  background-color: #343A40 !important;
  border-color: #2b3036 !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .tw-dw-btn-neutral:hover,
.skin-greyish_orange .btn-default:hover {
  background-color: #2b3036 !important;
  border-color: #22262b !important;
  color: #FFFFFF !important;
}

/* Within the Greyish Orange skin, re-map generic
   "primary" accents and buttons to the new palette. */

.skin-greyish_orange .bg-light-blue,
.skin-greyish_orange .label-primary,
.skin-greyish_orange .modal-primary .modal-body,
.skin-greyish_orange .progress-bar,
.skin-greyish_orange .text-light-blue,
.skin-greyish_orange .text-primary {
  background-color: #EB7514 !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .btn-primary {
  background: #EB7514 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .btn-primary:hover {
  background: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .btn-border-primary {
  background: transparent !important;
  border-color: #EB7514 !important;
  color: #EB7514 !important;
}

.skin-greyish_orange .btn-border-primary:hover {
  background: transparent !important;
  border-color: #d9650f !important;
  color: #d9650f !important;
}

/* Make all standard Bootstrap-style buttons follow the
   Greyish Orange palette inside this theme. */
.skin-greyish_orange .btn,
.skin-greyish_orange .btn-success,
.skin-greyish_orange .btn-info,
.skin-greyish_orange .btn-warning,
.skin-greyish_orange .btn-danger {
  background-color: #EB7514 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .btn:hover,
.skin-greyish_orange .btn-success:hover,
.skin-greyish_orange .btn-info:hover,
.skin-greyish_orange .btn-warning:hover,
.skin-greyish_orange .btn-danger:hover {
  background-color: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

/* Override common Tailwind gradient buttons that are hard-coded
   to indigo/blue so they adopt the Greyish Orange palette when
   this theme is active (e.g. "Add", "Download" buttons). */
.skin-greyish_orange .tw-bg-gradient-to-r.tw-from-indigo-600.tw-to-blue-500,
.skin-greyish_orange .tw-bg-gradient-to-r.tw-from-indigo-500.tw-to-blue-500 {
  background-image: linear-gradient(to right, #343A40, #EB7514) !important;
  background-color: #343A40 !important;
  color: #FFFFFF !important;
  border-color: #d9650f !important;
}

.skin-greyish_orange .tw-bg-gradient-to-r.tw-from-indigo-600.tw-to-blue-500:hover,
.skin-greyish_orange .tw-bg-gradient-to-r.tw-from-indigo-500.tw-to-blue-500:hover {
  background-image: linear-gradient(to right, #343A40, #EB7514) !important;
  background-color: #d9650f !important;
  color: #FFFFFF !important;
  border-color: #c55a0d !important;
}

/* POS /pos/create primary action bar buttons */
.skin-greyish_orange #pos-finalize,
.skin-greyish_orange .pos-express-finalize,
.skin-greyish_orange #recent-transactions {
  background-image: linear-gradient(to right, #343A40, #EB7514) !important;
  background-color: #343A40 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange #pos-finalize:hover,
.skin-greyish_orange .pos-express-finalize:hover,
.skin-greyish_orange #recent-transactions:hover {
  background-image: linear-gradient(to right, #343A40, #EB7514) !important;
  background-color: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

/* Recent transactions modal — compact action buttons */
#recent_transactions_modal .recent-tx-actions .tw-dw-btn {
  min-height: 1.65rem;
  height: auto;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.25;
  gap: 0.2rem;
}
#recent_transactions_modal .recent-tx-actions .tw-dw-btn i {
  font-size: 0.7rem;
}
#recent_transactions_modal .recent-tx-actions {
  gap: 0.25rem !important;
}
#recent_transactions_modal table.table > tbody > tr > td {
  vertical-align: middle;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

/* POS cancel button – keep red but align with theme text contrast */
.skin-greyish_orange #pos-cancel {
  background-color: #f44336 !important;
  border-color: #d32f2f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange #pos-cancel:hover {
  background-color: #d32f2f !important;
  border-color: #b71c1c !important;
  color: #FFFFFF !important;
}

/* Greyish Orange theme for all "primary" action buttons based on
   the custom tw-dw-btn design system (used for most Save/Submit buttons) */
.skin-greyish_orange .tw-dw-btn-primary {
  background-color: #EB7514 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .tw-dw-btn-primary:hover {
  background-color: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

/* Secondary DW "success" buttons (e.g. download template on import-expense) */
.skin-greyish_orange .tw-dw-btn-success {
  background-color: #EB7514 !important;
  border-color: #d9650f !important;
  color: #FFFFFF !important;
}

.skin-greyish_orange .tw-dw-btn-success:hover {
  background-color: #d9650f !important;
  border-color: #c55a0d !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------
 * POS lockscreen modals — orange theme (payment, deposits, banking, etc.)
 * Body uses lockscreen without skin-greyish_orange, so theme rules above do not apply.
 * -------------------------------------------- */
body.hold-transition.lockscreen .modal-content {
    border-top: 4px solid var(--pos-brand-orange);
    border-radius: 8px;
    overflow: hidden;
}

body.hold-transition.lockscreen .modal-header {
    background-color: var(--pos-brand-charcoal);
    background-image: linear-gradient(to right, var(--pos-brand-charcoal), var(--pos-brand-orange));
    color: #ffffff;
    border-bottom: none;
}

body.hold-transition.lockscreen .modal-header .modal-title {
    color: #ffffff !important;
}

body.hold-transition.lockscreen .modal-header .close,
body.hold-transition.lockscreen .modal-header .close span {
    color: #ffffff;
    opacity: 0.85;
    text-shadow: none;
}

body.hold-transition.lockscreen .modal-header .close:hover,
body.hold-transition.lockscreen .modal-header .close span:hover {
    opacity: 1;
    color: #ffffff;
}

body.hold-transition.lockscreen .modal-footer {
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

/* Primary actions: Add Payment Row, Finalize Payment, Save, Submit */
body.hold-transition.lockscreen .modal .tw-dw-btn-primary,
body.hold-transition.lockscreen .modal .btn-primary {
    background-color: var(--pos-brand-orange) !important;
    border-color: var(--pos-brand-orange-hover) !important;
    color: #ffffff !important;
    background-image: none !important;
}

body.hold-transition.lockscreen .modal .tw-dw-btn-primary:hover,
body.hold-transition.lockscreen .modal .btn-primary:hover,
body.hold-transition.lockscreen .modal .btn-primary:focus,
body.hold-transition.lockscreen .modal .btn-primary:active {
    background-color: var(--pos-brand-orange-hover) !important;
    border-color: var(--pos-brand-orange-border) !important;
    color: #ffffff !important;
    background-image: none !important;
}

/* Secondary / success actions inside modals */
body.hold-transition.lockscreen .modal .tw-dw-btn-success {
    background-color: var(--pos-brand-orange) !important;
    border-color: var(--pos-brand-orange-hover) !important;
    color: #ffffff !important;
}

body.hold-transition.lockscreen .modal .tw-dw-btn-success:hover {
    background-color: var(--pos-brand-orange-hover) !important;
    border-color: var(--pos-brand-orange-border) !important;
    color: #ffffff !important;
}

/* Close / Cancel / neutral */
body.hold-transition.lockscreen .modal .tw-dw-btn-neutral,
body.hold-transition.lockscreen .modal .btn-default {
    background-color: var(--pos-brand-charcoal) !important;
    border-color: #2b3036 !important;
    color: #ffffff !important;
}

body.hold-transition.lockscreen .modal .tw-dw-btn-neutral:hover,
body.hold-transition.lockscreen .modal .btn-default:hover,
body.hold-transition.lockscreen .modal .btn-default:focus {
    background-color: #2b3036 !important;
    border-color: #22262b !important;
    color: #ffffff !important;
}

/* Payment modal totals panel — match POS orange */
body.hold-transition.lockscreen .modal .box.bg-orange,
body.hold-transition.lockscreen .modal .bg-orange {
    background-color: var(--pos-brand-orange) !important;
    border-color: var(--pos-brand-orange-hover) !important;
    color: #ffffff !important;
}

body.hold-transition.lockscreen .modal .box.bg-orange .lead,
body.hold-transition.lockscreen .modal .box.bg-orange strong,
body.hold-transition.lockscreen .modal .bg-orange .lead,
body.hold-transition.lockscreen .modal .bg-orange strong {
    color: #ffffff !important;
}

/* SweetAlert confirmations opened from POS */
body.hold-transition.lockscreen .swal-button--confirm {
    background-color: var(--pos-brand-orange) !important;
    border-color: var(--pos-brand-orange-hover) !important;
}

body.hold-transition.lockscreen .swal-button--confirm:hover {
    background-color: var(--pos-brand-orange-hover) !important;
}

body.hold-transition.lockscreen .swal-button--cancel {
    background-color: var(--pos-brand-charcoal) !important;
    color: #ffffff !important;
}

/* Shell + sidebar: gradient column stretches to at least viewport and matches main height (all pages) */
.thetop {
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
}
.thetop > aside.side-bar {
    align-self: stretch;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Dark sidebar nav items hover */
.side-bar #side-bar .sidebar-nav-item,
.side-bar #side-bar a.drop_down.sidebar-nav-item {
  min-height: 3rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.25 !important;
}

.side-bar #side-bar .sidebar-child-item {
  min-height: 2.5rem !important;
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

.side-bar .sidebar-nav-item:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
}

/* Child items hover */
.side-bar .sidebar-child-item:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}

/* ── Main app header only (not modals / other .no-print regions) ─────────────────── */
#app-main-header {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 2px solid #F97316 !important;
}
#app-main-header > div:first-child {
  background: transparent !important;
}

#app-main-header button:not(.tw-dw-btn),
#app-main-header summary,
#app-main-header a.sm\:tw-inline-flex:not(.app-header-dropdown-link),
#app-main-header a[class*="tw-bg-"]:not(.app-header-dropdown-link) {
  background: #F97316 !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#app-main-header button:not(.tw-dw-btn):hover,
#app-main-header summary:hover,
#app-main-header a.sm\:tw-inline-flex:not(.app-header-dropdown-link):hover,
#app-main-header a[class*="tw-bg-"]:not(.app-header-dropdown-link):hover {
  background: #EA580C !important;
  color: #ffffff !important;
}

#app-main-header button:not(.tw-dw-btn) svg,
#app-main-header summary svg,
#app-main-header a.sm\:tw-inline-flex:not(.app-header-dropdown-link) svg,
#app-main-header a[class*="tw-bg-"]:not(.app-header-dropdown-link) svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

#app-main-header .tw-dw-dropdown ul,
#app-main-header details ul {
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
}

#app-main-header a.app-header-dropdown-link,
#app-main-header details ul a,
#app-main-header .tw-dw-dropdown ul a {
  background: transparent !important;
  color: #374151 !important;
}

#app-main-header a.app-header-dropdown-link:hover,
#app-main-header details ul a:hover,
#app-main-header .tw-dw-dropdown ul a:hover {
  background: #FFF7ED !important;
  color: #F97316 !important;
}

#app-main-header a.app-header-dropdown-link svg,
#app-main-header details ul a svg,
#app-main-header .tw-dw-dropdown ul a svg {
  stroke: currentColor !important;
  color: currentColor !important;
  fill: none !important;
}

/* POS header row column: full-bleed — drop Bootstrap .col-md-12 gutters (see vendor grid) */
.pos-header.col-md-12 {
  padding-left: 0;
  padding-right: 0;
}

/* Neutralize Tailwind utility from public/css/tailwind/app.css (md:tw-text-lg → 1.125rem / 1.75rem) */
@media (min-width: 768px) {
  .md\:tw-text-lg {
    font-size: inherit;
    line-height: inherit;
  }
}

/* POS customer + search row: final lock — identical height (wins over Select2 / Bootstrap) */
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-search-product-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-search-product-input-group.pos-pos-theme-input-group {
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group {
    border: none !important;
    border-radius: 0 !important;
    background: #eceff1 !important;
    box-shadow: none !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group.pos-pos-theme-input-group {
    align-items: stretch !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-search-product-input-group.pos-pos-theme-input-group,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-search-product-input-group.pos-pos-theme-input-group {
    align-items: center !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > *,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-group > * {
    box-sizing: border-box !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-addon,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-addon,
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: stretch !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .pos-pos-theme-input-addon--customer,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .pos-pos-theme-input-addon--customer {
    flex: 0 0 var(--pos-field-height) !important;
    width: var(--pos-field-height) !important;
    min-width: var(--pos-field-height) !important;
    max-width: var(--pos-field-height) !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn {
    flex: 0 0 var(--pos-field-height) !important;
    width: var(--pos-field-height) !important;
    min-width: var(--pos-field-height) !important;
    max-width: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-container,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-container {
    flex: 1 1 auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: stretch !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-container .select2-selection--single,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-container .select2-selection--single {
    flex: 1 1 auto !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-selection__rendered,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-selection__rendered {
    height: 100% !important;
    line-height: var(--pos-field-height) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-selection__arrow,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group .select2-selection__arrow {
    height: var(--pos-field-height) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group > .input-group-btn > .btn.pos-input-group-action-btn {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-search-product-input-group .input-group-btn > .btn.pos-input-group-action-btn,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-search-product-input-group .input-group-btn > .btn.pos-input-group-action-btn {
    width: var(--pos-field-height) !important;
    min-width: var(--pos-field-height) !important;
    max-width: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    box-sizing: border-box !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row #search_product.pos-theme-search-product,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row #search_product.pos-theme-search-product {
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    line-height: var(--pos-field-height) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-addon--customer,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-pos-theme-input-addon--customer {
    width: var(--pos-field-height) !important;
    min-width: var(--pos-field-height) !important;
    height: var(--pos-field-height) !important;
    min-height: var(--pos-field-height) !important;
    max-height: var(--pos-field-height) !important;
    border-radius: 0 !important;
}
body.hold-transition.lockscreen form#add_pos_sell_form .pos-customer-search-row .pos-customer-input-group select#customer_id.select2-hidden-accessible,
body.hold-transition.lockscreen form#edit_pos_sell_form .pos-customer-search-row .pos-customer-input-group select#customer_id.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Collect items modal: scroll body, keep header/footer visible */
.so-collect-items-modal {
    margin: 1.75rem auto;
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
}

.so-collect-items-modal .modal-content {
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.so-collect-items-modal #so_collect_items_form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.so-collect-items-modal .modal-header,
.so-collect-items-modal .modal-footer {
    flex-shrink: 0;
}

.so-collect-items-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}