.menu-icon {
  width: 24px !important;
  height: 24px !important;
  margin-right: 12px;
}

.select2-container--default .select2-selection--single {
  border: none !important;
}
span.select2-dropdown.select2-dropdown--below {
  margin-top: -13px;
}
.select2-container--default {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #5a6a85;
  background-color: transparent;
  background-clip: padding-box;
  border: 1px solid #dfe5ef;
  appearance: none;
  border-radius: 7px;
}
.select2-container--default .select2-selection--single {
  background-color: #fff0 !important;
}
td#w-100 {
  width: 75px;
  text-align: center;
}
.toast-onload {
  position: fixed;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  max-width: 300px;
  width: 100%;
  transition: all 0.5s;
}
#btn:disabled {
  cursor: not-allowed;
}
a {
  cursor: pointer;
}
.text-danger {
  color: #ff0000 !important;
  font-weight: 700;
}
.danger-alert {
  color: #ff0000 !important;
  font-weight: 700;
  display: block;
  text-align: center;
  width: 100%;
}
.card {
  margin-bottom: 30px;
  background: white;
}
#border-left {
  border-left: 1px solid #e7e7e7;
}
.sidebar-nav li > .has-arrow.active::after {
  top: 18px;
  margin-top: 1px;
  border-color: var(--bs-white);
  transform: rotate(-135deg) translate(0, -50%);
}
.sidebar-nav .has-arrow::after {
  position: absolute;
  content: "";
  width: 7px;
  height: 7px;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: var(--bs-dark-text-emphasis);
  margin-left: 10px;
  transform: rotate(135deg) translate(0, -50%);
  transform-origin: top;
  top: 22px;
  right: 15px;
  transition: all 0.3s ease-out;
}
.footer {
  width: 100%;
  position: fixed;
  margin-top: 42vh;
}
.footer p {
  color: #2a3547;
  font-weight: 600;
  margin-left: 270px;
  margin-bottom: 0;
}
.dt-button {
  position: reltive;
  top: auto;
  justify-content: center;
}
.full {
  width: 100%;
  height: 100vh;
  background-color: black;
}
a.sidebar-link2.active {
  background-color: #355db1 !important;
}
a.sidebar-link3.active {
  background-color: #ed1d37c4 !important;
}
img.rounded-circle {
  box-shadow: 5px 4px 9px;
}
.body-wrapper {
  transition: ease 0.5s;
}
#ajaxshow {
  display: none;
}
.table > :not(caption) > * > * {
  padding: 10px;
}
@media only screen and (max-width: 480px) {
  #header-shortcuts {
    display: none;
  }
}
button#synnex_shop:hover {
  background-color: #0072bc !important;
}
button#synnex_shop:hover h6.card-title.mb-4.text-center {
  color: #fff !important;
}

@media only screen and (max-width: 600px) {
  .laptop {
    display: none !important;
  }
}

.h5,
h5 {
  font-size: 15px !important;
}
.d-fixed {
  position: fixed;
  top: 90px;
  right: -150px;
  width: 200px;
  z-index: 999;
  transition: 0.5s ease-in-out;
  background-color: #5d87ff;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.15);
}

.d-fixed .hide-menu {
  white-space: nowrap;
}

/* Right sidebar POS tab on the edge */
.right-sidebar-tab {
  position: absolute;
  left: -50px;
  top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  padding: 8px 4px;
  background-color: #5d87ff;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: background-color 0.3s;
  gap: 3px;
}
.right-sidebar-tab:hover {
  background-color: #4a73e8;
  color: #fff;
  text-decoration: none;
}

.prd-lable {
  overflow: hidden; /* Hide the overflow */
  text-overflow: ellipsis; /* Add ellipsis (...) */
  white-space: nowrap;
  width: 100%;
  font-size: 0.8rem;
  text-transform: capitalize;
}
.modal-content {
  background: #fff;
}
.btn-default {
  background-color: #0072bc;
  color: #fff;
  margin: 5px;
}
.d-fixed:hover {
  right: 0;
}
.d-fixed div .sidebar-nav #sidebarnav .sidebar-item a.sidebar-link {
  color: white !important;
}
.d-fixed div .sidebar-nav #sidebarnav .sidebar-item a.sidebar-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
}
li.sidebar-item {
  transition: 0.5s ease;
  position: relative;
  top: 0;
  margin-bottom: 5px !important;
}
li.sidebar-item:hover {
  top: 0;
}
/* .nav-icon-hover img {
    box-shadow: 4px 6px 12px;
    border-radius: 5px;
} */
textarea.form-control {
  height: 17px;
}
.mr-1 {
  margin-right: 10px;
}
td.last {
  text-align: center;
}
span.hide-menu {
  font-size: 14.5px !important;
  font-weight: 500;
}
td,
th {
  font-size: 12px;
}
.card-title {
  font-size: 15px;
}
.left-sidebar {
  border-radius: 0 15px 0 0;
  box-shadow: 0 25px 35px #0000002e;
  font-family: "Nunito Sans", sans-serif;
  height: 100vh;
}
.left-sidebar .scroll-sidebar {
  padding: 0 24px 80px 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
}
.cart-input {
  padding: 4px 8px;
}
#sub-quantity,
#add-quantity {
  padding: 3.5px !important;
}
.tr-cart td {
  padding: 5px;
}
tr.tr-cart {
  border: none;
}
#cart-table td {
  padding: 5px;
}
#w-140 {
  width: 120px;
}
.center {
  display: block;
  margin: auto;
  width: 60%;
}
#cart-table th {
  padding: 5px;
  text-align: center;
}
.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #f70000;
  --bs-btn-border-color: #f70000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #dd0b0b;
  --bs-btn-hover-border-color: #dd0b0b;
  --bs-btn-focus-shadow-rgb: 251, 155, 129;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #dd0b0b;
  --bs-btn-active-border-color: #dd0b0b;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #a3a3a3;
  --bs-btn-disabled-border-color: #a3a3a3;
}
.sidebar-nav ul .sidebar-item .sidebar-link {
  border-radius: 0 27px 27px 0;
  padding: 10px 15px !important;
  display: flex;
  align-items: center;
}

.sidebar-nav ul .sidebar-item .sidebar-link.active,
.sidebar-nav ul .sidebar-item .sidebar-link.active .hide-menu {
  color: #ffffff !important;
}

#sidebarnav .nav-small-cap,
li.nav-small-cap {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
table {
  width: 100%;
  margin-bottom: 10px;
  /* border: 1px solid; */
}
.body-wrapper > .container-fluid {
  max-width: none !important;
}
.quantity {
  position: absolute;
  top: -12px;
  right: -12px;
  /* background-color: green; */
  color: #fff;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  z-index: 1;
}
#add-product-modal {
  color: var(--bs-modal-color);
}
.quantity span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
}
input#product_price,
#discount_percentage,
#discount_value {
  width: 80px;
  padding: 5px 5px;
  border: none;
  background: white;
}
#text-right {
  text-align: right;
}
#discount_percentage {
  border: 1px solid grey;
  /* background:#f5f5f5; */
}
div#cart-foot {
  border-top: 1px solid #e7e7e7;
}
#cart .table-responsive {
  height: 20vh;
  overflow-x: hidden;
  overflow-y: auto;
}
/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #4a6ccc;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

div#categories,
#product-main {
  height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem !important;
}
td {
  padding: 16px;
}
th {
  padding: 16px 16px;
}
tr {
  border-bottom: 1px solid #e7e7e7;
}

.bg-danger {
  --bs-bg-opacity: 1;
  background-color: #ff0000 !important;
}

/* tick boxes are square; on/off switches stay round */
.form-check-input[type="checkbox"] {
  border-radius: .3em !important;
  box-shadow: none;
  border: 1.5px solid #94a3b8;
}
.form-check-input[type="checkbox"]:checked { background-color: #2563eb; border-color: #2563eb; }
.form-switch .form-check-input[type="checkbox"] { border-radius: 2em !important; }
.search_select_box select {
  width: 100%;
}
img#eilogo {
  border-radius: 50%;
  height: 150px;
  width: 150px;
  box-shadow: 7px 5px 9px #000000b5;
}

/* -------------- Product Image --------------*/
#img_product {
  max-width: 200px;
  max-height: 200px;
}

.brand-logo {
  margin-bottom: 30px !important;
  padding-bottom: 10px !important;
}

/* ===== Sidebar Sub-Menu Visibility Fixes ===== */

/* CRITICAL: Override framework white-space:nowrap that causes text to hide */
.sidebar-nav ul .sidebar-item .sidebar-link {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  flex-wrap: wrap !important;
}

/* All hide-menu spans must be visible */
.sidebar-nav .hide-menu {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: inline !important;
  word-break: normal !important;
  line-height: 1.4 !important;
}

/* First level dropdown - reduce left padding so text has room */
.sidebar-nav ul .sidebar-item ul.first-level {
  padding-left: 5px !important;
}

/* Nested dropdown - minimal additional indent */
.sidebar-nav ul .sidebar-item ul.first-level ul.first-level {
  padding-left: 10px !important;
}

/* Sub-menu links: less padding, smaller text to fit in sidebar */
.sidebar-nav ul .sidebar-item ul .sidebar-item .sidebar-link {
  padding: 8px 10px 8px 8px !important;
  font-size: 13px !important;
  gap: 8px !important;
}

/* Third level links even smaller */
.sidebar-nav ul .sidebar-item ul ul .sidebar-item .sidebar-link {
  padding: 6px 8px 6px 12px !important;
  font-size: 12.5px !important;
  gap: 6px !important;
}

/* Make the circle/star icons in sub-menus smaller to save space but keep them visible */
.sidebar-nav ul .sidebar-item ul .round-16 {
  display: flex !important;
  min-width: 12px;
  min-height: 12px;
  margin-right: 5px !important;
}
.sidebar-nav ul .sidebar-item ul .round-16 i {
  font-size: 10px !important;
}

/* Keep arrow visible on expandable sub-items */
.sidebar-nav .sidebar-item .sidebar-link.has-arrow {
  position: relative;
  padding-right: 30px !important;
}

/* Fix arrow position for sub-menu expandable items */
.sidebar-nav ul .sidebar-item ul .sidebar-link.has-arrow::after {
  right: 10px !important;
  top: 14px !important;
}

/* Ensure collapsed sub-menus toggle properly */
.sidebar-nav ul .sidebar-item ul.collapse.show,
.sidebar-nav ul .sidebar-item ul.collapse.in {
  overflow: visible !important;
}

/* Left sidebar scroll - no horizontal overflow */
.left-sidebar .scroll-sidebar {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Active state colors for main menu items */
.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active,
.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active:hover {
  background-color: #5D87FF !important;
  color: #ffffff !important;
  border-radius: 7px;
}

.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active .hide-menu,
.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active:hover .hide-menu,
.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active i,
.sidebar-nav ul#sidebarnav > .sidebar-item > .sidebar-link.active:hover i {
  color: #ffffff !important;
  background-color: transparent !important;
}

/* Active state colors for sub-menu items */
.sidebar-nav ul .sidebar-item ul .sidebar-item .sidebar-link.active,
.sidebar-nav ul .sidebar-item ul .sidebar-item .sidebar-link.active .hide-menu {
  color: #5d87ff !important;
}

/* Fix hover state for inactive sidebar items so text doesn't disappear */
.sidebar-nav ul .sidebar-item .sidebar-link:not(.active):hover {
  background-color: rgba(93, 135, 255, 0.1) !important;
  color: #5D87FF !important;
  border-radius: 7px;
}

.sidebar-nav ul .sidebar-item .sidebar-link:not(.active):hover .hide-menu,
.sidebar-nav ul .sidebar-item .sidebar-link:not(.active):hover i {
  color: #5D87FF !important;
  background-color: transparent !important;
}

/* ===== Shop brand (logo, or initials + shop name when no logo is uploaded) ===== */
.pf-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.pf-brand-mark { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #5d87ff, #2563eb); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .5px; }
.pf-brand-name { font-weight: 800; font-size: 18px; color: #1f2937; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.pf-brand-logo.pf-brand-md { max-width: 190px; max-height: 56px; object-fit: contain; }
.pf-brand-logo.pf-brand-lg { max-width: 240px; max-height: 110px; object-fit: contain; }
.pf-brand.pf-brand-lg .pf-brand-mark { width: 60px; height: 60px; border-radius: 16px; font-size: 22px; }
.pf-brand.pf-brand-lg .pf-brand-name { font-size: 26px; }

/* ===== One look for the older screens (same style as the new pages) =====
   Scoped to legacy content (.container-fluid without .pf-page) so new pages are untouched. */
body { --pf-skin: 1; }
.body-wrapper > .container-fluid:not(.pf-page) { padding-top: 6px; }
.body-wrapper > .container-fluid:not(.pf-page) .card { border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.body-wrapper > .container-fluid:not(.pf-page) .card-title,
.body-wrapper > .container-fluid:not(.pf-page) > h5:first-child,
.body-wrapper > .container-fluid:not(.pf-page) > .row > h5 { font-size: 20px !important; font-weight: 700 !important; color: #111827; letter-spacing: -.01em; }
.body-wrapper > .container-fluid:not(.pf-page) .form-control,
.body-wrapper > .container-fluid:not(.pf-page) .form-select { border-radius: 8px; border-color: #dfe5ef; min-height: 40px; }
.body-wrapper > .container-fluid:not(.pf-page) .form-control:focus,
.body-wrapper > .container-fluid:not(.pf-page) .form-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.body-wrapper > .container-fluid:not(.pf-page) .btn { border-radius: 8px; font-weight: 600; }
.body-wrapper > .container-fluid:not(.pf-page) table thead th { background: #f8fafc; color: #475569; font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 10px 10px !important; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.body-wrapper > .container-fluid:not(.pf-page) table tbody td { font-size: 13.5px !important; padding: 9px 10px !important; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.body-wrapper > .container-fluid:not(.pf-page) table tbody tr:hover td { background: #f8fbff; }
/* DataTables: search box, page size, info and pager */
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-search input,
.body-wrapper > .container-fluid:not(.pf-page) .dataTables_filter input { border: 1px solid #dfe5ef; border-radius: 8px; padding: 7px 12px; min-width: 220px; outline: 0; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-search input:focus,
.body-wrapper > .container-fluid:not(.pf-page) .dataTables_filter input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-length select { border: 1px solid #dfe5ef; border-radius: 8px; padding: 5px 8px; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-info { color: #6b7280; font-size: 13px; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-paging .dt-paging-button { border-radius: 8px !important; border: 1px solid #e5e7eb !important; background: #fff !important; color: #334155 !important; margin: 0 2px; min-width: 34px; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-paging .dt-paging-button.current { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
/* export buttons: small outline buttons instead of a wide blue bar */
.body-wrapper > .container-fluid:not(.pf-page) .dt-buttons { display: inline-flex !important; flex-wrap: wrap; gap: 6px; width: auto !important; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-buttons > .btn,
.body-wrapper > .container-fluid:not(.pf-page) .dt-buttons > .dt-button { flex: 0 0 auto !important; width: auto !important; background: #fff !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; padding: 6px 14px !important; font-weight: 600; font-size: 13px; }
.body-wrapper > .container-fluid:not(.pf-page) .dt-buttons > .btn:hover,
.body-wrapper > .container-fluid:not(.pf-page) .dt-buttons > .dt-button:hover { border-color: #2563eb !important; color: #2563eb !important; }
.body-wrapper > .container-fluid:not(.pf-page) .badge { font-weight: 700; }
@media (max-width: 767.98px) {
  .body-wrapper > .container-fluid:not(.pf-page) .dt-container .dt-search input { min-width: 0; width: 100%; }
  .body-wrapper > .container-fluid:not(.pf-page) .card-title { font-size: 17px !important; }
}

/* Number boxes: no tiny up/down arrows (easy to hit by accident); type the value instead */
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Sort arrows: keep room for them on every table header (old pages and reports),
   and centre the up/down pair on the header text */
table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > th.dt-ordering-asc, table.dataTable thead > tr > th.dt-ordering-desc,
.body-wrapper > .container-fluid:not(.pf-page) table.dataTable thead > tr > th.dt-orderable-asc,
.body-wrapper > .container-fluid:not(.pf-page) table.dataTable thead > tr > th.dt-orderable-desc,
.body-wrapper > .container-fluid:not(.pf-page) table.dataTable thead > tr > th.dt-ordering-asc,
.body-wrapper > .container-fluid:not(.pf-page) table.dataTable thead > tr > th.dt-ordering-desc { position: relative; padding-right: 26px !important; }
table.dataTable thead > tr > th span.dt-column-order { right: 8px !important; width: 10px !important; }
table.dataTable thead > tr > th span.dt-column-order::before, table.dataTable thead > tr > th span.dt-column-order::after { line-height: 8px !important; font-size: 9px !important; }
table.dataTable thead > tr > th.dt-type-numeric, table.dataTable thead > tr > th.dt-type-date { text-align: right; }
