@font-face {
  font-family: "NRT";
  src: url("../vendor/fonts/nrtfont/NRT-Reg.woff") format("woff"),
       url("../vendor/fonts/nrtfont/NRT-Reg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bs-body-font-family: "NRT", Tahoma, Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
label,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.modal,
.modal-title,
.alert,
.badge,
.menu,
.navbar,
.card,
.table,
.dataTables_wrapper,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swiper,
.footer {
  font-family: "NRT", Tahoma, Arial, sans-serif !important;
}

@media (max-width: 1199.98px) {
  button.layout-menu-toggle,
  a.layout-menu-toggle {
    display: flex !important;
    align-items: center;
  }

  #layout-navbar {
    min-height: 58px;
  }
}

.layout-overlay.layout-menu-toggle {
  display: none;
}

.layout-menu-expanded .layout-overlay.layout-menu-toggle {
  display: block;
}

.mobile-navbar-logo {
  width: 96px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.layout-profile-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.layout-profile-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0d6efd;
  background: #edf5ff;
  font-size: 1rem;
}

#nav-theme .theme-icon-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.05rem;
  line-height: 1;
}

.customer-mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
  padding: .55rem .75rem .7rem;
  border-top: 1px solid rgba(24, 32, 42, .08);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 28px rgba(24, 32, 42, .08);
  backdrop-filter: blur(12px);
}

.customer-mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: #667085;
  font-size: .72rem;
  font-weight: 700;
}

.customer-mobile-bottom-nav a.active,
.customer-mobile-bottom-nav a:hover {
  color: #0d6efd;
}

.customer-mobile-bottom-nav i {
  font-size: 1.15rem;
}

@media (max-width: 767.98px) {
  body:has(.customer-mobile-bottom-nav) .content-wrapper {
    padding-bottom: 4.75rem;
  }

  .customer-mobile-bottom-nav {
    display: grid;
  }
}

html,
body {
  direction: rtl;
  text-align: right;
}

label,
.form-label,
input,
textarea,
select,
.form-control,
.form-select {
  direction: rtl;
  text-align: right;
}

input[type="number"],
input[type="date"],
input[type="time"] {
  text-align: right;
}

.layout-menu,
.menu-vertical {
  direction: rtl;
}

.menu-icon {
  margin-left: .75rem;
  margin-right: 0;
}

.modal-header .btn-close {
  margin: calc(-.5 * var(--bs-modal-header-padding-y)) auto calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x));
}

.product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: .375rem;
  border: 1px solid var(--bs-border-color);
}

.permission-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "check title"
    "icon text";
  gap: .25rem .75rem;
  min-height: 104px;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: var(--bs-body-bg);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.permission-tile:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

.permission-tile input {
  grid-area: check;
  margin-top: .25rem;
}

.permission-tile span {
  grid-area: icon;
  color: var(--bs-primary);
  font-size: 1.4rem;
}

.permission-tile strong {
  grid-area: title;
}

.permission-tile small {
  grid-area: text;
  color: var(--bs-secondary-color);
  line-height: 1.7;
}

.select2-container {
  width: 100% !important;
  direction: rtl;
}

.select2-container--default .select2-selection--single {
  min-height: calc(1.5em + .938rem + 2px);
  display: flex;
  align-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: .422rem .875rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .16);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  color: var(--bs-body-color);
  line-height: 1.5;
  padding: 0;
  padding-left: 1.6rem;
  padding-right: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--bs-secondary-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  left: .75rem;
  right: auto;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--bs-body-color) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--bs-body-color) transparent;
}

.select2-dropdown {
  direction: rtl;
  text-align: right;
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  background-color: var(--bs-body-bg);
  box-shadow: 0 .5rem 1.25rem rgba(24, 32, 42, .12);
  overflow: hidden;
  z-index: 1090;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: calc(1.5em + .75rem + 2px);
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  padding: .375rem .75rem;
  text-align: right;
}

.select2-container--default .select2-results__option {
  padding: .55rem .875rem;
  color: var(--bs-body-color);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--bs-primary);
  color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary);
}

.input-group .select2-container--default .select2-selection--single {
  border-radius: .375rem;
}
