/**
 * Lightspeed Retail — global page chrome (ALL non-POS pages)
 * Load LAST so it beats premium / japs-dashboard-* blue Salezy styles.
 * Data & fields unchanged — visual shell only.
 */
body.zoho-theme:not(.pos-sale-theme) {
  --ls-accent: #5844ed;
  --ls-accent-hover: #4634d6;
  --ls-accent-soft: rgba(88, 68, 237, 0.12);
  --ls-canvas: #f3f4f6;
  --ls-card: #ffffff;
  --ls-border: #e5e7eb;
  --ls-text: #1f2430;
  --ls-muted: #6b7280;
  --ls-radius: 8px;
  --ls-gap-top: 32px;
  --ls-page-max: 1400px;
  --ls-page-pad-x: clamp(16px, 2vw, 28px);

  /* Remap older theme tokens → Lightspeed */
  --zoho-primary: var(--ls-accent);
  --zoho-blue: var(--ls-accent);
  --zoho-blue-hover: var(--ls-accent-hover);
  --zoho-blue-light: var(--ls-accent-soft);
  --zoho-page-bg: var(--ls-canvas);
  --zoho-content-bg: var(--ls-canvas);
  --zoho-link: var(--ls-accent);

  --p-blue: var(--ls-accent);
  --p-blue-dark: var(--ls-accent-hover);
  --p-blue-soft: var(--ls-accent-soft);
  --p-ink: var(--ls-text);
  --p-muted: var(--ls-muted);
  --p-line: var(--ls-border);
  --p-bg: var(--ls-canvas);
  --p-shadow: none;
  --p-shadow-md: 0 4px 14px rgba(26, 29, 38, 0.06);
  --p-radius: var(--ls-radius);

  --prem-bg: var(--ls-canvas);
  --prem-card: var(--ls-card);
  --prem-border: var(--ls-border);
  --prem-ink: var(--ls-text);
  --prem-muted: var(--ls-muted);
  --prem-blue: var(--ls-accent);
  --prem-radius: var(--ls-radius);
  --prem-shadow: none;
  --prem-shadow-hover: var(--p-shadow-md);

  --dash-bg: var(--ls-canvas);
  --dash-card: var(--ls-card);
  --dash-border: var(--ls-border);
  --dash-text: var(--ls-text);
  --dash-muted: var(--ls-muted);
  --dash-blue: var(--ls-accent);
  --dash-blue-soft: var(--ls-accent-soft);

  --ed-blue: var(--ls-accent);
  --ed-ink: var(--ls-text);
  --ed-muted: var(--ls-muted);
  --ed-line: var(--ls-border);

  background: var(--ls-canvas) !important;
  color: var(--ls-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Reserve scrollbar space so content width does not jump page-to-page.
   Only needed when the document itself scrolls. All app-shell pages
   (including POS) scroll inside #scrollable-container instead, so on those
   reserving a document gutter just trims the right edge and shows a blank
   strip of the page background there. */
html:not(:has(#scrollable-container)) {
  scrollbar-gutter: stable;
}

body.zoho-theme:not(.pos-sale-theme) {
  overflow: hidden;
}

body.zoho-theme.japs-dashboard-premium,
body.zoho-theme.japs-dashboard-home,
body.zoho-theme.japs-home-ops {
  --prem-bg: var(--ls-canvas) !important;
  --prem-blue: var(--ls-accent) !important;
  --prem-radius: 8px !important;
  --prem-shadow: none !important;
  --dash-bg: var(--ls-canvas) !important;
  --dash-blue: var(--ls-accent) !important;
}

/* —— Full height layout —— */
body.zoho-theme:not(.pos-sale-theme) .zoho-app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-main-column {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

body.zoho-theme:not(.pos-sale-theme) #scrollable-container {
  flex: 1;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* —— Canvas everywhere —— */
body.zoho-theme:not(.pos-sale-theme) .wrapper,
body.zoho-theme:not(.pos-sale-theme) .content-wrapper,
body.zoho-theme:not(.pos-sale-theme) .content,
body.zoho-theme:not(.pos-sale-theme) .zoho-app-body,
body.zoho-theme:not(.pos-sale-theme) .zoho-main-column,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container,
body.japs-dashboard-premium .wrapper,
body.japs-dashboard-premium .content-wrapper,
body.japs-dashboard-premium .content,
body.japs-dashboard-premium .zoho-app-body,
body.japs-dashboard-premium #scrollable-container,
body.japs-dashboard-home .wrapper,
body.japs-dashboard-home .content-wrapper,
body.japs-dashboard-home .content,
body.japs-dashboard-home .zoho-app-body,
body.japs-home-ops .content-wrapper,
body.japs-home-ops .content {
  background: var(--ls-canvas) !important;
}

/* —— Gap under navbar (beats padding:0 from home/premium) —— */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container,
body.japs-dashboard-premium #scrollable-container,
body.japs-dashboard-home #scrollable-container,
body.japs-dashboard-home.japs-dashboard-premium #scrollable-container,
body.japs-home-ops #scrollable-container {
  padding-top: 32px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 44px !important;
  box-sizing: border-box;
  /* Keep flex scroll shell — height:auto caused page-to-page jump */
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}

/* Footer copyright — beat theme overrides that hide / clip it */
body.zoho-theme:not(.pos-sale-theme) .japs-page-footer,
body.japs-dashboard-home .japs-page-footer,
body.japs-home-ops .japs-page-footer,
body.japs-dashboard-premium .japs-page-footer {
  z-index: 5 !important;
  background: var(--ls-canvas, #f3f4f6) !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
  display: block !important;
  position: relative !important;
}
body.zoho-theme:not(.pos-sale-theme) .japs-page-footer__inner,
body.japs-dashboard-home .japs-page-footer__inner,
body.japs-home-ops .japs-page-footer__inner,
body.japs-dashboard-premium .japs-page-footer__inner {
  justify-content: flex-end !important;
  display: flex !important;
}
body.zoho-theme:not(.pos-sale-theme) .japs-page-footer__copy,
body.japs-dashboard-home .japs-page-footer__copy,
body.japs-home-ops .japs-page-footer__copy,
body.japs-dashboard-premium .japs-page-footer__copy {
  color: #475569 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  text-align: right !important;
  margin-left: auto !important;
  display: block !important;
}

/* —— Page header —— */
body.zoho-theme:not(.pos-sale-theme) .content-header,
body.japs-dashboard-premium .content-header,
body.japs-dashboard-home .content-header,
body.japs-home-ops .content-header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px var(--ls-page-pad-x) 12px !important;
  max-width: var(--ls-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box;
}

body.zoho-theme:not(.pos-sale-theme) .content-header > h1,
body.zoho-theme:not(.pos-sale-theme) .content-header h1,
body.japs-dashboard-premium .content-header h1,
body.zoho-theme:not(.pos-sale-theme) .content-header .tw-text-xl,
body.zoho-theme:not(.pos-sale-theme) .content-header .tw-text-3xl {
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--ls-text) !important;
  margin: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .content-header small,
body.zoho-theme:not(.pos-sale-theme) .content-header p,
body.zoho-theme:not(.pos-sale-theme) .content-header .tw-text-gray-600,
body.zoho-theme:not(.pos-sale-theme) .content-header .tw-text-gray-700 {
  color: var(--ls-muted) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* —— Content body: centered on EVERY page —— */
body.zoho-theme:not(.pos-sale-theme) section.content,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .content,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > section.content,
body.japs-dashboard-premium .content,
body.japs-dashboard-home .content,
body.japs-home-ops .content {
  padding: 4px var(--ls-page-pad-x) 16px !important;
  max-width: var(--ls-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  float: none !important;
  flex: 0 0 auto !important;
}

/* Home + any direct page root inside scroll area */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .japs-ops,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .ls-retail-home,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .japs-dashboard-page,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .zoho-dashboard,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .row,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .container-fluid {
  max-width: var(--ls-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: var(--ls-page-pad-x) !important;
  padding-right: var(--ls-page-pad-x) !important;
  flex: 0 0 auto !important;
}

/* Tables / cards fill the centered wide page */
body.zoho-theme:not(.pos-sale-theme) section.content .box,
body.zoho-theme:not(.pos-sale-theme) section.content .ls-card,
body.zoho-theme:not(.pos-sale-theme) section.content .nav-tabs-custom,
body.zoho-theme:not(.pos-sale-theme) section.content .table-responsive,
body.zoho-theme:not(.pos-sale-theme) section.content .dataTables_wrapper,
body.zoho-theme:not(.pos-sale-theme) section.content > .row,
body.zoho-theme:not(.pos-sale-theme) section.content > .row > [class*='col-'] {
  width: 100% !important;
  max-width: 100% !important;
}

body.zoho-theme:not(.pos-sale-theme) section.content .table,
body.zoho-theme:not(.pos-sale-theme) section.content table.dataTable {
  width: 100% !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-retail-home .ls-rh-hero,
body.zoho-theme:not(.pos-sale-theme) .ls-retail-home .ls-rh-columns,
body.zoho-theme:not(.pos-sale-theme) .ls-retail-home .ls-rh-reports {
  width: 100%;
  max-width: 100%;
}

/* Footer also centered under content */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > .main-footer,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container > footer,
body.zoho-theme:not(.pos-sale-theme) .main-footer {
  max-width: var(--ls-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box;
  padding-left: var(--ls-page-pad-x) !important;
  padding-right: var(--ls-page-pad-x) !important;
  text-align: center;
}

/* Beat premium/home “full bleed” width rules */
body.zoho-theme:not(.pos-sale-theme) .content-wrapper > .content,
body.zoho-theme:not(.pos-sale-theme) .zoho-app-body > .content,
body.japs-dashboard-premium .content:not(.ecom-dash):not(.inv-dash):not(.crm-dash),
body.japs-dashboard-home .japs-dashboard-page,
body.japs-dashboard-home .zoho-dashboard__layout {
  max-width: var(--ls-page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* —— Cards / boxes —— */
body.zoho-theme:not(.pos-sale-theme) .box,
body.zoho-theme:not(.pos-sale-theme) .box.box-solid,
body.zoho-theme:not(.pos-sale-theme) .box.box-primary,
body.zoho-theme:not(.pos-sale-theme) .box.box-info,
body.zoho-theme:not(.pos-sale-theme) .box.box-success,
body.zoho-theme:not(.pos-sale-theme) .box.box-warning,
body.zoho-theme:not(.pos-sale-theme) .box.box-danger,
body.zoho-theme:not(.pos-sale-theme) .panel,
body.zoho-theme:not(.pos-sale-theme) .card,
body.zoho-theme:not(.pos-sale-theme) .tw-bg-white.tw-rounded-xl,
body.zoho-theme:not(.pos-sale-theme) .tw-bg-white.tw-shadow-sm.tw-rounded-xl,
body.zoho-theme:not(.pos-sale-theme) .tw-bg-white.tw-rounded-xl.tw-ring-1 {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  border-radius: var(--ls-radius) !important;
  box-shadow: none !important;
  --tw-ring-color: transparent !important;
  --tw-ring-shadow: 0 0 #0000 !important;
}

body.zoho-theme:not(.pos-sale-theme) .box-header {
  background: #fff !important;
  border-bottom: 1px solid #eef0f3 !important;
  padding: 14px 16px !important;
  border-radius: var(--ls-radius) var(--ls-radius) 0 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .box-title,
body.zoho-theme:not(.pos-sale-theme) .box-header .box-title {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: var(--ls-text) !important;
  letter-spacing: -0.01em;
}

body.zoho-theme:not(.pos-sale-theme) .box-body {
  background: #fff !important;
  padding: 12px 16px 16px !important;
}

body.zoho-theme:not(.pos-sale-theme) .box-footer {
  background: #fff !important;
  border-top: 1px solid #eef0f3 !important;
}

/* —— Primary actions —— */
body.zoho-theme:not(.pos-sale-theme) .btn-primary,
body.zoho-theme:not(.pos-sale-theme) .btn.btn-primary,
body.zoho-theme:not(.pos-sale-theme) a.btn-primary,
body.zoho-theme:not(.pos-sale-theme) .tw-dw-btn-primary,
body.zoho-theme:not(.pos-sale-theme) .btn-info,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__btn--primary {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .btn-primary:hover,
body.zoho-theme:not(.pos-sale-theme) .btn-primary:focus,
body.zoho-theme:not(.pos-sale-theme) .btn-info:hover,
body.zoho-theme:not(.pos-sale-theme) .tw-dw-btn-primary:hover,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__btn--primary:hover {
  background: var(--ls-accent-hover) !important;
  border-color: var(--ls-accent-hover) !important;
  color: #fff !important;
}

body.zoho-theme:not(.pos-sale-theme) .btn-default,
body.zoho-theme:not(.pos-sale-theme) .btn-secondary,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__btn--secondary {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  color: var(--ls-text) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* —— Tables —— */
body.zoho-theme:not(.pos-sale-theme) table.dataTable thead th,
body.zoho-theme:not(.pos-sale-theme) .table > thead > tr > th,
body.zoho-theme:not(.pos-sale-theme) .table thead th {
  background: #f7f8fa !important;
  border-bottom: 1px solid var(--ls-border) !important;
  color: #4b5563 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 12px 14px !important;
}

body.zoho-theme:not(.pos-sale-theme) table.dataTable tbody td,
body.zoho-theme:not(.pos-sale-theme) .table > tbody > tr > td {
  padding: 13px 14px !important;
  border-top: 1px solid #eef0f3 !important;
  font-size: 13.5px !important;
  color: var(--ls-text) !important;
  vertical-align: middle !important;
}

body.zoho-theme:not(.pos-sale-theme) .table > tbody > tr:hover,
body.zoho-theme:not(.pos-sale-theme) table.dataTable tbody tr:hover {
  background: #fafafa !important;
}

body.zoho-theme:not(.pos-sale-theme) table.dataTable a:not(.btn),
body.zoho-theme:not(.pos-sale-theme) .table a:not(.btn) {
  color: var(--ls-accent) !important;
  font-weight: 500;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
  color: #fff !important;
  border-radius: 6px !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_filter input,
body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_length select {
  border-radius: 6px !important;
  border: 1px solid #d7dbe3 !important;
  min-height: 34px;
}

/* —— Forms —— */
body.zoho-theme:not(.pos-sale-theme) .form-control,
body.zoho-theme:not(.pos-sale-theme) select.form-control,
body.zoho-theme:not(.pos-sale-theme) input.form-control,
body.zoho-theme:not(.pos-sale-theme) textarea.form-control {
  border-radius: 6px !important;
  border-color: #d7dbe3 !important;
  min-height: 36px;
  color: var(--ls-text);
  background: #fff;
}

body.zoho-theme:not(.pos-sale-theme) .form-control:focus {
  border-color: var(--ls-accent) !important;
  box-shadow: 0 0 0 3px var(--ls-accent-soft) !important;
}

body.zoho-theme:not(.pos-sale-theme) .select2-container--default .select2-selection--single,
body.zoho-theme:not(.pos-sale-theme) .select2-container--default .select2-selection--multiple {
  border-color: #d7dbe3 !important;
  border-radius: 6px !important;
  min-height: 36px;
}

body.zoho-theme:not(.pos-sale-theme) .select2-container--default.select2-container--focus .select2-selection--single,
body.zoho-theme:not(.pos-sale-theme) .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--ls-accent) !important;
}

body.zoho-theme:not(.pos-sale-theme) .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--ls-accent) !important;
}

/* —— Filters strip —— */
body.zoho-theme:not(.pos-sale-theme) .row.filter-form,
body.zoho-theme:not(.pos-sale-theme) .filters-row,
body.zoho-theme:not(.pos-sale-theme) .pos-form-filters,
body.zoho-theme:not(.pos-sale-theme) .pf-open {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  border-radius: var(--ls-radius) !important;
  box-shadow: none !important;
}

/* —— Tabs —— */
body.zoho-theme:not(.pos-sale-theme) .nav-tabs {
  border-bottom-color: var(--ls-border) !important;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs > li > a {
  color: var(--ls-muted) !important;
  border-radius: 6px 6px 0 0;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs > li.active > a,
body.zoho-theme:not(.pos-sale-theme) .nav-tabs > li.active > a:hover,
body.zoho-theme:not(.pos-sale-theme) .nav-tabs > li.active > a:focus {
  color: var(--ls-accent) !important;
  border-color: var(--ls-border) var(--ls-border) #fff !important;
  font-weight: 600;
  background: #fff !important;
}

/* —— Breadcrumb / misc links —— */
body.zoho-theme:not(.pos-sale-theme) .breadcrumb {
  background: transparent !important;
  padding-left: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .breadcrumb > li > a {
  color: var(--ls-accent) !important;
}

body.zoho-theme:not(.pos-sale-theme) .label-primary,
body.zoho-theme:not(.pos-sale-theme) .badge-primary,
body.zoho-theme:not(.pos-sale-theme) .bg-primary,
body.zoho-theme:not(.pos-sale-theme) .pagination > .active > a,
body.zoho-theme:not(.pos-sale-theme) .pagination > .active > span {
  background-color: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
}

/* —— Modals —— */
body.zoho-theme:not(.pos-sale-theme) .modal-content {
  border: 1px solid var(--ls-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}

body.zoho-theme:not(.pos-sale-theme) .modal-header {
  border-bottom: 1px solid #eef0f3 !important;
}

body.zoho-theme:not(.pos-sale-theme) .modal-footer {
  border-top: 1px solid #eef0f3 !important;
  background: #fafafa;
}

/* —— Small boxes / info tiles —— */
body.zoho-theme:not(.pos-sale-theme) .small-box {
  border-radius: var(--ls-radius) !important;
  box-shadow: none !important;
  border: 1px solid var(--ls-border);
}

body.zoho-theme:not(.pos-sale-theme) .small-box .icon {
  color: var(--ls-accent);
}

/* —— Text accents that were blue —— */
body.zoho-theme:not(.pos-sale-theme) a.text-primary,
body.zoho-theme:not(.pos-sale-theme) .text-primary {
  color: var(--ls-accent) !important;
}

body.zoho-theme:not(.pos-sale-theme) .bg-aqua,
body.zoho-theme:not(.pos-sale-theme) .bg-light-blue,
body.zoho-theme:not(.pos-sale-theme) .bg-blue {
  background-color: var(--ls-accent) !important;
}

/* —— Shared Lightspeed card (widget component) —— */
body.zoho-theme:not(.pos-sale-theme) .ls-card {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__inner {
  padding: 0;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid #eef0f3 !important;
  background: #fff !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  color: var(--ls-text) !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__help {
  display: block;
  margin-top: 2px;
  color: var(--ls-muted);
  font-size: 12px;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  float: none !important;
  position: static !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card__body {
  padding: 12px 16px 16px;
}

/* —— Kill Salezy indigo / blue pill CTAs on every page —— */
body.zoho-theme:not(.pos-sale-theme) a.tw-dw-btn[class*="tw-from-indigo"],
body.zoho-theme:not(.pos-sale-theme) button.tw-dw-btn[class*="tw-from-indigo"],
body.zoho-theme:not(.pos-sale-theme) a.tw-dw-btn[class*="tw-from-blue"],
body.zoho-theme:not(.pos-sale-theme) .tw-dw-btn.tw-rounded-full,
body.zoho-theme:not(.pos-sale-theme) a.tw-rounded-full.tw-dw-btn,
body.zoho-theme:not(.pos-sale-theme) .box-tools .tw-dw-btn,
body.zoho-theme:not(.pos-sale-theme) .ls-card__tools .tw-dw-btn,
body.zoho-theme:not(.pos-sale-theme) .box-tools a.btn,
body.zoho-theme:not(.pos-sale-theme) .box-tools .btn-primary {
  background: var(--ls-accent) !important;
  background-image: none !important;
  border: 1px solid var(--ls-accent) !important;
  border-radius: 6px !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  min-height: 36px;
}

body.zoho-theme:not(.pos-sale-theme) a.tw-dw-btn[class*="tw-from-indigo"]:hover,
body.zoho-theme:not(.pos-sale-theme) .tw-dw-btn.tw-rounded-full:hover,
body.zoho-theme:not(.pos-sale-theme) .box-tools .tw-dw-btn:hover {
  background: var(--ls-accent-hover) !important;
  border-color: var(--ls-accent-hover) !important;
  color: #fff !important;
}

/* —— AdminLTE accordion report filters —— */
body.zoho-theme:not(.pos-sale-theme) .ls-report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-report-filters > [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: 280px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-report-filters .form-group {
  margin-bottom: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-report-filters .input-group {
  width: 240px;
  max-width: 100%;
}

body.zoho-theme:not(.pos-sale-theme) .ls-report-filters #purchase_sell_date_filter {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Purchase & Sale — small location select on header right */
body.zoho-theme:not(.pos-sale-theme) .ls-ps-location-wrap {
  flex: 0 0 auto;
  margin-left: auto;
}

body.zoho-theme:not(.pos-sale-theme) .ls-ps-location {
  width: 220px;
  max-width: 42vw;
  display: flex !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-ps-location .input-group-addon {
  background: #fff !important;
  border: 1px solid #d7dbe3 !important;
  border-right: 0 !important;
  color: var(--ls-accent) !important;
  padding: 6px 10px;
}

body.zoho-theme:not(.pos-sale-theme) .ls-ps-location .form-control,
body.zoho-theme:not(.pos-sale-theme) .ls-ps-location .select2-container {
  width: 100% !important;
  min-width: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-ps-location .select2-container .select2-selection--single {
  height: 34px !important;
  border-radius: 0 6px 6px 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .box.box-primary,
body.zoho-theme:not(.pos-sale-theme) .box.box-solid.box-primary {
  border-top: 0 !important;
  border: 1px solid var(--ls-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .box.box-primary > .box-header,
body.zoho-theme:not(.pos-sale-theme) #accordion .box-header {
  background: #fff !important;
  color: var(--ls-text) !important;
}

body.zoho-theme:not(.pos-sale-theme) .box.box-primary > .box-header .box-title,
body.zoho-theme:not(.pos-sale-theme) #accordion .box-title a {
  color: var(--ls-text) !important;
  font-weight: 600 !important;
}

/* —— Tables: remove heavy AdminLTE borders/stripes look —— */
body.zoho-theme:not(.pos-sale-theme) .table-bordered,
body.zoho-theme:not(.pos-sale-theme) .table-bordered > thead > tr > th,
body.zoho-theme:not(.pos-sale-theme) .table-bordered > tbody > tr > td {
  border-color: #eef0f3 !important;
}

body.zoho-theme:not(.pos-sale-theme) .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fff !important;
}

body.zoho-theme:not(.pos-sale-theme) .table-striped > tbody > tr:hover {
  background-color: #fafafa !important;
}

/* —— nav-tabs-custom (products etc.) —— */
body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom > .nav-tabs {
  background: #fff !important;
  border-bottom: 1px solid var(--ls-border) !important;
  margin: 0;
  border-top: 0 !important;
  border-radius: 8px 8px 0 0;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom > .nav-tabs > li > a {
  color: var(--ls-muted) !important;
  border: 0 !important;
  margin: 0;
  padding: 12px 16px;
  font-weight: 500;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom > .nav-tabs > li.active > a,
body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom > .nav-tabs > li.active > a:hover {
  color: var(--ls-accent) !important;
  border-bottom: 2px solid var(--ls-accent) !important;
  background: transparent !important;
  font-weight: 600;
}

body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom > .tab-content {
  background: #fff !important;
  padding: 14px 16px;
  border-radius: 0 0 8px 8px;
}

/* —— Page header: title LEFT, actions/Add RIGHT (all pages) —— */
body.zoho-theme:not(.pos-sale-theme) .content-header,
body.zoho-theme:not(.pos-sale-theme) .ls-page-header,
body.zoho-theme:not(.pos-sale-theme) .product-list-header {
  display: block !important;
}

body.zoho-theme:not(.pos-sale-theme) .content-header > h1,
body.zoho-theme:not(.pos-sale-theme) .ls-page-header__title,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__title {
  text-align: left !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-page-header__row,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px 16px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-page-header__titles,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
  margin: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-page-header__actions,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-left: auto !important;
}

body.zoho-theme:not(.pos-sale-theme) .ls-page-header__actions .product-list-header__btn--primary,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__actions .product-list-header__btn--primary,
body.zoho-theme:not(.pos-sale-theme) .ls-page-header__actions .ls-page-header__btn,
body.zoho-theme:not(.pos-sale-theme) .product-list-header__btn--primary {
  background: var(--ls-accent) !important;
  border: 1px solid var(--ls-accent) !important;
  color: #fff !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background-image: none !important;
  min-height: 36px;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .product-list-header__btn--secondary {
  background: #fff !important;
  border: 1px solid var(--ls-border) !important;
  color: var(--ls-text) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background-image: none !important;
  min-height: 36px;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

/* Hide secondary “All your …” card titles (title-only headers) */
body.zoho-theme:not(.pos-sale-theme) .ls-card__header:not(:has(.ls-card__tools)):not(:has(.box-tools)),
body.zoho-theme:not(.pos-sale-theme) .box-header:not(:has(.box-tools)):not(:has(.ls-card__tools)):not(:has(.btn)):not(:has(a)):not(:has(button)) {
  display: none !important;
}

/* No business-location filter / selection on list pages */
body.zoho-theme:not(.pos-sale-theme) #location_filter,
body.zoho-theme:not(.pos-sale-theme) .location_filter,
body.zoho-theme:not(.pos-sale-theme) #product_list_filter_location_id,
body.zoho-theme:not(.pos-sale-theme) button.update_product_location,
body.zoho-theme:not(.pos-sale-theme) .update_product_location {
  display: none !important;
}

/* —— Tailwind blue / indigo text utilities used as accents —— */
body.zoho-theme:not(.pos-sale-theme) .tw-text-indigo-600,
body.zoho-theme:not(.pos-sale-theme) .tw-text-blue-600,
body.zoho-theme:not(.pos-sale-theme) .tw-text-blue-500 {
  color: var(--ls-accent) !important;
}

body.zoho-theme:not(.pos-sale-theme) .tw-bg-indigo-50,
body.zoho-theme:not(.pos-sale-theme) .tw-bg-blue-50 {
  background-color: var(--ls-accent-soft) !important;
}

/* —— Lightspeed list pages: strip Salezy chrome —— */
body.zoho-theme:not(.pos-sale-theme) .product-list-dash,
body.ls-theme .product-list-dash {
  display: none !important;
}

/* Quiet DataTables toolbar (Lightspeed is minimal) */
body.zoho-theme:not(.pos-sale-theme) div.dt-buttons,
body.zoho-theme:not(.pos-sale-theme) .dt-buttons {
  display: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_length {
  display: none !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_filter {
  float: right;
  margin: 0 0 12px;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_filter label {
  font-size: 0;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_filter input {
  border-radius: 6px !important;
  border: 1px solid #d7dbe3 !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  min-width: 240px;
  font-size: 13px !important;
}

/* Page title + actions row like Lightspeed */
body.zoho-theme:not(.pos-sale-theme) .content-header.product-list-header h1,
body.zoho-theme:not(.pos-sale-theme) .content-header h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--ls-text) !important;
}

body.zoho-theme:not(.pos-sale-theme) .content-header h1 small {
  display: block;
  margin-top: 4px;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ls-muted) !important;
}

/* Hide desktop hamburger (Lightspeed uses icon rail only) */
@media (min-width: 1024px) {
  body.zoho-theme:not(.pos-sale-theme) .ls-topbar .side-bar-collapse {
    display: none !important;
  }
}

/* Hamburger must not dim the whole page */
body.zoho-theme:not(.pos-sale-theme) > .overlay,
body.zoho-theme:not(.pos-sale-theme) .overlay.tw-hidden {
  display: none !important;
  background: transparent !important;
}

/* Stronger gap under navbar for all pages */
body.zoho-theme:not(.pos-sale-theme) .zoho-app-body {
  border-top: 0;
}

body.zoho-theme:not(.pos-sale-theme) #scrollable-container,
body.japs-dashboard-premium #scrollable-container,
body.japs-dashboard-home #scrollable-container,
body.japs-home-ops #scrollable-container {
  padding-top: 32px !important;
  padding-bottom: 44px !important;
}

/* Main table panel as single Lightspeed card */
body.zoho-theme:not(.pos-sale-theme) .nav-tabs-custom,
body.zoho-theme:not(.pos-sale-theme) section.content > .row > [class*='col-'] > .box,
body.zoho-theme:not(.pos-sale-theme) section.content > .box {
  border: 1px solid var(--ls-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* Actions dropdown button */
body.zoho-theme:not(.pos-sale-theme) .btn-group > .btn,
body.zoho-theme:not(.pos-sale-theme) table .btn {
  border-radius: 6px !important;
}

body.zoho-theme:not(.pos-sale-theme) table .btn-primary,
body.zoho-theme:not(.pos-sale-theme) table .dropdown-toggle.btn-primary {
  background: var(--ls-accent) !important;
  border-color: var(--ls-accent) !important;
}

@media (max-width: 1023px) {
  body.zoho-theme:not(.pos-sale-theme) #scrollable-container,
  body.japs-dashboard-premium #scrollable-container,
  body.japs-dashboard-home #scrollable-container,
  body.japs-home-ops #scrollable-container {
    padding-top: 24px !important;
  }
}

/* —— List / table scrolling ——
   Over the list: list scrolls (DataTables scrollY body).
   Outside the list: page (#scrollable-container) scrolls. */
body.zoho-theme:not(.pos-sale-theme) .table-responsive,
body.zoho-theme:not(.pos-sale-theme) .ls-list-scroll {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

/* DataTables fixed-height body — THIS is the item list scroller */
body.zoho-theme:not(.pos-sale-theme) .dataTables_scrollBody,
body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper .dataTables_scrollBody {
  max-height: 75vh !important;
  overflow-x: auto !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}

/* Outer scroll wrapper — do not kill vertical list scroll */
body.zoho-theme:not(.pos-sale-theme) .dataTables_scroll {
  overflow: hidden !important;
}

/* Sidebar panel scroll — vertical only */
body.zoho-theme:not(.pos-sale-theme) .ls-panel-scroll,
body.zoho-theme:not(.pos-sale-theme) .ls-card__body {
  overflow-x: visible !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
}

body.zoho-theme:not(.pos-sale-theme) .ls-card {
  overflow: visible;
}

body.zoho-theme:not(.pos-sale-theme) .table-responsive,
body.zoho-theme:not(.pos-sale-theme) .dataTables_scrollBody {
  max-width: 100%;
  cursor: grab;
}

body.zoho-theme:not(.pos-sale-theme) .table-responsive.is-dragging,
body.zoho-theme:not(.pos-sale-theme) .dataTables_scrollBody.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* Keep wide tables scrollable on touch screens */
body.zoho-theme:not(.pos-sale-theme) table.dataTable,
body.zoho-theme:not(.pos-sale-theme) .table-responsive > .table {
  min-width: 100%;
}

/* Main page scroll also smooth on touch */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container {
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

/* Secondary sidebar list scroll */
body.zoho-theme:not(.pos-sale-theme) .ls-panel-scroll,
body.zoho-theme:not(.pos-sale-theme) .ls-secondary {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Business Settings left tabs — readable dark text, white on active */
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group-item {
  color: #1f2430 !important;
  background: #fff !important;
  border-color: #e5e7eb !important;
}

body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a:hover,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group-item:hover {
  color: #1f2430 !important;
  background: #f7f8fa !important;
}

body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a.active,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a.active:hover,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group-item.active,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group-item.active:hover {
  color: #fff !important;
  background: #5844ed !important;
  border-color: #5844ed !important;
}

body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a.active .fa,
body.zoho-theme:not(.pos-sale-theme) .business-settings-page .pos-tab-menu .list-group > a.active .glyphicon {
  color: #fff !important;
}

/* —— Navigation layout stability (no visual redesign) —— */
body.zoho-theme:not(.pos-sale-theme) {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
}

body.zoho-theme:not(.pos-sale-theme) .thetop {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-app-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.zoho-theme:not(.pos-sale-theme) .zoho-main-column {
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Always reserve vertical scrollbar track — prevents width jump page-to-page */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container,
body.japs-dashboard-premium #scrollable-container,
body.japs-dashboard-home #scrollable-container,
body.japs-home-ops #scrollable-container {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  scrollbar-gutter: stable;
  padding-top: 32px !important;
  padding-bottom: 44px !important;
}

/* Keep icon rail width reserved from first paint */
@media (min-width: 1024px) {
  body.zoho-theme:not(.pos-sale-theme) aside.side-bar.ls-sidebar {
    display: flex !important;
    flex: 0 0 var(--ls-rail-width, 72px) !important;
    width: var(--ls-rail-width, 72px) !important;
    min-width: var(--ls-rail-width, 72px) !important;
    max-width: var(--ls-rail-width, 72px) !important;
  }
}

/* Page headers: stable flex row so late JS class tweaks do not reflow */
body.zoho-theme:not(.pos-sale-theme) .content-header.product-list-header,
body.zoho-theme:not(.pos-sale-theme) .content-header.ls-page-header {
  min-height: 52px;
}

body.zoho-theme:not(.pos-sale-theme) .product-list-header__row,
body.zoho-theme:not(.pos-sale-theme) .ls-page-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* —— Single-list pages fit the screen: page does not scroll, only the list does ——
   body.ls-fit-list is set by lightspeed-touch-scroll.js, which also sizes the list body */
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container {
  overflow-y: auto !important;
  scrollbar-gutter: auto;
  padding-top: 8px !important;
  padding-bottom: 0 !important;
}

/* Tighter vertical gaps above the list (same design, smaller spacing) */
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container > .content-header {
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container > .content-header h1 small {
  margin-top: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container > .content {
  padding-top: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-filter {
  margin-bottom: 8px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-filter > .pf-btn {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .nav-tabs-custom:has(.ls-fit-body) > .tab-content,
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .box:has(.ls-fit-body) > .box-body {
  padding-top: 10px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper:has(.ls-fit-body) {
  margin-top: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper .dt-toolbar .dataTables_length,
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper .dt-toolbar .dataTables_filter {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper .dt-toolbar,
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper .row.margin-bottom-20 {
  margin-bottom: 8px !important;
}

/* "Showing x of y" left + page buttons right on one line */
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper > .dataTables_info {
  float: left !important;
  padding: 8px 4px 0 !important;
  margin: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper > .dataTables_paginate {
  float: right !important;
  padding: 4px 4px 0 !important;
  margin: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper > .dataTables_paginate .pagination {
  margin: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .dataTables_wrapper::after {
  content: '';
  display: table;
  clear: both;
}

/* DataTables' hidden sizing header inside the list body must stay 0px tall (theme th padding opened a blank band) */
body.zoho-theme:not(.pos-sale-theme) #scrollable-container .dataTables_scrollBody > table:not(#pos_table):not(#purchase_entry_table) > thead > tr > th,
body.zoho-theme:not(.pos-sale-theme) #scrollable-container .dataTables_scrollBody > table:not(#pos_table):not(#purchase_entry_table) > thead > tr > td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  line-height: 0 !important;
  height: 0 !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_scrollBody > table > thead > tr > th::before,
body.zoho-theme:not(.pos-sale-theme) .dataTables_scrollBody > table > thead > tr > th::after {
  display: none !important;
}

/* Bulk-action buttons moved from <tfoot> onto the "Showing x of y" line (lightspeed-touch-scroll.js) */
body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper > .ls-dt-footer-actions {
  float: left;
  display: flex;
  align-items: center;
  padding: 6px 16px 0 4px;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper > .ls-dt-footer-actions > div {
  width: auto !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper > .ls-dt-footer-actions form {
  margin: 0;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper:has(> .ls-dt-footer-actions) > .dataTables_info {
  float: left !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper:has(> .ls-dt-footer-actions) > .dataTables_paginate {
  float: right !important;
}

body.zoho-theme:not(.pos-sale-theme) .dataTables_wrapper:has(> .ls-dt-footer-actions)::after {
  content: '';
  display: table;
  clear: both;
}

/* Product name column: widths are measured while the server-side table is still empty */
body.zoho-theme:not(.pos-sale-theme) #product_table tbody td:nth-child(4) {
  min-width: 260px;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .japs-page-footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .japs-page-footer > * {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  min-height: 0 !important;
}

/* Trim the space under the list card so the list can use it */
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container > .content {
  padding-bottom: 6px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .nav-tabs-custom:has(.ls-fit-body),
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .box:has(.ls-fit-body),
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-card:has(.ls-fit-body) {
  margin-bottom: 0 !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .nav-tabs-custom:has(.ls-fit-body) > .tab-content,
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .box:has(.ls-fit-body) > .box-body,
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-card:has(.ls-fit-body) > .ls-card__inner > .ls-card__body {
  padding-bottom: 8px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-card:has(.ls-fit-body) > .ls-card__inner > .ls-card__body {
  padding-top: 10px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .customers-page .cust-toolbar {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* Print-only receipt/heading blocks; the theme's "#scrollable-container > section" display rule was showing them as empty space */
@media screen {
  body.zoho-theme:not(.pos-sale-theme) #scrollable-container .print_section {
    display: none !important;
  }
}

/* Users page: its full-screen min-heights would push the page into scrolling */
body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-users-page {
  min-height: 0 !important;
  padding-bottom: 6px !important;
}

body.zoho-theme.ls-fit-list:not(.pos-sale-theme) #scrollable-container .ls-users-page .ls-users-card {
  min-height: 0 !important;
}
