.referral-usage-content {
  max-height: 540px;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  margin: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

#referralUsageModal .referral-modal {
  border: none;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

@media (max-width: 576px) {
  .referral-widget-icon {
    width: 56px;
    height: 56px;
  }
  .referral-widget-icon i {
    font-size: 1.5rem;
  }
  .referral-stats .referral-stat-card {
    padding: 1rem 1.25rem;
  }
  .referral-stats .referral-stat-value {
    font-size: 1.5rem !important;
  }
  .referral-stats .referral-stat-label {
    font-size: 0.95rem !important;
  }
}

#referralUsageModal .modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
}

#referralUsageModal .modal-body {
  background: #f9fafb;
}

.referral-usage-content table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #eef1f5;
}

.referral-usage-content .table {
  margin-bottom: 0;
  color: #1f2937;
}

.referral-usage-content .table tbody tr:hover {
  background: #f7f9fb;
}

.referral-usage-content .table td,
.referral-usage-content .table th {
  vertical-align: middle;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #f0f2f5;
}

.referral-usage-content .badge {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

.referral-loader {
  background: rgba(255, 255, 255, 0.92);
}

.show-image-detail {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50px;
}

.vh-ql-container {
  max-height: 172px;
  overflow-y: auto;
  min-height: 172px;
}

.modal-right.modal.fade .modal-dialog-right {
  transform: translateY(0) translateX(0) !important;
}

.modal-right .modal-dialog-right {
  transform: translateY(-50px) !important;
}

.vh-ql-container {
  border: 1px solid #eff2f5;
  border-top: 0;
  border-bottom-right-radius: 0.475rem;
  border-bottom-left-radius: 0.475rem;
}

.w-125px {
  width: 125px !important;
}

.w-40px {
  width: 40px !important;
}

.img-radio {
  border-radius: 5px;
  cursor: pointer;
  display: block;
  height: auto;
  margin: auto;
  padding: 5px;
  position: relative;
  width: 100%;
}

.img-radio img {
  height: 400px;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top;
  object-position: top;
  transform-origin: 50% 50%;
  transition-duration: 0.2s;
  transition: all 5s ease;
  width: 100%;
}

.logo-fix-size {
  max-height: 60px !important;
  max-width: 120px !important;
  width: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

#showFaqModal .modal-content {
  min-height: 100%;
}

#showPagesModal .modal-content {
  min-height: 100%;
}

#showInquiriesModal .modal-content {
  min-height: 100%;
}

#showCampaignFaqModal .modal-content {
  min-height: 100%;
}

#showCampaignUpdateModal .modal-content {
  min-height: 100%;
}

#showTransactionModal .modal-content {
  min-height: 100%;
}

#showGiftTransactionModal .modal-content {
  min-height: 100%;
}

#showWithdrawModal .modal-content {
  min-height: 100%;
}

#paypalPaymentDetailsShowModel .modal-content {
  min-height: 100%;
}

.overflow-x-hidden {
  overflow-x: hidden !important;
}

.swal-modal .swal-text {
  text-align: center;
}

.progress {
  display: flex;
  width: 60px;
  height: 60px !important;
  border-radius: 50% !important;
  background: conic-gradient(#28a745 var(--progress), #adb5bd 0%);
  font-size: 0;
  animation: 1.8s ease-out turn_in reverse;
}

.progress::after {
  content: attr(data-progress) "%";
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  margin: 5px;
  border-radius: 50%;
  background: white;
  font-size: 11px;
  text-align: center;
}

#bankPaymentDetailsShowModel .modal-content {
  min-height: 100%;
}

.img-radio.img-border {
  border: 3px solid #0b9ef7 !important;
  border-radius: 10px !important;
}

.img-box > input {
  display: none;
}

.template-border {
  border: 3px solid #0b9ef7 !important;
  border-radius: 10px !important;
}

.btn-check:focus + .btn {
  outline: unset !important;
  box-shadow: unset !important;
}

.btn:focus {
  outline: unset !important;
  box-shadow: unset !important;
}

.screen.image {
  padding: 5px;
  display: block;
  position: relative;
  cursor: pointer;
  width: 100%;
  margin: auto;
  border-radius: 5px;
  height: auto;
}

.screen.image img {
  width: 100%;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  height: 400px;
  transition: 5s all ease;
}

.screen.image:hover img {
  -o-object-position: bottom;
     object-position: bottom;
}

.img-radio {
  padding: 5px;
  display: block;
  position: relative;
  cursor: pointer;
  width: 100%;
  margin: auto;
  border-radius: 5px;
  height: auto;
}

.img-radio img {
  width: 100%;
  transition-duration: 0.2s;
  transform-origin: 50% 50%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
  height: 400px;
  transition: 5s all ease;
}

.img-radio:hover img {
  -o-object-position: bottom;
     object-position: bottom;
}

.img-radio.img-border {
  border: 3px solid #0b9ef7 !important;
  border-radius: 10px !important;
}

@keyframes turn_in {
  5% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.95), #adb5bd 0deg);
  }
  10% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.9), #adb5bd 0deg);
  }
  15% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.85), #adb5bd 0deg);
  }
  20% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.8), #adb5bd 0deg);
  }
  25% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.75), #adb5bd 0deg);
  }
  30% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.7), #adb5bd 0deg);
  }
  35% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.65), #adb5bd 0deg);
  }
  40% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.6), #adb5bd 0deg);
  }
  45% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.55), #adb5bd 0deg);
  }
  50% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.5), #adb5bd 0deg);
  }
  55% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.45), #adb5bd 0deg);
  }
  60% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.4), #adb5bd 0deg);
  }
  65% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.35), #adb5bd 0deg);
  }
  70% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.3), #adb5bd 0deg);
  }
  75% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.25), #adb5bd 0deg);
  }
  80% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.2), #adb5bd 0deg);
  }
  85% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.15), #adb5bd 0deg);
  }
  90% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.1), #adb5bd 0deg);
  }
  95% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.05), #adb5bd 0deg);
  }
  100% {
    background: conic-gradient(#5272fc calc(var(--progress) * 0.05), #adb5bd 0deg);
  }
}

@media (min-width: 501px) {
  .swal-modal {
    width: 410px;
  }
}

.swal-icon--custom img {
  height: 80px;
  width: 74px;
}

.gift-field-wrap {
  position: relative;
  background-color: #f2f2f2;
  padding: 30px;
  padding-right: 70px;
  margin-bottom: 10px;
}

.dropzone .dz-error-message {
  margin-top: 10px;
}

.dropzone .dz-image img {
  width: 120px;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Wallet cards text block */

.wallet-widget-text {
  text-align: right;
}

/* For platform summary cards where you wanted a bit narrower text area */

.platform-widget-text {
  max-width: 70%;
  margin-left: auto;
}

/* Amount + Riyal icon in one line */

.value-with-icon {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

/* Riyal icon */

.riyal-icon {
  width: 18px;
  height: 18px;
  -o-object-fit: contain;
     object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .platform-widget-text {
    max-width: 100%;
  }
  .riyal-icon {
    width: 16px;
    height: 16px;
  }
}

/* Open-ended offering header blocks */

.open-ended-info {
  flex-wrap: wrap;
  gap: 1rem;
}

.open-ended-info > div {
  min-width: 220px;
}

@media (max-width: 768px) {
  .open-ended-info > div {
    min-width: 100%;
  }
}

/* Open-ended KPI cards */

.open-ended-kpis .widget .shadow-md {
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.open-ended-kpis .widget h2 {
  font-size: 1.5rem;
}

.open-ended-kpis .widget h3 {
  font-size: 1rem;
}

.open-ended-kpis .widget .widget-icon {
  width: 64px;
  height: 64px;
}

.open-ended-kpis .widget .widget-icon i {
  font-size: 1.5rem;
}

@media (max-width: 1560px) {
  .open-ended-kpis .widget .shadow-md {
    padding: 1rem 1.25rem;
  }
  .open-ended-kpis .widget h2 {
    font-size: 1.25rem;
  }
  .open-ended-kpis .widget h3 {
    font-size: 0.95rem;
  }
}

.custom-filters-dropdown {
  width: 300px;
  display: none;
  max-height: 500px;
  overflow-y: auto;
  position: fixed !important;
  bottom: 0px;
  right: 0px;
  transform: none !important;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 1050;
}

.custom-filters-dropdown.show {
  display: block;
}
