﻿/* Global Font */
body,
html {
  font-family: "Montserrat-Arabic" !important;
}

/* Chat widget — RTL/LTR position */
.acs-chat-widget {
  right: 24px !important;
  left: auto !important;
}

/* Begin:CustomScroll */
html {
  /* scrollbar-color: rgba(152, 152, 152, 0.051); */
  scrollbar-width: thin;
}
#kt_header {
  background-color: transparent;
}

/* Chat widget — RTL/LTR position */
.acs-chat-widget {
  width: fit-content;
}

body::-webkit-scrollbar {
  width: 0.49em;
  height: 0.49em;
}

body::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background-color: #9898980d;
  outline: 1px solid #a07fbf;
}

/* End:CustomScroll */

body {
  /* padding-top: 150px; */
  /* padding-bottom: 20px; */
}

.blockui-overlay {
  z-index: 999999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure modal backdrops don't conflict with blockUI */
.modal-backdrop {
  z-index: 1050 !important;
}

.modal {
  z-index: 1055 !important;
}

.blockui-message {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999999 !important;
}

/* Custom height */
.m-vh-50 {
  max-height: 50vh;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
  font-size: 20px;
  line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
  width: 100%;
}

/* Aside */
/* Header */
/* Header */
.wrapper {
  overflow: hidden;
}

.header-fixed.toolbar-fixed .wrapper {
  padding-top: calc(10px + var(--kt-toolbar-height));
}


/* Aside icons */
.menu-link-p-0 {
  padding-left: 0px !important;
}

.aside-menu .menu-item {
  padding: 10px 0px;
}

.aside-menu .menu-item .menu-icon {
  flex-grow: 0.2;
}

.aside-menu .menu .menu-item .menu-content,
.aside-menu .menu .menu-item .menu-link {
  padding-left: 32px !important;
}

.aside-menu .menu-item .menu-link {
  justify-content: space-between;
}

.aside-menu .menu-item .menu-icon .menu-icon-title {
  padding-top: 10px;
}

a.nav-link.btn.btn-flex.active {
  border-bottom: 3px solid !important;
}

/* Aside media */
@media (min-width: 992px) {
  [data-kt-aside-minimize="on"] .aside {
    width: 100px;
  }

  .aside {
    width: 100px;
  }

  .aside .aside-menu {
    width: 100px;
  }

  .aside-enabled.aside-fixed .wrapper {
    padding-left: 100px;
  }

  .aside-enabled.aside-fixed[data-kt-aside-minimize="on"] .wrapper {
    padding-left: 100px;
  }

  .aside-enabled.aside-fixed.header-fixed .header {
    left: 100px;
  }

  [data-kt-aside-minimize="on"] .aside.aside-hoverable:hover:not(.animating) {
    width: 100px;
  }
}

.menu-sub.menu-sub-lg-down-dropdown.show {
  top: 0px !important;
}

.aside-menu .menu .menu-item .dropdown-title a {
  padding-left: 0px !important;
}

.aside-enabled.aside-fixed.toolbar-fixed .toolbar {
  left: 100px;
}

/* QR code generator */
#qrCode {
  margin: 15px;
}

/* Custom Lights */
.bg-blue {
  background-color: var(--bs-blue) !important;
}

.bg-light-blue {
  background-color: rgb(221, 242, 254);
}

.svg-icon-blue {
  color: var(--bs-blue) !important;
}

.text-blue {
  color: var(--bs-blue);
}

.badge-blue {
  background-color: var(--bs-blue) !important;
}

.badge-warning {
  color: #4a4a4a;
}

.svg-icon-light-warning {
  color: #392c67;
}

.svg-icon-light-danger {
  color: #e71d36;
}

.alert-blue {
  color: black !important;
  border-color: rgb(221, 242, 254);
  background-color: rgb(221, 242, 254);
}

[dir="rtl"] .alert [data-bs-dismiss="alert"] {
  right: unset !important;
  left: 0 !important;
}

[dir="rtl"] .menu-item .menu-link .menu-icon{
  margin-right: unset !important;
  margin-left: .5rem !important;
}

[dir=rtl] .select2-container--bootstrap5 .select2-dropdown .select2-results__option{
  text-align: right;
}
/* Accordion */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.accordion-button:not(.collapsed) {
  background-color: #622a95c2 !important;
}

/* Form */
.form-select {
  border-color: var(--primary-color);
  line-height: 1.45;
}

/* centring place holder */
input[type="password"]::placeholder {
  position: absolute !important;
  top: 55% !important;
  transform: translateY(-50%) !important;
}

/* Select 2 options */
.select2-selection__rendered li {
  direction: ltr !important;
}

#cultureFormControl .select2-container--bootstrap5 .select2-selection__rendered,
[dir="rtl"] #cultureFormControl .select2-container--bootstrap5 .select2-selection__rendered{
  padding-right: unset !important;
  padding-left: unset !important;
}

/* Button Light */
.btn.btn-light-blue {
  color: var(--bs-blue) !important;
  border-color: #f1faff;
  background-color: #f1faff;
}

.btn-check:active+.btn.btn-light-blue,
.btn-check:checked+.btn.btn-light-blue,
.btn.btn-light-blue.active,
.btn.btn-light-blue.show,
.btn.btn-light-blue:active:not(.btn-active),
.btn.btn-light-blue:focus:not(.btn-active),
.btn.btn-light-blue:hover:not(.btn-active),
.show>.btn.btn-light-blue {
  color: #fff !important;
  border-color: var(--bs-blue) !important;
  background-color: var(--bs-blue) !important;
}

.btn-check:active+.btn.btn-active-light-blue,
.btn-check:checked+.btn.btn-active-light-blue,
.btn.btn-active-light-blue.active,
.btn.btn-active-light-blue.show,
.btn.btn-active-light-blue:active:not(.btn-active),
.btn.btn-active-light-blue:focus:not(.btn-active),
.btn.btn-active-light-blue:hover:not(.btn-active),
.show>.btn.btn-active-light-blue {
  background-color: #f1faff !important;
  border-color: #f1faff;
  color: var(--bs-blue) !important;
}


/* Stores Images */
div.card-header>div.image-input.image-input-circle {
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

div.image-input.image-input-circle>div.image-input-wrapper {
  max-width: 100%;
  max-height: 100%;
}

/* Data table Custom */
#data-table_next,
#data-table_previous {
  padding: 0 10px;
}

#data-table_next a i,
#data-table_previous a i {
  background-size: 20px;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.pagination {
  direction: ltr !important;
}

#data-table_previous a i {
  margin-top: 2.8px;
}

.dir-ltr {
  direction: ltr !important;
}

.dir-rtl {
  direction: rtl !important;
}

/* FilePond instance model */
.filepond--panel-root {
  background-color: #f1faff !important;
  border-radius: 10px;
  border: 1px dashed var(--bs-blue);
}

.primary-light-border {
  border: solid #a07fbf !important;
}

.filepond--root {
  min-height: 60px;
}

.filepond--root .filepond--drop-label {
  height: fit-content;
  min-height: fit-content;
}

.filepond--file-info-main {
  display: none;
}

#Attachments span.filepond--file-info-main {
  display: block;
}

.pulse-icon {
  animation: pulse 1.5s ease-in-out infinite;
}

/* App engage */
.app-engage {
  position: fixed;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 5;
  padding-right: 12px !important;
}

.app-engage .app-engage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0px 0px 22px #e0e0e0;
  border-width: 1px;
  border-style: solid;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px !important;
  border-radius: 6px;
  width: 66px;
  height: 70px;
  color: #3f4254;
  border-color: #e8e8e8;
  background-color: #ffffff;
}

.app-engage .app-engage-btn.app-engage-btn-toggle-on {
  width: 35px;
  height: 35px;
  display: none;
}

.app-engage .app-engage-btn.app-engage-btn-toggle-off {
  width: 35px;
  height: 35px;
}

.app-engage.app-engage-hide .app-engage-btn {
  visibility: hidden;
}

.app-engage.app-engage-hide .app-engage-btn.app-engage-btn-toggle-on {
  visibility: visible;
  display: flex;
}

.app-engage.app-engage-hide .app-engage-btn.app-engage-btn-toggle-off {
  display: none;
}

/* marquee text effect */
.marquee {
  width: 300px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee span {
  display: inline-block;
  width: max-content;

  padding-left: 100%;
  /* show the marquee just outside the paragraph */
  will-change: transform;
}

.marqueeRTL span {
  animation: marqueeRTL 10s linear infinite;
}

.marqueeLTR span {
  animation: marqueeLTR 10s linear infinite;
}

.marquee span:hover {
  animation-play-state: paused;
}

.text-end {
  text-align: end !important;
}

.text-start {
  text-align: start !important;
}

/* Quill editor */
.ql-toolbar button.ql-iframe {
  /* Hide the default button text */
  text-indent: -9999px !important;
  overflow: hidden !important;
  width: 28px !important;
  /* Standard Quill button width */
  padding: 0 !important;
  /* Base64 encoded SVG for a simple window/monitor icon */
  background-image: url('data:image/svg+xml,<svg fill="%23a1a5b7" height="64px" width="64px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 370.533 370.533" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><g><path d="M268.168,0H123.604c-8.314,0-15.055,6.74-15.055,15.053v34.012h95.555c3.978,0,7.794,1.58,10.607,4.394l60.381,60.381 c2.813,2.813,4.393,6.628,4.393,10.606v179.523h34.012c8.312,0,15.052-6.74,15.052-15.053V60.381L268.168,0z M262.535,69.871 c-2.65,0-4.798-2.146-4.798-4.797V19.006l50.88,50.865H262.535z"></path><path d="M152.89,194.432l-24.397-24.395c-1.588-1.589-3.701-2.464-5.947-2.464c-2.247,0-4.36,0.875-5.949,2.464l-8.126,8.125 c-3.279,3.279-3.278,8.616,0.002,11.896l24.397,24.395c1.589,1.59,3.702,2.465,5.947,2.465c1.473,0,2.885-0.383,4.133-1.091 l-3.933-3.933c-3.125-3.125-3.125-8.189,0-11.314c3.124-3.123,8.189-3.123,11.314,0l3.931,3.931 C156.069,201.305,155.617,197.159,152.89,194.432z"></path><path d="M205.872,62.296c-0.466-0.465-1.11-0.731-1.768-0.731H59.54c-9.68,0-17.556,7.874-17.556,17.553V352.98 c0,9.679,7.875,17.553,17.556,17.553h189.892c9.678,0,17.552-7.874,17.552-17.553V124.445c0-0.668-0.26-1.296-0.732-1.768 L205.872,62.296z M211.81,265.25l-8.122,8.124c-4.612,4.611-10.742,7.151-17.263,7.151c-6.52,0-12.65-2.54-17.263-7.151 l-24.396-24.396c-4.333-4.332-6.836-10.008-7.122-16.088c-6.079-0.286-11.754-2.789-16.087-7.123l-24.398-24.396 c-9.517-9.52-9.517-25.007-0.001-34.523l8.126-8.125c4.61-4.611,10.741-7.15,17.263-7.15c6.52,0,12.65,2.539,17.261,7.149 l24.398,24.396c4.461,4.461,6.803,10.234,7.083,16.089c6.095,0.276,11.785,2.779,16.127,7.12l24.397,24.397 C221.328,240.246,221.327,255.732,211.81,265.25z M198.471,133.936c-2.65,0-4.799-2.146-4.799-4.797V83.07l50.881,50.865H198.471z"></path><path d="M176.102,217.643c-1.588-1.588-3.701-2.463-5.949-2.463c-1.473,0-2.885,0.382-4.133,1.089l3.933,3.933 c3.125,3.125,3.125,8.189,0,11.314c-1.562,1.562-3.609,2.343-5.657,2.343c-2.047,0-4.095-0.781-5.657-2.343l-3.934-3.934 c-0.707,1.248-1.091,2.66-1.091,4.134c0,2.246,0.875,4.358,2.464,5.947l24.396,24.396c1.59,1.59,3.704,2.466,5.95,2.466 c2.247,0,4.358-0.875,5.948-2.465l8.122-8.124c3.28-3.28,3.281-8.618,0.001-11.899L176.102,217.643z"></path></g></g></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 16px 16px !important;
  /* Adjust size of the SVG */
}

.form-check.form-check-solid .form-check-input{
  background-color: #d3d3d3!important;
}
.form-check.form-check-solid .form-check-input:checked{
  background-color: var(--primary-color)!important;
}

@keyframes marqueeLTR {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

@keyframes marqueeRTL {
  0% {
    transform: translate(-100%, 0);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Respect user preferences about animations */

@media (prefers-reduced-motion: reduce) {
  .marquee span {
    animation-iteration-count: 1;
    animation-duration: 0.01;
    /* instead of animation: none, so an animationend event is 
     * still available, if previously attached.
     */
    width: auto;
    padding-left: 0;
  }
}

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

.gallery-logo-not-found {
  display: none;
}

.text-ellipsis {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

a.hover-zoom {
  transition: all 0.30s ease-in-out;
}

a.hover-zoom:hover {
  transform: scale(1.04);
}

@media screen and (min-width: 992px) {
  .gallery-logo-not-found {
    display: inherit !important;
    visibility: hidden;
  }
}

/* Key frame */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(0.7);
  }

  100% {
    transform: scale(1);
  }
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {

  /* Hide captions */
  .carousel-caption {
    display: none;
  }
}

/* ==========================================================================
   Panel header (_UserMenu.cshtml)

   One white card holding the brand on the start side and every action as an
   identical pill on the end side. Below lg the card wraps: brand and the aside
   toggle keep the first row, the pills move to a second row that scrolls
   sideways - which is why Metronic's hard-coded 55px fixed-header height is
   replaced there by the one handleHeaderSpace (initialScripts.js) measures into
   --mtj-header-space.
   ========================================================================== */

.mtj-header {
  --mtj-primary: #7c3aed;
  --mtj-primary-soft: #f3edfe;
  --mtj-primary-line: #ddd0fb;
  --mtj-text: #1f2937;
  --mtj-muted: #6b7280;
  --mtj-border: #ece9f5;
  align-items: center !important;
  box-shadow: none !important;
}

.mtj-header__container {
  width: 100%;
  padding-inline: 12px;
}

.mtj-header__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--mtj-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(31, 35, 55, .07);
}

/* -------- Brand -------- */
.mtj-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.mtj-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.mtj-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.mtj-header__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mtj-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------- Icon buttons on the brand row: aside toggle + apps launcher -------- */
.mtj-header__toggle,
.mtj-header__apps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--mtj-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mtj-primary);
  cursor: pointer;
}

.mtj-header__toggle:hover,
.mtj-header__toggle:focus,
.mtj-header__apps:hover,
.mtj-header__apps:focus {
  background: var(--mtj-primary-soft);
  border-color: var(--mtj-primary-line);
}

.mtj-header__toggle i,
.mtj-header__apps i {
  font-size: 1.35rem;
  line-height: 1;
}

/* The aside toggle only exists while the rail is a drawer, and there it is what pushes itself and
   the apps button to the end of the row. */
.mtj-header__toggle {
  display: none;
  margin-inline-start: auto;
}

/* -------- Actions -------- */
.mtj-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* One pill shape for every action so the row reads as a single control group. */
.mtj-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--mtj-border);
  border-radius: 12px;
  background: #fff;
  color: var(--mtj-text);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.mtj-pill:hover,
.mtj-pill:focus,
.mtj-pill.show {
  background: var(--mtj-primary-soft);
  border-color: var(--mtj-primary-line);
  color: var(--mtj-text);
}

.mtj-pill__icon {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--mtj-primary);
}

.mtj-pill--icon {
  width: 38px;
  padding: 0;
  justify-content: center;
}

/* Labels are a large-screen luxury: below lg every pill collapses to its icon and the title
   attribute carries the name instead. */
.mtj-pill__label {
  display: none;
}

@media (min-width: 992px) {
  .mtj-pill__label {
    display: inline;
  }
}

.mtj-pill__count {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  z-index: 1;
}

/* -------- Culture: the select2 sits inside the pill, stripped of its own chrome -------- */
.mtj-pill--culture {
  gap: 6px;
  padding-inline: 12px 8px;
}

.mtj-pill--culture > div,
.mtj-pill--culture form,
.mtj-pill--culture #cultureFormControl {
  margin: 0 !important;
  width: auto !important;
  min-width: 32px;
}

.mtj-pill--culture .form-control,
.mtj-pill--culture .select2-selection {
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mtj-pill--culture .select2-container {
  width: auto !important;
}

.mtj-pill--culture .select2-selection__rendered {
  padding: 0 !important;
  color: var(--mtj-text) !important;
  font-size: .875rem;
  font-weight: 600;
}

/* Own caret in the markup: the select carries .form-control, which has no arrow of its own. */
.mtj-pill--culture .select2-selection__arrow {
  display: none !important;
}

.mtj-pill__caret {
  font-size: .7rem;
  color: var(--mtj-muted);
  pointer-events: none;
}

/* Unscoped on purpose: select2 appends the panel to the body, so it is no longer a
   descendant of .mtj-header. Without a floor it inherits the 34px pill width. */
.mtj-culture-dropdown {
  min-width: 110px !important;
}

/* -------- Small screens: brand + toggle on row one, pills on row two -------- */
@media (max-width: 991.98px) {
  .mtj-header,
  .header-tablet-and-mobile-fixed .mtj-header {
    height: auto !important;
    min-height: 0 !important;
  }

  .header-tablet-and-mobile-fixed .wrapper {
    padding-top: var(--mtj-header-space, 112px) !important;
  }

  .mtj-header__container {
    padding-inline: 8px;
  }

  .mtj-header__bar {
    padding: 8px;
    border-radius: 14px;
  }

  .mtj-header__toggle {
    display: inline-flex;
  }

  .mtj-header__title {
    font-size: .95rem;
  }

  .mtj-pill {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  /* The culture pill is the exception - "AR" is the control, not a label. */
  .mtj-pill--culture {
    width: auto;
    padding-inline: 10px 8px;
  }

  /* A row that scrolls, not a stack that grows: the header stays two rows tall however
     many apps a store has enabled. */
  .mtj-header__actions {
    flex: 0 0 100%;
    order: 3;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-block-end: 2px;
  }

  .mtj-header__actions::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .mtj-header__logo img {
    height: 26px;
  }
}

/* --------------------------------------------------------------------------
   Merchant app link, pinned to the foot of the aside rail (_Aside.cshtml).
   Keeps the dark brand fill it had in the header so it still reads as the one
   item that takes the merchant off the panel.
   -------------------------------------------------------------------------- */
.aside .mtj-aside-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #2c4374;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}

.aside .mtj-aside-app:hover,
.aside .mtj-aside-app:focus {
  background: #24365e;
  color: #fff;
}

.aside .mtj-aside-app i {
  font-size: 1.35rem;
  line-height: 1;
}

.aside .mtj-aside-app span {
  font-size: .7rem;
  font-weight: 600;
}