.jstree-default .jstree-anchor {
  position: relative;
  padding-right: 100px !important;
}
.jstree-default .jstree-anchor:hover .category-actions {
  display: flex;
}
.jstree-default .jstree-search {
  background-color: transparent !important;
  color: inherit !important;
  font-weight: normal !important;
}
.jstree-default .jstree-search .category-name {
  background-color: #fff3cd !important;
  color: #856404 !important;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}
.jstree-default .jstree-node {
  display: block !important;
}
.jstree-default.search-active .jstree-node:not(.jstree-search):not(:has(.jstree-search)) {
  display: none !important;
}
.jstree-default.search-active .jstree-search {
  display: block !important;
}

.category-actions {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  border-radius: 3px;
  padding: 2px;
  z-index: 1000;
}

.category-action-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: unset;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  color: grey;
}
.category-action-btn i {
  font-size: 16px;
  font-weight: 600;
}
.category-action-btn.edit:hover {
  color: #0056b3;
}
.category-action-btn.add-child:hover {
  color: #18cd2f;
}
.category-action-btn.delete:hover {
  color: #ff1818;
}

.search-highlight {
  background-color: #fff3cd !important;
  color: #856404 !important;
  font-weight: bold;
  padding: 1px 2px;
  border-radius: 2px;
}

#categorySearch {
  border-radius: 6px;
  border: 1px solid #e5e9f2;
  transition: all 0.3s ease;
}
#categorySearch:focus {
  border-color: #6576ff;
  box-shadow: 0 0 0 3px rgba(101, 118, 255, 0.1);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  background: white;
  padding: 15px 20px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 14px;
}
.loading-spinner .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6576ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.dark-mode .jstree-default .jstree-search .category-name {
  background-color: #2c1810 !important;
  color: #fbbf24 !important;
}
.dark-mode .search-highlight {
  background-color: #2c1810 !important;
  color: #fbbf24 !important;
}
.dark-mode #categorySearch {
  background-color: #1e2328;
  border-color: #364152;
  color: #b6c6e3;
}
.dark-mode #categorySearch:focus {
  border-color: #6576ff;
  background-color: #1e2328;
}
.dark-mode .loading-spinner {
  background: #1e2328;
  color: #b6c6e3;
}

#categorySort {
  margin-left: -22px !important;
}

.nested-padding {
  margin-top: 5px;
  padding: 8px !important;
}

.list-group-item + .list-group-item {
  border-top-width: 1px;
}

.list-group-item {
  border: 1px solid grey !important;
  margin-left: 22px !important;
}

.cursor-grab {
  cursor: grab;
}

.add-category-item,
.edit-category-item,
.delete-category-item {
  cursor: pointer;
  transition: all 0.2s ease;
  color: grey;
  margin-left: 5px;
}

.add-category-item:hover {
  color: #18cd2f;
}

.edit-category-item:hover {
  color: #0056b3;
}

.delete-category-item:hover {
  color: #ff1818;
}

.modal {
  --bs-modal-bg: white;
}

.grecaptcha-badge {
  z-index: 1000;
}

.honeypot {
  position: absolute;
  top: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.form-icon {
  height: 100% !important;
}

.form-control-wrap .form-select.error + .select2-container--default .select2-selection--single {
  border: 1px solid #F2426E !important;
}
.form-control-wrap .form-select.error + .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #F2426E !important;
}
.form-control-wrap .select2-container--default .select2-selection--single .select2-selection__arrow::after {
  font-size: 18px !important;
}
.form-control-wrap .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  width: 100% !important;
  margin-top: 7px !important;
}
.form-control-wrap .select2-selection.is-invalid {
  background-image: unset !important;
}
.form-control-wrap .form-control-lg.error {
  font-size: 0.9375rem !important;
  font-style: normal !important;
}
.form-control-wrap .form-control[readonly]:not(.flatpickr-date-picker,
.flatpickr-time-picker,
.flatpickr-date-time-picker,
.flatpickr) {
  background-color: #f5f6fa;
  color: #3c4d62 !important;
  pointer-events: none !important;
}

.invalid {
  font-size: 13px !important;
  color: #F2426E !important;
}
.invalid.form-control-lg {
  font-size: 0.9375rem !important;
}
.invalid.form-control-lg::placeholder {
  font-size: 0.9375rem !important;
  color: #F2426E !important;
}

.ui-rounder .ql-toolbar {
  border-top-left-radius: 6px !important;
  border-top-right-radius: 6px !important;
}
.ui-rounder .ql-container {
  border-bottom-left-radius: 6px !important;
  border-bottom-right-radius: 6px !important;
}
.ui-rounder .ql-tooltip {
  left: 15px !important;
}
.ui-rounder .tox-tinymce {
  border-radius: 6px !important;
  border: 1px solid #dbdfea !important;
}
.ui-rounder .tox-tinymce svg {
  height: auto !important;
  max-width: 100%;
}

.dt-empty {
  padding: 2rem;
}

.nav-tabs .nav-link.error {
  color: #F2426E !important;
}
.nav-tabs .nav-link.error::after {
  background: #F2426E !important;
}

.input-group .form-control:not(:last-child).flatpickr-date-picker,
.input-group .form-control:not(:last-child).flatpickr-time-picker {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

.nk-menu-icon i.icon {
  font-size: 20px;
  width: 24px;
  height: 25px;
}
.nk-menu-icon i.icon.fa-bolt {
  font-size: 24px;
}

.swal2-modal .swal2-title {
  font-size: 20px !important;
}

.for-light-mode {
  display: block;
}
.dark-mode .for-light-mode {
  display: none;
}

.for-dark-mode {
  display: none;
}
.dark-mode .for-dark-mode {
  display: block;
}

.fit-cover {
  object-fit: cover;
}
.fit-contain {
  object-fit: contain;
}
.fit-position-center {
  object-position: center;
}
.fit-position-left {
  object-position: left;
}
.fit-position-right {
  object-position: right;
}
.fit-position-top {
  object-position: top;
}
.fit-position-bottom {
  object-position: bottom;
}

.product-table-image {
  width: 75px;
  height: 75px;
}
.product-table-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nk-tb-list {
  color: var(--bs-body-color) !important;
}

.latest-orders-table {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.latest-orders-table .nk-tb-list {
  min-width: 100%;
}

div.dt-container div.dt-paging ul.pagination {
  justify-content: flex-end !important;
}

div.dt-container div.dt-info {
  font-size: var(--bs-body-font-size) !important;
}

.dt-search {
  display: flex;
  align-items: center;
}

.nk-sidebar-head {
  padding-top: 0;
  padding-bottom: 0;
  height: 40px;
  width: 100% !important;
}

.nk-sidebar {
  width: 250px;
}
.nk-sidebar .nk-menu-link {
  padding: 8px 2px 8px 18px;
  font-size: 14px;
}
.nk-sidebar .nk-menu-link .nk-menu-icon .icon {
  font-size: 22px;
}
.nk-sidebar .nk-menu-link .nk-menu-icon i.icon {
  font-size: 18px;
  height: unset;
  width: unset;
}
.nk-sidebar .nk-menu-link .nk-menu-icon i.icon.fa-bolt,
.nk-sidebar .nk-menu-link .nk-menu-icon i.icon.fa-file-invoice-dollar {
  font-size: 20px !important;
}
.nk-sidebar .nk-menu-item {
  padding: 0 5px;
}
.nk-sidebar .nk-menu-item > .nk-menu-sub {
  padding: 0.5rem 0;
}
.nk-sidebar .nk-menu-item > .nk-menu-sub .nk-menu-item {
  padding: 1px 0;
}
.nk-sidebar .nk-menu-item > .nk-menu-sub .nk-menu-item .nk-menu-link {
  padding: 3px 52px 3px 36px;
  font-size: 13px;
}
.nk-sidebar .nk-menu-item + .nk-menu-heading {
  padding-top: 1.5rem;
}
.nk-sidebar .nk-menu-heading {
  padding: 0.25rem 25px 0.5rem;
}
.nk-sidebar .nk-menu > li .nk-menu-sub .nk-menu-link::before {
  content: none;
}
.nk-sidebar .nk-menu > li .nk-menu-sub .nk-menu-link .nk-menu-icon .icon {
  font-size: 18px;
}

@media (max-width: 767.98px) {
  .nk-sidebar-mobile {
    width: 250px !important;
  }
}
@media (min-width: 1200px) {
  .nk-sidebar + .nk-wrap,
  .nk-sidebar-overlay + .nk-wrap {
    padding-left: 280px;
  }
  .nk-sidebar + .nk-wrap > .nk-header-fixed,
  .nk-sidebar-overlay + .nk-wrap > .nk-header-fixed {
    left: 280px;
  }
  .nk-sidebar.nk-sidebar-active + .nk-wrap,
  .nk-sidebar.nk-sidebar-active-overlay + .nk-wrap {
    padding-left: 30px;
  }
  .nk-sidebar.nk-sidebar-active + .nk-wrap > .nk-header-fixed,
  .nk-sidebar.nk-sidebar-active-overlay + .nk-wrap > .nk-header-fixed {
    left: 30px;
  }
}
.form-group:last-child {
  margin-bottom: 1.25rem;
}

.form-label {
  margin-bottom: 5px;
  cursor: default !important;
}

.model-details {
  font-size: 12px;
}

code {
  font-size: 14px;
  color: #c7254e;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.spinner-wrapper {
  min-height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn .spinner-wrapper i,
.btn .spinner-wrapper em {
  font-size: 1rem;
  line-height: 1;
}

.btn-lg .spinner-wrapper i,
.btn-lg .spinner-wrapper em {
  font-size: 1.125rem;
}

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

.price-matrix .form-group {
  margin-bottom: 0;
}
.price-matrix .form-label {
  display: none !important;
}
.price-matrix thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}
.price-matrix thead tr:last-child th:first-child {
  border-bottom-left-radius: 10px;
}
.price-matrix thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}
.price-matrix thead tr:last-child th:last-child {
  border-bottom-right-radius: 10px;
}
.price-matrix tbody tr:first-child td:first-child {
  border-top-left-radius: 10px;
}
.price-matrix tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}
.price-matrix tbody tr:first-child td:last-child {
  border-top-right-radius: 10px;
}
.price-matrix tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.gap {
  width: 100%;
  display: block;
  gap: 28px;
}

.gap-0 {
  gap: 0 !important;
}

.gap-1 {
  gap: 0.375rem !important;
}

.gap-2 {
  gap: 0.75rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.gap-5 {
  gap: 2.75rem !important;
}

.gap-gs {
  gap: 28px !important;
}

.gap-sm {
  gap: 0.75rem !important;
}

.gap-md {
  gap: 1.25rem !important;
}

.gap-lg {
  gap: 2rem !important;
}

.gap-xl {
  gap: 2.5rem !important;
}

.gap-10px {
  gap: 10px !important;
}

.gap-20px {
  gap: 20px !important;
}

.gap-30px {
  gap: 30px !important;
}

.gap-40px {
  gap: 40px !important;
}

.gap-50px {
  gap: 50px !important;
}

.gap-60px {
  gap: 60px !important;
}

.gap-70px {
  gap: 70px !important;
}

.gap-80px {
  gap: 80px !important;
}

.gap-90px {
  gap: 90px !important;
}

.gap-100px {
  gap: 100px !important;
}

.select2-container {
  z-index: 1000;
}

.review-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-items-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
}
.order-items-table th,
.order-items-table td {
  overflow-wrap: anywhere;
}
.order-items-table th:nth-child(1) {
  width: 45%;
}
.order-items-table th:nth-child(2) {
  width: 18%;
}
.order-items-table th:nth-child(3) {
  width: 13%;
}
.order-items-table th:nth-child(4) {
  width: 10%;
}
.order-items-table th:nth-child(5) {
  width: 14%;
}