/* Optional retail-inspired appearance. It changes presentation only, not print documents. */
@media (min-width: 1100px) {
  html[data-v19-preset="retail-teal"] { --v19-sidebar-width: 276px; }
}
html[data-v19-preset="retail-teal"] body.ui-v19 {
  --v19-radius: 7px;
  --r-sm: 5px;
  --r-lg: 8px;
  --app-control-radius: 5px;
  --v19-shadow-surface: 0 1px 2px #0d22220d;
  --v19-shadow-control: none;
  --v19-shadow-field: none;
  --v19-shadow-hover: 0 2px 5px #0d222214;
  --v19-shadow-focus: 0 0 0 3px #00807d30;
  line-height: 1.5;
  background: #f6f8fa !important;
  color: #212529 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 .page-head h1 {
  font-size: calc(24 / 16 * var(--app-font-size)) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar {
  background: #0d2222 !important;
  border-color: #164445 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .sidebar-head {
  min-height: 60px;
  padding: 10px 18px !important;
  border-bottom: 1px solid #164445 !important;
  background: #0d2222 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .sidebar-head :where(.company,.company-en) {
  color: #e8f4f3 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu {
  padding: 10px 12px !important;
  gap: 0 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label {
  background: transparent !important;
  border-color: transparent !important;
  color: #e8f4f3 !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: calc(14 / 16 * var(--app-font-size)) !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label :where(span,i,strong) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label .glabel-icon {
  filter: grayscale(1) brightness(1.8);
  opacity: .85;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .nav-item.active {
  background: #164445 !important;
  border: 0 !important;
  border-inline-start: 4px solid #00b6b4 !important;
  color: #00b6b4 !important;
  -webkit-text-fill-color: #00b6b4 !important;
  font-weight: 700 !important;
  font-size: calc(14 / 16 * var(--app-font-size)) !important;
  line-height: 1.5 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .nav-item {
  height: 48px !important;
  min-height: 44px;
  max-height: none;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: #d3dddd !important;
  font-size: calc(14 / 16 * var(--app-font-size)) !important;
  font-weight: 400 !important;
  transition: background-color .14s ease, color .14s ease !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .nav-item:hover {
  background: #164445 !important;
  color: #fff !important;
  transform: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .nav-item.nav-hidden-collapsed {
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar .nav-item.active :where(span,strong,i,.nav-label,.nav-icon,.v194-svg-icon) {
  color: #00b6b4 !important;
  -webkit-text-fill-color: #00b6b4 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .main,
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .page {
  background-color: #f6f8fa !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen > .main {
  padding: 28px 32px !important;
}
/* A single page title remains visible while moving between the module screens. */
#retailShellHeader { display: none; }
html[data-v19-preset="retail-teal"] body.ui-v19:not(.top-nav-mode) #appScreen #retailShellHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  margin: -28px -32px 24px;
  padding: 8px 32px;
  background: #fff !important;
  border-bottom: 1px solid #e3e8e8;
  color: #212529;
  box-shadow: none;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellTitle {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #212529;
  font-size: calc(24 / 16 * var(--app-font-size, 16px)) !important;
  font-weight: 600;
  line-height: 1.4;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-shell-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 7px;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #526264 !important;
  box-shadow: none !important;
  cursor: pointer;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader button:hover {
  background: #eff7f7 !important;
  color: #00807d !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader button:focus-visible {
  outline: 2px solid #00807d;
  outline-offset: 2px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader button[hidden] { display: none !important; }
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader .retail-shell-menu,
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mobileSidebarToggle {
  display: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19:not(.top-nav-mode) #appScreen .page-head > h1,
html[data-v19-preset="retail-teal"] body.ui-v19:not(.top-nav-mode) #appScreen #page-dashboard .dashboard-title-block {
  display: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19:not(.top-nav-mode) #appScreen .page-head:has(> h1:only-child) {
  display: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(.topbar,.page-head,.dashboard-commandbar) {
  background: #fff !important;
  color: #212529 !important;
  border-color: #e3e8e8 !important;
  box-shadow: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .page-head {
  padding: 8px 18px !important;
  margin-bottom: 16px !important;
  min-height: 60px;
  border: 1px solid #e3e8e8 !important;
  border-radius: 0 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(.page-head h1,.page-title,.dashboard-commandbar h1) {
  color: #212529 !important;
  font-weight: 600 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :where(.card,.settings-card,.dash-card,.kpi-card,.dashboard-widget,.table-wrap,.data-table-wrap,.modal-box) {
  background-color: #fff !important;
  border: 1px solid #e3e8e8 !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px #0d22220d !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(.kpi-card,.dash-card,.dashboard-widget) {
  border-top: 1px solid #e3e8e8 !important;
  transform: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(.kpi-card,.dash-card,.dashboard-widget):hover {
  box-shadow: 0 1px 2px #0d22220d !important;
  transform: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :is(.btn-primary,button.btn-primary),
html[data-v19-preset="retail-teal"] body.ui-v19[data-v19-style="flat"] :is(.btn-primary,button.btn-primary) {
  min-height: 42px;
  background: #00807d !important;
  color: #fff !important;
  border: 1px solid #00807d !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  font-size: var(--app-font-size) !important;
  line-height: 1.5 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :is(.btn-primary,button.btn-primary):hover,
html[data-v19-preset="retail-teal"] body.ui-v19[data-v19-style="flat"] :is(.btn-primary,button.btn-primary):hover {
  background: #006d6a !important;
  border-color: #006d6a !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 .btn-ghost {
  border-color: #00807d !important;
  color: #00807d !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(.btn-primary,.btn-ghost,.btn-danger) {
  transform: none !important;
  min-height: 42px;
  padding: 0 20px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  border-color: #dfe2e2;
  border-radius: 5px !important;
  box-shadow: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus-visible {
  border-color: #00807d !important;
  box-shadow: 0 0 0 3px #00807d25 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :where(table th,.data-table th) {
  background: #fff !important;
  color: #0d2222 !important;
  font-size: calc(12 / 16 * var(--app-font-size)) !important;
  line-height: calc(16 / 12) !important;
  font-weight: 600 !important;
  border-color: #e3e8e8 !important;
  height: 48px;
  padding: 6px 16px !important;
  vertical-align: middle !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen table th {
  color: #0d2222 !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :where(table td,.data-table td) {
  background: #fff;
  color: #212529;
  font-size: calc(14 / 16 * var(--app-font-size)) !important;
  line-height: calc(20 / 14) !important;
  border-color: #e3e8e8 !important;
  min-height: 56px;
  padding: 12px 16px !important;
  vertical-align: middle !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .page > :where(.table-wrap,.data-table-wrap) table tbody tr {
  height: 72px;
}
/* Rewaa-style navigation anatomy: compact tree rows and consistent line icons. */
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label .glabel-icon {
  filter: none;
  opacity: 1;
  width: 20px;
  min-width: 20px;
  font-size: 0 !important;
  text-align: center;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label .glabel-icon::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #d3dddd;
}
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="home"] .glabel-icon::before { content: "\f015"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="sales"] .glabel-icon::before { content: "\f54e"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="purchases"] .glabel-icon::before { content: "\f0d1"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="inventory"] .glabel-icon::before { content: "\f1b2"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="accounting"] .glabel-icon::before { content: "\f53a"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="reports"] .glabel-icon::before { content: "\f080"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="people"] .glabel-icon::before { content: "\f0c0"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="installments"] .glabel-icon::before { content: "\f09d"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="restaurants"] .glabel-icon::before { content: "\f2e7"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="real-estate"] .glabel-icon::before { content: "\f1ad"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="women-tailoring"] .glabel-icon::before { content: "\f0c4"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="men-tailoring"] .glabel-icon::before { content: "\f0c4"; }
html[data-v19-preset="retail-teal"] #navMenu [data-retail-icon="settings"] .glabel-icon::before { content: "\f013"; }
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label .chevron {
  color: #b2c7c7 !important;
  font-size: 0 !important;
  transform: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label .chevron::before {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label.open .chevron::before {
  content: "\f106";
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-group-label:focus-visible {
  outline: 2px solid #00b6b4;
  outline-offset: -2px;
}
html[data-v19-preset="retail-teal"][data-sidebar-layout="tree"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-item:not(.nav-hidden-collapsed) {
  margin-inline-start: 12px !important;
  margin-inline-end: 0 !important;
  border-inline-start: 0 !important;
  padding-inline-start: 18px !important;
}
html[data-v19-preset="retail-teal"][data-sidebar-layout="tree"] body.ui-v19 #appScreen #mainSidebar #navMenu > .nav-item.active {
  border-inline-start: 4px solid #00b6b4 !important;
}

/* The invoice, product and party lists share the reference's light toolbar/table geometry. */
.retail-list-table-wrap { display: contents; }
#page-customers > .page-head,
#page-suppliers > .page-head { flex-wrap: wrap; gap: 10px; }
.retail-party-search { flex: 1 1 260px; width: min(460px, 100%); min-width: 180px; margin: 0; }
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e3e8e8;
  border-radius: 4px;
  box-shadow: 0 1px 2px #0d22220d;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-table-wrap > table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-products,#page-purchase-invoices) .retail-list-table-wrap > table {
  min-width: 980px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-table-wrap > table tbody tr:not(.empty-row) {
  height: 72px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-table-wrap > table .empty-row td {
  height: 180px;
  text-align: center;
  color: #596568;
  background: #fff;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-purchase-invoices,#page-sales-invoices) > .list-filters-row {
  padding: 0 !important;
  margin: 0 0 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 8px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-purchase-invoices,#page-sales-invoices) > .list-filters-row :where(input,select) {
  flex: 0 1 auto;
  min-height: 34px !important;
  height: 34px !important;
  padding: 4px 10px !important;
  border: 1px solid #dfe2e2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  font-size: calc(13 / 16 * var(--app-font-size)) !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-purchase-invoices,#page-sales-invoices) > .list-filters-row > input:first-child {
  flex: 1 1 280px;
  min-width: min(280px, 100%) !important;
  max-width: 460px;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #page-products > #productListSearch {
  width: min(460px, 100%);
  min-height: 34px !important;
  height: 34px !important;
  padding: 4px 10px !important;
  margin-bottom: 14px !important;
  border: 1px solid #dfe2e2 !important;
  background: #fff;
  font-size: calc(13 / 16 * var(--app-font-size)) !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-products,#page-customers,#page-suppliers,#page-purchase-invoices,#page-sales-invoices) > .page-head {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  min-height: 42px;
  margin-bottom: 16px !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-customers,#page-suppliers) > .page-head {
  justify-content: space-between;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-customers,#page-suppliers) > .page-head > .retail-party-search {
  flex: 1 1 320px;
  width: min(470px, 100%);
  max-width: 470px;
  min-width: 180px;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 auto 0 0 !important;
  padding: 7px 12px !important;
  border: 1px solid #dfe2e2 !important;
  border-radius: 4px !important;
  background: #fff !important;
}
.retail-list-pagination[hidden] { display: none !important; }
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #e3e8e8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  color: #596568;
  font-size: calc(12 / 16 * var(--app-font-size));
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-pagination > span { margin-inline-end: auto; }
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-pagination > button {
  min-height: 32px !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #page-products > .page-head > div {
  max-width: 100%;
  gap: 6px !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #page-products > .page-head > div > :where(button,.btn-primary,.btn-ghost) {
  min-height: 34px !important;
  padding: 0 10px !important;
  font-size: calc(12 / 16 * var(--app-font-size)) !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen input[type="search"] {
  min-height: 32px !important;
  height: 32px !important;
  padding: 6px 12px !important;
}
html[data-v19-preset="retail-teal"] body.ui-v19 :where(table tr:hover td,.data-table tr:hover td) {
  background: #f2f9f9 !important;
}
@media (max-width: 900px) {
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen > .main {
    padding: 14px !important;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19:not(.top-nav-mode) #appScreen #retailShellHeader {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 56px;
    margin: -14px -14px 14px;
    padding: 7px 14px;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader .retail-shell-menu {
    display: inline-flex !important;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellHeader .retail-shell-help span {
    display: none;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen #retailShellTitle {
    font-size: calc(18 / 16 * var(--app-font-size, 16px)) !important;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .page-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen :is(#page-customers,#page-suppliers) > .page-head > .retail-party-search {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    order: -1;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .page > :where(.table-wrap,.data-table-wrap) table tbody tr {
    height: auto;
  }
  html[data-v19-preset="retail-teal"] body.ui-v19 #appScreen .retail-list-table-wrap > table tbody tr:not(.empty-row) {
    height: auto;
  }
}
@media print {
  html[data-v19-preset="retail-teal"] body.ui-v19 :where(table th,table td) {
    font-size: inherit !important;
    padding: inherit !important;
  }
}
