/* BOS — small overlays on DreamsPOS CSS. Do not copy demo branding. */

.header .header-left .logo-bos,
.header .header-left a.logo-bos {
  line-height: 1;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #fe9f43;
  display: inline-flex;
  align-items: center;
  height: 65px;
}
.header .header-left .logo-bos.has-img,
.sidebar .sidebar-logo .logo-bos.has-img {
  font-size: 0;
  letter-spacing: 0;
}
.header .header-left .logo-bos img,
.sidebar .sidebar-logo .logo-bos img {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.account-page .login-logo .logo-bos.has-img {
  display: block;
  max-height: 96px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.header .header-left .logo-small.logo-bos img,
.sidebar .sidebar-logo .logo-small.logo-bos img {
  max-height: 32px;
  max-width: 40px;
}
.header .header-left .logo-bos:hover {
  color: #e8892d;
}
.settings-general-page .new-logo-placeholder,
.page-wrapper .new-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px;
  border: 1px dashed #dbe0e6;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fe9f43;
}
/* DreamsPOS ships logo + logo-small; keep only one visible or both stack as "BOS BOS". */
.header .header-left .logo-small.logo-bos {
  display: none;
  font-size: 18px;
  height: auto;
}
@media (max-width: 991.96px) {
  .header .header-left .logo.logo-normal.logo-bos {
    display: none;
  }
  .header .header-left .logo-small.logo-bos {
    display: inline-flex;
  }
  .header .header-left {
    padding-left: 12px;
    padding-right: 8px;
    box-sizing: border-box;
    width: auto;
    max-width: calc(100% - 230px);
    overflow: hidden;
    z-index: 1;
  }
  .header .header-left .logo-small.logo-bos {
    max-width: 100%;
  }
  .header .header-left .logo-small.logo-bos img {
    max-width: 100%;
  }
  /* Phone actions: POS · notifications · settings · user — then hamburger last. */
  .header .bos-mobile-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    top: 0;
    right: 48px;
    height: 65px;
    z-index: 1050;
    padding-right: 2px;
  }
  .header .bos-mobile-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #092c4c;
    font-size: 20px;
    text-decoration: none;
    border-radius: 8px;
  }
  .header .bos-mobile-action:hover,
  .header .bos-mobile-action:focus {
    color: #fe9f43;
    background: #f7f7f7;
  }
  .header .bos-mobile-action.dropdown-toggle::after {
    display: none;
  }
  .header .bos-mobile-action .badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    background: #fe9f43;
    color: #fff;
  }
  .header .bos-mobile-user {
    width: 40px;
  }
  .header .bos-user-letter-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 6px;
  }
  .header .mobile_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    width: 48px;
    height: 65px;
    padding: 0;
    left: auto !important;
    right: 0 !important;
  }
  .header .mobile_btn .bar-icon {
    margin-top: 0;
  }
  .header .mobile-user-menu {
    display: none !important;
  }
  /* Ensure the drawer actually slides in on phones (DreamsPOS base uses a large negative margin). */
  .slide-nav .sidebar#sidebar,
  .slide-nav #sidebar.sidebar {
    margin-left: 0 !important;
  }
}
@media (min-width: 992px) {
  .header .bos-mobile-actions {
    display: none !important;
  }
}

.menu-horizontal .header .header-left .logo.logo-normal.logo-bos {
  display: inline-flex;
}
.menu-horizontal .header .header-left .logo-small.logo-bos {
  display: none;
}
.sidebar .sidebar-logo {
  background: #ffffff;
}
.sidebar .sidebar-logo .logo-bos {
  color: #fe9f43;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  line-height: 1;
}
@media (min-width: 1200px) {
  .header .searchinputs input {
    width: 320px;
  }
}
.bos-user-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fe9f43;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
}
.user-menu .profile-nav .profileset .bos-user-letter {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.user-menu .profile-nav .dropdown-item.logout {
  cursor: default;
}

/* DreamsPOS table pager: Row Per Page + page arrows. Keep our own search forms. */
.page-wrapper .dataTables_filter {
  display: none !important;
}
.page-wrapper .dataTables_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  clear: both;
}
.page-wrapper .dataTables_wrapper .dataTables_length,
.page-wrapper .dataTables_wrapper .dataTables_paginate {
  float: none;
  padding: 12px 16px;
}
.page-wrapper .dataTables_wrapper .dataTables_length label {
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* Sign-in: DreamsPOS layout, BOS panel. The template ships a grey placeholder photo, so we paint instead. */
.account-page .login-wrapper.bg-img {
  background-image: linear-gradient(135deg, #092C4C 0%, #123f68 60%, #FE9F43 190%);
}
.account-page .login-wrapper .login-content .login-logo .logo-bos {
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.header .user-menu.nav > li > a .badge {
  width: auto;
  min-width: 18px;
  padding: 0 5px;
}
.notifications .notification-list li a .badge {
  flex-shrink: 0;
}

.notifications .noti-content:has(.bos-noti-empty) {
  height: auto;
  min-height: 88px;
}
.bos-noti-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #646B72;
  font-size: 14px;
}

/* Owner task lists: keep Fix on screen when names wrap / overflow. */
.bos-task-table td:nth-child(2),
.bos-task-table th:nth-child(2),
.bos-task-table .bos-task-which {
  white-space: normal;
}
.bos-task-table td:nth-child(2) {
  min-width: 10rem;
  max-width: 22rem;
}
.bos-task-table thead th.no-sort,
.bos-task-table tbody td.bos-task-fix {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -8px 0 8px -8px rgba(33, 43, 54, 0.18);
}
.bos-task-table thead th.no-sort {
  background: #f8f9fa;
}

.flatpickr-calendar .flatpickr-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #e9ecef;
}
.flatpickr-calendar .flatpickr-preset-btn {
  font-size: 12px;
}

.bos-lang-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
}
.header .bos-header-version .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
}
.header .bos-header-version .bos-version-link:hover,
.header .bos-header-version .bos-version-link:focus {
  color: #fe9f43;
}
.header .bos-header-version .bos-version-text {
  cursor: default;
}
.header .bos-mobile-version {
  width: auto;
  min-width: 40px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.header .bos-mobile-version .bos-version-label {
  line-height: 1;
  white-space: nowrap;
}
.header .bos-mobile-version-static {
  cursor: default;
  pointer-events: none;
}
.bos-lang-flag-lg {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.menu-drop-user .bos-lang-item.active {
  font-weight: 600;
}
.bos-lang-card.is-current {
  border-color: #fe9f43;
}
.bos-login-langs {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.bos-login-langs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #212b36;
  text-decoration: none;
}
.bos-login-langs a.active {
  font-weight: 700;
  color: #fe9f43;
}

.bos-peak-bar {
  height: 10px;
  background: #eef1f4;
  border-radius: 999px;
  overflow: hidden;
  min-width: 4rem;
}
.bos-peak-bar > span {
  display: block;
  height: 100%;
  background: #fe9f43;
  border-radius: 999px;
  min-width: 0;
}

/* Horizontal theme: keep full width (DreamsPOS demo caps at 1320px). */
.menu-horizontal #horizontal-menu {
  display: block;
}
.menu-horizontal .page-wrapper {
  max-width: none;
  margin: 0;
  padding-top: 130px;
  padding-left: 24px;
  padding-right: 24px;
}
.menu-horizontal .header .main-header {
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.menu-horizontal .header .header-left {
  padding-left: 0;
  padding-right: 24px;
}
.menu-horizontal .header .main-header .user-menu {
  padding-right: 0;
}
.menu-horizontal .header .user-menu > li.profile-nav > .nav-link {
  margin-right: 0;
}
.menu-horizontal .sidebar-horizontal.sidebar {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu {
  height: auto;
  min-height: 46px;
  max-width: none;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul.nav-menu {
  flex-wrap: wrap;
  row-gap: 4px;
  justify-content: flex-start;
}
.menu-horizontal .sidebar-horizontal.sidebar {
  overflow: visible;
  z-index: 1040;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu ul ul {
  z-index: 1050;
}
/* Header profile / language menus must sit above page sticky tables. */
.header {
  z-index: 1045;
}
.header .dropdown-menu {
  z-index: 1060;
}
/* Table sticky headers: stay under chrome (Bootstrap .sticky-top is 1020). */
.bos-sticky-thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #fff;
}
.bos-sticky-thead th {
  background-color: #fff;
  box-shadow: 0 1px 0 #e9ecef;
}
.bos-log-tail {
  max-height: 28rem;
  overflow: auto;
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li > a {
  font-size: 14px;
  color: #212b36;
  border-radius: 5px;
  padding: 8px 12px;
  display: block;
  font-weight: 500;
}
/* Room for absolute .menu-arrow so it does not sit on the label. */
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > a {
  padding-right: 28px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > a .menu-arrow {
  right: 6px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul {
  width: auto;
  min-width: 240px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li > a {
  font-size: 14px;
  padding: 8px 14px;
  line-height: 1.4;
  white-space: nowrap;
}
/* Third-level flyout: Settings → Integrations → OpenCart */
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu {
  position: relative;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > a {
  padding-right: 28px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > a .menu-arrow {
  right: 8px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0;
  min-width: 220px;
  z-index: 1060;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(33, 43, 54, 0.12);
  padding: 6px 0;
}
/* Fourth-level flyout: Settings → Integrations → OpenCart → pages */
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu {
  position: relative;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu > a {
  padding-right: 28px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu > a .menu-arrow {
  right: 8px;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin: 0;
  min-width: 220px;
  z-index: 1070;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(33, 43, 54, 0.12);
  padding: 6px 0;
}
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li > a:hover,
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.active > a,
.menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li > a.active {
  color: #fe9f43;
}
@media (min-width: 992px) {
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu:hover > ul,
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu.is-open > ul {
    display: block !important;
  }
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu:hover > ul,
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu.is-open > ul {
    display: block !important;
  }
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu:hover > ul,
  .menu-horizontal .sidebar-horizontal.sidebar .sidebar-menu .nav-menu > li.submenu > ul > li.submenu > ul > li.submenu.is-open > ul {
    display: block !important;
  }
}
@media (max-width: 991.96px) {
  .menu-horizontal #horizontal-menu {
    display: none !important;
  }
}

/* Settings → General branding library */
.bos-brand-slot {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}
.bos-brand-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border: 1px solid #d3d5d7;
  border-radius: 10px;
  background-color: #f8f9fa;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  overflow: hidden;
  padding: 12px;
}
.bos-brand-preview a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 116px;
}
.bos-brand-preview img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bos-brand-preview-favicon {
  min-height: 100px;
}
.bos-brand-preview-favicon img {
  max-height: 64px;
}
.bos-brand-fallback {
  color: #646b72;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.bos-brand-drop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.bos-brand-drop input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.bos-brand-drop-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px dashed #fe9f43;
  border-radius: 8px;
  color: #fe9f43;
  background: #fff7ef;
  font-weight: 600;
  font-size: 13px;
}
.bos-brand-live {
  margin-top: 10px;
  padding: 8px;
  border: 1px dashed #d3d5d7;
  border-radius: 8px;
  background: #fafbfc;
}
.bos-brand-live img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}
.bos-brand-tile {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.bos-brand-tile.is-active {
  border-color: #fe9f43;
  box-shadow: 0 0 0 1px rgba(254, 159, 67, 0.25);
}
.bos-brand-tile-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 12px;
  background-color: #f8f9fa;
  background-image:
    linear-gradient(45deg, #eee 25%, transparent 25%),
    linear-gradient(-45deg, #eee 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eee 75%),
    linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.bos-brand-tile-preview img {
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}
.bos-brand-tile-body {
  padding: 10px 12px 12px;
  flex: 1;
}
.bos-brand-tile-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.bos-brand-library .btn-xs {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.4;
}

/* Mobile warehouse scanner */
.bos-mobile-scanner-page .bos-ms-card {
  border-radius: 12px;
}
.bos-ms-camera {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  min-height: 220px;
}
.bos-ms-camera #ms-reader {
  width: 100%;
}
.bos-ms-camera video {
  width: 100% !important;
  border-radius: 12px;
}
.bos-ms-qty-ctrl {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 8px;
  align-items: center;
}
.bos-ms-qty-ctrl .btn {
  min-height: 48px;
  font-size: 1.5rem;
  line-height: 1;
}
.bos-ms-qty-list .list-group-item {
  border-left: 0;
  border-right: 0;
}
.bos-ms-stat {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 14px;
}
.bos-ean-search-btn {
  padding: 0.15rem 0.4rem;
  line-height: 1;
  min-width: 1.75rem;
}
.bos-ean-search-btn::after {
  display: none;
}
.bos-ean-search .dropdown-menu {
  min-width: 12rem;
  z-index: 1080;
}
@media (max-width: 576px) {
  .bos-mobile-scanner-page .page-header {
    margin-bottom: 0.75rem;
  }
  .bos-mobile-scanner-page .btn-lg {
    min-height: 48px;
  }
}

