html[lang^="fa"],
body[lang^="fa"] {
  direction: rtl;
  text-align: right;
}

html[lang^="fa"] body,
html[lang^="fa"] button,
html[lang^="fa"] input,
html[lang^="fa"] select,
html[lang^="fa"] textarea,
html[lang^="fa"] .btn,
html[lang^="fa"] .card,
html[lang^="fa"] .dropdown-menu,
html[lang^="fa"] .modal,
html[lang^="fa"] .offcanvas,
html[lang^="fa"] .table,
html[lang^="fa"] .dataTables_wrapper,
html[lang^="fa"] .apexcharts-text,
html[lang^="fa"] .fc,
html[lang^="fa"] .fc *,
html[lang^="fa"] .select2-container,
html[lang^="fa"] .multiselect,
html[lang^="fa"] .form-control,
html[lang^="fa"] .form-select {
  font-family: "PeydaWeb", sans-serif !important;
}

html[lang^="fa"] :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .h1,
  .h2,
  .h3,
  .h4,
  .h5,
  .h6,
  p,
  span,
  div,
  li,
  a,
  label,
  small,
  td,
  th
) {
  font-family: "PeydaWeb", sans-serif !important;
}

html[lang^="fa"] div.dataTables_wrapper div.dataTables_length,
html[lang^="fa"] div.dataTables_wrapper div.dataTables_filter,
html[lang^="fa"] div.dataTables_wrapper div.dataTables_info,
html[lang^="fa"] div.dataTables_wrapper div.dataTables_paginate {
  text-align: right !important;
}

html[lang^="fa"] div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  justify-content: flex-start;
}

@media (min-width: 1200px) {
  html[lang^="fa"] header .navbar .iq-nav-menu > li:last-child {
    margin-right: 2.3125em !important;
  }
}

html[lang^="fa"] .flatpickr-calendar {
  direction: rtl;
}

html[lang^="fa"] .flatpickr-current-month.jalali-mode .flatpickr-monthDropdown-months,
html[lang^="fa"] .flatpickr-current-month.jalali-mode .numInputWrapper {
  display: none !important;
}

html[lang^="fa"] .flatpickr-current-month .jalali-current-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-weight: 700;
  font-size: 0.95rem;
}

html[lang^="fa"] .tel-input-ltr.vue-tel-input,
html[lang^="fa"] .tel-input-ltr .vue-tel-input,
html[lang^="fa"] .tel-input-ltr .vti__dropdown,
html[lang^="fa"] .tel-input-ltr .vti__dropdown-list,
html[lang^="fa"] .tel-input-ltr .vti__input {
  direction: ltr !important;
  text-align: left !important;
}

html[lang^="fa"] .tel-input-ltr .vti__dropdown {
  order: 0 !important;
  border-radius: 6px 0 0 6px !important;
}

html[lang^="fa"] .tel-input-ltr .vti__input {
  border-radius: 0 6px 6px 0 !important;
}

html[lang^="fa"] .fa-clinic-info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

html[lang^="fa"] .fa-clinic-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(60, 72, 88, 0.12);
  border-radius: 14px;
  background: #fff;
  direction: rtl;
  min-height: 76px;
}

html[lang^="fa"] .fa-clinic-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #3d5afe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[lang^="fa"] .fa-clinic-info-icon i {
  font-size: 1.1rem;
}

html[lang^="fa"] .fa-clinic-info-content {
  direction: rtl;
  text-align: right;
  min-width: 0;
  width: 100%;
}

html[lang^="fa"] .fa-clinic-info-title {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 2px;
}

html[lang^="fa"] .fa-clinic-info-value {
  color: #1f2937;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

html[lang^="fa"] .fa-clinic-phone-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[lang^="fa"] .fa-clinic-phone-link {
  color: #0b57d0 !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

html[lang^="fa"] .fa-clinic-email-link,
html[lang^="fa"] .fa-clinic-route-link,
html[lang^="fa"] .fa-clinic-address-text {
  color: #0b57d0;
  text-decoration: none;
  font-weight: 600;
}

html[lang^="fa"] .fa-type-route .fa-clinic-info-icon {
  background: #e9f8ef;
  color: #15803d;
}

html[lang^="fa"] .fa-type-route .fa-clinic-info-value a {
  color: #0b57d0 !important;
  font-weight: 700;
  text-decoration: none;
}

html[lang^="fa"] .fa-clinic-info-card[data-slot="4"] {
  grid-column: 1 / 3;
}

html[lang^="fa"] .fa-clinic-info-card[data-slot="5"] {
  grid-column: 3 / 4;
}

@media (max-width: 575.98px) {
  html[lang^="fa"] .fa-clinic-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  html[lang^="fa"] .fa-clinic-info-card {
    padding: 10px;
    gap: 8px;
    min-height: 70px;
  }

  html[lang^="fa"] .fa-clinic-info-icon {
    width: 34px;
    height: 34px;
  }

  html[lang^="fa"] .fa-clinic-info-title {
    font-size: 0.74rem;
  }

  html[lang^="fa"] .fa-clinic-info-value,
  html[lang^="fa"] .fa-clinic-phone-link,
  html[lang^="fa"] .fa-clinic-email-link,
  html[lang^="fa"] .fa-clinic-route-link,
  html[lang^="fa"] .fa-clinic-address-text {
    font-size: 0.88rem;
  }

  html[lang^="fa"] .fa-clinic-info-card[data-slot="4"],
  html[lang^="fa"] .fa-clinic-info-card[data-slot="5"] {
    grid-column: auto;
  }
}
