/* Custom CSS for the style.css overrides::START */
:root {
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 12px;
  --bs-border-radius-xl: 16px;
  --bs-border-radius-xxl: 4rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl * 2);

  --bs-body-font-family: var(--bs-font-noto-sans);
}

.ct-container .ct-content {
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 20px;
}

.layout-modern .ct-container .ct-content {
  padding-left: 40px;
}

@media (max-width: 575.98px) {
  .ct-container .ct-content {
    padding: 15px;
  }
}

/* .ct-sidebar .ct-link{
  font-size: var(--bs-body-font-size);
} */
.ct-white {
  background-color: rgba(var(--ct-white-rgb), var(--bs-bg-opacity, 1)) !important;
}
.bg-white {
  background-color: rgba(var(--ct-white-rgb), var(--bs-bg-opacity, 1)) !important;
}

.loader-bg {
  bottom: auto;
}

/* Dropdown */
.dropdown-menu {
  border: 1px solid var(--bs-border-color);
  padding: 8px 0;
  border-radius: var(--bs-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: auto;
}


/* Custom CSS for the style.css overrides::END */

/* Error Page  */
.background-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2D3748;
  background: url(./../app/img/errors/bg-desk.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
}

.background-svg img {
  max-height: calc(100vh - 100px);
}

.action_button {
  position: absolute;
  width: 100%;
  bottom: 60px;
  text-align: center;
}

@media (max-width: 768px) {
  .background-svg {
    background: url(./../app/img/errors/bg-sm.svg) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: top !important;
  }
}


.pc-header .pcm-logo img {
  max-width: 160px;
  max-height: 65px;
}

.input-group-title {
  background: var(--bs-card-bg);
  color: var(--ct-sidebar-background-color);
}

/* Custom Border Dashed */
.border-dashed {
  border: 1px dashed #dfdfdf;
}
.border-top.border-dashed {
  border: none !important;
  border-top-style: dashed !important;
  border-top-color: #dfdfdf !important;
}
.border-bottom.border-dashed {
  border-style: dashed;
}

.border-dashed .card-body {
  margin: 5px;
  border: 1px dashed #dfdfdf;
}

.border-dashed .card-header {
  margin: 5px;
  border: 1px dashed #dfdfdf;
}

.border-dashed .card-footer {
  margin: 5px;
  border: 1px dashed #dfdfdf;
}

.border-dashed:has(.card-header) .card-body {
  margin-top: 0px;
  border-top: 0px dashed #dfdfdf;
}

.border-dashed:has(.card-body) .card-header {
  margin-bottom: 0px;
  border-bottom: 1px solid #f2f4f9;
}

.border-dashed:has(.card-footer) .card-body {
  margin-bottom: 0px;
  border-bottom: 0px dashed #dfdfdf;
}

.border-dashed:has(.card-body) .card-footer {
  margin-top: 0px;
  border-top: 1px solid #f2f4f9;
}

.border-input {
  border: 2px solid #bec8d0 !important;
}

[data-ct-theme=dark] .border-input {
  border: 2px solid #334055 !important;
}

.swal-sm {
  width: 24em;
}
@media (max-width: 768px) {
  .swal-sm {
    width: 20em;
    max-width: 80%;
  }
}

.swal-sm button {
  padding: 0.25rem 0.5rem;
  font-size: 0.76563rem;
  border-radius: 2px;
  min-width: 65px;
}

.swal2-popup {
  border-radius: var(--bs-border-radius-xl) !important;
}

.swal2-styled {
  border-radius: var(--bs-border-radius) !important;
}



/* //CK Edito */
figure.image {
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

figure.image.image-style-side {
  float: right;
}

figure.image figcaption {
  width: 100%;
  padding: 5px;
  text-align: center;
  background: #e7e7e7;
}

figure.image img {
  max-width: 100% !important;
  height: auto !important;
}

#thumbnail_preview .file_preview_item {
  width: 100% !important;
}

#thumbnail_preview img {
  width: 100%;
  height: auto;
  max-height: 220px;
}

.ck.ck-block-toolbar-button {
  transform: translateX(0px) !important;
}

.ck-powered-by-balloon {
  display: none !important;
}

.ck.ck-sticky-panel__content {
  z-index: 99999 !important;
  top: 16px !important;
}

/* //SEO View */
.seo-view .mobile-view {
  border-radius: 8px;
  box-shadow: rgba(32, 33, 36, 0.28) 0px 1px 6px;
}

.seo-view .mobile-view .meta_title {
  color: rgb(21, 88, 214);
  display: inline-block;
  max-height: 52px;
  padding-top: 1px;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-view .mobile-view .meta_image {
  float: right;
  width: 104px;
  height: 104px;
  margin: 4px 0px 4px 16px;
  border-radius: 8px;
  overflow: hidden;
}

.seo-view .mobile-view .meta_description {
  color: #7390ba;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
  max-width: 600px;
}

[data-ct-theme="dark"] .seo-view .mobile-view .meta_title {
  color: #99c3ff;
}

[data-ct-theme="dark"] .seo-view .mobile-view .meta_description {
  color: #bfbfbf;
}

.seo-view .desktop-view .meta_title {
  color: rgb(26, 13, 171);
  display: inline-block;
  max-height: 52px;
  padding-top: 1px;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ct-theme="dark"] .seo-view .desktop-view .meta_title {
  color: #99c3ff;
}

[data-ct-theme="dark"] .seo-view .desktop-view .meta_titles {
  color: #941f8e;
}

/* Select2 tag color */
.select2-selection__choice {
  background-color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  color: var(--text-primary) !important;
  border-radius: 3px !important;
  font-size: 1rem;
}

.select2-selection__choice:hover {
  background-color: var(--bs-primary-hover) !important;
}

.select2-selection__choice__remove {
  background-color: var(--bs-primary) !important;
  color: var(--text-primary) !important;
  height: 100%;
}

.bg-gradient-1 {
  background: linear-gradient(180deg, #ff8a00, #e52e71);
  background-color: #ED6825;
  color: #ffffff !important;
}

.card-3d {
  /* box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 0 0 11px 4px rgba(184, 184, 184, 0.67) !important; */
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%), inset 5px 8px 8px rgba(0, 0, 0, .2), inset -2px -2px 10px hsla(0, 0%, 100%, .2) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ff8a00, #e52e71);
}

.dashboard-card .card-icon {
  transition: all 300ms ease;
  position: absolute;
  font-size: 51px;
  top: 0;
  right: 0;
  opacity: .2;
  padding: 9px;
}

.dashboard-card:hover .card-icon {
  scale: 1.4;
}

/* Location */
.pac-container {
  z-index: 10000;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: -25px;
  padding: 0px 30px;
  transform: rotate(45deg);
}

.notification.seen {
  opacity: 0.5;
}

/* Custom CSS for Nested Dropdown Positioning */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}

#header_notification_ul.list-group-flush>.list-group-item:hover {
  background-color: rgba(var(--bs-primary-rgb), .05)
}


/* Toastify Custom CSS */
.toastify {
  width: max-content;
  min-width: 300px;
  max-width: calc(100% - 40px) !important;
  padding-right: 32px !important;
}

.toastify.on {
  border-radius: var(--bs-border-radius);
}

.toastify .toast-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  cursor: pointer;
}

@media only screen and (max-width: 360px) {
  .toastify {
    min-width: calc(100% - 20px) !important;
    max-width: fit-content !important;
  }
}


/* Dark/Light mode toggle class */
[data-ct-theme="dark"] .d-dark-none {
  display: none !important;
}

[data-ct-theme="dark"] .d-dark-block {
  display: block !important;
}

[data-ct-theme="light"] .d-light-none,
body:not([data-ct-theme="dark"]) .d-light-none {
  display: none !important;
}

[data-ct-theme="light"] .d-light-block,
body:not([data-ct-theme="dark"]) .d-light-block {
  display: block !important;
}


/* Sortable Custom CSS */
table th.sortable:not(:has(> span.sort-arrow))::after {
  content: " ↕";
}

table th.sortable.active.asc:not(:has(> span.sort-arrow))::after {
  content: " 🡅" !important;
}

table th.sortable.active.desc:not(:has(> span.sort-arrow))::after {
  content: " 🡇" !important;
}

/* .Slim Select */
.ss-main .ss-values .ss-value {
  background: var(--bs-primary) !important;
  border-radius: var(--bs-border-radius-pill) !important;
  padding: 0.375rem 0.5rem !important;
  border-radius: 50rem !important;
}

.ss-main .ss-values .ss-value:hover {
  background: var(--bs-primary-hover) !important;
}

/* 4. Food Type Badges */
.food-type-badge-veg {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #16a34a;
  border-radius: 4px;
  height: 16px;
  width: 16px;
  background: #ffffff;
}

.food-type-badge-veg::after {
  content: '';
  background-color: #16a34a;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.food-type-badge-non-veg,
.food-type-badge-non_veg {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #dc2626;
  border-radius: 4px;
  height: 16px;
  width: 16px;
  background: #ffffff;
}

.food-type-badge-non-veg::after,
.food-type-badge-non_veg::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #dc2626;
  border-radius: 2px;
}

.food-type-badge-egg {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d97706;
  border-radius: 4px;
  height: 16px;
  width: 16px;
  background: #ffffff;
}

.food-type-badge-egg::after {
  content: '';
  background-color: #d97706;
  border-radius: 50%;
  height: 9px;
  width: 7px;
}

.food-type-badge-vegan {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d97706;
  border-radius: 4px;
  height: 16px;
  width: 16px;
  background: #ffffff;
}

.food-type-badge-vegan::after {
  content: '';
  background-color: #d97706;
  border-radius: 50%;
  height: 9px;
  width: 7px;
}

/* Css for collapse icon rotation */
[data-bs-toggle="collapse"] i {
  display: inline-block;
  transition: transform 0.3s ease;
}
[data-bs-toggle="collapse"][aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

#sticky-cart-bar {
  position: fixed;
  z-index: 1030;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 96%;
  /* right: 20px;
  left: 20px; */
  background: rgba(var(--ct-body-bg-rgb), 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--bs-border-color);
}

@media screen and (max-width: 600px) {
  #sticky-cart-bar {
    bottom: 70px;
  }
}

.avatar {
  height: 45px;
  width: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.avatar.avatar-sm {
  height: 30px;
  width: 30px;
}
.avatar.avatar-md {
  height: 40px;
  width: 40px;
}
.avatar.avatar-lg {
  height: 60px;
  width: 60px;
}

.badge.bg-light-primary,
.avatar.bg-light-primary,
.bg-light-primary,
[data-ct-preset] .bg-light-primary {
  background-color: rgba(var(--bs-primary-rgb), 0.12) !important;
  color: var(--bs-primary) !important;
}

/* ── Admin Mobile Bottom Navigation ───────────────────────────────── */
#admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bs-card-bg, #ffffff);
  border-top: 1px solid var(--bs-border-color, #e5e7eb);
  z-index: 1040;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

[data-ct-theme="dark"] #admin-bottom-nav {
  background: var(--bs-card-bg, #1e293b);
  border-color: var(--bs-border-color, #334155);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  #admin-bottom-nav {
    display: flex;
  }
  .ct-footer {
    padding-bottom: 70px !important;
  }
  .ct-sidebar .ct-navbar {
    padding-bottom: 60px;
  }
}

.admin-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none !important;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.18s ease;
  padding: 0.375rem 0 0;
  position: relative;
  overflow: hidden;
}

.admin-bottom-nav-item .bn-indicator {
  position: absolute;
  top: 9px;
  width: 64px;
  height: 32px;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.2s ease;
}

.admin-bottom-nav-item.active {
  color: var(--bs-primary, #4f46e5);
}

.admin-bottom-nav-item.active .bn-indicator {
  background: rgba(var(--bs-primary-rgb, 79, 70, 229), 0.12);
}

[data-ct-theme="dark"] .admin-bottom-nav-item {
  color: #94a3b8;
}

[data-ct-theme="dark"] .admin-bottom-nav-item.active {
  color: var(--bs-primary, #6366f1);
}

[data-ct-theme="dark"] .admin-bottom-nav-item.active .bn-indicator {
  background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.22);
}

.admin-bottom-nav-item:hover {
  color: var(--bs-primary, #4f46e5);
}