/* =========================================================
   Sadaa Design System — Components v1.0
   صدى المتاجر

   المكونات الحالية: Buttons + Forms / Inputs + Switches / Toggles + Date / Time / Flatpickr + File Upload / Media Inputs + Accordion / Collapsible Sections
   جميع المكونات هنا Opt-in ولا تغيّر عناصر الموقع القديمة تلقائياً.
   ========================================================= */

/* =========================================================
   Buttons
   ========================================================= */
.sadaa-btn {
  --sadaa-btn-height: var(--sadaa-control-base, 42px);
  --sadaa-btn-padding-inline: 16px;
  --sadaa-btn-gap: 8px;
  --sadaa-btn-radius: var(--sadaa-radius-button, 8px);
  --sadaa-btn-font-size: var(--sadaa-font-size-md, 14px);
  --sadaa-btn-font-weight: var(--sadaa-font-weight-medium, 500);

  min-height: var(--sadaa-btn-height);
  padding: 8px var(--sadaa-btn-padding-inline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sadaa-btn-gap);
  box-sizing: border-box;
  border: var(--sadaa-border-width, 1px) solid transparent;
  border-radius: var(--sadaa-btn-radius);
  font-family: var(--sadaa-font-family, var(--site-font-family, Tahoma, Arial, sans-serif));
  font-size: var(--sadaa-btn-font-size);
  font-weight: var(--sadaa-btn-font-weight);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--sadaa-transition-base, 180ms ease),
    border-color var(--sadaa-transition-base, 180ms ease),
    color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease);
}

.sadaa-btn > i,
.sadaa-btn > svg,
.sadaa-btn > .sadaa-btn__icon {
  flex: 0 0 auto;
}

.sadaa-btn:focus-visible {
  outline: 3px solid var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .14));
  outline-offset: 2px;
}

.sadaa-btn[disabled],
.sadaa-btn[aria-disabled="true"],
.sadaa-btn.is-disabled {
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
}

/* Admin Buttons — أزرار لوحة التحكم
   تستخدم ألوان هوية لوحة الإدارة وتتفوق بصرياً على الأنماط المحلية القديمة
   بدون تغيير أبعاد التخطيط الخاصة بكل تبويب. */
.sadaa-btn.sadaa-btn--admin-primary {
  background: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  color: #fff !important;
}

.sadaa-btn.sadaa-btn--admin-primary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--sadaa-admin-hover, var(--sadaa-primary-dark)) !important;
  border-color: var(--sadaa-admin-hover, var(--sadaa-primary-dark)) !important;
  color: #fff !important;
}

.sadaa-btn.sadaa-btn--admin-secondary {
  background: #fff !important;
  border-color: var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  color: var(--sadaa-admin-text, var(--sadaa-text-2, #374151)) !important;
}

.sadaa-btn.sadaa-btn--admin-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--sadaa-admin-soft, var(--sadaa-tint-3, #f8fafc)) !important;
  border-color: var(--sadaa-admin-soft-line, var(--sadaa-line-3, #cbd5e1)) !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-btn.sadaa-btn--admin-soft {
  background: var(--sadaa-admin-soft, var(--sadaa-tint, #f5f7f9)) !important;
  border-color: var(--sadaa-admin-soft-line, var(--sadaa-line-2, #e2e8f0)) !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-btn.sadaa-btn--admin-soft:hover:not(:disabled):not([aria-disabled="true"]) {
  background: rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .08) !important;
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-btn.sadaa-btn--admin-light {
  background: #fff !important;
  border-color: rgba(255,255,255,.34) !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-btn.sadaa-btn--admin-light:hover:not(:disabled):not([aria-disabled="true"]) {
  background: rgba(255,255,255,.94) !important;
  border-color: #fff !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-btn.sadaa-btn--admin-danger-soft {
  background: var(--sadaa-danger-soft, #fff5f4) !important;
  border-color: var(--sadaa-danger-line, #f3b7b2) !important;
  color: var(--sadaa-danger, #b42318) !important;
}

.sadaa-btn.sadaa-btn--admin-danger-soft:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--sadaa-danger-soft-hover, #feeceb) !important;
  border-color: var(--sadaa-danger, #b42318) !important;
  color: var(--sadaa-danger, #b42318) !important;
}

.sadaa-btn.sadaa-btn--admin-icon {
  --sadaa-btn-height: 34px;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
}

.sadaa-btn.sadaa-btn--admin-primary:focus-visible,
.sadaa-btn.sadaa-btn--admin-secondary:focus-visible,
.sadaa-btn.sadaa-btn--admin-soft:focus-visible,
.sadaa-btn.sadaa-btn--admin-light:focus-visible,
.sadaa-btn.sadaa-btn--admin-danger-soft:focus-visible {
  outline-color: rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .22) !important;
}

.sadaa-btn.sadaa-btn--admin-primary:disabled,
.sadaa-btn.sadaa-btn--admin-secondary:disabled,
.sadaa-btn.sadaa-btn--admin-soft:disabled,
.sadaa-btn.sadaa-btn--admin-danger-soft:disabled,
.sadaa-btn.sadaa-btn--admin-primary[aria-disabled="true"],
.sadaa-btn.sadaa-btn--admin-secondary[aria-disabled="true"],
.sadaa-btn.sadaa-btn--admin-soft[aria-disabled="true"],
.sadaa-btn.sadaa-btn--admin-danger-soft[aria-disabled="true"] {
  opacity: .48 !important;
  filter: saturate(.65);
}

/* Primary — الإجراء الرئيسي */
.sadaa-btn--primary {
  background: var(--sadaa-primary);
  border-color: var(--sadaa-primary);
  color: #fff;
}

.sadaa-btn--primary:hover {
  background: var(--sadaa-primary-dark);
  border-color: var(--sadaa-primary-dark);
  color: #fff;
}

/* Secondary — الإجراء الثانوي الهادئ */
.sadaa-btn--secondary {
  background: var(--sadaa-surface, #fff);
  border-color: var(--sadaa-line, #e5e7eb);
  color: var(--sadaa-text-2, #374151);
}

.sadaa-btn--secondary:hover {
  background: var(--sadaa-tint-3, #f8fafc);
  border-color: var(--sadaa-line-3, #cbd5e1);
  color: var(--sadaa-primary-dark);
}

/* Soft — ظهور خفيف من لون الهوية */
.sadaa-btn--soft {
  background: var(--sadaa-tint, #f5f7f9);
  border-color: var(--sadaa-line-2, #e2e8f0);
  color: var(--sadaa-primary-dark);
}

.sadaa-btn--soft:hover {
  background: var(--sadaa-tint-2, #eef4f7);
  border-color: var(--sadaa-line-3, #cbd5e1);
  color: var(--sadaa-primary-dark);
}

/* Ghost — للأدوات البسيطة داخل البطاقات والجداول */
.sadaa-btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--sadaa-text-2, #374151);
}

.sadaa-btn--ghost:hover {
  background: var(--sadaa-tint-3, #f8fafc);
  color: var(--sadaa-primary-dark);
}

/* Danger / Success — حالات دلالية وليست ألوان هوية */
.sadaa-btn--danger {
  background: var(--sadaa-danger, #b42318);
  border-color: var(--sadaa-danger, #b42318);
  color: #fff;
}

.sadaa-btn--danger:hover {
  background: var(--sadaa-danger-dark, #912018);
  border-color: var(--sadaa-danger-dark, #912018);
  color: #fff;
}

.sadaa-btn--danger-soft {
  background: var(--sadaa-danger-soft, #fff5f4);
  border-color: var(--sadaa-danger-line, #f3b7b2);
  color: var(--sadaa-danger, #b42318);
}

.sadaa-btn--danger-soft:hover {
  background: var(--sadaa-danger-soft-hover, #feeceb);
  border-color: var(--sadaa-danger, #b42318);
}

.sadaa-btn--success {
  background: var(--sadaa-success, #067647);
  border-color: var(--sadaa-success, #067647);
  color: #fff;
}

.sadaa-btn--success:hover {
  background: var(--sadaa-success-dark, #05603a);
  border-color: var(--sadaa-success-dark, #05603a);
  color: #fff;
}

/* Inverse — فوق الخلفيات الملونة */
.sadaa-btn--light {
  background: #fff;
  border-color: rgba(255,255,255,.9);
  color: var(--sadaa-primary-dark);
}

.sadaa-btn--light:hover {
  background: rgba(255,255,255,.92);
  border-color: #fff;
  color: var(--sadaa-primary-dark);
}

/* Sizes */
.sadaa-btn--xs {
  --sadaa-btn-height: var(--sadaa-control-xs, 32px);
  --sadaa-btn-padding-inline: 10px;
  --sadaa-btn-gap: 6px;
  --sadaa-btn-font-size: var(--sadaa-font-size-xs, 12px);
}

.sadaa-btn--sm {
  --sadaa-btn-height: var(--sadaa-control-sm, 34px);
  --sadaa-btn-padding-inline: 12px;
  --sadaa-btn-gap: 6px;
  --sadaa-btn-font-size: var(--sadaa-font-size-sm, 13px);
}

.sadaa-btn--md {
  --sadaa-btn-height: var(--sadaa-control-md, 38px);
  --sadaa-btn-padding-inline: 14px;
  --sadaa-btn-font-size: var(--sadaa-font-size-sm, 13px);
}

.sadaa-btn--lg {
  --sadaa-btn-height: var(--sadaa-control-lg, 46px);
  --sadaa-btn-padding-inline: 20px;
}

.sadaa-btn--xl {
  --sadaa-btn-height: var(--sadaa-control-xl, 48px);
  --sadaa-btn-padding-inline: 22px;
  --sadaa-btn-font-size: var(--sadaa-font-size-base, 16px);
}

/* Utilities */
.sadaa-btn--full {
  width: 100%;
}

.sadaa-btn--icon {
  width: var(--sadaa-btn-height);
  min-width: var(--sadaa-btn-height);
  padding-inline: 0;
  aspect-ratio: 1;
}

.sadaa-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sadaa-space-4, 10px);
}

@media (max-width: 480px) {
  .sadaa-btn-group--stack-mobile {
    align-items: stretch;
    flex-direction: column;
  }

  .sadaa-btn-group--stack-mobile > .sadaa-btn {
    width: 100%;
  }
}

/* =========================================================
   Responsive Button Groups
   نمط عام لترتيب مجموعات الإجراءات عبر أحجام الشاشات
   ========================================================= */
.sadaa-btn-group--responsive {
  justify-content: center;
}

@media (max-width: 640px) {
  .sadaa-btn-group--responsive {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .sadaa-btn-group--responsive > .sadaa-btn {
    width: 100%;
    min-width: 0;
  }
}


/* عند وجود عدد فردي من الأزرار على شبكة الجوال، يمتد الزر الأخير على العمودين. */
@media (max-width: 640px) and (min-width: 411px) {
  .sadaa-btn-group--balanced > .sadaa-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 410px) {
  .sadaa-btn-group--responsive {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
  }
}

/* =========================================================
   Forms / Inputs System — v1.0
   مكونات النماذج المركزية — Opt-in
   ========================================================= */

.sadaa-form {
  color: var(--sadaa-text, #111827);
  font-family: var(--sadaa-font-family, var(--site-font-family, Tahoma, Arial, sans-serif));
}

.sadaa-form-grid {
  display: grid;
  column-gap: var(--sadaa-space-6, 14px);
  row-gap: var(--sadaa-space-7, 16px);
  min-width: 0;
}

.sadaa-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sadaa-field {
  display: grid;
  gap: var(--sadaa-space-2, 6px);
  min-width: 0;
}

.sadaa-field--full {
  grid-column: 1 / -1;
}

.sadaa-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sadaa-space-2, 6px);
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--sadaa-text, #111827);
  font-size: var(--sadaa-font-size-md, 14px);
  font-weight: var(--sadaa-font-weight-medium, 500);
  line-height: var(--sadaa-line-height-base, 1.7);
}

.sadaa-label__hint,
.sadaa-help {
  color: var(--sadaa-muted, #6b7280);
  font-size: var(--sadaa-font-size-xs, 12px);
  font-weight: var(--sadaa-font-weight-regular, 400);
  line-height: var(--sadaa-line-height-base, 1.7);
}

.sadaa-required {
  color: var(--sadaa-danger, #b42318);
}

.sadaa-input,
.sadaa-textarea,
.sadaa-select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: var(--sadaa-border-width, 1px) solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-field, 8px);
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
  font-family: inherit;
  font-size: var(--sadaa-font-size-md, 14px);
  font-weight: var(--sadaa-font-weight-regular, 400);
  line-height: var(--sadaa-line-height-base, 1.7);
  outline: none;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    color var(--sadaa-transition-base, 180ms ease);
}

.sadaa-input,
.sadaa-select {
  min-height: var(--sadaa-control-lg, 46px);
  padding: 9px 13px;
}

.sadaa-textarea {
  min-height: 150px;
  padding: 11px 13px;
  resize: vertical;
}

.sadaa-select {
  cursor: pointer;
}

/* Select shell — سهم موحد خارج عنصر select لتفادي تشوه قائمة المتصفح عند الفتح */
.sadaa-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.sadaa-select-shell > .sadaa-select,
.sadaa-select-shell > select {
  width: 100%;
  min-width: 0;
}

.sadaa-input::placeholder,
.sadaa-textarea::placeholder {
  color: var(--sadaa-muted, #6b7280);
  opacity: .82;
}

.sadaa-input:hover:not(:disabled):not([readonly]),
.sadaa-textarea:hover:not(:disabled):not([readonly]),
.sadaa-select:hover:not(:disabled) {
  border-color: var(--sadaa-line-3, #cbd5e1);
}

.sadaa-input:focus,
.sadaa-textarea:focus,
.sadaa-select:focus {
  border-color: var(--sadaa-primary);
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .13));
  background: var(--sadaa-surface, #fff);
}

.sadaa-input:focus-visible,
.sadaa-textarea:focus-visible,
.sadaa-select:focus-visible {
  outline: none;
}

.sadaa-input:disabled,
.sadaa-textarea:disabled,
.sadaa-select:disabled,
.sadaa-input[aria-disabled="true"],
.sadaa-textarea[aria-disabled="true"],
.sadaa-select[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--sadaa-tint-3, #f8fafc);
  color: var(--sadaa-muted, #6b7280);
  opacity: .72;
}

.sadaa-input[readonly],
.sadaa-textarea[readonly] {
  background: var(--sadaa-surface-alt, var(--sadaa-surface-alt));
  color: var(--sadaa-text-2, #374151);
}

/* Validation states — تُفعّل صراحةً حتى لا تظهر الأخطاء قبل تفاعل المستخدم */
.sadaa-field.is-error .sadaa-input,
.sadaa-field.is-error .sadaa-textarea,
.sadaa-field.is-error .sadaa-select,
.sadaa-input.is-error,
.sadaa-textarea.is-error,
.sadaa-select.is-error,
.sadaa-input[aria-invalid="true"],
.sadaa-textarea[aria-invalid="true"],
.sadaa-select[aria-invalid="true"] {
  border-color: var(--sadaa-danger, #b42318);
}

.sadaa-field.is-error .sadaa-input:focus,
.sadaa-field.is-error .sadaa-textarea:focus,
.sadaa-field.is-error .sadaa-select:focus,
.sadaa-input.is-error:focus,
.sadaa-textarea.is-error:focus,
.sadaa-select.is-error:focus,
.sadaa-input[aria-invalid="true"]:focus,
.sadaa-textarea[aria-invalid="true"]:focus,
.sadaa-select[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .12);
}

.sadaa-field.is-success .sadaa-input,
.sadaa-field.is-success .sadaa-textarea,
.sadaa-field.is-success .sadaa-select,
.sadaa-input.is-success,
.sadaa-textarea.is-success,
.sadaa-select.is-success {
  border-color: var(--sadaa-success, #067647);
}

.sadaa-field.is-success .sadaa-input:focus,
.sadaa-field.is-success .sadaa-textarea:focus,
.sadaa-field.is-success .sadaa-select:focus,
.sadaa-input.is-success:focus,
.sadaa-textarea.is-success:focus,
.sadaa-select.is-success:focus {
  box-shadow: 0 0 0 3px rgba(6, 118, 71, .12);
}

.sadaa-field-message {
  margin: 0;
  font-size: var(--sadaa-font-size-xs, 12px);
  line-height: var(--sadaa-line-height-base, 1.7);
}

.sadaa-field-message--error {
  color: var(--sadaa-danger, #b42318);
}

.sadaa-field-message--success {
  color: var(--sadaa-success, #067647);
}

/* =========================================================
   Checkbox / Radio System — v1
   عناصر اختيار موحدة، مستقلة عن شكل المتصفح الافتراضي.
   ========================================================= */
.sadaa-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sadaa-space-3, 8px);
  color: var(--sadaa-text-2, #374151);
  font-size: var(--sadaa-font-size-md, 14px);
  line-height: var(--sadaa-line-height-base, 1.7);
  cursor: pointer;
}

.sadaa-checkbox,
.sadaa-radio {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 3px 0 0;
  flex: 0 0 18px;
  border: 1px solid var(--sadaa-line-2, #d1d5db);
  background-color: var(--sadaa-surface, #fff);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  cursor: pointer;
  vertical-align: middle;
  transition:
    border-color var(--sadaa-transition-fast, .15s ease),
    background-color var(--sadaa-transition-fast, .15s ease),
    box-shadow var(--sadaa-transition-fast, .15s ease);
}

.sadaa-checkbox {
  border-radius: 5px;
}

.sadaa-radio {
  border-radius: 50%;
}

.sadaa-checkbox:hover:not(:disabled),
.sadaa-radio:hover:not(:disabled) {
  border-color: var(--sadaa-primary);
}

.sadaa-checkbox:focus-visible,
.sadaa-radio:focus-visible {
  outline: none;
  border-color: var(--sadaa-primary);
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.13));
}

.sadaa-checkbox:checked {
  border-color: var(--sadaa-primary);
  background-color: var(--sadaa-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='M3.2 8.3 6.5 11.3 12.8 4.8'/%3E%3C/svg%3E");
  background-size: 13px 13px;
}

.sadaa-radio:checked {
  border-color: var(--sadaa-primary);
  background-color: var(--sadaa-surface, #fff);
  background-image: radial-gradient(circle at center, var(--sadaa-primary) 0 4px, transparent 4.5px);
}

.sadaa-checkbox:disabled,
.sadaa-radio:disabled,
.sadaa-checkbox[aria-disabled="true"],
.sadaa-radio[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
  background-color: var(--sadaa-tint-3, #f3f4f6);
}

.sadaa-choice:has(.sadaa-checkbox:disabled),
.sadaa-choice:has(.sadaa-radio:disabled) {
  cursor: not-allowed;
  opacity: .72;
}

@media (max-width: 768px) {
  .sadaa-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .sadaa-field--full {
    grid-column: auto;
  }
}

/* =========================================================
   Select System — v1.1
   غلاف موحد للقوائم المنسدلة مع سهم مستقل ومتوافق مع RTL/LTR.
   ========================================================= */
.sadaa-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.sadaa-select-shell::after {
  content: "";
  position: absolute;
  inset-inline-end: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 0;
  border-right: 2px solid var(--sadaa-muted, #6b7280);
  border-bottom: 2px solid var(--sadaa-muted, #6b7280);
  transform: translateY(-68%) rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  transition: border-color var(--sadaa-transition-base, 180ms ease);
}

.sadaa-select-shell:focus-within::after {
  border-color: var(--sadaa-primary);
}

.sadaa-select-shell:has(.sadaa-select:disabled)::after,
.sadaa-select-shell:has(.sadaa-select[aria-disabled="true"])::after {
  border-color: var(--sadaa-muted, #6b7280);
  opacity: .58;
}

.sadaa-select-shell .sadaa-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-inline-end: 42px;
  background-image: none;
}

.sadaa-select-shell .sadaa-select::-ms-expand {
  display: none;
}

.sadaa-select option {
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
}


/* =========================================================
   Admin Form Controls / Toolbar — v1
   طبقة موحدة لحقول البحث والفلاتر داخل لوحة التحكم.
   لا تُطبّق إلا عند استخدام sadaa-controls--admin أو sadaa-control--admin.
   ========================================================= */
.sadaa-controls--admin .sadaa-input.sadaa-input,
.sadaa-controls--admin .sadaa-textarea.sadaa-textarea,
.sadaa-controls--admin .sadaa-select.sadaa-select,
.sadaa-input.sadaa-control--admin,
.sadaa-textarea.sadaa-control--admin,
.sadaa-select.sadaa-control--admin {
  border-color: var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  border-radius: var(--sadaa-radius-field, 8px) !important;
  background-color: var(--sadaa-surface, #fff) !important;
  color: var(--sadaa-admin-text, var(--sadaa-text, #111827)) !important;
}

/* أبعاد النماذج القياسية داخل لوحة التحكم؛ Toolbars تستثني نفسها أدناه. */
.sadaa-controls--admin .sadaa-input.sadaa-input,
.sadaa-controls--admin .sadaa-select.sadaa-select {
  width: 100% !important;
  min-height: var(--sadaa-control-lg, 46px) !important;
  padding: 9px 13px !important;
  font-size: var(--sadaa-font-size-md, 14px) !important;
}

.sadaa-controls--admin .sadaa-textarea.sadaa-textarea {
  width: 100% !important;
  min-height: 150px !important;
  padding: 11px 13px !important;
  font-size: var(--sadaa-font-size-md, 14px) !important;
}

/* عند استخدام الغلاف المركزي، نلغي سهم المتصفح/الصفحة القديمة بالكامل. */
.sadaa-controls--admin .sadaa-select-shell .sadaa-select.sadaa-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-inline-end: 42px !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
}

.sadaa-controls--admin .sadaa-input.sadaa-input:hover:not(:disabled):not([readonly]),
.sadaa-controls--admin .sadaa-textarea.sadaa-textarea:hover:not(:disabled):not([readonly]),
.sadaa-controls--admin .sadaa-select.sadaa-select:hover:not(:disabled),
.sadaa-input.sadaa-control--admin:hover:not(:disabled):not([readonly]),
.sadaa-textarea.sadaa-control--admin:hover:not(:disabled):not([readonly]),
.sadaa-select.sadaa-control--admin:hover:not(:disabled) {
  border-color: var(--sadaa-admin-soft-line, var(--sadaa-line-3, #cbd5e1)) !important;
}

.sadaa-controls--admin .sadaa-input.sadaa-input:focus,
.sadaa-controls--admin .sadaa-textarea.sadaa-textarea:focus,
.sadaa-controls--admin .sadaa-select.sadaa-select:focus,
.sadaa-input.sadaa-control--admin:focus,
.sadaa-textarea.sadaa-control--admin:focus,
.sadaa-select.sadaa-control--admin:focus {
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  box-shadow: 0 0 0 3px rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .10) !important;
  outline: none !important;
}

.sadaa-controls--admin .sadaa-input.sadaa-input::placeholder,
.sadaa-controls--admin .sadaa-textarea.sadaa-textarea::placeholder,
.sadaa-input.sadaa-control--admin::placeholder,
.sadaa-textarea.sadaa-control--admin::placeholder {
  color: var(--sadaa-admin-muted, var(--sadaa-muted, #6b7280)) !important;
  opacity: .82;
}

/* المقاس الموحّد لأزرار Toolbars؛ يحافظ على محاذاتها مع الحقول. */
.sadaa-btn.sadaa-btn--toolbar {
  --sadaa-btn-height: 42px;
  min-height: 42px !important;
  height: 42px !important;
}

/* المقاس الموحّد لحقول البحث والفلاتر في Toolbars. */
.sadaa-input--toolbar,
.sadaa-select--toolbar,
.sadaa-controls--admin .sadaa-input.sadaa-input--toolbar,
.sadaa-controls--admin .sadaa-select.sadaa-select--toolbar {
  min-height: 42px !important;
  height: 42px !important;
  padding-block: 8px !important;
  border-radius: var(--sadaa-radius-field, 8px) !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
}

/* حقل بحث بأيقونة داخلية، متوافق تلقائياً مع RTL/LTR. */
.sadaa-search-field {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: stretch;
  align-self: stretch;
}

.sadaa-search-field__icon {
  position: absolute !important;
  top: 50% !important;
  z-index: 2;
  width: 16px;
  text-align: center;
  transform: translateY(-50%) !important;
  color: var(--sadaa-admin-muted, var(--sadaa-muted, #6b7280)) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

/*
 * لوحة التحكم عربية RTL؛ نستخدم جهة فعلية هنا بدل الخصائص المنطقية
 * لأن بعض الحقول القديمة تعيد تعريف direction/padding داخل التبويب.
 * هذا يضمن أن الأيقونة تبقى يميناً وأن النص يبدأ بعدها بمسافة ثابتة.
 */
.sadaa-controls--admin .sadaa-search-field__icon {
  right: 14px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: auto !important;
  /* تحريك بصري ثابت 20px لليسار؛ لا يتأثر بقواعد right القديمة داخل التبويبات. */
  transform: translate(-20px, -50%) !important;
}

.sadaa-search-field > .sadaa-input,
.sadaa-search-field > input.sadaa-input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: start;
}

.sadaa-controls--admin .sadaa-search-field > .sadaa-input,
.sadaa-controls--admin .sadaa-search-field > input.sadaa-input {
  padding-right: 48px !important;
  padding-left: 13px !important;
  padding-inline-start: 48px !important;
  padding-inline-end: 13px !important;
  direction: rtl !important;
}

/*
 * dashboard.css يحتوي قاعدة قديمة باسم .search-form تضيف padding:20px.
 * كل نموذج بحث انتقل للنظام المركزي يلغي هذه المسافة هنا حتى تتساوى
 * حوافه مع الفلاتر وبقية عناصر الـ Toolbar في جميع التبويبات.
 */
.sadaa-controls--admin form.sadaa-form.search-form,
.sadaa-controls--admin .sadaa-form.search-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Selects داخل Toolbars تستخدم سهم النظام المركزي فقط. */
.sadaa-select-shell .sadaa-select--toolbar {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-inline-end: 40px !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
}

.sadaa-controls--admin .sadaa-select-shell::after {
  border-right-color: var(--sadaa-admin-muted, var(--sadaa-muted, #6b7280));
  border-bottom-color: var(--sadaa-admin-muted, var(--sadaa-muted, #6b7280));
}

.sadaa-controls--admin .sadaa-select-shell:focus-within::after {
  border-right-color: var(--sadaa-admin-primary, var(--sadaa-primary));
  border-bottom-color: var(--sadaa-admin-primary, var(--sadaa-primary));
}

/* =========================================================
   Switch / Toggle System — v1.0
   مفاتيح تشغيل/إيقاف مركزية ومتوافقة مع RTL ولوحة الإدارة.
   البنية الأساسية:
   <label class="sadaa-switch sadaa-switch--admin">
     <input class="sadaa-switch__input" type="checkbox">
     <span class="sadaa-switch__track" aria-hidden="true"></span>
   </label>
   ========================================================= */
.sadaa-switch {
  --sadaa-switch-width: 42px;
  --sadaa-switch-height: 24px;
  --sadaa-switch-thumb: 16px;
  --sadaa-switch-pad: 3px;
  --sadaa-switch-travel: 18px;
  --sadaa-switch-accent: var(--sadaa-primary);
  --sadaa-switch-focus-rgb: var(--sadaa-primary-rgb);

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sadaa-switch--admin {
  --sadaa-switch-accent: var(--sadaa-admin-primary, var(--sadaa-primary));
  --sadaa-switch-focus-rgb: var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb));
}

.sadaa-switch--sm {
  --sadaa-switch-width: 36px;
  --sadaa-switch-height: 20px;
  --sadaa-switch-thumb: 14px;
  --sadaa-switch-pad: 3px;
  --sadaa-switch-travel: 16px;
}

.sadaa-switch--lg {
  --sadaa-switch-width: 70px;
  --sadaa-switch-height: 38px;
  --sadaa-switch-thumb: 28px;
  --sadaa-switch-pad: 5px;
  --sadaa-switch-travel: 32px;
}

.sadaa-switch__input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
}

.sadaa-switch__track {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: var(--sadaa-switch-width);
  height: var(--sadaa-switch-height);
  flex: 0 0 var(--sadaa-switch-width);
  border: 1px solid var(--sadaa-line-3, #cbd5e1);
  border-radius: 999px;
  background: var(--sadaa-line-2, #e5e7eb);
  box-shadow: inset 0 1px 2px rgba(var(--sadaa-shadow-rgb, 17,24,39), .045);
  transition:
    background-color var(--sadaa-transition-fast, 160ms ease),
    border-color var(--sadaa-transition-fast, 160ms ease),
    box-shadow var(--sadaa-transition-fast, 160ms ease),
    opacity var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-switch__track::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: var(--sadaa-switch-pad);
  right: var(--sadaa-switch-pad);
  width: var(--sadaa-switch-thumb);
  height: var(--sadaa-switch-thumb);
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 1px 4px rgba(var(--sadaa-shadow-rgb, 17,24,39), .18);
  transition:
    transform var(--sadaa-transition-fast, 160ms ease),
    border-color var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-switch:hover .sadaa-switch__input:not(:disabled) + .sadaa-switch__track,
.sadaa-switch--button:hover:not(:disabled) > .sadaa-switch__track {
  border-color: var(--sadaa-switch-accent);
}

.sadaa-switch__input:checked + .sadaa-switch__track,
.sadaa-switch--button[aria-pressed="true"] > .sadaa-switch__track {
  background: var(--sadaa-switch-accent);
  border-color: var(--sadaa-switch-accent);
}

.sadaa-switch__input:checked + .sadaa-switch__track::after,
.sadaa-switch--button[aria-pressed="true"] > .sadaa-switch__track::after {
  transform: translateX(calc(-1 * var(--sadaa-switch-travel)));
}

.sadaa-switch__input:focus-visible + .sadaa-switch__track,
.sadaa-switch--button:focus-visible > .sadaa-switch__track {
  border-color: var(--sadaa-switch-accent);
  box-shadow: 0 0 0 3px rgba(var(--sadaa-switch-focus-rgb), .14);
  outline: none;
}

.sadaa-switch__input:disabled + .sadaa-switch__track,
.sadaa-switch--button:disabled > .sadaa-switch__track {
  opacity: .52;
  cursor: not-allowed;
}

.sadaa-switch:has(.sadaa-switch__input:disabled),
.sadaa-switch--button:disabled {
  cursor: not-allowed;
}

.sadaa-switch--button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: inherit;
  line-height: 1;
  box-shadow: none !important;
}

.sadaa-switch--button:hover:not(:disabled) {
  background: transparent !important;
  border-color: transparent !important;
}

.sadaa-switch--button:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .sadaa-switch__track,
  .sadaa-switch__track::after {
    transition: none;
  }
}

/* =========================================================
   Cards System — v1.0
   بطاقات صدى المتاجر المركزية
   ========================================================= */
.sadaa-card {
  min-width: 0;
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
  border: var(--sadaa-border, 1px solid #e5e7eb);
  border-radius: var(--sadaa-radius-card, 12px);
  box-shadow: var(--sadaa-shadow-none, none);
}

/* بطاقة محتوى رئيسية للصفحات التعريفية والقانونية. */
.sadaa-card--content {
  padding: 34px 36px;
  box-shadow: 0 8px 20px rgba(var(--sadaa-shadow-rgb, 17,24,39), .055);
}

/* بطاقة مساحة عمل رئيسية للوحات العضو والإدارة.
   تحافظ على الزوايا الأصغر والمساحة الداخلية المستخدمة في لوحات البيانات. */
.sadaa-card--workspace {
  padding: var(--sadaa-space-7, 16px);
  border-color: var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #fff);
  box-shadow: none;
}

/* نسخة مرتفعة قليلًا لمساحات العمل التي تحتاج فصلًا بصريًا هادئًا. */
.sadaa-card--workspace-raised {
  box-shadow: 0 10px 24px rgba(var(--sadaa-shadow-rgb, 17,24,39), .04);
}

/* بطاقة داخلية هادئة داخل بطاقة أو قسم أكبر. */
.sadaa-card--soft {
  background: var(--sadaa-surface-alt, #fbfdfe);
  border-color: var(--sadaa-line, #e5e7eb);
  box-shadow: none;
}

/* بطاقة مرفوعة للحالات التي تحتاج فصلًا بصريًا أوضح. */
.sadaa-card--raised {
  box-shadow: var(--sadaa-shadow-md, 0 8px 20px rgba(17,24,39,.075));
}

/* بطاقة نماذج رئيسية؛ تحفظ المساحة الداخلية المستخدمة في صفحات النماذج. */
.sadaa-card--form {
  padding: 30px;
}


/* بطاقة تفاعلية قابلة للنقر أو مرتبطة بإجراء. */
.sadaa-card--interactive {
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease);
}

.sadaa-card--interactive:hover {
  border-color: var(--sadaa-line-3, var(--sadaa-line-2, #d1d5db));
  box-shadow: var(--sadaa-shadow-sm, 0 2px 8px rgba(17,24,39,.055));
}

.sadaa-card--compact {
  padding: var(--sadaa-space-7, 16px);
}

.sadaa-card--section {
  padding: var(--sadaa-space-10, 24px);
}

.sadaa-card__header,
.sadaa-card__body,
.sadaa-card__footer {
  min-width: 0;
}

.sadaa-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sadaa-space-5, 12px);
}

.sadaa-card__title {
  margin: 0;
  color: var(--sadaa-text, #111827);
  font-size: var(--sadaa-font-size-lg, 18px);
  font-weight: var(--sadaa-font-weight-semibold, 600);
  line-height: var(--sadaa-line-height-heading, 1.45);
}

.sadaa-card__footer {
  margin-top: var(--sadaa-space-7, 16px);
}


/* =========================================================
   Internal Cards — v1.3
   بطاقات فرعية ومؤشرات أداء للوحات العضو والإدارة.
   ========================================================= */
.sadaa-card--subsection {
  padding: 14px;
  border-color: var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #fff);
  box-shadow: none;
}

.sadaa-card--metric {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 14px 14px 13px;
  border-color: var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #fff);
  box-shadow: none;
}

/* =========================================================
   Metric / Summary Cards — v1.0
   بطاقات الأرقام والملخصات في لوحات الإدارة والعضو.
   ========================================================= */
.sadaa-metric-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.sadaa-metric-card {
  --sadaa-metric-accent: var(--sadaa-primary);
  --sadaa-metric-border: var(--sadaa-line, #e5e7eb);
  --sadaa-metric-soft: var(--sadaa-surface-alt, #f8fafc);
  --sadaa-metric-value: var(--sadaa-text, #111827);
  min-width: 0;
  border-color: var(--sadaa-metric-border);
}

.sadaa-metric-card--admin {
  --sadaa-metric-accent: var(--sadaa-admin-primary, var(--sadaa-primary));
  --sadaa-metric-border: var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb));
  --sadaa-metric-soft: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc));
  --sadaa-metric-value: var(--sadaa-admin-dark, var(--sadaa-text, #111827));
}

.sadaa-metric-card--compact {
  min-height: 0;
  padding: 12px 13px;
}

.sadaa-metric-card--lg {
  min-height: 125px;
  padding: 17px;
}

.sadaa-metric-card--accent,
.sadaa-metric-card--accent-top {
  position: relative;
  overflow: hidden;
}

.sadaa-metric-card--accent::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--sadaa-metric-accent);
}

.sadaa-metric-card--accent-top::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: var(--sadaa-metric-accent);
}

.sadaa-metric-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sadaa-metric-card__label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--sadaa-muted, #6b7280);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
}

.sadaa-metric-card__label > i,
.sadaa-metric-card__label > svg {
  flex: 0 0 auto;
  color: var(--sadaa-metric-accent);
}

.sadaa-metric-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sadaa-metric-accent) 18%, var(--sadaa-metric-border));
  border-radius: 7px;
  background: color-mix(in srgb, var(--sadaa-metric-accent) 7%, #fff);
  color: var(--sadaa-metric-accent);
  font-size: 14px;
  line-height: 1;
}

.sadaa-metric-card__value {
  display: block;
  margin-top: 6px;
  color: var(--sadaa-metric-value);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sadaa-metric-card--lg .sadaa-metric-card__value {
  margin-top: 15px;
  font-size: 30px;
  line-height: 1;
}

.sadaa-metric-card__note {
  margin-top: 4px;
  color: var(--sadaa-muted, #6b7280);
  font-size: 11.5px;
  line-height: 1.7;
}

.sadaa-metric-card--lg .sadaa-metric-card__note {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .sadaa-metric-card--lg {
    min-height: 108px;
    padding: 14px;
  }

  .sadaa-metric-card--lg .sadaa-metric-card__value {
    font-size: 25px;
  }
}

@media (max-width: 768px) {
  .sadaa-card--content {
    padding: 24px 18px;
  }

  .sadaa-card--form {
    padding: 20px 16px;
  }
}

/* =========================================================
   Data Tables / Data Grids — v1.0
   أسطح البيانات والجداول المركزية في صدى المتاجر.
   تعمل مع <table> التقليدي أو CSS Grid المخصص للصفحات الإدارية.
   ========================================================= */
.sadaa-data-surface {
  min-width: 0;
  background: var(--sadaa-surface, #fff);
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  box-shadow: none;
}

.sadaa-data-surface--raised {
  box-shadow: var(--sadaa-shadow-sm, 0 2px 8px rgba(17,24,39,.055));
}

.sadaa-data-grid {
  width: 100%;
  min-width: 0;
}

.sadaa-data-head {
  background: var(--sadaa-tint-3, #f9fafb);
  color: var(--sadaa-text-2, #374151);
  border-bottom: 1px solid var(--sadaa-line, #e5e7eb);
}

.sadaa-data-row {
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
  border-bottom: 1px solid var(--sadaa-line, #e5e7eb);
  transition: background-color var(--sadaa-transition-fast, 150ms ease);
}

.sadaa-data-row:last-child {
  border-bottom: 0;
}

.sadaa-data-cell {
  min-width: 0;
}

/* Admin data-surface tone */
.sadaa-data-surface--admin {
  border-color: var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb));
  background: var(--sadaa-surface, #fff);
}

.sadaa-data-surface--admin .sadaa-data-head {
  background: var(--sadaa-admin-soft, #f8fafc);
  color: var(--sadaa-admin-dark);
  border-bottom-color: var(--sadaa-admin-line, #e5e7eb);
}

.sadaa-data-surface--admin .sadaa-data-row:hover {
  background: #fbfdff;
}

/* Native <table> variant — same visual language as data grids */
.sadaa-data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
}

.sadaa-data-table th,
.sadaa-data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--sadaa-line-soft, #eef1f5);
  color: var(--sadaa-text-2, #374151);
  font-size: var(--sadaa-font-size-sm, 13px);
  line-height: 1.6;
  vertical-align: middle;
}

.sadaa-data-table th {
  min-height: 44px;
  background: var(--sadaa-tint-3, #f9fafb);
  color: var(--sadaa-text-2, #374151);
  font-weight: var(--sadaa-font-weight-medium, 500);
  white-space: nowrap;
}

.sadaa-data-table tbody tr {
  background: var(--sadaa-surface, #fff);
  transition: background-color var(--sadaa-transition-fast, 150ms ease);
}

.sadaa-data-table tbody tr:hover {
  background: var(--sadaa-data-row-hover, #fbfdff);
}

.sadaa-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.sadaa-data-table--center th,
.sadaa-data-table--center td {
  text-align: center;
}

.sadaa-data-table--admin {
  --sadaa-data-row-hover: #fbfdff;
}

.sadaa-data-table--admin th {
  background: var(--sadaa-admin-soft, #f8fafc);
  color: var(--sadaa-admin-dark);
  border-bottom-color: var(--sadaa-admin-line, #e5e7eb);
}

/* =========================================================
   Empty State — v1.0
   حالة فارغة موحدة للجداول والقوائم والبطاقات.
   ========================================================= */
.sadaa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sadaa-space-3, 8px);
  min-width: 0;
  text-align: center;
  color: var(--sadaa-muted, #6b7280);
}

.sadaa-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-tint-3, #f3f4f6);
  color: var(--sadaa-muted, #6b7280);
  font-size: 16px;
}

.sadaa-empty-state__title {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

.sadaa-empty-state__text {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.sadaa-empty-state--section {
  padding: var(--sadaa-space-10, 24px);
}

.sadaa-empty-state--compact {
  padding: var(--sadaa-space-7, 16px);
}

/* =========================================================
   Page Headers — v1.0
   رؤوس الصفحات والتبويبات المركزية في صدى المتاجر.
   الخلفية/الزخارف تبقى للصفحة أو نوع اللوحة، بينما الهيكل
   والمسافات والعنوان والوصف والمعلومة الجانبية موحدة هنا.
   ========================================================= */
.sadaa-page-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  border: 0;
  border-radius: var(--sadaa-radius-md, 8px);
  color: #fff;
}

.sadaa-page-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sadaa-space-4, 16px);
  width: 100%;
  min-width: 0;
}

.sadaa-page-header__main {
  display: flex;
  align-items: center;
  gap: var(--sadaa-space-3, 12px);
  flex: 1 1 auto;
  min-width: 0;
}

.sadaa-page-header__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--sadaa-radius-md, 8px);
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: var(--sadaa-icon-sm, 16px);
}

.sadaa-page-header__content {
  flex: 1 1 auto;
  min-width: 0;
}

.sadaa-page-header__eyebrow {
  display: block;
  margin: 0 0 2px;
  color: rgba(255,255,255,.72);
  font-size: var(--sadaa-font-size-xs, 12px);
  line-height: 1.5;
}

.sadaa-page-header__title {
  margin: 0;
  color: #fff;
  font-size: var(--sadaa-font-size-xl, 20px);
  font-weight: var(--sadaa-font-weight-medium, 500);
  line-height: 1.5;
}

.sadaa-page-header__description {
  margin: 3px 0 0;
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-size: var(--sadaa-font-size-sm, 13px);
  line-height: 1.8;
}

.sadaa-page-header__actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sadaa-space-2, 8px);
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.sadaa-page-header__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--sadaa-radius-md, 8px);
  background: rgba(255,255,255,.13);
  color: #fff;
  font-size: var(--sadaa-font-size-sm, 13px);
  line-height: 1.4;
  white-space: nowrap;
}

/* المسافات الفعلية المعتمدة في لوحة العضو. */
.sadaa-page-header--member {
  padding: 18px 20px;
}

/* المسافات والرفع المعتمدان حاليًا في رؤوس لوحة الإدارة. */
.sadaa-page-header--admin {
  padding: 22px 24px;
  box-shadow: 0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .09);
}

.sadaa-page-header--admin .sadaa-page-header__meta {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
}

@media (max-width: 768px) {
  .sadaa-page-header--admin {
    padding: 18px;
  }
}

@media (max-width: 720px) {
  .sadaa-page-header--admin .sadaa-page-header__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex-basis: 34px;
    border-radius: 7px;
    font-size: 14px;
  }

  .sadaa-page-header--admin .sadaa-page-header__title {
    font-size: 17px;
    line-height: 1.4;
  }

  .sadaa-page-header--admin .sadaa-page-header__description {
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (max-width: 640px) {
  .sadaa-page-header--member {
    padding: 16px;
  }

  .sadaa-page-header--member .sadaa-page-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sadaa-page-header--member .sadaa-page-header__meta {
    width: 100%;
  }
}


/* =========================================================
   Badges / Status Pills — v1.0
   الشارات والحالات الدلالية المركزية في صدى المتاجر.
   Badges للمعلومات الصغيرة، وStatus Pills لحالات الطلبات والخدمات.
   ========================================================= */
.sadaa-badge,
.sadaa-status {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: middle;
}

.sadaa-badge > i,
.sadaa-status > i,
.sadaa-badge > svg,
.sadaa-status > svg {
  flex: 0 0 auto;
}

/* Badge: معلومة قصيرة مثل مميز / جديد / عدد / تصنيف. */
.sadaa-badge {
  gap: 5px;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: var(--sadaa-radius-pill, 999px);
  font-size: var(--sadaa-font-size-xs, 12px);
  font-weight: var(--sadaa-font-weight-medium, 500);
}

.sadaa-badge--brand {
  background: var(--sadaa-tint, var(--sadaa-tint-2));
  color: var(--sadaa-primary-dark);
  border-color: var(--sadaa-line-2, var(--sadaa-line-2));
}

.sadaa-badge--neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

.sadaa-badge--success {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.sadaa-badge--warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.sadaa-badge--danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.sadaa-badge--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* Status Pill: الحالة التشغيلية/الدفعية. */
.sadaa-status {
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
}

/* حالات عامة قابلة لإعادة الاستخدام. */
.sadaa-status--success,
.sadaa-status--active {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.sadaa-status--review,
.sadaa-status--scheduled,
.sadaa-status--payment-review {
  background: var(--sadaa-tint-2);
  color: var(--sadaa-primary-light);
  border-color: #ddd6fe;
}

.sadaa-status--warning,
.sadaa-status--expired {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.sadaa-status--pending {
  background: #fffbeb;
  color: #a16207;
  border-color: #fde68a;
}

.sadaa-status--neutral,
.sadaa-status--inactive,
.sadaa-status--cancelled {
  background: var(--sadaa-admin-soft, #f3f4f6);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line, #d1d5db);
}

.sadaa-status--info,
.sadaa-status--refunded,
.sadaa-status--refund-pending {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.sadaa-status--payment-pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.sadaa-status--danger,
.sadaa-status--payment-failed {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.sadaa-status--payment-expired {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

.sadaa-status--refund-failed,
.sadaa-status--compact {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 11px;
}

.sadaa-status--refund-failed {
  background: #fff7ed;
  color: #b45309;
  border-color: #fed7aa;
}

@media (max-width: 720px) {
  .sadaa-status {
    min-height: 25px;
    border-radius: 7px;
    font-size: 11px;
  }

  .sadaa-status--refund-failed,
  .sadaa-status--compact {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 11px;
  }
}

/* =========================================================
   Alerts — v1.0
   تنبيهات النجاح والخطأ والتحذير والمعلومة.
   ========================================================= */
/* =========================================================
   Alert stack
   يجمع التنبيهات المتتالية بمسافة داخلية موحدة،
   مع إبقاء المسافة بعد آخر تنبيه وقبل المحتوى التالي.
   ========================================================= */
.sadaa-alert-stack {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.sadaa-alert-stack > .sadaa-alert {
  margin-bottom: 0;
}

.sadaa-alert {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--sadaa-radius-field, 8px);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: start;
}

.sadaa-alert__icon {
  width: 18px;
  min-width: 18px;
  margin-top: .22em;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.sadaa-alert__body {
  flex: 1 1 auto;
  min-width: 0;
}

.sadaa-alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sadaa-alert li {
  margin: 0;
}

.sadaa-alert li + li {
  margin-top: 4px;
}

.sadaa-alert a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}

.sadaa-alert--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.sadaa-alert--error,
.sadaa-alert--danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.sadaa-alert--warning {
  background: #fff8f1;
  border-color: #fed7aa;
  color: #9a3412;
}

.sadaa-alert--info {
  background: #f4f9fd;
  border-color: var(--sadaa-admin-soft-line, #cfe3f3);
  color: #285477;
}

.sadaa-alert--compact {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 7px;
  font-weight: 500;
}

/* =========================================================
   Pagination — v1.0
   ترقيم صفحات مركزي للمناطق العامة ولوحات العضو والإدارة.
   ========================================================= */
.sadaa-pagination {
  --sadaa-pagination-active-bg: var(--sadaa-primary);
  --sadaa-pagination-active-border: var(--sadaa-primary);
  --sadaa-pagination-active-color: #ffffff;
  --sadaa-pagination-hover-bg: var(--sadaa-tint-3, #f8fafc);
  --sadaa-pagination-hover-border: var(--sadaa-line-3, #cbd5e1);
  --sadaa-pagination-hover-color: var(--sadaa-primary-dark);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 0;
}

.sadaa-pagination--dark {
  --sadaa-pagination-active-bg: #111827;
  --sadaa-pagination-active-border: #111827;
  --sadaa-pagination-hover-color: #111827;
}

.sadaa-pagination--admin {
  --sadaa-pagination-active-bg: var(--sadaa-admin-primary);
  --sadaa-pagination-active-border: var(--sadaa-admin-primary);
  --sadaa-pagination-hover-bg: var(--sadaa-admin-soft);
  --sadaa-pagination-hover-border: var(--sadaa-admin-soft-line);
  --sadaa-pagination-hover-color: var(--sadaa-admin-dark);
}

.sadaa-pagination__item,
.sadaa-pagination__gap {
  min-width: 34px;
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--sadaa-line, #d1d5db);
  border-radius: 7px;
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-text-2, #374151);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--sadaa-transition-fast, .15s ease),
    border-color var(--sadaa-transition-fast, .15s ease),
    color var(--sadaa-transition-fast, .15s ease),
    box-shadow var(--sadaa-transition-fast, .15s ease);
}

.sadaa-pagination__item:hover,
.sadaa-pagination__item:focus-visible {
  background: var(--sadaa-pagination-hover-bg);
  border-color: var(--sadaa-pagination-hover-border);
  color: var(--sadaa-pagination-hover-color);
  outline: none;
}

.sadaa-pagination__item:focus-visible {
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.14));
}

.sadaa-pagination__item.active,
.sadaa-pagination__item[aria-current="page"] {
  background: var(--sadaa-pagination-active-bg);
  border-color: var(--sadaa-pagination-active-border);
  color: var(--sadaa-pagination-active-color);
  font-weight: 500;
  pointer-events: none;
}

.sadaa-pagination__item.disabled,
.sadaa-pagination__item[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.sadaa-pagination__gap {
  border-color: transparent;
  background: transparent;
  color: var(--sadaa-muted, #6b7280);
  padding-inline: 5px;
}

@media (max-width: 720px) {
  .sadaa-pagination {
    gap: 4px;
    margin-top: 14px;
  }

  .sadaa-pagination__item,
  .sadaa-pagination__gap {
    min-width: 30px;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
  }
}

/* =========================================================
   Tabs / Sub-navigation — v1.0
   تبويبات داخلية قابلة لإعادة الاستخدام مع استجابة موحدة.
   ========================================================= */
.sadaa-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.sadaa-tab {
  min-width: 0;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--sadaa-line, #d1d5db);
  border-radius: 7px;
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-text-2, #374151);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--sadaa-transition-fast, .15s ease),
    border-color var(--sadaa-transition-fast, .15s ease),
    color var(--sadaa-transition-fast, .15s ease),
    box-shadow var(--sadaa-transition-fast, .15s ease);
}

.sadaa-tab:hover,
.sadaa-tab:focus-visible {
  background: var(--sadaa-tint-3, #f9fafb);
  border-color: var(--sadaa-line-3, #9ca3af);
  color: var(--sadaa-text, #111827);
  outline: none;
}

.sadaa-tab:focus-visible {
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.14));
}

.sadaa-tab.active,
.sadaa-tab[aria-current="page"],
.sadaa-tab[aria-selected="true"] {
  background: var(--sadaa-tint-2, #f3f4f6);
  border-color: var(--sadaa-line-3, #9ca3af);
  color: var(--sadaa-text, #111827);
  font-weight: 500;
}

.sadaa-tabs--admin .sadaa-tab:hover,
.sadaa-tabs--admin .sadaa-tab:focus-visible,
.sadaa-tabs--admin .sadaa-tab.active,
.sadaa-tabs--admin .sadaa-tab[aria-current="page"],
.sadaa-tabs--admin .sadaa-tab[aria-selected="true"] {
  background: var(--sadaa-admin-soft);
  border-color: var(--sadaa-admin-soft-line);
  color: var(--sadaa-admin-dark);
}

.sadaa-tabs--admin .sadaa-tab:hover i,
.sadaa-tabs--admin .sadaa-tab:focus-visible i,
.sadaa-tabs--admin .sadaa-tab.active i,
.sadaa-tabs--admin .sadaa-tab[aria-current="page"] i,
.sadaa-tabs--admin .sadaa-tab[aria-selected="true"] i {
  color: var(--sadaa-admin-primary);
}

@media (max-width: 900px) {
  .sadaa-tabs--responsive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sadaa-tabs--responsive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sadaa-tab {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12.5px;
  }
}


/* =========================================================
   Sadaa Design System — Navigation Controls v1
   Side navigation + nested navigation + mobile toggle
   ========================================================= */
.sadaa-nav-stack {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.sadaa-nav-item {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:42px;
  margin:0;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:7px;
  background:var(--sadaa-surface, #fff);
  color:#3c566c;
  text-align:right;
  text-decoration:none;
  cursor:pointer;
  font-family:var(--site-font-family, inherit);
  font-size:14px;
  font-weight:400;
  line-height:1.5;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}

.sadaa-nav-item::after {
  content:"";
  position:absolute;
  inset-inline-end:-1px;
  top:9px;
  bottom:9px;
  width:3px;
  border-radius:3px 0 0 3px;
  background:transparent;
}

.sadaa-nav-item > i,
.sadaa-nav-item__icon {
  width:31px;
  min-width:31px;
  height:31px;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#7893a8;
  background:#f4f8fb;
  border:1px solid #e4edf4;
  border-radius:6px;
  text-align:center;
  font-size:15px;
  line-height:1;
  transition:inherit;
}

.sadaa-nav-item:hover,
.sadaa-nav-item:focus-visible {
  background:#f8fbfd;
  border-color:#e3edf4;
  color:var(--sadaa-admin-dark, var(--sadaa-primary-dark));
  transform:translateX(-2px);
  outline:none;
}

.sadaa-nav-item:hover > i,
.sadaa-nav-item:focus-visible > i,
.sadaa-nav-item:hover .sadaa-nav-item__icon,
.sadaa-nav-item:focus-visible .sadaa-nav-item__icon {
  color:var(--sadaa-admin-primary, var(--sadaa-primary));
  background:var(--sadaa-admin-soft, var(--sadaa-tint));
  border-color:var(--sadaa-admin-soft-line, var(--sadaa-line-2));
}

.sadaa-nav-item.active,
.sadaa-nav-item[aria-current="page"] {
  background:var(--sadaa-admin-soft, var(--sadaa-tint));
  border-color:var(--sadaa-admin-soft-line, var(--sadaa-line-2));
  color:var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
}

.sadaa-nav-item.active::after,
.sadaa-nav-item[aria-current="page"]::after {
  background:var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-nav-item.active > i,
.sadaa-nav-item[aria-current="page"] > i,
.sadaa-nav-item.active .sadaa-nav-item__icon,
.sadaa-nav-item[aria-current="page"] .sadaa-nav-item__icon {
  width:31px;
  min-width:31px;
  height:31px;
  min-height:31px;
  flex:0 0 31px;
  box-sizing:border-box;
  padding:0;
  font-size:15px;
  line-height:1;
  color:#fff;
  background:var(--sadaa-admin-primary, var(--sadaa-primary));
  border-color:var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-nav-item--has-children {
  padding-inline-end:42px !important;
}

.sadaa-nav-item--has-children .sadaa-nav-chevron {
  position:absolute;
  inset-inline-end:10px;
  top:50%;
  width:22px;
  min-width:22px;
  height:22px;
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  color:var(--sadaa-muted, #6b7280);
  background:transparent;
  border:0;
  border-radius:6px;
  font-size:10px;
  line-height:1;
  transform:translateY(-50%);
  transition:transform .18s ease,color .18s ease,background-color .18s ease;
}

.sadaa-nav-item--has-children .sadaa-nav-chevron > i {
  width:auto;
  min-width:0;
  height:auto;
  margin:0;
  padding:0;
  display:block;
  color:inherit;
  background:transparent;
  border:0;
  border-radius:0;
  font-size:10px;
  line-height:1;
}

.sadaa-nav-item--has-children[aria-expanded="true"] .sadaa-nav-chevron {
  transform:translateY(-50%) rotate(-90deg);
  color:var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-nav-item--has-children:hover .sadaa-nav-chevron,
.sadaa-nav-item--has-children:focus-visible .sadaa-nav-chevron,
.sadaa-nav-item--has-children.active .sadaa-nav-chevron {
  color:var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-subnav {
  margin-top:4px;
  padding:4px 8px 2px 0;
  border-inline-start:1px solid var(--sadaa-admin-line, #e3edf4);
}

.sadaa-subnav__item {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:36px;
  margin:4px 0;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#60778b;
  text-align:right;
  text-decoration:none;
  font-size:13px;
  font-weight:400;
  line-height:1.5;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}

.sadaa-subnav__item > i {
  width:16px;
  min-width:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#7893a8;
  text-align:center;
  font-size:11px;
  line-height:1;
}

.sadaa-subnav__item:hover,
.sadaa-subnav__item:focus-visible {
  color:var(--sadaa-admin-dark, var(--sadaa-primary-dark));
  background:#f7fafc;
  border-color:#e4edf4;
  outline:none;
}

.sadaa-subnav__item:hover > i,
.sadaa-subnav__item:focus-visible > i,
.sadaa-subnav__item.active > i,
.sadaa-subnav__item[aria-current="page"] > i {
  color:var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-subnav__item.active,
.sadaa-subnav__item[aria-current="page"] {
  color:var(--sadaa-admin-dark, var(--sadaa-primary-dark));
  background:var(--sadaa-admin-soft, var(--sadaa-tint));
  border-color:var(--sadaa-admin-soft-line, var(--sadaa-line-2));
}

.sadaa-nav-toggle {
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:46px;
  margin:0 0 10px;
  padding:9px 12px;
  background:var(--sadaa-surface, #fff);
  border:1px solid var(--sadaa-admin-line, var(--sadaa-line));
  border-radius:7px;
  color:var(--sadaa-admin-dark, var(--sadaa-text));
  cursor:pointer;
  font-family:var(--site-font-family, inherit);
  font-size:14px;
  font-weight:400;
  box-shadow:0 8px 20px rgba(var(--sadaa-admin-dark-rgb), .035);
}

.sadaa-nav-toggle > i {
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  color:#fff;
  background:var(--sadaa-admin-primary, var(--sadaa-primary));
  font-size:13px;
}

@media (max-width:1100px) {
  .sadaa-nav-toggle--tablet { display:flex; }
}

@media (max-width:768px) {
  .sadaa-nav-toggle { display:flex; }
  .sadaa-nav-stack { gap:1px; }
  .sadaa-nav-item {
    min-height:40px;
    padding:5px 8px;
    font-size:13.5px;
  }
  .sadaa-nav-item:hover,
  .sadaa-nav-item:focus-visible { transform:none; }
}

/* =========================================================
   Sadaa Design System — Dropdown / Action Menus v1
   Reusable compact action menus. Position/open state stays
   owned by the consuming page so existing JS/HTML is safe.
   ========================================================= */
.sadaa-menu-trigger {
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--sadaa-line, #e5e7eb);
  border-radius:7px;
  background:var(--sadaa-surface, #fff);
  color:var(--sadaa-muted, #4b5563);
  cursor:pointer;
  font-family:var(--site-font-family, inherit);
  font-size:14px;
  line-height:1;
  list-style:none;
  text-decoration:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}

summary.sadaa-menu-trigger::-webkit-details-marker { display:none; }

.sadaa-menu-trigger:hover,
.sadaa-menu-trigger:focus-visible,
.sadaa-menu-trigger.active,
[open] > .sadaa-menu-trigger {
  background:rgba(var(--sadaa-primary-rgb), .11);
  border-color:rgba(var(--sadaa-primary-rgb), .34);
  color:var(--sadaa-primary-dark, var(--sadaa-primary));
  outline:none;
}

.sadaa-menu-trigger:focus-visible {
  box-shadow:0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.14));
}

.sadaa-menu-trigger--sm {
  width:32px;
  min-width:32px;
  height:32px;
}

.sadaa-menu-trigger--admin:hover,
.sadaa-menu-trigger--admin:focus-visible,
.sadaa-menu-trigger--admin.active,
[open] > .sadaa-menu-trigger--admin {
  background:rgba(var(--sadaa-primary-rgb), .11);
  border-color:rgba(var(--sadaa-primary-rgb), .34);
  color:var(--sadaa-primary-dark, var(--sadaa-primary));
}

.sadaa-menu {
  min-width:168px;
  padding:6px;
  border:1px solid var(--sadaa-line, #e5e7eb);
  border-radius:8px;
  background:var(--sadaa-surface, #fff);
  color:var(--sadaa-text, #1f2937);
  box-shadow:0 12px 26px rgba(var(--sadaa-shadow-rgb, 17,24,39), .12);
  direction:rtl;
  text-align:right;
}

.sadaa-menu--compact { min-width:154px; }
.sadaa-menu--wide { min-width:180px; }

.sadaa-menu__item {
  width:100%;
  min-height:36px;
  margin:0;
  padding:8px 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#374151;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-family:var(--site-font-family, inherit);
  font-size:13px;
  font-weight:400;
  line-height:1.45;
  text-align:right;
  text-decoration:none;
  white-space:nowrap;
  transition:background .14s ease,color .14s ease;
}

.sadaa-menu__item > i {
  width:16px;
  min-width:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.sadaa-menu__item:hover,
.sadaa-menu__item:focus-visible {
  background:rgba(var(--sadaa-primary-rgb), .12);
  color:var(--sadaa-primary-dark, var(--sadaa-primary));
  outline:none;
}

.sadaa-menu--admin .sadaa-menu__item:hover,
.sadaa-menu--admin .sadaa-menu__item:focus-visible {
  background:rgba(var(--sadaa-primary-rgb), .12);
  color:var(--sadaa-primary-dark, var(--sadaa-primary));
}

.sadaa-menu__item--danger,
.sadaa-menu__item--danger > i {
  color:#991b1b;
}

.sadaa-menu__item--danger:hover,
.sadaa-menu__item--danger:focus-visible {
  background:#fef2f2;
  color:#991b1b;
}

.sadaa-menu__divider {
  height:1px;
  margin:5px 4px;
  background:var(--sadaa-line, #e5e7eb);
}



/* Dropdown / Action Menus — migration hardening
   يجعل المكوّن المركزي هو المرجع البصري حتى مع بقاء CSS محلي قديم
   مسؤول فقط عن الشكل؛ التموضع وحالة الفتح تبقى للصفحة المستهلكة. */
.sadaa-menu-trigger {
  width:34px !important;
  min-width:34px !important;
  height:34px !important;
  padding:0 !important;
  border:1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius:7px !important;
  background:var(--sadaa-surface, #fff) !important;
  color:var(--sadaa-muted, #4b5563) !important;
  font-size:14px !important;
  line-height:1 !important;
  box-shadow:none !important;
}

.sadaa-menu-trigger:hover,
.sadaa-menu-trigger:focus-visible,
.sadaa-menu-trigger.active,
.sadaa-menu-trigger.is-open,
[open] > .sadaa-menu-trigger {
  background:rgba(var(--sadaa-primary-rgb), .11) !important;
  border-color:rgba(var(--sadaa-primary-rgb), .34) !important;
  color:var(--sadaa-primary-dark, var(--sadaa-primary)) !important;
}

.sadaa-menu-trigger--admin:hover,
.sadaa-menu-trigger--admin:focus-visible,
.sadaa-menu-trigger--admin.active,
.sadaa-menu-trigger--admin.is-open,
[open] > .sadaa-menu-trigger--admin {
  background:rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .11) !important;
  border-color:rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .34) !important;
  color:var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-menu {
  min-width:168px !important;
  padding:6px !important;
  border:1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius:8px !important;
  background:var(--sadaa-surface, #fff) !important;
  color:var(--sadaa-text, #1f2937) !important;
  box-shadow:0 12px 26px rgba(var(--sadaa-shadow-rgb, 17,24,39), .12) !important;
  direction:rtl !important;
  text-align:right !important;
}

.sadaa-menu--compact { min-width:154px !important; }
.sadaa-menu--wide { min-width:180px !important; }
.sadaa-menu::before { content:none !important; display:none !important; }

.sadaa-menu__item {
  width:100% !important;
  min-height:36px !important;
  margin:0 !important;
  padding:8px 9px !important;
  border:0 !important;
  border-radius:6px !important;
  background:transparent !important;
  color:#374151 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  font-family:var(--site-font-family, inherit) !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.45 !important;
  text-align:right !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}

.sadaa-menu__item:hover,
.sadaa-menu__item:focus-visible {
  background:rgba(var(--sadaa-primary-rgb), .12) !important;
  color:var(--sadaa-primary-dark, var(--sadaa-primary)) !important;
}

.sadaa-menu--admin .sadaa-menu__item:hover,
.sadaa-menu--admin .sadaa-menu__item:focus-visible {
  background:rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .12) !important;
  color:var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

.sadaa-menu__item--danger,
.sadaa-menu__item--danger > i {
  color:#991b1b !important;
}

.sadaa-menu__item--danger:hover,
.sadaa-menu__item--danger:focus-visible {
  background:#fef2f2 !important;
  color:#991b1b !important;
}

.sadaa-menu__item.is-disabled,
.sadaa-menu__item:disabled,
.sadaa-menu__item[aria-disabled="true"] {
  color:#9ca3af !important;
  background:transparent !important;
  opacity:.68 !important;
  cursor:not-allowed !important;
  pointer-events:none;
}

.sadaa-menu__divider {
  height:1px !important;
  margin:5px 4px !important;
  background:var(--sadaa-line, #e5e7eb) !important;
}

@media (max-width:720px) {
  .sadaa-menu-trigger {
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
  }
}


/* =========================================================
   Sadaa Design System — Modals / Dialogs v1
   طبقة مركزية للنوافذ المنبثقة بدون ربط منطق الفتح والإغلاق
   ========================================================= */
.sadaa-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sadaa-space-5, 20px);
  isolation: isolate;
}

.sadaa-modal.is-open,
.sadaa-modal[aria-hidden="false"].is-open {
  display: flex;
}

.sadaa-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 39, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sadaa-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-lg, 12px);
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-text, #111827);
  box-shadow: var(--sadaa-shadow-xl, 0 18px 42px rgba(17,24,39,.14));
}

.sadaa-modal__dialog--sm { width: min(420px, 100%); }
.sadaa-modal__dialog--md { width: min(560px, 100%); }
.sadaa-modal__dialog--lg { width: min(760px, 100%); }
.sadaa-modal__dialog--xl { width: min(960px, 100%); }

.sadaa-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sadaa-space-3, 12px);
  padding: 15px var(--sadaa-space-4, 16px);
  border-bottom: 1px solid var(--sadaa-line, #e5e7eb);
  background: var(--sadaa-surface-alt, #fbfdfe);
}

.sadaa-modal__heading {
  min-width: 0;
  flex: 1 1 auto;
}

.sadaa-modal__title {
  margin: 0;
  color: var(--sadaa-text, #111827);
  font-size: var(--sadaa-font-size-base, 16px);
  font-weight: var(--sadaa-font-weight-medium, 500);
  line-height: 1.5;
}

.sadaa-modal__subtitle {
  margin: 3px 0 0;
  color: var(--sadaa-muted, #6b7280);
  font-size: var(--sadaa-font-size-xs, 12px);
  line-height: 1.7;
}

.sadaa-modal__close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--sadaa-line-2, #d1d5db);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-text-2, #4b5563);
  cursor: pointer;
  transition:
    color var(--sadaa-transition-fast, .15s ease),
    border-color var(--sadaa-transition-fast, .15s ease),
    background-color var(--sadaa-transition-fast, .15s ease);
}

.sadaa-modal__close:hover,
.sadaa-modal__close:focus-visible {
  border-color: rgba(var(--sadaa-primary-rgb), .32);
  background: rgba(var(--sadaa-primary-rgb), .10);
  color: var(--sadaa-primary-dark);
  outline: none;
}

.sadaa-modal__close:focus-visible {
  box-shadow: 0 0 0 3px var(--sadaa-focus);
}

.sadaa-modal__header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sadaa-modal__icon-action {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--sadaa-line-2, #d1d5db);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-primary);
  cursor: pointer;
  transition:
    color var(--sadaa-transition-fast, .15s ease),
    border-color var(--sadaa-transition-fast, .15s ease),
    background-color var(--sadaa-transition-fast, .15s ease),
    box-shadow var(--sadaa-transition-fast, .15s ease);
}

.sadaa-modal__icon-action:hover,
.sadaa-modal__icon-action:focus-visible {
  border-color: rgba(var(--sadaa-primary-rgb), .34);
  background: rgba(var(--sadaa-primary-rgb), .11);
  color: var(--sadaa-primary-dark);
  outline: none;
}

.sadaa-modal__icon-action:focus-visible {
  box-shadow: 0 0 0 3px var(--sadaa-focus);
}

.sadaa-modal__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--sadaa-space-4, 16px);
  background: var(--sadaa-surface, #ffffff);
}

.sadaa-modal__footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sadaa-space-2, 8px);
  padding: 13px var(--sadaa-space-4, 16px);
  border-top: 1px solid var(--sadaa-line, #e5e7eb);
  background: var(--sadaa-surface, #ffffff);
}

@media (max-width: 600px) {
  .sadaa-modal--sheet-mobile {
    align-items: flex-end;
    padding: 10px;
  }

  .sadaa-modal--sheet-mobile .sadaa-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }

  .sadaa-modal__footer--split-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sadaa-modal__footer--split-mobile > .sadaa-btn,
  .sadaa-modal__footer--split-mobile > button,
  .sadaa-modal__footer--split-mobile > a {
    width: 100%;
  }
}


/* =========================================================
   Modals / Dialogs — v2 editor layouts
   تخطيط مركزي للنوافذ الكبيرة ذات النموذج + لوحة جانبية.
   ========================================================= */
.sadaa-modal.show {
  display: flex;
}

.sadaa-modal--backdrop-self {
  background: rgba(17, 24, 39, .52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.sadaa-modal__dialog--editor {
  width: min(890px, 100%);
}

.sadaa-modal__header--decorated {
  background:
    radial-gradient(circle at 10% 115%, rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .08) 0, rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .08) 74px, transparent 76px),
    linear-gradient(180deg, var(--sadaa-surface-alt, #fbfcfe) 0%, var(--sadaa-tint-3, #f7f9fc) 100%);
}

.sadaa-modal__title-wrap {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sadaa-modal__title-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sadaa-line-2, #d9e2f0);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #ffffff);
  color: var(--sadaa-primary);
  font-size: 15px;
}

.sadaa-modal__form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.sadaa-modal__body--split {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 0;
  min-height: 380px;
  overflow: auto;
}

.sadaa-modal__main {
  min-width: 0;
  padding: 18px;
}

.sadaa-modal__aside {
  min-width: 0;
  padding: 18px;
  border-inline-start: 1px solid var(--sadaa-line, #e7edf3);
  background: var(--sadaa-surface-alt, #fbfcfe);
}

.sadaa-modal__aside-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--sadaa-text-2, #374151);
  font-size: var(--sadaa-font-size-sm, 13px);
  font-weight: var(--sadaa-font-weight-medium, 500);
}

.sadaa-modal__aside-title i,
.sadaa-modal__aside-title svg {
  color: var(--sadaa-primary);
}

.sadaa-choice--panel {
  min-height: var(--sadaa-control-lg, 46px);
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-field, 8px);
  background: var(--sadaa-surface-alt, #fbfdfe);
}

@media (max-width: 760px) {
  .sadaa-modal--sheet-mobile.sadaa-modal--backdrop-self {
    align-items: flex-end;
    padding: 8px;
  }

  .sadaa-modal--sheet-mobile .sadaa-modal__dialog--editor {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: var(--sadaa-radius-lg, 12px) var(--sadaa-radius-lg, 12px) 0 0;
  }

  .sadaa-modal__form {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.sadaa-modal__body--split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sadaa-modal__body--split .sadaa-modal__aside {
    order: -1;
    padding: 14px;
    border-inline-start: 0;
    border-bottom: 1px solid var(--sadaa-line, #e7edf3);
  }

  .sadaa-modal__body--split .sadaa-modal__main {
    padding: 14px;
  }

  .sadaa-modal__body--split .sadaa-form-grid--2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sadaa-modal__body--split .sadaa-field--full {
    grid-column: auto;
  }
}

/* =========================================================
   Modals / Dialogs — v2.1 editor refinement
   تقسيم أوضح للنماذج الكبيرة + رسائل الحفظ داخل النافذة.
   ========================================================= */
.sadaa-modal__feedback {
  flex: 0 0 auto;
  padding: 14px 18px 0;
  background: var(--sadaa-surface, #ffffff);
}

.sadaa-modal__feedback[hidden] {
  display: none !important;
}

.sadaa-modal__feedback .sadaa-alert {
  margin: 0;
}

.sadaa-form-section {
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--sadaa-line, #e5e7eb);
}

.sadaa-form-section--last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sadaa-form-section__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
}

.sadaa-form-section__icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--sadaa-primary-rgb), .18);
  border-radius: var(--sadaa-radius-md, 8px);
  background: rgba(var(--sadaa-primary-rgb), .08);
  color: var(--sadaa-primary);
  font-size: 12px;
}

.sadaa-form-section__title {
  margin: 0;
  color: var(--sadaa-text, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.sadaa-form-section__description {
  margin: 2px 0 0;
  color: var(--sadaa-muted, #6b7280);
  font-size: 11px;
  line-height: 1.7;
}

.sadaa-modal__dialog--editor .sadaa-modal__main {
  padding: 20px;
}

.sadaa-modal__dialog--editor .sadaa-modal__aside {
  padding: 20px;
}

.sadaa-modal__dialog--editor .sadaa-form-grid {
  gap: 14px;
}

.sadaa-modal__dialog--editor .sadaa-choice--panel {
  background: var(--sadaa-surface, #ffffff);
}

@media (max-width: 760px) {
  .sadaa-modal__feedback {
    padding: 12px 14px 0;
  }

  .sadaa-form-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .sadaa-form-section__head {
    margin-bottom: 12px;
  }

  .sadaa-modal__dialog--editor .sadaa-modal__main,
  .sadaa-modal__dialog--editor .sadaa-modal__aside {
    padding: 14px;
  }
}

/* Store editor: compact text area for a better vertical balance. */
.sadaa-modal__dialog--editor .sadaa-textarea {
  min-height: 120px;
}


/* =========================================================
   Store editor refinements — v2.3
   ========================================================= */
/* Chevron واضح ومثبت لنافذة تعديل المتجر، بدون تغيير القوائم المعتمدة سابقاً. */
.sadaa-select-shell--modal::after {
  width: 16px;
  height: 16px;
  inset-inline-end: 14px;
  top: 50%;
  border: 0;
  background-color: var(--sadaa-muted, #6b7280);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transform: translateY(-50%);
}

.sadaa-select-shell--modal:focus-within::after {
  background-color: var(--sadaa-primary);
}

.sadaa-select-shell--modal .sadaa-select {
  padding-inline-end: 44px;
}

/* التصنيف وخيار التمييز يظهران بنفس الإيقاع والارتفاع. */
.directory-form-check--modal {
  width: 100%;
  min-height: var(--sadaa-control-lg, 46px);
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  padding: 9px 13px;
}

.directory-form-check--modal .sadaa-checkbox {
  margin-top: 0;
}


/* =========================================================
   Store editor refinements — v2.4 final visual alignment
   ========================================================= */
/* تقليل المسافة الرأسية بين مسمى الحقل وعنصر الإدخال داخل محرر المتجر. */
.sadaa-modal__dialog--editor .sadaa-field {
  gap: 3px;
}

.sadaa-modal__dialog--editor .sadaa-label {
  line-height: 1.4;
}

/* توحيد سهم التصنيف مع المثلث المقلوب المستخدم في القوائم الأخرى. */
.sadaa-select-shell--modal::after {
  width: 0;
  height: 0;
  inset-inline-end: 15px;
  top: 50%;
  border: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--sadaa-muted, #6b7280);
  background: none;
  -webkit-mask: none;
          mask: none;
  transform: translateY(-25%);
}

.sadaa-select-shell--modal:focus-within::after {
  background: none;
  border-top-color: var(--sadaa-primary);
}

/* تثبيت التصنيف وخيار التمييز على نفس خط الارتفاع تماماً. */
.sadaa-modal__dialog--editor .sadaa-select-shell--modal .sadaa-select,
.sadaa-modal__dialog--editor .directory-form-check--modal {
  height: var(--sadaa-control-lg, 46px);
  min-height: var(--sadaa-control-lg, 46px);
}

.sadaa-modal__dialog--editor .directory-form-check--modal {
  margin: 0;
  align-self: start;
  display: flex;
}

/* =========================================================
   Modals / Dialogs — v3 Welcome / Promotional modal
   نافذة مركزية للمحتوى الترحيبي أو الترويجي ذي الصورة العلوية.
   ========================================================= */
.sadaa-modal--welcome {
  padding: 16px;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sadaa-modal__dialog--welcome {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-color: rgba(15, 23, 42, .06);
  border-radius: var(--sadaa-radius-xl, 16px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
  transform: translateY(10px) scale(.985);
  transition: transform var(--sadaa-transition, .20s ease);
}

.sadaa-modal--welcome.is-open .sadaa-modal__dialog--welcome {
  transform: translateY(0) scale(1);
}

.sadaa-modal__hero {
  position: relative;
  flex: 0 0 auto;
  height: 168px;
  overflow: hidden;
  background: var(--sadaa-tint, #eef8fb);
}

.sadaa-modal__hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--sadaa-surface, #fff) 100%);
}

.sadaa-modal__hero-visual,
.sadaa-modal__hero-visual img {
  width: 100%;
  height: 100%;
}

.sadaa-modal__hero-visual img {
  display: block;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(1.02) contrast(1.02);
}

.sadaa-modal__close--hero {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  border-color: rgba(255,255,255,.48);
  background: rgba(255,255,255,.82);
  box-shadow: 0 6px 16px rgba(15,23,42,.10);
}

.sadaa-modal__close--hero:hover,
.sadaa-modal__close--hero:focus-visible {
  background: var(--sadaa-surface, #fff);
  transform: translateY(-1px);
}

.sadaa-modal__body--welcome {
  padding: 20px 28px 26px;
  overflow: auto;
  text-align: center;
}

.sadaa-modal__welcome-title {
  margin: 0 0 9px;
  color: var(--sadaa-text, #111827);
  font-family: 'Baloo Bhaijaan 2', var(--site-font-family), sans-serif !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.85;
}

.sadaa-modal__welcome-message {
  max-width: 420px;
  margin: 0 auto;
  color: var(--sadaa-muted, #6b7280);
  font-size: 14px;
  line-height: 1.95;
}

.sadaa-modal__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sadaa-modal__detail {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface-alt, #fbfdfe);
  color: var(--sadaa-text-2, #374151);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.sadaa-modal__detail > i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(var(--sadaa-primary-rgb), .10);
  color: var(--sadaa-primary);
  font-size: 11px;
}

.sadaa-modal__note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  margin: 13px 0 0;
  color: var(--sadaa-muted, #6b7280);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.sadaa-modal__note > i {
  margin-top: 3px;
  color: var(--sadaa-primary);
}

.sadaa-modal__welcome-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.sadaa-modal__welcome-action {
  min-width: 210px;
  box-shadow: 0 10px 20px rgba(var(--sadaa-primary-rgb), .18);
}

body.trial-welcome-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .sadaa-modal--welcome {
    padding: 12px;
  }

  .sadaa-modal__dialog--welcome {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .sadaa-modal__hero {
    height: 138px;
  }

  .sadaa-modal__body--welcome {
    padding: 20px 18px 22px;
  }

  .sadaa-modal__welcome-title {
    font-size: 18px;
    line-height: 1.9;
  }

  .sadaa-modal__welcome-message {
    font-size: 13px;
  }

  .sadaa-modal__detail-grid {
    grid-template-columns: 1fr;
  }

  .sadaa-modal__welcome-action {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   Sadaa Design System — Tooltips v1
   تلميحات موحّدة للأيقونات والعناصر الصغيرة.
   ========================================================= */
.sadaa-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  vertical-align: middle;
  outline: none;
}

.sadaa-tooltip__content {
  position: absolute;
  z-index: var(--sadaa-z-tooltip, 1200);
  width: max-content;
  max-width: min(240px, calc(100vw - 32px));
  padding: 7px 10px;
  border: 1px solid rgba(var(--sadaa-shadow-rgb), .18);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-text, #163247);
  color: #fff;
  box-shadow: 0 10px 26px rgba(var(--sadaa-shadow-rgb), .18);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(.98);
  transition:
    opacity var(--sadaa-transition-fast, .15s ease),
    transform var(--sadaa-transition-fast, .15s ease),
    visibility var(--sadaa-transition-fast, .15s ease);
}

.sadaa-tooltip__content::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: rotate(45deg);
}

.sadaa-tooltip--top > .sadaa-tooltip__content {
  inset-block-end: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(4px) scale(.98);
}

.sadaa-tooltip--top > .sadaa-tooltip__content::after {
  inset-block-start: calc(100% - 4px);
  left: 50%;
  right: auto;
  margin-left: -4px;
}

.sadaa-tooltip--bottom > .sadaa-tooltip__content {
  inset-block-start: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(-4px) scale(.98);
}

.sadaa-tooltip--bottom > .sadaa-tooltip__content::after {
  inset-block-end: calc(100% - 4px);
  left: 50%;
  right: auto;
  margin-left: -4px;
}

.sadaa-tooltip:hover > .sadaa-tooltip__content,
.sadaa-tooltip:focus-visible > .sadaa-tooltip__content,
.sadaa-tooltip:focus-within > .sadaa-tooltip__content {
  opacity: 1;
  visibility: visible;
}

.sadaa-tooltip--top:hover > .sadaa-tooltip__content,
.sadaa-tooltip--top:focus-visible > .sadaa-tooltip__content,
.sadaa-tooltip--top:focus-within > .sadaa-tooltip__content {
  transform: translateX(-50%) translateY(0) scale(1);
}

.sadaa-tooltip--bottom:hover > .sadaa-tooltip__content,
.sadaa-tooltip--bottom:focus-visible > .sadaa-tooltip__content,
.sadaa-tooltip--bottom:focus-within > .sadaa-tooltip__content {
  transform: translateX(-50%) translateY(0) scale(1);
}

.sadaa-tooltip:focus-visible {
  border-radius: var(--sadaa-radius-sm, 6px);
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.13));
}

@media (hover: none) {
  .sadaa-tooltip__content {
    transition-duration: 0s;
  }
}


/* =========================================================
   Sadaa Design System — Drawer v1
   لوحة جانبية مركزية قابلة لإعادة الاستخدام للتنقل والفلاتر وغيرها.
   ========================================================= */
.sadaa-drawer-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
  cursor: pointer;
  font: inherit;
  transition:
    background-color var(--sadaa-transition-fast, .18s ease),
    border-color var(--sadaa-transition-fast, .18s ease),
    color var(--sadaa-transition-fast, .18s ease),
    transform var(--sadaa-transition-fast, .18s ease);
}

/* Edge Trigger: زر فتح جانبي قابل لإعادة الاستخدام خارج الهيدر */
.sadaa-drawer-trigger--edge {
  position: fixed;
  z-index: var(--sadaa-drawer-trigger-z, 8100);
  top: var(--sadaa-drawer-edge-top, 96px);
  min-width: 86px;
  height: 44px;
  padding: 0 13px;
  gap: 8px;
  border-color: rgba(var(--sadaa-primary-rgb), .24);
  background: var(--sadaa-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  opacity: .96;
}

.sadaa-drawer-trigger--edge-start {
  inset-inline-start: 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
  border-inline-start: 0;
}

.sadaa-drawer-trigger--edge i {
  font-size: 15px;
}

.sadaa-drawer-trigger--edge:hover,
.sadaa-drawer-trigger--edge[aria-expanded="true"] {
  background: var(--sadaa-primary-dark, var(--sadaa-primary));
  border-color: rgba(var(--sadaa-primary-rgb), .34);
  color: #fff;
  opacity: 1;
  transform: translateX(-2px);
}

.sadaa-drawer-trigger__label {
  display: inline-block;
  white-space: nowrap;
}

body.sadaa-drawer-open .sadaa-drawer-trigger--edge {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .sadaa-drawer-trigger--edge {
    min-width: 46px;
    width: 46px;
    height: 44px;
    padding: 0;
    gap: 0;
  }

  .sadaa-drawer-trigger--edge .sadaa-drawer-trigger__label {
    display: none;
  }
}

.sadaa-drawer-trigger:focus-visible,
.sadaa-drawer__close:focus-visible,
.sadaa-drawer__item:focus-visible {
  outline: 3px solid var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .18));
  outline-offset: 2px;
}

.sadaa-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--sadaa-drawer-backdrop-z, 8200);
  background: rgba(10, 15, 25, .46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--sadaa-transition-base, .22s ease),
    visibility var(--sadaa-transition-base, .22s ease);
}

.sadaa-drawer__backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sadaa-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: var(--sadaa-drawer-z, 8300);
  width: min(var(--sadaa-drawer-width, 360px), var(--sadaa-drawer-max-vw, 88vw));
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
  background: var(--sadaa-surface, #fff);
  border-inline-end: 1px solid var(--sadaa-line, #e5e7eb);
  box-shadow: -18px 0 46px rgba(15, 23, 42, .18);
  transform: translateX(104%);
  visibility: hidden;
  transition:
    transform var(--sadaa-transition-base, .24s ease),
    visibility var(--sadaa-transition-base, .24s ease);
}

.sadaa-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.sadaa-drawer__header {
  min-height: var(--sadaa-drawer-header-height, 82px);
  padding: var(--sadaa-drawer-header-padding, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sadaa-space-3, 12px);
  flex: 0 0 auto;
  border-bottom: 1px solid var(--sadaa-line, #e5e7eb);
  background: linear-gradient(
    135deg,
    rgba(var(--sadaa-primary-rgb), .10),
    rgba(var(--sadaa-primary-rgb), .03)
  );
}

.sadaa-drawer__heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.sadaa-drawer__heading-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--sadaa-primary-rgb), .16);
  border-radius: var(--sadaa-radius-md, 9px);
  color: var(--sadaa-primary);
  background: rgba(var(--sadaa-primary-rgb), .10);
}

.sadaa-drawer__heading-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sadaa-drawer__title {
  color: var(--sadaa-text, #111827);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.sadaa-drawer__subtitle {
  color: var(--sadaa-muted, #6b7280);
  font-size: 11.5px;
  line-height: 1.45;
}

.sadaa-drawer__close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text, #111827);
  cursor: pointer;
  transition:
    border-color var(--sadaa-transition-fast, .18s ease),
    background-color var(--sadaa-transition-fast, .18s ease),
    color var(--sadaa-transition-fast, .18s ease);
}

.sadaa-drawer__close:hover {
  color: var(--sadaa-primary);
  border-color: rgba(var(--sadaa-primary-rgb), .26);
  background: rgba(var(--sadaa-primary-rgb), .06);
}

.sadaa-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--sadaa-drawer-body-padding, 12px);
  overscroll-behavior: contain;
}

.sadaa-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sadaa-drawer-nav-gap, 5px);
}

.sadaa-drawer__item {
  min-height: 48px;
  width: 100%;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--sadaa-radius-md, 8px);
  color: var(--sadaa-text, #1f2937);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color var(--sadaa-transition-fast, .18s ease),
    border-color var(--sadaa-transition-fast, .18s ease),
    color var(--sadaa-transition-fast, .18s ease),
    transform var(--sadaa-transition-fast, .18s ease);
}

.sadaa-drawer__item:hover,
.sadaa-drawer__item:focus-visible {
  color: var(--sadaa-primary);
  background: rgba(var(--sadaa-primary-rgb), .07);
  border-color: rgba(var(--sadaa-primary-rgb), .13);
}

.sadaa-drawer__item.is-active {
  color: var(--sadaa-primary);
  background: rgba(var(--sadaa-primary-rgb), .10);
  border-color: rgba(var(--sadaa-primary-rgb), .18);
}

.sadaa-drawer__item-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sadaa-radius-md, 8px);
  color: var(--sadaa-primary);
  background: rgba(var(--sadaa-primary-rgb), .07);
}

.sadaa-drawer__item.is-active .sadaa-drawer__item-icon {
  color: #fff;
  background: var(--sadaa-primary);
}

.sadaa-drawer__item-chevron {
  justify-self: end;
  color: var(--sadaa-muted, #94a3b8);
  font-size: 10px;
}

.sadaa-drawer__footer {
  flex: 0 0 auto;
  padding: 13px 16px;
  border-top: 1px solid var(--sadaa-line, #e5e7eb);
  color: var(--sadaa-muted, #6b7280);
  background: rgba(var(--sadaa-primary-rgb), .025);
  font-size: 11.5px;
}

.sadaa-drawer__footer-content {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.sadaa-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  .sadaa-drawer {
    --sadaa-drawer-width: 340px;
    --sadaa-drawer-max-vw: 91vw;
    --sadaa-drawer-header-height: 76px;
    --sadaa-drawer-header-padding: 13px 12px;
    --sadaa-drawer-body-padding: 10px;
  }

  .sadaa-drawer__item {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sadaa-drawer,
  .sadaa-drawer__backdrop,
  .sadaa-drawer-trigger,
  .sadaa-drawer__item {
    transition: none !important;
  }
}

/* =========================================================
   Sadaa Design System — Drawer Nav Panel v1.1
   Navigation drawer variant aligned with the accepted
   admin/member sidebar language. Reuses sadaa-nav-* directly.
   ========================================================= */
.sadaa-drawer--nav-panel {
  --sadaa-drawer-width: 320px;
  --sadaa-drawer-max-vw: 92vw;
  background: var(--sadaa-surface, #fff);
  border-inline-end: 1px solid var(--sadaa-line, #e5e7eb);
  box-shadow: -18px 0 46px rgba(15, 23, 42, .18);
}

.sadaa-drawer--nav-panel .sadaa-drawer__header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 126px;
  padding: 20px 16px 18px;
  align-items: flex-start;
  color: #fff;
  border-bottom: 0;
  background: var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-drawer--nav-panel .sadaa-drawer__header::before,
.sadaa-drawer--nav-panel .sadaa-drawer__header::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.sadaa-drawer--nav-panel .sadaa-drawer__header::before {
  width: 150px;
  height: 150px;
  inset-inline-start: -64px;
  top: -82px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 0 0 28px rgba(255,255,255,.045),
    0 0 0 58px rgba(255,255,255,.025);
}

.sadaa-drawer--nav-panel .sadaa-drawer__header::after {
  width: 90px;
  height: 90px;
  inset-inline-end: -32px;
  bottom: -48px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.10);
}

.sadaa-drawer--nav-panel .sadaa-drawer__heading {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 11px;
  padding-top: 2px;
}

.sadaa-drawer--nav-panel .sadaa-drawer__heading-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(var(--sadaa-admin-dark-rgb, var(--sadaa-primary-rgb)), .17);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  font-size: 17px;
}

.sadaa-drawer--nav-panel .sadaa-drawer__heading-copy {
  gap: 3px;
}

.sadaa-drawer--nav-panel .sadaa-drawer__title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.sadaa-drawer--nav-panel .sadaa-drawer__subtitle {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.65;
}

.sadaa-drawer--nav-panel .sadaa-drawer__close {
  position: relative;
  z-index: 2;
  width: 38px;
  min-width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(var(--sadaa-admin-dark-rgb, var(--sadaa-primary-rgb)), .18);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
}

.sadaa-drawer--nav-panel .sadaa-drawer__close:hover {
  color: #fff;
  background: rgba(var(--sadaa-admin-dark-rgb, var(--sadaa-primary-rgb)), .28);
  border-color: rgba(255,255,255,.38);
}

.sadaa-drawer--nav-panel .sadaa-drawer__body {
  padding: 12px 10px;
  background: var(--sadaa-surface, #fff);
}

.sadaa-drawer--nav-panel .sadaa-nav-stack {
  gap: 2px;
}

.sadaa-drawer--nav-panel .sadaa-nav-item {
  min-height: 44px;
  padding: 7px 9px;
  font-size: 14px;
}

.sadaa-drawer--nav-panel .sadaa-nav-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sadaa-drawer--nav-panel .sadaa-drawer__footer {
  padding: 11px 14px;
  color: var(--sadaa-muted, #6b7280);
  background: #f8fafc;
  border-top: 1px solid var(--sadaa-line, #e5e7eb);
  font-size: 11.5px;
}

@media (max-width: 768px) {
  .sadaa-drawer--nav-panel {
    --sadaa-drawer-width: 320px;
    --sadaa-drawer-max-vw: 94vw;
  }

  .sadaa-drawer--nav-panel .sadaa-drawer__header {
    min-height: 112px;
    padding: 17px 14px 15px;
  }

  .sadaa-drawer--nav-panel .sadaa-drawer__heading-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .sadaa-drawer--nav-panel .sadaa-drawer__title {
    font-size: 17px;
  }

  .sadaa-drawer--nav-panel .sadaa-drawer__body {
    padding: 10px;
  }

  .sadaa-drawer--nav-panel .sadaa-nav-stack {
    gap: 1px;
  }

  .sadaa-drawer--nav-panel .sadaa-nav-item {
    min-height: 42px;
    padding: 6px 8px;
    font-size: 13.5px;
  }
}

/* =========================================================
   Sadaa Design System — Popovers v1
   Reusable anchored surfaces for compact information/actions.
   ========================================================= */
.sadaa-popover-anchor {
  position: relative;
}

.sadaa-popover {
  position: absolute;
  z-index: 6000;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: var(--sadaa-space-2, 8px);
  color: var(--sadaa-text, #172033);
  background: var(--sadaa-surface, #fff);
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  box-shadow: var(--sadaa-shadow-xl, 0 14px 34px rgba(15,23,42,.20));
  overflow: visible;
  box-sizing: border-box;
}

.sadaa-popover--sm {
  width: 258px;
  min-width: 258px;
}

.sadaa-popover--arrow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -6px;
  right: 18px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--sadaa-line, #e5e7eb);
  border-right: 1px solid var(--sadaa-line, #e5e7eb);
  background: var(--sadaa-surface, #fff);
  transform: rotate(-45deg);
  box-sizing: border-box;
}

.sadaa-popover__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 11px;
  border-bottom: 1px solid var(--sadaa-line-2, #edf0f3);
}

.sadaa-popover__header-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sadaa-primary);
  background: rgba(var(--sadaa-primary-rgb), .08);
  border: 1px solid rgba(var(--sadaa-primary-rgb), .16);
  border-radius: var(--sadaa-radius-sm, 6px);
}

.sadaa-popover__header-icon i {
  margin: 0;
  font-size: 15px;
  line-height: 1;
}

.sadaa-popover__heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sadaa-popover__title {
  color: var(--sadaa-text, #172033);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.sadaa-popover__subtitle {
  color: var(--sadaa-muted, #7b8494);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.sadaa-popover__list {
  padding-top: 5px;
}

.sadaa-popover__item {
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 6px 7px;
  border: 0;
  border-bottom: 1px solid var(--sadaa-line-2, #f0f2f4);
  border-radius: 0;
  background: var(--sadaa-surface, #fff);
  color: var(--sadaa-text-2, #334155);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color .16s ease, color .16s ease;
}

.sadaa-popover__item:last-child {
  border-bottom: 0;
}

.sadaa-popover__item:hover,
.sadaa-popover__item:focus-visible {
  background: rgba(var(--sadaa-primary-rgb), .055);
  color: var(--sadaa-text, #111827);
  outline: none;
}

.sadaa-popover__item > i,
.sadaa-popover__item-icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--sadaa-radius-sm, 6px);
  font-size: 14px;
  line-height: 1;
}

.sadaa-popover__item > span {
  flex: 1;
  min-width: 0;
}

.sadaa-popover__body {
  padding: var(--sadaa-space-2, 8px);
}

.sadaa-popover__footer {
  display: flex;
  align-items: center;
  gap: var(--sadaa-space-2, 8px);
  padding: var(--sadaa-space-2, 8px);
  border-top: 1px solid var(--sadaa-line-2, #edf0f3);
}

@media (max-width: 480px) {
  .sadaa-popover--sm {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sadaa-popover,
  .sadaa-popover__item {
    transition: none !important;
  }
}

/* =========================================================
   Flash Notifications — v1.1
   رسائل العمليات المؤقتة على مستوى الصفحة/التطبيق.
   موضع موحد: أعلى يمين الشاشة على سطح المكتب، وأعلى الشاشة على الجوال.
   مبنية فوق نفس لغة ألوان sadaa-alert مع سلوك مستقل غير حاجز للمحتوى.
   ========================================================= */
.sadaa-flash-region {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: var(--sadaa-z-toast, 12000);
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.sadaa-flash {
  --sadaa-flash-bg: var(--sadaa-surface, #fff);
  --sadaa-flash-border: var(--sadaa-line, #e5e7eb);
  --sadaa-flash-color: var(--sadaa-text, #111827);
  --sadaa-flash-icon-bg: var(--sadaa-tint-2, #f3f4f6);

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid var(--sadaa-flash-border);
  border-radius: var(--sadaa-radius-md, 9px);
  background: var(--sadaa-flash-bg);
  color: var(--sadaa-flash-color);
  box-shadow: var(--sadaa-shadow-lg, 0 14px 34px rgba(17,24,39,.16));
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  text-align: start;
  opacity: 0;
  transform: translateY(-9px) scale(.985);
  transition:
    opacity var(--sadaa-transition-fast, 160ms ease),
    transform var(--sadaa-transition-fast, 160ms ease);
  pointer-events: auto;
}

.sadaa-flash.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sadaa-flash.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  pointer-events: none;
}

.sadaa-flash__icon {
  width: 30px;
  height: 30px;
  margin-top: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--sadaa-flash-icon-bg);
  color: inherit;
  font-size: 15px;
}

.sadaa-flash__body {
  min-width: 0;
  padding-top: 0;
}

.sadaa-flash__title {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.sadaa-flash__message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sadaa-flash__close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: currentColor;
  opacity: .58;
  cursor: pointer;
  transition:
    opacity var(--sadaa-transition-fast, 160ms ease),
    background-color var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-flash__close:hover,
.sadaa-flash__close:focus-visible {
  opacity: 1;
  background: rgba(255,255,255,.58);
  outline: none;
}

.sadaa-flash--success {
  --sadaa-flash-bg: #ecfdf3;
  --sadaa-flash-border: #bbf7d0;
  --sadaa-flash-color: #166534;
  --sadaa-flash-icon-bg: #dcfce7;
}

.sadaa-flash--error {
  --sadaa-flash-bg: #fff1f2;
  --sadaa-flash-border: #fecdd3;
  --sadaa-flash-color: #9f1239;
  --sadaa-flash-icon-bg: #ffe4e6;
}

.sadaa-flash--warning {
  --sadaa-flash-bg: #fff8f1;
  --sadaa-flash-border: #fed7aa;
  --sadaa-flash-color: #9a3412;
  --sadaa-flash-icon-bg: #ffedd5;
}

.sadaa-flash--info {
  --sadaa-flash-bg: #f4f9fd;
  --sadaa-flash-border: var(--sadaa-admin-soft-line, #cfe3f3);
  --sadaa-flash-color: #285477;
  --sadaa-flash-icon-bg: #e8f3fb;
}

[data-sadaa-flash] {
  display: none !important;
}

@media (max-width: 640px) {
  .sadaa-flash-region {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }

  .sadaa-flash {
    padding: 11px 12px;
    gap: 9px;
    border-radius: var(--sadaa-radius-md, 9px);
    font-size: 12.5px;
  }

  .sadaa-flash__icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sadaa-flash {
    transition: none;
  }
}


/* =========================================================
   Date / Time / Flatpickr — v1.0
   مكوّن موحد لحقول التاريخ والتقويم المنبثق.
   - sadaa-date-control: غلاف الحقل + الأيقونة.
   - sadaa-calendar: الشكل الأساسي لتقويم Flatpickr.
   - variants: admin / booking / member.
   لا يغيّر منطق minDate/maxDate أو ربط البداية بالنهاية؛ هذه تبقى مسؤولية الصفحة.
   ========================================================= */
.sadaa-date-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.sadaa-date-control__input {
  width: 100% !important;
  padding-left: 44px !important;
  cursor: pointer;
  caret-color: var(--sadaa-primary);
}

.sadaa-date-control__icon {
  position: absolute !important;
  left: 15px !important;
  right: auto !important;
  top: 50% !important;
  z-index: 2;
  transform: translateY(-50%) !important;
  color: var(--sadaa-muted, #6b7280) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  transition: color var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-date-control:hover .sadaa-date-control__input:not(:disabled),
.sadaa-date-control__input:hover:not(:disabled) {
  border-color: var(--sadaa-line-3, #cbd5e1) !important;
}

.sadaa-date-control.is-calendar-open .sadaa-date-control__input,
.sadaa-date-control__input:focus {
  border-color: var(--sadaa-primary) !important;
  background: var(--sadaa-surface, #fff) !important;
  box-shadow: 0 0 0 3px rgba(var(--sadaa-primary-rgb), .11) !important;
  outline: none !important;
}

.sadaa-date-control.is-calendar-open .sadaa-date-control__icon,
.sadaa-date-control:focus-within .sadaa-date-control__icon {
  color: var(--sadaa-primary) !important;
}

.sadaa-date-control--admin .sadaa-date-control__input {
  caret-color: var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-date-control--admin.is-calendar-open .sadaa-date-control__input,
.sadaa-date-control--admin .sadaa-date-control__input:focus {
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  box-shadow: 0 0 0 3px rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .11) !important;
}

.sadaa-date-control--admin.is-calendar-open .sadaa-date-control__icon,
.sadaa-date-control--admin:focus-within .sadaa-date-control__icon {
  color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
}

.sadaa-date-control__input:disabled,
.sadaa-date-control__input[aria-disabled="true"] {
  cursor: not-allowed;
}

.sadaa-date-control:has(.sadaa-date-control__input:disabled) .sadaa-date-control__icon {
  opacity: .5;
}

/* Calendar variables */
.flatpickr-calendar.sadaa-calendar {
  --sadaa-calendar-primary: var(--sadaa-primary);
  --sadaa-calendar-dark: var(--sadaa-primary-dark);
  --sadaa-calendar-primary-rgb: var(--sadaa-primary-rgb);
  --sadaa-calendar-header-bg: linear-gradient(135deg, var(--sadaa-primary), var(--sadaa-accent));
  --sadaa-calendar-selected-bg: var(--sadaa-calendar-header-bg);
  --sadaa-calendar-week-bg: var(--sadaa-tint-3, #f8fafc);
  --sadaa-calendar-week-line: var(--sadaa-line-2, #e5e7eb);
  --sadaa-calendar-hover-bg: var(--sadaa-tint-3, #f8fafc);
  --sadaa-calendar-hover-line: var(--sadaa-line-2, #e5e7eb);
}

.flatpickr-calendar.sadaa-calendar--admin {
  --sadaa-calendar-primary: var(--sadaa-admin-primary, var(--sadaa-primary));
  --sadaa-calendar-dark: var(--sadaa-admin-hover, var(--sadaa-primary-dark));
  --sadaa-calendar-primary-rgb: var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb));
  --sadaa-calendar-header-bg: var(--sadaa-admin-brand-gradient, var(--sadaa-admin-primary));
  --sadaa-calendar-selected-bg: var(--sadaa-admin-brand-gradient, var(--sadaa-admin-primary));
  --sadaa-calendar-week-bg: var(--sadaa-admin-soft, #f8fafc);
  --sadaa-calendar-week-line: var(--sadaa-admin-line, #e5e7eb);
  --sadaa-calendar-hover-bg: var(--sadaa-admin-soft, #f8fafc);
  --sadaa-calendar-hover-line: var(--sadaa-admin-soft-line, #cbd5e1);
}

.flatpickr-calendar.sadaa-calendar--booking {
  --sadaa-calendar-primary: var(--ad-primary, var(--sadaa-primary));
  --sadaa-calendar-dark: var(--ad-primary-dark, var(--sadaa-primary-dark));
  --sadaa-calendar-primary-rgb: var(--sadaa-primary-rgb);
  --sadaa-calendar-header-bg: linear-gradient(135deg, var(--ad-primary, var(--sadaa-primary)), var(--ad-accent, var(--sadaa-accent)));
  --sadaa-calendar-selected-bg: var(--sadaa-calendar-header-bg);
}

.flatpickr-calendar.sadaa-calendar--member {
  --sadaa-calendar-primary: var(--sadaa-primary);
  --sadaa-calendar-dark: var(--sadaa-primary-dark);
  --sadaa-calendar-primary-rgb: var(--sadaa-primary-rgb);
  --sadaa-calendar-header-bg: var(--sadaa-primary);
  --sadaa-calendar-selected-bg: var(--sadaa-primary);
}

/*
 * نكرر كلاس sadaa-calendar في محدد الجذر عمداً لرفع الخصوصية فوق
 * Themes القديمة أو CSS المحلي، حتى يبقى المصدر المركزي هو المرجع النهائي.
 */
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar * {
  box-sizing: border-box;
  font-family: var(--sadaa-font-family, var(--site-font-family, Tahoma, Arial, sans-serif)) !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar {
  width: 320px !important;
  min-width: 320px !important;
  direction: rtl !important;
  text-align: center !important;
  overflow: hidden !important;
  margin-top: 8px !important;
  padding: 0 !important;
  background: var(--sadaa-surface, #fff) !important;
  border: 1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius: 9px !important;
  box-shadow: 0 22px 55px rgba(17,24,39,.16) !important;
  color: var(--sadaa-text, #111827) !important;
  font-size: 13px !important;
  z-index: 99999 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar::before,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar::after {
  display: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar.open {
  animation: sadaaCalendarOpen .17s ease-out both;
}

@keyframes sadaaCalendarOpen {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-months {
  position: relative !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 9px 44px !important;
  align-items: center !important;
  background: var(--sadaa-calendar-header-bg) !important;
  border: 0 !important;
  color: #fff !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-month {
  height: 40px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  fill: #fff !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month {
  position: static !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  direction: rtl !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .cur-month {
  margin: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-weight: 500 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  min-width: 102px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 10px 0 28px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.10)) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 30px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer !important;
  text-align: center !important;
  text-align-last: center !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: #374151 !important;
  background: #fff !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month .numInputWrapper {
  width: 66px !important;
  height: 32px !important;
  background: transparent !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month input.cur-year {
  width: 100% !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 7px !important;
  background: rgba(255,255,255,.13) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: center !important;
  box-shadow: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month input.cur-year:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-current-month input.cur-year:focus {
  background: rgba(255,255,255,.20) !important;
  border-color: rgba(255,255,255,.38) !important;
  box-shadow: none !important;
  outline: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .numInputWrapper span {
  display: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month {
  position: absolute !important;
  top: 9px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.11) !important;
  color: #fff !important;
  fill: #fff !important;
  z-index: 5 !important;
  transition: background-color .16s ease, border-color .16s ease !important;
}

/* RTL: السابق بصرياً يسار، التالي يمين — مطابق للسلوك المعتمد حالياً. */
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month {
  left: 9px !important;
  right: auto !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month {
  right: 9px !important;
  left: auto !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month:hover {
  background: rgba(255,255,255,.21) !important;
  border-color: rgba(255,255,255,.34) !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month svg,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month svg {
  display: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month::before,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month::before {
  display: block !important;
  color: currentColor !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  transform: translateY(-1px) !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month::before { content: "›"; }
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month::before { content: "‹"; }

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-rContainer {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-weekdays {
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 4px 14px 0 !important;
  background: var(--sadaa-calendar-week-bg) !important;
  border-bottom: 1px solid var(--sadaa-calendar-week-line) !important;
  direction: rtl !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-weekdaycontainer {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0,1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sadaa-calendar-week-bg) !important;
  direction: rtl !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar span.flatpickr-weekday {
  width: auto !important;
  max-width: none !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sadaa-calendar-week-bg) !important;
  color: var(--sadaa-muted, #6b7280) !important;
  font-size: 11px !important;
  line-height: 34px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-days {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 8px 14px 10px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  direction: rtl !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .dayContainer {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0,1fr)) !important;
  gap: 2px 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-items: center !important;
  align-items: center !important;
  direction: rtl !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day {
  width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #374151 !important;
  font-size: 12.5px !important;
  line-height: 32px !important;
  font-weight: 400 !important;
  text-align: center !important;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day:focus {
  background: var(--sadaa-calendar-hover-bg) !important;
  border-color: var(--sadaa-calendar-hover-line) !important;
  color: var(--sadaa-calendar-dark) !important;
  outline: none !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.today {
  background: #fff !important;
  border-color: var(--sadaa-calendar-primary) !important;
  color: var(--sadaa-calendar-dark) !important;
  font-weight: 500 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.today:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.today:focus {
  background: var(--sadaa-calendar-primary) !important;
  border-color: var(--sadaa-calendar-primary) !important;
  color: #fff !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.selected,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.startRange,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.endRange,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.selected:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.startRange:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.endRange:hover {
  background: var(--sadaa-calendar-selected-bg) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(var(--sadaa-calendar-primary-rgb), .22) !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.prevMonthDay,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.nextMonthDay {
  color: #b7bdc8 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.flatpickr-disabled,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.flatpickr-disabled:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.notAllowed,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day.notAllowed:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: #d1d5db !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day:focus-visible,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-prev-month:focus-visible,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-next-month:focus-visible {
  outline: 2px solid rgba(var(--sadaa-calendar-primary-rgb), .30) !important;
  outline-offset: 2px !important;
}

/* Time picker — جاهز للاستخدام مع enableTime بدون إنشاء Theme مستقل. */
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time {
  height: 48px !important;
  max-height: 48px !important;
  border-top: 1px solid var(--sadaa-line, #e5e7eb) !important;
  background: #fff !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time input,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time .flatpickr-am-pm,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time .flatpickr-time-separator {
  color: var(--sadaa-text, #111827) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time input:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time input:focus,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time .flatpickr-am-pm:hover,
body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-time .flatpickr-am-pm:focus {
  background: var(--sadaa-calendar-hover-bg) !important;
  outline: none !important;
}

@media (max-width: 420px) {
  body .flatpickr-calendar.sadaa-calendar.sadaa-calendar {
    width: min(320px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
  }

  body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-weekdays {
    padding-inline: 12px !important;
  }

  body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-days {
    padding: 7px 12px 9px !important;
  }

  body .flatpickr-calendar.sadaa-calendar.sadaa-calendar .flatpickr-day {
    width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .flatpickr-calendar.sadaa-calendar.sadaa-calendar.open {
    animation: none !important;
  }
}

/* =========================================================
   File Upload / Media Inputs System — v1.0
   مكوّنات مركزية لرفع الملفات والصور ومعاينة الوسائط.
   يدعم ثلاثة أنماط:
   1) sadaa-file-native  : input[type=file] عادي.
   2) sadaa-file-control : حقل مخصص مع زر + اسم ملف + إزالة.
   3) sadaa-upload-zone  : منطقة سحب/إفلات ومعاينة للصور/الفيديو.
   ========================================================= */

/* ---------- Native file input ---------- */
.sadaa-file-native.sadaa-file-native {
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--sadaa-control-lg, 46px) !important;
  box-sizing: border-box !important;
  padding: 5px 6px !important;
  border: 1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius: var(--sadaa-radius-field, 8px) !important;
  background: var(--sadaa-surface, #fff) !important;
  color: var(--sadaa-text-2, #374151) !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-file-native.sadaa-file-native:hover:not(:disabled) {
  border-color: var(--sadaa-line-3, #cbd5e1) !important;
}

.sadaa-file-native.sadaa-file-native:focus,
.sadaa-file-native.sadaa-file-native:focus-visible {
  border-color: var(--sadaa-primary) !important;
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .13)) !important;
  outline: none !important;
}

.sadaa-file-native.sadaa-file-native:disabled {
  cursor: not-allowed !important;
  opacity: .64 !important;
  background: var(--sadaa-tint-3, #f8fafc) !important;
}

.sadaa-file-native.sadaa-file-native::file-selector-button {
  min-height: 34px !important;
  margin: 0 0 0 9px !important;
  padding: 6px 11px !important;
  border: 1px solid var(--sadaa-line-2, #d1d5db) !important;
  border-radius: 6px !important;
  background: var(--sadaa-tint-3, #f8fafc) !important;
  color: var(--sadaa-primary-dark) !important;
  font: inherit !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    color var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-file-native.sadaa-file-native:hover:not(:disabled)::file-selector-button {
  border-color: var(--sadaa-line-3, #cbd5e1) !important;
  background: var(--sadaa-tint, #f4f9fb) !important;
  color: var(--sadaa-primary) !important;
}

.sadaa-file-native--admin.sadaa-file-native--admin:focus,
.sadaa-file-native--admin.sadaa-file-native--admin:focus-visible {
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  box-shadow: 0 0 0 3px rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .10) !important;
}

.sadaa-file-native--admin.sadaa-file-native--admin::file-selector-button {
  border-color: var(--sadaa-admin-soft-line, var(--sadaa-line-2, #d1d5db)) !important;
  background: var(--sadaa-admin-soft, var(--sadaa-tint-3, #f8fafc)) !important;
  color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
}

/* ---------- Compact custom file control ---------- */
.sadaa-file-control.sadaa-file-control {
  --sadaa-file-control-height: 46px;
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--sadaa-file-control-height) !important;
  height: var(--sadaa-file-control-height) !important;
  box-sizing: border-box !important;
  padding: 5px 6px !important;
  overflow: hidden !important;
  border: 1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius: var(--sadaa-radius-field, 8px) !important;
  background: var(--sadaa-surface, #fff) !important;
  box-shadow: 0 1px 0 rgba(17,24,39,.02) !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-file-control--lg.sadaa-file-control--lg {
  --sadaa-file-control-height: 52px;
}

.sadaa-file-control.sadaa-file-control:hover {
  border-color: var(--sadaa-line-3, #cbd5e1) !important;
}

.sadaa-file-control.sadaa-file-control:focus-within {
  border-color: var(--sadaa-primary) !important;
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .13)) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-input,
.sadaa-upload-zone.sadaa-upload-zone .sadaa-file-input,
.sadaa-file-input.sadaa-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-trigger {
  position: static !important;
  z-index: 1 !important;
  width: auto !important;
  max-width: none !important;
  min-height: calc(var(--sadaa-file-control-height) - 10px) !important;
  height: calc(var(--sadaa-file-control-height) - 10px) !important;
  margin: 0 !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid var(--sadaa-line-2, #d1d5db) !important;
  border-radius: 6px !important;
  background: var(--sadaa-tint-3, #f8fafc) !important;
  color: var(--sadaa-primary-dark) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    color var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-trigger:hover {
  border-color: var(--sadaa-line-3, #cbd5e1) !important;
  background: var(--sadaa-tint, #f4f9fb) !important;
  color: var(--sadaa-primary) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-name {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--sadaa-muted, #6b7280) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  text-align: start !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sadaa-file-control.sadaa-file-control.has-file .sadaa-file-name {
  padding: 0 !important;
  color: var(--sadaa-text-2, #374151) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-remove {
  position: static !important;
  z-index: 1 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--sadaa-line, #e5e7eb) !important;
  border-radius: 6px !important;
  background: var(--sadaa-surface, #fff) !important;
  color: var(--sadaa-muted, #6b7280) !important;
  cursor: pointer !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-remove:hover {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
  color: var(--sadaa-danger, #b42318) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-remove:focus-visible {
  outline: none !important;
  border-color: var(--sadaa-primary) !important;
  box-shadow: 0 0 0 3px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .13)) !important;
}

.sadaa-file-control.sadaa-file-control .sadaa-file-remove[hidden] {
  display: none !important;
}

/* ---------- Drag & drop / media upload zone ---------- */
.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone {
  --sadaa-upload-zone-min-height: 166px;
  --sadaa-upload-zone-padding: 16px;
  position: relative !important;
  min-width: 0 !important;
  min-height: var(--sadaa-upload-zone-min-height) !important;
  box-sizing: border-box !important;
  padding: var(--sadaa-upload-zone-padding) !important;
  border: 1.5px dashed var(--sadaa-line-3, #cbd5e1) !important;
  border-radius: var(--sadaa-radius-lg, 10px) !important;
  background: linear-gradient(180deg, var(--sadaa-surface, #fff), var(--sadaa-tint-3, #f8fafc)) !important;
  color: var(--sadaa-text-2, #374151) !important;
  cursor: pointer !important;
  outline: none !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    box-shadow var(--sadaa-transition-base, 180ms ease),
    transform var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-upload-zone--media.sadaa-upload-zone--media {
  --sadaa-upload-zone-min-height: 206px;
  --sadaa-upload-zone-padding: 22px;
}

.sadaa-upload-zone--compact.sadaa-upload-zone--compact {
  --sadaa-upload-zone-min-height: 166px;
  --sadaa-upload-zone-padding: 16px;
}

.sadaa-upload-zone--image.sadaa-upload-zone--image {
  --sadaa-upload-zone-min-height: 255px;
  --sadaa-upload-zone-padding: 12px;
}

.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone:hover,
.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone.is-dragging,
.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone:focus-visible,
.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone:focus-within {
  border-color: var(--sadaa-primary) !important;
  background: var(--sadaa-tint-3, #f8fafc) !important;
  box-shadow: 0 0 0 4px var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .10)) !important;
}

.sadaa-upload-zone--admin.sadaa-upload-zone--admin:hover,
.sadaa-upload-zone--admin.sadaa-upload-zone--admin.is-dragging,
.sadaa-upload-zone--admin.sadaa-upload-zone--admin:focus-visible,
.sadaa-upload-zone--admin.sadaa-upload-zone--admin:focus-within {
  border-color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  background: var(--sadaa-admin-soft, var(--sadaa-tint-3, #f8fafc)) !important;
  box-shadow: 0 0 0 4px rgba(var(--sadaa-admin-primary-rgb, var(--sadaa-primary-rgb)), .10) !important;
}

.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone.is-dragging {
  transform: translateY(-1px) !important;
}

.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone.is-invalid-field,
.sadaa-upload-zone.sadaa-upload-zone.sadaa-upload-zone[aria-invalid="true"] {
  border-color: var(--sadaa-danger, #b42318) !important;
  background: #fff8f8 !important;
  box-shadow: 0 0 0 3px rgba(180,35,24,.10) !important;
}

.sadaa-upload-zone__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.sadaa-upload-zone__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sadaa-line-2, #d1d5db);
  border-radius: var(--sadaa-radius-field, 8px);
  background: var(--sadaa-tint-2, #eef7fa);
  color: var(--sadaa-primary);
  font-size: 21px;
}

.sadaa-upload-zone__title {
  color: var(--sadaa-text, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.sadaa-upload-zone__note,
.sadaa-upload-help {
  color: var(--sadaa-muted, #6b7280);
  font-size: 12px;
  line-height: 1.8;
}

.sadaa-upload-preview {
  width: 100%;
  min-width: 0;
}

.sadaa-upload-preview[hidden] {
  display: none !important;
}

.sadaa-upload-preview__media {
  overflow: hidden;
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-field, 8px);
  background: var(--sadaa-tint-3, #f8fafc);
}

.sadaa-upload-preview__media img,
.sadaa-upload-preview__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sadaa-upload-preview__info {
  min-width: 0;
}

.sadaa-upload-preview__name {
  overflow: hidden;
  color: var(--sadaa-text, #111827);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sadaa-upload-preview__meta {
  color: var(--sadaa-muted, #6b7280);
  font-size: 11.5px;
  line-height: 1.75;
}

.sadaa-upload-preview__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.sadaa-upload-action.sadaa-upload-action {
  min-height: 36px !important;
  padding: 7px 10px !important;
  border: 1px solid var(--sadaa-line-2, #d1d5db) !important;
  border-radius: 7px !important;
  background: var(--sadaa-surface, #fff) !important;
  color: var(--sadaa-text-2, #374151) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  transition:
    border-color var(--sadaa-transition-base, 180ms ease),
    background-color var(--sadaa-transition-base, 180ms ease),
    color var(--sadaa-transition-base, 180ms ease) !important;
}

.sadaa-upload-action.sadaa-upload-action:hover,
.sadaa-upload-action.sadaa-upload-action:focus-visible {
  border-color: var(--sadaa-primary) !important;
  background: var(--sadaa-tint-3, #f8fafc) !important;
  color: var(--sadaa-primary-dark) !important;
  outline: none !important;
}

.sadaa-upload-action--danger.sadaa-upload-action--danger:hover,
.sadaa-upload-action--danger.sadaa-upload-action--danger:focus-visible {
  border-color: #fecaca !important;
  background: #fff7f7 !important;
  color: var(--sadaa-danger, #b42318) !important;
}

@media (max-width: 720px) {
  .sadaa-file-control.sadaa-file-control {
    gap: 6px !important;
  }

  .sadaa-file-control.sadaa-file-control .sadaa-file-trigger {
    padding-inline: 10px !important;
  }

  .sadaa-upload-zone--media.sadaa-upload-zone--media,
  .sadaa-upload-zone--compact.sadaa-upload-zone--compact {
    --sadaa-upload-zone-padding: 14px;
  }

  .sadaa-upload-zone--image.sadaa-upload-zone--image {
    --sadaa-upload-zone-min-height: 0px;
    --sadaa-upload-zone-padding: 10px;
  }
}

/* =========================================================
   Async / Loading States — v1.0
   حالات التحميل والأخطاء المؤقتة ومنع الصلاحية.
   ========================================================= */
.sadaa-async-host--loading {
  display: grid !important;
  place-items: center;
  align-content: center;
}

.sadaa-async-state {
  --sadaa-async-tone: var(--sadaa-primary);
  --sadaa-async-soft: var(--sadaa-tint-3, #f8fafc);
  width: min(100%, 520px);
  min-width: 0;
  min-height: 120px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background: var(--sadaa-surface, #fff);
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  color: var(--sadaa-muted, #6b7280);
  font-family: inherit;
}

.sadaa-async-state__icon,
.sadaa-async-state__spinner {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  box-sizing: border-box;
}

.sadaa-async-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sadaa-async-soft);
  color: var(--sadaa-async-tone);
  font-size: 15px;
}

.sadaa-async-state__spinner {
  border: 3px solid var(--sadaa-line, #e5e7eb);
  border-top-color: var(--sadaa-async-tone);
  border-radius: 50%;
  animation: sadaa-async-spin .75s linear infinite;
}

.sadaa-async-state__title {
  margin: 0;
  color: var(--sadaa-text, #111827);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.sadaa-async-state__message {
  margin: 0;
  color: var(--sadaa-muted, #6b7280);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.sadaa-async-state--loading {
  --sadaa-async-tone: var(--sadaa-admin-primary, var(--sadaa-primary));
}

.sadaa-async-state--error {
  --sadaa-async-tone: #b42318;
  --sadaa-async-soft: #fff1f0;
  border-color: #f3c7c3;
}

.sadaa-async-state--locked {
  --sadaa-async-tone: #475467;
  --sadaa-async-soft: #f2f4f7;
}

.sadaa-async-state--inline {
  width: 100%;
  min-height: 100px;
  border-color: transparent;
  background: transparent;
}

/* توافق رجعي لأي مسار قديم لم يُرحّل بعد. */
.loading-message {
  box-sizing: border-box;
  margin: 0;
  padding: 28px 20px;
  background: var(--sadaa-surface, #fff);
  border: 1px solid var(--sadaa-line, #e5e7eb);
  border-radius: var(--sadaa-radius-md, 8px);
  color: var(--sadaa-muted, #6b7280);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

@keyframes sadaa-async-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sadaa-async-state__spinner {
    animation-duration: 1.5s;
  }
}

@media (max-width: 640px) {
  .sadaa-async-state {
    width: 100%;
    min-height: 108px;
    padding: 22px 16px;
  }
}

/* =========================================================
   Accordion / Collapsible Sections — v1.0
   أقسام الفتح والإغلاق المركزية في صدى المتاجر
   تعتمد على <details>/<summary> للحفاظ على الوصول بدون JavaScript.
   ========================================================= */
.sadaa-accordion {
  --sadaa-accordion-accent: var(--sadaa-primary);
  --sadaa-accordion-border: var(--sadaa-line, #e5e7eb);
  --sadaa-accordion-soft: var(--sadaa-surface-alt, #fafafa);
  --sadaa-accordion-bg: var(--sadaa-surface, #fff);
  --sadaa-accordion-radius: var(--sadaa-radius-md, 8px);

  margin: 0;
  overflow: hidden;
  border: 1px solid var(--sadaa-accordion-border);
  border-radius: var(--sadaa-accordion-radius);
  background: var(--sadaa-accordion-bg);
  color: var(--sadaa-text, #111827);
}

.sadaa-accordion--admin {
  --sadaa-accordion-accent: var(--sadaa-admin-primary, var(--sadaa-primary));
  --sadaa-accordion-border: var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb));
  --sadaa-accordion-soft: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #fafafa));
}

.sadaa-accordion__summary {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
  list-style: none;
  border-bottom: 1px solid transparent;
  background: var(--sadaa-accordion-bg);
  color: var(--sadaa-text-2, #374151);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--sadaa-transition-fast, 160ms ease),
    border-color var(--sadaa-transition-fast, 160ms ease),
    color var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-accordion__summary::-webkit-details-marker {
  display: none;
}

.sadaa-accordion__summary::marker {
  content: "";
}

.sadaa-accordion__summary:hover {
  background: var(--sadaa-accordion-soft);
}

.sadaa-accordion__summary:focus-visible {
  outline: 3px solid var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .14));
  outline-offset: -3px;
}

.sadaa-accordion[open] > .sadaa-accordion__summary {
  border-bottom-color: var(--sadaa-accordion-border);
  background: var(--sadaa-accordion-soft);
}

.sadaa-accordion__title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.7;
}

.sadaa-accordion__title > i,
.sadaa-accordion__title > svg {
  flex: 0 0 auto;
  color: var(--sadaa-accordion-accent);
}

.sadaa-accordion__side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sadaa-accordion__meta {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--sadaa-accordion-accent) 22%, var(--sadaa-accordion-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--sadaa-accordion-accent) 7%, #fff);
  color: color-mix(in srgb, var(--sadaa-accordion-accent) 82%, #111827);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.sadaa-accordion__chevron {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  border: 1px solid var(--sadaa-accordion-border);
  border-radius: 6px;
  background: var(--sadaa-accordion-bg);
  color: var(--sadaa-muted, #6b7280);
  transition:
    transform var(--sadaa-transition-fast, 160ms ease),
    color var(--sadaa-transition-fast, 160ms ease),
    border-color var(--sadaa-transition-fast, 160ms ease);
}

.sadaa-accordion__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

/* Optical centering for the closed chevron: the < shape needs a tiny
   physical shift to look visually centered inside its square button. */
.sadaa-accordion:not([open]) > .sadaa-accordion__summary .sadaa-accordion__chevron::before {
  position: relative;
  left: 1px;
}

.sadaa-accordion[open] > .sadaa-accordion__summary .sadaa-accordion__chevron {
  border-color: color-mix(in srgb, var(--sadaa-accordion-accent) 28%, var(--sadaa-accordion-border));
  color: var(--sadaa-accordion-accent);
}

.sadaa-accordion[open] > .sadaa-accordion__summary .sadaa-accordion__chevron::before {
  transform: rotate(-45deg);
}

.sadaa-accordion__body {
  min-width: 0;
  padding: 12px;
  background: var(--sadaa-accordion-bg);
}

.sadaa-accordion__body--flush {
  padding: 0;
}

/* داخل بطاقة موجودة مسبقاً: بدون إطار أو زوايا إضافية. */
.sadaa-accordion--flush {
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
}

/* نسخة أصغر للمجموعات المتداخلة. */
.sadaa-accordion--compact > .sadaa-accordion__summary {
  min-height: 44px;
  padding: 8px 10px;
}

.sadaa-accordion--compact .sadaa-accordion__title {
  font-size: 13px;
}

.sadaa-accordion--compact .sadaa-accordion__chevron {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 5px;
}

.sadaa-accordion--compact .sadaa-accordion__meta {
  min-height: 23px;
  padding-inline: 7px;
  font-size: 11px;
}

@media (max-width: 640px) {
  .sadaa-accordion__summary {
    min-height: 46px;
    padding: 9px 10px;
  }

  .sadaa-accordion__title {
    font-size: 13px;
  }

  .sadaa-accordion__chevron {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}


/* =========================================================
   Section / Panel Headers — v1.0
   رؤوس الأقسام الداخلية: عنوان + وصف + أيقونة/عداد.
   ========================================================= */
.sadaa-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
  padding:14px 16px;
  border-bottom:1px solid var(--sadaa-line, #e5e7eb);
  background:var(--sadaa-surface, #fff);
}
.sadaa-section-head--admin { border-bottom-color:var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)); }
.sadaa-section-head--soft { background:var(--sadaa-surface-alt, #f8fafc); }
.sadaa-section-head--roomy {
  padding:20px 22px;
  flex-wrap:wrap;
  background:linear-gradient(180deg, #fff, var(--sadaa-surface-alt, #fbfbfd));
}
.sadaa-section-head.sadaa-section-head--inline {
  display:block;
  margin:0 0 12px;
  padding:0 0 12px;
  border:0;
  border-bottom:1px solid var(--sadaa-line, #e5e7eb);
  background:transparent;
}
.sadaa-section-head__main { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.sadaa-section-head__copy { min-width:0; }
.sadaa-section-head__icon {
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid var(--sadaa-line, #e5e7eb);
  border-radius:7px;
  background:var(--sadaa-surface-alt, #f8fafc);
  color:var(--sadaa-primary);
  font-size:14px;
}
.sadaa-section-head .sadaa-section-head__title {
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--sadaa-text, #111827);
  font-size:15px;
  font-weight:500;
  line-height:1.6;
}
.sadaa-section-head--roomy .sadaa-section-head__title { font-size:18px; font-weight:600; }
.sadaa-section-head .sadaa-section-head__description {
  margin:3px 0 0;
  color:var(--sadaa-text-muted, #6b7280);
  font-size:12px;
  line-height:1.75;
}
.sadaa-section-head--roomy .sadaa-section-head__description { font-size:13px; line-height:1.8; }
.sadaa-section-head__meta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:30px;
  padding:5px 9px;
  border:1px solid var(--sadaa-line, #e5e7eb);
  border-radius:7px;
  background:var(--sadaa-surface-alt, #f8fafc);
  color:var(--sadaa-text-muted, #475569);
  font-size:12px;
  white-space:nowrap;
}
.sadaa-section-head--admin .sadaa-section-head__icon { color:var(--sadaa-admin-primary, var(--sadaa-primary)); }
@media (max-width:640px) {
  .sadaa-section-head { align-items:flex-start; padding:12px; }
  .sadaa-section-head--roomy { padding:16px; }
  .sadaa-section-head__meta { min-height:28px; }
}


/* =========================================================
   Tablet Disclosure Headers — v1.2
   نفس فكرة رأس Accordion المدمج (مثل "صلاحيات المشرف"):
   صف خفيف + عنوان في جهة + سهم داخل زر مربع مستقل في الجهة المقابلة.
   الرأس الرمادي يمتد حتى حواف المنطقة، مع خط سفلي يفصله بصرياً عن المحتوى.
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {
  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    list-style: none !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 7px 7px 0 0 !important;
    background: var(--sadaa-admin-soft, var(--sadaa-tint-3)) !important;
    color: var(--sadaa-admin-text, var(--sadaa-text-2, #374151)) !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--sadaa-transition-fast, 160ms ease),
                border-color var(--sadaa-transition-fast, 160ms ease);
  }

  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary::-webkit-details-marker {
    display: none !important;
  }

  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary::marker {
    content: "" !important;
  }

  /* لا نستخدم أي سهم مرسوم محلياً؛ السهم الوحيد هو مكوّن Accordion المركزي. */
  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary::after {
    content: none !important;
    display: none !important;
  }

  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary:hover,
  .sadaa-tablet-disclosure[open] > .sadaa-tablet-disclosure__summary {
    background: var(--sadaa-admin-soft, var(--sadaa-tint-3)) !important;
  }

  .sadaa-tablet-disclosure > .sadaa-tablet-disclosure__summary:focus-visible {
    outline: 3px solid var(--sadaa-admin-focus, var(--sadaa-focus, rgba(var(--sadaa-primary-rgb), .14))) !important;
    outline-offset: -3px !important;
  }

  .sadaa-tablet-disclosure__title {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
  }

  .sadaa-tablet-disclosure__title > i,
  .sadaa-tablet-disclosure__title > svg {
    flex: 0 0 auto !important;
    color: var(--sadaa-accordion-accent, var(--sadaa-admin-primary, var(--sadaa-primary))) !important;
  }

  /* نفس زر السهم المربع الموجود في صف صلاحيات المشرف. */
  .sadaa-tablet-disclosure__chevron {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--sadaa-muted, #6b7280) !important;
    line-height: 1 !important;
  }

  .sadaa-tablet-disclosure:not([open]) > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron::before {
    position: relative;
    left: 1px;
    transform: rotate(45deg) !important;
  }

  .sadaa-tablet-disclosure[open] > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron {
    border-color: color-mix(in srgb, var(--sadaa-admin-primary, var(--sadaa-primary)) 28%, var(--sadaa-admin-line, #e5e7eb)) !important;
    color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  }

  .sadaa-tablet-disclosure[open] > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron::before {
    position: static;
    transform: rotate(-45deg) !important;
  }
}

/* =========================================================
   Tablet Search & Filter Controls — v1.4
   نظام موحّد لمناطق البحث والفلاتر والترتيب داخل لوحة التحكم على التابلت.
   يحافظ على نفس التنسيق المعتمد: حقل رئيسي + أزرار واضحة بارتفاع موحّد،
   مع شبكات فلاتر وترتيب قابلة لإعادة الاستخدام بين التبويبات.
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {
  .sadaa-tablet-disclosure__body {
    min-width: 0 !important;
    width: 100% !important;
    padding-top: 10px !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-tools-stack {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sadaa-tablet-tools-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sadaa-tablet-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 132px 108px !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }

  .sadaa-tablet-search-row--one-action {
    grid-template-columns: minmax(0, 1fr) 132px !important;
  }

  .sadaa-tablet-search-row--with-filter {
    grid-template-columns: minmax(0, 1fr) minmax(125px, 160px) 112px 100px !important;
  }

  .sadaa-tablet-search-field {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-column: auto !important;
    flex: none !important;
    flex-basis: auto !important;
  }

  .sadaa-tablet-search-field input,
  .sadaa-tablet-search-field select,
  .sadaa-tablet-search-row input,
  .sadaa-tablet-search-row select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-search-row > button,
  .sadaa-tablet-search-row > a,
  .sadaa-tablet-search-actions > button,
  .sadaa-tablet-search-actions > a {
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-search-row > button,
  .sadaa-tablet-search-row > a {
    width: 100% !important;
  }

  .sadaa-tablet-search-actions {
    display: grid !important;
    grid-template-columns: repeat(2, auto) !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sadaa-tablet-search-actions > button,
  .sadaa-tablet-search-actions > a {
    width: auto !important;
    min-width: 86px !important;
  }

  .sadaa-tablet-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .sadaa-tablet-filter-grid {
    display: grid !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sadaa-tablet-filter-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sadaa-tablet-filter-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sadaa-tablet-filter-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

  .sadaa-tablet-filter-grid > * {
    min-width: 0 !important;
  }

  .sadaa-tablet-filter-control,
  .sadaa-tablet-filter-control select,
  select.sadaa-tablet-filter-control,
  input.sadaa-tablet-filter-control {
    min-height: 40px !important;
    height: 40px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-filter-toolbar {
    display: grid !important;
    grid-template-columns: minmax(170px, 1.7fr) repeat(3, minmax(100px, 1fr)) auto auto !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sadaa-tablet-filter-toolbar .sadaa-tablet-filter-label {
    display: none !important;
  }

  .sadaa-tablet-filter-toolbar > button,
  .sadaa-tablet-filter-toolbar > a {
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding-inline: 10px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-sort-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sadaa-tablet-sort-inline {
    display: grid !important;
    grid-template-columns: auto minmax(176px, auto) !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .sadaa-tablet-sort-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .sadaa-tablet-action-grid {
    display: grid !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .sadaa-tablet-action-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sadaa-tablet-action-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

  .sadaa-tablet-action-grid > button,
  .sadaa-tablet-action-grid > a {
    width: 100% !important;
    min-width: 0 !important;
  }

  .sadaa-tablet-grid-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .sadaa-tablet-controls-row {
    display: grid !important;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* خارج نطاق التابلت: بعض الـ details ليست Accordion فعلياً، بل غلاف responsive فقط. */
@media (max-width: 720px), (min-width: 1101px) {
  .sadaa-tablet-disclosure--summary-only-tablet > .sadaa-tablet-disclosure__summary {
    display: none !important;
    pointer-events: none !important;
  }

  .sadaa-tablet-disclosure--summary-only-tablet:not([open]) > .sadaa-tablet-disclosure__body {
    display: block !important;
  }

  .sadaa-tablet-disclosure--body-contents-outside > .sadaa-tablet-disclosure__summary {
    display: none !important;
    pointer-events: none !important;
  }

  .sadaa-tablet-disclosure--body-contents-outside > .sadaa-tablet-disclosure__body,
  .sadaa-tablet-disclosure--body-contents-outside:not([open]) > .sadaa-tablet-disclosure__body {
    display: contents !important;
  }

  .sadaa-tablet-disclosure--contents-outside {
    display: contents !important;
  }

  .sadaa-tablet-disclosure--contents-outside > .sadaa-tablet-disclosure__summary {
    display: none !important;
    pointer-events: none !important;
  }

  .sadaa-tablet-disclosure--contents-outside > .sadaa-tablet-disclosure__body,
  .sadaa-tablet-disclosure--contents-outside:not([open]) > .sadaa-tablet-disclosure__body {
    display: contents !important;
  }

  .sadaa-tablet-disclosure--static-outside > .sadaa-tablet-disclosure__summary {
    pointer-events: none !important;
  }

  .sadaa-tablet-disclosure--static-outside:not([open]) > .sadaa-tablet-disclosure__body {
    display: block !important;
  }
}

/* =========================================================
   Admin Containers Authority — v1.2 — TABLET ONLY
   المرجع النهائي لحاويات البطاقات + البحث + الفلاتر على التابلت.
   النطاق: 721px–1100px فقط.
   أي تنسيق محلي سابق لهذه الأسطح يتم تجاوزه هنا لضمان التطابق بين التبويبات.
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {
  .sadaa-admin-card,
  .sadaa-admin-stat-card {
    box-sizing: border-box !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-surface, #fff) !important;
  }

  .sadaa-admin-card {
    box-shadow: 0 8px 22px rgba(var(--sadaa-admin-dark-rgb, var(--sadaa-shadow-rgb, 17,24,39)), .045) !important;
  }

  .sadaa-admin-card--flat,
  .sadaa-admin-stat-card {
    box-shadow: none !important;
  }

  .sadaa-admin-stat-card,
  .sadaa-admin-list-shell,
  .sadaa-admin-stats-grid,
  .sadaa-tablet-records-shell,
  .sadaa-tablet-records-stack {
    min-width: 0 !important;
  }

  /* الأغلفة البنيوية لا ترسم سطحاً إضافياً؛ السطح الحقيقي للقائمة هو records-shell. */
  .sadaa-admin-list-shell,
  html body #tabContent .sadaa-admin-list-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* ---------------------------------------------------------
     Search / Filter container — مصدر واحد لكل التبويبات
     --------------------------------------------------------- */
  .sadaa-admin-tools-card,
  html body #tabContent .sadaa-admin-tools-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-surface, #fff) !important;
    color: var(--sadaa-admin-text, var(--sadaa-text, #111827)) !important;
    box-shadow: none !important;
  }

  .sadaa-admin-tools-card:last-child,
  html body #tabContent .sadaa-admin-tools-card:last-child {
    margin-bottom: 0 !important;
  }

  .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary,
  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary {
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 9px 14px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 7px 7px 0 0 !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
  }

  .sadaa-admin-tools-card > .sadaa-tablet-disclosure__body,
  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__body {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    background: var(--sadaa-surface, #fff) !important;
  }

  .sadaa-admin-tools-card .sadaa-tablet-disclosure__title,
  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__title {
    margin: 0 !important;
  }

  /* ---------------------------------------------------------
     Cards-list container — نفس الحد والخلفية والمسافة في كل القوائم
     --------------------------------------------------------- */
  .sadaa-tablet-records-shell,
  html body #tabContent .sadaa-tablet-records-shell {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
  }

  .sadaa-tablet-records-stack,
  html body #tabContent .sadaa-tablet-records-stack {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  /* بطاقات السجلات داخل الحاوية الموحدة. */
  .sadaa-tablet-records-shell .sadaa-admin-record-card,
  html body #tabContent .sadaa-tablet-records-shell .sadaa-admin-record-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-top: 3px solid var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* الحالات الفارغة تملأ نفس الحاوية بدون إنشاء سطح ثانٍ. */
  .sadaa-tablet-records-shell .sadaa-empty-state,
  .sadaa-tablet-records-shell .orders-grid-row.empty,
  .sadaa-tablet-records-shell .finance-empty-row,
  html body #tabContent .sadaa-tablet-records-shell .sadaa-empty-state,
  html body #tabContent .sadaa-tablet-records-shell .orders-grid-row.empty,
  html body #tabContent .sadaa-tablet-records-shell .finance-empty-row {
    margin: 0 !important;
    border-radius: 7px !important;
  }
}

/* =========================================================
   Tablet Containers — Quick Corrections v1.3
   ملاحظات 2026-09-25
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* ---------------------------------------------------------
     المستخدمون:
     إزالة الغلاف البنيوي الخفي المباشر خلف البطاقات، مع إبقاء
     حاوية السجلات الموحدة هي السطح الوحيد للقائمة.
     --------------------------------------------------------- */
  html body #tabContent .users-tab-soft .users-list-wrap.sadaa-tablet-records-shell {
    display: grid !important;
    gap: 10px !important;
  }

  html body #tabContent .users-tab-soft .users-list.sadaa-tablet-records-stack {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* ---------------------------------------------------------
     المشرفون:
     الاعتماد على الحاوية الخلفية فقط وإلغاء السطح المباشر خلف
     البطاقات، مع زوايا موحدة للحاوية الخلفية.
     --------------------------------------------------------- */
  html body #tabContent .moderators-tab .moderators-panel.sadaa-admin-list-shell {
    padding: 10px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .moderators-tab .moderators-panel .sadaa-tablet-records-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #tabContent .moderators-tab .moderators-grid.sadaa-tablet-records-stack {
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* ---------------------------------------------------------
     أكواد الخصم:
     إزالة الغلاف البنيوي الخفي المباشر خلف البطاقات.
     --------------------------------------------------------- */
  html body #tabContent .coupons-tab-ui .mc-list-wrap.sadaa-tablet-records-shell {
    display: grid !important;
    gap: 10px !important;
  }

  html body #tabContent .coupons-tab-ui .mc-list.sadaa-tablet-records-stack {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* إلغاء الحد البنفسجي أعلى بطاقات أكواد الخصم. */
  html body #tabContent .coupons-tab-ui .mc-list-wrap .mc-row.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  /* ---------------------------------------------------------
     الرسائل البريدية:
     إلغاء الحد البنفسجي أعلى بطاقات السجلات.
     --------------------------------------------------------- */
  html body #tabContent .newsletter-admin .newsletter-table-wrap
  .newsletter-table tbody tr.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  /* ---------------------------------------------------------
     تقرير الطلبات:
     إزالة الحاوية الخارجية خلف منطقتي البحث والفلاتر نهائياً
     بصرياً، والإبقاء على المنطقتين المستقلتين فقط.
     --------------------------------------------------------- */
  html body #tabContent .finance-tab .finance-filter-card,
  html body #tabContent .finance-tab .finance-filter-card.sadaa-admin-list-shell,
  html body #tabContent .finance-tab .finance-filter-card.sadaa-admin-card {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .finance-tab .finance-filter-grid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* إلغاء الحد البنفسجي أعلى بطاقات تقرير الطلبات. */
  html body #tabContent .finance-tab .finance-table-wrap
  .finance-order-row.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }
}

/* =========================================================
   Tablet Refinements — Round 4 — 2026-09-25
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* المشرفون: إزالة الحاوية الخلفية والإبقاء على البحث وحاوية البطاقات. */
  html body #tabContent .moderators-tab .moderators-panel.sadaa-admin-list-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .moderators-tab .moderators-panel .sadaa-tablet-records-shell {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .moderators-tab .moderators-grid.sadaa-tablet-records-stack {
    gap: 10px !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-surface, #fff) !important;
    box-shadow: none !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar .moderators-muted {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar button,
  html body #tabContent .moderators-tab .moderators-save-bar .moderators-btn {
    width: auto !important;
    min-width: 200px !important;
    min-height: 42px !important;
    padding: 8px 16px !important;
    justify-self: start !important;
    border-radius: 7px !important;
    white-space: nowrap !important;
  }

  /* العروض: إبقاء حاوية "قائمة العروض" وإزالة السطح الداخلي الإضافي. */
  html body #tabContent .offers-tab-ui .offers-current-card-body
  .offers-table-wrap.sadaa-tablet-records-shell {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .offers-tab-ui .offers-current-card-body
  .offers-table tbody.sadaa-tablet-records-stack {
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body #tabContent .offers-tab-ui .offers-status {
    min-width: 64px !important;
    min-height: 26px !important;
    padding: 4px 9px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    gap: 0 !important;
    white-space: nowrap !important;
  }

  html body #tabContent .offers-tab-ui .offers-status::before {
    content: none !important;
    display: none !important;
  }

  html body #tabContent .offers-tab-ui .offers-status.is-active {
    background: #ecfdf3 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
  }

  html body #tabContent .offers-tab-ui .offers-status.is-expired {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
  }

  html body #tabContent .offers-tab-ui .offers-status:not(.is-active):not(.is-expired) {
    background: var(--sadaa-admin-soft, #f3f4f6) !important;
    color: var(--sadaa-admin-dark) !important;
    border-color: var(--sadaa-admin-soft-line, #d1d5db) !important;
  }

  /* الرسائل البريدية: إعادة الفواصل الداخلية في البطاقة الأخيرة. */
  html body #tabContent .newsletter-admin .newsletter-table
  tbody tr:last-child > td:not(:last-child) {
    border-bottom: 1px solid #eef0f3 !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table
  tbody tr:last-child > td:last-child {
    border-bottom: 0 !important;
  }

  /* تقرير الطلبات: إزالة الحاوية الخلفية والإبقاء على الحاوية المباشرة للبطاقات. */
  html body #tabContent .finance-tab .finance-table-card.sadaa-admin-card {
    margin-bottom: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .finance-tab
  .finance-table-wrap.sadaa-tablet-records-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .finance-tab
  .finance-table-wrap > .finance-pagination {
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    justify-content: center !important;
  }
}

/* =========================================================
   Tablet Refinements — Round 5 — 2026-09-26
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* =======================================================
     أكواد الخصم
     إزالة الخط أسفل صف "تاريخ النهاية" داخل بطاقة الكوبون.
     ======================================================= */
  html body #tabContent .coupons-tab-ui
  .mc-row.sadaa-admin-record-card
  > .mc-cell[data-label="تاريخ النهاية"] {
    border-bottom: 0 !important;
  }

  /* =======================================================
     المشرفون
     إزالة الحاوية الخلفية العامة نهائياً والإبقاء فقط على
     حاوية السجلات المباشرة خلف بطاقات المشرفين.
     ======================================================= */
  html body #tabContent .moderators-tab
  > .moderators-panel.sadaa-admin-list-shell {
    display: contents !important;
  }

  html body #tabContent .moderators-tab
  .sadaa-tablet-records-shell {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
  }

  /* إزالة الحد البنفسجي العام أعلى بطاقة المشرف.
     هذا الحد كان قادماً من sadaa-admin-record-card ويظهر كتداخل
     مع الزوايا العلوية للبطاقة ورأسها البنفسجي. */
  html body #tabContent .moderators-tab
  .moderator-card.sadaa-admin-record-card {
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: var(--sadaa-radius-md, 8px) !important;
    overflow: hidden !important;
  }

  /* رأس البطاقة يلتصق مباشرة بأعلى البطاقة ويأخذ نفس الزوايا
     بدون وجود شريط أو فراغ بصري إضافي فوقه. */
  html body #tabContent .moderators-tab
  .moderator-card > .moderator-card-head {
    margin: 0 !important;
    border-radius: 0 !important;
  }
}

/* =========================================================
   Tablet Refinements — Round 6 — 2026-09-26
   إزالة الحاوية البيضاء الخلفية في تبويب المشرفين.
   السبب: قاعدة form العامة القديمة في dashboard.css.
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {
  html body #tabContent .moderators-tab #moderatorsPermissionsForm {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Mobile Admin Design System Alignment — v1.0 — 2026-09-26
   نقل الشكل المعتمد على التابلت إلى شاشات الجوال مع تكييف
   الأبعاد والتخطيط للشاشات <= 720px.
   ========================================================= */
@media (max-width: 720px) {

  /* ---------------------------------------------------------
     Cards / surfaces — نفس لغة التابلت مع مقاسات جوال
     --------------------------------------------------------- */
  html body #tabContent .sadaa-admin-card,
  html body #tabContent .sadaa-admin-stat-card {
    box-sizing: border-box !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    background: var(--sadaa-surface, #fff) !important;
  }

  html body #tabContent .sadaa-admin-card {
    box-shadow: 0 6px 18px rgba(var(--sadaa-admin-dark-rgb, var(--sadaa-shadow-rgb, 17,24,39)), .035) !important;
  }

  html body #tabContent .sadaa-admin-card--flat,
  html body #tabContent .sadaa-admin-stat-card {
    box-shadow: none !important;
  }

  /* الأغلفة البنيوية لا ترسم سطحاً إضافياً. */
  html body #tabContent .sadaa-admin-list-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* ---------------------------------------------------------
     Search / Filters container — نفس الشكل المعتمد في التابلت
     --------------------------------------------------------- */
  html body #tabContent .sadaa-admin-tools-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    background: var(--sadaa-surface, #fff) !important;
    color: var(--sadaa-admin-text, var(--sadaa-text, #111827)) !important;
    box-shadow: none !important;
  }

  html body #tabContent .sadaa-admin-tools-card:last-child {
    margin-bottom: 0 !important;
  }

  /* خارج التابلت كان summary مخفياً؛ على الجوال نعيد نفس رأس التابلت. */
  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure,
  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure--contents-outside {
    display: block !important;
  }

  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    list-style: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 7px 7px 0 0 !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    color: var(--sadaa-admin-text, var(--sadaa-text-2, #374151)) !important;
    box-shadow: none !important;
  }

  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary::-webkit-details-marker {
    display: none !important;
  }

  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary::marker,
  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary::after {
    content: "" !important;
    display: none !important;
  }

  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__title {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
  }

  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__title > i,
  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__title > svg {
    flex: 0 0 auto !important;
    color: var(--sadaa-accordion-accent, var(--sadaa-admin-primary, var(--sadaa-primary))) !important;
  }

  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__chevron {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--sadaa-muted, #6b7280) !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
  }

  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure:not([open])
  > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron::before {
    position: relative !important;
    left: 1px !important;
    transform: rotate(45deg) !important;
  }

  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron {
    border-color: color-mix(in srgb, var(--sadaa-admin-primary, var(--sadaa-primary)) 28%, var(--sadaa-admin-line, #e5e7eb)) !important;
    color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  }

  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > .sadaa-tablet-disclosure__summary .sadaa-tablet-disclosure__chevron::before {
    position: static !important;
    transform: rotate(-45deg) !important;
  }

  /* إلغاء قاعدة outside القديمة التي كانت تُظهر الجسم دائماً على الجوال. */
  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure:not([open])
  > .sadaa-tablet-disclosure__body {
    display: none !important;
  }

  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > .sadaa-tablet-disclosure__body {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    background: var(--sadaa-surface, #fff) !important;
  }

  /* ---------------------------------------------------------
     Search / Filters internal layout
     --------------------------------------------------------- */
  html body #tabContent .sadaa-tablet-tools-stack,
  html body #tabContent .sadaa-tablet-tools-split {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body #tabContent .sadaa-tablet-search-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #tabContent .sadaa-tablet-search-row .sadaa-tablet-search-field,
  html body #tabContent .sadaa-tablet-search-row--with-filter .sadaa-tablet-search-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html body #tabContent .sadaa-tablet-search-row input,
  html body #tabContent .sadaa-tablet-search-row select,
  html body #tabContent .sadaa-tablet-search-field input,
  html body #tabContent .sadaa-tablet-search-field select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  html body #tabContent .sadaa-tablet-search-row > button,
  html body #tabContent .sadaa-tablet-search-row > a,
  html body #tabContent .sadaa-tablet-search-actions > button,
  html body #tabContent .sadaa-tablet-search-actions > a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  html body #tabContent .sadaa-tablet-search-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body #tabContent .sadaa-tablet-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body #tabContent .sadaa-tablet-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html body #tabContent .sadaa-tablet-filter-grid--3 > :last-child:nth-child(odd),
  html body #tabContent .sadaa-tablet-filter-grid--4 > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .sadaa-tablet-filter-grid > *,
  html body #tabContent .sadaa-tablet-filter-control {
    min-width: 0 !important;
  }

  html body #tabContent .sadaa-tablet-filter-control,
  html body #tabContent .sadaa-tablet-filter-control select,
  html body #tabContent select.sadaa-tablet-filter-control,
  html body #tabContent input.sadaa-tablet-filter-control {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    font-size: 12.5px !important;
  }

  html body #tabContent .sadaa-tablet-filter-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: end !important;
    margin: 0 !important;
  }

  html body #tabContent .sadaa-tablet-filter-toolbar .sadaa-tablet-search-field {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .sadaa-tablet-filter-toolbar > button,
  html body #tabContent .sadaa-tablet-filter-toolbar > a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 7px 9px !important;
  }

  html body #tabContent .sadaa-tablet-sort-inline {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .sadaa-tablet-sort-inline .sadaa-tablet-filter-label,
  html body #tabContent .sadaa-tablet-sort-label {
    display: none !important;
  }

  html body #tabContent .sadaa-tablet-sort-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .sadaa-tablet-sort-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 7px 9px !important;
  }

  html body #tabContent .sadaa-tablet-action-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .sadaa-tablet-action-grid--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .sadaa-tablet-action-grid > button,
  html body #tabContent .sadaa-tablet-action-grid > a {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .sadaa-tablet-grid-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* ---------------------------------------------------------
     Records list container
     --------------------------------------------------------- */
  html body #tabContent .sadaa-tablet-records-shell {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
  }

  html body #tabContent .sadaa-tablet-records-stack {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  html body #tabContent .sadaa-tablet-records-shell .sadaa-admin-record-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-top: 3px solid var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* ---------------------------------------------------------
     المستخدمون — إزالة الغلاف الداخلي الخفي
     --------------------------------------------------------- */
  html body #tabContent .users-tab-soft .users-list-wrap.sadaa-tablet-records-shell {
    display: grid !important;
    gap: 8px !important;
  }

  html body #tabContent .users-tab-soft .users-list.sadaa-tablet-records-stack {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #tabContent .users-tab-soft .users-filter-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #tabContent .users-tab-soft .users-filter-select-wrap select {
    text-align: right !important;
    text-align-last: right !important;
  }

  /* ---------------------------------------------------------
     المشرفون — نفس البنية النهائية المعتمدة في التابلت
     --------------------------------------------------------- */
  html body #tabContent .moderators-tab > .moderators-panel.sadaa-admin-list-shell {
    display: contents !important;
  }

  html body #tabContent .moderators-tab #moderatorsPermissionsForm {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #tabContent .moderators-tab .sadaa-tablet-records-shell {
    padding: 8px !important;
  }

  html body #tabContent .moderators-tab .moderator-card.sadaa-admin-record-card {
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  html body #tabContent .moderators-tab .moderator-card > .moderator-card-head {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  html body #tabContent .moderators-tab .moderators-search-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .moderators-tab .moderators-search-field {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .moderators-tab .moderators-sort-inline {
    width: 100% !important;
    justify-self: stretch !important;
  }

  html body #tabContent .moderators-tab .moderators-sort-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 7px !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 9px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    background: var(--sadaa-surface, #fff) !important;
    box-shadow: none !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar .moderators-muted {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 11.5px !important;
  }

  html body #tabContent .moderators-tab .moderators-save-bar button,
  html body #tabContent .moderators-tab .moderators-save-bar .moderators-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
  }

  /* ---------------------------------------------------------
     الكوبونات — إزالة الغلاف الداخلي والحد البنفسجي
     --------------------------------------------------------- */
  html body #tabContent .coupons-tab-ui .mc-list-wrap.sadaa-tablet-records-shell {
    display: grid !important;
    gap: 8px !important;
  }

  html body #tabContent .coupons-tab-ui .mc-list.sadaa-tablet-records-stack {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #tabContent .coupons-tab-ui .mc-list-wrap .mc-row.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .coupons-tab-ui
  .mc-row.sadaa-admin-record-card > .mc-cell[data-label="تاريخ النهاية"] {
    border-bottom: 0 !important;
  }

  /* ---------------------------------------------------------
     الرسائل البريدية
     --------------------------------------------------------- */
  html body #tabContent .newsletter-admin .newsletter-admin-stats,
  html body #tabContent .newsletter-admin-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table-wrap
  .newsletter-table tbody tr.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table
  tbody tr:last-child > td:not(:last-child) {
    border-bottom: 1px solid #eef0f3 !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table
  tbody tr:last-child > td:last-child {
    border-bottom: 0 !important;
  }

  /* ---------------------------------------------------------
     تقرير الطلبات
     --------------------------------------------------------- */
  html body #tabContent .finance-tab .finance-filter-card,
  html body #tabContent .finance-tab .finance-filter-card.sadaa-admin-list-shell,
  html body #tabContent .finance-tab .finance-filter-card.sadaa-admin-card,
  html body #tabContent .finance-tab .finance-filter-grid,
  html body #tabContent .finance-tab .finance-table-card.sadaa-admin-card {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .finance-tab .finance-filter-card {
    margin: 0 0 10px !important;
  }

  html body #tabContent .finance-tab .finance-table-wrap.sadaa-tablet-records-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px !important;
  }

  html body #tabContent .finance-tab .finance-table-wrap
  .finance-order-row.sadaa-admin-record-card {
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .finance-tab .finance-table-wrap > .finance-pagination {
    width: 100% !important;
    margin: 8px 0 0 !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }

  /* ---------------------------------------------------------
     العروض
     --------------------------------------------------------- */
  html body #tabContent .offers-tab-ui .offers-current-card-body
  .offers-table-wrap.sadaa-tablet-records-shell {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .offers-tab-ui .offers-current-card-body
  .offers-table tbody.sadaa-tablet-records-stack {
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body #tabContent .offers-tab-ui .offers-status {
    min-width: 60px !important;
    min-height: 25px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    gap: 0 !important;
    white-space: nowrap !important;
  }

  html body #tabContent .offers-tab-ui .offers-status::before {
    content: none !important;
    display: none !important;
  }

  html body #tabContent .offers-tab-ui .offers-status.is-active {
    background: #ecfdf3 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
  }

  html body #tabContent .offers-tab-ui .offers-status.is-expired {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fde68a !important;
  }

  html body #tabContent .offers-tab-ui .offers-status:not(.is-active):not(.is-expired) {
    background: var(--sadaa-admin-soft, #f3f4f6) !important;
    color: var(--sadaa-admin-dark) !important;
    border-color: var(--sadaa-admin-soft-line, #d1d5db) !important;
  }

  html body #tabContent .offers-tab-ui .offers-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* ---------------------------------------------------------
     دليل المتاجر
     --------------------------------------------------------- */
  html body #tabContent .directory-tab-soft .directory-unified-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  html body #tabContent .directory-tab-soft .directory-unified-toolbar .directory-search-field {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .directory-tab-soft .directory-toolbar-filter:nth-of-type(4) {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .directory-tab-soft .directory-toolbar-search,
  html body #tabContent .directory-tab-soft .directory-toolbar-clear {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* ---------------------------------------------------------
     البلاغات — الإجراءات الجماعية لا تتمدد بشكل مشوه
     --------------------------------------------------------- */
  html body #tabContent .reports-tab-ui .reports-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter,
  html body #tabContent .reports-tab-ui .reports-bulk-action-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .reports-tab-ui .reports-bulk-actions,
  html body #tabContent .reports-tab-ui .reports-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
  }

  /* ---------------------------------------------------------
     الطلبات — تثبيت تفاصيل البطاقة المعتمدة في التابلت
     --------------------------------------------------------- */
  html body #tabContent .orders-tab-ui .orders-panel.sadaa-admin-list-shell {
    padding: 0 !important;
    background: transparent !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid.sadaa-tablet-records-stack {
    padding: 0 !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid-row.sadaa-admin-record-card {
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid-row
  .orders-grid-cell[data-label="المدة"] {
    border-bottom: 0 !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid-row
  .orders-grid-cell:first-child {
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .orders-tab-ui
  .orders-search-card > .sadaa-tablet-disclosure__summary {
    padding-inline: 10px !important;
  }
}

/* الشاشات الأصغر: عمود واحد للحقول الطويلة حتى لا تنضغط. */
@media (max-width: 480px) {
  html body #tabContent .sadaa-admin-tools-card > .sadaa-tablet-disclosure__summary {
    min-height: 42px !important;
    padding: 7px 9px !important;
  }

  html body #tabContent .sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > .sadaa-tablet-disclosure__body {
    padding: 8px !important;
  }

  html body #tabContent .sadaa-tablet-filter-grid,
  html body #tabContent .sadaa-tablet-filter-toolbar {
    grid-template-columns: 1fr !important;
  }

  html body #tabContent .sadaa-tablet-filter-grid > *,
  html body #tabContent .sadaa-tablet-filter-grid--3 > :last-child,
  html body #tabContent .sadaa-tablet-filter-grid--4 > :last-child,
  html body #tabContent .sadaa-tablet-filter-toolbar > * {
    grid-column: 1 !important;
  }

  html body #tabContent .offers-tab-ui .offers-form-grid {
    grid-template-columns: 1fr !important;
  }

  html body #tabContent .directory-tab-soft .directory-unified-toolbar {
    grid-template-columns: 1fr !important;
  }

  html body #tabContent .directory-tab-soft .directory-unified-toolbar > * {
    grid-column: 1 !important;
  }

  html body #tabContent .users-tab-soft .users-filter-selects {
    grid-template-columns: 1fr !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body #tabContent .sadaa-tablet-records-shell {
    padding: 7px !important;
    gap: 7px !important;
  }

  html body #tabContent .sadaa-tablet-records-stack {
    gap: 7px !important;
  }
}

/* =========================================================
   Mobile Refinements — Round 1 — 2026-09-26
   النطاق: الجوال فقط حتى 720px
   ========================================================= */
@media (max-width: 720px) {

  /* =======================================================
     الكوبونات
     توحيد ألوان ملخص حالات الكوبونات بلغة بصرية واحدة.
     ======================================================= */
  html body #tabContent .coupons-tab-ui .coupon-status-chip,
  html body #tabContent .coupons-tab-ui .coupon-status-chip.is-active,
  html body #tabContent .coupons-tab-ui .coupon-status-chip.is-disabled,
  html body #tabContent .coupons-tab-ui .coupon-status-chip.is-pending,
  html body #tabContent .coupons-tab-ui .coupon-status-chip.is-expired,
  html body #tabContent .coupons-tab-ui .coupon-status-chip.is-used-up {
    background: var(--sadaa-admin-soft, var(--sadaa-tint, #f5f7f9)) !important;
    color: var(--sadaa-admin-dark, var(--sadaa-primary-dark)) !important;
    border-color: var(--sadaa-admin-soft-line, var(--sadaa-line-2, #e2e8f0)) !important;
  }

  html body #tabContent .coupons-tab-ui .coupon-status-chip > i {
    color: var(--sadaa-admin-primary, var(--sadaa-primary)) !important;
  }

  /* =======================================================
     الرسائل البريدية
     حقل البحث وزر البحث في صف واحد متوازن.
     ======================================================= */
  html body #tabContent .newsletter-admin .newsletter-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92px !important;
    gap: 7px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .newsletter-admin .newsletter-search-field,
  html body #tabContent .newsletter-admin .newsletter-search .sadaa-tablet-search-field {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .newsletter-admin .newsletter-search > button {
    grid-column: auto !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding-inline: 10px !important;
    white-space: nowrap !important;
  }

  /* =======================================================
     تقرير الطلبات
     دمج رأس "قائمة الطلبات" وحاوية البطاقات في سطح واحد.
     ======================================================= */
  html body #tabContent .finance-tab .finance-table-card.sadaa-admin-card {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 8px !important;
    border: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 8px !important;
    background: var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html body #tabContent .finance-tab .finance-table-card > .finance-card-head {
    width: calc(100% + 16px) !important;
    min-height: 42px !important;
    margin: -8px -8px 8px !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius: 7px 7px 0 0 !important;
    background: var(--sadaa-surface, #fff) !important;
    box-sizing: border-box !important;
  }

  html body #tabContent .finance-tab
  .finance-table-card > .finance-table-wrap.sadaa-tablet-records-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body #tabContent .finance-tab
  .finance-table-card .finance-orders-table tbody.sadaa-tablet-records-stack {
    gap: 8px !important;
  }

  html body #tabContent .finance-tab
  .finance-table-card .finance-table-wrap > .finance-pagination {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  /* =======================================================
     البلاغات
     شبكة فلاتر كاملة العرض ومتوازنة مع أبعاد الجوال.
     ======================================================= */
  html body #tabContent .reports-tab-ui .reports-tablet-disclosure-body {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter-bar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 7px !important;
    gap: 5px !important;
    border-radius: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter > span {
    min-width: 20px !important;
    min-height: 20px !important;
    padding: 1px 6px !important;
    font-size: 11px !important;
  }

  /* الفلتر الخامس يملأ الصف الأخير بدل ترك نصف صف فارغ. */
  html body #tabContent .reports-tab-ui .reports-filter-bar
  > .reports-filter:nth-of-type(5) {
    grid-column: 1 / -1 !important;
  }

  html body #tabContent .reports-tab-ui .reports-bulk-toolbar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
    padding: 7px 0 0 !important;
  }

  html body #tabContent .reports-tab-ui .reports-bulk-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body #tabContent .reports-tab-ui .reports-bulk-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 7px !important;
    font-size: 11.5px !important;
  }

  html body #tabContent .reports-tab-ui
  .reports-bulk-action-btn:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* أضيق شاشات الجوال */
@media (max-width: 380px) {
  html body #tabContent .newsletter-admin .newsletter-search {
    grid-template-columns: minmax(0, 1fr) 82px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-search > button {
    width: 82px !important;
    min-width: 82px !important;
    padding-inline: 7px !important;
    font-size: 11.5px !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter,
  html body #tabContent .reports-tab-ui .reports-bulk-action-btn {
    font-size: 11px !important;
    padding-inline: 5px !important;
  }
}

/* =========================================================
   Mobile Typography = Tablet — v1 — 2026-09-26
   النطاق: الجوال فقط حتى 720px
   الهدف: مطابقة أحجام الخطوط المعتمدة في نسخة التابلت
   بدون تغيير أي حاوية أو توزيع أو أبعاد.
   ========================================================= */
@media (max-width: 720px) {

  /* ---------------------------------------------------------
     الأساس المركزي
     --------------------------------------------------------- */
  html body #tabContent {
    font-size: 14px !important;
  }

  html body #tabContent .sadaa-input,
  html body #tabContent .sadaa-select,
  html body #tabContent .sadaa-textarea {
    font-size: 14px !important;
  }

  html body #tabContent .sadaa-input--toolbar,
  html body #tabContent .sadaa-select--toolbar {
    font-size: 13.5px !important;
  }

  html body #tabContent .sadaa-btn {
    font-size: 14px !important;
  }

  /* ---------------------------------------------------------
     الهيرو / رؤوس الصفحات المركزية
     مطابق لقيم التابلت: 20 / 13 / 16
     --------------------------------------------------------- */
  html body #tabContent .sadaa-page-header--admin .sadaa-page-header__icon {
    font-size: 16px !important;
  }

  html body #tabContent .sadaa-page-header--admin .sadaa-page-header__title {
    font-size: 20px !important;
    line-height: 1.5 !important;
  }

  html body #tabContent .sadaa-page-header--admin .sadaa-page-header__description {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  html body #tabContent .sadaa-page-header--admin .sadaa-page-header__meta {
    font-size: 13px !important;
  }

  /* ---------------------------------------------------------
     البحث والفلاتر
     --------------------------------------------------------- */
  html body #tabContent .sadaa-tablet-disclosure__title,
  html body #tabContent .sadaa-admin-tools-card .sadaa-tablet-disclosure__title {
    font-size: 13.5px !important;
  }

  html body #tabContent .sadaa-tablet-filter-control,
  html body #tabContent .sadaa-tablet-filter-control select,
  html body #tabContent select.sadaa-tablet-filter-control,
  html body #tabContent input.sadaa-tablet-filter-control {
    font-size: 12.5px !important;
  }

  html body #tabContent .sadaa-tablet-search-row input,
  html body #tabContent .sadaa-tablet-search-row select,
  html body #tabContent .sadaa-tablet-search-field input,
  html body #tabContent .sadaa-tablet-search-field select {
    font-size: 13.5px !important;
  }

  /* ---------------------------------------------------------
     الحالات + الصفحات + التبويبات
     --------------------------------------------------------- */
  html body #tabContent .sadaa-status {
    font-size: 12px !important;
  }

  html body #tabContent .sadaa-status--refund-failed,
  html body #tabContent .sadaa-status--compact {
    font-size: 11px !important;
  }

  html body #tabContent .sadaa-pagination__item,
  html body #tabContent .sadaa-pagination__gap {
    font-size: 12.5px !important;
  }

  html body #tabContent .sadaa-tab {
    font-size: 13px !important;
  }

  html body #tabContent .sadaa-admin-record-card {
    font-size: 13.5px !important;
  }

  /* =======================================================
     المستخدمون — نفس Typography التابلت
     ======================================================= */
  html body #tabContent .users-tab-soft .users-page-icon {
    font-size: 14px !important;
  }

  html body #tabContent .users-tab-soft .users-page-title h2 {
    font-size: 18px !important;
  }

  html body #tabContent .users-tab-soft .users-page-title p {
    font-size: 12.5px !important;
  }

  html body #tabContent .users-tab-soft .users-search-field input {
    font-size: 14px !important;
  }

  html body #tabContent .users-tab-soft .search-btn,
  html body #tabContent .users-tab-soft .users-filter-select-wrap select {
    font-size: 13.5px !important;
  }

  html body #tabContent .users-tab-soft .btn-tag {
    font-size: 12.5px !important;
  }

  html body #tabContent .users-tab-soft .users-row,
  html body #tabContent .users-tab-soft .users-cell {
    font-size: 13.5px !important;
  }

  html body #tabContent .users-tab-soft .users-cell::before {
    font-size: 12px !important;
  }

  html body #tabContent .users-tab-soft .user-name-text {
    font-size: 14px !important;
  }

  html body #tabContent .users-tab-soft .role-badge,
  html body #tabContent .users-tab-soft .status-badge {
    font-size: 12px !important;
  }

  /* =======================================================
     الطلبات
     ======================================================= */
  html body #tabContent .orders-tab-ui .orders-header-icon {
    font-size: 14px !important;
  }

  html body #tabContent .orders-tab-ui .orders-clean-header h2 {
    font-size: 17px !important;
  }

  html body #tabContent .orders-tab-ui .orders-clean-header p {
    font-size: 12px !important;
  }

  html body #tabContent .orders-tab-ui .orders-section-title {
    font-size: 13px !important;
  }

  html body #tabContent .orders-tab-ui .orders-search-field input,
  html body #tabContent .orders-tab-ui .search-btn {
    font-size: 12px !important;
  }

  html body #tabContent .orders-tab-ui .btn-tag,
  html body #tabContent .orders-tab-ui .action-toolbar button {
    font-size: 12.5px !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid-cell {
    font-size: 13.5px !important;
  }

  html body #tabContent .orders-tab-ui .orders-grid-cell::before {
    font-size: 12.5px !important;
  }

  html body #tabContent .orders-tab-ui .orders-id-pill {
    font-size: 12.5px !important;
  }

  html body #tabContent .orders-tab-ui
  .orders-grid-cell[data-label="الحالة"] .sadaa-status {
    font-size: 12px !important;
  }

  html body #tabContent .orders-tab-ui .orders-row-actions-toggle,
  html body #tabContent .orders-tab-ui .orders-row-action-item {
    font-size: 12px !important;
  }

  /* =======================================================
     دليل المتاجر
     ======================================================= */
  html body #tabContent .directory-tab-soft .directory-page-icon {
    font-size: 14px !important;
  }

  html body #tabContent .directory-tab-soft .directory-page-title h2 {
    font-size: 18px !important;
  }

  html body #tabContent .directory-tab-soft .directory-page-title p {
    font-size: 12.5px !important;
  }

  html body #tabContent .directory-tab-soft .directory-page-meta {
    font-size: 12px !important;
  }

  html body #tabContent .directory-tab-soft .directory-section-title {
    font-size: 13px !important;
  }

  html body #tabContent .directory-tab-soft .directory-search-field input {
    font-size: 12px !important;
  }

  html body #tabContent .directory-tab-soft .directory-search-form .directory-btn,
  html body #tabContent .directory-tab-soft .directory-filter-select {
    font-size: 13.5px !important;
  }

  html body #tabContent .directory-tab-soft .directory-filter-tag,
  html body #tabContent .directory-tab-soft .directory-filter-controls .directory-btn {
    font-size: 13px !important;
  }

  html body #tabContent .directory-tab-soft .directory-toolbar-filter label {
    font-size: 12px !important;
  }

  html body #tabContent .directory-tab-soft .directory-cell {
    font-size: 13.5px !important;
  }

  html body #tabContent .directory-tab-soft .directory-cell::before {
    font-size: 12px !important;
  }

  html body #tabContent .directory-tab-soft .directory-store-name {
    font-size: 14px !important;
  }

  html body #tabContent .directory-tab-soft .directory-owner-email,
  html body #tabContent .directory-tab-soft .directory-category,
  html body #tabContent .directory-tab-soft .directory-status {
    font-size: 12px !important;
  }

  /* =======================================================
     البلاغات
     ======================================================= */
  html body #tabContent .reports-tab-ui .reports-header-icon {
    font-size: 14px !important;
  }

  html body #tabContent .reports-tab-ui .reports-clean-header h2 {
    font-size: 18px !important;
  }

  html body #tabContent .reports-tab-ui .reports-clean-header p {
    font-size: 12.5px !important;
  }

  html body #tabContent .reports-tab-ui .reports-search-field input,
  html body #tabContent .reports-tab-ui .reports-status-field select {
    font-size: 14px !important;
  }

  html body #tabContent .reports-tab-ui .reports-row,
  html body #tabContent .reports-tab-ui .reports-cell {
    font-size: 13.5px !important;
  }

  html body #tabContent .reports-tab-ui .reports-cell::before {
    font-size: 12px !important;
  }

  html body #tabContent .reports-tab-ui .report-ad-id {
    font-size: 14px !important;
  }

  html body #tabContent .reports-tab-ui .reports-cell small,
  html body #tabContent .reports-tab-ui .report-ad-meta,
  html body #tabContent .reports-tab-ui .report-date span {
    font-size: 12.5px !important;
  }

  html body #tabContent .reports-tab-ui .report-badge {
    font-size: 12px !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter,
  html body #tabContent .reports-tab-ui .reports-bulk-action-btn {
    font-size: 13px !important;
  }

  html body #tabContent .reports-tab-ui .reports-filter span {
    font-size: 12px !important;
  }

  /* =======================================================
     الكوبونات
     ======================================================= */
  html body #tabContent .coupons-tab-ui .coupons-page-icon {
    font-size: 14px !important;
  }

  html body #tabContent .coupons-tab-ui .coupons-page-title h2 {
    font-size: 17px !important;
  }

  html body #tabContent .coupons-tab-ui .coupons-page-title p,
  html body #tabContent .coupons-tab-ui .coupons-page-meta,
  html body #tabContent .coupons-tab-ui .coupons-header-add-btn {
    font-size: 12px !important;
  }

  html body #tabContent .coupons-tab-ui .coupons-section-title {
    font-size: 13.5px !important;
  }

  html body #tabContent .coupons-tab-ui .coupon-status-chip,
  html body #tabContent .coupons-tab-ui .mc-btn {
    font-size: 12.5px !important;
  }

  html body #tabContent .coupons-tab-ui .mc-cell {
    font-size: 14px !important;
  }

  html body #tabContent .coupons-tab-ui .mc-cell::before {
    font-size: 13px !important;
  }

  html body #tabContent .coupons-tab-ui .coupon-id-pill,
  html body #tabContent .coupons-tab-ui .coupon-status {
    font-size: 13px !important;
  }

  html body #tabContent .coupons-tab-ui .coupon-code-cell {
    font-size: 14px !important;
  }

  /* =======================================================
     تقرير الطلبات
     ======================================================= */
  html body #tabContent .finance-tab .finance-summary-icon {
    font-size: 12px !important;
  }

  html body #tabContent .finance-tab .finance-summary-label {
    font-size: 11.5px !important;
  }

  html body #tabContent .finance-tab .finance-summary-value {
    font-size: 17px !important;
  }

  html body #tabContent .finance-tab .finance-orders-table td {
    font-size: 14px !important;
  }

  html body #tabContent .finance-tab .finance-orders-table td::before {
    font-size: 13px !important;
  }

  html body #tabContent .finance-tab .finance-order-main strong,
  html body #tabContent .finance-tab .finance-date-stack strong {
    font-size: 14px !important;
  }

  html body #tabContent .finance-tab .finance-order-main span,
  html body #tabContent .finance-tab .finance-date-stack span {
    font-size: 12.5px !important;
  }

  /* =======================================================
     المشرفون
     ======================================================= */
  html body #tabContent .moderators-tab .moderators-page-icon {
    font-size: 14px !important;
  }

  html body #tabContent .moderators-tab .moderators-page-title h2 {
    font-size: 18px !important;
  }

  html body #tabContent .moderators-tab .moderators-page-title p {
    font-size: 12.5px !important;
  }

  html body #tabContent .moderators-tab .moderators-search-field input,
  html body #tabContent .moderators-tab .moderator-name {
    font-size: 14px !important;
  }

  html body #tabContent .moderators-tab .moderator-meta,
  html body #tabContent .moderators-tab .moderators-muted {
    font-size: 12.5px !important;
  }

  html body #tabContent .moderators-tab .permission-item {
    font-size: 13px !important;
  }

  /* =======================================================
     الرسائل البريدية
     ======================================================= */
  html body #tabContent .newsletter-admin .newsletter-admin-hero h1 {
    font-size: 21px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-admin-hero p {
    font-size: 13px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-filter {
    font-size: 12px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table td {
    font-size: 13px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-table td::before {
    font-size: 12px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-stat-label {
    font-size: 11.5px !important;
  }

  html body #tabContent .newsletter-admin .newsletter-stat-value {
    font-size: 18px !important;
  }

  /* =======================================================
     العروض
     ======================================================= */
  html body #tabContent .offers-tab-ui .offers-page-icon {
    font-size: 16px !important;
  }

  html body #tabContent .offers-tab-ui .offers-page-title h2 {
    font-size: 20px !important;
  }

  html body #tabContent .offers-tab-ui .offers-page-title p {
    font-size: 13px !important;
  }

  html body #tabContent .offers-tab-ui .offers-status {
    font-size: 12px !important;
  }

  html body #tabContent .offers-tab-ui .offers-table td::before {
    font-size: 12px !important;
  }

  html body #tabContent .offers-tab-ui .offers-title-name {
    font-size: 13px !important;
  }

  /* =======================================================
     الإعدادات
     ======================================================= */
  html body #tabContent .settings-tab-ui .settings-page-icon {
    font-size: 14px !important;
  }

  html body #tabContent .settings-tab-ui .settings-page-title h2 {
    font-size: 17px !important;
  }

  html body #tabContent .settings-tab-ui .settings-page-title p,
  html body #tabContent .settings-tab-ui .settings-page-meta {
    font-size: 12px !important;
  }

  html body #tabContent .settings-tab-ui .settings-section-title {
    font-size: 13px !important;
  }

  html body #tabContent .settings-tab-ui .settings-content-card button,
  html body #tabContent .settings-tab-ui .settings-content-card input[type="submit"],
  html body #tabContent .settings-tab-ui .settings-content-card .btn,
  html body #tabContent .settings-tab-ui .settings-content-card .button,
  html body #tabContent .settings-tab-ui .settings-content-card a.button {
    font-size: 12.5px !important;
  }
}

/* =========================================================
   Member Dashboard — Tablet Authority v1 — 2026-09-26
   النطاق: 721px–1100px فقط
   ========================================================= */
@media (min-width:721px) and (max-width:1100px){

  html body #tabContent .member-tab-page-header,
  html body #tabContent .member-tab-page-header.sadaa-page-header--member{
    width:100% !important;
    min-height:0 !important;
    margin:0 0 12px !important;
    padding:18px 20px !important;
    border-radius:8px !important;
  }

  html body #tabContent .member-tab-page-header.sadaa-page-header--member{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
  }

  html body #tabContent .member-tab-page-header .sadaa-page-header__main,
  html body #tabContent .member-tab-page-header .sadaa-page-header__actions{
    min-width:0 !important;
  }

  html body #tabContent .member-tab-page-header .sadaa-page-header__actions{
    flex:0 0 auto !important;
  }

  html body #tabContent .sadaa-card--workspace,
  html body #tabContent .stats-content-panel,
  html body #tabContent .account-settings-content-panel{
    border-radius:8px !important;
  }

  html body #tabContent .sadaa-card--workspace{
    padding:12px !important;
  }

  html body #tabContent .sadaa-card--subsection{
    border-radius:8px !important;
  }

  html body #tabContent .stats-page .member-stats-filter-form{
    grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr) !important;
    gap:10px !important;
  }

  html body #tabContent .stats-page .kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  html body #tabContent .stats-page .store-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  html body #tabContent .stats-page .stats-filter-card,
  html body #tabContent .stats-page .stats-panel{
    padding:13px !important;
  }

  html body #tabContent .member-records-page .member-records-filters{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    padding:10px !important;
  }

  html body #tabContent .member-records-page .member-records-search-wrap{
    grid-column:1 / -1 !important;
    width:100% !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions{
    grid-column:1 / -1 !important;
    display:flex !important;
    justify-content:flex-start !important;
    gap:var(--sadaa-filter-actions-gap) !important;
  }

  html body #tabContent .member-records-page .member-records-list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding:10px !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface-alt,#f8fafc) !important;
  }

  html body #tabContent .member-stores-page .member-stores-summary{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:9px !important;
  }

  html body #tabContent .member-stores-page .member-store-card-head{
    grid-template-columns:88px minmax(0,1fr) !important;
    gap:12px !important;
  }

  html body #tabContent .member-stores-page .member-store-logo-shell{
    width:88px !important;
    height:88px !important;
  }

  html body #tabContent .member-stores-page .member-store-feature-state{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-stores-page .member-store-card-footer{
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  html body #tabContent .member-stores-page .member-store-actions{
    width:100% !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
  }

  html body #tabContent .member-invoices-page .invoices-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  html body #tabContent .member-invoices-page .invoice-stat-card:last-child{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-invoices-page .invoices-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
    padding:9px !important;
  }

  html body #tabContent .member-invoices-page .invoices-search-wrap,
  html body #tabContent .member-invoices-page .invoices-filter-count{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-invoices-page .invoices-list{
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    overflow:visible !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody{
    display:grid !important;
    gap:9px !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody tr{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:0 14px !important;
    padding:12px !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-top:2px solid var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
    border-radius:8px !important;
    background:#fff !important;
  }

  html body #tabContent .account-settings-content-panel,
  html body #tabContent .settings-wrapper .account-settings-content-panel{
    padding:12px !important;
    border-radius:8px !important;
  }

  html body #tabContent .sadaa-pagination,
  html body #tabContent .invoices-pagination,
  html body #tabContent .member-records-pagination{
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:5px !important;
  }
}

/* =========================================================
   Member Dashboard — Content Structure & Tablet Refinements v2
   2026-09-26
   ========================================================= */

/* إحصائيات الإعلانات والمتاجر: فصل منطقة الاختيار عن بقية المحتوى — جميع الشاشات */
html body #tabContent .stats-page .stats-content-panel{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body #tabContent .stats-page .stats-selection-shell{
  width:100% !important;
  min-width:0 !important;
  margin:0 0 12px !important;
  padding:10px !important;
  border:1px solid var(--sadaa-line,#e5e7eb) !important;
  border-radius:8px !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:none !important;
}

html body #tabContent .stats-page .stats-selection-shell > .stats-filter-card{
  margin:0 !important;
}

html body #tabContent .stats-page .store-stats-selection-shell .store-stats-head{
  margin-bottom:10px !important;
}

/* على سطح المكتب فقط تبقى مناطق البحث بدون رأس Disclosure ظاهر.
   الجوال والتابلت يستخدمان الآن نفس آلية Disclosure المركزية. */
@media (min-width:1101px){
  html body #tabContent .member-tablet-tools > .member-tablet-tools-summary{
    display:none !important;
    pointer-events:none !important;
  }
  html body #tabContent .member-tablet-tools > .member-tablet-tools-body,
  html body #tabContent .member-tablet-tools:not([open]) > .member-tablet-tools-body{
    display:contents !important;
  }
  html body #tabContent .member-tablet-tools{
    display:contents !important;
  }
}

@media (min-width:721px) and (max-width:1100px){
  /* -------------------------------------------------------
     الرأس المركزي لمناطق البحث والفلاتر — مطابق للمدير
     ------------------------------------------------------- */
  html body #tabContent .member-tablet-tools{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 10px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-summary{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 10px !important;
    list-style:none !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-tint-3)) !important;
    cursor:pointer !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-summary::-webkit-details-marker{
    display:none !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-body{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:9px !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body #tabContent .member-tablet-tools:not([open]) > .member-tablet-tools-body{
    display:none !important;
  }

  /* -------------------------------------------------------
     إعلاناتي
     ------------------------------------------------------- */
  html body #tabContent .member-records-page .member-records-filters{
    display:grid !important;
    grid-template-columns:minmax(190px,1.3fr) minmax(125px,.8fr) minmax(120px,.75fr) minmax(150px,.8fr) !important;
    gap:7px !important;
    align-items:center !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-records-search-wrap{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-select,
  html body #tabContent .member-records-page .member-records-search-input{
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions{
    grid-column:auto !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:var(--sadaa-filter-actions-gap) !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-submit,
  html body #tabContent .member-records-page .member-records-filter-clear{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions > :only-child{
    grid-column:1 / -1 !important;
  }

  /* الغلاف الخلفي البنيوي يُلغى، وحاوية البطاقات فقط تبقى مرئية. */
  html body #tabContent .member-records-page .member-records-form{
    width:100% !important;
    max-width:none !important;
    margin:0 0 12px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-records-toolbar{
    margin:0 0 8px !important;
  }

  html body #tabContent .member-records-page .member-records-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:9px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-record-row{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  /* -------------------------------------------------------
     متاجري
     ------------------------------------------------------- */
  html body #tabContent .member-stores-page .member-stores-list-shell{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:9px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-stores-page .member-stores-grid{
    gap:9px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #tabContent .member-stores-page .member-store-card:not(.is-featured) .member-store-feature-state{
    display:none !important;
  }

  /* -------------------------------------------------------
     فواتيري — البحث والفلاتر في صف واحد
     ------------------------------------------------------- */
  html body #tabContent .member-invoices-page .invoices-toolbar{
    display:grid !important;
    grid-template-columns:minmax(190px,1.3fr) minmax(120px,.75fr) minmax(120px,.75fr) 88px 76px !important;
    gap:7px !important;
    align-items:center !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-invoices-page .invoices-search-wrap{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-invoices-page .invoices-toolbar-btn,
  html body #tabContent .member-invoices-page .invoices-toolbar-reset,
  html body #tabContent .member-invoices-page .invoices-filter-select,
  html body #tabContent .member-invoices-page .invoices-search-input{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-invoices-page .invoices-filter-count{
    grid-column:1 / -1 !important;
    margin:2px 0 0 !important;
  }

  /* حاوية واحدة خلف بطاقات الفواتير والترقيم. */
  html body #tabContent .member-invoices-page .invoices-records-shell{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:9px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-invoices-page .invoices-list{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody{
    gap:9px !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody tr{
    gap:0 !important;
    padding:12px 13px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-top:2px solid var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
    border-radius:8px !important;
    background:#fff !important;
  }

  /* الصف العلوي: رقم الفاتورة والمبلغ. */
  html body #tabContent .member-invoices-page .invoice-no-cell,
  html body #tabContent .member-invoices-page .invoice-amount-cell{
    min-height:54px !important;
    padding:7px 0 9px !important;
    align-items:flex-start !important;
    justify-content:center !important;
  }

  /* بقية الصفوف: Label يمين / Value يسار، بمحاذاة ثابتة. */
  html body #tabContent .member-invoices-page .invoice-type-cell,
  html body #tabContent .member-invoices-page .invoice-details-cell,
  html body #tabContent .member-invoices-page .invoice-date-cell{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    min-height:44px !important;
    padding:7px 0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-cell::before,
  html body #tabContent .member-invoices-page .invoice-details-cell::before,
  html body #tabContent .member-invoices-page .invoice-date-cell::before{
    flex:0 0 96px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-pill,
  html body #tabContent .member-invoices-page .invoice-dims-pill,
  html body #tabContent .member-invoices-page .invoice-date{
    min-width:0 !important;
    margin-inline-start:auto !important;
    text-align:left !important;
  }

  html body #tabContent .member-invoices-page .invoice-action-cell{
    padding-top:9px !important;
  }

  html body #tabContent .member-invoices-page .invoices-pagination{
    width:100% !important;
    margin:9px 0 0 !important;
    padding:9px 0 0 !important;
    border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  }
}

/* =========================================================
   Member Ads — Tablet top row alignment — 2026-09-26
   النطاق: التابلت فقط 721px–1100px
   نفس منطق بطاقات الطلبات في لوحة المدير.
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* شريط التحديد الجماعي أصبح جزءاً من حاوية البطاقات نفسها. */
  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar .member-records-toolbar-inner {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  /* أول صف في البطاقة: تحديد + رقم الإعلان + الحالة + الإجراءات. */
  html body #tabContent .member-records-page .member-record-row {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) auto 34px !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    align-items: center !important;
  }

  /* كل البيانات العادية تبدأ أسفل الصف الأول بعرض كامل. */
  html body #tabContent .member-records-page .member-record-row
  > .member-record-cell:not(.member-record-select-cell):not(.member-record-id):not(.member-record-status-cell):not(.member-record-actions) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* مربع التحديد. */
  html body #tabContent .member-records-page .member-record-select-cell {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 0 8px !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  /* رقم الإعلان. */
  html body #tabContent .member-records-page .member-record-id {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    text-align: right !important;
    font-weight: 500 !important;
  }

  /* شارة الحالة. */
  html body #tabContent .member-records-page .member-record-status-cell {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-height: 38px !important;
    padding: 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .member-records-page .member-record-status-cell
  .member-record-status-stack {
    align-items: flex-end !important;
    justify-content: center !important;
  }

  /* زر الثلاث نقاط. */
  html body #tabContent .member-records-page .member-record-actions {
    grid-column: 4 !important;
    grid-row: 1 !important;
    width: 34px !important;
    min-width: 34px !important;
    min-height: 38px !important;
    padding: 0 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    border-bottom: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

  html body #tabContent .member-records-page .member-record-menu-toggle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin: 0 !important;
  }

  /* لا نعرض الكلمات: تحديد / الإعلان / الحالة في الصف الأول. */
  html body #tabContent .member-records-page .member-record-select-cell::before,
  html body #tabContent .member-records-page .member-record-id::before,
  html body #tabContent .member-records-page .member-record-status-cell::before,
  html body #tabContent .member-records-page .member-record-actions::before {
    content: none !important;
    display: none !important;
  }

  /* أول حقل بعد الصف العلوي يبدأ بمسافة بسيطة. */
  html body #tabContent .member-records-page .member-record-row
  > .member-record-cell:not(.member-record-select-cell):not(.member-record-id):not(.member-record-status-cell):not(.member-record-actions):first-of-type {
    margin-top: 0 !important;
  }
}

/* =========================================================
   Member Ads — Tablet top row polish — 2026-09-26
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* إزالة الحدود المنفصلة من عناصر الصف الأول. */
  html body #tabContent .member-records-page .member-record-select-cell,
  html body #tabContent .member-records-page .member-record-id,
  html body #tabContent .member-records-page .member-record-status-cell,
  html body #tabContent .member-records-page .member-record-actions {
    border-bottom: 0 !important;
  }

  /* إنشاء فاصل واحد متصل أسفل الصف الأول بالكامل. */
  html body #tabContent .member-records-page .member-record-row
  > .member-record-cell[data-label="نوع الإعلان"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
  }

}

/* =========================================================
   Member Stores — Tablet compact pills — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {
  html body #tabContent .member-stores-page .member-store-pill {
    min-height: 22px !important;
    padding: 2px 6px !important;
    gap: 4px !important;
    border-radius: 5px !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  html body #tabContent .member-stores-page .member-store-pill i {
    font-size: 10.5px !important;
  }
}

/* =========================================================
   Member Stores — Tablet actions menu — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */

/* القائمة الجديدة مخفية افتراضياً خارج التابلت. */
.member-store-action-menu{
  display:none;
}

@media (min-width: 721px) and (max-width: 1100px) {

  /* إخفاء صف الأزرار القديم على التابلت فقط. */
  html body #tabContent .member-stores-page .member-store-actions{
    display:none !important;
  }

  /* إبقاء الفوتر في صف واحد: التاريخ + زر الإجراءات. */
  html body #tabContent .member-stores-page .member-store-card-footer{
    position:relative !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-card{
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu{
    position:relative !important;
    display:block !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line, var(--sadaa-line, #d1d5db)) !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#4b5563 !important;
    cursor:pointer !important;
    list-style:none !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle::-webkit-details-marker{
    display:none !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle::marker{
    content:"" !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle:hover{
    border-color:var(--member-brand-line) !important;
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }

  html body #tabContent .member-stores-page .member-store-action-dropdown{
    position:absolute !important;
    inset-inline-end:0 !important;
    bottom:calc(100% + 7px) !important;
    z-index:40 !important;
    min-width:190px !important;
    padding:5px !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu:not([open])
  > .member-store-action-dropdown{
    display:none !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu[open]
  > .member-store-action-dropdown{
    display:grid !important;
    gap:2px !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item{
    width:100% !important;
    min-height:36px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:7px 9px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#374151 !important;
    text-decoration:none !important;
    text-align:right !important;
    white-space:nowrap !important;
    cursor:pointer !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item:hover{
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item.is-disabled,
  html body #tabContent .member-stores-page .member-store-action-item:disabled{
    opacity:.5 !important;
    cursor:not-allowed !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-form{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
}

/* =========================================================
   Member Invoices — Tablet card alignment polish — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* البطاقة: عمود رئيسي واسع + عمود صغير لزر العرض في الصف الأخير. */
  html body #tabContent .member-invoices-page .invoices-table tbody tr{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:0 12px !important;
  }

  /* رقم الفاتورة: صف كامل، العنوان يمين والقيمة في الجهة المقابلة. */
  html body #tabContent .member-invoices-page .invoice-no-cell{
    grid-column:1 / -1 !important;
    grid-row:auto !important;
    width:100% !important;
    min-height:44px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    padding:7px 0 !important;
    border-bottom:1px solid #eef0f3 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-no-cell::before{
    flex:0 0 96px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-no{
    min-width:0 !important;
    margin-inline-start:auto !important;
    justify-content:flex-end !important;
    text-align:left !important;
  }

  /* المبلغ: صف مستقل كامل بنفس محاذاة رقم الفاتورة. */
  html body #tabContent .member-invoices-page .invoice-amount-cell{
    grid-column:1 / -1 !important;
    grid-row:auto !important;
    width:100% !important;
    min-height:44px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    padding:7px 0 !important;
    border-bottom:1px solid #eef0f3 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-amount-cell::before{
    flex:0 0 96px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-amount{
    min-width:0 !important;
    margin-inline-start:auto !important;
    justify-content:flex-end !important;
    text-align:left !important;
  }

  /* نوع الخدمة والتفاصيل يبقيان صفوفاً كاملة. */
  html body #tabContent .member-invoices-page .invoice-type-cell,
  html body #tabContent .member-invoices-page .invoice-details-cell{
    grid-column:1 / -1 !important;
  }

  /* الصف الأخير: تاريخ الإنشاء + زر عرض الفاتورة. */
  html body #tabContent .member-invoices-page .invoice-date-cell{
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:7px 0 !important;
    border-bottom:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-date-cell::before{
    flex:0 0 96px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-date{
    min-width:0 !important;
    margin-inline-start:auto !important;
    text-align:left !important;
    white-space:nowrap !important;
  }

  html body #tabContent .member-invoices-page .invoice-action-cell{
    grid-column:2 !important;
    align-self:center !important;
    width:auto !important;
    min-width:0 !important;
    padding:7px 0 7px 0 !important;
    border-bottom:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
  }

  html body #tabContent .member-invoices-page .invoice-action-cell::before{
    display:none !important;
  }

  html body #tabContent .member-invoices-page .invoice-view-btn{
    width:auto !important;
    min-width:118px !important;
    min-height:34px !important;
    padding:6px 10px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    white-space:nowrap !important;
  }
}

/* =========================================================
   Member Invoices — Tablet invoice number final alignment
   2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* عنوان رقم الفاتورة بنفس لون عناوين بقية الحقول. */
  html body #tabContent .member-invoices-page .invoice-no-cell::before{
    color:var(--invoice-muted,#6b7280) !important;
  }

  /* الرقم إلى الجهة المقابلة فعلياً.
     نستخدم margin-right لأن العنصر نفسه direction:ltr. */
  html body #tabContent .member-invoices-page .invoice-no{
    margin:0 0 0 auto !important;
    margin-right:auto !important;
    margin-left:0 !important;
    color:var(--invoice-text,#111827) !important;
    text-align:left !important;
  }
}

/* =========================================================
   Member Invoices — Tablet amount color polish — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* عنوان "المبلغ" بنفس لون عناوين بقية الحقول. */
  html body #tabContent .member-invoices-page .invoice-amount-cell::before{
    color:var(--invoice-muted,#6b7280) !important;
  }

  /* قيمة المبلغ + رمز العملة باللون الأحمر. */
  html body #tabContent .member-invoices-page .invoice-amount,
  html body #tabContent .member-invoices-page .invoice-amount .sar-value,
  html body #tabContent .member-invoices-page .invoice-amount .sar-symbol{
    color:#b91c1c !important;
  }

  html body #tabContent .member-invoices-page .invoice-amount .sar-symbol{
    background-color:currentColor !important;
  }
}

/* =========================================================
   Member Invoices — Tablet search field width — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width: 721px) and (max-width: 1100px) {

  /* الحالة العادية: لا يوجد زر "مسح". */
  html body #tabContent .member-invoices-page .invoices-toolbar{
    grid-template-columns:
      minmax(280px, 2fr)
      minmax(110px, .72fr)
      minmax(110px, .72fr)
      88px !important;
  }

  /* عند ظهور زر "مسح" نضيف عموداً خامساً بدون خنق حقل البحث. */
  html body #tabContent .member-invoices-page .invoices-toolbar:has(.invoices-toolbar-reset){
    grid-template-columns:
      minmax(250px, 1.8fr)
      minmax(105px, .68fr)
      minmax(105px, .68fr)
      88px
      76px !important;
  }

  html body #tabContent .member-invoices-page .invoices-search-wrap{
    min-width:0 !important;
    width:100% !important;
  }

  html body #tabContent .member-invoices-page .invoices-search-input{
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   Member Dashboard — Mobile mirrors approved Tablet UI
   2026-09-28
   النطاق: جميع شاشات الجوال حتى 720px
   المبدأ:
   - نفس البنية والشكل المعتمد في التابلت.
   - التغيير فقط في المسافات والعروض وتوزيع الأعمدة.
   - لا تغيير لأحجام الخطوط في هذه الطبقة.
   ========================================================= */
@media (max-width:720px){

  /* =======================================================
     الهيكل العام والهيدر
     ======================================================= */
  html body #tabContent .member-tab-page-header,
  html body #tabContent .member-tab-page-header.sadaa-page-header--member{
    width:100% !important;
    min-height:0 !important;
    margin:0 0 10px !important;
    padding:14px !important;
    border-radius:8px !important;
  }

  html body #tabContent .member-tab-page-header.sadaa-page-header--member{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
  }

  html body #tabContent .member-tab-page-header .sadaa-page-header__main{
    min-width:0 !important;
    flex:1 1 auto !important;
  }

  html body #tabContent .member-tab-page-header .sadaa-page-header__actions{
    min-width:0 !important;
    flex:0 0 auto !important;
  }

  html body #tabContent .sadaa-card--workspace{
    padding:9px !important;
    border-radius:8px !important;
  }

  html body #tabContent .sadaa-card--subsection,
  html body #tabContent .stats-content-panel,
  html body #tabContent .account-settings-content-panel{
    border-radius:8px !important;
  }

  /* =======================================================
     إحصائيات الإعلانات والمتاجر
     ======================================================= */
  html body #tabContent .stats-page .stats-selection-shell{
    margin-bottom:9px !important;
    padding:8px !important;
  }

  html body #tabContent .stats-page .member-stats-filter-form{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  html body #tabContent .stats-page .kpis,
  html body #tabContent .stats-page .store-kpis{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  html body #tabContent .stats-page .stats-filter-card,
  html body #tabContent .stats-page .stats-panel{
    padding:9px !important;
  }

  /* =======================================================
     رأس البحث والفلاتر — نفس نسخة التابلت
     ======================================================= */
  html body #tabContent .member-tablet-tools{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 9px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-summary{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 10px !important;
    list-style:none !important;
    pointer-events:auto !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-tint-3)) !important;
    cursor:pointer !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-summary::-webkit-details-marker{
    display:none !important;
  }

  html body #tabContent .member-tablet-tools > .member-tablet-tools-body,
  html body #tabContent .member-tablet-tools[open] > .member-tablet-tools-body{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:8px !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body #tabContent .member-tablet-tools:not([open]) > .member-tablet-tools-body{
    display:none !important;
  }

  /* =======================================================
     إعلاناتي
     ======================================================= */
  html body #tabContent .member-records-page .member-records-filters{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    align-items:center !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-records-search-wrap{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-select,
  html body #tabContent .member-records-page .member-records-search-input{
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:var(--sadaa-filter-actions-gap) !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-submit,
  html body #tabContent .member-records-page .member-records-filter-clear{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions > :only-child{
    grid-column:1 / -1 !important;
  }

  /* الحاوية البنيوية الخارجية شفافة، وحاوية البطاقات وحدها مرئية. */
  html body #tabContent .member-records-page .member-records-form{
    width:100% !important;
    max-width:none !important;
    margin:0 0 10px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-records-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:7px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar{
    grid-column:1 / -1 !important;
    width:100% !important;
    margin:0 !important;
    padding:0 0 7px !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar .member-records-toolbar-inner{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }

  /* نفس الصف الأول المعتمد في التابلت. */
  html body #tabContent .member-records-page .member-record-row{
    display:grid !important;
    grid-template-columns:24px minmax(0,1fr) auto 32px !important;
    column-gap:7px !important;
    row-gap:0 !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-records-page .member-record-row
  > .member-record-cell:not(.member-record-select-cell):not(.member-record-id):not(.member-record-status-cell):not(.member-record-actions){
    grid-column:1 / -1 !important;
    width:100% !important;
  }

  html body #tabContent .member-records-page .member-record-select-cell{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-height:36px !important;
    padding:0 0 7px !important;
    justify-content:flex-start !important;
    border-bottom:0 !important;
  }

  html body #tabContent .member-records-page .member-record-id{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-height:36px !important;
    padding:0 0 7px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    border-bottom:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-records-page .member-record-status-cell{
    grid-column:3 !important;
    grid-row:1 !important;
    width:auto !important;
    min-height:36px !important;
    padding:0 0 7px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    border-bottom:0 !important;
  }

  html body #tabContent .member-records-page .member-record-actions{
    grid-column:4 !important;
    grid-row:1 !important;
    width:32px !important;
    min-width:32px !important;
    min-height:36px !important;
    padding:0 0 7px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    border-bottom:0 !important;
  }

  html body #tabContent .member-records-page .member-record-menu-toggle{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    margin:0 !important;
  }

  html body #tabContent .member-records-page .member-record-select-cell::before,
  html body #tabContent .member-records-page .member-record-id::before,
  html body #tabContent .member-records-page .member-record-status-cell::before,
  html body #tabContent .member-records-page .member-record-actions::before{
    content:none !important;
    display:none !important;
  }

  /* فاصل واحد متصل بعد الصف الأول. */
  html body #tabContent .member-records-page .member-record-row
  > .member-record-cell[data-label="نوع الإعلان"]{
    grid-column:1 / -1 !important;
    width:100% !important;
    margin-top:0 !important;
    padding-top:7px !important;
    border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  }

  /* =======================================================
     متاجري
     ======================================================= */
  html body #tabContent .member-stores-page .member-stores-list-shell{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:7px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-stores-page .member-stores-grid{
    gap:7px !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #tabContent .member-stores-page .member-stores-summary{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  html body #tabContent .member-stores-page .member-store-card-head{
    grid-template-columns:76px minmax(0,1fr) !important;
    gap:9px !important;
    padding:11px 12px !important;
  }

  html body #tabContent .member-stores-page .member-store-logo-shell{
    width:76px !important;
    height:76px !important;
  }

  html body #tabContent .member-stores-page .member-store-feature-state{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-stores-page
  .member-store-card:not(.is-featured) .member-store-feature-state{
    display:none !important;
  }

  /* نفس الشارات المصغرة المعتمدة في التابلت. */
  html body #tabContent .member-stores-page .member-store-pill{
    min-height:22px !important;
    padding:2px 6px !important;
    gap:4px !important;
    border-radius:5px !important;
    line-height:1.35 !important;
  }

  /* نفس قائمة الثلاث نقاط بدلاً من الأزرار. */
  html body #tabContent .member-stores-page .member-store-actions{
    display:none !important;
  }

  html body #tabContent .member-stores-page .member-store-card{
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-card-footer{
    position:relative !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    padding:9px 11px !important;
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu{
    position:relative !important;
    display:block !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#d1d5db)) !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#4b5563 !important;
    cursor:pointer !important;
    list-style:none !important;
  }

  html body #tabContent .member-stores-page .member-store-action-dropdown{
    position:absolute !important;
    inset-inline-end:0 !important;
    bottom:calc(100% + 7px) !important;
    z-index:40 !important;
    width:min(190px,calc(100vw - 36px)) !important;
    min-width:0 !important;
    padding:5px !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu:not([open])
  > .member-store-action-dropdown{
    display:none !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu[open]
  > .member-store-action-dropdown{
    display:grid !important;
    gap:2px !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item{
    width:100% !important;
    min-height:36px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:7px 9px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    text-decoration:none !important;
    text-align:right !important;
    white-space:nowrap !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-form{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }

  /* =======================================================
     فواتيري
     ======================================================= */
  html body #tabContent .member-invoices-page .invoices-stats{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  html body #tabContent .member-invoices-page .invoice-stat-card:last-child{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-invoices-page .invoices-toolbar{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    align-items:center !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-invoices-page .invoices-search-wrap,
  html body #tabContent .member-invoices-page .invoices-filter-count{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-invoices-page .invoices-toolbar-btn,
  html body #tabContent .member-invoices-page .invoices-toolbar-reset,
  html body #tabContent .member-invoices-page .invoices-filter-select,
  html body #tabContent .member-invoices-page .invoices-search-input{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-invoices-page .invoices-records-shell{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:7px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-invoices-page .invoices-list{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody{
    display:grid !important;
    gap:7px !important;
  }

  html body #tabContent .member-invoices-page .invoices-table tbody tr{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:0 8px !important;
    padding:9px 10px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-top:2px solid var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
    border-radius:8px !important;
    background:#fff !important;
  }

  /* رقم الفاتورة والمبلغ: كل واحد في صف مستقل. */
  html body #tabContent .member-invoices-page .invoice-no-cell,
  html body #tabContent .member-invoices-page .invoice-amount-cell{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-height:42px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:6px 0 !important;
    border-bottom:1px solid #eef0f3 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-no-cell::before,
  html body #tabContent .member-invoices-page .invoice-amount-cell::before{
    flex:0 0 88px !important;
    margin:0 !important;
    text-align:right !important;
    color:var(--invoice-muted,#6b7280) !important;
  }

  html body #tabContent .member-invoices-page .invoice-no,
  html body #tabContent .member-invoices-page .invoice-amount{
    min-width:0 !important;
    margin-right:auto !important;
    margin-left:0 !important;
    justify-content:flex-end !important;
    text-align:left !important;
  }

  html body #tabContent .member-invoices-page .invoice-no{
    color:var(--invoice-text,#111827) !important;
  }

  html body #tabContent .member-invoices-page .invoice-amount,
  html body #tabContent .member-invoices-page .invoice-amount .sar-value,
  html body #tabContent .member-invoices-page .invoice-amount .sar-symbol{
    color:#b91c1c !important;
  }

  html body #tabContent .member-invoices-page .invoice-amount .sar-symbol{
    background-color:currentColor !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-cell,
  html body #tabContent .member-invoices-page .invoice-details-cell{
    grid-column:1 / -1 !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-cell,
  html body #tabContent .member-invoices-page .invoice-details-cell,
  html body #tabContent .member-invoices-page .invoice-date-cell{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    min-height:40px !important;
    padding:6px 0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-cell::before,
  html body #tabContent .member-invoices-page .invoice-details-cell::before,
  html body #tabContent .member-invoices-page .invoice-date-cell::before{
    flex:0 0 88px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .member-invoices-page .invoice-type-pill,
  html body #tabContent .member-invoices-page .invoice-dims-pill,
  html body #tabContent .member-invoices-page .invoice-date{
    min-width:0 !important;
    margin-inline-start:auto !important;
    text-align:left !important;
  }

  /* تاريخ الإنشاء + زر عرض الفاتورة في صف واحد. */
  html body #tabContent .member-invoices-page .invoice-date-cell{
    grid-column:1 !important;
    width:100% !important;
    min-width:0 !important;
    border-bottom:0 !important;
  }

  html body #tabContent .member-invoices-page .invoice-action-cell{
    grid-column:2 !important;
    align-self:center !important;
    width:auto !important;
    min-width:0 !important;
    padding:6px 0 !important;
    border-bottom:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
  }

  html body #tabContent .member-invoices-page .invoice-action-cell::before{
    display:none !important;
  }

  html body #tabContent .member-invoices-page .invoice-view-btn{
    width:auto !important;
    min-width:96px !important;
    min-height:34px !important;
    padding:6px 8px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    white-space:nowrap !important;
  }

  html body #tabContent .member-invoices-page .invoices-pagination,
  html body #tabContent .member-records-page .member-records-pagination,
  html body #tabContent .sadaa-pagination{
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:5px !important;
  }

  html body #tabContent .member-invoices-page .invoices-pagination{
    width:100% !important;
    margin:8px 0 0 !important;
    padding:8px 0 0 !important;
    border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  }

  /* =======================================================
     إعدادات الحساب
     ======================================================= */
  html body #tabContent .account-settings-content-panel,
  html body #tabContent .settings-wrapper .account-settings-content-panel{
    padding:9px !important;
    border-radius:8px !important;
  }
}

/* شاشات الجوال الأصغر: تعديل التوزيع فقط، بدون تغيير الخط. */
@media (max-width:420px){

  html body #tabContent .member-tab-page-header.sadaa-page-header--member{
    align-items:flex-start !important;
  }

  html body #tabContent .stats-page .kpis,
  html body #tabContent .stats-page .store-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
  }

  html body #tabContent .member-records-page .member-records-filters,
  html body #tabContent .member-invoices-page .invoices-toolbar{
    gap:6px !important;
  }

  html body #tabContent .member-stores-page .member-store-card-head{
    grid-template-columns:68px minmax(0,1fr) !important;
    gap:8px !important;
    padding:10px !important;
  }

  html body #tabContent .member-stores-page .member-store-logo-shell{
    width:68px !important;
    height:68px !important;
  }

  html body #tabContent .member-stores-page .member-store-card-footer{
    padding-inline:9px !important;
  }

  html body #tabContent .member-invoices-page .invoice-no-cell::before,
  html body #tabContent .member-invoices-page .invoice-amount-cell::before,
  html body #tabContent .member-invoices-page .invoice-type-cell::before,
  html body #tabContent .member-invoices-page .invoice-details-cell::before,
  html body #tabContent .member-invoices-page .invoice-date-cell::before{
    flex-basis:78px !important;
  }

  html body #tabContent .member-invoices-page .invoice-view-btn{
    min-width:88px !important;
    padding-inline:7px !important;
  }
}

@media (max-width:350px){

  html body #tabContent .member-records-page .member-record-row{
    grid-template-columns:22px minmax(0,1fr) auto 30px !important;
    column-gap:5px !important;
  }

  html body #tabContent .member-stores-page .member-stores-summary{
    grid-template-columns:1fr !important;
  }

  html body #tabContent .member-invoices-page .invoice-no-cell::before,
  html body #tabContent .member-invoices-page .invoice-amount-cell::before,
  html body #tabContent .member-invoices-page .invoice-type-cell::before,
  html body #tabContent .member-invoices-page .invoice-details-cell::before,
  html body #tabContent .member-invoices-page .invoice-date-cell::before{
    flex-basis:72px !important;
  }

  html body #tabContent .member-invoices-page .invoice-view-btn{
    min-width:82px !important;
  }
}

/* =========================================================
   Member Ads — Mobile search/filter mirror of Tablet
   2026-09-28
   النطاق: الجوال فقط حتى 720px
   ========================================================= */
@media (max-width:720px){

  /* نفس حاوية التابلت حرفياً من ناحية الشكل. */
  html body #tabContent .member-records-page .member-tablet-tools{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 10px !important;
    padding:0 !important;
    overflow:hidden !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }

  /* رأس المنطقة مطابق للتابلت: عنوان + أيقونة + سهم داخل مربع. */
  html body #tabContent .member-records-page
  .member-tablet-tools > .member-tablet-tools-summary{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 10px !important;
    list-style:none !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-tint-3)) !important;
    color:var(--sadaa-admin-text,var(--sadaa-text-2,#374151)) !important;
    box-shadow:none !important;
    cursor:pointer !important;
  }

  html body #tabContent .member-records-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__title{
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
    min-width:0 !important;
    margin:0 !important;
    color:inherit !important;
  }

  html body #tabContent .member-records-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__title > i{
    color:var(--sadaa-primary) !important;
  }

  html body #tabContent .member-records-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__chevron{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    flex:0 0 28px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--sadaa-primary) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page
  .member-tablet-tools > .member-tablet-tools-body{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:9px !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  /* توزيع الجوال: نفس العناصر، مع التكييف الضروري للعرض فقط. */
  html body #tabContent .member-records-page .member-records-filters{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page .member-records-search-wrap{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-select{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-records-page .member-records-filter-actions{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:var(--sadaa-filter-actions-gap) !important;
    width:100% !important;
    min-width:0 !important;
  }

  /* زر التطبيق يستخدم لون الزر الأساسي المركزي، لا اللون المحلي الثابت. */
  html body #tabContent .member-records-page .member-records-filter-submit{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    border-color:var(--sadaa-primary) !important;
    background:var(--sadaa-primary) !important;
    color:#fff !important;
  }

  html body #tabContent .member-records-page .member-records-filter-submit:hover,
  html body #tabContent .member-records-page .member-records-filter-submit:focus-visible{
    border-color:var(--sadaa-primary-dark) !important;
    background:var(--sadaa-primary-dark) !important;
    color:#fff !important;
  }

  html body #tabContent .member-records-page .member-records-filter-clear{
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   Member Ads — Tablet primary button color — 2026-09-28
   النطاق: التابلت فقط 721px–1100px
   ========================================================= */
@media (min-width:721px) and (max-width:1100px){

  html body #tabContent .member-records-page .member-records-filter-submit{
    border-color:var(--sadaa-primary) !important;
    background:var(--sadaa-primary) !important;
    color:#fff !important;
  }

  html body #tabContent .member-records-page .member-records-filter-submit:hover,
  html body #tabContent .member-records-page .member-records-filter-submit:focus-visible{
    border-color:var(--sadaa-primary-dark) !important;
    background:var(--sadaa-primary-dark) !important;
    color:#fff !important;
  }
}

/* =========================================================
   Member Dashboard — Disclosure chevron logic v3
   2026-09-28
   التابلت + الجوال
   مغلق = لليسار
   مفتوح = للأسفل
   ========================================================= */
@media (max-width:1100px){

  /* مغلق: سهم لليسار. */
  html body #tabContent details.member-tablet-tools:not([open])
  > summary.member-tablet-tools-summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:rotate(45deg) !important;
    transform-origin:center !important;
    transition:transform 160ms ease !important;
  }

  /* مفتوح: سهم للأسفل.
     في RTL ومع border-inline-end تكون الزاوية -45deg هي الاتجاه السفلي بصرياً. */
  html body #tabContent details.member-tablet-tools[open]
  > summary.member-tablet-tools-summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:rotate(-45deg) !important;
    transform-origin:center !important;
  }
}

/* =========================================================
   Sadaa Interaction Stability — Pointer / Touch Flash Guard v2
   2026-09-28

   النطاق:
   - سطح المكتب
   - التابلت
   - الجوال

   الهدف:
   منع الوميض الناتج عن النقر/اللمس، مع الإبقاء على
   focus-visible عند التنقل بلوحة المفاتيح.
   ========================================================= */

/* ---------------------------------------------------------
   1) إلغاء Tap Highlight على جميع المكونات التفاعلية.
   --------------------------------------------------------- */
html body .member-dashboard-wrapper a,
html body .member-dashboard-wrapper button,
html body .member-dashboard-wrapper summary,
html body .member-dashboard-wrapper label[for],
html body .member-dashboard-wrapper input,
html body .member-dashboard-wrapper select,
html body .member-dashboard-wrapper textarea,
html body .member-dashboard-wrapper [role="button"],
html body .member-dashboard-wrapper [tabindex],

html body .sadaa-btn,
html body .sadaa-menu-trigger,
html body .sadaa-pagination__item,
html body .sadaa-accordion__summary,
html body .sadaa-tablet-disclosure__summary,
html body .sadaa-checkbox,
html body .sadaa-radio,
html body .sadaa-switch,
html body .sadaa-date-control__input,

html body .flatpickr-calendar.sadaa-calendar a,
html body .flatpickr-calendar.sadaa-calendar button,
html body .flatpickr-calendar.sadaa-calendar input,
html body .flatpickr-calendar.sadaa-calendar select,
html body .flatpickr-calendar.sadaa-calendar .flatpickr-day,
html body .flatpickr-calendar.sadaa-calendar .flatpickr-prev-month,
html body .flatpickr-calendar.sadaa-calendar .flatpickr-next-month{
  -webkit-tap-highlight-color:transparent !important;
}

/* العناصر التي تعمل كأزرار تستجيب مباشرة بدون تأخير لمس. */
html body .member-dashboard-wrapper a,
html body .member-dashboard-wrapper button,
html body .member-dashboard-wrapper summary,
html body .member-dashboard-wrapper label[for],
html body .member-dashboard-wrapper [role="button"],
html body .sadaa-btn,
html body .sadaa-menu-trigger,
html body .sadaa-pagination__item,
html body .sadaa-accordion__summary,
html body .sadaa-tablet-disclosure__summary{
  touch-action:manipulation;
}

/* ---------------------------------------------------------
   2) النقر/اللمس لا يُظهر Focus بصرياً مؤقتاً.
      Focus لوحة المفاتيح يبقى عبر :focus-visible.
   --------------------------------------------------------- */
html body .member-dashboard-wrapper a:focus:not(:focus-visible),
html body .member-dashboard-wrapper button:focus:not(:focus-visible),
html body .member-dashboard-wrapper summary:focus:not(:focus-visible),
html body .member-dashboard-wrapper [role="button"]:focus:not(:focus-visible),
html body .member-dashboard-wrapper [tabindex]:focus:not(:focus-visible),

html body .sadaa-btn:focus:not(:focus-visible),
html body .sadaa-menu-trigger:focus:not(:focus-visible),
html body .sadaa-pagination__item:focus:not(:focus-visible),
html body .sadaa-accordion__summary:focus:not(:focus-visible),
html body .sadaa-tablet-disclosure__summary:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   3) الحقول والقوائم المنسدلة المركزية:
      إزالة حلقة Focus الناتجة من النقر فقط.
   --------------------------------------------------------- */
html body .sadaa-input:focus:not(:focus-visible),
html body .sadaa-textarea:focus:not(:focus-visible),
html body .sadaa-select:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  border-color:var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  background:var(--sadaa-surface,#fff) !important;
  transition:none !important;
}

/* المحافظة على حدود الخطأ/النجاح عند النقر. */
html body .sadaa-field.is-error .sadaa-input:focus:not(:focus-visible),
html body .sadaa-field.is-error .sadaa-textarea:focus:not(:focus-visible),
html body .sadaa-field.is-error .sadaa-select:focus:not(:focus-visible),
html body .sadaa-input.is-error:focus:not(:focus-visible),
html body .sadaa-textarea.is-error:focus:not(:focus-visible),
html body .sadaa-select.is-error:focus:not(:focus-visible),
html body .sadaa-input[aria-invalid="true"]:focus:not(:focus-visible),
html body .sadaa-textarea[aria-invalid="true"]:focus:not(:focus-visible),
html body .sadaa-select[aria-invalid="true"]:focus:not(:focus-visible){
  border-color:var(--sadaa-danger,#b42318) !important;
  box-shadow:none !important;
}

html body .sadaa-field.is-success .sadaa-input:focus:not(:focus-visible),
html body .sadaa-field.is-success .sadaa-textarea:focus:not(:focus-visible),
html body .sadaa-field.is-success .sadaa-select:focus:not(:focus-visible),
html body .sadaa-input.is-success:focus:not(:focus-visible),
html body .sadaa-textarea.is-success:focus:not(:focus-visible),
html body .sadaa-select.is-success:focus:not(:focus-visible){
  border-color:var(--sadaa-success,#067647) !important;
  box-shadow:none !important;
}

/* ---------------------------------------------------------
   4) حقول لوحة العضو المحلية التي كانت تستخدم :focus مباشرة.
   --------------------------------------------------------- */
html body .member-dashboard-wrapper .member-records-search-input:focus:not(:focus-visible),
html body .member-dashboard-wrapper .member-records-filter-select:focus:not(:focus-visible){
  border-color:#d9dee6 !important;
  box-shadow:none !important;
  outline:none !important;
  transition:none !important;
}

html body .member-dashboard-wrapper .invoices-search-input:focus:not(:focus-visible),
html body .member-dashboard-wrapper .invoices-filter-select:focus:not(:focus-visible){
  border-color:var(--invoice-border,#d1d5db) !important;
  background:#fff !important;
  box-shadow:none !important;
  outline:none !important;
  transition:none !important;
}

html body .member-dashboard-wrapper .member-stats-select-wrap select:focus:not(:focus-visible){
  border-color:#cbd5e1 !important;
  box-shadow:none !important;
  outline:none !important;
  transition:none !important;
}

/* أي عنصر نموذج محلي آخر داخل لوحة العضو. */
html body .member-dashboard-wrapper input:focus:not(:focus-visible),
html body .member-dashboard-wrapper select:focus:not(:focus-visible),
html body .member-dashboard-wrapper textarea:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   5) Checkbox / Radio:
      تغيير الحالة يبقى فورياً، بدون حلقة Focus أو Transition.
   --------------------------------------------------------- */
html body .sadaa-checkbox:focus:not(:focus-visible),
html body .sadaa-radio:focus:not(:focus-visible),
html body .member-dashboard-wrapper input[type="checkbox"]:focus:not(:focus-visible),
html body .member-dashboard-wrapper input[type="radio"]:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* Switch */
html body .sadaa-switch__input:focus:not(:focus-visible) + .sadaa-switch__track,
html body .sadaa-switch--button:focus:not(:focus-visible) > .sadaa-switch__track{
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   6) Select Shell:
      السهم لا يغيّر لونه للحظة عند النقر.
   --------------------------------------------------------- */
html body .sadaa-select-shell:has(.sadaa-select:focus:not(:focus-visible))::after{
  border-right-color:var(--sadaa-admin-muted,var(--sadaa-muted,#6b7280)) !important;
  border-bottom-color:var(--sadaa-admin-muted,var(--sadaa-muted,#6b7280)) !important;
  transition:none !important;
}

html body .sadaa-select-shell--modal:has(.sadaa-select:focus:not(:focus-visible))::after{
  background:none !important;
  border-top-color:var(--sadaa-muted,#6b7280) !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   7) Date controls:
      عند فتح التقويم بالماوس/اللمس لا تظهر حلقة أو قفزة لونية.
   --------------------------------------------------------- */
html body .sadaa-date-control__input:focus:not(:focus-visible),
html body .sadaa-date-control.is-calendar-open:has(.sadaa-date-control__input:focus:not(:focus-visible))
.sadaa-date-control__input{
  outline:none !important;
  box-shadow:none !important;
  border-color:var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  transition:none !important;
}

html body .sadaa-date-control:has(.sadaa-date-control__input:focus:not(:focus-visible))
.sadaa-date-control__icon,
html body .sadaa-date-control.is-calendar-open:has(.sadaa-date-control__input:focus:not(:focus-visible))
.sadaa-date-control__icon{
  color:var(--sadaa-muted,#6b7280) !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   8) Flatpickr:
      منع الوميض عند الأيام، الأسهم، السنة، والوقت.
   --------------------------------------------------------- */
html body .flatpickr-calendar.sadaa-calendar .flatpickr-day:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-day:focus:not(:focus-visible):not(.selected):not(.startRange):not(.endRange):not(.inRange):not(.today){
  background:transparent !important;
  border-color:transparent !important;
  color:#374151 !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-day.today:focus:not(:focus-visible){
  background:#fff !important;
  border-color:var(--sadaa-calendar-primary) !important;
  color:var(--sadaa-calendar-dark) !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-current-month input.cur-year:focus:not(:focus-visible){
  background:rgba(255,255,255,.13) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:none !important;
  outline:none !important;
  transition:none !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-current-month .flatpickr-monthDropdown-months:focus:not(:focus-visible){
  box-shadow:none !important;
  outline:none !important;
  transition:none !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-time input:focus:not(:focus-visible),
html body .flatpickr-calendar.sadaa-calendar
.flatpickr-time .flatpickr-am-pm:focus:not(:focus-visible){
  background:#fff !important;
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

html body .flatpickr-calendar.sadaa-calendar
.flatpickr-prev-month:focus:not(:focus-visible),
html body .flatpickr-calendar.sadaa-calendar
.flatpickr-next-month:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* ---------------------------------------------------------
   9) أثناء Pointer Focus نوقف Transition المؤقت فقط.
      Hover الطبيعي يعود بمجرد زوال Focus.
   --------------------------------------------------------- */
html body .member-dashboard-wrapper
:is(a,button,summary,input,select,textarea,[role="button"],[tabindex]):focus:not(:focus-visible),
html body
:is(.sadaa-btn,.sadaa-menu-trigger,.sadaa-pagination__item,.sadaa-checkbox,.sadaa-radio,.sadaa-date-control__input):focus:not(:focus-visible){
  transition:none !important;
}

/* =========================================================
   Member Ads — Select All plain control — 2026-09-28
   جميع الشاشات
   إزالة مظهر الزر المحيط بـ "تحديد الكل".
   ========================================================= */
html body #tabContent .member-records-page .member-records-check-all{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:inherit !important;
  cursor:pointer !important;
  -webkit-tap-highlight-color:transparent !important;
  transition:none !important;
}

html body #tabContent .member-records-page
.member-records-check-all:hover,
html body #tabContent .member-records-page
.member-records-check-all:focus-within{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
}

/* مربع التحديد نفسه يبقى بسيطاً وواضحاً بدون أي غلاف إضافي. */
html body #tabContent .member-records-page .member-records-check-all-input{
  margin:0 !important;
  padding:0 !important;
  box-shadow:none !important;
  outline:none !important;
  -webkit-tap-highlight-color:transparent !important;
}

/* =========================================================
   Member Dashboard — Mobile polish round 2 — 2026-09-28
   فواتيري + إعلاناتي + متاجري
   ========================================================= */

/* ---------------------------------------------------------
   فواتيري — الجوال 375px فأعلى
   رأس البحث والفلاتر مطابق لبقية مناطق البحث.
   --------------------------------------------------------- */
@media (min-width:375px) and (max-width:720px){

  html body #tabContent .member-invoices-page
  .member-tablet-tools > .member-tablet-tools-summary{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:8px 10px !important;
    direction:rtl !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-tint-3)) !important;
    color:var(--sadaa-admin-text,var(--sadaa-text-2,#374151)) !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-invoices-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__title{
    flex:1 1 auto !important;
    min-width:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    margin:0 !important;
    white-space:nowrap !important;
    color:inherit !important;
  }

  html body #tabContent .member-invoices-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__title > i{
    flex:0 0 auto !important;
    width:15px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    color:var(--sadaa-primary) !important;
  }

  html body #tabContent .member-invoices-page
  .member-tablet-tools-summary .sadaa-tablet-disclosure__chevron{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    flex:0 0 28px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--sadaa-primary) !important;
    box-shadow:none !important;
  }

  /* مغلق = لليسار. */
  html body #tabContent .member-invoices-page
  details.member-tablet-tools:not([open])
  > summary.member-tablet-tools-summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    transform:rotate(45deg) !important;
    transform-origin:center !important;
  }

  /* مفتوح = للأسفل. */
  html body #tabContent .member-invoices-page
  details.member-tablet-tools[open]
  > summary.member-tablet-tools-summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    transform:rotate(-45deg) !important;
    transform-origin:center !important;
  }
}

/* ---------------------------------------------------------
   فواتيري — الجوال + التابلت
   توسيط ملخص النتائج تحت أزرار تطبيق / مسح.
   --------------------------------------------------------- */
@media (max-width:1100px){
  html body #tabContent .member-invoices-page .invoices-filter-count{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px 18px !important;
    width:100% !important;
    margin:2px 0 0 !important;
    padding-top:2px !important;
    text-align:center !important;
    flex-wrap:wrap !important;
  }

  html body #tabContent .member-invoices-page .invoices-filter-count > span{
    flex:0 1 auto !important;
    margin:0 !important;
    text-align:center !important;
  }
}

/* ---------------------------------------------------------
   إعلاناتي — الجوال 375px فأعلى
   فصل أزرار تطبيق / مسح وضبط محاذاة محتوى البطاقة.
   --------------------------------------------------------- */
@media (min-width:375px) and (max-width:720px){
  html body #tabContent .member-records-page .member-records-filter-actions{
    gap:var(--sadaa-filter-actions-gap) !important;
  }

  html body #tabContent .member-records-page .member-records-filter-submit,
  html body #tabContent .member-records-page .member-records-filter-clear{
    margin:0 !important;
  }

  /* محاذاة رأس/قيمة كل صف في منتصف ارتفاع الصف. */
  html body #tabContent .member-records-page .member-record-cell{
    min-height:38px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding-top:6px !important;
    padding-bottom:6px !important;
    line-height:1.55 !important;
  }

  html body #tabContent .member-records-page .member-record-cell::before{
    align-self:center !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    line-height:1.55 !important;
  }

  html body #tabContent .member-records-page .member-record-cell > *{
    align-self:center !important;
  }

  /* لا نغيّر صف الرأس الأول الذي له توزيع مستقل. */
  html body #tabContent .member-records-page .member-record-select-cell,
  html body #tabContent .member-records-page .member-record-id,
  html body #tabContent .member-records-page .member-record-status-cell,
  html body #tabContent .member-records-page .member-record-actions{
    min-height:36px !important;
    padding-top:0 !important;
    padding-bottom:7px !important;
  }
}

/* ---------------------------------------------------------
   متاجري — الجوال 375px فأعلى
   أول بطاقتين في صف، والثالثة بعرض الصف كاملاً.
   --------------------------------------------------------- */
@media (min-width:375px) and (max-width:720px){
  html body #tabContent .member-stores-page .member-stores-summary{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    width:100% !important;
    margin-bottom:12px !important;
  }

  html body #tabContent .member-stores-page
  .member-stores-summary > .member-stores-summary-card{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body #tabContent .member-stores-page
  .member-stores-summary > .member-stores-summary-card:last-child{
    grid-column:1 / -1 !important;
  }
}

/* =========================================================
   Member Invoices — Mobile action row wrapper v4
   2026-09-28
   النطاق: الجوال 375px–720px

   بدون "مسح": تطبيق بعرض كامل.
   مع "مسح": تطبيق + مسح في نفس الصف بالتساوي.
   الحل يعتمد على حاوية مستقلة للأزرار ولا يتأثر
   بتوزيع Grid الخارجي للبحث والفلاتر.
   ========================================================= */

/* خارج الجوال تبقى الحاوية شفافة تخطيطياً حتى لا تغيّر
   توزيع التابلت وسطح المكتب المعتمد. */
html body #tabContent .member-invoices-page .invoices-toolbar-actions{
  display:contents;
}

@media (min-width:375px) and (max-width:720px){

  html body #tabContent .member-invoices-page
  form.invoices-toolbar{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-invoices-page
  form.invoices-toolbar > .invoices-search-wrap{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body #tabContent .member-invoices-page
  form.invoices-toolbar > .invoices-filter-select{
    width:100% !important;
    min-width:0 !important;
  }

  /* حاوية الأزرار نفسها تشغل صفاً كاملاً. */
  html body #tabContent .member-invoices-page
  form.invoices-toolbar > .invoices-toolbar-actions{
    grid-column:1 / -1 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:var(--sadaa-filter-actions-gap) !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* عند ظهور "مسح" يتحول صف الأزرار إلى نصفين متساويين. */
  html body #tabContent .member-invoices-page
  form.invoices-toolbar > .invoices-toolbar-actions.has-reset{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  html body #tabContent .member-invoices-page
  .invoices-toolbar-actions > .invoices-toolbar-btn,
  html body #tabContent .member-invoices-page
  .invoices-toolbar-actions > .invoices-toolbar-reset{
    grid-column:auto !important;
    grid-row:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    justify-self:stretch !important;
  }

  html body #tabContent .member-invoices-page
  form.invoices-toolbar > .invoices-filter-count{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   Sadaa Filters — Central action spacing
   2026-09-29

   المصدر المركزي الوحيد للمسافة بين أزرار
   "تطبيق / مسح" في مناطق البحث والفلاتر.
   ========================================================= */
:root{
  --sadaa-filter-actions-gap:10px;
}

/* الحاويات الحالية/الموحّدة في لوحة العضو */
html body #tabContent .member-records-page .member-records-filter-actions,
html body #tabContent .member-invoices-page .invoices-toolbar-actions,
html body #tabContent .member-stores-page .member-stores-filter-actions,
html body #tabContent .member-stores-page .member-stores-toolbar-actions,
html body #tabContent .member-stores-page .stores-filter-actions,
html body #tabContent .member-stores-page .stores-toolbar-actions,
html body #tabContent .sadaa-filter-actions{
  gap:var(--sadaa-filter-actions-gap) !important;
}

/* =========================================================
   Member Dashboard — Wide Tablet Sidebar Layout
   2026-09-29
   النطاق: 901px–1100px (يشمل 1024px)
   الهدف:
   - إلغاء زر "القائمة الرئيسية".
   - إظهار القائمة كعمود جانبي دائم بجانب محتوى التبويب.
   - الإبقاء على Drawer للجوال و768px كما هو.
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  :root{
    --member-wide-tablet-sidebar-width:265px;
    --member-wide-tablet-layout-gap:12px;
  }

  /* إذا تم تكبير الشاشة بينما الـ Drawer مفتوح نعيد تمرير الصفحة الطبيعي. */
  html body.member-dashboard-drawer-open{
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  /* الحاوية الرئيسية تصبح عمود قائمة + محتوى، مثل سطح المكتب ولكن بمقاس تابلت. */
  html body .dashboard-wrapper.member-dashboard-wrapper{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:var(--member-wide-tablet-layout-gap) !important;
    width:min(1430px, calc(100% - 20px)) !important;
    max-width:1430px !important;
    margin:14px auto 28px !important;
    padding:0 !important;
    direction:rtl !important;
  }

  /* إلغاء شريط "القائمة الرئيسية" في التابلت العريض. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-dashboard-mobile-toggle{
    display:none !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }

  /* القائمة تعود من Drawer إلى عمود جانبي ثابت داخل نفس Layout. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack{
    position:sticky !important;
    top:82px !important;
    right:auto !important;
    left:auto !important;
    z-index:20 !important;
    display:flex !important;
    flex:0 0 var(--member-wide-tablet-sidebar-width) !important;
    flex-direction:column !important;
    gap:10px !important;
    width:var(--member-wide-tablet-sidebar-width) !important;
    max-width:var(--member-wide-tablet-sidebar-width) !important;
    height:auto !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:transparent !important;
    border-radius:0 !important;
    box-shadow:none !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transition:none !important;
    overscroll-behavior:auto !important;
  }

  /* وجود class فتح الـ Drawer لا يغيّر شكل العمود في 1024px. */
  html body .dashboard-wrapper.member-dashboard-wrapper.mobile-tabs-open
  > .member-sidebar-stack{
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  /* لا Backdrop ولا زر إغلاق لأن القائمة أصبحت ظاهرة دائماً. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  .member-sidebar-backdrop,
  html body .dashboard-wrapper.member-dashboard-wrapper
  .member-sidebar-close{
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  /* رأس القائمة يعود لبطاقة عادية بدل رأس Drawer. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-head{
    position:relative !important;
    top:auto !important;
    z-index:1 !important;
    flex:0 0 auto !important;
    min-height:84px !important;
    margin:0 !important;
    padding:14px !important;
    border-radius:8px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-row{
    width:100% !important;
    min-width:0 !important;
    gap:9px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-icon{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    flex-basis:38px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-title{
    font-size:15px !important;
    line-height:1.55 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .sadaa-member-side-nav{
    width:100% !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:10px !important;
    border-radius:8px !important;
  }

  /* البطاقة البصرية أسفل القائمة الجانبية في التابلت العريض. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    min-height:310px !important;
    margin:30px 0 0 !important;
    padding:16px 14px !important;
    flex:0 0 auto !important;
    border-radius:8px !important;
    box-sizing:border-box !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual .member-visual-art{
    width:100% !important;
    min-height:190px !important;
    margin:0 auto 10px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual .member-visual-screen{
    inset:24px 10px auto 10px !important;
    min-height:122px !important;
    padding:13px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual .member-visual-card{
    width:48px !important;
    height:48px !important;
    border-radius:9px !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual .member-visual-title{
    font-size:14px !important;
    line-height:1.7 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-sidebar-visual .member-visual-text{
    font-size:12px !important;
    line-height:1.8 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .member-trial-card{
    width:100% !important;
    flex:0 0 auto !important;
    margin:0 !important;
    border-radius:8px !important;
  }

  /* جميع التبويبات تشارك نفس عمود المحتوى بجانب القائمة. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .content-area{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  > .content-area > #tabContent,
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .content-area .member-tab-panel{
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   Member Dashboard — Laptop 1440 polish
   2026-09-29
   النطاق: 1101px–1600px
   ========================================================= */
@media (min-width:1101px) and (max-width:1600px){

  /* =======================================================
     إعلاناتي — إبعاد "تحديد الكل" والحذف عن طرف الحاوية
     ======================================================= */
  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar
  .member-records-toolbar-inner{
    padding-inline:12px !important;
  }

  /* =======================================================
     متاجري — شارات أصغر مثل التابلت
     ======================================================= */
  html body #tabContent .member-stores-page .member-store-pill{
    min-height:22px !important;
    padding:2px 6px !important;
    gap:4px !important;
    border-radius:5px !important;
    font-size:11.5px !important;
    line-height:1.35 !important;
  }

  html body #tabContent .member-stores-page .member-store-pill i{
    font-size:10.5px !important;
  }

  /* المتجر العادي لا يعرض حالة التمييز؛ المميز فقط يحتفظ بها. */
  html body #tabContent .member-stores-page
  .member-store-card:not(.is-featured) .member-store-feature-state{
    display:none !important;
  }

  /* =======================================================
     متاجري — قائمة الثلاث نقاط بدل أزرار الإجراءات
     ======================================================= */
  html body #tabContent .member-stores-page .member-store-actions{
    display:none !important;
  }

  html body #tabContent .member-stores-page .member-store-card{
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-card-footer{
    position:relative !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    overflow:visible !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu{
    position:relative !important;
    display:block !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-toggle{
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#d1d5db)) !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#4b5563 !important;
    cursor:pointer !important;
    list-style:none !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-menu-toggle::-webkit-details-marker{
    display:none !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-menu-toggle::marker{
    content:"" !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-menu-toggle:hover{
    border-color:var(--member-brand-line) !important;
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }

  html body #tabContent .member-stores-page .member-store-action-dropdown{
    position:absolute !important;
    inset-inline-end:0 !important;
    bottom:calc(100% + 7px) !important;
    z-index:60 !important;
    min-width:190px !important;
    padding:5px !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-menu:not([open]) > .member-store-action-dropdown{
    display:none !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-menu[open] > .member-store-action-dropdown{
    display:grid !important;
    gap:2px !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item{
    width:100% !important;
    min-height:36px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:7px 9px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#374151 !important;
    text-decoration:none !important;
    text-align:right !important;
    white-space:nowrap !important;
    cursor:pointer !important;
  }

  html body #tabContent .member-stores-page .member-store-action-item:hover{
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }

  html body #tabContent .member-stores-page
  .member-store-action-item.is-disabled,
  html body #tabContent .member-stores-page
  .member-store-action-item:disabled{
    opacity:.5 !important;
    cursor:not-allowed !important;
  }

  html body #tabContent .member-stores-page .member-store-action-menu-form{
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
}

/* =========================================================
   Member Ads — Laptop bulk actions column alignment
   2026-09-29
   النطاق: 1101px–1600px
   يطابق شريط التحديد الجماعي مع أعمدة الجدول نفسها.
   ========================================================= */
@media (min-width:1101px) and (max-width:1600px){

  /* نفس padding صفوف الجدول بالضبط. */
  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar
  .member-records-toolbar-inner{
    padding-inline:12px !important;
  }

  /* نفس شبكة رأس/صفوف الإعلانات: أول عمود للتحديد وآخر عمود للإجراءات. */
  html body #tabContent .member-records-page
  .member-records-select-actions{
    display:grid !important;
    grid-template-columns:
      58px
      105px
      100px
      110px
      minmax(150px,1.2fr)
      110px
      minmax(110px,1fr)
      130px
      86px !important;
    column-gap:8px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
  }

  /*
   * "تحديد الكل":
   * checkbox في مركز العمود الأول نفسه الذي يحتوي checkboxes الصفوف،
   * والنص يستفيد من العمود الثاني بدون تحريك checkbox عن محوره.
   */
  html body #tabContent .member-records-page
  .member-records-selection-side{
    grid-column:1 / span 4 !important;
    display:grid !important;
    grid-template-columns:58px 105px 100px 110px !important;
    column-gap:8px !important;
    align-items:center !important;
    width:auto !important;
    min-width:0 !important;
    justify-self:stretch !important;
  }

  html body #tabContent .member-records-page
  .member-records-check-all{
    grid-column:1 / span 2 !important;
    display:grid !important;
    grid-template-columns:58px 105px !important;
    column-gap:8px !important;
    align-items:center !important;
    justify-content:stretch !important;
    width:171px !important;
    min-width:171px !important;
    min-height:36px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body #tabContent .member-records-page
  .member-records-check-all-input{
    grid-column:1 !important;
    justify-self:center !important;
    align-self:center !important;
    margin:0 !important;
  }

  /* عداد العناصر المحددة يبدأ بعد عمودي التحديد/الإعلان. */
  html body #tabContent .member-records-page
  .member-records-selected-count{
    grid-column:3 / span 2 !important;
    justify-self:start !important;
    align-self:center !important;
    margin:0 !important;
  }

  /* الحذف في مركز عمود الإجراءات نفسه الذي يحتوي أزرار الثلاث نقاط. */
  html body #tabContent .member-records-page
  .member-records-bulk-delete-btn{
    grid-column:9 !important;
    justify-self:center !important;
    align-self:center !important;
    margin:0 !important;
  }
}

/* =========================================================
   Member Ads — Laptop bulk toolbar outside list container
   2026-09-29
   النطاق: 1101px–1600px
   ========================================================= */
@media (min-width:1101px) and (max-width:1600px){

  html body #tabContent .member-records-page
  .member-records-list{
    position:relative !important;
    margin-top:52px !important;
    overflow:visible !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar{
    position:absolute !important;
    top:-52px !important;
    inset-inline:0 !important;
    width:100% !important;
    height:42px !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    z-index:2 !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar
  .member-records-toolbar-inner{
    width:100% !important;
    height:42px !important;
    margin:0 !important;
    padding-inline:12px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }
}

/* =========================================================
   Member Ads — Laptop bulk toolbar bordered card
   2026-09-29
   النطاق: 1101px–1600px
   ========================================================= */
@media (min-width:1101px) and (max-width:1600px){

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar{
    height:auto !important;
    min-height:44px !important;
    padding:0 !important;
    background:#fff !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
  }

  html body #tabContent .member-records-page
  .member-records-list > .member-records-toolbar
  .member-records-toolbar-inner{
    min-height:42px !important;
    border-radius:inherit !important;
    background:transparent !important;
  }
}

/* =========================================================
   Member Dashboard — Central primary action color
   2026-09-29
   المصدر المركزي لألوان أزرار الإجراءات الأساسية.
   ========================================================= */
html body .member-dashboard-wrapper,
html body #tabContent{
  --member-action-primary:
    var(--sadaa-admin-primary, var(--sadaa-primary));
  --member-action-primary-hover:
    var(--sadaa-admin-hover, var(--sadaa-primary-dark));
}

/* أزرار "تطبيق" والإجراءات الأساسية داخل لوحة العضو */
html body #tabContent .member-records-page .member-records-filter-submit,
html body #tabContent .member-invoices-page .invoices-toolbar-btn,
html body .member-dashboard-wrapper .sadaa-btn--primary{
  background:var(--member-action-primary) !important;
  border-color:var(--member-action-primary) !important;
  color:#fff !important;
}

/* Hover / Focus */
html body #tabContent .member-records-page .member-records-filter-submit:hover,
html body #tabContent .member-records-page .member-records-filter-submit:focus-visible,
html body #tabContent .member-invoices-page .invoices-toolbar-btn:hover,
html body #tabContent .member-invoices-page .invoices-toolbar-btn:focus-visible,
html body .member-dashboard-wrapper .sadaa-btn--primary:hover,
html body .member-dashboard-wrapper .sadaa-btn--primary:focus-visible{
  background:var(--member-action-primary-hover) !important;
  border-color:var(--member-action-primary-hover) !important;
  color:#fff !important;
}

/* =========================================================
   Admin Dashboard — Wide Tablet Sidebar Layout
   2026-09-29
   النطاق: 901px–1100px (يشمل 1024px)

   - إلغاء زر "القائمة الرئيسية".
   - إظهار القائمة الرئيسية كعمود جانبي دائم.
   - الحفاظ على Drawer للجوال و768px كما هو.
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  :root{
    --admin-wide-tablet-sidebar-width:265px;
    --admin-wide-tablet-layout-gap:12px;
  }

  html body.dashboard-drawer-open{
    overflow-x:hidden !important;
    overflow-y:auto !important;
  }

  html body .dashboard-wrapper{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:var(--admin-wide-tablet-layout-gap) !important;
    width:min(1430px, calc(100% - 20px)) !important;
    max-width:1430px !important;
    margin:14px auto 28px !important;
    padding:0 !important;
    direction:rtl !important;
  }

  /* شريط "القائمة الرئيسية" غير مطلوب في التابلت العريض. */
  html body .dashboard-wrapper
  > .dashboard-mobile-tabs-toggle{
    display:none !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
  }

  /* تحويل Drawer إلى عمود جانبي ثابت. */
  html body .dashboard-wrapper
  > .sidebar{
    position:sticky !important;
    top:14px !important;
    right:auto !important;
    left:auto !important;
    z-index:20 !important;

    display:block !important;
    flex:0 0 var(--admin-wide-tablet-sidebar-width) !important;
    width:var(--admin-wide-tablet-sidebar-width) !important;
    max-width:var(--admin-wide-tablet-sidebar-width) !important;

    height:auto !important;
    max-height:calc(100dvh - 28px) !important;
    margin:0 !important;
    padding:0 10px 12px !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    background:#fff !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    box-shadow:0 12px 30px rgba(var(--sadaa-admin-dark-rgb),.055) !important;

    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transition:none !important;
    overscroll-behavior:contain !important;
  }

  html body .dashboard-wrapper.mobile-tabs-open
  > .sidebar{
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  /* لا Backdrop ولا زر إغلاق في القائمة الدائمة. */
  html body .dashboard-wrapper
  > .dashboard-sidebar-backdrop,
  html body .dashboard-wrapper
  .dashboard-sidebar-close{
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  /* رأس القائمة يعود من هيئة Drawer إلى بطاقة جانبية طبيعية. */
  html body .dashboard-wrapper
  .dashboard-sidebar-head{
    position:relative !important;
    top:auto !important;
    z-index:1 !important;
    min-height:112px !important;
    margin:0 -10px 12px !important;
    padding:17px 14px 15px !important;
    border-radius:7px 7px 0 0 !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-title-row{
    gap:9px !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-title-icon{
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-title{
    font-size:16px !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-subtitle{
    font-size:11.5px !important;
    line-height:1.6 !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-user{
    max-width:100% !important;
    font-size:11.5px !important;
  }

  html body .dashboard-wrapper
  .dashboard-sidebar-nav{
    padding-bottom:8px !important;
  }

  /* جميع التبويبات تستخدم نفس عمود المحتوى بجانب القائمة. */
  html body .dashboard-wrapper
  > .content-area{
    flex:1 1 auto !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper
  > .content-area > #tabContent{
    width:100% !important;
    min-width:0 !important;
  }

  /* روابط التنقل العلوية غير لازمة مع وجود القائمة الجانبية. */
  html body .dashboard-page-nav{
    display:none !important;
  }
}

/* =========================================================
   Admin Dashboard — Interaction Stability / Flash Guard
   2026-09-29
   النطاق: جميع المقاسات
   يمنع وميض النقر/اللمس مع الحفاظ على focus-visible.
   ========================================================= */

/* 1) إلغاء Tap Highlight على جميع العناصر التفاعلية داخل لوحة المدير. */
html body .dashboard-wrapper a,
html body .dashboard-wrapper button,
html body .dashboard-wrapper summary,
html body .dashboard-wrapper label[for],
html body .dashboard-wrapper input,
html body .dashboard-wrapper select,
html body .dashboard-wrapper textarea,
html body .dashboard-wrapper [role="button"],
html body .dashboard-wrapper [tabindex],
html body .dashboard-wrapper .sadaa-menu-trigger,
html body .dashboard-wrapper .sadaa-pagination__item,
html body .dashboard-wrapper .sadaa-accordion__summary,
html body .dashboard-wrapper .sadaa-tablet-disclosure__summary,
html body .dashboard-wrapper .sadaa-checkbox,
html body .dashboard-wrapper .sadaa-radio,
html body .dashboard-wrapper .sadaa-switch,
html body .dashboard-wrapper .sadaa-date-control__input{
  -webkit-tap-highlight-color:transparent !important;
}

/* 2) العناصر القابلة للنقر تستجيب مباشرة بدون تأخير لمس. */
html body .dashboard-wrapper a,
html body .dashboard-wrapper button,
html body .dashboard-wrapper summary,
html body .dashboard-wrapper label[for],
html body .dashboard-wrapper [role="button"],
html body .dashboard-wrapper .sadaa-menu-trigger,
html body .dashboard-wrapper .sadaa-pagination__item,
html body .dashboard-wrapper .sadaa-accordion__summary,
html body .dashboard-wrapper .sadaa-tablet-disclosure__summary{
  touch-action:manipulation;
}

/* 3) النقر بالماوس/اللمس لا يولد Focus مؤقتاً بصرياً. */
html body .dashboard-wrapper a:focus:not(:focus-visible),
html body .dashboard-wrapper button:focus:not(:focus-visible),
html body .dashboard-wrapper summary:focus:not(:focus-visible),
html body .dashboard-wrapper [role="button"]:focus:not(:focus-visible),
html body .dashboard-wrapper [tabindex]:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* 4) الحقول والقوائم المنسدلة المحلية داخل المدير. */
html body .dashboard-wrapper input:focus:not(:focus-visible),
html body .dashboard-wrapper select:focus:not(:focus-visible),
html body .dashboard-wrapper textarea:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* 5) Checkbox / Radio داخل المدير. */
html body .dashboard-wrapper input[type="checkbox"]:focus:not(:focus-visible),
html body .dashboard-wrapper input[type="radio"]:focus:not(:focus-visible),
html body .dashboard-wrapper .sadaa-checkbox:focus:not(:focus-visible),
html body .dashboard-wrapper .sadaa-radio:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* 6) Switch. */
html body .dashboard-wrapper
.sadaa-switch__input:focus:not(:focus-visible) + .sadaa-switch__track,
html body .dashboard-wrapper
.sadaa-switch--button:focus:not(:focus-visible) > .sadaa-switch__track{
  outline:none !important;
  box-shadow:none !important;
  transition:none !important;
}

/* 7) Select shell: لا يتغير لون السهم لحظياً عند النقر. */
html body .dashboard-wrapper
.sadaa-select-shell:has(.sadaa-select:focus:not(:focus-visible))::after{
  border-right-color:var(--sadaa-admin-muted,var(--sadaa-muted,#6b7280)) !important;
  border-bottom-color:var(--sadaa-admin-muted,var(--sadaa-muted,#6b7280)) !important;
  transition:none !important;
}

/* 8) حقول التاريخ داخل لوحة المدير. */
html body .dashboard-wrapper
.sadaa-date-control__input:focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
  border-color:var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  transition:none !important;
}

html body .dashboard-wrapper
.sadaa-date-control:has(.sadaa-date-control__input:focus:not(:focus-visible))
.sadaa-date-control__icon{
  color:var(--sadaa-admin-muted,var(--sadaa-muted,#6b7280)) !important;
  transition:none !important;
}

/* 9) أثناء Pointer Focus نوقف Transition المؤقت فقط. */
html body .dashboard-wrapper
:is(a,button,summary,input,select,textarea,[role="button"],[tabindex]):focus:not(:focus-visible){
  transition:none !important;
}

/* =========================================================
   Admin Dashboard — Wide Tablet Sidebar Normal Flow
   2026-09-29
   النطاق: 901px–1100px

   العمود جزء طبيعي من الصفحة مثل محتوى التبويب:
   لا Fixed ولا Sticky، ولا يتبع الشاشة أثناء التمرير.
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  html body .dashboard-wrapper::before{
    content:none !important;
    display:none !important;
  }

  html body .dashboard-wrapper
  > .sidebar{
    position:static !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;

    flex:0 0 var(--admin-wide-tablet-sidebar-width,265px) !important;
    width:var(--admin-wide-tablet-sidebar-width,265px) !important;
    max-width:var(--admin-wide-tablet-sidebar-width,265px) !important;

    height:auto !important;
    max-height:none !important;

    margin:0 !important;
    overflow:visible !important;

    z-index:auto !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transition:none !important;
  }

  html body .dashboard-wrapper
  > .content-area{
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }
}

/* =========================================================
   Admin Orders — 1024px full content alignment
   2026-09-30
   النطاق: 901px–1100px

   توحيد الحواف الجانبية لـ:
   - البحث
   - الفلاتر
   - حاوية البطاقات
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  /* إزالة الحشوة الخارجية التي كانت تضيق كل أقسام الطلبات. */
  html body #tabContent .orders-tab-ui .orders-panel{
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    padding-inline:0 !important;
    box-sizing:border-box !important;
  }

  /* البحث والفلاتر يصلان لنفس حدود عمود المحتوى. */
  html body #tabContent .orders-tab-ui .orders-search-card,
  html body #tabContent .orders-tab-ui .orders-controls-card{
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    box-sizing:border-box !important;
  }

  /* حاوية قائمة الطلبات بنفس العرض تماماً. */
  html body #tabContent .orders-tab-ui .orders-list-card{
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    padding-inline:0 !important;
    box-sizing:border-box !important;
  }

  /* إزالة الـ inset الإضافي داخل شبكة البطاقات فقط. */
  html body #tabContent .orders-tab-ui .orders-grid{
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    padding-inline:0 !important;
    box-sizing:border-box !important;
  }
}

/* =========================================================
   Admin Design System — Unified Tab Hero
   2026-09-30

   المصدر المركزي الوحيد لهيرو تبويبات لوحة المدير:
   المسافات، المقاسات، الألوان، الأيقونة، العنوان والوصف.
   ========================================================= */

/* جميع الشاشات */
html body #tabContent .sadaa-page-header--admin{
  position:relative !important;
  width:100% !important;
  min-width:0 !important;
  min-height:82px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;

  margin:0 0 14px !important;
  padding:18px 20px !important;

  overflow:hidden !important;
  box-sizing:border-box !important;

  border:0 !important;
  border-radius:8px !important;
  background:var(--sadaa-admin-hero-gradient) !important;
  color:#fff !important;
  box-shadow:none !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__inner{
  width:100% !important;
  min-width:0 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__main{
  min-width:0 !important;
  flex:1 1 auto !important;

  display:flex !important;
  align-items:center !important;
  gap:12px !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__icon{
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  min-height:42px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  border:1px solid rgba(255,255,255,.24) !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
  box-shadow:none !important;

  font-size:17px !important;
  line-height:1 !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__content{
  min-width:0 !important;
  flex:1 1 auto !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__eyebrow{
  display:none !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__title{
  margin:0 !important;
  color:#fff !important;
  font-size:18px !important;
  font-weight:600 !important;
  line-height:1.45 !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__description{
  margin:3px 0 0 !important;
  color:rgba(255,255,255,.94) !important;
  font-size:12.5px !important;
  font-weight:400 !important;
  line-height:1.65 !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__actions{
  min-width:0 !important;
  flex:0 0 auto !important;

  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

html body #tabContent .sadaa-page-header--admin
.sadaa-page-header__meta{
  min-height:34px !important;
  padding:6px 10px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;

  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:7px !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}

/* التابلت العريض — 1024px */
@media (min-width:901px) and (max-width:1100px){

  html body #tabContent .sadaa-page-header--admin{
    min-height:82px !important;
    margin-bottom:14px !important;
    padding:16px 18px !important;
    gap:12px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__inner{
    gap:12px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__main{
    gap:10px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__icon{
    flex-basis:38px !important;
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    min-height:38px !important;
    font-size:15px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__title{
    font-size:17px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__description{
    font-size:12px !important;
  }

  /* في التابلت تبقى الـ Actions مضغوطة أو مخفية حسب النظام الموحد. */
  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__actions{
    gap:7px !important;
  }
}

/* التابلت 768 والجوال */
@media (max-width:900px){

  html body #tabContent .sadaa-page-header--admin{
    min-height:74px !important;
    margin-bottom:14px !important;
    padding:14px !important;
    gap:10px !important;
    border-radius:8px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__inner{
    align-items:center !important;
    gap:10px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__main{
    gap:9px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__icon{
    flex-basis:34px !important;
    width:34px !important;
    min-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    border-radius:7px !important;
    font-size:14px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__title{
    font-size:17px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__description{
    margin-top:2px !important;
    font-size:12px !important;
    line-height:1.6 !important;
  }
}

@media (max-width:480px){

  html body #tabContent .sadaa-page-header--admin{
    min-height:70px !important;
    padding:12px !important;
    margin-bottom:14px !important;
    border-radius:7px !important;
  }

  html body #tabContent .sadaa-page-header--admin
  .sadaa-page-header__description{
    font-size:11.5px !important;
  }
}

/* =========================================================
   Admin Design System — Workspace spacing
   2026-09-30

   الهيرو يحتفظ بمسافته الخارجية = 14px.
   مساحة العمل تحتفظ بالحماية الرأسية فقط حتى يبقى عرضها
   مطابقاً لعرض الهيرو. الحماية الجانبية لبطاقات السجلات
   تُدار داخل حاوية السجلات نفسها دون تصغير عرضها الخارجي.
   ========================================================= */
:root{
  --sadaa-admin-workspace-gutter:12px;
}

html body .dashboard-wrapper:not(.member-dashboard-wrapper)
#tabContent .sadaa-card--workspace{
  width:100% !important;
  max-width:none !important;
  margin-inline:0 !important;
  padding:
    var(--sadaa-admin-workspace-gutter)
    0
    var(--sadaa-admin-workspace-gutter)
    !important;
  box-sizing:border-box !important;
}

/* التباعد الخارجي المركزي بين الهيرو وما يليه. */
html body .dashboard-wrapper:not(.member-dashboard-wrapper)
#tabContent .sadaa-page-header--admin{
  margin-bottom:14px !important;
}

/* =========================================================
   Admin Dashboard — Initial Load Paint Guard
   2026-09-30

   عند F5 ننتظر window.onload كالمعتاد، ثم نجلب العمود ومحتوى التبويب معاً.
   تبقى الواجهة مخفية أثناء الجلب الأول وتظهر كوحدة واحدة بعد اكتمالهما.
   ========================================================= */
html body .dashboard-wrapper.dashboard-initializing{
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

html body .dashboard-wrapper.dashboard-initial-ready{
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

/* بدون Animation حتى لا يتحول علاج الوميض إلى Fade جديد. */
html body .dashboard-wrapper.dashboard-initializing,
html body .dashboard-wrapper.dashboard-initial-ready{
  transition:none !important;
}

/* =========================================================
   Admin Design System — Unified Card Content Typography
   2026-09-30

   المقاس المركزي لمحتوى بطاقات لوحة المدير:
   الجوال + التابلت + اللابتوب = 13px

   لا يشمل:
   - عناوين البطاقات
   - الشارات والحالات
   - الأزرار
   - الأيقونات
   ========================================================= */
:root{
  --sadaa-admin-card-content-font-size:13px;
}

@media (max-width:1600px){

  /* البطاقات والسجلات المركزية في لوحة المدير */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .sadaa-admin-record-card,

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .sadaa-tablet-records-shell .sadaa-admin-record-card,

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .sadaa-admin-card,

  /* محتوى خلايا البطاقات بعد تحويل الجداول إلى Cards */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .sadaa-admin-record-card
  :is(
    .orders-grid-cell,
    .users-grid-cell,
    .reports-grid-cell,
    .moderator-cell,
    .mc-cell,
    .report-cell,
    .directory-cell,
    .newsletter-cell,
    .finance-cell
  ),

  /* عناصر النص/القيم العامة داخل البطاقات */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .sadaa-admin-record-card
  :is(
    .card-value,
    .record-value,
    .record-text,
    .item-value,
    .item-text,
    .meta-value,
    .meta-text
  ){
    font-size:var(--sadaa-admin-card-content-font-size) !important;
  }

  /*
   * بعض التبويبات تستخدم بطاقات محلية بدون class مركزي كامل.
   * نوحد محتوى الصفوف/الخلايا فيها أيضاً.
   */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .orders-grid-row,
    .users-card,
    .moderator-card,
    .reports-card,
    .mc-row,
    .finance-order-row,
    .directory-store-card,
    .newsletter-card
  ){
    font-size:var(--sadaa-admin-card-content-font-size) !important;
  }

  /* لا نسمح للقاعدة العامة بتغيير الهرم البصري للعناوين والشارات والأزرار. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .sadaa-admin-record-card,
    .orders-grid-row,
    .users-card,
    .moderator-card,
    .reports-card,
    .mc-row,
    .finance-order-row,
    .directory-store-card,
    .newsletter-card
  )
  :is(
    h1,h2,h3,h4,h5,h6,
    .sadaa-status,
    .badge,
    [class*="badge"],
    [class*="status"],
    button,
    .sadaa-btn,
    .sadaa-menu-trigger,
    .sadaa-pagination__item
  ){
    font-size:revert;
  }
}

/* =========================================================
   Admin Design System — Tablet record shell side gutter
   2026-09-30
   النطاق: 901px–1100px

   الحاوية الخارجية تبقى 100% مثل الهيرو.
   الفراغ الجانبي يُطبّق داخل سطح السجلات فقط دون تصغير
   حدود منطقة البحث أو الفلاتر أو الحاوية نفسها.
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  /* جميع المناطق الرئيسية تبقى بنفس حدود الهيرو. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .sadaa-admin-tools-card,
    .orders-search-card,
    .orders-controls-card,
    .orders-list-card,
    .sadaa-tablet-records-shell
  ){
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    box-sizing:border-box !important;
  }

  /*
   * حاوية السجلات نفسها لا تُصغّر؛ الفراغ يكون داخلياً
   * فقط حيث يوجد سطح حقيقي يحتضن بطاقات السجلات.
   */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .sadaa-tablet-records-shell,
    .orders-list-card
  ){
    padding-inline:var(--sadaa-admin-workspace-gutter,12px) !important;
  }

  /* الـ stack يملأ المساحة الداخلية المتاحة بدون inset إضافي. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .sadaa-tablet-records-stack,
    .orders-grid
  ){
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    box-sizing:border-box !important;
  }

  /* الطلبات: البحث والفلاتر لا يأخذان أي تضييق أفقي إضافي. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  :is(
    .orders-search-card,
    .orders-controls-card
  ){
    padding-inline:0 !important;
  }
}

/* =========================================================
   Admin Design System — Desktop / Laptop Structural Repairs
   2026-09-30
   النطاق: 1101px فأعلى

   إصلاحات موحّدة للبنية المرئية في:
   الطلبات، المستخدمين، المشرفين، الكوبونات، العروض،
   الرسائل البريدية، وتقرير الطلبات.
   ========================================================= */
:root{
  --sadaa-admin-desktop-shell-gutter:12px;
}

@media (min-width:1101px){

  /* -------------------------------------------------------
     الطلبات
     - البحث والفلاتر خارج حاوية الجدول.
     - الجدول داخل حاوية مستقلة مع فراغ آمن من الجانبين.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  > .orders-panel.sadaa-card--workspace.sadaa-admin-list-shell{
    display:contents !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  :is(.orders-search-card,.orders-controls-card){
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    box-sizing:border-box !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui .orders-list-card{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui .orders-list-card > .orders-grid{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
  }

  /* -------------------------------------------------------
     المستخدمون
     - حاوية حقيقية خلف الجدول.
     - الجدول كسطح أبيض مستقل داخلها.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list-wrap.sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list-wrap > .users-list{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
  }

  /* -------------------------------------------------------
     المشرفون
     - إزالة الحاوية العامة التي تجمع البحث مع السجلات.
     - البحث يبقى بطاقة مستقلة، والسجلات تبقى ببنيتها الحالية.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab
  > .moderators-panel.sadaa-admin-list-shell{
    display:contents !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderators-search-sort-section{
    width:100% !important;
    max-width:none !important;
    margin:0 0 12px !important;
    box-sizing:border-box !important;
  }

  /* -------------------------------------------------------
     الكوبونات
     - إظهار الحاوية الخلفية للجدول بوضوح.
     - السطح الداخلي مستقل ولا يلامس الحاوية.
     - توحيد ألوان كل شارات الحالات بلغة هوية واحدة.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .coupons-tab-ui .mc-list-wrap.sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .coupons-tab-ui .mc-list-wrap > .mc-list{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .coupons-tab-ui
  :is(
    .coupon-status,
    .coupon-status.is-active,
    .coupon-status.is-disabled,
    .coupon-status.is-pending,
    .coupon-status.is-expired,
    .coupon-status.is-used-up,
    .coupon-status-chip,
    .coupon-status-chip.is-active,
    .coupon-status-chip.is-disabled,
    .coupon-status-chip.is-pending,
    .coupon-status-chip.is-expired,
    .coupon-status-chip.is-used-up
  ){
    background:var(--sadaa-admin-soft,var(--sadaa-tint-2)) !important;
    color:var(--sadaa-admin-dark) !important;
    border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2)) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .coupons-tab-ui .coupon-status-chip i{
    color:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
  }

  /* -------------------------------------------------------
     العروض الحالية
     - فراغ داخلي بين بطاقة/جدول العرض والحاوية المحيطة.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .offers-tab-ui .offers-current-card-body.sadaa-accordion__body--flush{
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .offers-tab-ui .offers-current-card-body .offers-table-wrap{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
  }

  /* -------------------------------------------------------
     الرسائل البريدية
     - إعادة بناء منطقة البحث/الفلاتر كسطح نظيف متماسك.
     - جدول الرسائل داخل حاوية واضحة.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-tools.sadaa-admin-tools-card{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 0 10px !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-tools
  > .newsletter-tablet-disclosure-summary{
    display:none !important;
    pointer-events:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-tablet-disclosure-body{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-filters{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,auto)) !important;
    justify-content:start !important;
    gap:7px !important;
    width:100% !important;
    margin:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-search{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-search-field{
    width:100% !important;
    min-width:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-table-wrap.sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin .newsletter-table{
    width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
  }

  /* -------------------------------------------------------
     تقرير الطلبات — الفلاتر
     - استعادة توزيع Desktop الطبيعي بعيداً عن تخطيط التابلت.
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-filter-card{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 0 14px !important;
    padding:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-filter-card > .finance-card-head{
    display:flex !important;
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    padding:9px 12px !important;
    box-sizing:border-box !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-filter-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:var(--sadaa-admin-desktop-shell-gutter) !important;
    box-sizing:border-box !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-tablet-disclosure{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-tablet-disclosure
  > .finance-tablet-disclosure-summary{
    display:none !important;
    pointer-events:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-search-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:end !important;
    gap:8px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-search-row .finance-field.search-field{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-search-row .finance-filter-actions{
    grid-column:auto !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(88px,auto)) !important;
    align-self:end !important;
    gap:7px !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-date-filter-row{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:end !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-date-filter-row > .finance-field{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  :is(.finance-date-wrapper,.finance-select-shell,.finance-date-input,.finance-select-shell select){
    width:100% !important;
    min-width:0 !important;
  }

  /* الترقيم أصبح خارج الجدول وخارج حاوية الجدول في الـ HTML. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab > .finance-pagination{
    width:100% !important;
    margin:10px 0 14px !important;
    padding:0 !important;
    border:0 !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }
}

/* بعد نقل Pagination تقرير الطلبات خارج الحاوية:
   نحافظ على تنسيقه المركزي أيضاً في التابلت والجوال. */
@media (max-width:1100px){
  html body #tabContent .finance-tab > .finance-pagination{
    width:100% !important;
    margin:8px 0 10px !important;
    padding:0 !important;
    border:0 !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:5px !important;
  }
}

/* =========================================================
   Admin Users — Desktop / Laptop table structure repair
   2026-09-30
   النطاق: 1101px فأعلى

   أول ثلاث خلايا في صف المستخدم موجودة داخل
   .users-card-head-main لأغراض التابلت/الجوال.
   على سطح المكتب يجب أن يصبح هذا الغلاف display:contents
   حتى تعود الخلايا العشر عناصر Grid مباشرة مثل رأس الجدول.
   ========================================================= */
@media (min-width:1101px){

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list-wrap.sadaa-tablet-records-shell{
    display:block !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* المفتاح الحقيقي لإصلاح انهيار الأعمدة. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-card-head-main{
    display:contents !important;
  }

  /* نفس شبكة الأعمدة للرأس ولكل صف. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft
  :is(.users-header,.users-row){
    display:grid !important;
    grid-template-columns:
      44px
      34px
      minmax(145px,1fr)
      minmax(220px,1.42fr)
      minmax(118px,.82fr)
      88px
      minmax(132px,.92fr)
      92px
      112px
      54px
      !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-header{
    min-height:46px !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-row{
    min-height:60px !important;
    padding:0 !important;
    border-top:0 !important;
    border-right:0 !important;
    border-left:0 !important;
    border-radius:0 !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-row:last-child{
    border-bottom:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-cell{
    min-width:0 !important;
    padding:10px 10px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    border-bottom:0 !important;
    box-sizing:border-box !important;
  }

  /* تسميات البطاقات لا تظهر إطلاقاً في وضع الجدول. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-cell::before{
    display:none !important;
    content:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft
  :is(.users-select-cell,.users-note-cell,.users-actions-cell,.users-actions-head){
    overflow:visible !important;
    text-overflow:clip !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft
  :is(.users-role-cell,.users-verification-cell,.users-status-cell,.users-date-cell){
    display:block !important;
    text-align:center !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-email-cell{
    text-align:center !important;
  }
}

/* =========================================================
   Admin Reports — Desktop / Laptop real table shell
   2026-09-30
   النطاق: 1101px فأعلى

   Wrapper فعلي مستقل خلف جدول البلاغات.
   pagination يبقى خارج الحاوية مثل بقية التبويبات.
   ========================================================= */

/* على التابلت والجوال لا نغيّر البنية البصرية الحالية. */
html body .dashboard-wrapper:not(.member-dashboard-wrapper)
#tabContent .reports-tab-ui .reports-table-shell{
  display:contents;
}

@media (min-width:1101px){

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui .reports-table-shell{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:12px !important;
    box-sizing:border-box !important;

    border:1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-admin-soft, var(--sadaa-surface-alt, #f8fafc)) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  /* الطبقة البيضاء الداخلية للجدول. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui .reports-table-shell
  > .reports-list-card{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;

    border:1px solid var(--sadaa-admin-line, var(--sadaa-line, #e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface, #fff) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui .reports-table-shell
  .reports-table{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    border-radius:8px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }

  /* Pagination يظل خارج الـ shell ولا يلتصق به. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui
  .reports-table-shell + .reports-pagination{
    margin-top:12px !important;
  }
}

/* =========================================================
   Admin Moderators — Desktop / Laptop container radius
   2026-09-30
   النطاق: 1101px فأعلى

   توحيد زوايا الحاوية الخلفية لبطاقات المشرفين.
   ========================================================= */
@media (min-width:1101px){

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab
  .sadaa-tablet-records-shell{
    border-radius:8px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
}

/* =========================================================
   Admin Orders — Desktop / Laptop status badge refinement
   2026-09-30
   النطاق: 1101px فأعلى

   تحسين راحة شارات الحالة داخل عمود الحالة بدون تغيير
   ألوان الحالات أو بنية الجدول.
   ========================================================= */
@media (min-width:1101px){

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-cell[data-label="الحالة"]{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    padding-inline:10px !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-cell[data-label="الحالة"]
  :is(
    .orders-status,
    .order-status,
    .status-badge,
    .status-pill,
    .badge,
    [class*="status"]
  ){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;

    min-width:72px !important;
    min-height:34px !important;
    padding:6px 10px !important;

    border-radius:7px !important;
    box-sizing:border-box !important;

    line-height:1.35 !important;
    text-align:center !important;
    white-space:nowrap !important;
  }

  /* الحالات ذات النص الأطول تحتاج مساحة إضافية بسيطة. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-cell[data-label="الحالة"]
  :is(
    .status-payment_failed,
    .status-payment_expired,
    .status-refunded,
    .status-refund,
    .status-expired,
    [class*="payment"],
    [class*="refund"]
  ){
    min-width:94px !important;
    padding-inline:12px !important;
  }
}

/* =========================================================
   Admin Orders — Desktop / Laptop column vertical alignment
   2026-09-30
   النطاق: 1101px فأعلى

   توحيد المحاذاة العمودية لرأس الجدول وصفوف الطلبات،
   مع إبقاء عمود الإجراءات بلا عنوان نصي.
   ========================================================= */
@media (min-width:1101px){

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  :is(.orders-grid-header,.orders-grid-row){
    align-items:stretch !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  :is(.orders-grid-header,.orders-grid-row)
  > .orders-grid-cell{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    min-height:100% !important;
    box-sizing:border-box !important;
    vertical-align:middle !important;
  }

  /* اسم المعلن: توحيد محاذاة العنوان والقيم مع بقية أعمدة الجدول. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-row
  > .orders-grid-cell[data-label="اسم المعلن"]{
    justify-content:center !important;
    text-align:center !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-header
  > .orders-grid-cell:nth-child(3){
    justify-content:center !important;
    text-align:center !important;
  }

  /* عمود الإجراءات يتوسط زر الثلاث نقاط فقط. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  :is(.orders-actions-cell,.orders-actions-head){
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    vertical-align:middle !important;
  }

  /* احتياط: لا يظهر عنوان "إجراءات" في رأس العمود حتى لو بقي في HTML قديم. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui .orders-actions-head{
    font-size:0 !important;
    color:transparent !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui .orders-actions-head > *{
    font-size:initial !important;
    color:inherit !important;
  }

  /* الشارات والأزرار داخل الخلايا تتمركز عمودياً بدون التأثير على ألوانها. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .orders-tab-ui
  .orders-grid-cell
  :is(
    .sadaa-status,
    .status-badge,
    .status-pill,
    .orders-id-pill,
    .orders-row-actions-toggle
  ){
    align-self:center !important;
    margin-block:auto !important;
  }
}

/* =========================================================
   Admin Design System — Desktop / Laptop Search & Filter Disclosure
   2026-09-30
   النطاق: 1101px فأعلى

   تعميم نفس مكوّن البحث/الفلاتر القابل للفتح والإغلاق
   المعتمد في التابلت والجوال على اللابتوب وسطح المكتب.
   ========================================================= */
@media (min-width:1101px){

  :root{
    --sadaa-admin-tools-summary-height:46px;
    --sadaa-admin-tools-body-padding:12px;
  }

  /* -------------------------------------------------------
     الحاوية المركزية
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure[class*="sadaa-tablet-disclosure--"]{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 0 10px !important;
    padding:0 !important;
    box-sizing:border-box !important;

    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  /* -------------------------------------------------------
     الرأس: نفس التابلت والجوال
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure[class*="sadaa-tablet-disclosure--"]
  > summary.sadaa-tablet-disclosure__summary{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;

    width:100% !important;
    min-height:var(--sadaa-admin-tools-summary-height) !important;
    margin:0 !important;
    padding:9px 14px !important;
    box-sizing:border-box !important;

    list-style:none !important;
    pointer-events:auto !important;
    cursor:pointer !important;

    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    color:var(--sadaa-admin-text,var(--sadaa-text-2,#374151)) !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure
  > summary.sadaa-tablet-disclosure__summary::-webkit-details-marker{
    display:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure
  > summary.sadaa-tablet-disclosure__summary::marker{
    content:"" !important;
    display:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure
  .sadaa-tablet-disclosure__title{
    min-width:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
    margin:0 !important;
    color:inherit !important;
    font-size:13px !important;
    font-weight:500 !important;
    line-height:1.6 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure
  .sadaa-tablet-disclosure__title
  > :is(i,svg){
    flex:0 0 auto !important;
    color:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
  }

  /* -------------------------------------------------------
     سهم الفتح والإغلاق
     مغلق = لليسار / مفتوح = للأسفل
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure
  .sadaa-tablet-disclosure__chevron{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    flex:0 0 28px !important;

    display:grid !important;
    place-items:center !important;

    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;

    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--sadaa-muted,#6b7280) !important;
    box-shadow:none !important;
    line-height:1 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure:not([open])
  > summary.sadaa-tablet-disclosure__summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:rotate(45deg) !important;
    transform-origin:center !important;
    transition:transform 160ms ease !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > summary.sadaa-tablet-disclosure__summary
  .sadaa-tablet-disclosure__chevron{
    border-color:color-mix(
      in srgb,
      var(--sadaa-admin-primary,var(--sadaa-primary)) 28%,
      var(--sadaa-admin-line,#e5e7eb)
    ) !important;
    color:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > summary.sadaa-tablet-disclosure__summary
  .sadaa-tablet-disclosure__chevron::before{
    position:static !important;
    left:auto !important;
    top:auto !important;
    transform:rotate(-45deg) !important;
    transform-origin:center !important;
    transition:transform 160ms ease !important;
  }

  /* -------------------------------------------------------
     الجسم: إلغاء سلوك outside القديم على سطح المكتب
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure:not([open])
  > .sadaa-tablet-disclosure__body{
    display:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure[open]
  > .sadaa-tablet-disclosure__body{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:var(--sadaa-admin-tools-body-padding) !important;
    box-sizing:border-box !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  /* استعادة نوع Layout الداخلي لكل تبويب بعد إلغاء display:contents القديم. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  details.sadaa-admin-tools-card[open]
  > .finance-search-row{
    display:grid !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  details.sadaa-admin-tools-card[open]
  > .finance-date-filter-row{
    display:grid !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .newsletter-admin
  details.sadaa-admin-tools-card[open]
  > .newsletter-tablet-disclosure-body{
    display:grid !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(
    .orders-tab-ui,
    .reports-tab-ui,
    .users-tab-soft,
    .moderators-tab,
    .coupons-tab-ui,
    .directory-tab-soft
  )
  details.sadaa-admin-tools-card[open]
  > .sadaa-tablet-disclosure__body{
    display:block !important;
  }

  /* عند الإغلاق تختفي الحدود السفلية للرأس بشكل أنظف. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  details.sadaa-admin-tools-card.sadaa-tablet-disclosure:not([open])
  > summary.sadaa-tablet-disclosure__summary{
    border-bottom:0 !important;
    border-radius:7px !important;
  }
}

/* =========================================================
   Admin Desktop / Laptop — Remove outer Search/Filter shells
   2026-09-30
   النطاق: 1101px فأعلى

   التبويبان:
   - إدارة المتاجر
   - تقرير الطلبات

   نحافظ على بطاقات details/summary المستقلة، ونزيل فقط
   الـ wrapper الخارجي الذي كان يرسم حاوية إضافية خلفها.
   ========================================================= */
@media (min-width:1101px){

  /* -------------------------------------------------------
     إدارة المتاجر
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .directory-tab-soft
  :is(
    .directory-unified-toolbar,
    .directory-toolbar-shell,
    .directory-tools-shell,
    .directory-filter-card,
    .directory-search-filter-wrap
  ){
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  /* إذا كان الـ wrapper يحمل class من النظام العام فلا يرسم سطحاً إضافياً. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .directory-tab-soft
  :is(
    .directory-unified-toolbar,
    .directory-toolbar-shell,
    .directory-tools-shell,
    .directory-filter-card,
    .directory-search-filter-wrap
  ).sadaa-admin-list-shell,
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .directory-tab-soft
  :is(
    .directory-unified-toolbar,
    .directory-toolbar-shell,
    .directory-tools-shell,
    .directory-filter-card,
    .directory-search-filter-wrap
  ).sadaa-admin-card{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* -------------------------------------------------------
     تقرير الطلبات
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  :is(
    .finance-filter-card,
    .finance-filter-grid,
    .finance-filter-shell,
    .finance-tools-shell
  ){
    width:100% !important;
    max-width:none !important;
    margin:0 0 10px !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  :is(
    .finance-filter-card,
    .finance-filter-grid,
    .finance-filter-shell,
    .finance-tools-shell
  ).sadaa-admin-list-shell,
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  :is(
    .finance-filter-card,
    .finance-filter-grid,
    .finance-filter-shell,
    .finance-tools-shell
  ).sadaa-admin-card{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* بطاقات البحث/الفلاتر نفسها تبقى كما هي ومفتوحة/مغلقة بشكل مستقل. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent
  :is(.directory-tab-soft,.finance-tab)
  details.sadaa-admin-tools-card{
    width:100% !important;
    max-width:none !important;
  }
}

/* =========================================================
   Admin Desktop / Laptop — Exact outer filter shell cleanup
   2026-09-30
   النطاق: 1101px فأعلى

   إدارة المتاجر:
   إزالة .directory-filters-panel الفعلية.

   تقرير الطلبات:
   إزالة الرأس الخارجي .finance-card-head
   وتحويل .finance-filter-card إلى غلاف بنيوي غير مرئي.
   ========================================================= */
@media (min-width:1101px){

  /* -------------------------------------------------------
     إدارة المتاجر — إزالة الحاوية الخارجية الفعلية
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .directory-tab-soft
  > .directory-filters-panel.sadaa-admin-list-shell{
    display:contents !important;
  }

  /* -------------------------------------------------------
     تقرير الطلبات — إزالة الرأس الخارجي الزائد
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  > .finance-filter-card
  > .finance-card-head{
    display:none !important;
  }

  /* الحاوية الخارجية تصبح بنيوية فقط؛ بطاقات details تبقى مستقلة. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  > .finance-filter-card{
    display:contents !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab
  > .finance-filter-card
  > .finance-filter-grid{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
}

/* =========================================================
   Responsive Disclosure — Public / Shared
   2026-10-01

   مكوّن مركزي عام لمناطق البحث والفلاتر في الصفحات العامة،
   بنفس لغة الفتح/الإغلاق المعتمدة في لوحات المدير والعضو.
   ========================================================= */
@media (max-width:1100px){

  html body details.sadaa-responsive-disclosure{
    position:relative !important;
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  html body details.sadaa-responsive-disclosure
  > summary.sadaa-responsive-disclosure__summary{
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    padding:8px 10px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    list-style:none !important;
    cursor:pointer !important;
    user-select:none !important;
    -webkit-tap-highlight-color:transparent !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:7px 7px 0 0 !important;
    background:var(--sadaa-surface-alt,var(--sadaa-tint-3)) !important;
    color:var(--sadaa-text-2,#374151) !important;
    box-shadow:none !important;
  }

  html body details.sadaa-responsive-disclosure
  > summary.sadaa-responsive-disclosure__summary::-webkit-details-marker{
    display:none !important;
  }

  html body details.sadaa-responsive-disclosure
  > summary.sadaa-responsive-disclosure__summary::marker{
    content:"" !important;
  }

  html body .sadaa-responsive-disclosure__title{
    min-width:0 !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    color:inherit !important;
    font-size:13.5px !important;
    font-weight:500 !important;
    line-height:1.7 !important;
  }

  html body .sadaa-responsive-disclosure__title > :is(i,svg){
    flex:0 0 auto !important;
    color:var(--sadaa-primary) !important;
  }

  html body .sadaa-responsive-disclosure__chevron{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    flex:0 0 28px !important;
    display:grid !important;
    place-items:center !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--sadaa-muted,#6b7280) !important;
    line-height:1 !important;
  }

  html body .sadaa-responsive-disclosure__chevron::before{
    content:"" !important;
    width:7px !important;
    height:7px !important;
    box-sizing:border-box !important;
    border-inline-end:1.5px solid currentColor !important;
    border-bottom:1.5px solid currentColor !important;
    transform-origin:center !important;
    transition:transform 160ms ease !important;
  }

  html body details.sadaa-responsive-disclosure:not([open])
  > summary .sadaa-responsive-disclosure__chevron::before{
    transform:rotate(45deg) !important;
  }

  html body details.sadaa-responsive-disclosure[open]
  > summary .sadaa-responsive-disclosure__chevron{
    color:var(--sadaa-primary) !important;
  }

  html body details.sadaa-responsive-disclosure[open]
  > summary .sadaa-responsive-disclosure__chevron::before{
    transform:rotate(-45deg) !important;
  }

  html body details.sadaa-responsive-disclosure:not([open])
  > .sadaa-responsive-disclosure__body{
    display:none !important;
  }

  html body details.sadaa-responsive-disclosure[open]
  > .sadaa-responsive-disclosure__body{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:12px !important;
    box-sizing:border-box !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body details.sadaa-responsive-disclosure:not([open])
  > summary.sadaa-responsive-disclosure__summary{
    border-bottom:0 !important;
    border-radius:7px !important;
  }
}

/* =========================================================
   Store Directory — Tablet / Mobile Search & Cards Separation
   2026-10-01
   النطاق: <=1100px
   ========================================================= */
@media (max-width:1100px){

  html body .stores-directory-shell .stores-directory-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .stores-directory-shell .stores-directory-layout::before{
    content:none !important;
    display:none !important;
  }

  html body .stores-directory-shell
  :is(.stores-directory-unified-head,.stores-directory-filter-disclosure,.stores-content-panel){
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  details.stores-directory-filter-disclosure.stores-sidebar{
    display:block !important;
    padding:0 !important;
    gap:0 !important;
    border-radius:8px !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  > .stores-directory-filter-body{
    padding:12px !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-section + .stores-filter-section{
    margin-top:12px !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-actions{
    margin-top:12px !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-side-visual{
    display:none !important;
  }

  html body .stores-directory-shell
  .store-content.stores-content-panel{
    display:block !important;
    padding:12px !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .stores-directory-shell
  .stores-content-panel #storeContainer{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .stores-directory-shell .stores-mobile-controls{
    display:none !important;
  }
}

/* سطح المكتب يبقى بنفس تخطيطه الحالي. */
@media (min-width:1101px){

  html body .stores-directory-shell
  details.stores-directory-filter-disclosure
  > summary.sadaa-responsive-disclosure__summary{
    display:none !important;
  }

  html body .stores-directory-shell
  details.stores-directory-filter-disclosure
  > .stores-directory-filter-body{
    display:contents !important;
  }
}

/* =========================================================
   Store Directory — Interaction Stability / Flash Guard
   2026-10-01
   جميع الشاشات

   إزالة وميض/Highlight النقر من عناصر دليل المتاجر مع
   الإبقاء على focus-visible الحقيقي لمستخدمي الكيبورد.
   ========================================================= */
html body:has(.stores-directory-shell)
:is(
  a,
  button,
  summary,
  label,
  input,
  select,
  textarea,
  [role="button"],
  [tabindex],
  .store-card,
  .like-btn,
  .visit-button,
  .stores-filter-submit,
  .stores-filter-reset,
  .stores-directory-nav-link,
  .back-to-top
){
  -webkit-tap-highlight-color:transparent !important;
}

html body:has(.stores-directory-shell)
:is(
  a,
  button,
  summary,
  [role="button"],
  .like-btn,
  .visit-button,
  .stores-filter-submit,
  .stores-filter-reset,
  .stores-directory-nav-link,
  .back-to-top
){
  touch-action:manipulation !important;
}

html body:has(.stores-directory-shell)
:is(
  a,
  button,
  summary,
  input,
  select,
  textarea,
  [role="button"],
  [tabindex],
  .like-btn,
  .visit-button,
  .stores-filter-submit,
  .stores-filter-reset,
  .stores-directory-nav-link,
  .back-to-top
):focus:not(:focus-visible){
  outline:none !important;
  box-shadow:none !important;
}

/* لا نلغي مؤشر الوصول عند التنقل بالكيبورد. */
html body:has(.stores-directory-shell)
:is(
  a,
  button,
  summary,
  input,
  select,
  textarea,
  [role="button"],
  [tabindex]
):focus-visible{
  outline:2px solid color-mix(
    in srgb,
    var(--sadaa-primary) 58%,
    transparent
  ) !important;
  outline-offset:2px !important;
}

/* على أجهزة اللمس لا يبقى Hover البطاقة عالقاً بعد النقر. */
@media (hover:none){
  html body .stores-directory-shell .store-card:hover{
    transform:none !important;
  }
}

/* =========================================================
   Store Directory — View Modes / Stable Card Actions v2
   2026-10-01

   - سطح المكتب: list-view مدمج وطبيعي، grid-view بطاقات.
   - التابلت 768–1100: تفعيل القائمة/الشبكة فعلياً.
   - تثبيت الأزرار أسفل البطاقة في grid-view فقط.
   - الجوال الصغير يبقى على تخطيطه الحالي.
   ========================================================= */
:root{
  --sadaa-store-card-description-lines:3;
}

/* ---------------------------------------------------------
   قواعد مشتركة آمنة
   --------------------------------------------------------- */
html body .stores-directory-shell
.stores-content-panel
.store-card{
  min-width:0 !important;
  box-sizing:border-box !important;
}

html body .stores-directory-shell
.stores-content-panel
.store-card .store-info{
  min-width:0 !important;
  box-sizing:border-box !important;
}

html body .stores-directory-shell
.stores-content-panel
.store-card .store-footer{
  min-width:0 !important;
  box-sizing:border-box !important;
}

/* =========================================================
   سطح المكتب — 1101px فأعلى
   ========================================================= */
@media (min-width:1101px){

  /* وضع القائمة: بطاقة أفقية مدمجة، بدون تمدد رأسي مصطنع. */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view{
    display:block !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  :is(.stores-featured-zone,.stores-group-grid){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .stores-featured-zone{
    margin-bottom:12px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card{
    display:grid !important;
    grid-template-columns:96px minmax(0,1fr) minmax(220px,260px) !important;
    align-items:center !important;
    gap:18px !important;

    width:100% !important;
    height:auto !important;
    min-height:132px !important;
    aspect-ratio:auto !important;
    margin:0 !important;
    padding:16px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-logo{
    width:82px !important;
    height:82px !important;
    min-width:82px !important;
    flex:none !important;
    margin:0 auto !important;
    padding:8px !important;
    transform:none !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    flex:none !important;
    overflow:visible !important;
    text-align:right !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info h2{
    justify-content:flex-start !important;
    text-align:right !important;
    margin:0 0 5px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info p{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    width:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    overflow:hidden !important;
    text-align:right !important;
    line-height:1.75 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-footer{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
    align-self:center !important;
  }

  /* وضع الشبكة فقط: الأزرار مثبتة أسفل البطاقة. */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    height:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card .store-info{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card .store-info p{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:3 !important;
    overflow:hidden !important;
    min-height:5.1em !important;
    max-height:5.1em !important;
    line-height:1.7 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card .store-footer{
    align-self:stretch !important;
    width:100% !important;
    margin-top:auto !important;
  }
}

/* =========================================================
   التابلت — 768px إلى 1100px
   ========================================================= */
@media (min-width:768px) and (max-width:1100px){

  /* إظهار زر التبديل الذي كانت القواعد المحلية تخفيه. */
  html body .stores-directory-shell
  .stores-directory-unified-head
  .view-toggle{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  /* -------------------------------------------------------
     البحث والفلاتر: حقل البحث + الترتيب + الزرين في صف واحد
     ------------------------------------------------------- */
  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    display:grid !important;
    grid-template-columns:
      minmax(220px,1.7fr)
      minmax(150px,.95fr)
      minmax(122px,.72fr)
      minmax(122px,.72fr)
      !important;
    align-items:end !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.stores-filter-section-search,.stores-filter-section-sort){
    min-width:0 !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-section + .stores-filter-section{
    margin-top:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card
  :is(.sadaa-input,.sadaa-select-shell,.sadaa-select){
    width:100% !important;
    min-width:0 !important;
  }

  /* نجعل الزرين عنصرين مستقلين في نفس Grid. */
  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-actions{
    display:contents !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.stores-filter-submit,.stores-filter-reset){
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding-inline:9px !important;
    white-space:nowrap !important;
  }

  /* -------------------------------------------------------
     وضع القائمة — بطاقة أفقية مدمجة
     ------------------------------------------------------- */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view{
    display:block !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  :is(.stores-featured-zone,.stores-group-grid){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .stores-featured-zone{
    margin-bottom:10px !important;
    padding:10px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card{
    display:grid !important;
    grid-template-columns:88px minmax(0,1fr) minmax(200px,240px) !important;
    align-items:center !important;
    gap:14px !important;

    width:100% !important;
    height:auto !important;
    min-height:122px !important;
    aspect-ratio:auto !important;
    margin:0 !important;
    padding:14px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-logo{
    width:78px !important;
    height:78px !important;
    min-width:78px !important;
    flex:none !important;
    margin:0 auto !important;
    padding:7px !important;
    transform:none !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    flex:none !important;
    overflow:visible !important;
    text-align:right !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info h2{
    justify-content:flex-start !important;
    text-align:right !important;
    margin:0 0 4px !important;
    font-size:14.5px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info p{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    overflow:hidden !important;

    width:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;

    font-size:12px !important;
    line-height:1.7 !important;
    text-align:right !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-footer{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:7px !important;
    width:100% !important;
    margin:0 !important;
    align-self:center !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  :is(.like-btn,.visit-button){
    min-height:40px !important;
    height:40px !important;
    font-size:12px !important;
  }

  /* -------------------------------------------------------
     وضع الشبكة — 2 أعمدة عند 768/900، و3 عند 901/1100
     ------------------------------------------------------- */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view{
    display:block !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.stores-featured-zone,.stores-group-grid){
    display:grid !important;
    gap:12px !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .stores-featured-zone{
    margin-bottom:12px !important;
    padding:10px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:1 / 1 !important;
    margin:0 !important;
    padding:14px 12px 12px !important;
    gap:8px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-logo{
    width:76px !important;
    height:76px !important;
    min-width:76px !important;
    flex:0 0 76px !important;
    margin:0 auto !important;
    padding:7px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    width:100% !important;
    min-width:0 !important;
    text-align:center !important;
    overflow:hidden !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info h2{
    justify-content:center !important;
    margin:0 0 4px !important;
    font-size:14px !important;
    text-align:center !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info p{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    overflow:hidden !important;

    width:100% !important;
    min-height:3.4em !important;
    max-height:3.4em !important;
    margin:0 !important;

    font-size:11.75px !important;
    line-height:1.7 !important;
    text-align:center !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-footer{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:6px !important;

    flex:0 0 auto !important;
    align-self:stretch !important;
    width:100% !important;
    margin-top:auto !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.like-btn,.visit-button){
    min-height:38px !important;
    height:38px !important;
    padding-inline:7px !important;
    font-size:11.75px !important;
  }
}

/* 768–900: شبكتان */
@media (min-width:768px) and (max-width:900px){
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.stores-featured-grid,.stores-regular-grid){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* 901–1100: ثلاث شبكات لتقليل ضخامة البطاقات في 1024 */
@media (min-width:901px) and (max-width:1100px){
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.stores-featured-grid,.stores-regular-grid){
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* الجوال الأصغر من 768 يبقى على التصميم المتجاوب الموجود. */
@media (max-width:767px){
  html body .stores-directory-shell
  .stores-directory-unified-head
  .view-toggle{
    display:none !important;
  }
}

/* =========================================================
   Store Directory — Final Responsive Layout Round
   2026-10-01

   768px / 1024px / Laptop & Desktop
   ========================================================= */

/* ---------------------------------------------------------
   هوية تفاعل بطاقات المتاجر
   العادي = رمادي متوسط
   المميز = بنفسجي
   --------------------------------------------------------- */
html body .stores-directory-shell
.stores-content-panel .store-card{
  border-color:var(--sadaa-line,#e5e7eb) !important;
}

html body .stores-directory-shell
.stores-content-panel .store-card:not(.featured):hover,
html body .stores-directory-shell
.stores-content-panel .store-card:not(.featured):focus-within,
html body .stores-directory-shell
.stores-content-panel .store-card:not(.featured):active{
  border-color:var(--sadaa-line-3) !important;
  box-shadow:0 8px 20px rgba(var(--sadaa-shadow-rgb),.065) !important;
}

html body .stores-directory-shell
.stores-content-panel .store-card.featured:hover,
html body .stores-directory-shell
.stores-content-panel .store-card.featured:focus-within,
html body .stores-directory-shell
.stores-content-panel .store-card.featured:active{
  border-color:var(--sadaa-primary) !important;
}

/* ---------------------------------------------------------
   أزرار طريقة العرض — بدون حاوية خلفية
   --------------------------------------------------------- */
@media (min-width:768px){
  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle button{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;

    display:grid !important;
    place-items:center !important;

    border:1px solid rgba(255,255,255,.26) !important;
    border-radius:7px !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    box-shadow:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle button.active{
    border-color:#fff !important;
    background:#fff !important;
    color:var(--sadaa-primary) !important;
  }
}

/* =========================================================
   1024px — 901..1100
   ========================================================= */
@media (min-width:901px) and (max-width:1100px){

  /* الهيرو:
     النص يمين — النتائج والعرض يسار — الروابط تحت أدوات العرض. */
  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:22px !important;
    row-gap:9px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-tools{
    grid-column:2 !important;
    grid-row:1 !important;

    width:auto !important;
    min-width:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav{
    grid-column:2 !important;
    grid-row:2 !important;

    width:auto !important;
    min-width:0 !important;
    margin:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav .stores-directory-nav-link,
  html body .stores-directory-shell
  .stores-results-count{
    min-height:40px !important;
    height:40px !important;
    box-sizing:border-box !important;
  }

  /* البحث / الترتيب / النوع / الزرين في صف واحد. */
  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    display:grid !important;
    grid-template-columns:
      minmax(250px,1.8fr)
      minmax(150px,1fr)
      minmax(150px,1fr)
      minmax(112px,.72fr)
      minmax(112px,.72fr)
      !important;
    align-items:end !important;
    gap:10px !important;

    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(
    .stores-filter-section-search,
    .stores-filter-section-sort,
    .stores-filter-section-type
  ){
    min-width:0 !important;
    margin:0 !important;
    grid-column:auto !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-section + .stores-filter-section{
    margin-top:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-actions{
    display:contents !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.stores-filter-submit,.stores-filter-reset){
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding-inline:8px !important;
    white-space:nowrap !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.sadaa-input,.sadaa-select-shell,.sadaa-select){
    width:100% !important;
    min-width:0 !important;
  }

  /* Grid 1024: 3 بطاقات، لكن بمحتوى أكبر ومريح. */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.stores-featured-grid,.stores-regular-grid){
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-card{
    aspect-ratio:auto !important;
    min-height:292px !important;
    padding:17px 14px 14px !important;
    gap:10px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-logo{
    width:98px !important;
    height:98px !important;
    min-width:98px !important;
    flex:0 0 98px !important;
    padding:9px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-info h2{
    font-size:16px !important;
    line-height:1.55 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-info p{
    font-size:12.75px !important;
    line-height:1.75 !important;
    min-height:3.5em !important;
    max-height:3.5em !important;
  }
}

/* =========================================================
   768px — 768..900
   ========================================================= */
@media (min-width:768px) and (max-width:900px){

  /* الهيرو:
     العنوان في الأعلى، ثم روابط التنقل + النتائج + العرض في صف واحد. */
  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:8px !important;
    row-gap:10px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 / -1 !important;
    grid-row:1 !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav{
    grid-column:1 !important;
    grid-row:2 !important;

    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:8px !important;

    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-tools{
    grid-column:2 !important;
    grid-row:2 !important;

    display:flex !important;
    align-items:center !important;
    gap:7px !important;

    width:auto !important;
    min-width:0 !important;
  }

  /* جميع عناصر الهيرو السفلية بنفس الارتفاع. */
  html body .stores-directory-shell
  :is(
    .stores-directory-head-nav .stores-directory-nav-link,
    .stores-results-count
  ){
    min-height:42px !important;
    height:42px !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle button{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
  }

  /* البحث / الترتيب / النوع / الزرين في صف واحد بدون انكسار. */
  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    display:grid !important;
    grid-template-columns:
      minmax(180px,1.5fr)
      minmax(112px,.9fr)
      minmax(112px,.9fr)
      minmax(102px,.72fr)
      minmax(102px,.72fr)
      !important;
    align-items:end !important;
    gap:8px !important;

    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(
    .stores-filter-section-search,
    .stores-filter-section-sort,
    .stores-filter-section-type
  ){
    min-width:0 !important;
    margin:0 !important;
    grid-column:auto !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-section + .stores-filter-section{
    margin-top:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card .sadaa-label{
    white-space:nowrap !important;
    font-size:12px !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-actions{
    display:contents !important;
    margin:0 !important;
    padding:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.stores-filter-submit,.stores-filter-reset){
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    min-height:44px !important;
    margin:0 !important;
    padding-inline:7px !important;
    font-size:12px !important;
    white-space:nowrap !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(.sadaa-input,.sadaa-select-shell,.sadaa-select){
    width:100% !important;
    min-width:0 !important;
  }

  /* Grid 768: بطاقتان أكبر ومحتوى أكثر وضوحاً. */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  :is(.stores-featured-grid,.stores-regular-grid){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-card{
    aspect-ratio:auto !important;
    min-height:312px !important;
    padding:18px 15px 15px !important;
    gap:11px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-logo{
    width:108px !important;
    height:108px !important;
    min-width:108px !important;
    flex:0 0 108px !important;
    padding:10px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-info h2{
    font-size:17px !important;
    line-height:1.55 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view .store-info p{
    font-size:13.25px !important;
    line-height:1.75 !important;
    min-height:3.5em !important;
    max-height:3.5em !important;
  }
}

/* =========================================================
   Laptop 1440 + Desktop — 1101px فأعلى
   ========================================================= */
@media (min-width:1101px){

  /* الهيرو:
     النتائج + العرض في الجهة المقابلة،
     وروابط الهيرو تحتها مباشرة. */
  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:28px !important;
    row-gap:9px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-tools{
    grid-column:2 !important;
    grid-row:1 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;

    width:auto !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav{
    grid-column:2 !important;
    grid-row:2 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;

    width:auto !important;
    margin:0 !important;
  }

  /* محاذاة اسم المتجر في Grid. */
  html body .stores-directory-shell
  .store-list.grid-view .store-info h2,
  html body .stores-directory-shell
  .store-list.grid-view .store-title-text{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
  }

  /* إزالة الحاوية العامة خلف كل البطاقات. */
  html body .stores-directory-shell
  .store-content.stores-content-panel{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  /* المتجر المميز فقط داخل حاوية مستقلة. */
  html body .stores-directory-shell
  .store-list .stores-featured-zone{
    display:block !important;
    width:100% !important;
    margin:0 0 14px !important;
    padding:12px !important;

    border:1px solid rgba(var(--sadaa-primary-rgb),.20) !important;
    border-radius:10px !important;
    background:rgba(var(--sadaa-primary-rgb),.028) !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.75) !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .store-list.list-view .stores-featured-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }

  html body .stores-directory-shell
  .store-list.grid-view .stores-featured-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:14px !important;
  }

  /* المتاجر العادية بدون أي حاوية خلفية. */
  html body .stores-directory-shell
  .store-list .stores-regular-grid{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .stores-directory-shell
  .store-list.list-view .stores-regular-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }

  html body .stores-directory-shell
  .store-list.grid-view .stores-regular-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:14px !important;
  }
}

/* الجوال يبقى على تخطيطه الحالي بدون تغيير. */
@media (max-width:767px){
  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle{
    display:none !important;
  }
}

/* =========================================================
   Store Directory — Final Detail Repairs
   2026-10-01
   - 768 hero stacking
   - tablet label cleanup
   - featured badge/logo clearance
   - desktop grid structure repair
   ========================================================= */

/* =========================================================
   Tablet 768–1100 — remove field labels
   ========================================================= */
@media (min-width:768px) and (max-width:1100px){

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card
  > .stores-filter-section
  > .sadaa-label{
    display:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    align-items:center !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(
    .stores-filter-section-search,
    .stores-filter-section-sort,
    .stores-filter-section-type
  ){
    align-self:center !important;
  }

  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  :is(
    .sadaa-input,
    .sadaa-select-shell,
    .sadaa-select,
    .stores-filter-submit,
    .stores-filter-reset
  ){
    height:44px !important;
    min-height:44px !important;
    box-sizing:border-box !important;
  }
}

/* =========================================================
   768px — results/view row, nav directly below
   ========================================================= */
@media (min-width:768px) and (max-width:900px){

  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    row-gap:8px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-tools{
    grid-column:1 !important;
    grid-row:2 !important;
    justify-self:end !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;

    width:max-content !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav{
    grid-column:1 !important;
    grid-row:3 !important;
    justify-self:end !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;

    width:max-content !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  :is(
    .stores-results-count,
    .stores-directory-head-nav .stores-directory-nav-link
  ){
    height:42px !important;
    min-height:42px !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head
  .view-toggle button{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
  }

}

/* =========================================================
   Desktop / Laptop — fix distorted Grid cards
   ========================================================= */
@media (min-width:1101px){

  /*
   * The two group wrappers must NOT be two columns of store-list.
   * Each group occupies the full available width first.
   */
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  > :is(.stores-featured-zone,.stores-regular-grid){
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .stores-featured-grid,
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .stores-regular-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:14px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-card{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;

    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:305px !important;
    aspect-ratio:auto !important;

    padding:18px 16px 15px !important;
    gap:10px !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-logo{
    width:94px !important;
    height:94px !important;
    min-width:94px !important;
    flex:0 0 94px !important;
    margin:0 auto !important;
    padding:8px !important;
    transform:none !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;

    width:100% !important;
    min-width:0 !important;
    text-align:center !important;
    overflow:hidden !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info h2,
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-title-text{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
    font-size:16px !important;
    line-height:1.55 !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-info p{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:3 !important;

    width:100% !important;
    min-height:5.1em !important;
    max-height:5.1em !important;
    margin:0 !important;
    overflow:hidden !important;

    font-size:12.75px !important;
    line-height:1.7 !important;
    text-align:center !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.grid-view
  .store-footer{
    flex:0 0 auto !important;
    align-self:stretch !important;

    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:8px !important;

    width:100% !important;
    margin-top:auto !important;
  }
}

/* =========================================================
   Store Directory — Hero Stack + Unified Filter Typography
   2026-10-01
   ========================================================= */
:root{
  --sadaa-store-filter-control-font-size:12px;
  --sadaa-store-hero-control-width:150px;
}

/* توحيد نصوص الحقول والقوائم والأزرار في جميع الشاشات. */
html body .stores-directory-shell
.stores-directory-filter-disclosure
:is(.sadaa-input,.sadaa-select,.stores-filter-submit,.stores-filter-reset){
  font-size:var(--sadaa-store-filter-control-font-size) !important;
  line-height:1.35 !important;
}

html body .stores-directory-shell
.stores-directory-filter-disclosure
.sadaa-input::placeholder{
  font-size:var(--sadaa-store-filter-control-font-size) !important;
}

html body .stores-directory-shell
.stores-directory-filter-disclosure
.sadaa-select option{
  font-size:var(--sadaa-store-filter-control-font-size) !important;
}

/* مطابقة محور الشعار المميز بالشعار العادي في وضع القائمة؛
   فرق 2px سببه حاوية التمييز المحيطة بالبطاقة، وليس حجم الشعار. */
@media (min-width:768px){
  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card.featured
  .store-logo{
    transform:translateX(-2px) !important;
  }
}

/* =========================================================
   1440 + Desktop
   الرئيسية > استكشف > عدد النتائج > القائمة/الشبكة
   ========================================================= */
@media (min-width:1101px){
  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) var(--sadaa-store-hero-control-width) !important;
    grid-template-rows:auto auto !important;
    column-gap:28px !important;
    row-gap:7px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    min-width:0 !important;
    width:100% !important;
  }

  html body .stores-directory-shell .stores-directory-head-nav{
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:7px !important;
    width:var(--sadaa-store-hero-control-width) !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav .stores-directory-nav-link{
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell .stores-directory-head-tools{
    grid-column:2 !important;
    grid-row:2 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:7px !important;
    width:var(--sadaa-store-hero-control-width) !important;
    margin:0 !important;
  }

  html body .stores-directory-shell .stores-results-count{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle button{
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    min-height:40px !important;
  }
}

/* =========================================================
   768 + 1024 Tablet
   الرئيسية > استكشف > القائمة/الشبكة
   بدون عدد النتائج
   ========================================================= */
@media (min-width:768px) and (max-width:1100px){
  html body .stores-directory-shell .stores-results-count{
    display:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) var(--sadaa-store-hero-control-width) !important;
    grid-template-rows:auto auto !important;
    column-gap:18px !important;
    row-gap:7px !important;
    align-items:start !important;
  }

  html body .stores-directory-shell .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell .stores-directory-head-nav{
    grid-column:2 !important;
    grid-row:1 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:7px !important;
    width:var(--sadaa-store-hero-control-width) !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav .stores-directory-nav-link{
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    min-height:40px !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell .stores-directory-head-tools{
    grid-column:2 !important;
    grid-row:2 !important;
    display:block !important;
    width:var(--sadaa-store-hero-control-width) !important;
    margin:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head .view-toggle button{
    width:100% !important;
    min-width:0 !important;
    height:40px !important;
    min-height:40px !important;
  }
}

/* 768: توسيع حقل نوع المتجر مع الحفاظ على صف واحد. */
@media (min-width:768px) and (max-width:900px){
  html body .stores-directory-shell
  .stores-directory-filter-disclosure .stores-filter-card{
    grid-template-columns:
      minmax(170px,1.35fr)
      minmax(108px,.82fr)
      minmax(145px,1.08fr)
      minmax(96px,.70fr)
      minmax(96px,.70fr)
      !important;
    gap:8px !important;
  }
}

/* =========================================================
   Mobile 320–425
   لا نتائج، الرئيسية + استكشف بجانب بعض
   ========================================================= */
@media (min-width:320px) and (max-width:425px){
  html body .stores-directory-shell .stores-results-count{
    display:none !important;
  }

  html body .stores-directory-shell .stores-directory-head-tools{
    display:none !important;
  }

  html body .stores-directory-shell .stores-directory-unified-head{
    display:block !important;
  }

  html body .stores-directory-shell .stores-directory-head-nav{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:7px !important;
    width:100% !important;
    max-width:none !important;
    margin:12px 0 0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-nav .stores-directory-nav-link{
    width:100% !important;
    min-width:0 !important;
    height:42px !important;
    min-height:42px !important;
    margin:0 !important;
    padding-inline:7px !important;
    box-sizing:border-box !important;
    white-space:nowrap !important;
  }
}

/* =========================================================
   Store Directory — Hero Actions Rebuild + List Alignment
   2026-10-02

   Wrapper واحد يمنع تشوه توزيع أدوات الهيرو بين المقاسات.
   ========================================================= */
:root{
  --stores-hero-control-h:40px;
  --stores-hero-action-w:138px;
  --stores-filter-text-size:12px;
}

/* ---------------------------------------------------------
   Shared filter typography
   --------------------------------------------------------- */
html body .stores-directory-shell
.stores-directory-filter-disclosure
:is(
  .sadaa-input,
  .sadaa-select,
  .stores-filter-submit,
  .stores-filter-reset
){
  font-size:var(--stores-filter-text-size) !important;
  line-height:1.35 !important;
}

html body .stores-directory-shell
.stores-directory-filter-disclosure
.sadaa-input::placeholder{
  font-size:var(--stores-filter-text-size) !important;
}

/* ---------------------------------------------------------
   Shared hero actions
   --------------------------------------------------------- */
html body .stores-directory-shell
.stores-directory-hero-actions{
  position:relative !important;
  z-index:2 !important;
  box-sizing:border-box !important;
}

html body .stores-directory-shell
.stores-directory-hero-actions
:is(.stores-directory-nav-link,.stores-results-count){
  height:var(--stores-hero-control-h) !important;
  min-height:var(--stores-hero-control-h) !important;
  box-sizing:border-box !important;
  margin:0 !important;
}

html body .stores-directory-shell
.stores-directory-hero-actions
.view-toggle{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body .stores-directory-shell
.stores-directory-hero-actions
.view-toggle button{
  height:var(--stores-hero-control-h) !important;
  min-height:var(--stores-hero-control-h) !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* =========================================================
   1440 + Desktop
   الرئيسية | النتائج
   استكشف   | القائمة/الشبكة
   ========================================================= */
@media (min-width:1101px){

  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:28px !important;
    min-height:170px !important;
    padding:24px 30px !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-hero-actions{
    grid-column:2 !important;
    grid-row:1 !important;

    display:grid !important;
    grid-template-columns:var(--stores-hero-action-w) var(--stores-hero-action-w) !important;
    grid-template-rows:var(--stores-hero-control-h) var(--stores-hero-control-h) !important;
    gap:7px !important;

    width:auto !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell .stores-hero-home{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  html body .stores-directory-shell .stores-hero-results{
    grid-column:2 !important;
    grid-row:1 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    padding-inline:8px !important;
    white-space:nowrap !important;
  }

  html body .stores-directory-shell .stores-hero-explore{
    grid-column:1 !important;
    grid-row:2 !important;
  }

  html body .stores-directory-shell .stores-hero-view-toggle{
    grid-column:2 !important;
    grid-row:2 !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-hero-view-toggle button{
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   Tablet 768–1100
   الرئيسية
   استكشف
   القائمة / الشبكة
   ========================================================= */
@media (min-width:768px) and (max-width:1100px){

  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) var(--stores-hero-action-w) !important;
    align-items:center !important;
    gap:18px !important;

    min-height:178px !important;
    padding:20px 22px !important;
  }

  html body .stores-directory-shell
  .stores-directory-head-text{
    grid-column:1 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  html body .stores-directory-shell
  .stores-directory-hero-actions{
    grid-column:2 !important;
    grid-row:1 !important;

    display:grid !important;
    grid-template-columns:var(--stores-hero-action-w) !important;
    grid-template-rows:
      var(--stores-hero-control-h)
      var(--stores-hero-control-h)
      var(--stores-hero-control-h)
      !important;
    gap:7px !important;

    width:var(--stores-hero-action-w) !important;
    min-width:0 !important;
    align-self:center !important;
  }

  html body .stores-directory-shell .stores-hero-home{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  html body .stores-directory-shell .stores-hero-explore{
    grid-column:1 !important;
    grid-row:2 !important;
  }

  html body .stores-directory-shell .stores-hero-results{
    display:none !important;
  }

  html body .stores-directory-shell .stores-hero-view-toggle{
    grid-column:1 !important;
    grid-row:3 !important;

    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px !important;
    width:100% !important;
  }

  html body .stores-directory-shell
  .stores-hero-view-toggle button{
    width:100% !important;
    min-width:0 !important;
  }
}

/* =========================================================
   768 refinement
   ========================================================= */
@media (min-width:768px) and (max-width:900px){

  :root{
    --stores-hero-action-w:126px;
  }

  html body .stores-directory-shell
  .stores-directory-unified-head{
    gap:14px !important;
    padding:18px !important;
  }

  /* نوع المتجر يأخذ مساحة أكبر داخل صف الفلاتر. */
  html body .stores-directory-shell
  .stores-directory-filter-disclosure
  .stores-filter-card{
    grid-template-columns:
      minmax(165px,1.28fr)
      minmax(105px,.80fr)
      minmax(148px,1.05fr)
      minmax(94px,.68fr)
      minmax(94px,.68fr)
      !important;
  }
}

/* =========================================================
   Mobile 320–425
   الرئيسية + استكشف بجانب بعض
   ========================================================= */
@media (min-width:320px) and (max-width:425px){

  html body .stores-directory-shell
  .stores-directory-unified-head{
    display:block !important;
    min-height:0 !important;
    padding:18px 12px !important;
  }

  html body .stores-directory-shell
  .stores-directory-hero-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:7px !important;

    width:100% !important;
    margin-top:12px !important;
  }

  html body .stores-directory-shell
  .stores-hero-home{
    grid-column:1 !important;
    grid-row:1 !important;
  }

  html body .stores-directory-shell
  .stores-hero-explore{
    grid-column:2 !important;
    grid-row:1 !important;
  }

  html body .stores-directory-shell
  :is(.stores-hero-results,.stores-hero-view-toggle){
    display:none !important;
  }

  html body .stores-directory-shell
  .stores-directory-hero-actions
  .stores-directory-nav-link{
    width:100% !important;
    min-width:0 !important;
    padding-inline:7px !important;
    white-space:nowrap !important;
  }
}

/* =========================================================
   List cards — unified logo / title / description alignment
   768px فأعلى

   نفس الإزاحة للمميز والعادي، مع فراغ آمن عن شارة التميز.
   ========================================================= */
@media (min-width:768px){

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card{
    column-gap:22px !important;
    padding-inline-start:34px !important;
    box-sizing:border-box !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-logo{
    margin-inline:0 !important;
    transform:none !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-info{
    padding-inline-start:4px !important;
    transform:none !important;
  }
}

/* 1024: تخطيط متوازن للمميز والعادي. */
@media (min-width:901px) and (max-width:1100px){

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card{
    grid-template-columns:92px minmax(0,1fr) minmax(190px,220px) !important;
    min-height:128px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-logo{
    width:82px !important;
    height:82px !important;
    min-width:82px !important;
  }
}

/* Desktop: regular + featured share the same visual axis. */
@media (min-width:1101px){

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-card{
    grid-template-columns:96px minmax(0,1fr) minmax(220px,250px) !important;
    min-height:132px !important;
    padding-inline-start:38px !important;
  }

  html body .stores-directory-shell
  .stores-content-panel
  .store-list.list-view
  .store-logo{
    width:84px !important;
    height:84px !important;
    min-width:84px !important;
  }
}


/* =========================================================
   Sadaa Brand System 2026 — Unified identity pass
   صدى المتاجر — طبقة الصقل الشامل

   الهدف:
   - لغة بصرية واحدة للواجهة العامة ولوحتي العضو والمدير.
   - الاعتماد على Tokens الحالية بدل إضافة ملف CSS مركزي جديد.
   - لا تغيّر منطق الصفحات أو بنية البيانات.
   ========================================================= */

html{
  accent-color:var(--sadaa-primary);
  -webkit-text-size-adjust:100%;
}

body{
  color:var(--sadaa-text,#252B47);
  background:var(--sadaa-page-bg,var(--sadaa-tint-3));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

::selection{
  color:#fff;
  background:rgba(var(--sadaa-primary-rgb),.78);
}

:where(a,button,input,select,textarea,summary,[role="button"],[tabindex]){
  -webkit-tap-highlight-color:transparent;
}

:where(a,button,input,select,textarea,summary,[role="button"]):focus-visible{
  outline:3px solid var(--sadaa-focus,rgba(var(--sadaa-primary-rgb),.18));
  outline-offset:2px;
}

/* ---------- Header / global navigation ---------- */
html body .main-header{
  background:var(--sadaa-header-bg,var(--sadaa-brand-gradient)) !important;
  border-bottom:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 1px 0 rgba(var(--sadaa-shadow-rgb),.05),0 8px 28px rgba(var(--sadaa-shadow-rgb),.08) !important;
}

.main-header .header-inner{
  width:min(var(--sadaa-container-max,1450px),calc(100% - 32px)) !important;
  margin-inline:auto !important;
  padding-inline:4px !important;
  gap:12px !important;
}

.main-header .logo-link{
  border-radius:var(--sadaa-radius-md,10px);
}

.main-header .btn-account,
.main-header .site-share-button,
.main-header .btn-store-directory,
.main-header .btn-add-ad{
  min-height:44px !important;
  border-radius:var(--sadaa-radius-md,10px) !important;
  font-weight:600 !important;
  box-shadow:none !important;
  transition:background-color var(--sadaa-transition-base),border-color var(--sadaa-transition-base),color var(--sadaa-transition-base),transform var(--sadaa-transition-base),box-shadow var(--sadaa-transition-base) !important;
}

.main-header .btn-account,
.main-header .site-share-button{
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.34) !important;
  color:#fff !important;
}

.main-header .btn-account:hover,
.main-header .btn-account:focus-visible,
.main-header .site-share-button:hover,
.main-header .site-share-button:focus-visible{
  background:rgba(255,255,255,.16) !important;
  border-color:rgba(255,255,255,.55) !important;
}

/* Same primary button treatment for guest directory / home navigation. */
.main-header .btn-store-directory{
  background:#fff !important;
  border:1px solid rgba(255,255,255,.92) !important;
  color:var(--sadaa-primary-dark) !important;
}

.main-header .btn-store-directory:hover,
.main-header .btn-store-directory:focus-visible{
  background:#fff !important;
  border-color:#fff !important;
  color:var(--sadaa-primary) !important;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(var(--sadaa-shadow-rgb),.16) !important;
}

/* Keep the guest navigation aligned with the 48px desktop member action. */
@media (min-width:1101px){
  .main-header .btn-store-directory{
    height:48px;
  }
}

.main-header .btn-add-ad{
  background:#fff !important;
  border:1px solid rgba(255,255,255,.92) !important;
  color:var(--sadaa-primary-dark) !important;
  padding-inline:18px !important;
}

.main-header .btn-add-ad:hover,
.main-header .btn-add-ad:focus-visible{
  background:#fff !important;
  border-color:#fff !important;
  color:var(--sadaa-primary) !important;
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(var(--sadaa-shadow-rgb),.16) !important;
}

.main-header .dropdown-menu,
.main-header .site-share-menu{
  border:1px solid var(--sadaa-line,#E5E7F0) !important;
  border-radius:var(--sadaa-radius-card,16px) !important;
  background:rgba(255,255,255,.985) !important;
  box-shadow:var(--sadaa-shadow-lg) !important;
  overflow:hidden;
}

.main-header .dropdown-item,
.main-header .site-share-item{
  min-height:44px;
  border-radius:var(--sadaa-radius-md,10px) !important;
  margin:2px 6px;
  transition:background-color var(--sadaa-transition-fast),color var(--sadaa-transition-fast) !important;
}

/* ---------- Buttons ---------- */
.sadaa-btn{
  border-radius:var(--sadaa-radius-button,10px);
  font-weight:600;
  letter-spacing:0;
}

.sadaa-btn--primary,
.sadaa-btn.sadaa-btn--admin-primary{
  box-shadow:0 5px 14px rgba(var(--sadaa-primary-rgb),.16) !important;
}

.sadaa-btn--primary:hover:not(:disabled),
.sadaa-btn.sadaa-btn--admin-primary:hover:not(:disabled):not([aria-disabled="true"]){
  box-shadow:0 8px 20px rgba(var(--sadaa-primary-rgb),.20) !important;
  transform:translateY(-1px);
}

/* ---------- Forms ---------- */
.sadaa-input,
.sadaa-select,
.sadaa-textarea,
.sadaa-date-control__input,
:where(.auth-input,.form-control):not([type="checkbox"]):not([type="radio"]){
  border-radius:var(--sadaa-radius-field,10px) !important;
}

.sadaa-input,
.sadaa-select,
.sadaa-textarea,
.sadaa-date-control,
.auth-input{
  border-color:var(--sadaa-line,#E5E7F0) !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:inset 0 1px 0 rgba(var(--sadaa-shadow-rgb),.015);
}

.sadaa-input:hover,
.sadaa-select:hover,
.sadaa-textarea:hover,
.auth-input:hover{
  border-color:var(--sadaa-line-3,#BAC2DF) !important;
}

.sadaa-input:focus,
.sadaa-select:focus,
.sadaa-textarea:focus,
.auth-input:focus{
  border-color:var(--sadaa-primary) !important;
  box-shadow:var(--sadaa-shadow-focus) !important;
}

/* ---------- Shared disclosures / filters ---------- */
.sadaa-responsive-disclosure,
.sadaa-filter-panel,
.sadaa-search-panel{
  border:1px solid var(--sadaa-line,#E5E7F0) !important;
  border-radius:var(--sadaa-radius-card,16px) !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:var(--sadaa-shadow-xs) !important;
  overflow:hidden;
}

.sadaa-responsive-disclosure__summary{
  min-height:52px;
  background:var(--sadaa-tint-3,var(--sadaa-tint-3)) !important;
  border-bottom-color:var(--sadaa-line,#E5E7F0) !important;
}

.sadaa-responsive-disclosure__chevron{
  border-radius:var(--sadaa-radius-md,10px) !important;
  border-color:var(--sadaa-line-2,#D6DAEA) !important;
  background:#fff !important;
  color:var(--sadaa-primary) !important;
}

/* ---------- Admin + member workspace shell ---------- */
.dashboard-wrapper,
.dashboard-wrapper.member-dashboard-wrapper,
.member-dashboard-wrapper{
  gap:22px !important;
  color:var(--sadaa-admin-text,var(--sadaa-text,#252B47));
}

.dashboard-wrapper .sidebar,
.member-dashboard-wrapper .sadaa-member-side-nav{
  background:var(--sadaa-surface,#fff) !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:var(--sadaa-radius-panel,20px) !important;
  box-shadow:var(--sadaa-shadow-sm) !important;
  overflow:hidden;
}

.dashboard-sidebar-head,
.member-sidebar-head{
  background:var(--sadaa-admin-sidebar-head-bg,var(--sadaa-primary)) !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

.dashboard-sidebar-nav,
.member-sidebar-nav{
  padding:10px !important;
}

.sadaa-nav-stack{
  gap:4px !important;
}

.sadaa-nav-item,
.dashboard-sidebar-nav button,
.member-sidebar-nav button{
  min-height:44px;
  border-radius:var(--sadaa-radius-md,10px) !important;
  border-color:transparent !important;
  color:var(--sadaa-admin-text,var(--sadaa-text-2,var(--sadaa-text))) !important;
  background:transparent !important;
  transition:background-color var(--sadaa-transition-fast),color var(--sadaa-transition-fast),transform var(--sadaa-transition-fast) !important;
}

.sadaa-nav-item:hover,
.dashboard-sidebar-nav button:hover,
.member-sidebar-nav button:hover{
  background:var(--sadaa-admin-soft,var(--sadaa-tint,var(--sadaa-tint-2))) !important;
  color:var(--sadaa-admin-dark,var(--sadaa-primary-dark)) !important;
}

.sadaa-nav-item.active,
.dashboard-sidebar-nav button.active,
.member-sidebar-nav button.active{
  color:var(--sadaa-admin-dark,var(--sadaa-primary-dark)) !important;
  background:rgba(var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb)),.105) !important;
  box-shadow:inset -3px 0 0 var(--sadaa-admin-primary,var(--sadaa-primary));
}

.dashboard-wrapper .content-area,
.member-dashboard-wrapper .content-area{
  min-width:0;
}

/* ---------- Full-width dashboard app shell (desktop) ---------- */
@media (min-width:1101px){
  html body .dashboard-wrapper:not(.member-dashboard-wrapper){
    width:100% !important;
    max-width:none !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px));
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    align-items:stretch !important;
    background:var(--sadaa-page-bg,var(--sadaa-tint-3));
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) > .sidebar{
    width:272px !important;
    flex:0 0 272px !important;
    position:relative !important;
    align-self:stretch !important;
    top:auto !important;
    height:auto !important;
    max-height:none !important;
    min-height:100% !important;
    padding:0 12px 24px !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
    border:0 !important;
    border-inline-end:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) > .content-area{
    width:auto !important;
    max-width:none !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px));
    padding:24px clamp(18px,2.15vw,34px) 42px !important;
    background:var(--sadaa-page-bg,var(--sadaa-tint-3)) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper{
    width:100% !important;
    max-width:none !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px));
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    align-items:stretch !important;
    background:var(--sadaa-page-bg,var(--sadaa-tint-3));
  }

  html body .dashboard-wrapper.member-dashboard-wrapper > .member-sidebar-stack{
    width:272px !important;
    flex:0 0 272px !important;
    position:relative !important;
    align-self:stretch !important;
    top:auto !important;
    height:auto !important;
    max-height:none !important;
    min-height:100% !important;
    margin:0 !important;
    padding:0 12px 24px !important;
    gap:12px !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
    background:var(--sadaa-surface,#fff) !important;
    border:0 !important;
    border-inline-end:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-head{
    min-height:108px !important;
    margin:0 -12px !important;
    border-radius:0 !important;
    flex:0 0 auto !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper .sadaa-member-side-nav{
    width:100% !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area{
    width:auto !important;
    max-width:none !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px));
    padding:24px clamp(18px,2.15vw,34px) 42px !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:var(--sadaa-page-bg,var(--sadaa-tint-3)) !important;
  }
}

/* Shared admin/member page heroes */
:where(
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .member-tab-page-header,.account-settings-page-header
){
  border-radius:var(--sadaa-radius-panel,20px) !important;
  box-shadow:0 12px 30px rgba(var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb)),.12) !important;
  overflow:hidden;
}

/* Shared content surfaces */
:where(
  .users-cards-wrapper,.orders-cards-wrapper,.reports-cards-wrapper,
  .finance-card,.newsletter-admin-card,.site-presence-card,
  .account-settings-content-panel,.member-form-shell,
  .store-add-panel,.ad-submit-panel
){
  border-color:var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:var(--sadaa-radius-card,16px) !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:var(--sadaa-shadow-xs) !important;
}

/* Popovers, menus, cards */
.sadaa-popover,
.sadaa-menu,
.sadaa-modal__dialog{
  border-color:var(--sadaa-line,#E5E7F0) !important;
  border-radius:var(--sadaa-radius-card,16px) !important;
  box-shadow:var(--sadaa-shadow-lg) !important;
}

.sadaa-modal__dialog{
  overflow:hidden;
}

/* Authentication surfaces */
/* auth-page stays transparent: login.php and register.php provide the page background. */

.auth-shell{
  border:1px solid var(--sadaa-line,#E5E7F0) !important;
  border-radius:24px !important;
  box-shadow:0 24px 70px rgba(var(--sadaa-shadow-rgb,42,24,48),.11) !important;
  overflow:hidden;
}

.auth-brand{
  background:var(--sadaa-auth-brand-surface,var(--sadaa-brand-gradient)) !important;
}

.auth-form-panel{
  background:#fff !important;
}

.auth-heading-icon{
  border-radius:var(--sadaa-radius-card,16px) !important;
}

.auth-submit{
  border-radius:var(--sadaa-radius-md,10px) !important;
  font-weight:700 !important;
}

/* Store directory cards */
.stores-directory-shell .store-card,
.stores-directory-shell .stores-filter-card,
.stores-directory-shell .stores-content-panel{
  border-color:var(--sadaa-line,#E5E7F0) !important;
  border-radius:var(--sadaa-radius-card,16px) !important;
}

.stores-directory-shell .store-card{
  box-shadow:var(--sadaa-shadow-xs) !important;
  transition:transform var(--sadaa-transition-base),box-shadow var(--sadaa-transition-base),border-color var(--sadaa-transition-base) !important;
}

.stores-directory-shell .store-card:hover{
  transform:translateY(-2px);
  border-color:var(--sadaa-line-2,#D6DAEA) !important;
  box-shadow:var(--sadaa-shadow-md) !important;
}

/* Compact interaction feedback, without the mobile tap flash. */
@media (hover:hover){
  :where(.sadaa-btn,.sadaa-nav-item,.dropdown-item,.site-share-item,.store-card){
    will-change:transform;
  }
}

@media (max-width:1100px){
  .main-header .header-inner{
    width:calc(100% - 20px) !important;
  }

  .dashboard-wrapper .sidebar,
  .member-dashboard-wrapper .sadaa-member-side-nav{
    border-radius:0 !important;
    box-shadow:0 18px 54px rgba(var(--sadaa-shadow-rgb),.16) !important;
  }
}

@media (max-width:480px){
  .main-header .header-inner{
    width:calc(100% - 14px) !important;
  }

  .auth-shell{
    border-radius:18px !important;
  }
}

/* The shipped header logo is white and transparent. Tint its visible pixels
   to the Misty Indigo ink tone on the shared light header. This does not
   change the logo asset, its dimensions, or any administrator logo setting. */
.main-header .logo-link img{
  filter:brightness(0) saturate(100%) invert(18%) sepia(16%) saturate(1150%) hue-rotate(193deg) brightness(94%) contrast(92%);
}
/* Authentication panels retain their own original logo treatment. */
.auth-brand .auth-logo img{
  filter:brightness(0) invert(1);
}

/* Dashboard shell must meet the global footer with no visual gap on desktop. */
@media (min-width:1101px){
  html body > .dashboard-wrapper ~ .main-footer{
    margin-top:0 !important;
  }
}

/* Dashboard sidebar: keep the first navigation item 25px below the header on desktop. */
@media (min-width:1101px){
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) .dashboard-sidebar-nav,
  html body .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-nav{
    padding-top:25px !important;
  }
}


/* sadaa-member-fluid-workspace-v1-20261002
   لوحة العضو تستخدم كامل مساحة العمل مثل لوحة المدير على سطح المكتب. */
@media (min-width:1101px){
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area{
    flex:1 1 auto !important;
    width:calc(100% - 272px) !important;
    max-width:none !important;
    min-width:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent,
  html body .dashboard-wrapper.member-dashboard-wrapper .member-tab-panel{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .stats-page,
  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .member-records-page,
  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .member-stores-page,
  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .member-invoices-page,
  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .account-settings-tab-page{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-inline:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent > .stats-page{
    margin-top:0 !important;
    margin-bottom:22px !important;
  }
}


/* =========================================================
   Dashboard visual polish — 2026-10-02
   - Workspace contrast for all admin/member tabs.
   - Moderator cards container modernized on desktop.
   - Member Ads fills the fluid workspace without inner max-width distortion.
   - Member Stores badges stay compact on all desktop widths.
   ========================================================= */
@media (min-width:1101px){
  /* Workspace: clearly distinct from white cards and pale table headers. */
  html body .dashboard-wrapper,
  html body .dashboard-wrapper:not(.member-dashboard-wrapper),
  html body .dashboard-wrapper.member-dashboard-wrapper,
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) > .content-area,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area{
    background:var(--sadaa-admin-workspace-bg,var(--sadaa-tint-3)) !important;
  }

  html body .dashboard-wrapper #tabContent{
    background:transparent !important;
  }

  /* -------------------------------------------------------
     المشرفون — حاوية البطاقات والبطاقات نفسها
     ------------------------------------------------------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab
  #moderatorsPermissionsForm > .sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:14px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:14px !important;
    background:var(--sadaa-surface-alt,#FDFDFF) !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderators-grid{
    gap:12px !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderator-card{
    overflow:hidden !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-top:3px solid var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:0 2px 8px rgba(var(--sadaa-shadow-rgb,17,24,39),.045) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderator-card-head{
    padding:14px 16px !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderator-name{
    color:#fff !important;
    font-weight:700 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderator-meta{
    color:rgba(255,255,255,.86) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderator-meta i{
    color:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
    opacity:.72 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderators-save-bar{
    position:static !important;
    margin-top:12px !important;
    padding:11px 13px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.03) !important;
  }

  /* -------------------------------------------------------
     إدارة الإعلان / إعلاناتي — إزالة التضييق الداخلي القديم
     ------------------------------------------------------- */
  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page
  :is(
    .back-row,
    .ads-heading-inner,
    .member-tablet-tools,
    .member-tablet-tools-body,
    .member-records-filters,
    .member-records-form,
    .member-records-list
  ){
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    box-sizing:border-box !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-tablet-tools{
    margin:0 0 14px !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-tablet-tools-body{
    padding:12px 14px !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-filters{
    margin:0 !important;
    padding:0 !important;
    grid-template-columns:minmax(280px,1fr) 190px 175px auto !important;
    gap:9px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-form{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    overflow:visible !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-list{
    margin:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface,#fff) !important;
    overflow:hidden !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
  }

  /* Allow only the currently open member-ad action menu to escape the table edge. */
  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-list:has(.member-record-menu[open]){
    overflow:visible !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-toolbar{
    min-height:50px !important;
    margin:0 !important;
    padding:8px 14px !important;
    display:flex !important;
    align-items:center !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:0 !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-toolbar-inner{
    width:100% !important;
    padding:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-check-all{
    min-height:34px !important;
    padding:5px 2px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:var(--sadaa-admin-text,var(--sadaa-text-2,var(--sadaa-text))) !important;
    font-weight:500 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-records-bulk-delete-btn{
    width:34px !important;
    height:34px !important;
    border-radius:8px !important;
    background:var(--sadaa-surface-alt,#FDFDFF) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-record-head{
    min-height:47px !important;
    padding:11px 14px !important;
    background:var(--sadaa-tint-3,var(--sadaa-tint-3)) !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    color:var(--sadaa-admin-text,var(--sadaa-text-2,var(--sadaa-text))) !important;
    font-weight:600 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-record-row{
    padding:12px 14px !important;
    background:var(--sadaa-surface,#fff) !important;
    border-bottom-color:var(--sadaa-line,#E5E7F0) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page .member-record-row:hover{
    background:var(--sadaa-tint-3,var(--sadaa-tint-3)) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-records-page
  :is(.member-records-search-input,.member-records-filter-select):focus{
    border-color:var(--sadaa-primary) !important;
    box-shadow:0 0 0 3px rgba(var(--sadaa-primary-rgb),.08) !important;
  }

  /* -------------------------------------------------------
     متاجري — الشارات أصغر على كل مقاسات سطح المكتب.
     ------------------------------------------------------- */
  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-stores-page .member-store-pill{
    min-height:22px !important;
    padding:2px 6px !important;
    gap:4px !important;
    border-radius:5px !important;
    font-size:11.5px !important;
    line-height:1.35 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper
  #tabContent .member-stores-page .member-store-pill i{
    font-size:10.5px !important;
  }
}


/* =========================================================
   Dashboard header — final source-of-truth overrides
   Loaded after header-style.php so generic header rules cannot restore
   the old share button or separator.
   ========================================================= */
@media (min-width:1101px){
  html body .main-header.sadaa-dashboard-header .header-inner,
  html body .main-header.sadaa-dashboard-header .header-section,
  html body .main-header.sadaa-dashboard-header .header-section.header-left,
  html body .main-header.sadaa-dashboard-header .header-section.header-right,
  html body .main-header.sadaa-dashboard-header .logo-container,
  html body .main-header.sadaa-dashboard-header .logo-link{
    border-inline-start:0 !important;
    border-inline-end:0 !important;
    border-left:0 !important;
    border-right:0 !important;
    outline:0 !important;
    box-shadow:none !important;
  }

  html body .main-header.sadaa-dashboard-header .header-section.header-left::before,
  html body .main-header.sadaa-dashboard-header .header-section.header-left::after,
  html body .main-header.sadaa-dashboard-header .header-section.header-right::before,
  html body .main-header.sadaa-dashboard-header .header-section.header-right::after{
    content:none !important;
    display:none !important;
  }

  html body .main-header.sadaa-dashboard-header .btn-add-ad,
  html body .main-header.sadaa-dashboard-header .btn-account{
    height:49px !important;
    min-height:49px !important;
  }

  html body .main-header.sadaa-dashboard-header .btn-add-ad{
    min-width:126px !important;
    padding:0 18px !important;
    margin:0 !important;
    border-radius:10px !important;
    line-height:1 !important;
  }

  html body .main-header.sadaa-dashboard-header .btn-account{
    min-width:128px !important;
    padding:0 18px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    line-height:1 !important;
  }

  html body .main-header.sadaa-dashboard-header .btn-account > p{
    margin:0 !important;
    padding:0 !important;
    height:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    transform:none !important;
  }

  html body .main-header.sadaa-dashboard-header .btn-account > .fa-caret-down{
    margin:0 !important;
    line-height:1 !important;
    align-self:center !important;
  }

  html body .main-header.sadaa-dashboard-header .site-share{
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    margin:0 2px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .main-header.sadaa-dashboard-header .site-share-button{
    width:24px !important;
    min-width:24px !important;
    height:24px !important;
    min-height:24px !important;
    margin:0 !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#fff !important;
  }

  html body .main-header.sadaa-dashboard-header .site-share-button i{
    margin:0 !important;
    padding:0 !important;
    font-size:14px !important;
    line-height:1 !important;
  }

  html body .main-header.sadaa-dashboard-header .site-share-button:hover,
  html body .main-header.sadaa-dashboard-header .site-share-button:focus-visible,
  html body .main-header.sadaa-dashboard-header .site-share-button[aria-expanded="true"]{
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#fff !important;
    opacity:.78 !important;
    transform:none !important;
  }
}

/* =========================================================
   Member dashboard — remove the true outer workspace shell
   320px–1024px — 2026-10-03
   Keep the inner search/filter/cards/pagination surfaces intact.
   ========================================================= */
@media (min-width:320px) and (max-width:1024px){
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell{
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
}

/* =========================================================
   Dashboard sidebars — remove the inner vertical divider at 1024px
   901px–1024px only. Keep the outer card edges intact.
   ========================================================= */
@media (min-width:901px) and (max-width:1024px){
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack .sadaa-member-side-nav,
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  > .sidebar{
    border-inline-end:0 !important;
    border-left:0 !important;
  }
}

/* =========================================================
   Member dashboard — remove actual left divider on wide tablet
   901px–1024px only — 2026-10-03
   In RTL, border-inline-end on member-sidebar-stack renders on the left.
   ========================================================= */
@media (min-width:901px) and (max-width:1024px){
  html body .dashboard-wrapper.member-dashboard-wrapper
  > .member-sidebar-stack{
    border-inline-end:0 !important;
    border-left:0 !important;
  }
}

/* =========================================================
   Member dashboard — hard-stop outer visual shell on tablet/mobile
   320px–1024px. Structural wrappers stay, visual container disappears.
   ========================================================= */
@media (min-width:320px) and (max-width:1024px){
  html body .dashboard-wrapper.member-dashboard-wrapper,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent > .member-tab-panel{
    background:transparent !important;
    background-image:none !important;
    border:0 !important;
    box-shadow:none !important;
    outline:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell{
    border-radius:0 !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell::before,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell::after,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent::before,
  html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent::after{
    display:none !important;
    content:none !important;
  }
}

/* =========================================================
   Member dashboard — remove outer visual shell on ALL screens
   2026-10-03
   Keep wrappers structurally for layout; remove only their visual surface.
   ========================================================= */
html body .dashboard-wrapper.member-dashboard-wrapper,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent > .member-tab-panel{
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:0 !important;
}

html body .dashboard-wrapper.member-dashboard-wrapper::before,
html body .dashboard-wrapper.member-dashboard-wrapper::after,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell::before,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell::after,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent::before,
html body .dashboard-wrapper.member-dashboard-wrapper > .content-area.member-form-shell > #tabContent::after{
  display:none !important;
  content:none !important;
}

/* =========================================================
   Store Directory — group surfaces final cascade fix
   2026-10-04
   الغلاف العام شفاف، والمميزة والعادية فقط هما الحاويتان المرئيتان.
   ========================================================= */
html body .stores-directory-shell .store-content.stores-content-panel,
html body .stores-directory-shell .stores-content-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body .stores-directory-shell .stores-content-panel #storeContainer,
html body .stores-directory-shell #storeContainer.store-list {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* الحاوية الأولى: المتاجر المميزة. */
html body .stores-directory-shell #storeContainer .stores-featured-zone {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 0 18px !important;
  padding: 14px !important;
  border: 1px solid var(--sadaa-line-3) !important;
  border-radius: var(--sadaa-radius-card, 16px) !important;
  background: var(--sadaa-tint) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.78) !important;
}

/* الحاوية الثانية: المتاجر العادية — ظاهرة على جميع المقاسات بما فيها 1440+ والديسكتوب. */
html body .stores-directory-shell #storeContainer .stores-regular-grid {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--sadaa-line-2) !important;
  border-radius: var(--sadaa-radius-card, 16px) !important;
  background: var(--sadaa-surface) !important;
  box-shadow: 0 6px 18px rgba(var(--sadaa-shadow-rgb), .035) !important;
}

@media (max-width:640px) {
  html body .stores-directory-shell #storeContainer .stores-featured-zone,
  html body .stores-directory-shell #storeContainer .stores-regular-grid {
    padding: 10px !important;
  }
}

/* =========================================================
   Admin Desktop — remove remaining outer list/table shells
   2026-10-04
   Scope: desktop/laptop app shell only (1101px+)
   Targets: reports, users, moderators, finance report.
   Keep the actual table/cards as the only visible surface.
   ========================================================= */
@media (min-width:1101px){
  /* البلاغات: إزالة الصندوق الخلفي الخارجي، والإبقاء على الجدول نفسه. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui .reports-table-shell{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .reports-tab-ui .reports-table-shell > .reports-list-card{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  /* المستخدمون: إزالة الغلاف الخلفي وترك .users-list كسطح الجدول الوحيد. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list-wrap.sadaa-tablet-records-shell{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .users-tab-soft .users-list-wrap > .users-list{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  /* المشرفون: بطاقات المشرفين مباشرة بدون سطح جماعي خلفها. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab > .moderators-panel.sadaa-admin-list-shell{
    display:contents !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab #moderatorsPermissionsForm{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab #moderatorsPermissionsForm > .sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .moderators-tab .moderators-grid{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
  }

  /* تقرير الطلبات: إزالة بطاقة الغلاف، مع إبقاء رأس القائمة والجدول مستقلين. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-table-card.sadaa-admin-card{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin:0 0 14px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-table-card > .finance-card-head{
    width:100% !important;
    min-height:44px !important;
    margin:0 0 8px !important;
    padding:10px 14px !important;
    box-sizing:border-box !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-table-card > .finance-table-wrap.sadaa-tablet-records-shell{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    overflow:auto !important;
  }
}

/* =========================================================
   Admin Desktop Tables — unified geometry & border weight
   2026-10-04
   Scope: desktop/laptop app shell only (1101px+)
   ========================================================= */
@media (min-width:1101px){
  html body .dashboard-wrapper:not(.member-dashboard-wrapper){
    --sadaa-admin-table-head-height:48px;
    --sadaa-admin-table-row-height:58px;
    --sadaa-admin-table-cell-py:10px;
    --sadaa-admin-table-border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
    --sadaa-admin-table-row-line:1px solid var(--sadaa-line-soft,#eef1f5);
  }

  /* Grid/div based admin tables — unified header height. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-tab-ui .orders-grid-header,
    .reports-tab-ui .reports-row.header,
    .users-tab-soft .users-header,
    .directory-tab-soft .directory-header,
    .coupons-tab-ui .mc-header
  ){
    min-height:var(--sadaa-admin-table-head-height) !important;
    height:var(--sadaa-admin-table-head-height) !important;
    box-sizing:border-box !important;
    align-items:center !important;
    border-bottom:var(--sadaa-admin-table-border) !important;
  }

  /* Grid/div based admin tables — unified body row rhythm. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-tab-ui .orders-grid-row,
    .reports-tab-ui .reports-row:not(.header),
    .users-tab-soft .users-row,
    .directory-tab-soft .directory-row,
    .coupons-tab-ui .mc-row
  ){
    min-height:var(--sadaa-admin-table-row-height) !important;
    box-sizing:border-box !important;
    align-items:center !important;
    border-bottom:var(--sadaa-admin-table-row-line) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-tab-ui .orders-grid-cell,
    .reports-tab-ui .reports-cell,
    .users-tab-soft .users-cell,
    .directory-tab-soft .directory-cell,
    .coupons-tab-ui .mc-cell
  ){
    padding-top:var(--sadaa-admin-table-cell-py) !important;
    padding-bottom:var(--sadaa-admin-table-cell-py) !important;
    line-height:1.55 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-tab-ui .orders-grid-row:last-child,
    .reports-tab-ui .reports-row:last-child,
    .users-tab-soft .users-row:last-child,
    .directory-tab-soft .directory-row:last-child,
    .coupons-tab-ui .mc-row:last-child
  ){
    border-bottom:0 !important;
  }

  /* Native tables — same header/row heights as grid tables. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) thead tr{
    height:var(--sadaa-admin-table-head-height) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) tbody tr{
    height:var(--sadaa-admin-table-row-height) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) :is(th,td){
    padding-top:var(--sadaa-admin-table-cell-py) !important;
    padding-bottom:var(--sadaa-admin-table-cell-py) !important;
    line-height:1.55 !important;
    vertical-align:middle !important;
    border-top:0 !important;
    border-inline:0 !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) th{
    border-bottom:var(--sadaa-admin-table-border) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) td{
    border-bottom:var(--sadaa-admin-table-row-line) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .newsletter-admin .newsletter-table,
    .finance-tab .finance-orders-table,
    table.sadaa-data-table
  ) tbody tr:last-child td{
    border-bottom:0 !important;
  }

  /* Finance report: one single 1px outer boundary, never a double/thick frame. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-table-card > .finance-table-wrap.sadaa-tablet-records-shell{
    border:var(--sadaa-admin-table-border) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
    outline:0 !important;
    padding:0 !important;
    overflow:auto !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper)
  #tabContent .finance-tab .finance-orders-table{
    width:100% !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    border-collapse:collapse !important;
    border-spacing:0 !important;
    background:var(--sadaa-surface,#fff) !important;
  }
}


/* =========================================================
   Admin Tablet Hero Alignment — V2
   2026-10-04
   768px–1024px only
   - icon + title/description stay on one aligned row
   - actions/meta live on a second row aligned with the text column
   - special handling for Reports, Finance and Directory Settings
   ========================================================= */
@media (min-width:768px) and (max-width:1024px){
  /* Shared admin heroes whose root itself is the layout container. */
  html body #tabContent
  :is(
    .users-page-header.sadaa-page-header--admin,
    .directory-page-header.sadaa-page-header--admin,
    .moderators-page-header.sadaa-page-header--admin,
    .coupons-page-header.sadaa-page-header--admin,
    .offers-page-header.sadaa-page-header--admin,
    .settings-page-header.sadaa-page-header--admin
  ){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:start !important;
    justify-items:stretch !important;
    gap:10px !important;
    min-height:124px !important;
    padding:16px 18px !important;
  }

  html body #tabContent
  :is(
    .users-page-header,
    .directory-page-header,
    .moderators-page-header,
    .coupons-page-header,
    .settings-page-header
  )
  :is(
    .users-page-title,
    .directory-page-title,
    .moderators-page-title,
    .coupons-page-title,
    .settings-page-title
  ),
  html body #tabContent .offers-page-header .offers-page-title{
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent
  :is(
    .users-page-header,
    .directory-page-header,
    .moderators-page-header,
    .coupons-page-header,
    .offers-page-header,
    .settings-page-header
  )
  .sadaa-page-header__icon{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    flex-basis:36px !important;
    font-size:14px !important;
    align-self:center !important;
  }

  html body #tabContent
  :is(
    .users-page-header,
    .directory-page-header,
    .moderators-page-header,
    .coupons-page-header,
    .offers-page-header,
    .settings-page-header
  )
  .sadaa-page-header__content{
    min-width:0 !important;
    width:100% !important;
    text-align:right !important;
  }

  /* Keep all action groups compact and align them with the text column,
     not with the icon edge. */
  html body #tabContent
  :is(
    .users-page-header .users-page-actions,
    .directory-page-header .directory-page-actions,
    .moderators-page-header .moderators-page-actions,
    .coupons-page-header .coupons-page-actions,
    .settings-page-header .settings-page-actions
  ){
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    margin:0 !important;
    padding:0 46px 0 0 !important;
    align-self:start !important;
  }

  html body #tabContent
  :is(
    .users-page-header .users-page-actions,
    .directory-page-header .directory-page-actions,
    .moderators-page-header .moderators-page-actions,
    .coupons-page-header .coupons-page-actions,
    .settings-page-header .settings-page-actions
  ) > *{
    margin:0 !important;
    width:auto !important;
    min-width:0 !important;
  }

  /* Offers uses a direct meta chip instead of an actions wrapper. */
  html body #tabContent .offers-page-header .offers-page-meta{
    grid-row:2 !important;
    justify-self:start !important;
    align-self:start !important;
    width:max-content !important;
    max-width:calc(100% - 46px) !important;
    margin:0 46px 0 0 !important;
  }

  /* Reports markup has icon/content as direct hero children. */
  html body #tabContent .reports-tab-ui .reports-clean-header.sadaa-page-header--admin{
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) !important;
    grid-template-rows:auto !important;
    align-items:center !important;
    gap:10px !important;
    min-height:106px !important;
    padding:16px 18px !important;
    text-align:right !important;
  }

  html body #tabContent .reports-tab-ui .reports-clean-header .reports-header-icon{
    grid-column:1 !important;
    grid-row:1 !important;
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    margin:0 !important;
    align-self:center !important;
  }

  html body #tabContent .reports-tab-ui .reports-clean-header .reports-header-content{
    grid-column:2 !important;
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    text-align:right !important;
  }

  /* Finance / Order Report has a real inner wrapper. */
  html body #tabContent .finance-tab .finance-head.sadaa-page-header--admin{
    display:block !important;
    min-height:124px !important;
    padding:16px 18px !important;
  }

  html body #tabContent .finance-tab .finance-head > .sadaa-page-header__inner{
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:start !important;
    gap:10px !important;
  }

  html body #tabContent .finance-tab .finance-head .finance-head-main{
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
  }

  html body #tabContent .finance-tab .finance-head .sadaa-page-header__icon{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    flex-basis:36px !important;
    font-size:14px !important;
  }

  html body #tabContent .finance-tab .finance-head .sadaa-page-header__actions{
    grid-row:2 !important;
    width:100% !important;
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    margin:0 !important;
    padding:0 46px 0 0 !important;
  }

  html body #tabContent .finance-tab .finance-head .finance-head-meta{
    width:max-content !important;
    max-width:100% !important;
    margin:0 !important;
    align-self:auto !important;
  }

  /* Store Directory settings is loaded as a nested async view and has
     its own hero markup. Keep it on the same tablet rhythm. */
  html body #tabContent .directory-settings-tab .directory-settings-hero{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    align-items:start !important;
    gap:10px !important;
    min-height:124px !important;
    padding:16px 18px !important;
  }

  html body #tabContent .directory-settings-tab .directory-settings-title{
    grid-row:1 !important;
    width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
    text-align:right !important;
  }

  html body #tabContent .directory-settings-tab .directory-settings-icon{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
  }

  html body #tabContent .directory-settings-tab .directory-settings-back{
    grid-row:2 !important;
    justify-self:start !important;
    align-self:start !important;
    width:auto !important;
    min-width:160px !important;
    margin:0 46px 0 0 !important;
  }
}

/* Moderators cards — all screens */
html body #tabContent .moderators-tab .moderator-card,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-card{
  border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
}

html body #tabContent .moderators-tab .moderator-card-head,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-card-head{
  background:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
  border-bottom:1px solid rgba(var(--sadaa-shadow-rgb),.16) !important;
}

html body #tabContent .moderators-tab .moderator-name,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-name{
  color:#fff !important;
}

html body #tabContent .moderators-tab .moderator-meta,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-meta{
  color:rgba(255,255,255,.86) !important;
}

html body #tabContent .moderators-tab .moderator-meta i,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-meta i{
  color:var(--sadaa-admin-primary,var(--sadaa-primary)) !important;
  opacity:.82 !important;
}

html body #tabContent .moderators-tab .moderator-permissions-window,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-permissions-window{
  border-top:0 !important;
}

html body #tabContent .moderators-tab .moderator-permissions-window > .sadaa-accordion__summary,
html body #tabContent .moderators-tab .moderator-permissions-window > .moderator-permissions-window-summary,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-permissions-window > .sadaa-accordion__summary,
html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent .moderators-tab .moderator-permissions-window > .moderator-permissions-window-summary{
  border-top:0 !important;
  box-shadow:none !important;
}

/* =========================================================
   Dashboard Cards Typography — unified non-desktop scale
   2026-10-04
   Scope: Admin + Member dashboards, <= 1600px.
   Card/record body text + badges/statuses = 13px.
   Page/hero headings and large KPI values intentionally keep
   their existing hierarchy.
   ========================================================= */
:root{
  --sadaa-dashboard-card-text-size:13px;
}

@media (max-width:1600px){
  /* ---------- Admin record/card body text ---------- */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .sadaa-admin-record-card,
    .orders-grid-row,
    .users-row,
    .reports-row,
    .mc-row,
    .finance-order-row,
    .directory-store-card,
    .newsletter-card,
    .moderator-card,
    .offers-table tbody tr
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-grid-cell,
    .users-cell,
    .user-name-text,
    .reports-cell,
    .report-ad-id,
    .report-ad-meta,
    .report-date span,
    .mc-cell,
    .coupon-code-cell,
    .coupon-id-pill,
    .finance-orders-table td,
    .finance-order-main strong,
    .finance-order-main span,
    .finance-date-stack strong,
    .finance-date-stack span,
    .directory-cell,
    .directory-store-name,
    .directory-owner-email,
    .directory-category,
    .newsletter-table td,
    .offers-title-name,
    .moderator-name,
    .moderator-meta,
    .permission-item
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  /* Labels generated inside card/tablet-card cells follow the same scale. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  :is(
    .orders-grid-cell,
    .users-cell,
    .reports-cell,
    .mc-cell,
    .finance-orders-table td,
    .directory-cell,
    .newsletter-table td,
    .offers-table td
  )::before{
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  /* ---------- Member record/card body text ---------- */
  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent
  :is(
    .member-record-row,
    .member-store-card,
    .member-stores-summary-card,
    .invoices-table tbody tr,
    .invoice-stat-card
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent
  :is(
    .member-record-cell,
    .member-record-id,
    .member-record-status-stack,
    .member-store-card-head,
    .member-store-card-footer,
    .member-store-feature-state,
    .member-store-pill,
    .invoice-no-cell,
    .invoice-amount-cell,
    .invoice-type-cell,
    .invoice-details-cell,
    .invoice-date-cell,
    .invoice-no,
    .invoice-amount,
    .invoice-type-pill,
    .invoice-dims-pill,
    .invoice-date
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  html body .dashboard-wrapper.member-dashboard-wrapper #tabContent
  :is(
    .member-record-cell,
    .invoice-no-cell,
    .invoice-amount-cell,
    .invoice-type-cell,
    .invoice-details-cell,
    .invoice-date-cell
  )::before{
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }

  /* ---------- Shared dashboard badges / statuses ---------- */
  html body .dashboard-wrapper #tabContent
  :is(
    .sadaa-status,
    .sadaa-status--compact,
    .sadaa-status--refund-failed,
    .status-badge,
    .status-pill,
    .order-status,
    .orders-status,
    .report-badge,
    .role-badge,
    .directory-status,
    .offers-status,
    .coupon-status,
    .coupon-status-chip,
    .member-store-pill,
    .invoice-type-pill,
    .invoice-dims-pill,
    .sadaa-badge,
    .sadaa-badge--brand,
    .sadaa-badge--danger,
    .sadaa-badge--info,
    .sadaa-badge--neutral,
    .sadaa-badge--success,
    .sadaa-badge--warning
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
    line-height:1.35 !important;
  }

  /* Metric cards: labels/notes follow 13px; large KPI values stay unchanged. */
  html body .dashboard-wrapper #tabContent
  :is(
    .sadaa-metric-card__label,
    .sadaa-metric-card__note,
    .finance-summary-label,
    .newsletter-stat-label
  ){
    font-size:var(--sadaa-dashboard-card-text-size) !important;
  }
}

/* =========================================================
   Dashboard Hero Layering — consolidated source of truth
   2026-10-04

   Layer order on every admin/member dashboard hero:
   0) hero background
   1) decorative ::before / ::after
   2) real hero content
   3) icon tile and its glyph

   Local tab files must not redefine this stacking order.
   ========================================================= */
html body :is(
  .sadaa-page-header,
  .users-page-header,
  .orders-page-header,
  .orders-clean-header,
  .reports-page-header,
  .reports-clean-header,
  .finance-page-header,
  .finance-head,
  .newsletter-admin-hero,
  .site-presence-hero,
  .clean-page-header,
  .directory-page-header,
  .moderators-page-header,
  .coupons-page-header,
  .offers-page-header,
  .settings-page-header,
  .member-tab-page-header,
  .account-settings-page-header,
  .invoices-page-header,
  .member-records-page-header,
  .stats-hero
){
  position:relative !important;
  isolation:isolate !important;
  z-index:0 !important;
  overflow:hidden !important;
}

html body :is(
  .sadaa-page-header,
  .users-page-header,
  .orders-page-header,
  .orders-clean-header,
  .reports-page-header,
  .reports-clean-header,
  .finance-page-header,
  .finance-head,
  .newsletter-admin-hero,
  .site-presence-hero,
  .clean-page-header,
  .directory-page-header,
  .moderators-page-header,
  .coupons-page-header,
  .offers-page-header,
  .settings-page-header,
  .member-tab-page-header,
  .account-settings-page-header,
  .invoices-page-header,
  .member-records-page-header,
  .stats-hero
)::before,
html body :is(
  .sadaa-page-header,
  .users-page-header,
  .orders-page-header,
  .orders-clean-header,
  .reports-page-header,
  .reports-clean-header,
  .finance-page-header,
  .finance-head,
  .newsletter-admin-hero,
  .site-presence-hero,
  .clean-page-header,
  .directory-page-header,
  .moderators-page-header,
  .coupons-page-header,
  .offers-page-header,
  .settings-page-header,
  .member-tab-page-header,
  .account-settings-page-header,
  .invoices-page-header,
  .member-records-page-header,
  .stats-hero
)::after{
  z-index:-1 !important;
  pointer-events:none !important;
}

html body :is(
  .sadaa-page-header,
  .users-page-header,
  .orders-page-header,
  .orders-clean-header,
  .reports-page-header,
  .reports-clean-header,
  .finance-page-header,
  .finance-head,
  .newsletter-admin-hero,
  .site-presence-hero,
  .clean-page-header,
  .directory-page-header,
  .moderators-page-header,
  .coupons-page-header,
  .offers-page-header,
  .settings-page-header,
  .member-tab-page-header,
  .account-settings-page-header,
  .invoices-page-header,
  .member-records-page-header,
  .stats-hero
) > *{
  position:relative !important;
  z-index:1 !important;
}

/* Shared/nested content structures also remain above ornaments. */
html body :is(
  .sadaa-page-header__inner,
  .sadaa-page-header__main,
  .sadaa-page-header__content,
  .sadaa-page-header__actions,
  .sadaa-page-header__meta,
  .users-page-title,
  .orders-header-content,
  .reports-header-content,
  .directory-page-title,
  .moderators-page-title,
  .coupons-page-title,
  .offers-page-title,
  .settings-page-title,
  .site-presence-hero-main,
  .site-presence-hero-meta,
  .newsletter-admin-hero-content,
  .member-records-page-title,
  .member-records-page-actions,
  .stats-hero-content,
  .account-settings-page-title,
  .account-settings-page-meta
){
  position:relative !important;
  z-index:2 !important;
}

/* Opaque icon tile: same visual family as the old translucent tile,
   but decorative circles can no longer show through it. */
html body :is(
  .sadaa-page-header,
  .users-page-header,
  .orders-page-header,
  .orders-clean-header,
  .reports-page-header,
  .reports-clean-header,
  .finance-page-header,
  .finance-head,
  .newsletter-admin-hero,
  .site-presence-hero,
  .clean-page-header,
  .directory-page-header,
  .moderators-page-header,
  .coupons-page-header,
  .offers-page-header,
  .settings-page-header,
  .member-tab-page-header,
  .account-settings-page-header,
  .invoices-page-header,
  .member-records-page-header,
  .stats-hero
) :is(
  .sadaa-page-header__icon,
  .users-page-icon,
  .orders-header-icon,
  .reports-header-icon,
  .finance-head-icon,
  .newsletter-admin-icon,
  .site-presence-hero-icon,
  .directory-page-icon,
  .moderators-page-icon,
  .coupons-page-icon,
  .offers-page-icon,
  .settings-page-icon,
  .member-records-page-icon,
  .invoices-page-icon,
  .member-stores-head-icon,
  .stats-hero-icon,
  .account-settings-page-icon
){
  position:relative !important;
  z-index:3 !important;
  isolation:isolate !important;
  opacity:1 !important;
  background:var(--sadaa-primary,#5E6EA4) !important;
  background:color-mix(in srgb,var(--sadaa-primary,#5E6EA4) 86%,white 14%) !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow:none !important;
  background-clip:padding-box !important;
}

html body :is(
  .sadaa-page-header__icon,
  .users-page-icon,
  .orders-header-icon,
  .reports-header-icon,
  .finance-head-icon,
  .newsletter-admin-icon,
  .site-presence-hero-icon,
  .directory-page-icon,
  .moderators-page-icon,
  .coupons-page-icon,
  .offers-page-icon,
  .settings-page-icon,
  .member-records-page-icon,
  .invoices-page-icon,
  .member-stores-head-icon,
  .stats-hero-icon,
  .account-settings-page-icon
)::before,
html body :is(
  .sadaa-page-header__icon,
  .users-page-icon,
  .orders-header-icon,
  .reports-header-icon,
  .finance-head-icon,
  .newsletter-admin-icon,
  .site-presence-hero-icon,
  .directory-page-icon,
  .moderators-page-icon,
  .coupons-page-icon,
  .offers-page-icon,
  .settings-page-icon,
  .member-records-page-icon,
  .invoices-page-icon,
  .member-stores-head-icon,
  .stats-hero-icon,
  .account-settings-page-icon
)::after{
  content:none !important;
  display:none !important;
}

html body :is(
  .sadaa-page-header__icon,
  .users-page-icon,
  .orders-header-icon,
  .reports-header-icon,
  .finance-head-icon,
  .newsletter-admin-icon,
  .site-presence-hero-icon,
  .directory-page-icon,
  .moderators-page-icon,
  .coupons-page-icon,
  .offers-page-icon,
  .settings-page-icon,
  .member-records-page-icon,
  .invoices-page-icon,
  .member-stores-head-icon,
  .stats-hero-icon,
  .account-settings-page-icon
) > *{
  position:relative !important;
  z-index:1 !important;
}

/* =========================================================
   Hero ornaments / icon stacking — ROOT FIX 2026-10-04
   Single source of truth after visual red diagnostic.
   ========================================================= */
html body #tabContent :is(
  .sadaa-page-header,
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,.finance-head,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .directory-page-header,.moderators-page-header,.coupons-page-header,
  .offers-page-header,.settings-page-header,.member-tab-page-header,
  .account-settings-page-header,.invoices-page-header,
  .member-records-page-header,.stats-hero
){
  position:relative !important;
  isolation:isolate !important;
  overflow:hidden !important;
}

html body #tabContent :is(
  .sadaa-page-header,
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,.finance-head,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .directory-page-header,.moderators-page-header,.coupons-page-header,
  .offers-page-header,.settings-page-header,.member-tab-page-header,
  .account-settings-page-header,.invoices-page-header,
  .member-records-page-header,.stats-hero
)::before,
html body #tabContent :is(
  .sadaa-page-header,
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,.finance-head,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .directory-page-header,.moderators-page-header,.coupons-page-header,
  .offers-page-header,.settings-page-header,.member-tab-page-header,
  .account-settings-page-header,.invoices-page-header,
  .member-records-page-header,.stats-hero
)::after{
  z-index:0 !important;
  pointer-events:none !important;
}

html body #tabContent :is(
  .sadaa-page-header,
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,.finance-head,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .directory-page-header,.moderators-page-header,.coupons-page-header,
  .offers-page-header,.settings-page-header,.member-tab-page-header,
  .account-settings-page-header,.invoices-page-header,
  .member-records-page-header,.stats-hero
) > *{
  position:relative !important;
  z-index:2 !important;
}

html body #tabContent :is(
  .sadaa-page-header,
  .users-page-header,.orders-page-header,.orders-clean-header,
  .reports-page-header,.reports-clean-header,.finance-page-header,.finance-head,
  .newsletter-admin-hero,.site-presence-hero,.clean-page-header,
  .directory-page-header,.moderators-page-header,.coupons-page-header,
  .offers-page-header,.settings-page-header,.member-tab-page-header,
  .account-settings-page-header,.invoices-page-header,
  .member-records-page-header,.stats-hero
) :is(
  .sadaa-page-header__icon,
  .users-page-icon,.orders-header-icon,.reports-header-icon,.finance-head-icon,
  .newsletter-admin-icon,.site-presence-hero-icon,.directory-page-icon,
  .moderators-page-icon,.coupons-page-icon,.offers-page-icon,.settings-page-icon,
  .member-records-page-icon,.invoices-page-icon,.member-stores-head-icon,
  .stats-hero-icon,.account-settings-page-icon
){
  position:relative !important;
  z-index:4 !important;
  isolation:isolate !important;
  opacity:1 !important;
  /* opaque equivalent of the former white .18 overlay on the classic purple */
  background:var(--sadaa-text-2) !important;
  background:color-mix(in srgb,var(--sadaa-primary,#5E6EA4) 82%,white 18%) !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow:none !important;
}

html body #tabContent :is(
  .sadaa-page-header__icon,
  .users-page-icon,.orders-header-icon,.reports-header-icon,.finance-head-icon,
  .newsletter-admin-icon,.site-presence-hero-icon,.directory-page-icon,
  .moderators-page-icon,.coupons-page-icon,.offers-page-icon,.settings-page-icon,
  .member-records-page-icon,.invoices-page-icon,.member-stores-head-icon,
  .stats-hero-icon,.account-settings-page-icon
)::before,
html body #tabContent :is(
  .sadaa-page-header__icon,
  .users-page-icon,.orders-header-icon,.reports-header-icon,.finance-head-icon,
  .newsletter-admin-icon,.site-presence-hero-icon,.directory-page-icon,
  .moderators-page-icon,.coupons-page-icon,.offers-page-icon,.settings-page-icon,
  .member-records-page-icon,.invoices-page-icon,.member-stores-head-icon,
  .stats-hero-icon,.account-settings-page-icon
)::after{
  content:none !important;
  display:none !important;
}

html body #tabContent :is(
  .sadaa-page-header__icon,
  .users-page-icon,.orders-header-icon,.reports-header-icon,.finance-head-icon,
  .newsletter-admin-icon,.site-presence-hero-icon,.directory-page-icon,
  .moderators-page-icon,.coupons-page-icon,.offers-page-icon,.settings-page-icon,
  .member-records-page-icon,.invoices-page-icon,.member-stores-head-icon,
  .stats-hero-icon,.account-settings-page-icon
) > *{
  position:relative !important;
  z-index:1 !important;
}

/* =========================================================
   Header account menu — alignment & spacing correction
   2026-10-05
   Resolves the generic dropdown-item margins colliding with
   the premium account menu's 100% row width.
   ========================================================= */
html body .main-header #advertiserDropdown.dropdown-menu{
  box-sizing:border-box !important;
  padding:8px !important;
  overflow:visible !important;
}

html body .main-header #advertiserDropdown .dropdown-item{
  width:100% !important;
  max-width:100% !important;
  min-height:46px !important;
  margin:0 !important;
  padding:7px 9px !important;
  gap:10px !important;
  box-sizing:border-box !important;
  align-items:center !important;
  justify-content:flex-start !important;
}

html body .main-header #advertiserDropdown .dropdown-item > i{
  flex:0 0 32px !important;
  width:32px !important;
  min-width:32px !important;
  height:32px !important;
  margin:0 !important;
  padding:0 !important;
  align-self:center !important;
}

html body .main-header #advertiserDropdown .dropdown-item > span{
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  text-align:right !important;
  line-height:1.6 !important;
}

/* Desktop/tablet: center the menu under the Account button and
   keep the pointer on the same visual axis. */
@media (min-width:769px){
  html body .main-header .dropdown:has(> #accountMenuButton){
    position:relative !important;
  }

  html body .main-header #advertiserDropdown.dropdown-menu{
    left:50% !important;
    right:auto !important;
    margin:0 !important;
    transform:translateX(-50%) !important;
  }

  html body .main-header #advertiserDropdown.dropdown-menu::after{
    left:50% !important;
    right:auto !important;
    margin-left:-6px !important;
  }
}

/* Mobile keeps the existing inward-safe positioning, while rows
   retain the same clean spacing/alignment. */
@media (max-width:768px){
  html body .main-header #advertiserDropdown.dropdown-menu{
    left:0 !important;
    right:auto !important;
    transform:none !important;
    padding:8px !important;
  }

  html body .main-header #advertiserDropdown .dropdown-item{
    min-height:45px !important;
    padding:6px 8px !important;
    gap:9px !important;
  }

  html body .main-header #advertiserDropdown .dropdown-item > i{
    flex-basis:31px !important;
    width:31px !important;
    min-width:31px !important;
    height:31px !important;
  }
}

/* =========================================================
   SETTINGS — Unified Admin/Member Component Adapter v13
   2026-10-07

   القاعدة: لا هوية مستقلة لإعدادات الموقع.
   تستخدم الصفحة نفس مكونات لوحة المدير/العضو، وما يلي فقط
   يضبط توزيع العناصر الخاصة بوظيفة الإعدادات.
   ========================================================= */
html body #tabContent .settings-tab-ui{
  width:100%;
  min-width:0;
  color:var(--sadaa-admin-text,var(--sadaa-text,#111827));
}

/* Hero: sadaa-page-header--admin هو المرجع المركزي الوحيد. */
html body #tabContent .settings-tab-ui .settings-page-header{
  margin-bottom:14px!important;
}
@media (min-width:1200px){
  html body #tabContent .settings-tab-ui .settings-page-header .sadaa-page-header__main,
  html body #tabContent .settings-tab-ui .settings-page-header .sadaa-page-header__content{
    width:100%!important;
    max-width:none!important;
  }
  html body #tabContent .settings-tab-ui .settings-page-header .sadaa-page-header__description{
    max-width:none!important;
    white-space:nowrap!important;
  }
}

/* التبويبات الداخلية: نفس sadaa-tabs مع كثافة مناسبة لعددها الكبير. */
html body #tabContent .settings-tab-ui .settings-nav-card.sadaa-card{
  margin:0 0 14px;
  padding:8px;
  border-radius:var(--sadaa-radius-md,8px);
  background:var(--sadaa-surface,#fff);
}
html body #tabContent .settings-tab-ui .settings-subnav.sadaa-tabs{
  grid-template-columns:repeat(auto-fit,minmax(104px,1fr));
  gap:6px;
}
html body #tabContent .settings-tab-ui .settings-subnav .sadaa-tab{
  min-height:36px;
  padding:7px 9px;
  font-size:13px;
}
html body #tabContent .settings-tab-ui .settings-content-card{
  min-width:0;
}
html body #tabContent .settings-tab-ui .settings-readonly-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  padding:10px 12px;
  border:1px solid #ead9a5;
  border-radius:var(--sadaa-radius-md,8px);
  background:#fff9e8;
  color:#705b1b;
  font-size:13px;
  line-height:1.7;
}
html body #tabContent .settings-tab-ui[data-readonly="1"] .settings-content-card form{
  pointer-events:none;
  opacity:.72;
}

/* Controls: نفس أبعاد وFocus نظام النماذج المركزي. */
html body #tabContent .settings-tab-ui :is(
  input[type="text"],input[type="number"],input[type="email"],input[type="url"],input[type="password"],select,textarea
){
  width:100%;
  min-width:0;
  min-height:42px;
  box-sizing:border-box;
  padding:8px 11px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:var(--sadaa-radius-field,8px);
  background:var(--sadaa-surface,#fff);
  color:var(--sadaa-text,#111827);
  font:inherit;
  font-size:var(--sadaa-font-size-md,14px);
  outline:none;
}
html body #tabContent .settings-tab-ui textarea{min-height:88px;resize:vertical}
html body #tabContent .settings-tab-ui :is(input,select,textarea):focus{
  border-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  box-shadow:0 0 0 3px var(--sadaa-focus,rgba(var(--sadaa-primary-rgb),.12));
}
html body #tabContent .settings-tab-ui input[type="checkbox"]{
  accent-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
}
html body #tabContent .settings-tab-ui :is(.settings-field,.trial-ads-settings-field,.store-feature-pricing-card__field) > label,
html body #tabContent .settings-tab-ui .payment-ad-control label{
  display:block;
  margin:0 0 6px;
  color:var(--sadaa-text,#111827);
  font-size:13px;
  font-weight:500;
  line-height:1.6;
}
html body #tabContent .settings-tab-ui :is(.settings-help-text,small,.home-hero-font-setting__note){
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.7;
}

/* الحقول: عنوان أوضح وخط أساس موحد للصفوف الثنائية. */
html body #tabContent .settings-tab-ui :is(.settings-field,.trial-ads-settings-field,.store-feature-pricing-card__field) > label,
html body #tabContent .settings-tab-ui .payment-ad-control label{
  font-size:14px;
  font-weight:600;
}
html body #tabContent .settings-tab-ui .settings-form-grid--2{align-items:start}
html body #tabContent .settings-tab-ui .settings-form-grid--2 > .settings-field:not(.settings-field--full){
  display:grid;
  grid-template-rows:minmax(24px,auto) 42px auto;
  align-content:start;
  row-gap:6px;
}
html body #tabContent .settings-tab-ui .settings-form-grid--2 > .settings-field:not(.settings-field--full) > label{margin:0;align-self:end}
html body #tabContent .settings-tab-ui .settings-form-grid--2 > .settings-field:not(.settings-field--full) > :is(select,input[type="text"],input[type="number"]){height:42px;min-height:42px}
html body #tabContent .settings-tab-ui .settings-form-grid--2 > .settings-field:not(.settings-field--full) > :is(.settings-help-text,.home-hero-font-setting__note,small){margin:0;align-self:start}

/* الرئيسية: غلاف محتوى هادئ بنفس لغة أغلفة بطاقات الإدارة. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section.sadaa-card{
  border-color:var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
}

/* =========================================================
   Standard settings cards = sadaa-card + sadaa-section-head
   ========================================================= */
html body #tabContent .settings-tab-ui .settings-form-section.sadaa-card,
html body #tabContent .settings-tab-ui .settings-side-form.sadaa-card{
  margin:0 0 14px;
  padding:0;
  overflow:hidden;
  border-radius:var(--sadaa-radius-md,8px);
  background:var(--sadaa-surface,#fff);
}
html body #tabContent .settings-tab-ui .settings-form-section__head.sadaa-section-head,
html body #tabContent .settings-tab-ui .settings-form-card-head.sadaa-section-head{
  margin:0;
  border-radius:0;
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
}
html body #tabContent .settings-tab-ui .settings-form-section__head .settings-intro-title,
html body #tabContent .settings-tab-ui .settings-form-card-head .settings-intro-title{
  margin:0;
  font-size:15px;
  font-weight:600;
  line-height:1.55;
}
html body #tabContent .settings-tab-ui .settings-form-section__head .settings-intro-copy,
html body #tabContent .settings-tab-ui .settings-form-card-head .settings-intro-copy{
  margin:3px 0 0;
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.75;
}
html body #tabContent .settings-tab-ui .settings-form-grid{
  padding:16px;
  gap:14px;
}
html body #tabContent .settings-tab-ui .settings-form-grid--2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
html body #tabContent .settings-tab-ui .settings-form-grid--compact{
  grid-template-columns:minmax(0,560px);
}
html body #tabContent .settings-tab-ui .settings-field--full{grid-column:1/-1}
html body #tabContent .settings-tab-ui .settings-form-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--sadaa-line,#e5e7eb);
  background:var(--sadaa-surface-alt,#f8fafc);
}
html body #tabContent .settings-tab-ui form.settings-ajax-form > .settings-form-actions:last-child{
  margin:0;
}
html body #tabContent .settings-tab-ui .sadaa-file-native--admin{
  width:100%;
  max-width:none;
  min-height:42px;
}

/* =========================================================
   Settings inset panels — same visual direction as VAT box
   ========================================================= */
html body #tabContent .settings-tab-ui .settings-inner-box,
html body #tabContent .settings-tab-ui .settings-form-section > .settings-form-grid,
html body #tabContent .settings-tab-ui .settings-side-form:not(.settings-vat-form) > .settings-form-grid{
  min-width:0;
  box-sizing:border-box;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  border-radius:10px;
  background:var(--sadaa-surface,#fff);
  box-shadow:none;
}
html body #tabContent .settings-tab-ui .settings-form-section > .settings-form-grid,
html body #tabContent .settings-tab-ui .settings-side-form:not(.settings-vat-form) > .settings-form-grid{
  margin:14px 16px;
  padding:14px;
}
html body #tabContent .settings-tab-ui .layout-filter-form.settings-inner-box{
  margin:14px 16px;
  padding:14px;
}
html body #tabContent .settings-tab-ui .layout-selection-row{
  margin:14px 16px 10px;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  border-radius:10px;
  background:var(--sadaa-surface,#fff);
}
html body #tabContent .settings-tab-ui .layout-grid{
  margin:0 16px 14px;
  overflow:hidden;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  border-radius:10px;
  background:var(--sadaa-surface,#fff);
}
html body #tabContent .settings-tab-ui .layout-check-card .sadaa-checkbox{margin:1px 0 0}
html body #tabContent .settings-tab-ui .banner-pricing-equation__body.settings-inner-box,
html body #tabContent .settings-tab-ui .pricing-rates-section__body.settings-inner-box,
html body #tabContent .settings-tab-ui .payment-mode-card__body.settings-inner-box{
  margin:14px 16px;
  padding:14px;
}
html body #tabContent .settings-tab-ui .store-feature-pricing-card__grid.settings-inner-box,
html body #tabContent .settings-tab-ui .trial-ads-settings-body.settings-inner-box,
html body #tabContent .settings-tab-ui .category-visibility-body.settings-inner-box,
html body #tabContent .settings-tab-ui .payment-ad-control__body.settings-inner-box{
  margin:0;
  padding:14px;
}
html body #tabContent .settings-tab-ui .trial-ads-settings-body,
html body #tabContent .settings-tab-ui .category-visibility-body{
  margin-bottom:14px!important;
}
html body #tabContent .settings-tab-ui .trial-ads-settings-body .trial-ads-settings-check:first-child{
  padding-top:0;
}
html body #tabContent .settings-tab-ui .trial-ads-settings-check .sadaa-checkbox{margin:0}
html body #tabContent .settings-tab-ui .category-visibility-body .category-strip-setting{padding-top:0}
html body #tabContent .settings-tab-ui .payment-ad-control__body{margin:12px!important;padding:12px!important}
html body #tabContent .settings-tab-ui .payment-ad-control__actions{
  display:flex;
  justify-content:flex-end;
  padding:0 12px 12px;
}
html body #tabContent .settings-tab-ui .payment-ad-control__actions .sadaa-btn{margin:0}
html body #tabContent .settings-tab-ui .prune-confirm-label .sadaa-checkbox{margin:3px 0 0;flex:0 0 auto}

/* =========================================================
   Layout tab — same cards/section heads, only functional grid remains.
   ========================================================= */
html body #tabContent .settings-tab-ui .layout-tools{display:grid;gap:14px}
html body #tabContent .settings-tab-ui .layout-card.sadaa-card{
  padding:0;
  overflow:hidden;
  border-radius:var(--sadaa-radius-md,8px);
}
html body #tabContent .settings-tab-ui .layout-card__title.sadaa-section-head,
html body #tabContent .settings-tab-ui .layout-form-heading.sadaa-section-head{
  margin:0;
  border-radius:0;
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
}
html body #tabContent .settings-tab-ui .layout-card__title{
  justify-content:flex-start;
  font-size:14px;
  font-weight:600;
}
html body #tabContent .settings-tab-ui .layout-card__title i{color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4))}
html body #tabContent .settings-tab-ui .layout-filter-form{
  display:grid;
  grid-template-columns:180px minmax(260px,520px);
  gap:12px;
  align-items:center;
  padding:16px;
}
html body #tabContent .settings-tab-ui .layout-filter-form label{
  margin:0;
  font-size:13px;
  font-weight:500;
}
html body #tabContent .settings-tab-ui .layout-form-heading h3{margin:0;font-size:15px;font-weight:600}
html body #tabContent .settings-tab-ui .layout-form-heading p{margin:3px 0 0;color:var(--sadaa-muted,#6b7280);font-size:12px;line-height:1.7}
html body #tabContent .settings-tab-ui .layout-form-heading > span{
  flex:0 0 auto;
  min-height:28px;
  padding:4px 8px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:7px;
  background:var(--sadaa-surface,#fff);
  color:var(--sadaa-muted,#6b7280);
  font-size:11.5px;
}
html body #tabContent .settings-tab-ui .layout-selection-row{
  display:grid;
  grid-template-columns:minmax(360px,1.45fr) minmax(250px,1fr) minmax(250px,1fr);
  gap:10px;
  align-items:stretch;
  padding:14px 16px;
  border-bottom:1px solid var(--sadaa-line,#e5e7eb);
}
html body #tabContent .settings-tab-ui .layout-field--wide{min-width:0;padding:0;border:0}
html body #tabContent .settings-tab-ui .layout-field--wide label{display:block;margin:0 0 6px;font-size:14px;font-weight:600}
html body #tabContent .settings-tab-ui .layout-select-wrap{min-width:0}
html body #tabContent .settings-tab-ui .layout-select-wrap select{width:100%}
html body #tabContent .settings-tab-ui .layout-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid var(--sadaa-line,#e5e7eb);
}
html body #tabContent .settings-tab-ui .layout-check-card{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  min-height:68px;
  padding:10px 12px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:8px;
  background:var(--sadaa-surface,#fff);
  cursor:pointer;
}
html body #tabContent .settings-tab-ui .layout-selection-row .layout-check-card{align-self:end}
html body #tabContent .settings-tab-ui .layout-check-card:hover{background:var(--sadaa-surface-alt,#f8fafc)}
html body #tabContent .settings-tab-ui .layout-check-card strong{display:block;font-size:12.5px;font-weight:600}
html body #tabContent .settings-tab-ui .layout-check-card small{margin-top:2px}
html body #tabContent .settings-tab-ui .layout-empty-state{
  margin:16px;
  padding:22px 16px;
  text-align:center;
  border:1px dashed var(--sadaa-line-2,#d1d5db);
  border-radius:8px;
  background:var(--sadaa-surface-alt,#f8fafc);
  color:var(--sadaa-muted,#6b7280);
}
html body #tabContent .settings-tab-ui .layout-empty-state i{display:block;margin-bottom:7px;font-size:20px;color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4))}
html body #tabContent .settings-tab-ui .layout-empty-state strong{display:block;color:var(--sadaa-text,#111827);font-size:14px}
html body #tabContent .settings-tab-ui .layout-empty-state p{margin:3px 0 0;font-size:12px}
html body #tabContent .settings-tab-ui .layout-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
html body #tabContent .settings-tab-ui .layout-grid .layout-field{
  min-width:0;
  padding:14px 16px;
  border-inline-start:1px solid var(--sadaa-line,#e5e7eb);
}
html body #tabContent .settings-tab-ui .layout-grid .layout-field:first-child{border-inline-start:0}
html body #tabContent .settings-tab-ui .layout-grid .layout-field label{display:block;margin-bottom:6px;font-size:12.5px;font-weight:500}
html body #tabContent .settings-tab-ui .layout-input-with-unit{display:flex;direction:ltr}
html body #tabContent .settings-tab-ui .layout-input-with-unit input{border-radius:7px 0 0 7px;text-align:center}
html body #tabContent .settings-tab-ui .layout-input-with-unit span{
  display:flex;align-items:center;justify-content:center;min-width:42px;
  border:1px solid var(--sadaa-line,#e5e7eb);border-left:0;border-radius:0 7px 7px 0;
  background:var(--sadaa-surface-alt,#f8fafc);color:var(--sadaa-muted,#6b7280);font-size:11.5px;
}
html body #tabContent .settings-tab-ui .layout-actions{
  display:flex;justify-content:flex-end;padding:12px 16px;border-top:1px solid var(--sadaa-line,#e5e7eb);background:var(--sadaa-surface-alt,#f8fafc)
}

/* =========================================================
   Banner distribution — same data-surface language as admin tables.
   ========================================================= */
html body #tabContent .settings-tab-ui .manage-layout-header.sadaa-section-head{
  margin:0 0 10px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:var(--sadaa-radius-md,8px);
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
}
html body #tabContent .settings-tab-ui .manage-layout-header__copy h3{margin:0;font-size:15px;font-weight:600}
html body #tabContent .settings-tab-ui .manage-layout-header__copy p{margin:3px 0 0;color:var(--sadaa-muted,#6b7280);font-size:12px;line-height:1.7}
html body #tabContent .settings-tab-ui .settings-table-shell{
  margin:0;
  padding:14px;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
  border-radius:14px;
  background:var(--sadaa-surface-alt,#FDFDFF);
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035);
}
html body #tabContent .settings-tab-ui .positions-table-surface{overflow:hidden;border-radius:10px}
html body #tabContent .settings-tab-ui .settings-positions-table{width:100%;table-layout:fixed}
html body #tabContent .settings-tab-ui .settings-positions-table th{
  padding:12px 14px;
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
  color:var(--sadaa-admin-dark,var(--sadaa-text-2,#374151));
  font-size:13px;
  font-weight:600;
  text-align:center;
}
html body #tabContent .settings-tab-ui .settings-positions-table th:first-child{width:34%;text-align:right}
html body #tabContent .settings-tab-ui .settings-positions-table td{padding:9px 14px;font-size:13px;text-align:center}
html body #tabContent .settings-tab-ui .settings-positions-table td:first-child{text-align:right;font-weight:500}
html body #tabContent .settings-tab-ui .settings-positions-table input{
  width:118px;
  min-height:36px;
  padding:6px 8px;
  border-color:var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  text-align:center;
}
html body #tabContent .settings-tab-ui .settings-positions-table tbody tr:hover{background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#fbfdff))}
html body #tabContent .settings-tab-ui .positions-table-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 2px 0;
}
html body #tabContent .settings-tab-ui .manage-layout-stem-help{
  margin:0;
  padding:0;
  border:0;
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.7;
}
html body #tabContent .settings-tab-ui .positions-table-footer .sadaa-btn{flex:0 0 auto}
html body #tabContent .settings-tab-ui .prune-layout-form{
  margin-top:14px;padding:16px;border:1px solid var(--sadaa-danger-line,#fecaca);border-radius:var(--sadaa-radius-md,8px);background:var(--sadaa-danger-soft,#fff7f7)
}
html body #tabContent .settings-tab-ui .prune-select-label{display:block;margin-bottom:6px;font-size:13px;font-weight:500}
html body #tabContent .settings-tab-ui .prune-warning-box{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px}
html body #tabContent .settings-tab-ui .prune-confirm-label{display:flex;align-items:flex-start;gap:8px;color:var(--sadaa-danger,#b42318);font-size:12.5px;line-height:1.7}

/* =========================================================
   Pricing / payment / trial / categories
   كل البطاقات تستخدم نفس border/radius/surface المركزية.
   ========================================================= */
html body #tabContent .settings-tab-ui .settings-page-lead{
  margin:0 0 10px;
}
html body #tabContent .settings-tab-ui .settings-page-lead h3{margin:0;font-size:17px;font-weight:600}
html body #tabContent .settings-tab-ui .settings-page-lead p{margin:3px 0 0;color:var(--sadaa-muted,#6b7280);font-size:12.5px;line-height:1.75}
html body #tabContent .settings-tab-ui :is(.banner-pricing-equation,.pricing-rates-section,.store-feature-pricing-card,.trial-ads-settings-card,.category-visibility-card,.payment-mode-card,.payment-ad-control){
  margin:0 0 14px;
  padding:0;
  overflow:hidden;
  border-radius:var(--sadaa-radius-md,8px);
}
html body #tabContent .settings-tab-ui :is(.banner-pricing-equation__head,.pricing-rates-section__head,.store-feature-pricing-card__head,.trial-ads-settings-card__head,.category-visibility-card__head,.payment-mode-card__head){
  padding:14px 16px;
  border-bottom:1px solid var(--sadaa-line,#e5e7eb);
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
}
html body #tabContent .settings-tab-ui :is(.banner-pricing-equation__title,.pricing-rates-section__title,.store-feature-pricing-card__title,.trial-ads-settings-card__title,.category-visibility-card__title,.payment-mode-card__head h3){
  margin:0;font-size:15px;font-weight:600;line-height:1.55
}
html body #tabContent .settings-tab-ui :is(.banner-pricing-equation__intro,.pricing-rates-section__note,.store-feature-pricing-card__note,.trial-ads-settings-card__note,.category-visibility-card__note,.payment-mode-card__description){
  margin:3px 0 0;color:var(--sadaa-muted,#6b7280);font-size:12px;line-height:1.7
}
html body #tabContent .settings-tab-ui .banner-pricing-equation__body{padding:14px 16px}
html body #tabContent .settings-tab-ui .banner-pricing-equation__formula{padding:10px 12px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:7px;background:var(--sadaa-surface-alt,#f8fafc);font-size:12.5px}
html body #tabContent .settings-tab-ui .banner-pricing-equation__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:10px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:7px;overflow:hidden}
html body #tabContent .settings-tab-ui .banner-pricing-equation__step{padding:10px 12px;border-inline-start:1px solid var(--sadaa-line,#e5e7eb);font-size:11.5px}
html body #tabContent .settings-tab-ui .banner-pricing-equation__step:first-child{border-inline-start:0}
html body #tabContent .settings-tab-ui .banner-pricing-equation__step-number{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-bottom:6px;border-radius:50%;background:var(--sadaa-admin-soft,var(--sadaa-tint-2));color:var(--sadaa-admin-primary,var(--sadaa-primary));font-size:11px;font-weight:600}
html body #tabContent .settings-tab-ui .banner-pricing-equation__step strong,
html body #tabContent .settings-tab-ui .banner-pricing-equation__step span:not(.banner-pricing-equation__step-number){display:block;margin-top:2px}
html body #tabContent .settings-tab-ui .banner-pricing-equation__example{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:7px;overflow:hidden}
html body #tabContent .settings-tab-ui .banner-pricing-equation__example-card{padding:9px 12px;border-inline-start:1px solid var(--sadaa-line,#e5e7eb)}
html body #tabContent .settings-tab-ui .banner-pricing-equation__example-card:first-child{border-inline-start:0}
html body #tabContent .settings-tab-ui .banner-pricing-equation__example-label{display:block;color:var(--sadaa-muted,#6b7280);font-size:11px}
html body #tabContent .settings-tab-ui .banner-pricing-equation__example-value{display:block;margin-top:2px;font-size:12.5px;font-weight:600}
html body #tabContent .settings-tab-ui .banner-pricing-equation__note{margin:10px 0 0;color:var(--sadaa-muted,#6b7280);font-size:11.5px;line-height:1.7}
html body #tabContent .settings-tab-ui .pricing-rates-section__body,
html body #tabContent .settings-tab-ui .store-feature-pricing-card > form,
html body #tabContent .settings-tab-ui .trial-ads-settings-card > form,
html body #tabContent .settings-tab-ui .category-visibility-card > form{padding:16px}
html body #tabContent .settings-tab-ui .pricing-rate-grid,
html body #tabContent .settings-tab-ui .store-feature-pricing-card__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html body #tabContent .settings-tab-ui .banner-pricing-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
html body #tabContent .settings-tab-ui .banner-pricing-form .form-group{margin:0}
html body #tabContent .settings-tab-ui .banner-pricing-form label{display:block;margin-bottom:6px;font-size:13px;font-weight:500}
html body #tabContent .settings-tab-ui .store-feature-pricing-card__actions,
html body #tabContent .settings-tab-ui .trial-ads-settings-footer,
html body #tabContent .settings-tab-ui .category-visibility-footer{display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:12px;margin:14px -16px -16px;padding:12px 16px;border-top:1px solid var(--sadaa-line,#e5e7eb);background:var(--sadaa-surface-alt,#f8fafc)}
html body #tabContent .settings-tab-ui :is(.store-feature-pricing-card__tax-note,.trial-ads-settings-hint,.category-visibility-hint){color:var(--sadaa-muted,#6b7280);font-size:11.5px;line-height:1.65}

/* Payment */
html body #tabContent .settings-tab-ui .payment-gateway-settings > h2{display:none}
html body #tabContent .settings-tab-ui .payment-mode-card{padding:0;overflow:hidden}
html body #tabContent .settings-tab-ui .payment-mode-card__head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:14px 16px;border-bottom:1px solid var(--sadaa-line,#e5e7eb);
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
}
html body #tabContent .settings-tab-ui .payment-mode-card__head-main{display:flex;align-items:center;gap:12px;min-width:0}
html body #tabContent .settings-tab-ui .payment-mode-card__head-icon{flex:0 0 40px;width:40px;height:40px}
html body #tabContent .settings-tab-ui .payment-mode-card__head-main>div{min-width:0}
html body #tabContent .settings-tab-ui .payment-mode-card__eyebrow{display:block;margin:0 0 2px;color:var(--sadaa-muted,#6b7280);font-size:11px;font-weight:500}
html body #tabContent .settings-tab-ui .payment-mode-card__head h3{margin:0;font-size:15px;font-weight:600;line-height:1.55}
html body #tabContent .settings-tab-ui .payment-mode-card__head-copy{margin:3px 0 0;color:var(--sadaa-muted,#6b7280);font-size:11.5px;line-height:1.65}
html body #tabContent .settings-tab-ui .payment-mode-card__head-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}
html body #tabContent .settings-tab-ui .payment-provider-chip,
html body #tabContent .settings-tab-ui .payment-mode-status{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 9px;border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line,#e5e7eb));border-radius:999px;background:var(--sadaa-surface,#fff);color:var(--sadaa-text-2,#374151);font-size:11.5px;font-weight:600;white-space:nowrap}
html body #tabContent .settings-tab-ui .payment-mode-status.is-sandbox{color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));background:var(--sadaa-admin-soft,var(--sadaa-tint-2))}
html body #tabContent .settings-tab-ui .payment-mode-status.is-live{color:var(--sadaa-success,#067647);background:#f0fdf4;border-color:#bbf7d0}
html body #tabContent .settings-tab-ui .payment-mode-card__body{padding:16px}
html body #tabContent .settings-tab-ui .payment-mode-health{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0}
html body #tabContent .settings-tab-ui .payment-mode-health__item{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 12px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:8px;background:var(--sadaa-surface,#fff)}
html body #tabContent .settings-tab-ui .payment-mode-health__icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:var(--sadaa-surface-alt,#f8fafc);color:var(--sadaa-muted,#6b7280)}
html body #tabContent .settings-tab-ui .payment-mode-health__item.is-ready .payment-mode-health__icon{background:#f0fdf4;color:var(--sadaa-success,#067647)}
html body #tabContent .settings-tab-ui .payment-mode-health__item.is-missing .payment-mode-health__icon{background:#fff8eb;color:#9a6700}
html body #tabContent .settings-tab-ui .payment-mode-health__item>div{display:grid;gap:1px;min-width:0}
html body #tabContent .settings-tab-ui .payment-mode-health__item small{margin:0;color:var(--sadaa-muted,#6b7280);font-size:10.5px}
html body #tabContent .settings-tab-ui .payment-mode-health__item strong{font-size:12px;font-weight:600;color:var(--sadaa-text,#111827)}
html body #tabContent .settings-tab-ui .payment-mode-switch-panel{display:grid;grid-template-columns:minmax(190px,.42fr) minmax(0,1fr);gap:14px;align-items:center;margin-top:12px;padding:12px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:8px;background:var(--sadaa-surface-alt,#f8fafc)}
html body #tabContent .settings-tab-ui .payment-mode-switch-panel__copy{display:grid;gap:3px;align-content:center}
html body #tabContent .settings-tab-ui .payment-mode-switch-panel__copy strong{font-size:12.5px;font-weight:600}
html body #tabContent .settings-tab-ui .payment-mode-switch-panel__copy span{color:var(--sadaa-muted,#6b7280);font-size:11px;line-height:1.6}
html body #tabContent .settings-tab-ui .payment-mode-switch-form{padding:0;margin:0}
html body #tabContent .settings-tab-ui .payment-mode-switch-wrap{display:flex;align-items:center;justify-content:center;gap:14px;margin:0;padding:8px 10px;border:0;border-radius:7px;background:var(--sadaa-surface,#fff)}
html body #tabContent .settings-tab-ui .payment-mode-switch-label{display:grid;gap:1px;min-width:70px;text-align:center;font-size:11.5px;font-weight:600}
html body #tabContent .settings-tab-ui .payment-mode-switch-label small{margin:0;font-size:10px;font-weight:400}
html body #tabContent .settings-tab-ui .payment-mode-switch-lock-note{display:flex;align-items:center;gap:7px;margin:8px 0 0;padding:7px 9px;border-radius:7px;background:#fff8eb;color:#765b17;font-size:10.8px;line-height:1.55}
html body #tabContent .settings-tab-ui .geidea-test-card-box{margin:12px 0 0;padding:0;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:8px;background:var(--sadaa-surface,#fff);overflow:hidden}
html body #tabContent .settings-tab-ui .geidea-test-card-head{display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid var(--sadaa-line,#e5e7eb);background:var(--sadaa-surface-alt,#f8fafc)}
html body #tabContent .settings-tab-ui .geidea-test-card-icon{flex:0 0 34px;width:34px;height:34px}
html body #tabContent .settings-tab-ui .geidea-test-card-head>div{display:grid;gap:1px;min-width:0}
html body #tabContent .settings-tab-ui .geidea-test-card-eyebrow{display:block;color:var(--sadaa-muted,#6b7280);font-size:10.5px}
html body #tabContent .settings-tab-ui .geidea-test-card-head strong{font-size:12.5px;font-weight:600;line-height:1.55}
html body #tabContent .settings-tab-ui .geidea-test-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;margin:0}
html body #tabContent .settings-tab-ui .geidea-test-card-item{padding:10px 12px;border:0;border-inline-start:1px solid var(--sadaa-line,#e5e7eb);border-radius:0;background:var(--sadaa-surface,#fff);text-align:center}
html body #tabContent .settings-tab-ui .geidea-test-card-item:first-child{border-inline-start:0}
html body #tabContent .settings-tab-ui .geidea-test-card-item span{display:block;color:var(--sadaa-muted,#6b7280);font-size:10.5px}
html body #tabContent .settings-tab-ui .geidea-test-card-item code,
html body #tabContent .settings-tab-ui .geidea-test-card-item strong{display:block;margin-top:3px;font-size:11.5px;color:var(--sadaa-text,#111827)}
html body #tabContent .settings-tab-ui .geidea-test-card-note{display:flex;align-items:center;gap:6px;margin:0;padding:8px 12px;border-top:1px solid var(--sadaa-line,#e5e7eb);background:var(--sadaa-surface-alt,#f8fafc);color:var(--sadaa-muted,#6b7280);font-size:10.8px;line-height:1.55}
html body #tabContent .settings-tab-ui .payment-mode-note{display:flex;align-items:center;gap:7px;margin:12px 0 0;padding:8px 10px;border-radius:7px;background:var(--sadaa-surface-alt,#f8fafc);color:var(--sadaa-muted,#6b7280);font-size:11px;line-height:1.6}
html body #tabContent .settings-tab-ui .payment-mode-note.is-sandbox{background:var(--sadaa-admin-soft,var(--sadaa-tint-2));color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4))}
html body #tabContent .settings-tab-ui .payment-mode-note.is-live{background:#fff4f3;color:var(--sadaa-danger,#b42318)}
html body #tabContent .settings-tab-ui .payment-ad-control{padding:0;overflow:hidden}
html body #tabContent .settings-tab-ui .payment-ad-control h3{margin:0;padding:14px 16px;border-bottom:1px solid var(--sadaa-line,#e5e7eb);background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));font-size:15px;font-weight:600}
html body #tabContent .settings-tab-ui .payment-ad-control p{color:var(--sadaa-muted,#6b7280);font-size:12px;line-height:1.7}
html body #tabContent .settings-tab-ui .payment-ad-control .sadaa-btn{display:flex;width:max-content;margin-top:8px;margin-inline-start:auto;margin-inline-end:0}

/* VAT */
html body #tabContent .settings-tab-ui .vat-settings-box{margin:14px 16px 14px;border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));border-radius:10px;background:var(--sadaa-surface,#fff);overflow:hidden}
html body #tabContent .settings-tab-ui .vat-settings-box .vat-enable-row{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:54px;padding:12px 14px;border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));background:var(--sadaa-surface,#fff);font-size:13px;font-weight:600;line-height:1.4}
html body #tabContent .settings-tab-ui .vat-settings-box .vat-enable-row .sadaa-checkbox{margin:0;align-self:center}
html body #tabContent .settings-tab-ui .vat-settings-box .vat-enable-row span{display:block;line-height:1.4}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-form-grid{padding:14px}

/* Trial */
html body #tabContent .settings-tab-ui .trial-ads-settings-check{display:flex;align-items:center;gap:8px;padding:10px 0;font-size:12.5px;font-weight:500}
html body #tabContent .settings-tab-ui .trial-ads-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html body #tabContent .settings-tab-ui .trial-ads-settings-field label{display:block;margin-bottom:6px;font-size:12.5px;font-weight:500}
html body #tabContent .settings-tab-ui .trial-ads-settings-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}

/* Categories = same compact data-management language. */
html body #tabContent .settings-tab-ui .category-strip-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0 10px;border-bottom:0}
html body #tabContent .settings-tab-ui .category-strip-setting__title{display:block;font-size:12.5px;font-weight:600}
html body #tabContent .settings-tab-ui .category-strip-setting__note{display:block;margin-top:2px;color:var(--sadaa-muted,#6b7280);font-size:11.5px;line-height:1.6}
html body #tabContent .settings-tab-ui .category-strip-setting__toggle{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:500}
html body #tabContent .settings-tab-ui .category-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 0;padding:9px 10px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:8px;background:var(--sadaa-surface-alt,#f8fafc);box-shadow:none}
html body #tabContent .settings-tab-ui .category-bulk-toolbar__select-all{align-items:center;margin:0;font-size:12.5px;font-weight:600}
html body #tabContent .settings-tab-ui .category-bulk-toolbar__select-all .sadaa-checkbox{margin:0}
html body #tabContent .settings-tab-ui .category-bulk-toolbar__action{display:flex;align-items:center;gap:8px;min-width:min(100%,330px)}
html body #tabContent .settings-tab-ui .category-bulk-toolbar__action .sadaa-select-shell{flex:1 1 220px;min-width:0}
html body #tabContent .settings-tab-ui .category-bulk-toolbar__action .sadaa-btn{flex:0 0 auto;min-height:36px;padding:7px 12px}
html body #tabContent .settings-tab-ui .category-visibility-columns,
html body #tabContent .settings-tab-ui .category-visibility-item{display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,220px) 116px;gap:12px;align-items:center}
html body #tabContent .settings-tab-ui .category-visibility-columns{margin:8px -14px 0;padding:9px 14px;border-bottom:1px solid var(--sadaa-line,#e5e7eb);border-top:0;background:var(--sadaa-surface-alt,#f8fafc);font-size:11.5px;font-weight:600;color:var(--sadaa-text-2,#374151)}
html body #tabContent .settings-tab-ui .category-visibility-columns span:last-child{text-align:center}
html body #tabContent .settings-tab-ui .category-visibility-list{margin:0 -14px}
html body #tabContent .settings-tab-ui .category-visibility-item{padding:9px 14px;border-bottom:1px solid var(--sadaa-line,#e5e7eb)}
html body #tabContent .settings-tab-ui .category-visibility-item:last-child{border-bottom:0}
html body #tabContent .settings-tab-ui .category-visibility-item:hover{background:var(--sadaa-surface-alt,#f8fafc)}
html body #tabContent .settings-tab-ui .category-visibility-item__main,
html body #tabContent .settings-tab-ui .category-visibility-item__fields{display:contents}
html body #tabContent .settings-tab-ui .category-visibility-item__name-control{display:grid;grid-template-columns:18px 34px minmax(0,1fr);align-items:center;gap:9px;min-width:0}
html body #tabContent .settings-tab-ui .category-visibility-item__select{margin:0}
html body #tabContent .settings-tab-ui .category-visibility-item__icon-preview{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line-2));border-radius:7px;background:var(--sadaa-admin-soft,var(--sadaa-tint-2));color:var(--sadaa-admin-primary,var(--sadaa-primary));font-size:13px;overflow:hidden}
html body #tabContent .settings-tab-ui .category-visibility-item input[type="text"],
html body #tabContent .settings-tab-ui .category-visibility-item select{min-height:38px;padding:6px 9px;font-size:12.5px}
html body #tabContent .settings-tab-ui .category-visibility-item__toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;margin:0;padding:0 9px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:8px;background:var(--sadaa-surface,#fff);color:var(--sadaa-text-2,#374151);font-size:12px;font-weight:600;white-space:nowrap}
html body #tabContent .settings-tab-ui .category-visibility-item__toggle .sadaa-checkbox{margin:0}
html body #tabContent .settings-tab-ui .category-visibility-item__icon-preview i{display:block;line-height:1;font-size:13px;color:inherit;transform:translateY(-.5px)}
html body #tabContent .settings-tab-ui .category-visibility-item__toggle:has(.sadaa-checkbox:checked){border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2));background:var(--sadaa-admin-soft,var(--sadaa-tint-2));color:var(--sadaa-admin-primary,var(--sadaa-primary))}
html body #tabContent .settings-tab-ui .sadaa-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Flash/alerts */
html body #tabContent .settings-tab-ui :is(.layout-alert,.settings-flash){margin:0 0 12px;padding:10px 12px;border-radius:8px;font-size:12.5px;line-height:1.65}

/* =========================================================
   Responsive: نفس فلسفة لوحة الإدارة — لا هوية موازية.
   ========================================================= */
@media (max-width:1100px){
  html body #tabContent .settings-tab-ui .settings-subnav.sadaa-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  html body #tabContent .settings-tab-ui .layout-selection-row{grid-template-columns:1fr 1fr}
  html body #tabContent .settings-tab-ui .layout-selection-row .layout-field--wide{grid-column:1/-1}
  html body #tabContent .settings-tab-ui .layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #tabContent .settings-tab-ui .layout-grid .layout-field:nth-child(odd){border-inline-start:0}
  html body #tabContent .settings-tab-ui .layout-grid .layout-field:nth-child(n+3){border-top:1px solid var(--sadaa-line,#e5e7eb)}
  html body #tabContent .settings-tab-ui .banner-pricing-equation__steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #tabContent .settings-tab-ui .banner-pricing-equation__step:nth-child(odd){border-inline-start:0}
  html body #tabContent .settings-tab-ui .banner-pricing-equation__step:nth-child(n+3){border-top:1px solid var(--sadaa-line,#e5e7eb)}
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui .settings-inner-box,
  html body #tabContent .settings-tab-ui .settings-form-section > .settings-form-grid,
  html body #tabContent .settings-tab-ui .settings-side-form:not(.settings-vat-form) > .settings-form-grid,
  html body #tabContent .settings-tab-ui .layout-selection-row,
  html body #tabContent .settings-tab-ui .layout-grid{margin-inline:12px}
  html body #tabContent .settings-tab-ui .settings-nav-card.sadaa-card{padding:6px}
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  html body #tabContent .settings-tab-ui .layout-selection-row{grid-template-columns:1fr;padding:12px}
  html body #tabContent .settings-tab-ui .layout-selection-row .layout-field--wide{grid-column:auto}
  html body #tabContent .settings-tab-ui .positions-table-footer{align-items:stretch;flex-direction:column}
  html body #tabContent .settings-tab-ui .positions-table-footer .sadaa-btn{width:100%}
  html body #tabContent .settings-tab-ui .settings-subnav.sadaa-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body #tabContent .settings-tab-ui .settings-form-grid--2,
  html body #tabContent .settings-tab-ui .pricing-rate-grid,
  html body #tabContent .settings-tab-ui .store-feature-pricing-card__grid,
  html body #tabContent .settings-tab-ui .trial-ads-settings-grid,
  html body #tabContent .settings-tab-ui .trial-ads-settings-checks,
  html body #tabContent .settings-tab-ui .banner-pricing-equation__steps,
  html body #tabContent .settings-tab-ui .banner-pricing-equation__example{grid-template-columns:1fr}
  html body #tabContent .settings-tab-ui .settings-field--full{grid-column:auto}
  html body #tabContent .settings-tab-ui .layout-filter-form{grid-template-columns:1fr;gap:7px}
  html body #tabContent .settings-tab-ui .layout-options,
  html body #tabContent .settings-tab-ui .layout-grid{grid-template-columns:1fr}
  html body #tabContent .settings-tab-ui .layout-grid .layout-field:nth-child(n){border-inline-start:0;border-top:1px solid var(--sadaa-line,#e5e7eb)}
  html body #tabContent .settings-tab-ui .layout-grid .layout-field:first-child{border-top:0}
  html body #tabContent .settings-tab-ui .banner-pricing-equation__step:nth-child(n),
  html body #tabContent .settings-tab-ui .banner-pricing-equation__example-card:nth-child(n){border-inline-start:0;border-top:1px solid var(--sadaa-line,#e5e7eb)}
  html body #tabContent .settings-tab-ui .banner-pricing-equation__step:first-child,
  html body #tabContent .settings-tab-ui .banner-pricing-equation__example-card:first-child{border-top:0}
  html body #tabContent .settings-tab-ui .banner-pricing-form{grid-template-columns:1fr}
  html body #tabContent .settings-tab-ui .banner-pricing-form .sadaa-btn{width:100%}
  html body #tabContent .settings-tab-ui :is(.store-feature-pricing-card__actions,.trial-ads-settings-footer,.category-visibility-footer,.category-strip-setting,.prune-warning-box){align-items:stretch;flex-direction:column}
  html body #tabContent .settings-tab-ui .category-visibility-columns{display:none}
  html body #tabContent .settings-tab-ui .category-visibility-item{grid-template-columns:1fr;gap:8px}
  html body #tabContent .settings-tab-ui .category-visibility-item__main,
  html body #tabContent .settings-tab-ui .category-visibility-item__fields{display:block}
  html body #tabContent .settings-tab-ui .category-visibility-item__field{margin-bottom:8px}
  html body #tabContent .settings-tab-ui .category-visibility-item__toggle{justify-content:flex-start}
  html body #tabContent .settings-tab-ui .settings-positions-table{display:block;overflow-x:auto;white-space:nowrap}
  html body #tabContent .settings-tab-ui .geidea-test-card-grid{grid-template-columns:1fr}
}


/* Settings payment/categories responsive refinements */
@media (max-width: 900px){
  html body #tabContent .settings-tab-ui .payment-mode-card__head{align-items:flex-start;flex-direction:column}
  html body #tabContent .settings-tab-ui .payment-mode-card__head-meta{justify-content:flex-start}
  html body #tabContent .settings-tab-ui .payment-mode-switch-panel{grid-template-columns:1fr}
}
@media (max-width: 720px){
  html body #tabContent .settings-tab-ui .payment-mode-health,
  html body #tabContent .settings-tab-ui .geidea-test-card-grid{grid-template-columns:1fr}
  html body #tabContent .settings-tab-ui .geidea-test-card-item{border-inline-start:0;border-top:1px solid var(--sadaa-line,#e5e7eb)}
  html body #tabContent .settings-tab-ui .geidea-test-card-item:first-child{border-top:0}
  html body #tabContent .settings-tab-ui .category-bulk-toolbar{align-items:stretch;flex-direction:column}
  html body #tabContent .settings-tab-ui .category-bulk-toolbar__action{width:100%;min-width:0}
}

/* =========================================================
   Settings responsive cards — 320px to 1440px
   التصنيفات / توزيع البنرات / حقول هيرو الرئيسية
   ========================================================= */
@media (min-width:320px) and (max-width:1440px){
  /* الرئيسية: الحقول النصية تتمدد رأسيًا بدل حصر النص في سطر ثابت. */
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-hero-textarea{
    display:block;
    width:100%;
    box-sizing:border-box;
    height:auto !important;
    min-height:64px !important;
    padding:10px 12px !important;
    line-height:1.85 !important;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    resize:none;
    overflow:hidden;
    field-sizing:content;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-hero-textarea--description{
    min-height:82px !important;
  }

  /* التصنيفات: كل تصنيف بطاقة مستقلة ومكتفية بعناوين حقولها. */
  html body #tabContent .settings-tab-ui .category-visibility-columns{
    display:none !important;
  }
  html body #tabContent .settings-tab-ui .category-visibility-list{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin:12px 0 0 !important;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    margin:0 !important;
    padding:12px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:10px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.025);
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__field{
    min-width:0;
    margin:0 !important;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__field::before,
  html body #tabContent .settings-tab-ui .category-visibility-item__toggle::before{
    content:attr(data-label);
    display:block;
    margin:0 0 6px;
    color:var(--sadaa-muted,#6b7280);
    font-size:11.5px;
    font-weight:600;
    line-height:1.5;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__name-control{
    width:100%;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__toggle{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center !important;
    justify-content:start !important;
    column-gap:8px !important;
    row-gap:0 !important;
    min-height:0 !important;
    padding:9px 10px !important;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__toggle::before{
    grid-column:1/-1;
  }

  /* توزيع البنرات: تحويل صفوف الجدول إلى بطاقات مستقلة. */
  html body #tabContent .settings-tab-ui .positions-table-surface{
    overflow:visible !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table,
  html body #tabContent .settings-tab-ui .settings-positions-table tbody{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table tbody{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table tr:not([data-settings-row]){
    display:none !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row]{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    margin:0 !important;
    padding:12px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:10px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.025);
  }
  html body #tabContent .settings-tab-ui .settings-positions-table td{
    min-width:0 !important;
    box-sizing:border-box !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    text-align:inherit !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table td::before{
    content:attr(data-label);
    display:block;
    margin:0 0 6px;
    color:var(--sadaa-muted,#6b7280);
    font-size:11.5px;
    font-weight:600;
    line-height:1.5;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table td:first-child{
    color:var(--sadaa-text,#111827);
    font-weight:600;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table input[type="number"]{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box;
  }
}

@media (min-width:320px) and (max-width:1100px){
  html body #tabContent .settings-tab-ui .category-visibility-item,
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row]{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
}

@media (min-width:1101px) and (max-width:1440px){
  html body #tabContent .settings-tab-ui .category-visibility-item{
    display:grid !important;
    grid-template-columns:minmax(320px,1.5fr) minmax(210px,.75fr) minmax(120px,.35fr) !important;
    gap:12px !important;
    align-items:end !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row]{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px 14px !important;
  }
}

/* =========================================================
   Settings responsive cards v41 — split header/body (320–1440)
   ========================================================= */
@media (min-width:320px) and (max-width:1440px){
  /* ---------------------------------------------------------
     التصنيفات: رأس البطاقة = التحديد + الأيقونة + اسم التصنيف
     --------------------------------------------------------- */
  html body #tabContent .settings-tab-ui .category-visibility-item{
    overflow:hidden !important;
    padding:0 !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child{
    grid-column:1 / -1 !important;
    margin:0 !important;
    padding:11px 12px !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child::before{
    content:none !important;
    display:none !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__name-control{
    display:grid !important;
    grid-template-columns:18px 34px minmax(0,1fr) !important;
    align-items:center !important;
    gap:9px !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child .category-visibility-item__title-input{
    min-height:34px !important;
    padding:5px 8px !important;
    border-color:transparent !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--sadaa-text,#111827) !important;
    font-weight:700 !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child .category-visibility-item__title-input:hover,
  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child .category-visibility-item__title-input:focus{
    border-color:var(--sadaa-admin-soft-line,var(--sadaa-line,#e5e7eb)) !important;
    background:var(--sadaa-surface,#fff) !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:not(:first-child),
  html body #tabContent .settings-tab-ui .category-visibility-item__toggle{
    margin:0 12px !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__field:not(:first-child){
    margin-top:11px !important;
  }

  html body #tabContent .settings-tab-ui .category-visibility-item__toggle{
    margin-top:0 !important;
    margin-bottom:12px !important;
  }

  /* ---------------------------------------------------------
     توزيع البنرات: رأس البطاقة = اسم التصنيف فقط
     --------------------------------------------------------- */
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row]{
    overflow:hidden !important;
    padding:0 !important;
  }

  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:first-child{
    grid-column:1 / -1 !important;
    display:block !important;
    width:auto !important;
    margin:0 !important;
    padding:11px 12px !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    color:var(--sadaa-text,#111827) !important;
    font-size:13px !important;
    font-weight:700 !important;
    line-height:1.6 !important;
  }

  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:first-child::before{
    content:none !important;
    display:none !important;
  }

  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:not(:first-child){
    margin:0 12px !important;
  }

  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:nth-child(2){
    margin-top:11px !important;
  }

  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:last-of-type{
    margin-bottom:12px !important;
  }
}

@media (min-width:1101px) and (max-width:1440px){
  /* جسم بطاقة التصنيفات يبقى بعمودين بعد الرأس. */
  html body #tabContent .settings-tab-ui .category-visibility-item{
    grid-template-columns:minmax(220px,1fr) minmax(140px,.45fr) !important;
    gap:11px 12px !important;
  }
  html body #tabContent .settings-tab-ui .category-visibility-item__field:first-child{
    grid-column:1 / -1 !important;
  }

  /* جسم بطاقة توزيع البنرات عمودان بعد رأس التصنيف. */
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row]{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:11px 14px !important;
  }
  html body #tabContent .settings-tab-ui .settings-positions-table tr[data-settings-row] > td:first-child{
    grid-column:1 / -1 !important;
  }
}

/* =========================================================
   Settings responsive refinements v42 — 320–1440
   توزيع البنرات + التصنيفات
   ========================================================= */
@media (min-width:320px) and (max-width:1440px){
  /* توزيع البنرات: حاوية واحدة، ورأس القسم جزء منها. */
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-content-card{
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-table-shell{
    margin:0 !important;
    padding:0 12px 12px !important;
    overflow:hidden !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-table-shell > .manage-layout-header{
    margin:0 -12px 12px !important;
    padding:14px 16px !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .positions-table-surface{
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* كل حقل داخل بطاقة توزيع البنرات: العنوان يمين والقيمة يسار. */
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-positions-table tr[data-settings-row] > td:not(:first-child){
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(105px,42%) !important;
    align-items:center !important;
    gap:10px !important;
    direction:rtl !important;
    min-height:44px !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-positions-table tr[data-settings-row] > td:not(:first-child)::before{
    margin:0 !important;
    align-self:center !important;
    color:var(--sadaa-muted,#6b7280) !important;
    text-align:right !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="manage_layout"] .settings-positions-table tr[data-settings-row] > td:not(:first-child) > input[type="number"]{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    text-align:center !important;
  }

  /* التصنيفات: الحاوية نفسها تصبح رأسًا علويًا + جسم سفلي للبطاقات. */
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-body.settings-inner-box{
    padding:0 !important;
    overflow:hidden !important;
    border-radius:10px !important;
    background:var(--sadaa-surface,#fff) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:12px 16px !important;
    margin:0 !important;
    padding:14px 16px !important;
    border:0 !important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:0 !important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__title{
    color:var(--sadaa-text,#111827) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-bulk-toolbar{
    margin:12px 12px 0 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-list{
    margin:12px !important;
  }

  /* زر إظهار/إخفاء بدل Checkbox التقليدي لشريط التصنيفات. */
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__toggle{
    position:relative !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 !important;
    padding:0 !important;
    cursor:pointer !important;
    white-space:nowrap !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    margin:-1px !important;
    padding:0 !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
    border:0 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-track{
    position:relative !important;
    display:inline-block !important;
    width:44px !important;
    height:24px !important;
    flex:0 0 44px !important;
    border:1px solid var(--sadaa-line-2,#d1d5db) !important;
    border-radius:999px !important;
    background:var(--sadaa-tint-3,#f3f4f6) !important;
    transition:background-color .16s ease,border-color .16s ease !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-track::after{
    content:"" !important;
    position:absolute !important;
    top:3px !important;
    inset-inline-start:3px !important;
    width:16px !important;
    height:16px !important;
    border-radius:50% !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:0 1px 2px rgba(17,24,39,.18) !important;
    transition:transform .16s ease !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:checked + .category-strip-setting__switch-track{
    border-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
    background:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:checked + .category-strip-setting__switch-track::after{
    transform:translateX(-20px) !important;
  }
  html[dir="ltr"] body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:checked + .category-strip-setting__switch-track::after{
    transform:translateX(20px) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:focus-visible + .category-strip-setting__switch-track{
    outline:none !important;
    box-shadow:0 0 0 3px var(--sadaa-focus,rgba(var(--sadaa-primary-rgb),.13)) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-label::before{
    content:"إخفاء";
    color:var(--sadaa-muted,#6b7280);
    font-size:12px;
    font-weight:600;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:checked ~ .category-strip-setting__switch-label::before{
    content:"إظهار";
    color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  }
}

/* 375–1440: مربع الظهور ينتقل إلى رأس بطاقة التصنيف بجانب الأيقونة. */
html body #tabContent .settings-tab-ui .category-visibility-item__header-visibility{
  display:none;
}
html body #tabContent .settings-tab-ui .category-visibility-item__mobile-switch{
  display:none;
}
@media (min-width:769px) and (max-width:1440px){
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__name-control{
    grid-template-columns:18px 34px 18px minmax(0,1fr) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__header-visibility{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:18px !important;
    height:18px !important;
    margin:0 !important;
    cursor:pointer !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__header-visibility .sadaa-checkbox{
    margin:0 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__toggle{
    display:none !important;
  }
}

@media (min-width:320px) and (max-width:480px){
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting{
    grid-template-columns:1fr !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__toggle{
    justify-self:start !important;
  }
}

/* =========================================================
   Settings refinements v43 — trial / payment / VAT / pricing
   ========================================================= */

/* Central ON/OFF rows reused by settings tabs. */
html body #tabContent .settings-tab-ui .settings-switch-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  min-width:0;
  min-height:48px;
  box-sizing:border-box;
  margin:0 !important;
  padding:9px 11px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  border-radius:8px;
  background:var(--sadaa-surface,#fff);
  color:var(--sadaa-text,#111827);
  font-size:12.5px;
  font-weight:600;
  line-height:1.55;
}
html body #tabContent .settings-tab-ui .settings-switch-row__label{
  flex:1 1 auto;
  min-width:0;
}
html body #tabContent .settings-tab-ui .settings-switch-row .sadaa-switch__track{
  flex:0 0 var(--sadaa-switch-width);
}
html body #tabContent .settings-tab-ui .settings-switch-row__state{
  flex:0 0 28px;
  min-width:28px;
  color:var(--sadaa-muted,#6b7280);
  font-size:10px;
  font-weight:700;
  direction:ltr;
  text-align:center;
}
html body #tabContent .settings-tab-ui .settings-switch-row__state::before{content:"OFF"}
html body #tabContent .settings-tab-ui .settings-switch-row:has(.sadaa-switch__input:checked) .settings-switch-row__state{
  color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
}
html body #tabContent .settings-tab-ui .settings-switch-row:has(.sadaa-switch__input:checked) .settings-switch-row__state::before{content:"ON"}

/* Trial ads: keep all three boolean controls together. */
html body #tabContent .settings-tab-ui .trial-ads-settings-switches{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
html body #tabContent .settings-tab-ui .trial-ads-settings-switches .settings-switch-row{
  min-height:58px;
}

/* Payment availability uses the same central switch instead of a select. */
html body #tabContent .settings-tab-ui .payment-ad-control .settings-switch-row{
  display:flex !important;
  margin:0 !important;
}
html body #tabContent .settings-tab-ui .payment-ad-control__body > p{
  margin:8px 0 0 !important;
}

/* VAT header = icon + clear title/copy group. */
html body #tabContent .settings-tab-ui .settings-vat-head{
  justify-content:flex-start !important;
  align-items:flex-start !important;
  gap:10px !important;
}
html body #tabContent .settings-tab-ui .settings-vat-head__icon{
  flex:0 0 34px;
}
html body #tabContent .settings-tab-ui .settings-vat-head__copy{
  flex:1 1 auto;
  min-width:0;
}
html body #tabContent .settings-tab-ui .settings-vat-head__copy .settings-intro-title,
html body #tabContent .settings-tab-ui .settings-vat-head__copy .settings-intro-copy{
  width:100%;
}
html body #tabContent .settings-tab-ui .vat-settings-box .vat-enable-row.settings-switch-row{
  min-height:54px;
  padding:11px 14px !important;
  border:0;
  border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
  border-radius:0;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  padding:5px 7px;
  border:1px solid var(--sadaa-line-2,#d1d5db);
  border-radius:8px;
  background:var(--sadaa-tint-3,#f3f4f6);
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control:has(.sadaa-switch__input:checked){
  border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2));
  background:var(--sadaa-surface,#fff);
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .sadaa-switch__track{
  border-color:var(--sadaa-line-3,#cbd5e1);
  background:#d1d5db;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .sadaa-switch__input:checked + .sadaa-switch__track{
  border-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  background:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .settings-switch-row__state{
  direction:rtl;
  min-width:34px;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .settings-switch-row__state::before{content:"إخفاء"}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control:has(.sadaa-switch__input:checked) .settings-switch-row__state::before{content:"إظهار"}

/* 320–425: compact mobile treatment for trial, VAT and pricing. */
@media (min-width:320px) and (max-width:425px){
  /* Trial ads: switches stacked tightly and in the requested order. */
  html body #tabContent .settings-tab-ui .trial-ads-settings-switches{
    grid-template-columns:1fr !important;
    gap:6px !important;
    margin-top:9px !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-switches .settings-switch-row{
    min-height:46px !important;
    padding:8px 9px !important;
    font-size:12px !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-body.settings-inner-box{
    padding:10px !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-grid{
    gap:9px !important;
  }

  /* VAT: title gets its own line; description sits clearly below it. */
  html body #tabContent .settings-tab-ui .settings-vat-head{
    display:grid !important;
    grid-template-columns:30px minmax(0,1fr) !important;
    align-items:start !important;
    gap:8px 9px !important;
  }
  html body #tabContent .settings-tab-ui .settings-vat-head__icon{
    width:30px !important;
    height:30px !important;
    flex-basis:30px !important;
    border-radius:7px !important;
    font-size:12px !important;
  }
  html body #tabContent .settings-tab-ui .settings-vat-head__copy{
    min-width:0;
  }
  html body #tabContent .settings-tab-ui .settings-vat-head__copy .settings-intro-title{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    font-size:15px !important;
    line-height:1.5 !important;
  }
  html body #tabContent .settings-tab-ui .settings-vat-head__copy .settings-intro-copy{
    display:block !important;
    width:100% !important;
    margin:4px 0 0 !important;
    font-size:11.5px !important;
    line-height:1.75 !important;
  }

  /* Pricing: remove dead vertical space from the two rate forms. */
  html body #tabContent .settings-tab-ui .pricing-rates-section__body.settings-inner-box{
    padding:10px !important;
  }
  html body #tabContent .settings-tab-ui .pricing-rate-grid{
    align-items:start !important;
    align-content:start !important;
    gap:9px !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form{
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    gap:8px !important;
    align-items:stretch !important;
    align-content:start !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form .form-group{
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form label{
    margin:0 0 5px !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form .sadaa-btn{
    margin:0 !important;
  }

  /* Pricing equation icon: compact, aligned and visually tied to the heading. */
  html body #tabContent .settings-tab-ui .banner-pricing-equation__head{
    display:grid !important;
    grid-template-columns:34px minmax(0,1fr) !important;
    align-items:start !important;
    gap:9px !important;
    padding:12px !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__head > div{
    min-width:0 !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__icon{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    margin:0 !important;
    border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:8px !important;
    background:var(--sadaa-surface,#fff) !important;
    color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
    font-size:13px !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__title{
    margin:0 !important;
    font-size:14px !important;
    line-height:1.55 !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__intro{
    margin-top:3px !important;
    font-size:11.5px !important;
    line-height:1.7 !important;
  }
}

/* Payment environment: prevent overflow on the 320px viewport. */
@media (min-width:320px) and (max-width:340px){
  html body #tabContent .settings-tab-ui .payment-mode-switch-panel{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    padding:9px !important;
    gap:8px !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-switch-form{
    width:100% !important;
    min-width:0 !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-switch-wrap{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    gap:5px !important;
    padding:7px 5px !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-switch-label{
    min-width:0 !important;
    width:auto !important;
    font-size:10.5px !important;
    line-height:1.35 !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-switch-label small{
    font-size:9px !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-toggle.sadaa-switch--lg{
    --sadaa-switch-width:52px;
    --sadaa-switch-height:30px;
    --sadaa-switch-thumb:22px;
    --sadaa-switch-pad:4px;
    --sadaa-switch-travel:22px;
  }
  html body #tabContent .settings-tab-ui .payment-mode-switch-lock-note{
    min-width:0 !important;
    overflow-wrap:anywhere !important;
    padding:7px 8px !important;
    font-size:10px !important;
  }
}

/* =========================================================
   Settings visual v44 — icon unification + compact mobile heads
   ========================================================= */
html body #tabContent .settings-tab-ui .settings-card-head-main{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  width:100%;
}
html body #tabContent .settings-tab-ui .settings-card-head-copy{
  flex:1 1 auto;
  min-width:0;
}
html body #tabContent .settings-tab-ui .settings-card-head-copy > :is(h2,h3,p),
html body #tabContent .settings-tab-ui .pricing-rates-section__head .settings-card-head-copy > :is(h3,p),
html body #tabContent .settings-tab-ui .store-feature-pricing-card__head .settings-card-head-copy > :is(h3,p),
html body #tabContent .settings-tab-ui .trial-ads-settings-card__head .settings-card-head-copy > :is(h2,p),
html body #tabContent .settings-tab-ui .category-visibility-card__head .settings-card-head-copy > :is(h2,p),
html body #tabContent .settings-tab-ui .manage-layout-header .settings-card-head-copy > :is(h3,p),
html body #tabContent .settings-tab-ui .layout-form-heading .settings-card-head-copy > :is(h3,p){
  width:100%;
}
html body #tabContent .settings-tab-ui :is(.settings-card-head-icon,.banner-pricing-equation__icon,.payment-mode-card__head-icon,.settings-vat-head__icon){
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line,var(--sadaa-line-2)));
  border-radius:10px;
  background:var(--sadaa-surface,#fff);
  color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035);
  font-size:14px;
}
html body #tabContent .settings-tab-ui :is(.settings-card-head-icon,.banner-pricing-equation__icon,.payment-mode-card__head-icon,.settings-vat-head__icon) i{
  font-size:1em;
}
html body #tabContent .settings-tab-ui .banner-pricing-equation__head,
html body #tabContent .settings-tab-ui .pricing-rates-section__head,
html body #tabContent .settings-tab-ui .store-feature-pricing-card__head,
html body #tabContent .settings-tab-ui .trial-ads-settings-card__head,
html body #tabContent .settings-tab-ui .category-visibility-card__head{
  align-items:flex-start;
}
html body #tabContent .settings-tab-ui .store-feature-pricing-card__title,
html body #tabContent .settings-tab-ui .category-visibility-card__title,
html body #tabContent .settings-tab-ui .trial-ads-settings-card__title,
html body #tabContent .settings-tab-ui .pricing-rates-section__title,
html body #tabContent .settings-tab-ui .banner-pricing-equation__title{
  margin:0;
}
html body #tabContent .settings-tab-ui .settings-inline-heading{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
html body #tabContent .settings-tab-ui .settings-inline-heading__icon{
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line,var(--sadaa-line-2)));
  border-radius:8px;
  background:var(--sadaa-surface,#fff);
  color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.03);
  font-size:12px;
}
html body #tabContent .settings-tab-ui .settings-inline-heading__icon i{font-size:1em}
html body #tabContent .settings-tab-ui .category-strip-setting__heading{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
html body #tabContent .settings-tab-ui .category-strip-setting__text{
  min-width:0;
}
html body #tabContent .settings-tab-ui .payment-provider-chip,
html body #tabContent .settings-tab-ui .payment-mode-status{
  line-height:1;
}
html body #tabContent .settings-tab-ui .payment-ad-control h3 .settings-inline-heading{
  display:flex;
}
html body #tabContent .settings-tab-ui .payment-ad-control h3 .settings-inline-heading span:last-child{
  min-width:0;
}
html body #tabContent .settings-tab-ui .layout-form-heading .settings-card-head-main{
  flex:1 1 auto;
}
html body #tabContent .settings-tab-ui .manage-layout-header .settings-card-head-main{
  align-items:flex-start;
}
html body #tabContent .settings-tab-ui .manage-layout-header .settings-card-head-copy h3,
html body #tabContent .settings-tab-ui .layout-form-heading .settings-card-head-copy h3{
  margin:0;
  font-size:15px;
  font-weight:600;
  line-height:1.55;
}
html body #tabContent .settings-tab-ui .manage-layout-header .settings-card-head-copy p,
html body #tabContent .settings-tab-ui .layout-form-heading .settings-card-head-copy p{
  margin:3px 0 0;
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.75;
}

@media (min-width:320px) and (max-width:425px){
  html body #tabContent .settings-tab-ui .settings-card-head-main,
  html body #tabContent .settings-tab-ui .payment-mode-card__head-main,
  html body #tabContent .settings-tab-ui .settings-vat-head{
    display:grid !important;
    grid-template-columns:32px minmax(0,1fr) !important;
    align-items:start !important;
    gap:8px 10px !important;
  }
  html body #tabContent .settings-tab-ui :is(.settings-card-head-icon,.banner-pricing-equation__icon,.payment-mode-card__head-icon,.settings-vat-head__icon){
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    flex-basis:32px !important;
    border-radius:9px !important;
    font-size:12px !important;
  }
  html body #tabContent .settings-tab-ui .settings-card-head-copy > :is(h2,h3,p),
  html body #tabContent .settings-tab-ui .payment-mode-card__head-main > div > :is(h3,p,span),
  html body #tabContent .settings-tab-ui .settings-vat-head__copy > :is(h2,p){
    display:block !important;
    width:100% !important;
  }
  html body #tabContent .settings-tab-ui .settings-card-head-copy > :is(h2,h3),
  html body #tabContent .settings-tab-ui .payment-mode-card__head-main > div > h3,
  html body #tabContent .settings-tab-ui .settings-vat-head__copy > h2{
    margin:0 !important;
    font-size:15px !important;
    line-height:1.55 !important;
  }
  html body #tabContent .settings-tab-ui .settings-card-head-copy > p,
  html body #tabContent .settings-tab-ui .payment-mode-card__head-main > div > p,
  html body #tabContent .settings-tab-ui .settings-vat-head__copy > p,
  html body #tabContent .settings-tab-ui .manage-layout-header .settings-card-head-copy p,
  html body #tabContent .settings-tab-ui .layout-form-heading .settings-card-head-copy p{
    margin:4px 0 0 !important;
    font-size:11.5px !important;
    line-height:1.75 !important;
  }
  html body #tabContent .settings-tab-ui .settings-form-card-head.sadaa-section-head,
  html body #tabContent .settings-tab-ui .settings-form-section__head.sadaa-section-head,
  html body #tabContent .settings-tab-ui .payment-mode-card__head,
  html body #tabContent .settings-tab-ui .manage-layout-header,
  html body #tabContent .settings-tab-ui .layout-form-heading{
    padding:12px !important;
  }
  html body #tabContent .settings-tab-ui .payment-mode-card__head-meta{
    width:100%;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:6px !important;
  }
  html body #tabContent .settings-tab-ui .payment-provider-chip,
  html body #tabContent .settings-tab-ui .payment-mode-status{
    min-height:32px !important;
    padding:6px 10px !important;
    font-size:11px !important;
  }
  html body #tabContent .settings-tab-ui .payment-ad-control h3{
    line-height:1.55 !important;
  }
  html body #tabContent .settings-tab-ui .category-strip-setting__heading{
    align-items:flex-start;
  }
}

/* v45 — Categories card bottom breathing room (375–1440) */
@media (min-width:375px) and (max-width:1440px){
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__field:not(:first-child){
    margin-bottom:12px !important;
  }
}


/* =========================================================
   Settings refinements v46 — general / manage-layout / payment / VAT / categories
   ========================================================= */
@media (min-width:320px) and (max-width:768px){
  /* Payment: badges begin on the same inline edge as the description copy. */
  html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-mode-card__head-meta{
    width:calc(100% - 42px) !important;
    margin-inline-start:42px !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:6px !important;
  }
}

@media (min-width:375px) and (max-width:768px){
  /* Category strip switch: bordered button, neutral gray while hidden. */
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__toggle{
    padding:5px 7px !important;
    border:1px solid var(--sadaa-line-2,#d1d5db) !important;
    border-radius:8px !important;
    background:var(--sadaa-tint-3,#f3f4f6) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__toggle:has(.category-strip-setting__switch-input:checked){
    border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2)) !important;
    background:var(--sadaa-surface,#fff) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-track{
    border-color:var(--sadaa-line-3,#cbd5e1) !important;
    background:#d1d5db !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-input:checked + .category-strip-setting__switch-track{
    border-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
    background:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
  }

  /* Each category card: icon selector + ON/OFF visibility control share one row. */
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item{
    grid-template-columns:minmax(0,1fr) auto !important;
    column-gap:8px !important;
    row-gap:0 !important;
    align-items:stretch !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__field:first-child{
    grid-column:1 / -1 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__name-control{
    grid-template-columns:18px 34px minmax(0,1fr) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__header-visibility{
    display:none !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__field:nth-child(2){
    grid-column:1 !important;
    margin-block:11px 12px !important;
    margin-inline-start:12px !important;
    margin-inline-end:0 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch{
    --sadaa-switch-width:40px;
    --sadaa-switch-height:22px;
    --sadaa-switch-thumb:14px;
    --sadaa-switch-pad:3px;
    --sadaa-switch-travel:18px;
    grid-column:2 !important;
    display:inline-flex !important;
    align-self:end !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    margin-block:11px 12px !important;
    margin-inline-start:0 !important;
    margin-inline-end:12px !important;
    padding:7px 8px !important;
    border:1px solid var(--sadaa-line-2,#d1d5db) !important;
    border-radius:8px !important;
    background:var(--sadaa-tint-3,#f3f4f6) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch:has(.sadaa-switch__input:checked){
    border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2)) !important;
    background:var(--sadaa-surface,#fff) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch .sadaa-switch__track{
    border-color:var(--sadaa-line-3,#cbd5e1) !important;
    background:#d1d5db !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch .sadaa-switch__input:checked + .sadaa-switch__track{
    border-color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
    background:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch-state{
    min-width:34px;
    color:var(--sadaa-muted,#6b7280);
    font-size:10.5px;
    font-weight:700;
    line-height:1;
    text-align:center;
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch-state::before{content:"إخفاء"}
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch:has(.sadaa-switch__input:checked) .category-visibility-item__mobile-switch-state{
    color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4));
  }
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch:has(.sadaa-switch__input:checked) .category-visibility-item__mobile-switch-state::before{content:"إظهار"}
  html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__toggle{
    display:none !important;
  }
}

/* =========================================================
   Settings refinements v47 — precise corrections after V46
   ========================================================= */

/* General: keep the soft background container, remove only the inner white card shell. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
  padding:14px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:14px !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section.sadaa-card{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section__head.sadaa-section-head{
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:10px !important;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section > .settings-form-grid{
  margin:12px 0 0 !important;
}

/* Payment: remove the accumulated outer whitespace around the availability panel. */
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__body.settings-inner-box{
  margin:8px !important;
  padding:8px !important;
}
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__actions{
  padding:0 8px 8px !important;
}
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control .settings-switch-row{
  width:100% !important;
  box-sizing:border-box !important;
}

/* ON/OFF controls: give the state label and switch real breathing room. */
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control{
  min-width:104px !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:6px 10px !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .settings-switch-row__state{
  min-width:38px !important;
  margin:0 !important;
}
html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__toggle{
  min-width:104px !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:6px 10px !important;
}
html body #tabContent .settings-tab-ui[data-sub="categories"] .category-strip-setting__switch-label{
  min-width:38px !important;
  margin:0 !important;
  text-align:center !important;
}
html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch{
  min-width:104px !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:6px 10px !important;
}
html body #tabContent .settings-tab-ui[data-sub="categories"] .category-visibility-item__mobile-switch-state{
  min-width:38px !important;
  margin:0 !important;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
    padding:10px !important;
    border-radius:12px !important;
    background:var(--sadaa-surface-alt,#FDFDFF) !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  }
}

/* =========================================================
   Settings refinements v48 — exact shell/spacing/switch fixes
   ========================================================= */

/* General: keep the rear soft container, remove the white inner content panel. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
  padding:14px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:14px !important;
  background:var(--sadaa-surface-alt,#FDFDFF) !important;
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section.sadaa-card{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section > .settings-form-grid{
  margin:12px 0 0 !important;
  padding:12px 0 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Payment availability: restore inner padding, reduce only the outer horizontal gap. */
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__body.settings-inner-box{
  margin:12px 0 0 !important;
  padding:12px !important;
  border-inline:0 !important;
  border-radius:0 !important;
}
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__actions{
  padding:12px 12px 12px !important;
}

/* VAT switch: compact horizontal control with a clear state label and breathing room. */
html body #tabContent .settings-tab-ui .vat-settings-box .vat-enable-row.settings-switch-row{
  align-items:center !important;
  gap:14px !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control{
  --sadaa-switch-width:42px;
  --sadaa-switch-height:24px;
  --sadaa-switch-thumb:16px;
  --sadaa-switch-pad:3px;
  --sadaa-switch-travel:18px;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:nowrap !important;
  gap:9px !important;
  min-width:0 !important;
  min-height:36px !important;
  padding:5px 9px !important;
  border:1px solid var(--sadaa-line-2,#d1d5db) !important;
  border-radius:8px !important;
  background:var(--sadaa-tint-3,#f3f4f6) !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control:has(.sadaa-switch__input:checked){
  border-color:var(--sadaa-admin-soft-line,var(--sadaa-line-2)) !important;
  background:var(--sadaa-surface,#fff) !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .sadaa-switch__track{
  flex:0 0 var(--sadaa-switch-width) !important;
  margin:0 !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control .settings-switch-row__state{
  flex:0 0 auto !important;
  min-width:34px !important;
  margin:0 !important;
  color:var(--sadaa-muted,#6b7280) !important;
  font-size:10.5px !important;
  font-weight:700 !important;
  line-height:1 !important;
  text-align:center !important;
  white-space:nowrap !important;
}
html body #tabContent .settings-tab-ui .vat-settings-box .settings-switch-control:has(.sadaa-switch__input:checked) .settings-switch-row__state{
  color:var(--sadaa-admin-primary,var(--sadaa-primary,#5E6EA4)) !important;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
    padding:10px !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section > .settings-form-grid{
    margin-top:10px !important;
    padding-top:10px !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__body.settings-inner-box{
    margin-top:10px !important;
    padding:12px !important;
  }
}

/* =========================================================
   Settings refinements v49 — exact general shell + payment outer gap
   ========================================================= */

/* General: remove the front content shell entirely; keep the dashboard rear container. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Payment availability: restore the original inner breathing room, reduce only the outer gap. */
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__body.settings-inner-box{
  margin:12px 8px 10px !important;
  padding:14px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
  border-radius:10px !important;
  background:var(--sadaa-surface,#fff) !important;
  box-shadow:none !important;
}
html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__actions{
  padding:0 8px 10px !important;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="payment_gateways"] .payment-ad-control__body.settings-inner-box{
    margin:10px 8px 10px !important;
    padding:14px !important;
  }
}

/* =========================================================
   Settings refinements v50 — remove the actual middle box on General
   ========================================================= */

/* Rear container: restore and keep it as the only visible shell. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
  padding:14px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:14px !important;
  background:var(--sadaa-surface-alt,#FDFDFF) !important;
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
}

/* Middle white card: remove its generated box entirely, not just its paint. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section.sadaa-card{
  display:contents !important;
}

/* Inner form grids stay transparent and borderless. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section > .settings-form-grid{
  margin:12px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Preserve visual separation between the two General sections after flattening the middle box. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section--divided > .settings-form-section__head{
  margin-top:14px !important;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-content-card{
    padding:10px !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
    border-radius:12px !important;
    background:var(--sadaa-surface-alt,#FDFDFF) !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section > .settings-form-grid{
    margin-top:10px !important;
    padding:0 !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-form-section--divided > .settings-form-section__head{
    margin-top:12px !important;
  }
}

/* =========================================================
   Settings visual v51 — General shell replacement (structural)
   The General form replaces the former outer content wrapper.
   ========================================================= */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:14px !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:14px !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:14px !important;
  background:var(--sadaa-surface-alt,#FDFDFF) !important;
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
}

/* The old white section boxes no longer act as shells; they are simple content groups. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell > .settings-form-section.sadaa-card{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:visible !important;
}

/* Keep each section head as the visual separator, directly inside the new main shell. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell .settings-form-section__head.sadaa-section-head{
  margin:0 !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:10px !important;
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc)) !important;
}

/* The field layer remains transparent and borderless, directly under its section head. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell .settings-form-section > .settings-form-grid{
  margin:12px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell .settings-form-section--divided > .settings-form-section__head{
  margin-top:0 !important;
}

/* Actions belong to the replacement shell, without creating another full-width box. */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell > .settings-form-actions{
  margin:0 -14px -14px !important;
  padding:12px 14px !important;
  border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  background:var(--sadaa-surface-alt,#FDFDFF) !important;
}

html body #tabContent .settings-tab-ui[data-readonly="1"][data-sub="general"] .settings-general-shell{
  pointer-events:none;
  opacity:.72;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell{
    gap:12px !important;
    padding:10px !important;
    border-radius:12px !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell .settings-form-section > .settings-form-grid{
    margin-top:10px !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell > .settings-form-actions{
    margin-inline:-10px !important;
    margin-bottom:-10px !important;
    padding:12px 10px !important;
  }
}

/* =========================================================
   Settings visual v53 — General shell white surface + clean corners
   ========================================================= */
html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell{
  background:#fff !important;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:14px !important;
  overflow:hidden !important;
  box-shadow:0 1px 2px rgba(var(--sadaa-shadow-rgb,17,24,39),.035) !important;
}

html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell > .settings-form-actions{
  margin:0 -14px -14px !important;
  padding:12px 14px !important;
  border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  border-radius:0 0 13px 13px !important;
  background:var(--sadaa-surface-alt,#FDFDFF) !important;
  box-sizing:border-box !important;
}

@media (max-width:720px){
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell{
    background:#fff !important;
    border-radius:12px !important;
    overflow:hidden !important;
  }
  html body #tabContent .settings-tab-ui[data-sub="general"] .settings-general-shell > .settings-form-actions{
    margin:0 -10px -10px !important;
    padding:12px 10px !important;
    border-radius:0 0 11px 11px !important;
  }
}

/* =========================================================
   V55 — 768–1024px refinements for Trial Ads + Pricing.
   ========================================================= */
@media (min-width:721px) and (max-width:1024px){
  /* Trial ads: switches on the right, fields on the left. */
  html body #tabContent .settings-tab-ui .trial-ads-settings-body.settings-inner-box{
    display:grid !important;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr) !important;
    grid-template-areas:"fields switches" !important;
    gap:14px !important;
    align-items:start !important;
    padding:14px !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-grid{
    grid-area:fields;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin:0 !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-field{
    padding:12px 14px;
    border:1px solid var(--sadaa-line,#e5e7eb);
    border-radius:10px;
    background:var(--sadaa-surface,#fff);
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-field label{
    margin:0 0 7px !important;
    font-size:12.75px !important;
    line-height:1.55 !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-switches{
    grid-area:switches;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin:0 !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-switches .settings-switch-row{
    min-height:72px !important;
    padding:12px 14px !important;
    border:1px solid var(--sadaa-line,#e5e7eb) !important;
    border-radius:10px !important;
    background:var(--sadaa-surface,#fff) !important;
    box-shadow:none !important;
  }
  html body #tabContent .settings-tab-ui .trial-ads-settings-switches .settings-switch-row__label{
    line-height:1.6 !important;
  }

  /* Pricing rates: image card on the right, video card on the left. */
  html body #tabContent .settings-tab-ui .pricing-rates-section__body.settings-inner-box{
    padding:14px !important;
  }
  html body #tabContent .settings-tab-ui .pricing-rate-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-areas:"video image" !important;
    gap:12px !important;
    align-items:stretch !important;
  }
  html body #tabContent .settings-tab-ui .pricing-rate-grid > .banner-pricing-form:first-child{grid-area:image}
  html body #tabContent .settings-tab-ui .pricing-rate-grid > .banner-pricing-form:last-child{grid-area:video}
  html body #tabContent .settings-tab-ui .banner-pricing-form{
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:start !important;
    padding:14px !important;
    border:1px solid var(--sadaa-line,#e5e7eb);
    border-radius:10px;
    background:var(--sadaa-surface,#fff);
    min-height:100%;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form .form-group{
    margin:0 !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form label{
    margin:0 0 7px !important;
    line-height:1.7 !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-form .sadaa-btn{
    width:100% !important;
    justify-content:center !important;
    margin:0 !important;
  }

  /* Pricing equation: tighten and anchor the icon more cleanly. */
  html body #tabContent .settings-tab-ui .banner-pricing-equation__head{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    gap:12px !important;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__head > div{
    flex:1 1 auto;
    min-width:0;
  }
  html body #tabContent .settings-tab-ui .banner-pricing-equation__icon{
    align-self:flex-start !important;
    margin:1px 0 0 !important;
  }
}

/* =========================================================
   V57 — Settings subnav breathing room at laptop / 1440px.
   11 tabs => 7 on the first row + 4 on the second row.
   ========================================================= */
@media (min-width:1101px) and (max-width:1440px){
  html body #tabContent .settings-tab-ui .settings-subnav.sadaa-tabs{
    grid-template-columns:repeat(7,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  html body #tabContent .settings-tab-ui .settings-subnav .sadaa-tab{
    min-width:0 !important;
    padding-inline:10px !important;
  }
}

/* =========================================================
   Member / My Stores — Featured service info trigger + modal
   Page-scoped to avoid affecting any other member tab.
   ========================================================= */
body.sadaa-modal-open{overflow:hidden}
.member-stores-page .member-stores-feature-heading{
  display:inline-flex;
  align-items:center;
  gap:4px;
  vertical-align:middle;
}
.member-stores-page .member-stores-feature-info-trigger{
  width:14px;
  height:14px;
  min-width:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #fdba74;
  border-radius:50%;
  background:#fff7ed;
  color:#ea580c;
  font-size:6px;
  line-height:1;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.member-stores-page .member-stores-feature-info-trigger:hover{
  border-color:#fb923c;
  background:#ffedd5;
  color:#c2410c;
}
.member-stores-page .member-stores-feature-info-trigger:focus-visible{
  outline:none;
  border-color:#f97316;
  box-shadow:0 0 0 2px rgba(249,115,22,.18);
}
.member-stores-page .member-stores-feature-info-trigger:active{transform:scale(.96)}
.member-stores-page .member-stores-feature-info-trigger i{margin:0;line-height:1}

.member-store-feature-info-modal .member-store-feature-info-heading{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.member-store-feature-info-modal .member-store-feature-info-icon{
  width:36px;
  height:36px;
  min-width:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #fdba74;
  border-radius:50%;
  background:#fff7ed;
  color:#ea580c;
  font-size:13px;
}
.member-store-feature-info-modal .member-store-feature-benefits{
  display:grid;
  gap:10px;
}
.member-store-feature-info-modal .member-store-feature-benefit{
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:9px;
  background:var(--sadaa-surface,#fff);
}
.member-store-feature-info-modal .member-store-feature-benefit__icon{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:rgba(var(--sadaa-primary-rgb),.08);
  color:var(--sadaa-primary,#5E6EA4);
  font-size:13px;
}
.member-store-feature-info-modal .member-store-feature-benefit strong{
  display:block;
  margin:0;
  color:var(--sadaa-text,#111827);
  font-size:13.5px;
  font-weight:600;
  line-height:1.65;
}
.member-store-feature-info-modal .member-store-feature-benefit p{
  margin:3px 0 0;
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.8;
}
.member-store-feature-info-modal .member-store-feature-benefits-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:12px 0 0;
  padding:10px 11px;
  border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line,#e5e7eb));
  border-radius:8px;
  background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc));
  color:var(--sadaa-text-2,#4b5563);
  font-size:11.5px;
  line-height:1.75;
}
.member-store-feature-info-modal .member-store-feature-benefits-note > i{
  margin-top:4px;
  color:var(--sadaa-primary,#5E6EA4);
}

@media (max-width:600px){
  .member-stores-page .member-stores-feature-heading{gap:4px}
  .member-stores-page .member-stores-feature-info-trigger{
    width:14px;
    height:14px;
    min-width:14px;
    font-size:6px;
  }
  .member-store-feature-info-modal .sadaa-modal__dialog{
    border-radius:12px;
  }
  .member-store-feature-info-modal .member-store-feature-benefit{
    grid-template-columns:32px minmax(0,1fr);
    gap:9px;
    padding:11px;
  }
  .member-store-feature-info-modal .member-store-feature-benefit__icon{
    width:32px;
    height:32px;
    border-radius:8px;
    font-size:12px;
  }
}

/* SADAA V70 — home screen install (mobile/tablet; centralized components) */
.main-header .site-share-install[hidden],
.main-footer .sadaa-footer-install[hidden],
.sadaa-install-dialog[hidden] { display:none !important; }
.main-header .site-share-install i {
  color:var(--sadaa-primary,#5E6EA4);
  background:rgba(var(--sadaa-primary-rgb, 94,110,164),.08);
  border-color:rgba(var(--sadaa-primary-rgb, 94,110,164),.16);
}
.main-footer .footer-links nav button.sadaa-footer-install {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:6px 18px 6px 8px;
  color:var(--footer-text,inherit);
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(var(--sadaa-brand-deep-rgb,44,27,74),.065);
  font:inherit;
  font-size:14.5px;
  font-weight:400;
  line-height:1.7;
  text-align:right;
  cursor:pointer;
}
.main-footer .footer-links nav button.sadaa-footer-install:hover,
.main-footer .footer-links nav button.sadaa-footer-install:focus-visible {
  color:var(--sadaa-primary,#5E6EA4);
}
.sadaa-install-dialog {
  box-sizing:border-box;
  position:fixed;
  inset:0;
  margin:auto;
  width:min(92vw,420px);
  max-width:420px;
  max-height:calc(100dvh - 32px);
  padding:0;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  color:#1f2937;
  box-shadow:0 20px 60px rgba(15,23,42,.18);
  overflow:auto;
  font-family:var(--site-font-family,inherit);
}
.sadaa-install-dialog:not([open]) { display:none !important; }
.sadaa-install-dialog::backdrop { background:rgba(15,23,42,.53); }
.sadaa-install-dialog__inner {position:relative; padding:24px; text-align:center;}
.sadaa-install-dialog__close {
  position:absolute;
  inset-inline-start:12px;
  top:9px;
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#64748b;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.sadaa-install-dialog__close:hover {background:#f3f4f6;}
.sadaa-install-dialog__icon {width:66px; height:66px; border-radius:14px; object-fit:cover; display:block; margin:0 auto 12px;}
.sadaa-install-dialog h2 {font-size:19px; font-weight:700; line-height:1.6; margin:0 0 10px; color:#1f2937;}
.sadaa-install-dialog p {font-size:14.5px; line-height:2; margin:0 0 18px; color:#475569;}
/* V71: short RTL instructions for Huawei / Samsung / Apple and other devices */
.sadaa-install-dialog__steps {
  display:grid;
  gap:9px;
  margin:0 0 14px;
  padding:0 23px 0 0;
  text-align:right;
  font-size:14px;
  line-height:1.85;
  color:#334155;
}
.sadaa-install-dialog__steps li {padding-right:4px;}
.sadaa-install-dialog p.sadaa-install-dialog__note {
  margin:0 0 17px;
  padding:9px 11px;
  border-radius:8px;
  background:#f8fafc;
  color:#64748b;
  font-size:12.5px;
  line-height:1.8;
  text-align:right;
}
.sadaa-install-dialog__note[hidden] {display:none !important;}

.sadaa-install-dialog__ok {
  display:block;
  width:100%;
  min-height:44px;
  border:0;
  border-radius:8px;
  background:var(--sadaa-primary,#5E6EA4);
  color:#fff;
  font:inherit;
  font-weight:600;
  cursor:pointer;
}
.sadaa-install-dialog__ok:hover {filter:brightness(.94);}
@media(max-width:480px) {
  .sadaa-install-dialog__inner {padding:22px 18px 18px;}
  .sadaa-install-dialog h2 {font-size:17px;}
}

/* CSP V96 — cookie consent visibility through HTML hidden attribute, no inline styles. */
.cookie-consent-box[hidden] { display: none !important; }
.cookie-consent-box:not([hidden]) { display: block; }

/* =========================================================
   Sadaa V99 — Member > My Stores
   قواعد تبويب متاجري المنقولة من my_stores.php بدون تغيير
   في المقاسات أو التخطيط أو الألوان.
   ========================================================= */
.member-stores-page,.member-stores-page *{box-sizing:border-box}.member-stores-page{direction:rtl;color:#1f2937;font-family:var(--site-font-family);--member-brand:var(--sadaa-primary,var(--sadaa-admin-primary));--member-brand-dark:var(--sadaa-primary-dark,var(--sadaa-admin-dark));--member-brand-rgb:var(--sadaa-primary-rgb);--member-brand-soft:var(--sadaa-admin-soft,rgba(var(--member-brand-rgb),.07));--member-brand-line:var(--sadaa-admin-soft-line,rgba(var(--member-brand-rgb),.20))}
.member-stores-page a,.member-stores-page button{font-family:var(--site-font-family)}
.member-stores-page .member-tab-page-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:18px 20px;overflow:hidden;background:radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));border-radius:8px;color:#fff}
.member-stores-page .member-tab-page-header:before,.member-stores-page .member-tab-page-header:after{content:"";position:absolute;border-radius:50%;pointer-events:none}.member-stores-page .member-tab-page-header:before{width:118px;height:118px;left:-36px;top:-46px;background:rgba(255,255,255,.14)}.member-stores-page .member-tab-page-header:after{width:86px;height:86px;right:34%;bottom:-44px;background:rgba(255,255,255,.12)}
.member-stores-head-copy,.member-stores-head-actions{position:relative;z-index:1}.member-stores-head-copy{display:flex;align-items:center;gap:12px;min-width:0}.member-stores-head-icon{width:42px;height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.24);border-radius:8px;color:#fff}.member-stores-head-copy h2{margin:0;color:#fff;font-size:20px;font-weight:500;line-height:1.5}.member-stores-head-copy p{margin:3px 0 0;color:rgba(255,255,255,.84);font-size:13px;line-height:1.8}
.member-stores-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.member-stores-count,.member-stores-add{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 11px;border:1px solid rgba(255,255,255,.30);border-radius:7px;background:rgba(255,255,255,.16);color:#fff;font-size:13px;text-decoration:none}.member-stores-add:hover{background:rgba(255,255,255,.23);color:#fff}
.member-stores-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.member-stores-summary-card{--sadaa-metric-accent:var(--member-brand);--sadaa-metric-border:var(--member-brand-line)}.member-stores-summary-label i{color:var(--member-brand)}
.member-stores-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 14px;border:1px solid var(--member-brand-line);border-radius:8px;background:var(--member-brand-soft);font-size:13px;line-height:1.8}.member-stores-price-copy{color:#4b5563}.member-stores-price-copy strong{color:var(--member-brand-dark);font-weight:500}.member-stores-price-state{color:#166534}.member-stores-price-state.off{color:#991b1b}
.member-stores-message{margin-bottom:12px;padding:11px 13px;border:1px solid #bbf7d0;border-radius:8px;background:#ecfdf3;color:#166534;font-size:13px;line-height:1.8}.member-stores-message.error{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.member-stores-grid{
  display:grid;
  gap:12px;
}

.member-store-card{
  border:1px solid #e5e7eb;
  border-top:2px solid var(--member-brand);
  border-radius:8px;
  background:#ffffff;
  overflow:hidden;
}

.member-store-card.is-featured{
  border-color:#e5e7eb;
  border-top-color:var(--member-brand);
}


.member-store-card-body{
  margin:12px 12px 10px;
  border:1px solid var(--member-brand-line);
  border-radius:7px;
  background:#ffffff;
  overflow:hidden;
}

.member-store-card-head{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) minmax(205px,235px);
  gap:14px;
  align-items:start;
  padding:15px 16px 14px;
}

.member-store-logo-shell{
  width:96px;
  height:96px;
  padding:5px;
  display:grid;
  place-items:center;
  border:1px solid var(--member-brand-line);
  border-radius:8px;
  background:var(--member-brand-soft);
}

.member-store-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:2px;
  border:0;
  border-radius:6px;
  background:#ffffff;
}

.member-store-logo-placeholder{
  display:grid;
  place-items:center;
  color:#9ca3af;
  font-size:21px;
  background:#f9fafb;
}

.member-store-info{
  min-width:0;
}

.member-store-title-line{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.member-store-title{
  margin:0;
  color:var(--member-brand-dark);
  font-size:17px;
  font-weight:500;
  line-height:1.6;
}

.member-store-feature-star{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:6px;
  background:var(--member-brand-soft);
  color:var(--member-brand);
  font-size:10px;
}

.member-store-domain-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  color:#6b7280;
  font-size:13px;
  line-height:1.75;
}

.member-store-domain-row i{
  color:#9ca3af;
  font-size:12.5px;
}

.member-store-domain{
  direction:ltr;
  unicode-bidi:isolate;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.member-store-id{
  display:none;
}

.member-store-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin-top:0;
  margin-bottom:7px;
}

.member-store-pill{
  min-height:26px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f9fafb;
  color:#4b5563;
  font-size:12.5px;
}

.member-store-pill.category{
  border-color:var(--member-brand-line);
  background:var(--member-brand-soft);
  color:var(--member-brand-dark);
}

.member-store-pill.category i{
  color:var(--member-brand);
}

.member-store-pill.active{
  border-color:#bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.member-store-pill.pending{
  border-color:#fde68a;
  background:#fffbeb;
  color:#92400e;
}

.member-store-pill.hidden{
  border-color:#d1d5db;
  background:#f3f4f6;
  color:#374151;
}

.member-store-pill.rejected{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.member-store-description{
  margin:5px 0 0;
  color:#6b7280;
  font-size:14px;
  line-height:1.85;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.member-store-feature-state{
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:10px 11px;
  border:1px solid #e5e7eb;
  border-radius:7px;
  background:#fbfcfd;
}

.member-store-card.is-featured .member-store-feature-state{
  border-color:var(--member-brand-line);
  background:var(--member-brand-soft);
}

.member-store-feature-icon{
  width:24px;
  height:24px;
  min-width:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--member-brand);
  font-size:13px;
  margin-top:1px;
}

.member-store-card.is-featured .member-store-feature-icon{
  color:var(--member-brand);
}

.member-store-feature-copy{
  min-width:0;
}

.member-store-feature-kicker{
  display:block;
  margin:0 0 2px !important;
  color:#6b7280 !important;
  font-size:12.5px !important;
  line-height:1.6 !important;
}

.member-store-feature-state strong{
  display:block;
  color:#111827;
  font-size:14px;
  font-weight:500;
  line-height:1.7;
}

.member-store-feature-state .member-store-feature-note{
  display:block;
  margin-top:3px;
  color:#6b7280;
  font-size:13px;
  line-height:1.75;
}

.member-store-future{
  margin:0 16px 14px;
  --sadaa-accordion-accent:var(--member-brand,var(--sadaa-primary));
}

.member-store-periods{
  overflow-x:auto;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#ffffff;
}

.member-store-period-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  table-layout:fixed;
}

.member-store-period-table th,
.member-store-period-table td{
  padding:9px 10px;
  border-bottom:1px solid #eef2f7;
  text-align:right;
  vertical-align:middle;
  font-size:12.5px;
  line-height:1.75;
}

.member-store-period-table th{
  background:var(--member-brand-soft);
  color:var(--member-brand-dark);
  font-weight:500;
}

.member-store-period-table tbody tr:last-child td{
  border-bottom:0;
}

.member-store-period-table td{
  color:#4b5563;
  background:#ffffff;
}

.member-store-period-table .period-number{
  width:9%;
  direction:ltr;
  unicode-bidi:isolate;
  text-align:center;
  color:#111827;
  font-weight:500;
  white-space:nowrap;
}

.member-store-period-table .period-date{
  width:27%;
}

.member-store-period-table .period-days{
  width:13%;
  text-align:center;
  white-space:nowrap;
}

.member-store-period-table .period-status-cell{
  width:24%;
  text-align:center;
}

.member-store-period-status{
  min-height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 9px;
  border:1px solid #dbe3ef;
  border-radius:6px;
  background:#f8fafc;
  color:#475569;
  white-space:nowrap;
  font-size:12.5px;
}

.member-store-period-status.active{
  border-color:#bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.member-store-period-status.paid{
  border-color:var(--member-brand-line);
  background:var(--member-brand-soft);
  color:var(--member-brand-dark);
}

.member-store-period-status.refund-pending{
  border-color:#fde68a;
  background:#fffbeb;
  color:#92400e;
}

.member-store-period-status.refunded{
  border-color:#e5e7eb;
  background:#f3f4f6;
  color:#6b7280;
}

.member-store-period-table tr.is-refunded td{
  background:#f9fafb;
  color:#9ca3af;
}

.member-store-period-table tr.is-refunded .period-number{
  color:#6b7280;
}

.member-store-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 16px;
  border-top:1px solid #eef2f7;
  background:rgba(var(--member-brand-rgb),.025);
}

.member-store-created{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#9ca3af;
  font-size:12.5px;
  line-height:1.75;
}

.member-store-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

.member-store-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 11px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#ffffff;
  color:#374151;
  text-decoration:none;
  font-size:13.5px;
  cursor:pointer;
}

.member-store-btn:hover{
  border-color:var(--member-brand-line);
  background:var(--member-brand-soft);
  color:var(--member-brand-dark);
}

.member-store-btn.primary{
  border-color:var(--member-brand);
  background:var(--member-brand);
  color:#ffffff;
}

.member-store-btn.primary:hover{
  border-color:var(--member-brand-dark);
  background:var(--member-brand-dark);
  color:#ffffff;
}

.member-store-btn.feature{
  border-color:var(--member-brand);
  background:var(--member-brand);
  color:#ffffff;
}

.member-store-btn.feature:hover{
  border-color:var(--member-brand-dark);
  background:var(--member-brand-dark);
  color:#ffffff;
}

.member-store-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.member-store-actions form{
  margin:0;
}

.member-stores-empty{padding:34px 18px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;text-align:center;color:#6b7280}.member-stores-empty i{font-size:26px;color:#9ca3af}.member-stores-empty h3{margin:10px 0 5px;color:#374151;font-size:15px;font-weight:500}.member-stores-empty p{margin:0 0 14px;font-size:12.5px;line-height:1.8}
.member-stores-page .money-with-symbol{display:inline-flex;align-items:center;gap:4px;direction:ltr;unicode-bidi:isolate;vertical-align:middle;line-height:1}.member-stores-feature-price{color:#b91c1c;font-weight:500}.member-stores-feature-days{color:#15803d;font-weight:500}.member-stores-page .sar-symbol,#tabContent .sadaa-sp-manager .sadaa-sp-saved-price .sar-symbol,.sadaa-store-profile-page .sadaa-sp-visitor-product .sar-symbol{display:inline-block;width:.9em;height:1em;flex:0 0 auto;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201124.14%201256.39'%3E%3Cpath%20fill='black'%20d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath%20fill='black'%20d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201124.14%201256.39'%3E%3Cpath%20fill='black'%20d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath%20fill='black'%20d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E") center/contain no-repeat}
@media(max-width:1050px){
  .member-store-card-head{
    grid-template-columns:88px minmax(0,1fr);
  }

  .member-store-logo-shell{
    width:88px;
    height:88px;
  }

  .member-store-feature-state{
    grid-column:1/-1;
  }
}

@media(max-width:900px){
  .member-store-card-footer{
    align-items:flex-start;
    flex-direction:column;
  }

  .member-store-actions{
    width:100%;
    justify-content:flex-start;
  }
}

@media(max-width:640px){
  .member-stores-head-actions{
    width:100%;
    justify-content:flex-start;
  }

  .member-stores-page .member-tab-page-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .member-store-card-body{
    margin:10px 10px 8px;
  }

  .member-stores-summary{
    grid-template-columns:1fr;
  }

  .member-stores-price{
    align-items:flex-start;
    flex-direction:column;
  }

  .member-store-card-head{
    grid-template-columns:78px minmax(0,1fr);
    gap:10px;
    padding:13px 14px 12px;
  }

  .member-store-logo-shell{
    width:78px;
    height:78px;
    padding:4px;
  }

  .member-store-title{
    font-size:16px;
  }

  .member-store-domain-row{
    margin-top:5px;
  }

  .member-store-meta{
    margin-top:0;
    margin-bottom:6px;
  }

  .member-store-description{
    margin-top:4px;
    -webkit-line-clamp:2;
  }

  .member-store-feature-state{
    grid-column:1/-1;
    padding:9px 10px;
  }

  .member-store-feature-state .member-store-feature-note{
    margin-top:2px;
    font-size:12.5px;
    line-height:1.7;
  }

  .member-store-future{
    margin:0 14px 10px;
    padding:9px 10px;
  }

  .member-store-periods{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
  }

  .member-store-period-table{
    min-width:0;
    display:block;
  }

  .member-store-period-table thead{
    display:none;
  }

  .member-store-period-table tbody{
    display:grid;
    gap:8px;
  }

  .member-store-period-table tr{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 14px;
    padding:11px 12px;
    border:1px solid var(--member-brand-line);
    border-radius:6px;
    background:#fff;
  }

  .member-store-period-table th,
  .member-store-period-table td{
    width:auto !important;
    padding:0;
    border:0;
    background:transparent;
    text-align:right;
    font-size:12.5px;
  }

  .member-store-period-table td{
    min-width:0;
  }

  .member-store-period-table td::before{
    content:attr(data-label);
    display:block;
    margin-bottom:3px;
    color:#94a3b8;
    font-size:11.5px;
    line-height:1.5;
  }

  .member-store-period-table .period-value{
    display:block;
    color:#334155;
    font-size:12.5px;
    line-height:1.7;
  }

  .member-store-period-table .period-number,
  .member-store-period-table .period-days{
    min-height:48px;
    text-align:right;
  }

  .member-store-period-table .period-number .period-value{
    direction:ltr;
    unicode-bidi:isolate;
    text-align:right;
    color:var(--member-brand-dark);
    font-weight:500;
  }

  .member-store-period-table .period-date{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:8px;
    padding:8px 0 !important;
    border-top:1px solid #eef2f7 !important;
  }

  .member-store-period-table .period-date::before{
    margin:0;
  }

  .member-store-period-table .period-date .period-value{
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    white-space:nowrap;
  }

  .member-store-period-table .period-status-cell{
    grid-column:1/-1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:8px !important;
    border-top:1px solid #eef2f7 !important;
  }

  .member-store-period-table .period-status-cell::before{
    margin:0;
  }

  .member-store-period-status{
    min-height:26px;
    padding:3px 9px;
    font-size:12px;
  }

  .member-store-card-footer{
    padding:10px 14px 12px;
    gap:9px;
  }

  .member-store-created{
    font-size:12px;
  }

  .member-store-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }

  .member-store-btn,
  .member-store-actions form,
  .member-store-actions form button{
    width:100%;
  }

  .member-store-actions .member-store-feature-action,
  .member-store-actions form.member-store-feature-action{
    grid-column:1/-1;
  }

  .member-stores-head-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .member-stores-count,
  .member-stores-add{
    width:100%;
  }
}

@media(max-width:420px){
  .member-store-card-body{
    margin:8px 8px 8px;
  }

  .member-store-card-head{
    grid-template-columns:72px minmax(0,1fr);
    padding:12px;
  }

  .member-store-logo-shell{
    width:72px;
    height:72px;
  }

  .member-store-future{
    margin-inline:12px;
  }

  .member-store-card-footer{
    padding-inline:12px;
  }

  .member-stores-head-actions{
    grid-template-columns:1fr;
  }
}

@media (min-width:641px) and (max-width:1100px){
  .member-store-periods{
    overflow:visible !important;
    border:0 !important;
    background:transparent !important;
  }

  .member-store-period-table{
    min-width:0 !important;
    display:block !important;
    width:100% !important;
  }

  .member-store-period-table thead{display:none !important;}
  .member-store-period-table tbody{display:grid !important;gap:10px !important;}

  .member-store-period-table tr{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:0 16px !important;
    padding:13px 14px !important;
    border:1px solid var(--member-brand-line) !important;
    border-top:2px solid var(--member-brand) !important;
    border-radius:8px !important;
    background:#fff !important;
  }

  .member-store-period-table td{
    width:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    min-height:42px !important;
    padding:8px 0 !important;
    border:0 !important;
    border-bottom:1px solid #eef2f7 !important;
    text-align:start !important;
    font-size:13px !important;
  }

  .member-store-period-table td::before{
    content:attr(data-label) !important;
    flex:0 0 104px !important;
    margin:0 !important;
    color:#94a3b8 !important;
    font-size:12px !important;
    text-align:right !important;
  }

  .member-store-period-table .period-value{
    min-width:0 !important;
    text-align:left !important;
  }
}


/* Compact store badges on desktop — direct page source. */
@media (min-width:1101px){
  .member-stores-page .member-store-pill{
    min-height:21px;
    gap:3px;
    padding:2px 6px;
    border-radius:5px;
    font-size:11px;
    line-height:1.25;
  }
  .member-stores-page .member-store-pill i{font-size:10px}
  .member-stores-page .member-store-meta{gap:5px;margin-bottom:6px}
}



/* =========================================================
   متاجري — إجراءات سطح المكتب واللاب توب
   الزر الأساسي ظاهر + الثلاث نقاط ملاصقة له،
   و(زيارة المتجر/تعديل البيانات) داخل القائمة فقط.
   ========================================================= */
.member-store-action-cluster{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
}

@media (min-width:1101px){
  .member-stores-page .member-store-action-cluster{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    flex:0 0 auto !important;
  }

  .member-stores-page .member-store-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:0 !important;
    width:auto !important;
    flex:0 0 auto !important;
  }

  .member-stores-page .member-store-actions .member-store-secondary-action{
    display:none !important;
  }

  .member-stores-page .member-store-action-menu{
    position:relative !important;
    display:block !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  .member-stores-page .member-store-action-menu-toggle{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid #d1d5db !important;
    border-radius:7px !important;
    background:#fff !important;
    color:#4b5563 !important;
    cursor:pointer !important;
    list-style:none !important;
  }

  .member-stores-page .member-store-action-menu-toggle::-webkit-details-marker{
    display:none !important;
  }

  .member-stores-page .member-store-action-menu-toggle::marker{
    content:"" !important;
  }

  .member-stores-page .member-store-action-menu-toggle:hover{
    border-color:var(--member-brand-line) !important;
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }

  .member-stores-page .member-store-action-dropdown{
    position:absolute !important;
    /* افتح القائمة نحو داخل البطاقة/الصفحة، لا نحو الحافة الخارجية. */
    inset-inline-start:auto !important;
    inset-inline-end:0 !important;
    bottom:calc(100% + 7px) !important;
    z-index:80 !important;
    min-width:190px !important;
    padding:5px !important;
  }

  .member-stores-page .member-store-action-menu:not([open]) > .member-store-action-dropdown{
    display:none !important;
  }

  .member-stores-page .member-store-action-menu[open] > .member-store-action-dropdown{
    display:grid !important;
    gap:2px !important;
  }

  .member-stores-page .member-store-action-menu .member-store-action-menu-primary{
    display:none !important;
  }

  .member-stores-page .member-store-action-item{
    width:100% !important;
    min-height:36px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:8px !important;
    padding:7px 9px !important;
    border:0 !important;
    border-radius:6px !important;
    background:transparent !important;
    color:#374151 !important;
    text-decoration:none !important;
    text-align:right !important;
    white-space:nowrap !important;
    cursor:pointer !important;
  }

  .member-stores-page .member-store-action-item:hover{
    background:var(--member-brand-soft) !important;
    color:var(--member-brand-dark) !important;
  }
}

/* =========================================================
   متاجري — توحيد قائمة الإجراءات ومسافة الزر الأساسي
   Desktop / Laptop 1101px+
   ========================================================= */
@media (min-width:1101px){
  /* صف واحد ثابت: الزر الأساسي + الثلاث نقاط، بنفس المسافة في كل الحالات. */
  .member-stores-page .member-store-action-cluster{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:7px !important;
    width:auto !important;
    min-width:0 !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  .member-stores-page .member-store-actions{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:0 !important;
    width:auto !important;
    min-width:0 !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* الرابط والزر والنموذج يأخذون فقط عرض محتواهم؛ لا يوجد عرض خفي يغيّر المسافة. */
  .member-stores-page .member-store-actions > .member-store-feature-action,
  .member-stores-page .member-store-actions > form.member-store-feature-action{
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
  }

  .member-stores-page .member-store-actions > form.member-store-feature-action{
    display:inline-flex !important;
    align-items:center !important;
  }

  .member-stores-page .member-store-actions > form.member-store-feature-action > .member-store-btn,
  .member-stores-page .member-store-actions > .member-store-feature-action.member-store-btn{
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    flex:0 0 auto !important;
  }

  .member-stores-page .member-store-action-menu{
    width:36px !important;
    min-width:36px !important;
    flex:0 0 36px !important;
    margin:0 !important;
    padding:0 !important;
  }

  /* القائمة على سطح المكتب تحتوي فقط زيارة المتجر + تعديل البيانات.
     إخفاء غلاف النموذج نفسه يمنع ظهور صف فارغ في بعض البطاقات. */
  .member-stores-page .member-store-action-dropdown > .member-store-action-menu-form{
    display:none !important;
  }

  .member-stores-page .member-store-action-dropdown{
    grid-auto-rows:auto !important;
    align-content:start !important;
  }

  .member-stores-page .member-store-action-dropdown > .member-store-action-item{
    margin:0 !important;
  }
}

/* =========================================================
   متاجري — توحيد زر إكمال الدفع مع أزرار التمييز
   Desktop / Laptop 1101px+
   ========================================================= */
@media (min-width:1101px){
  .member-stores-page .member-store-actions > a.member-store-payment-action{
    height:36px !important;
    min-height:36px !important;
    box-sizing:border-box !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    padding:0 11px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    vertical-align:middle !important;
  }

  .member-stores-page .member-store-actions > a.member-store-payment-action > span{
    display:inline-flex !important;
    align-items:center !important;
    line-height:1 !important;
  }

  .member-stores-page .member-store-actions > a.member-store-payment-action > i{
    width:14px !important;
    min-width:14px !important;
    height:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 !important;
    font-size:13px !important;
    line-height:1 !important;
    flex:0 0 14px !important;
  }
}

/* =========================================================
   متاجري — تحسين بطاقة حالة التمييز على سطح المكتب
   تمنح المحتوى مساحة تنفس أكبر بدون تغيير منطق البطاقة
   ========================================================= */
@media (min-width:1101px){
  .member-stores-page .member-store-card-head{
    grid-template-columns:96px minmax(0,1fr) minmax(240px,270px) !important;
    gap:18px !important;
  }

  .member-stores-page .member-store-feature-state{
    min-height:146px !important;
    padding:17px 18px !important;
    gap:11px !important;
    align-items:flex-start !important;
    align-content:center !important;
    border-radius:9px !important;
    box-sizing:border-box !important;
  }

  .member-stores-page .member-store-feature-icon{
    width:30px !important;
    min-width:30px !important;
    height:30px !important;
    margin-top:0 !important;
    border-radius:7px !important;
    background:rgba(var(--sadaa-primary-rgb),.07) !important;
    font-size:13px !important;
  }

  .member-stores-page .member-store-feature-copy{
    min-width:0 !important;
    padding-top:1px !important;
  }

  .member-stores-page .member-store-feature-kicker{
    margin:0 0 5px !important;
    font-size:12.5px !important;
    line-height:1.55 !important;
  }

  .member-stores-page .member-store-feature-state strong{
    font-size:14.5px !important;
    line-height:1.75 !important;
  }

  .member-stores-page .member-store-feature-state .member-store-feature-note{
    margin-top:7px !important;
    font-size:13px !important;
    line-height:1.9 !important;
  }
}
/* End Sadaa V99 Member > My Stores */


/* V100 | Member dashboard layout + tablet drawer, relocated from member_dashboard.php.
   Only applies when #memberDashboardWrapper is present; admin/public pages remain untouched. */

    html:has(#memberDashboardWrapper){
      --member-primary:var(--sadaa-text,#252B47);
      --member-muted:var(--sadaa-muted,var(--sadaa-text-2));
      --member-border:var(--sadaa-line,#E5E7F0);
      --member-soft:var(--sadaa-tint-3,var(--sadaa-tint-3));
      --member-purple:var(--sadaa-admin-primary);
      --member-purple-2:var(--sadaa-accent);
      --member-purple-soft:var(--sadaa-admin-soft, var(--sadaa-tint-3));
      --member-radius:var(--sadaa-radius-card,16px);
    }

    html:has(#memberDashboardWrapper){
      width:100%;
      max-width:100%;
      overflow-x:hidden;
    }

    body:has(#memberDashboardWrapper){
      background-color: var(--sadaa-page-bg, var(--sadaa-tint-3));
      font-family: var(--site-font-family);
      font-size: var(--site-font-size);
      margin: 0 auto;
      padding: 0;
      direction: rtl;
      font-weight:400;
      line-height: var(--site-line-height);
      letter-spacing: var(--sadaa-member-letter-spacing, normal);
      text-transform: var(--sadaa-member-text-transform, none);
      text-align: var(--sadaa-member-text-align, right);
      color:var(--member-primary);
      overflow-x:hidden;
    }

    body:has(#memberDashboardWrapper),
:where(html:has(#memberDashboardWrapper)) button,
:where(html:has(#memberDashboardWrapper)) input,
:where(html:has(#memberDashboardWrapper)) select,
:where(html:has(#memberDashboardWrapper)) textarea,
:where(html:has(#memberDashboardWrapper)) a{
      font-family:var(--site-font-family);
    }

    :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper,
:where(html:has(#memberDashboardWrapper)) .dashboard-wrapper *{
      box-sizing:border-box;
    }

    :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav,
:where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav *,
:where(html:has(#memberDashboardWrapper)) .member-form-visual,
:where(html:has(#memberDashboardWrapper)) .member-form-visual *{
      font-weight:400;
    }

    :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav i[class^="fa"],
:where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav i[class*=" fa-"],
:where(html:has(#memberDashboardWrapper)) .member-form-visual i[class^="fa"],
:where(html:has(#memberDashboardWrapper)) .member-form-visual i[class*=" fa-"]{
      font-family:"Font Awesome 6 Free" !important;
      font-weight:900 !important;
      font-style:normal;
    }

    :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper{
      display:flex;
      align-items:stretch;
      gap:0;
      width:100%;
      max-width:none;
      min-height:calc(100dvh - var(--sadaa-header-height, 70px));
      margin:0;
      padding:0;
      direction:rtl;
      background:var(--sadaa-admin-workspace-bg,#F3F4F6);
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-stack{
      width:272px;
      flex:0 0 272px;
      position:sticky;
      top:var(--sadaa-header-height, 70px);
      height:calc(100dvh - var(--sadaa-header-height, 70px));
      max-height:calc(100dvh - var(--sadaa-header-height, 70px));
      display:flex;
      flex-direction:column;
      gap:12px;
      padding:0 12px 18px;
      overflow-x:hidden;
      overflow-y:auto;
      background:#fff;
      border-inline-end:1px solid var(--member-border);
      scrollbar-gutter:stable;
    }

    :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav{
      width:100%;
      background:transparent;
      border:0;
      border-radius:0;
      padding:0;
      box-shadow:none;
      overflow:visible;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-head{
      position:relative;
      display:flex;
      align-items:center;
      min-height:108px;
      padding:18px 20px;
      margin:0 -12px;
      overflow:hidden;
      background:var(--sadaa-admin-sidebar-head-bg);
      border:0;
      border-radius:0;
      color:#ffffff;
      box-shadow:none;
      flex:0 0 auto;
    }

    /* بطاقة الإعلان التجريبي في العمود الجانبي */
    :where(html:has(#memberDashboardWrapper)) .member-trial-card{
      position:relative;
      width:100%;
      padding:22px 18px 18px;
      overflow:hidden;
      border:1px solid #f7aab2;
      border-radius:12px;
      background:
        radial-gradient(circle at 50% 0%, rgba(242,78,94,.10), transparent 38%),
        linear-gradient(180deg, #fff7f8 0%, #fffdfd 58%, #fff1f3 100%);
      box-shadow:0 12px 26px rgba(242,78,94,.08);
      text-align:center;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card::before{
      content:"";
      position:absolute;
      inset:0 0 auto 0;
      height:4px;
      background:#F24E5E;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__icon{
      position:relative;
      z-index:1;
      width:72px;
      height:72px;
      margin:0 auto 13px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:50%;
      background:#fff1f3;
      color:#F24E5E;
      font-size:29px;
      box-shadow:inset 0 0 0 1px rgba(242,78,94,.10), 0 12px 22px rgba(242,78,94,.10);
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__icon::after{
      content:"";
      position:absolute;
      inset:-7px;
      border:1px solid rgba(242,78,94,.24);
      border-radius:50%;
      pointer-events:none;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__title{
      margin:0;
      color:#8f2f39;
      font-size:15px;
      font-weight:700;
      line-height:1.75;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__text{
      margin:6px 0 0;
      color:#6f5357;
      font-size:12.5px;
      line-height:1.9;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__link{
      width:100%;
      min-height:42px;
      margin-top:16px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      padding:0 14px;
      border-radius:9px;
      background:#F24E5E;
      color:#ffffff;
      font-size:13px;
      font-weight:500;
      text-decoration:none;
      box-shadow:0 10px 20px rgba(242,78,94,.18);
      transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
    }

    :where(html:has(#memberDashboardWrapper)) .member-trial-card__link:hover{
      color:#ffffff;
      text-decoration:none;
      transform:translateY(-1px);
      background:#d9404f;
      box-shadow:0 14px 24px rgba(242,78,94,.22);
    }

    /* شريط عروض مدة الإعلان داخل لوحة العضو */
    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-strip{
      position:relative;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      margin:0 0 14px;
      padding:25px 16px;
      overflow:hidden;
      border:1px solid #a7e7cf;
      border-radius:8px;
      background:
        radial-gradient(circle at 7% 0%, rgba(16,185,129,.10), transparent 34%),
        linear-gradient(135deg, #ecfdf5 0%, #ffffff 54%, #effcf7 100%);
      color:#1f2937;
      box-shadow:0 10px 24px rgba(5,150,105,.07);
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-strip::before{
      content:"";
      position:absolute;
      inset:0 0 auto;
      height:3px;
      background:linear-gradient(90deg,#10b981 0%,#14b8a6 100%);
      opacity:.95;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-main{
      position:relative;
      z-index:1;
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
      flex:1 1 auto;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-icon{
      width:44px;
      height:44px;
      min-width:44px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border:1px solid #b7ead7;
      border-radius:8px;
      background:#ffffff;
      color:#059669;
      box-shadow:0 8px 18px rgba(5,150,105,.08);
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-icon i{
      font-size:18px;
      line-height:1;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-copy{
      min-width:0;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:10px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-kicker{
      display:inline-flex;
      align-items:center;
      gap:6px;
      margin:0;
      color:#047857;
      font-size:12px;
      line-height:1.6;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-title{
      margin:0;
      color:#111827;
      font-size:15px;
      font-weight:500;
      line-height:1.75;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-meta{
      display:flex;
      align-items:center;
      flex-wrap:wrap;
      gap:7px;
      margin:0;
      color:#6b7280;
      font-size:12.5px;
      line-height:1.7;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-pill{
      display:inline-flex;
      align-items:center;
      min-height:25px;
      padding:3px 8px;
      border:1px solid #a7f3d0;
      border-radius:999px;
      background:#ecfdf5;
      color:#047857;
      white-space:nowrap;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown{
      display:inline-flex;
      align-items:center;
      gap:6px;
      min-height:25px;
      padding:3px 8px;
      border:1px solid #e5e7eb;
      border-radius:999px;
      background:rgba(255,255,255,.74);
      color:#4b5563;
      white-space:nowrap;
      font-size:12px;
      line-height:1.7;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown i{
      color:#0f766e;
      font-size:11px;
      line-height:1;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown strong{
      color:#111827;
      font-size:12px;
      font-weight:500;
      direction:rtl;
      unicode-bidi:isolate;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown.is-ended{
      color:#991b1b;
      border-color:#fecaca;
      background:#fff1f2;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown.is-ended i,
:where(html:has(#memberDashboardWrapper)) .member-duration-offer-countdown.is-ended strong{
      color:#991b1b;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-action{
      position:relative;
      z-index:1;
      min-height:38px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      padding:8px 13px;
      border:1px solid #059669;
      border-radius:8px;
      background:#059669;
      color:#ffffff;
      text-decoration:none;
      font-size:13px;
      line-height:1.5;
      white-space:nowrap;
      transition:background .16s ease, border-color .16s ease, transform .16s ease;
    }

    :where(html:has(#memberDashboardWrapper)) .member-duration-offer-action:hover{
      color:#ffffff;
      background:#047857;
      border-color:#047857;
      text-decoration:none;
      transform:translateY(-1px);
    }

    @media (max-width:700px){
      :where(html:has(#memberDashboardWrapper)) .member-duration-offer-strip{
        align-items:stretch;
        flex-direction:column;
        gap:12px;
        padding:14px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-duration-offer-main{
        align-items:flex-start;
      }

      :where(html:has(#memberDashboardWrapper)) .member-duration-offer-action{
        width:100%;
      }
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-head::before,
:where(html:has(#memberDashboardWrapper)) .member-sidebar-head::after{
      content:"";
      position:absolute;
      border-radius:50%;
      pointer-events:none;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-head::before{
      width:118px;
      height:118px;
      left:-36px;
      top:-46px;
      background:rgba(255, 255, 255, 0.14);
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-head::after{
      width:86px;
      height:86px;
      right:34%;
      bottom:-44px;
      background:rgba(255, 255, 255, 0.12);
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-row{
      position:relative;
      z-index:1;
      display:flex;
      align-items:center;
      gap:12px;
      min-width:0;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-icon{
      width:42px;
      height:42px;
      min-width:42px;
      flex:0 0 42px;
      border-radius:8px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      background:rgba(255, 255, 255, 0.18);
      color:#ffffff;
      border:1px solid rgba(255, 255, 255, 0.24);
      box-shadow:none;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-icon i{
      width:19px;
      height:19px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:19px;
      line-height:1;
      font-family:"Font Awesome 6 Free" !important;
      font-weight:900 !important;
      font-style:normal;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-title{
      margin:0;
      color:#ffffff;
      font-size:19px;
      line-height:1.5;
      font-weight:500;
      letter-spacing:0;
    }

    :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav h3{
      margin:0 0 12px 0;
      font-size:16px;
      color:#444;
    }

    :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav .hello{
      color:#181818;
      font-size:14px;
      margin-bottom:12px;
    }

    :where(html:has(#memberDashboardWrapper)) .content-area{
      flex:1;
      min-width:0;
      min-height:calc(100dvh - var(--sadaa-header-height, 70px));
      padding:24px clamp(18px,2.15vw,34px) 42px;
      border:0;
      border-radius:0;
      background:var(--sadaa-admin-workspace-bg,#F3F4F6);
      box-shadow:none;
      transition:opacity .15s ease;
    }

    :where(html:has(#memberDashboardWrapper)) .member-tab-panel{
      width:100%;
      min-width:0;
    }

    :where(html:has(#memberDashboardWrapper)) .member-tab-body-with-visual{
      display:flex;
      align-items:stretch;
      gap:16px;
      width:100%;
      margin-top:14px;
      padding:16px;
      background:#ffffff;
      border:1px solid var(--member-border);
      border-radius:var(--member-radius);
      box-shadow:none;
    }

    :where(html:has(#memberDashboardWrapper)) .member-tab-content-stack{
      flex:1 1 auto;
      min-width:0;
    }

    :where(html:has(#memberDashboardWrapper)) .member-form-visual{
      position:relative;
      flex:0 0 250px;
      overflow:hidden;
      border:1px solid var(--sadaa-tint-3);
      border-radius:var(--member-radius);
      background:
        radial-gradient(circle at 18% 16%, rgba(var(--sadaa-primary-rgb),.34) 0 48px, transparent 49px),
        radial-gradient(circle at 86% 82%, rgba(var(--sadaa-primary-rgb),.14) 0 76px, transparent 77px),
        linear-gradient(180deg, var(--sadaa-tint-3) 0%, #ffffff 100%);
      padding:22px 18px;
      display:flex;
      flex-direction:column;
      justify-content:center;
      min-height:420px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-art{
      position:relative;
      width:100%;
      min-height:255px;
      margin:0 auto 16px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-screen{
      position:absolute;
      inset:30px 18px auto 18px;
      min-height:150px;
      border-radius:10px;
      background:#fff;
      border:1px solid var(--sadaa-tint-3);
      box-shadow:0 18px 42px rgba(var(--sadaa-primary-rgb),.12);
      padding:16px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-screen::before{
      content:"";
      display:block;
      width:70px;
      height:8px;
      border-radius:999px;
      background:linear-gradient(90deg, var(--sadaa-primary), var(--sadaa-primary-light));
      margin-bottom:14px;
      opacity:.86;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-line{
      display:block;
      height:9px;
      border-radius:999px;
      background:var(--sadaa-tint-3);
      margin:10px 0;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-line.short{width:62%;}
    :where(html:has(#memberDashboardWrapper)) .member-visual-line.mid{width:84%;}
    :where(html:has(#memberDashboardWrapper)) .member-visual-line.long{width:100%;}

    :where(html:has(#memberDashboardWrapper)) .member-visual-card{
      position:absolute;
      display:grid;
      place-items:center;
      width:58px;
      height:58px;
      border-radius:12px;
      background:#fff;
      border:1px solid var(--sadaa-tint-3);
      box-shadow:0 14px 28px rgba(17,24,39,.08);
      color:var(--sadaa-admin-primary, var(--member-purple));
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-card i{
      width:26px;
      height:26px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      font-size:23px;
      line-height:1;
      font-family:"Font Awesome 6 Free" !important;
      font-weight:900 !important;
      font-style:normal;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-card.one{
      top:0;
      right:4px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-card.two{
      left:2px;
      bottom:8px;
      color:var(--sadaa-primary-light);
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-dot{
      position:absolute;
      width:10px;
      height:10px;
      border-radius:50%;
      background:var(--sadaa-primary-light);
      opacity:.48;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-dot.d1{right:78px;top:18px;}
    :where(html:has(#memberDashboardWrapper)) .member-visual-dot.d2{left:32px;top:48px;width:7px;height:7px;}
    :where(html:has(#memberDashboardWrapper)) .member-visual-dot.d3{right:48px;bottom:26px;width:8px;height:8px;}

    :where(html:has(#memberDashboardWrapper)) .member-visual-title{
      margin:0 0 7px;
      color:var(--member-primary);
      text-align:center;
      font-size:15px;
      line-height:1.7;
    }

    :where(html:has(#memberDashboardWrapper)) .member-visual-text{
      margin:0;
      color:var(--member-muted);
      text-align:center;
      font-size:12.5px;
      line-height:1.9;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual{
      width:100%;
      flex:none;
      min-height:310px;
      margin:16px 0 0;
      padding:18px 16px;
      border-color:var(--sadaa-tint-3);
      box-shadow:none;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-art{
      min-height:205px;
      margin-bottom:12px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-screen{
      inset:26px 12px auto 12px;
      min-height:126px;
      padding:14px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-card{
      width:50px;
      height:50px;
      border-radius:10px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-card i{
      width:23px;
      height:23px;
      font-size:21px;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-title{
      font-size:14px;
      line-height:1.7;
    }

    :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual .member-visual-text{
      font-size:12px;
      line-height:1.8;
    }

    /* سب-ناف إعدادات الحساب — التحكم بالظهور فقط؛ الشكل من Design System */
    :where(html:has(#memberDashboardWrapper)) #accountSubnav,
:where(html:has(#memberDashboardWrapper)) #statsSubnav{ display:none; }

	
	
	
	/* تخصيص ألوان تقويم Flatpickr */
:where(html:has(#memberDashboardWrapper)) .flatpickr-calendar{
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    border: 1px solid #e5e5e5 !important;
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif) !important;
}

/* رأس التقويم */
:where(html:has(#memberDashboardWrapper)) .flatpickr-months
.flatpickr-month{
    background: var(--sadaa-admin-primary) !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month,
:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month .flatpickr-monthDropdown-months,
:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month,
:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month input.cur-year{
    color: #ffffff !important;
	background: var(--sadaa-admin-primary) !important;
}

:where(html:has(#memberDashboardWrapper)) .numInputWrapper span{
	left: 50px !important;
}

/* أسهم الشهر */
:where(html:has(#memberDashboardWrapper)) .flatpickr-prev-month,
:where(html:has(#memberDashboardWrapper)) .flatpickr-next-month{
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* أيام الأسبوع */
:where(html:has(#memberDashboardWrapper)) .flatpickr-weekdays{
    background: #f7f7f7 !important;
}

:where(html:has(#memberDashboardWrapper)) span.flatpickr-weekday{
    color: #333 !important;
    font-weight: 600 !important;
	background: #f7f7f7 !important;
}

/* اليوم المحدد */
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.selected,
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.startRange,
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.endRange,
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.selected:hover{
    background: var(--sadaa-admin-primary) !important;
    border-color: var(--sadaa-admin-primary) !important;
    color: #ffffff !important;
}

/* اليوم عند المرور */
:where(html:has(#memberDashboardWrapper)) .flatpickr-day:hover{
    background: #eee !important;
    border-color: #eee !important;
}

/* تاريخ اليوم */
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.today{
    border-color: var(--sadaa-admin-primary) !important;
    color: var(--sadaa-admin-primary) !important;
}

/* تاريخ اليوم إذا كان محدد */
:where(html:has(#memberDashboardWrapper)) .flatpickr-day.today.selected{
    color: #ffffff !important;
}

/* حجم خط تقويم Flatpickr */
:where(html:has(#memberDashboardWrapper)) .flatpickr-calendar{
    font-size: 13px !important;
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif) !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-calendar *{
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif) !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-day{
    font-size: 12px !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-weekday{
    font-size: 12px !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month{
    font-size: 13px !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month .flatpickr-monthDropdown-months{
    font-size: 13px !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month input.cur-year{
    font-size: 13px !important;
}

/* إصلاح اتجاه تقويم Flatpickr ليتوافق مع RTL */
:where(html:has(#memberDashboardWrapper)) .flatpickr-calendar{
    direction: rtl !important;
    text-align: center !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-months,
:where(html:has(#memberDashboardWrapper)) .flatpickr-weekdays,
:where(html:has(#memberDashboardWrapper)) .flatpickr-days,
:where(html:has(#memberDashboardWrapper)) .dayContainer,
:where(html:has(#memberDashboardWrapper)) .flatpickr-weekdaycontainer{
    direction: rtl !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-current-month{
    direction: rtl !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-months .flatpickr-prev-month{
    right: 0 !important;
    left: auto !important;
}

:where(html:has(#memberDashboardWrapper)) .flatpickr-months .flatpickr-next-month{
    left: 0 !important;
    right: auto !important;
}

:where(html:has(#memberDashboardWrapper)) .custom-date-wrapper input,
:where(html:has(#memberDashboardWrapper)) .custom-date-wrapper .flatpickr-input,
:where(html:has(#memberDashboardWrapper)) .custom-date-wrapper .flatpickr-input + input{
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}

    @media (max-width:1280px){
      :where(html:has(#memberDashboardWrapper)) .member-tab-body-with-visual > .member-form-visual{
        display:none;
      }

      :where(html:has(#memberDashboardWrapper)) .member-tab-body-with-visual{
        display:block;
      }
    }

    /* Responsive member layout: stack only where the member drawer actually applies.
       901–1100px retains its pre-existing sticky sidebar and two-column workspace. */
    @media (max-width:900px){
      :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper{
        flex-direction:column;
        width:min(100% - 24px, 1430px);
        margin:22px auto;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-stack{
        position:static;
        width:100%;
        flex:0 0 auto;
      }

      :where(html:has(#memberDashboardWrapper)) .sadaa-member-side-nav{
        width:100%;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual{
        display:none;
      }

      :where(html:has(#memberDashboardWrapper)) .content-area{
        width:100%;
        padding:12px;
      }
    }

    @media (min-width:901px) and (max-width:1050px){
      :where(html:has(#memberDashboardWrapper)) .member-sidebar-visual{display:none;}
    }

    @media (max-width:640px){
      :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper{
        width:min(100% - 18px, 1430px);
        gap:12px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-head{
        min-height:74px;
        padding:14px 15px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-row{
        gap:10px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-icon{
        width:38px;
        height:38px;
        min-width:38px;
        flex-basis:38px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-icon i{
        width:18px;
        height:18px;
        font-size:18px;
      }

      :where(html:has(#memberDashboardWrapper)) .member-sidebar-title{
        font-size:16px;
      }

      :where(html:has(#memberDashboardWrapper)) .content-area{
        padding:10px;
      }
    }



  

:where(html:has(#memberDashboardWrapper)) .member-dashboard-mobile-toggle,
:where(html:has(#memberDashboardWrapper)) .member-sidebar-close,
:where(html:has(#memberDashboardWrapper)) .member-sidebar-backdrop{display:none;}

/* Drawer only on compact viewports; 901px-1100px keeps the permanent side column. */
@media (max-width:900px){
  html:has(#memberDashboardWrapper){--member-dashboard-drawer-top:var(--sadaa-header-height,70px);}
  body:has(#memberDashboardWrapper).member-dashboard-drawer-open{overflow:hidden;}

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper{
    display:block;
    width:100%;
    max-width:100%;
    margin:14px auto 28px;
    padding:0 10px;
  }

  :where(html:has(#memberDashboardWrapper)) .member-dashboard-mobile-toggle{
    display:flex !important;
    width:100%;
    margin:0 0 12px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-stack{
    position:fixed !important;
    top:var(--member-dashboard-drawer-top,70px) !important;
    right:0 !important;
    left:auto !important;
    z-index:8300;
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    width:min(320px,calc(100vw - 44px)) !important;
    max-width:calc(100vw - 44px) !important;
    height:calc(100dvh - var(--member-dashboard-drawer-top,70px)) !important;
    max-height:calc(100dvh - var(--member-dashboard-drawer-top,70px)) !important;
    margin:0 !important;
    padding:0 10px 18px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    background:#fff !important;
    border-radius:0 0 0 10px !important;
    box-shadow:-18px 0 42px rgba(var(--sadaa-admin-dark-rgb),.18) !important;
    transform:translateX(105%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:transform .22s ease,opacity .18s ease,visibility .22s ease;
    overscroll-behavior:contain;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper.mobile-tabs-open .member-sidebar-stack{
    transform:translateX(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  :where(html:has(#memberDashboardWrapper)) .member-sidebar-backdrop{
    position:fixed;
    inset:var(--member-dashboard-drawer-top,70px) 0 0;
    z-index:8200;
    display:block;
    background:rgba(15,23,42,.32);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,visibility .18s ease;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper.mobile-tabs-open .member-sidebar-backdrop{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  :where(html:has(#memberDashboardWrapper)) .member-sidebar-close{
    position:sticky !important;
    top:8px !important;
    left:auto !important;
    right:auto !important;
    z-index:8;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
    margin:8px 0 0 !important;
    margin-inline-start:auto !important;
    padding:0 !important;
    color:var(--sadaa-admin-dark,var(--sadaa-primary-dark)) !important;
    background:rgba(255,255,255,.96) !important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb)) !important;
    border-radius:7px !important;
    box-shadow:0 2px 8px rgba(var(--sadaa-shadow-rgb,17,24,39),.06) !important;
    cursor:pointer;
  }

  :where(html:has(#memberDashboardWrapper)) .member-sidebar-close i{
    margin:0 !important;
    font-size:13px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .sadaa-member-side-nav{
    width:100% !important;
    flex:0 0 auto !important;
    padding:12px !important;
    border-radius:8px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-visual{
    display:none !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .content-area{
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-trial-card{
    flex:0 0 auto;
    border-radius:8px !important;
  }
}

@media (max-width:720px){
  html:has(#memberDashboardWrapper){--member-dashboard-drawer-top:var(--sadaa-header-height,70px);}

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper{
    margin:10px auto 22px !important;
    padding:0 8px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .member-dashboard-mobile-toggle{
    margin-bottom:10px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-stack{
    width:min(300px,calc(100vw - 24px)) !important;
    max-width:calc(100vw - 24px) !important;
    padding:0 8px 14px !important;
  }

  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .sadaa-member-side-nav{
    padding:10px !important;
  }
}

@media (max-width:380px){
  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-stack{
    width:min(286px,calc(100vw - 16px)) !important;
    max-width:calc(100vw - 16px) !important;
  }
}

@media (prefers-reduced-motion:reduce){
  :where(html:has(#memberDashboardWrapper)) .dashboard-wrapper.member-dashboard-wrapper .member-sidebar-stack,
:where(html:has(#memberDashboardWrapper)) .member-sidebar-backdrop{transition:none !important;}
}




/* V100 | Member fragment rules moved from member_stats.php; active only while its tab exists. */

    :where(html:has(.stats-page)) .stats-page,
:where(html:has(.stats-page)) .stats-page *{box-sizing:border-box}

    :where(html:has(.stats-page)) .stats-page{
      --stats-primary:var(--sadaa-admin-primary);
      --stats-primary-dark:var(--sadaa-admin-dark);
      --stats-primary-rgb:var(--sadaa-admin-primary-rgb);
      --stats-text:#0f172a;
      --stats-muted:#64748b;
      --stats-border:#e2e8f0;
      --stats-soft:#f8fafc;
      width:100%;
      max-width:1200px;
      margin:0 auto 22px;
      direction:rtl;
      color:var(--stats-text);
      font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
      font-weight:400;
    }

    :where(html:has(.stats-page)) .stats-page .stats-svg-icon{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:18px;
      height:18px;
      flex:0 0 18px;
      font-family:"Font Awesome 6 Free" !important;
      font-weight:900 !important;
      font-style:normal;
      line-height:1;
    }

    :where(html:has(.stats-page)) .stats-money{
      display:inline-flex;
      align-items:center;
      gap:6px;
      direction:ltr;
      unicode-bidi:isolate;
      white-space:nowrap;
      font-variant-numeric:tabular-nums;
    }

    :where(html:has(.stats-page)) .stats-money .sar-symbol{
      display:inline-block;
      width:.86em;
      height:1em;
      min-width:.86em;
      color:currentColor;
      background-color:currentColor;
      -webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201124.14%201256.39'%3E%3Cpath%20fill='black'%20d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath%20fill='black'%20d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E");
      mask-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201124.14%201256.39'%3E%3Cpath%20fill='black'%20d='M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z'/%3E%3Cpath%20fill='black'%20d='M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.67,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.75-38.4,143.37l375.04-79.7c30.53-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z'/%3E%3C/svg%3E");
      -webkit-mask-repeat:no-repeat;
      mask-repeat:no-repeat;
      -webkit-mask-position:center;
      mask-position:center;
      -webkit-mask-size:contain;
      mask-size:contain;
    }

    /* رأس التبويب: نفس لغة بقية لوحة العضو بدون مبالغة بصرية. */
    :where(html:has(.stats-page)) .stats-hero{
      position:relative;
      overflow:hidden;
      margin:0 0 14px;
      padding:18px 20px;
      border:0;
      border-radius:8px;
      color:#fff;
      background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,.20) 0 72px, transparent 74px),
        radial-gradient(circle at 78% 110%, rgba(255,255,255,.14) 0 92px, transparent 94px),
        var(--sadaa-admin-hero-gradient, linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-accent) 100%));
    }

    :where(html:has(.stats-page)) .stats-hero-content{
      position:relative;
      z-index:1;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      width:100%;
    }

    :where(html:has(.stats-page)) .stats-hero-title{display:flex;align-items:center;gap:12px;min-width:0}
    :where(html:has(.stats-page)) .stats-hero-icon{
      width:42px;height:42px;flex:0 0 42px;
      display:inline-flex;align-items:center;justify-content:center;
      border:1px solid rgba(255,255,255,.24);
      border-radius:8px;color:#fff;
    }
    :where(html:has(.stats-page)) .stats-hero-icon .stats-svg-icon{color:#fff}
    :where(html:has(.stats-page)) .stats-hero h2{margin:0;color:#fff;font-size:20px;font-weight:500;line-height:1.5}
    :where(html:has(.stats-page)) .stats-hero p{margin:3px 0 0;max-width:720px;color:rgba(255,255,255,.84);font-size:13px;line-height:1.8}
    :where(html:has(.stats-page)) .stats-hero-badge{
      display:inline-flex;align-items:center;justify-content:center;gap:7px;
      min-height:36px;padding:7px 12px;border:1px solid rgba(255,255,255,.22);
      border-radius:8px;background:rgba(255,255,255,.13);color:#fff;font-size:13px;white-space:nowrap;
    }

    :where(html:has(.stats-page)) .stats-content-panel{
      position:relative;
      margin:0 0 18px;
    }

    :where(html:has(.stats-page)) .stats-panel{
      border:1px solid var(--stats-border);
      border-radius:8px;
      background:#fff;
    }

    :where(html:has(.stats-page)) .stats-filter-card{
      margin:0 0 14px;
      padding:15px;
      border-color:var(--stats-border);
      background:var(--sadaa-tint-3);
    }

    :where(html:has(.stats-page)) .filter-head{
      margin:0 0 13px;
      padding:0 0 12px;
      border-bottom:1px solid #eef2f6;
    }
    :where(html:has(.stats-page)) .filter-title,
:where(html:has(.stats-page)) .panel-title{display:flex;align-items:center;gap:8px;margin:0;color:#1e293b;font-size:15px;font-weight:500;line-height:1.7}
    :where(html:has(.stats-page)) .filter-title .stats-svg-icon,
:where(html:has(.stats-page)) .panel-title .stats-svg-icon{color:var(--stats-primary)}
    :where(html:has(.stats-page)) .filter-note,
:where(html:has(.stats-page)) .panel-subtitle{margin-top:4px;color:var(--stats-muted);font-size:12.5px;line-height:1.8}

    :where(html:has(.stats-page)) .member-stats-filter-form{
      display:grid;
      grid-template-columns:minmax(240px,360px) minmax(0,1fr);
      gap:12px;
      align-items:end;
      background:transparent !important;
      border:0 !important;
      box-shadow:none !important;
      padding:0 !important;
    }
    :where(html:has(.stats-page)) .member-stats-field{
      min-width:0;
      background:transparent !important;
    }
    :where(html:has(.stats-page)) .member-stats-field label{display:block;margin:0 0 7px;color:#475569;font-size:12.5px;line-height:1.6}
    :where(html:has(.stats-page)) .member-stats-select-wrap{
      position:relative;
      width:100%;
    }
    :where(html:has(.stats-page)) .member-stats-select-wrap select{
      width:100%;
      min-height:44px;
      margin:0;
      padding:9px 12px 9px 38px;
      border:1px solid #cbd5e1;
      border-radius:7px;
      background:#fff;
      color:#0f172a;
      font:inherit;
      font-size:13px;
      outline:none;
      appearance:none;
      -webkit-appearance:none;
      transition:border-color .16s ease,box-shadow .16s ease;
    }
    :where(html:has(.stats-page)) .member-stats-select-wrap select:focus{
      border-color:var(--stats-primary);
      box-shadow:0 0 0 3px rgba(var(--stats-primary-rgb),.10);
    }

    /* إخفاء سهم Font Awesome القديم */
    :where(html:has(.stats-page)) .member-stats-select-wrap .stats-svg-icon{
      display:none !important;
    }

    /* سهم مثلث مقلوب بسيط في الجهة اليسرى */
    :where(html:has(.stats-page)) .member-stats-select-wrap::after{
      content:"";
      position:absolute;
      left:14px;
      top:50%;
      width:0;
      height:0;
      border-left:5px solid transparent;
      border-right:5px solid transparent;
      border-top:6px solid #7c8798;
      transform:translateY(-25%);
      pointer-events:none;
    }
    :where(html:has(.stats-page)) .member-stats-analysis-range{
      min-height:44px;display:flex;align-items:center;padding:9px 12px;
      border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;color:#475569;
      font-size:13px;line-height:1.8;font-variant-numeric:tabular-nums;
    }
    :where(html:has(.stats-page)) .member-stats-filter-apply{min-height:42px;padding:9px 14px;border:0;border-radius:7px;background:var(--stats-primary);color:#fff;font:inherit;font-size:13px;cursor:pointer}

    /* ست مؤشرات مرتبة بحسب رحلة الأداء: تكلفة -> ظهور -> نقر -> CTR -> CPC -> خصومات. */
    :where(html:has(.stats-page)) .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
    :where(html:has(.stats-page)) .kpi-card{
      border-color:var(--stats-border);
      border-inline-start:3px solid var(--stats-primary);
      background:linear-gradient(135deg,#fff 28%,rgba(var(--stats-primary-rgb),.045) 100%);
    }
    :where(html:has(.stats-page)) .kpi-card::after{
      content:"";position:absolute;width:78px;height:78px;border-radius:50%;
      inset-inline-end:-36px;inset-block-end:-44px;background:rgba(var(--stats-primary-rgb),.055);pointer-events:none;
    }
    :where(html:has(.stats-page)) .kpi-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}
    :where(html:has(.stats-page)) .kpi-card h4{margin:0;color:#64748b;font-size:12.5px;font-weight:400;line-height:1.65}
    :where(html:has(.stats-page)) .kpi-icon{
      position:relative;z-index:1;width:36px;height:36px;flex:0 0 36px;
      display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(var(--stats-primary-rgb),.13);
      border-radius:7px;background:rgba(var(--stats-primary-rgb),.07);color:var(--stats-primary);
    }
    :where(html:has(.stats-page)) .kpi-card .v{
      position:relative;z-index:1;color:#0f172a;font-size:20px;font-weight:600;line-height:1.5;
      word-break:break-word;font-variant-numeric:tabular-nums;
    }
    :where(html:has(.stats-page)) .kpi-card .v .stats-money{font-weight:600}
    :where(html:has(.stats-page)) .kpi-card .v .kpi-empty-value{
      color:#64748b;font-size:13px;font-weight:400;line-height:1.8;
    }

    :where(html:has(.stats-page)) .stats-panel{margin:0;padding:15px;background:#fff}
    :where(html:has(.stats-page)) .panel-head{margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #eef2f6}
    :where(html:has(.stats-page)) .chart-box{
      position:relative;width:100%;height:310px;overflow:hidden;padding:10px 8px 2px;
      border:1px solid #eef2f6;border-radius:7px;background:#fcfdff;
    }
    :where(html:has(.stats-page)) .chart-box canvas{display:block;width:100%!important;height:100%!important;max-height:100%!important}


    /* وسوم مخصصة لرسم زيارات المتجر — أوضح من وسوم Chart.js الافتراضية. */
    :where(html:has(.stats-page)) .store-chart-legend{
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:wrap;
      gap:10px;
      margin:0 0 10px;
    }
    :where(html:has(.stats-page)) .store-chart-legend-item{
      display:inline-flex;
      align-items:center;
      gap:8px;
      min-height:32px;
      padding:5px 10px;
      border:1px solid #e2e8f0;
      border-radius:7px;
      background:#ffffff;
      color:#475569;
      font-size:12px;
      line-height:1.6;
      white-space:nowrap;
    }
    :where(html:has(.stats-page)) .store-chart-legend-dot{
      width:10px;
      height:10px;
      flex:0 0 10px;
      border-radius:50%;
      box-shadow:0 0 0 3px rgba(15,23,42,.035);
    }
    :where(html:has(.stats-page)) .store-chart-legend-item.home{
      border-color:rgba(255,138,52,.28);
      background:rgba(255,138,52,.055);
    }
    :where(html:has(.stats-page)) .store-chart-legend-item.home .store-chart-legend-dot{background:#ff8a34}
    :where(html:has(.stats-page)) .store-chart-legend-item.directory{
      border-color:rgba(6,182,212,.28);
      background:rgba(6,182,212,.055);
    }
    :where(html:has(.stats-page)) .store-chart-legend-item.directory .store-chart-legend-dot{background:#06b6d4}

    :where(html:has(.stats-page)) .empty{
      min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
      padding:22px;text-align:center;border:1px dashed #cbd5e1;border-radius:7px;
      background:linear-gradient(180deg,rgba(var(--stats-primary-rgb),.035),#fbfcfe);color:#64748b;font-size:13px;line-height:1.8;
    }
    :where(html:has(.stats-page)) .empty .stats-svg-icon{width:26px;height:26px;color:var(--stats-primary);opacity:.78}
    :where(html:has(.stats-page)) .empty strong{color:#334155;font-weight:500}

    @media (max-width:1050px){
      :where(html:has(.stats-page)) .member-stats-filter-form{grid-template-columns:1fr}
      :where(html:has(.stats-page)) .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    }

    @media (max-width:640px){
      :where(html:has(.stats-page)) .stats-page{margin-bottom:14px}
      :where(html:has(.stats-page)) .stats-hero{padding:16px;border-radius:8px}
      :where(html:has(.stats-page)) .stats-hero-content{align-items:flex-start;flex-direction:column}
      :where(html:has(.stats-page)) .stats-hero h2{font-size:20px}
      :where(html:has(.stats-page)) .stats-hero-badge{width:100%}
      :where(html:has(.stats-page)) .stats-content-panel{padding:10px}
      :where(html:has(.stats-page)) .stats-filter-card,
:where(html:has(.stats-page)) .stats-panel{padding:12px}
      :where(html:has(.stats-page)) .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
      :where(html:has(.stats-page)) .kpi-card{min-height:108px;padding:12px 11px;border-inline-start-width:2px}
      :where(html:has(.stats-page)) .kpi-top{align-items:flex-start;margin-bottom:9px}
      :where(html:has(.stats-page)) .kpi-card h4{font-size:11.5px}
      :where(html:has(.stats-page)) .kpi-icon{width:32px;height:32px;flex-basis:32px}
      :where(html:has(.stats-page)) .kpi-card .v{font-size:17px}
      :where(html:has(.stats-page)) .chart-box{height:270px;padding:7px 2px 2px}
      :where(html:has(.stats-page)) .empty{min-height:118px;padding:18px 12px}
    }

    @media (max-width:360px){
      :where(html:has(.stats-page)) .kpis{grid-template-columns:1fr}
    }


    /* إحصائيات المتاجر: تجمع الانتقالات إلى المتجر من الرئيسية ودليل المتاجر. */
    :where(html:has(.stats-page)) .store-stats-section{
      margin-top:18px;padding-top:18px;border-top:1px solid #e8edf3;
    }
    :where(html:has(.stats-page)) .store-stats-section.is-standalone{
      margin-top:0;padding-top:0;border-top:0;
    }
    :where(html:has(.stats-page)) .store-stats-head{
      display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
      margin:0 0 14px;
    }
    :where(html:has(.stats-page)) .store-stats-title-wrap{display:flex;align-items:flex-start;gap:10px;min-width:0}
    :where(html:has(.stats-page)) .store-stats-title-icon{
      width:38px;height:38px;flex:0 0 38px;display:inline-flex;align-items:center;justify-content:center;
      border:1px solid rgba(var(--stats-primary-rgb),.14);border-radius:7px;
      background:rgba(var(--stats-primary-rgb),.07);color:var(--stats-primary);
    }
    :where(html:has(.stats-page)) .store-stats-title{margin:0;color:#172033;font-size:16px;font-weight:500;line-height:1.7}
    :where(html:has(.stats-page)) .store-stats-description{margin:3px 0 0;color:#64748b;font-size:12.5px;line-height:1.8}
    :where(html:has(.stats-page)) .store-feature-state{
      display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;
      border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;color:#475569;font-size:12.5px;
    }
    :where(html:has(.stats-page)) .store-feature-state.featured{border-color:var(--sadaa-line-2);background:var(--sadaa-tint-3);color:var(--stats-primary-dark)}
    :where(html:has(.stats-page)) .store-feature-state.featured .stats-svg-icon{color:var(--stats-primary)}
    :where(html:has(.stats-page)) .store-filter-card{margin-bottom:14px}
    :where(html:has(.stats-page)) .store-filter-card .member-stats-filter-form{grid-template-columns:minmax(0,420px)}
    :where(html:has(.stats-page)) .store-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
    :where(html:has(.stats-page)) .store-kpis .kpi-card{min-height:108px}
    :where(html:has(.stats-page)) .store-kpis .kpi-card:nth-child(2),
:where(html:has(.stats-page)) .store-kpis .kpi-card:nth-child(3){
      border-inline-start-color:var(--sadaa-primary);
      background:linear-gradient(135deg,#fff 28%,rgba(var(--sadaa-admin-primary-rgb),.035) 100%);
    }
    :where(html:has(.stats-page)) .store-tracking-note{
      margin-top:8px;color:#7b8798;font-size:11.5px;line-height:1.75;
    }
    :where(html:has(.stats-page)) .store-tracking-note i{margin-inline-end:5px;color:var(--stats-primary)}

    @media (max-width:1050px){
      :where(html:has(.stats-page)) .store-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media (max-width:640px){
      :where(html:has(.stats-page)) .store-stats-section{margin-top:15px;padding-top:15px}
      :where(html:has(.stats-page)) .store-stats-head{align-items:flex-start}
      :where(html:has(.stats-page)) .store-stats-title{font-size:15px}
      :where(html:has(.stats-page)) .store-feature-state{width:100%;justify-content:center}
      :where(html:has(.stats-page)) .store-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    }
    @media (max-width:360px){
      :where(html:has(.stats-page)) .store-kpis{grid-template-columns:1fr}
    }

  





/* V100 | Member fragment rules moved from manage_ads.php; active only while its tab exists. */

:where(html:has(.member-records-page)) .member-records-page,
:where(html:has(.member-records-page)) .member-records-page *{
  box-sizing: border-box;
}

:where(html:has(.member-records-page)) .member-records-page{
  direction: rtl;
  font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
  color: #1f2937;
  font-weight: 400;
}

/* عند فتح تبويب إدارة الإعلان كصفحة مستقلة بعد الحذف، نحافظ على عرض الصندوق مثل لوحة العضو. */
:where(html:has(.member-records-page)) .member-records-page.member-records-standalone{
  width: min(1430px, calc(100% - 32px));
  max-width: 1430px;
  min-height: calc(100vh - 340px);
  margin: 0 auto 38px;
  padding: 0;
}

:where(html:has(.member-records-page)) .member-records-page.member-records-standalone .back-row,
:where(html:has(.member-records-page)) .member-records-page.member-records-standalone .member-records-form,
:where(html:has(.member-records-page)) .member-records-page.member-records-standalone .member-records-list{
  max-width: 100%;
}

@media (max-width: 760px) {
  :where(html:has(.member-records-page)) .member-records-page.member-records-standalone{
    width: min(100% - 18px, 1430px);
    min-height: calc(100vh - 300px);
    margin-bottom: 26px;
  }
}

:where(html:has(.member-records-page)) .member-records-page *:not(i){
  font-weight: 400 !important;
}

/* رأس الصفحة يترك كما هو ولا يتم التعامل معه كرأس ملوّن */
:where(html:has(.member-records-page)) .member-records-page .ads-heading-wrap{
  background: #fff;
  margin: 0 0 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

:where(html:has(.member-records-page)) .member-records-page .ads-heading-inner{
  max-width: 1430px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

:where(html:has(.member-records-page)) .member-records-page .ads-heading-inner i{
  color: var(--sadaa-admin-primary,var(--sadaa-primary));
  font-size: 18px;
}

:where(html:has(.member-records-page)) .member-records-page h2{
  margin: 0;
  font-size: 18px;
  color: #1f2937;
}

:where(html:has(.member-records-page)) .member-records-page .back-row{
  text-align: left;
  max-width: 1430px;
  margin: 0 auto 12px;
  padding: 0 2px;
}

:where(html:has(.member-records-page)) .member-records-page .back-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  background: #fff;
  color: #374151;
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #e5e7eb;
}

:where(html:has(.member-records-page)) .member-records-page .back-button:hover{
  background: #f9fafb;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-form{
  background: #fff;
  padding: 14px;
  margin: 0 auto 20px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  max-width: 1430px;
  width: 100%;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filters{
  max-width: 1430px;
  width: 100%;
  margin: 0 auto 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px auto;
  gap: 9px;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-wrap{
  position: relative;
  min-width: 0;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-icon{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-input,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-select{
  width: 100%;
  min-height: 40px;
  border: 1px solid #d9dee6;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-input{
  padding: 8px 34px 8px 11px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-input::placeholder{
  color: #9ca3af;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-select{
  padding: 8px 10px 8px 34px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath fill='%2364748b' d='M2.8 2.2h10.4c.9 0 1.4 1.05.82 1.74l-5.2 6.21c-.43.52-1.21.52-1.64 0l-5.2-6.21C1.4 3.25 1.9 2.2 2.8 2.2Z'/%3E%3C/svg%3E");
}

:where(html:has(.member-records-page)) .member-records-page .member-records-search-input:focus,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-select:focus{
  border-color: var(--sadaa-line-3);
  box-shadow: 0 0 0 3px rgba(var(--sadaa-primary-rgb), .08);
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-actions{
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-submit,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-clear{
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-submit{
  border: 1px solid var(--sadaa-admin-primary,var(--sadaa-primary));
  background: var(--sadaa-admin-primary,var(--sadaa-primary));
  color: #fff;
  cursor: pointer;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-submit:hover{
  background: var(--sadaa-admin-hover,var(--sadaa-primary-dark));
  border-color: var(--sadaa-admin-hover,var(--sadaa-primary-dark));
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-clear{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-filter-clear:hover{
  background: #f3f4f6;
  color: #374151;
}

@media (max-width: 900px) {
  :where(html:has(.member-records-page)) .member-records-page .member-records-filters{
    grid-template-columns: 1fr 1fr;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-search-wrap{
    grid-column: 1 / -1;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-filter-actions{
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :where(html:has(.member-records-page)) .member-records-page .member-records-filters{
    grid-template-columns: 1fr;
    padding: 9px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-search-wrap,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-actions{
    grid-column: auto;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-filter-actions{
    width: 100%;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-filter-submit,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-clear{
    flex: 1 1 0;
  }
}

:where(html:has(.member-records-page)) .member-records-page .member-records-toolbar{
  width: 100%;
  margin: 0 0 10px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-toolbar-inner{
  background: transparent;
  border: 0;
  padding: 0 2px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-select-actions{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: nowrap;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-selection-side{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-selected-count{
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--sadaa-admin-soft,var(--sadaa-tint-2));
  border: 1px solid var(--sadaa-admin-soft-line,var(--sadaa-line-2));
  color: var(--sadaa-admin-primary,var(--sadaa-primary));
  font-size: 12px;
  white-space: nowrap;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-selected-count.is-visible{
  display: inline-flex;
}

/* عزل تنسيق تحديد الكل داخل تبويب إدارة الإعلان فقط */
:where(html:has(.member-records-page)) .member-records-page .member-records-select-actions,
:where(html:has(.member-records-page)) .member-records-page .member-records-select-actions *{
  box-sizing: border-box;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-select-actions{
  direction: rtl;
  isolation: isolate;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-check-all{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  margin: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-check-all-input,
:where(html:has(.member-records-page)) .member-records-page .member-records-row-checkbox{
  appearance: auto;
  -webkit-appearance: checkbox;
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
  margin: 0;
  padding: 0;
  accent-color: var(--sadaa-admin-primary,var(--sadaa-primary));
  cursor: pointer;
  vertical-align: middle;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-bulk-delete-btn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-bulk-delete-btn:hover:not(:disabled){
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-bulk-delete-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-list{
  max-width: 1430px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: visible;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row,
:where(html:has(.member-records-page)) .member-records-page .member-record-head{
  display: grid;
  grid-template-columns: 58px 105px 100px 110px minmax(150px, 1.2fr) 110px minmax(110px, 1fr) 130px 86px;
  align-items: center;
  column-gap: 8px;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-head{
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row{
  padding: 12px;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px;
  color: #374151;
  transition: background .15s ease;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row{
  position: relative;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row:has(.member-record-menu[open]){
  z-index: 20;
}


:where(html:has(.member-records-page)) .member-records-page .member-record-row.row-menu-open{
  z-index: 30;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row:last-child{
  border-bottom: 0;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-row:hover{
  background: #fcfcfd;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-cell{
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}


:where(html:has(.member-records-page)) .member-records-page .member-record-cell.member-record-actions,
:where(html:has(.member-records-page)) .member-records-page .member-record-row .member-record-cell:last-child{
  overflow: visible;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-head .member-record-cell{
  color: #4b5563;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-id{
  color: #111827;
}

:where(html:has(.member-records-page)) .member-records-page .publish-cell{
  white-space: normal;
  line-height: 1.45;
  text-align: center;
}

:where(html:has(.member-records-page)) .member-records-page .publish-datetime{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

:where(html:has(.member-records-page)) .member-records-page .publish-date,
:where(html:has(.member-records-page)) .member-records-page .publish-time{
  font-size: inherit;
  color: inherit;
}

:where(html:has(.member-records-page)) .member-records-page .publish-time{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  direction: ltr;
  unicode-bidi: isolate;
}

:where(html:has(.member-records-page)) .member-records-page .publish-meridiem{
  font-size: .82em;
  letter-spacing: .2px;
}

:where(html:has(.member-records-page)) .member-records-page .badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}

:where(html:has(.member-records-page)) .member-records-page .badge-active{
  background: #ecfdf3;
  color: #15803d;
  border-color: #bbf7d0;
}

:where(html:has(.member-records-page)) .member-records-page .badge-expired{
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

:where(html:has(.member-records-page)) .member-records-page .badge-pending{
  background: #fffbeb;
  color: #a16207;
  border-color: #fde68a;
}

:where(html:has(.member-records-page)) .member-records-page .badge-scheduled{
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

:where(html:has(.member-records-page)) .member-records-page .badge-inactive{
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

:where(html:has(.member-records-page)) .member-records-page .badge-cancelled{
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

:where(html:has(.member-records-page)) .member-records-page .badge-refunded{
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}


:where(html:has(.member-records-page)) .member-records-page .badge-refund-pending{
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

:where(html:has(.member-records-page)) .member-records-page .badge-payment-review{
  background: var(--sadaa-admin-soft,var(--sadaa-tint-2));
  color: var(--sadaa-primary-light);
  border-color: var(--sadaa-line-2,#D6DAEA);
}

:where(html:has(.member-records-page)) .member-records-page .badge-payment-pending{
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

:where(html:has(.member-records-page)) .member-records-page .badge-payment-failed{
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

:where(html:has(.member-records-page)) .member-records-page .badge-payment-expired{
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-status-stack{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

:where(html:has(.member-records-page)) .member-records-page .badge-refund-failed{
  min-height: 20px;
  padding: 2px 7px;
  background: #fff7ed;
  color: #b45309;
  border-color: #fed7aa;
  font-size: 11px;
}

:where(html:has(.member-records-page)) .member-records-page .member-media-kind{
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
}

:where(html:has(.member-records-page)) .member-records-page .member-media-kind i{
  font-size: 13px;
}

:where(html:has(.member-records-page)) .member-records-page .member-media-kind.is-image{
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

:where(html:has(.member-records-page)) .member-records-page .member-media-kind.is-video{
  background: var(--sadaa-admin-soft,var(--sadaa-tint-2));
  color: var(--sadaa-primary-light);
  border-color: var(--sadaa-line-2,#D6DAEA);
}

:where(html:has(.member-records-page)) .member-records-page .member-record-actions{
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-menu{
  position: relative;
  display: inline-flex;
  justify-content: center;
  overflow: visible;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-menu summary{
  list-style: none;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-menu summary::-webkit-details-marker{
  display: none;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-menu-toggle:hover,
:where(html:has(.member-records-page)) .member-records-page .member-record-menu[open] .member-record-menu-toggle{
  background: var(--sadaa-admin-soft,var(--sadaa-tint-2));
  color: var(--sadaa-admin-primary,var(--sadaa-primary));
  border-color: var(--sadaa-line-2,#D6DAEA);
}

:where(html:has(.member-records-page)) .member-records-page .member-record-dots{
  fill: currentColor;
  stroke: none;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-actions-menu{
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 128px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
  z-index: 999;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-actions-menu::before{
  content: "";
  position: absolute;
  top: -5px;
  left: 13px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  transform: rotate(-45deg);
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action{
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
  cursor: pointer;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action:hover{
  background: #f9fafb;
  color: var(--sadaa-admin-primary,var(--sadaa-primary));
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action.is-delete:hover{
  background: #fef2f2;
  color: #b91c1c;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action.is-disabled,
:where(html:has(.member-records-page)) .member-records-page .member-record-action:disabled{
  color: #9ca3af;
  cursor: not-allowed;
  opacity: .65;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action.is-disabled:hover,
:where(html:has(.member-records-page)) .member-records-page .member-record-action:disabled:hover{
  background: transparent;
  color: #9ca3af;
}

:where(html:has(.member-records-page)) .member-records-page .member-record-action .member-ui-icon{
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

:where(html:has(.member-records-page)) .member-records-page .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}


:where(html:has(.member-records-page)) .member-records-page .member-ui-icon{
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: currentColor;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-bulk-delete-btn .member-ui-icon,
:where(html:has(.member-records-page)) .member-records-page .btn .member-ui-icon{
  pointer-events: none;
}

:where(html:has(.member-records-page)) .member-records-page .btn-view:hover{
  background: var(--sadaa-admin-soft,var(--sadaa-tint-2));
  color: var(--sadaa-admin-primary,var(--sadaa-primary));
  border-color: var(--sadaa-line-2,#D6DAEA);
}


:where(html:has(.member-records-page)) .member-records-page .empty-row{
  display: block;
  text-align: center;
  color: #6b7280;
  padding: 30px 15px;
  background: #fff;
}

:where(html:has(.member-records-page)) .member-records-page #alertBox{
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 720px;
  width: calc(100% - 32px);
  text-align: right;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
  z-index: 9999;
  opacity: 1;
  animation: memberAdsFadeOut .5s ease-in-out 3s forwards;
  direction: rtl;
}

@keyframes memberAdsFadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -10px);
    visibility: hidden;
  }
}

@media (max-width: 1050px) {
  :where(html:has(.member-records-page)) .member-records-page .member-records-form{
    padding: 12px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-toolbar-inner{
    align-items: stretch;
  }

}


/* الشاشات المتوسطة:
   بدلاً من ضغط جدول 9 أعمدة، تتحول السجلات إلى بطاقات ثنائية الأعمدة. */
@media (min-width: 761px) and (max-width: 1100px) {
  :where(html:has(.member-records-page)) .member-records-page .member-records-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: visible;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-head{
    display: none;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-width: 0;
    padding: 12px;
    margin: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-row:hover{
    background: #fff;
    border-color: #d9dee6;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    text-align: left;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell:last-child{
    border-bottom: 0;
    padding-bottom: 0;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell::before{
    content: attr(data-label);
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 12px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell[data-label=""]::before,
:where(html:has(.member-records-page)) .member-records-page .member-record-actions::before{
    display: none;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-actions{
    justify-content: flex-end;
    padding-top: 9px;
  }

  :where(html:has(.member-records-page)) .member-records-page .publish-cell{
    text-align: left;
  }

  :where(html:has(.member-records-page)) .member-records-page .publish-datetime{
    align-items: flex-end;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-actions-menu{
    left: 0;
    right: auto;
  }

  :where(html:has(.member-records-page)) .member-records-page .empty-row{
    grid-column: 1 / -1;
    border-radius: 8px;
  }
}

@media (max-width: 760px) {
  :where(html:has(.member-records-page)) .member-records-page .ads-heading-wrap{
    margin-bottom: 12px;
    padding: 14px 0;
  }

  :where(html:has(.member-records-page)) .member-records-page .ads-heading-inner{
    padding: 0 14px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-form{
    padding: 10px;
    border-radius: 8px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-list{
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 8px;
    overflow: visible;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-head{
    display: none;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-row{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 9px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-row:last-child{
    margin-bottom: 0;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding-bottom: 7px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell:last-child{
    border-bottom: 0;
    padding-bottom: 0;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell::before{
    content: attr(data-label);
    color: #6b7280;
    flex: 0 0 auto;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-cell[data-label=""]::before,
:where(html:has(.member-records-page)) .member-records-page .member-record-actions::before{
    display: none;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-actions{
    justify-content: flex-end;
    position: relative;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-record-actions-menu{
    left: 0;
    right: auto;
  }

  :where(html:has(.member-records-page)) .member-records-page .publish-cell{
    text-align: left;
  }

  :where(html:has(.member-records-page)) .member-records-page .publish-datetime{
    align-items: flex-end;
  }

  :where(html:has(.member-records-page)) .member-records-page .empty-row{
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }
}


/* رأس النموذج بنفس روح رأس tab_users.php */
:where(html:has(.member-records-page)) .member-records-page .member-records-page-header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
    radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
    var(--sadaa-admin-hero-gradient, linear-gradient(90deg,var(--sadaa-admin-primary,var(--sadaa-primary)) 0%,var(--sadaa-admin-primary,var(--sadaa-primary)) 75%,var(--sadaa-accent) 100%));
  border: 0;
  border-radius: 8px;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-header::before,
:where(html:has(.member-records-page)) .member-records-page .member-records-page-header::after{
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-header::before{
  width: 118px;
  height: 118px;
  left: -36px;
  top: -46px;
  background: rgba(255, 255, 255, 0.14);
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-header::after{
  width: 86px;
  height: 86px;
  right: 34%;
  bottom: -44px;
  background: rgba(255, 255, 255, 0.12);
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-title,
:where(html:has(.member-records-page)) .member-records-page .member-records-page-actions{
  position: relative;
  z-index: 1;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-title{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-icon{
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-icon .member-records-header-icon{
  width: 19px;
  height: 19px;
  color: #ffffff;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-title h2{
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500 !important;
  color: #ffffff;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-title p{
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.8;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

:where(html:has(.member-records-page)) .member-records-page .member-records-page-meta{
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  :where(html:has(.member-records-page)) .member-records-page .member-records-page-header{
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-page-actions{
    width: 100%;
  }

  :where(html:has(.member-records-page)) .member-records-page .member-records-page-meta{
    width: 100%;
  }
}


/* === 2026-10-02 | My Ads tools + table header aligned with Admin Orders === */
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-card{
  width:100%;margin:0 0 12px;border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
  border-radius:8px;background:#fff;box-shadow:none;overflow:hidden;
}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-card>summary{list-style:none}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-card>summary::-webkit-details-marker{display:none}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-head{
  min-height:46px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;
  background:var(--sadaa-admin-soft,var(--sadaa-tint,var(--sadaa-tint-2)));
  border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
  color:var(--sadaa-admin-text,var(--sadaa-text,#252B47));
}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-card:not([open]) .member-records-tools-head{border-bottom-color:transparent}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-title{display:inline-flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:500;line-height:1.4}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-title i{color:var(--sadaa-admin-primary,var(--sadaa-primary));font-size:13px}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-chevron{
  flex:0 0 28px;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));border-radius:7px;background:#fff;color:var(--sadaa-admin-primary,var(--sadaa-primary));
}
:where(html:has(.member-records-page)) .member-records-page .member-records-tools-body{padding:12px;background:#fff}
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form{
  display:grid;
  grid-template-columns:minmax(320px,1fr) minmax(180px,230px) minmax(160px,190px) auto;
  align-items:center;
  gap:8px;
  width:100%;
  margin:0;
}
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-search-wrap{min-width:0;width:100%}
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-search-input,
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-select{
  width:100%;
  min-height:42px;
  border-color:#d5dce5;
  border-radius:7px;
  background:#fff;
}
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-actions{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-submit,
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-clear{
  min-height:42px;padding:9px 14px;border-radius:7px;gap:7px;font-size:13px;font-weight:500;
}
:where(html:has(.member-records-page)) .member-records-page .member-record-head-delete{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:auto;
  padding:0;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:var(--sadaa-admin-text-3,var(--sadaa-muted,#69728B));
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
:where(html:has(.member-records-page)) .member-records-page .member-record-head-delete:not(:disabled):hover{
  color:var(--sadaa-danger,#DC3545);
  background:rgba(220,53,69,.07);
  border-color:rgba(220,53,69,.16);
}
:where(html:has(.member-records-page)) .member-records-page .member-record-head-delete:disabled{
  opacity:.32;
  cursor:not-allowed;
}
:where(html:has(.member-records-page)) .member-records-page .member-record-head-delete svg,
:where(html:has(.member-records-page)) .member-records-page .member-record-head-delete i{width:15px;height:15px;font-size:14px}
@media (min-width:1101px){
  :where(html:has(.member-records-page)) .member-records-page .member-records-form{padding:0!important;border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)))!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-list{width:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-toolbar{display:none!important;margin:0!important;padding:9px 12px!important;border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)))!important;border-radius:8px 8px 0 0!important;background:#fff!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-form:has(.row-checkbox:checked) .member-records-toolbar{display:block!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-check-all--mobile{display:none!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-select-actions{justify-content:flex-start!important}
  :where(html:has(.member-records-page)) .member-records-page .member-record-head,
:where(html:has(.member-records-page)) .member-records-page .member-record-row{
    grid-template-columns:58px repeat(7,minmax(0,1fr)) 86px!important;column-gap:0!important;padding:0!important;
  }
  :where(html:has(.member-records-page)) .member-records-page .member-record-head{
    min-height:46px!important;background:var(--sadaa-admin-soft,var(--sadaa-tint,var(--sadaa-tint-2)))!important;color:var(--sadaa-admin-text-2,var(--sadaa-text-2,var(--sadaa-text)))!important;
    font-size:13px!important;font-weight:500!important;border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)))!important;border-radius:8px 8px 0 0!important;
  }
  :where(html:has(.member-records-page)) .member-records-page .member-record-row{min-height:58px!important;background:#fff!important;border-bottom:1px solid #eef0f3!important;font-size:13px!important}
  :where(html:has(.member-records-page)) .member-records-page .member-record-row:last-child{border-bottom:0!important}
  :where(html:has(.member-records-page)) .member-records-page .member-record-cell{padding:10px 7px!important}
  :where(html:has(.member-records-page)) .member-records-page .member-record-select-head{display:flex;align-items:center;justify-content:center}
  :where(html:has(.member-records-page)) .member-records-page .member-record-select-head .member-records-check-all-input--desktop{width:16px;height:16px;margin:0;cursor:pointer}
}
@media (max-width:1100px){
  :where(html:has(.member-records-page)) .member-records-page .member-records-check-all-input--desktop{display:none!important}
  :where(html:has(.member-records-page)) .member-records-page .member-records-tools-head{min-height:52px;padding:0 12px}
  :where(html:has(.member-records-page)) .member-records-page .member-records-tools-body{padding:10px}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form{grid-template-columns:1fr 1fr}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-search-wrap{grid-column:1/-1;min-width:0}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-actions{grid-column:1/-1}
}
@media (max-width:560px){
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form{grid-template-columns:1fr}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-search-wrap,
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-actions{grid-column:auto;width:100%}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-submit,
:where(html:has(.member-records-page)) .member-records-page .member-records-search-form .member-records-filter-clear{flex:1 1 0}
}



    html:has(.member-records-page){min-height:100%;}
    body:has(.member-records-page).member-records-standalone-body{
      min-height:100vh;
      margin:0;
      background:#f5f6f8;
    }
  

/* Desktop App-Shell alignment — direct page source. */
@media (min-width:1101px){
  :where(html:has(.member-records-page)) .member-records-page{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-page-header,
:where(html:has(.member-records-page)) .member-records-page .back-row,
:where(html:has(.member-records-page)) .member-records-page .member-records-form,
:where(html:has(.member-records-page)) .member-records-page .member-records-list,
:where(html:has(.member-records-page)) .member-records-page .ads-heading-inner{
    width:100%;
    max-width:none;
    margin-inline:0;
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-form{
    margin:0 0 14px;
    padding:12px;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
    border-radius:12px;
    background:#fff;
    box-shadow:0 1px 2px rgba(17,24,39,.025);
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-filters{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    grid-template-columns:minmax(320px,1fr) 190px 175px auto;
    gap:10px;
    border:0;
    border-radius:0;
    background:transparent;
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-list{
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
    border-radius:12px;
    background:#fff;
    overflow:visible;
    box-shadow:0 1px 2px rgba(17,24,39,.025);
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-toolbar{
    margin:0;
    padding:10px 12px;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
    border-radius:12px 12px 0 0;
    background:var(--sadaa-tint-3);
  }
  :where(html:has(.member-records-page)) .member-records-page .member-records-toolbar-inner{padding:0}
  :where(html:has(.member-records-page)) .member-records-page .member-record-head{
    background:var(--sadaa-tint-3);
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2)));
  }
  :where(html:has(.member-records-page)) .member-records-page .member-record-row{background:#fff}
  :where(html:has(.member-records-page)) .member-records-page .member-record-row:hover{background:#FAFAFB}
  :where(html:has(.member-records-page)) .member-records-page .member-records-search-input:focus,
:where(html:has(.member-records-page)) .member-records-page .member-records-filter-select:focus{
    border-color:var(--sadaa-primary);
    box-shadow:0 0 0 3px rgba(var(--sadaa-primary-rgb),.08);
  }
}







/* V100 | Member fragment rules moved from my_invoices.php; active only while its tab exists. */

        html:has(.member-invoices-page){
            --invoice-bg: #f4f6fb;
            --invoice-card: #ffffff;
            --invoice-text: #1f2937;
            --invoice-muted: #6b7280;
            --invoice-border: #e5e7eb;
            --invoice-soft: #f9fafb;
            --invoice-primary: var(--sadaa-primary, var(--sadaa-admin-primary));
            --invoice-primary-dark: var(--sadaa-primary-dark, var(--sadaa-admin-dark));
            --invoice-primary-rgb: var(--sadaa-primary-rgb);
            --invoice-primary-soft: var(--sadaa-admin-soft, rgba(var(--invoice-primary-rgb), .07));
            --invoice-primary-line: var(--sadaa-admin-soft-line, rgba(var(--invoice-primary-rgb), .20));
            --invoice-danger: #b91c1c;
            --invoice-danger-soft: #fef2f2;
        }

        :where(html:has(.member-invoices-page)) *{ box-sizing: border-box; }

        body:has(.member-invoices-page){
            margin: 0;
            font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
            background: var(--invoice-bg);
            color: var(--invoice-text);
            font-weight: 400;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page,
:where(html:has(.member-invoices-page)) .member-invoices-page *{
            box-sizing: border-box;
            font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page{
            direction: rtl;
            max-width: 1430px;
            margin: 0 auto;
            padding: 0 0 22px;
            color: var(--invoice-text);
            font-weight: 400;
        }


        :where(html:has(.member-invoices-page)) .invoices-hero{
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.42);
            border-radius: 18px;
            padding: 24px;
            margin-bottom: 14px;
            background:
                var(--sadaa-admin-hero-gradient, linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
            color: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero::before,
:where(html:has(.member-invoices-page)) .invoices-hero::after{
            content: "";
            position: absolute;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            pointer-events: none;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero::before{
            width: 210px;
            height: 210px;
            top: -110px;
            left: -70px;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero::after{
            width: 140px;
            height: 140px;
            bottom: -75px;
            right: 80px;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero-content{
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            flex-wrap: wrap;
        }

        :where(html:has(.member-invoices-page)) .invoices-title-wrap{
            display: flex;
            align-items: center;
            gap: 13px;
            min-width: 260px;
        }

        :where(html:has(.member-invoices-page)) .invoices-icon{
            width: 54px;
            height: 54px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.22);
            flex: 0 0 auto;
        }

        :where(html:has(.member-invoices-page)) .invoices-icon .invoice-icon-svg,
:where(html:has(.member-invoices-page)) .invoices-eyebrow .invoice-icon-svg,
:where(html:has(.member-invoices-page)) .invoices-hero-badge .invoice-icon-svg{
            color: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-eyebrow{
            display: inline-flex;
            align-items: center;
            gap: 7px;
            margin-bottom: 6px;
            font-size: 13px;
            color: rgba(255, 255, 255, 0.84);
        }

        :where(html:has(.member-invoices-page)) .invoices-hero h1{
            margin: 0;
            font-size: 24px;
            line-height: 1.45;
            color: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero p{
            margin: 7px 0 0;
            max-width: 620px;
            color: rgba(255, 255, 255, 0.84);
            line-height: 1.9;
            font-size: 14px;
        }

        :where(html:has(.member-invoices-page)) .invoices-hero-badge{
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 34px;
            padding: 7px 12px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.22);
            font-size: 13px;
            white-space: nowrap;
        }

        :where(html:has(.member-invoices-page)) .invoices-stats{
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin: 0 0 12px;
        }

        :where(html:has(.member-invoices-page)) .invoice-stat-card{
            --sadaa-metric-accent: var(--invoice-primary);
            --sadaa-metric-border: var(--invoice-border);
        }

        :where(html:has(.member-invoices-page)) .invoice-stat-label .invoice-icon-svg{
            color: var(--invoice-primary);
        }

        :where(html:has(.member-invoices-page)) .invoice-stat-sub{
            font-size: 12px;
            line-height: 1.7;
        }

        :where(html:has(.member-invoices-page)) .invoices-panel{
            background: transparent;
            border: 0;
            border-radius: 0;
            padding: 0;
            overflow: visible;
        }

        :where(html:has(.member-invoices-page)) .invoices-panel-head{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin: 0 0 12px;
            padding: 10px 12px;
            border: 1px solid var(--invoice-border);
            border-radius: 8px;
            background: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-panel-title{
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: #1f2937;
        }

        :where(html:has(.member-invoices-page)) .invoices-panel-note{
            color: var(--invoice-muted);
            font-size: 13px;
            line-height: 1.7;
        }

        :where(html:has(.member-invoices-page)) .invoices-panel-head{
            display: none !important;
        }


        :where(html:has(.member-invoices-page)) .invoices-toolbar{
            display: grid;
            grid-template-columns: minmax(260px, 1fr) 165px 155px auto auto;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            padding: 11px;
            border: 1px solid var(--invoice-border);
            border-radius: 8px;
            background: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-wrap{
            position: relative;
            min-width: 0;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-wrap .invoice-icon-svg{
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            color: #9ca3af;
            pointer-events: none;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-input,
:where(html:has(.member-invoices-page)) .invoices-filter-select{
            width: 100%;
            height: 42px;
            border: 1px solid var(--invoice-border);
            border-radius: 7px;
            background: #fff;
            color: #374151;
            font-size: 13.5px;
            outline: none;
            transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-input{
            padding: 7px 38px 7px 11px;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-input::placeholder{
            color: #9ca3af;
        }

        :where(html:has(.member-invoices-page)) .invoices-filter-select{
            padding: 7px 10px 7px 32px;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23475569' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: left 10px center;
            background-size: 14px 14px;
        }

        :where(html:has(.member-invoices-page)) .invoices-search-input:focus,
:where(html:has(.member-invoices-page)) .invoices-filter-select:focus{
            border-color: var(--invoice-primary);
            box-shadow: none;
            outline: none;
        }

        :where(html:has(.member-invoices-page)) .invoices-toolbar-btn,
:where(html:has(.member-invoices-page)) .invoices-toolbar-reset{
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 7px 13px;
            border-radius: 7px;
            font-size: 13.5px;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            transition: background .15s ease, border-color .15s ease, color .15s ease;
        }

        :where(html:has(.member-invoices-page)) .invoices-toolbar-btn{
            border: 1px solid var(--invoice-primary);
            background: var(--invoice-primary);
            color: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-toolbar-btn:hover{
            border-color: var(--invoice-primary-dark);
            background: var(--invoice-primary-dark);
            color: #fff;
        }

        :where(html:has(.member-invoices-page)) .invoices-toolbar-reset{
            border: 1px solid var(--invoice-border);
            background: #fff;
            color: #6b7280;
        }

        :where(html:has(.member-invoices-page)) .invoices-toolbar-reset:hover{
            border-color: var(--invoice-primary-line);
            background: var(--invoice-primary-soft);
            color: var(--invoice-primary-dark);
        }

        :where(html:has(.member-invoices-page)) .invoices-filter-count{
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-top: 2px;
            color: var(--invoice-muted);
            font-size: 12.5px;
            line-height: 1.7;
        }

        :where(html:has(.member-invoices-page)) .invoices-filter-count strong{
            color: var(--invoice-primary-dark);
            font-weight: 500;
        }

        :where(html:has(.member-invoices-page)) .invoices-list{
            overflow: hidden;
        }

        :where(html:has(.member-invoices-page)) .invoices-table{
            table-layout: fixed;
        }

        :where(html:has(.member-invoices-page)) .invoices-table th,
:where(html:has(.member-invoices-page)) .invoices-table td{
            font-size: 13.5px;
        }

        :where(html:has(.member-invoices-page)) .invoice-no-col{ width: 14%; }
        :where(html:has(.member-invoices-page)) .invoice-type-col{ width: 13%; }
        :where(html:has(.member-invoices-page)) .invoice-details-col{ width: 25%; }
        :where(html:has(.member-invoices-page)) .invoice-amount-col{ width: 13%; }
        :where(html:has(.member-invoices-page)) .invoice-date-col{ width: 18%; }
        :where(html:has(.member-invoices-page)) .invoice-action-col{ width: 17%; }

        :where(html:has(.member-invoices-page)) .invoice-no{
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 30px;
            padding: 4px 9px;
            border-radius: 7px;
            background: var(--invoice-primary-soft);
            border: 1px solid var(--invoice-primary-line);
            color: var(--invoice-primary-dark);
            direction: ltr;
            unicode-bidi: isolate;
            font-weight: 500;
        }

        :where(html:has(.member-invoices-page)) .invoice-type-pill,
:where(html:has(.member-invoices-page)) .invoice-dims-pill{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            max-width: 100%;
            padding: 4px 9px;
            border-radius: 999px;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            color: #374151;
            font-size: 12.5px;
            line-height: 1.5;
        }

        :where(html:has(.member-invoices-page)) .invoice-dims-pill{
            white-space: normal;
        }

        :where(html:has(.member-invoices-page)) .invoice-amount{
            color: #111827;
            font-size: 14px;
            font-weight: 500;
        }

        :where(html:has(.member-invoices-page)) .invoice-date{
            display: inline-block;
            color: #4b5563;
            direction: ltr;
            unicode-bidi: isolate;
            white-space: nowrap;
        }

        :where(html:has(.member-invoices-page)) .invoice-view-btn{
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 38px;
            padding: 7px 11px;
            border-radius: 7px;
            background: #fff;
            color: var(--invoice-primary-dark);
            text-decoration: none;
            font-size: 13.5px;
            border: 1px solid var(--invoice-primary-line);
            transition: background .15s ease, border-color .15s ease, color .15s ease;
        }

        :where(html:has(.member-invoices-page)) .invoice-view-btn:hover{
            background: var(--invoice-primary-soft);
            color: var(--invoice-primary);
            border-color: var(--invoice-primary);
        }


        :where(html:has(.member-invoices-page)) .member-invoices-page a:focus-visible,
:where(html:has(.member-invoices-page)) .member-invoices-page button:focus-visible{
            outline: 2px solid var(--invoice-primary);
            outline-offset: 2px;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page input:focus-visible,
:where(html:has(.member-invoices-page)) .member-invoices-page select:focus-visible{
            outline: none;
        }

        :where(html:has(.member-invoices-page)) .invoices-empty{
            padding: 32px 15px;
            text-align: center;
            background: #fff;
            border: 1px solid var(--invoice-border);
            border-radius: 8px;
        }

        :where(html:has(.member-invoices-page)) .invoices-empty-icon{
            width: 52px;
            height: 52px;
            margin: 0 auto 10px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--invoice-primary-soft);
            color: var(--invoice-primary);
        }

        :where(html:has(.member-invoices-page)) .invoices-empty h3{
            margin: 0 0 7px;
            font-size: 16px;
            color: #1f2937;
        }

        :where(html:has(.member-invoices-page)) .invoices-empty p{
            margin: 0;
            color: var(--invoice-muted);
            line-height: 1.8;
            font-size: 13px;
        }

        :where(html:has(.member-invoices-page)) .invoice-icon-svg{
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 16px;
            color: var(--invoice-primary);
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            font-style: normal;
            font-size: 15px;
            line-height: 1;
        }

        :where(html:has(.member-invoices-page)) .invoices-icon .invoice-icon-svg{
            width: 24px;
            height: 24px;
            flex-basis: 24px;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoice-icon-svg.fa-solid,
:where(html:has(.member-invoices-page)) .member-invoices-page i.invoice-icon-svg{
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900 !important;
            font-style: normal;
        }

        :where(html:has(.member-invoices-page)) .sar-value{
            display: inline-flex;
            align-items: center;
            direction: ltr;
            gap: 6px;
            white-space: nowrap;
            color: #111827;
        }

        :where(html:has(.member-invoices-page)) .sar-symbol-svg{
            width: .9em;
            height: .9em;
            display: block;
            fill: currentColor;
            flex: 0 0 .9em;
        }

        :where(html:has(.member-invoices-page)) .sar-amount{
            display: inline-block;
        }

        :where(html:has(.member-invoices-page)) .muted{
            color: var(--invoice-muted);
            font-size: 13px;
        }

        @media (max-width: 1050px) {
            :where(html:has(.member-invoices-page)) .invoices-table th,
:where(html:has(.member-invoices-page)) .invoices-table td{
                padding-left: 7px;
                padding-right: 7px;
                font-size: 13px;
            }

            :where(html:has(.member-invoices-page)) .invoice-details-col{ width: 24%; }
            :where(html:has(.member-invoices-page)) .invoice-date-col{ width: 19%; }
        }

        @media (max-width: 1100px) {
            :where(html:has(.member-invoices-page)) .member-invoices-page{
                padding-bottom: 14px;
            }

            :where(html:has(.member-invoices-page)) .invoices-stats{
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            :where(html:has(.member-invoices-page)) .invoice-stat-card:last-child{
                grid-column: 1 / -1;
            }



            :where(html:has(.member-invoices-page)) .invoices-list{
                border: 0;
                border-radius: 0;
                background: transparent;
                overflow: visible;
            }

            :where(html:has(.member-invoices-page)) .invoices-table,
:where(html:has(.member-invoices-page)) .invoices-table tbody,
:where(html:has(.member-invoices-page)) .invoices-table tr,
:where(html:has(.member-invoices-page)) .invoices-table td{
                display: block;
                width: 100%;
            }

            :where(html:has(.member-invoices-page)) .invoices-table{
                background: transparent;
            }

            :where(html:has(.member-invoices-page)) .invoices-table thead{
                display: none;
            }

            :where(html:has(.member-invoices-page)) .invoices-table tbody{
                display: grid;
                gap: 9px;
            }

            :where(html:has(.member-invoices-page)) .invoices-table tbody tr{
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0 14px;
                padding: 12px;
                border: 1px solid var(--invoice-border);
                border-top: 2px solid var(--invoice-primary);
                border-radius: 8px;
                background: #fff;
            }

            :where(html:has(.member-invoices-page)) .invoices-table tbody tr:hover{
                background: #fff;
            }

            :where(html:has(.member-invoices-page)) .invoices-table td{
                padding: 9px 0;
                border-bottom: 1px solid #eef0f3;
                text-align: right;
                font-size: 13.5px;
            }

            :where(html:has(.member-invoices-page)) .invoices-table td::before{
                content: attr(data-label);
                display: block;
                margin-bottom: 4px;
                color: var(--invoice-muted);
                font-size: 12px;
                line-height: 1.5;
            }

            :where(html:has(.member-invoices-page)) .invoice-no-cell,
:where(html:has(.member-invoices-page)) .invoice-amount-cell{
                display: flex !important;
                flex-direction: column;
                align-items: flex-start;
                justify-content: flex-start;
                gap: 5px;
                min-width: 0;
                border-bottom: 1px solid var(--invoice-primary-line) !important;
            }

            :where(html:has(.member-invoices-page)) .invoice-no-cell{
                order: 1;
                grid-column: 1;
            }

            :where(html:has(.member-invoices-page)) .invoice-amount-cell{
                order: 2;
                grid-column: 2;
            }

            :where(html:has(.member-invoices-page)) .invoice-no-cell::before,
:where(html:has(.member-invoices-page)) .invoice-amount-cell::before{
                margin: 0 !important;
                color: var(--invoice-primary-dark) !important;
            }

            :where(html:has(.member-invoices-page)) .invoice-no,
:where(html:has(.member-invoices-page)) .invoice-amount{
                font-size: 14px;
            }

            :where(html:has(.member-invoices-page)) .invoice-no{
                max-width: 100%;
            }

            :where(html:has(.member-invoices-page)) .invoice-amount .sar-value{
                color: #111827;
                font-size: 14.5px;
                font-weight: 500;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-cell{
                order: 3;
            }

            :where(html:has(.member-invoices-page)) .invoice-details-cell{
                order: 4;
            }

            :where(html:has(.member-invoices-page)) .invoice-date-cell{
                order: 5;
            }

            :where(html:has(.member-invoices-page)) .invoice-action-cell{
                order: 6;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-cell,
:where(html:has(.member-invoices-page)) .invoice-details-cell,
:where(html:has(.member-invoices-page)) .invoice-date-cell,
:where(html:has(.member-invoices-page)) .invoice-action-cell{
                grid-column: 1 / -1;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-cell,
:where(html:has(.member-invoices-page)) .invoice-details-cell,
:where(html:has(.member-invoices-page)) .invoice-date-cell{
                display: grid !important;
                grid-template-columns: 92px minmax(0, 1fr);
                align-items: center;
                gap: 12px;
                min-height: 46px;
                padding: 8px 0;
                border-bottom: 1px solid #eef0f3 !important;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-cell::before,
:where(html:has(.member-invoices-page)) .invoice-details-cell::before,
:where(html:has(.member-invoices-page)) .invoice-date-cell::before{
                margin: 0 !important;
                color: var(--invoice-muted);
                line-height: 1.5;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-pill,
:where(html:has(.member-invoices-page)) .invoice-dims-pill,
:where(html:has(.member-invoices-page)) .invoice-date{
                justify-self: start;
                max-width: 100%;
            }

            :where(html:has(.member-invoices-page)) .invoice-dims-pill{
                text-align: right;
            }

            :where(html:has(.member-invoices-page)) .invoice-date{
                direction: ltr;
                unicode-bidi: isolate;
                text-align: left;
                white-space: nowrap;
            }

            :where(html:has(.member-invoices-page)) .invoice-action-cell{
                border-bottom: 0 !important;
                padding-bottom: 0 !important;
            }

            :where(html:has(.member-invoices-page)) .invoice-action-cell::before{
                display: none !important;
            }

            :where(html:has(.member-invoices-page)) .invoice-view-btn{
                width: 100%;
                min-height: 42px;
                background: var(--invoice-primary-soft);
            }
        }

        @media (max-width: 430px) {
            :where(html:has(.member-invoices-page)) .invoices-toolbar{
                grid-template-columns: 1fr;
            }

            :where(html:has(.member-invoices-page)) .invoices-search-wrap,
:where(html:has(.member-invoices-page)) .invoices-filter-count{
                grid-column: 1;
            }

            :where(html:has(.member-invoices-page)) .invoices-stats{
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            :where(html:has(.member-invoices-page)) .invoice-stat-card{
                min-width: 0;
            }

            :where(html:has(.member-invoices-page)) .invoice-stat-card:last-child{
                grid-column: 1 / -1;
            }

            :where(html:has(.member-invoices-page)) .invoice-stat-value{
                word-break: break-word;
            }

            :where(html:has(.member-invoices-page)) .invoices-table tbody tr{
                gap: 0 10px;
                padding: 11px;
            }

            :where(html:has(.member-invoices-page)) .invoice-type-cell,
:where(html:has(.member-invoices-page)) .invoice-details-cell,
:where(html:has(.member-invoices-page)) .invoice-date-cell{
                grid-template-columns: 78px minmax(0, 1fr);
                gap: 10px;
            }

            :where(html:has(.member-invoices-page)) .invoice-no-cell,
:where(html:has(.member-invoices-page)) .invoice-amount-cell{
                padding-top: 8px;
                padding-bottom: 9px;
            }
        }


        /* رأس النموذج بنفس روح رأس tab_users.php */
        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header{
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 14px;
            padding: 18px 20px;
            overflow: hidden;
            background:
                radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
                radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
                var(--sadaa-admin-hero-gradient, linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
            border: 0;
            border-radius: 8px;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header::before,
:where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header::after{
            content: "";
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header::before{
            width: 118px;
            height: 118px;
            left: -36px;
            top: -46px;
            background: rgba(255, 255, 255, 0.14);
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header::after{
            width: 86px;
            height: 86px;
            right: 34%;
            bottom: -44px;
            background: rgba(255, 255, 255, 0.12);
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-title,
:where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-actions{
            position: relative;
            z-index: 1;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-title{
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-icon{
            width: 42px;
            height: 42px;
            min-width: 42px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.24);
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-icon .invoice-icon-svg{
            width: 19px;
            height: 19px;
            color: #ffffff;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-title h2{
            margin: 0;
            font-size: 20px;
            line-height: 1.5;
            font-weight: 500;
            color: #ffffff;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-title p{
            margin: 3px 0 0;
            color: rgba(255, 255, 255, 0.82);
            font-size: 13px;
            line-height: 1.8;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-actions{
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-meta{
            min-height: 34px;
            padding: 7px 12px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 13px;
            white-space: nowrap;
        }



        :where(html:has(.member-invoices-page)) .invoices-content-panel{
            background: transparent;
            border: 0;
            border-radius: 0;
            padding: 0;
            margin-bottom: 18px;
        }

        :where(html:has(.member-invoices-page)) .invoices-content-panel > :last-child{
            margin-bottom: 0;
        }

        @media (max-width: 700px) {
            :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-header{
                align-items: flex-start;
                flex-direction: column;
                padding: 16px;
            }

            :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-actions,
:where(html:has(.member-invoices-page)) .member-invoices-page .invoices-page-meta{
                width: 100%;
            }
        }

    

        /* =========================================================
           فواتيري — صف أزرار تطبيق / مسح على الجوال
           المصدر المحلي الفعلي داخل my_invoices.php
           ========================================================= */
        :where(html:has(.member-invoices-page)) .invoices-toolbar-actions{
            display: contents;
        }

        @media (min-width: 375px) and (max-width: 720px) {
            :where(html:has(.member-invoices-page)) .invoices-toolbar-actions{
                grid-column: 1 / -1;
                display: grid !important;
                grid-template-columns: minmax(0, 1fr);
                gap: 7px;
                width: 100%;
                min-width: 0;
                margin: 0;
                padding: 0;
            }

            :where(html:has(.member-invoices-page)) .invoices-toolbar-actions.has-reset{
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            :where(html:has(.member-invoices-page)) .invoices-toolbar-actions > .invoices-toolbar-btn,
:where(html:has(.member-invoices-page)) .invoices-toolbar-actions > .invoices-toolbar-reset{
                grid-column: auto !important;
                grid-row: auto !important;
                width: 100% !important;
                min-width: 0 !important;
                max-width: none !important;
                margin: 0 !important;
                justify-self: stretch !important;
            }
        }



        /* فواتيري — مسافة واضحة بين تطبيق ومسح في شاشة 320px */
        @media (max-width: 350px) {
            :where(html:has(.member-invoices-page)) .member-invoices-page .invoices-toolbar-reset{
                margin-top: 5px !important;
            }
        }

        :where(html:has(.member-invoices-page)) .invoices-pagination--outside{
            margin-top: 12px;
        }

        /* ترقيم الصفحات مستقل بصرياً: بدون الخط الفاصل العلوي. */
        html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoices-pagination.invoices-pagination--outside{
            border-top: 0 !important;
        }

        /* فواتيري — في تخطيطات البطاقات: تاريخ الإنشاء في صف منظم، والزر في صف مستقل. */
        @media (max-width: 1100px) {
            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date-cell{
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 14px !important;
                width: 100% !important;
                min-height: 46px !important;
                grid-column: 1 / -1 !important;
                padding: 9px 0 !important;
                text-align: right !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date-cell::before{
                flex: 0 0 auto !important;
                margin: 0 !important;
                text-align: right !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date{
                margin-inline-start: auto !important;
                justify-self: auto !important;
                text-align: left !important;
                direction: ltr !important;
                unicode-bidi: isolate !important;
                white-space: nowrap !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-action-cell{
                display: block !important;
                width: 100% !important;
                grid-column: 1 / -1 !important;
                padding: 10px 0 0 !important;
                margin: 0 !important;
                border-bottom: 0 !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-action-cell::before{
                display: none !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-view-btn{
                display: inline-flex !important;
                width: 100% !important;
                min-height: 42px !important;
                align-items: center !important;
                justify-content: center !important;
                margin: 0 !important;
            }
        }






        /* فواتيري — ضبط محاذاة تاريخ الإنشاء للجوال والتابلت — 2026-10-05 */
        @media (max-width: 1100px) {
            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date-cell{
                align-items: center !important;
                justify-content: space-between !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date-cell::before{
                align-self: center !important;
                margin: 0 !important;
                line-height: 1.5 !important;
            }

            html:has(.member-invoices-page) body #tabContent .member-invoices-page .invoice-date{
                flex: 0 0 auto !important;
                align-self: center !important;
                margin: 0 !important;
                margin-inline-start: 0 !important;
                margin-inline-end: 0 !important;
                line-height: 1.5 !important;
                text-align: left !important;
                direction: ltr !important;
                unicode-bidi: isolate !important;
                white-space: nowrap !important;
            }
        }




/* V100 | Member fragment rules moved from account_settings.php; active only while its tab exists. */

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-header,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header{
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 14px;
      padding: 18px 20px;
      overflow: hidden;
      background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
        radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
        var(--sadaa-admin-hero-gradient, linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
      border: 0;
      border-radius: 8px;
      direction: rtl;
      font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
      box-sizing: border-box;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-header::before,
:where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-header::after,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header::before,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header::after,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header::before,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header::after{
      content: "";
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-header::before,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header::before,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header::before{
      width: 118px;
      height: 118px;
      left: -36px;
      top: -46px;
      background: rgba(255, 255, 255, 0.14);
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-header::after,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header::after,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header::after{
      width: 86px;
      height: 86px;
      right: 34%;
      bottom: -44px;
      background: rgba(255, 255, 255, 0.12);
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-title,
:where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-meta,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-title,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-meta,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-title,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-meta{
      position: relative;
      z-index: 1;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-title,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-title,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-title{
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-icon,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-icon,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-icon{
      width: 42px;
      height: 42px;
      min-width: 42px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.24);
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-header-svg,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-header-svg,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-header-svg{
      width: 19px;
      height: 19px;
      color: #ffffff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: "Font Awesome 6 Free" !important;
      font-weight: 900 !important;
      font-style: normal;
      line-height: 1;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-title h2,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-title h2,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-title h2{
      margin: 0;
      font-size: 20px;
      line-height: 1.5;
      font-weight: 500;
      color: #ffffff;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-title p,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-title p,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-title p{
      margin: 3px 0 0;
      color: rgba(255, 255, 255, 0.82);
      font-size: 13px;
      line-height: 1.8;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page .account-settings-page-meta,
:where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-meta,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-meta{
      min-height: 34px;
      padding: 7px 12px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.2);
      font-size: 13px;
      white-space: nowrap;
    }



    :where(html:has(.account-settings-tab-page)) .account-settings-tab-page,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-tab-page{
      direction: rtl;
      width: 100%;
      box-sizing: border-box;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-content-panel,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-content-panel{
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 18px;
      box-sizing: border-box;
    }

    /* غلاف محايد للمحتوى الديناميكي؛ يتجنب تعارض .settings-section و #password القديمة. */
    :where(html:has(.account-settings-tab-page)) .account-settings-fragment,
:where(html:has(.account-settings-tab-page)) .account-settings-fragment *{
      box-sizing: border-box;
    }

    :where(html:has(.account-settings-tab-page)) .account-settings-fragment{
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100% !important;
      min-height: 1px;
    }

    /* سطح المكتب: نفس عرض شريط النافبار حرفيًا. */
    @media (min-width: 1101px) {
      html:has(.account-settings-tab-page) body .settings-wrapper{
        width: min(calc(100% - 32px), 1450px) !important;
        max-width: none !important;
        margin: 30px auto !important;
        padding-inline: 0 !important;
        box-sizing: border-box !important;
      }
    }

    @media (max-width: 700px) {
      :where(html:has(.account-settings-tab-page)) .account-settings-content-panel,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-content-panel{
        padding: 10px;
        border-radius: 8px;
      }
    }

    @media (max-width: 700px) {
      :where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-header,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-header{
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
      }

      :where(html:has(.account-settings-tab-page)) .account-settings .account-settings-page-meta,
:where(html:has(.account-settings-tab-page)) .settings-wrapper .account-settings-page-meta{
        width: 100%;
      }
    }
  





/* V100 | Member fragment rules moved from edit_my_store.php; active only while its tab exists. */

:where(html:has(.edit-store-page)) *{box-sizing:border-box}
body:has(.edit-store-page){
  margin:0;
  background:#f4f6fb;
  color:#1f2937;
  font-family:var(--site-font-family);
}
:where(html:has(.edit-store-page)) .edit-store-page{
  --edit-brand:var(--sadaa-primary,var(--sadaa-admin-primary));
  --edit-brand-dark:var(--sadaa-primary-dark,var(--sadaa-admin-dark));
  --edit-brand-rgb:var(--sadaa-primary-rgb);
  --edit-brand-soft:var(--sadaa-admin-soft,rgba(var(--edit-brand-rgb),.07));
  --edit-brand-line:var(--sadaa-admin-soft-line,rgba(var(--edit-brand-rgb),.20));
  width:min(1100px,calc(100% - 32px));
  margin:30px auto 46px;
}
:where(html:has(.edit-store-page)) .edit-store-header{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  margin-bottom:14px;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
  color:#fff;
}
:where(html:has(.edit-store-page)) .edit-store-header:before,
:where(html:has(.edit-store-page)) .edit-store-header:after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
:where(html:has(.edit-store-page)) .edit-store-header:before{
  width:118px;
  height:118px;
  left:-36px;
  top:-46px;
  background:rgba(255,255,255,.14);
}
:where(html:has(.edit-store-page)) .edit-store-header:after{
  width:86px;
  height:86px;
  right:34%;
  bottom:-44px;
  background:rgba(255,255,255,.12);
}
:where(html:has(.edit-store-page)) .edit-store-header-icon,
:where(html:has(.edit-store-page)) .edit-store-header-copy{
  position:relative;
  z-index:1;
}
:where(html:has(.edit-store-page)) .edit-store-header-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  background:rgba(255,255,255,.18);
}
:where(html:has(.edit-store-page)) .edit-store-header h1{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:500;
  line-height:1.5;
}
:where(html:has(.edit-store-page)) .edit-store-header p{
  margin:3px 0 0;
  color:rgba(255,255,255,.84);
  font-size:13px;
  line-height:1.8;
}
:where(html:has(.edit-store-page)) .edit-store-card{
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-top:2px solid var(--edit-brand);
  border-radius:8px;
  background:#fff;
}
:where(html:has(.edit-store-page)) .edit-store-card-head{
  padding:15px 18px;
  border-bottom:1px solid #eef0f3;
  background:#fff;
}
:where(html:has(.edit-store-page)) .edit-store-card-head h2{
  margin:0;
  color:#111827;
  font-size:17px;
  font-weight:500;
  line-height:1.6;
}
:where(html:has(.edit-store-page)) .edit-store-card-head p{
  margin:3px 0 0;
  color:#6b7280;
  font-size:13px;
  line-height:1.8;
}
:where(html:has(.edit-store-page)) .edit-store-alert{
  margin:14px 18px 0;
  padding:11px 13px;
  border:1px solid #fecaca;
  border-radius:7px;
  background:#fef2f2;
  color:#991b1b;
  font-size:13px;
  line-height:1.8;
}
:where(html:has(.edit-store-page)) .edit-store-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:18px;
  padding:18px;
}
:where(html:has(.edit-store-page)) .edit-store-fields{
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-content:start;
}
:where(html:has(.edit-store-page)) .edit-store-field{
  min-width:0;
}
:where(html:has(.edit-store-page)) .edit-store-field.full{
  grid-column:1/-1;
}
:where(html:has(.edit-store-page)) .edit-store-label{
  display:block;
  margin-bottom:7px;
  color:#374151;
  font-size:13.5px;
  line-height:1.6;
}
:where(html:has(.edit-store-page)) .edit-store-field input,
:where(html:has(.edit-store-page)) .edit-store-field select,
:where(html:has(.edit-store-page)) .edit-store-field textarea{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#111827;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease,background .15s ease;
}
:where(html:has(.edit-store-page)) .edit-store-field textarea{
  min-height:145px;
  resize:vertical;
  line-height:1.85;
}
:where(html:has(.edit-store-page)) .edit-store-field input:hover,
:where(html:has(.edit-store-page)) .edit-store-field select:hover,
:where(html:has(.edit-store-page)) .edit-store-field textarea:hover{
  border-color:#b9c0cb;
}
:where(html:has(.edit-store-page)) .edit-store-field input:focus,
:where(html:has(.edit-store-page)) .edit-store-field select:focus,
:where(html:has(.edit-store-page)) .edit-store-field textarea:focus{
  border-color:var(--edit-brand);
  box-shadow:none;
  outline:none;
}
:where(html:has(.edit-store-page)) .edit-store-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-left:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 11px center;
  background-size:14px 14px;
  cursor:pointer;
}
:where(html:has(.edit-store-page)) .edit-store-side{
  align-self:start;
  padding:14px;
  border:1px solid var(--edit-brand-line);
  border-radius:8px;
  background:var(--edit-brand-soft);
}
:where(html:has(.edit-store-page)) .edit-store-logo{
  width:100%;
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  margin-bottom:12px;
  border:1px solid var(--edit-brand-line);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  color:#9ca3af;
  font-size:34px;
}
:where(html:has(.edit-store-page)) .edit-store-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
}
:where(html:has(.edit-store-page)) .edit-store-upload{
  position:relative;
}
:where(html:has(.edit-store-page)) .edit-store-upload input[type="file"]{
  width:100%;
  min-height:42px;
  padding:5px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#4b5563;
  font:inherit;
  font-size:12.5px;
}
:where(html:has(.edit-store-page)) .edit-store-upload input[type="file"]::file-selector-button{
  min-height:30px;
  margin-left:8px;
  padding:5px 10px;
  border:1px solid var(--edit-brand-line);
  border-radius:6px;
  background:var(--edit-brand-soft);
  color:var(--edit-brand-dark);
  font:inherit;
  font-size:12.5px;
  cursor:pointer;
}
:where(html:has(.edit-store-page)) .edit-store-upload input[type="file"]:focus{
  border-color:var(--edit-brand);
  outline:none;
}
:where(html:has(.edit-store-page)) .edit-store-side-note{
  margin:8px 0 0;
  color:#6b7280;
  font-size:12px;
  line-height:1.8;
}
:where(html:has(.edit-store-page)) .edit-store-safe-note{
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin-top:12px;
  padding:10px 11px;
  border:1px solid var(--edit-brand-line);
  border-radius:7px;
  background:#fff;
  color:var(--edit-brand-dark);
  font-size:12px;
  line-height:1.8;
}
:where(html:has(.edit-store-page)) .edit-store-safe-note i{
  margin-top:4px;
  color:var(--edit-brand);
  flex:0 0 auto;
}
:where(html:has(.edit-store-page)) .edit-store-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding-top:14px;
  border-top:1px solid #eef0f3;
}
:where(html:has(.edit-store-page)) .edit-store-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 15px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#374151;
  text-decoration:none;
  font:inherit;
  font-size:13.5px;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
:where(html:has(.edit-store-page)) .edit-store-btn:hover{
  border-color:var(--edit-brand-line);
  background:var(--edit-brand-soft);
  color:var(--edit-brand-dark);
}
:where(html:has(.edit-store-page)) .edit-store-btn.primary{
  border-color:var(--edit-brand);
  background:var(--edit-brand);
  color:#fff;
}
:where(html:has(.edit-store-page)) .edit-store-btn.primary:hover{
  border-color:var(--edit-brand-dark);
  background:var(--edit-brand-dark);
  color:#fff;
}
:where(html:has(.edit-store-page)) .edit-store-btn:focus-visible{
  outline:2px solid var(--edit-brand);
  outline-offset:2px;
}
@media(max-width:900px){
  :where(html:has(.edit-store-page)) .edit-store-form{
    grid-template-columns:1fr;
  }
  :where(html:has(.edit-store-page)) .edit-store-side{
    order:-1;
    display:grid;
    grid-template-columns:160px minmax(0,1fr);
    gap:12px 14px;
    align-items:start;
  }
  :where(html:has(.edit-store-page)) .edit-store-logo{
    grid-row:1/5;
    width:160px;
    margin:0;
  }
  :where(html:has(.edit-store-page)) .edit-store-side .edit-store-label{
    margin:0;
    align-self:end;
  }
  :where(html:has(.edit-store-page)) .edit-store-upload,
:where(html:has(.edit-store-page)) .edit-store-side-note,
:where(html:has(.edit-store-page)) .edit-store-safe-note{
    grid-column:2;
  }
  :where(html:has(.edit-store-page)) .edit-store-safe-note{
    margin-top:0;
  }
}
@media(max-width:640px){
  :where(html:has(.edit-store-page)) .edit-store-page{
    width:calc(100% - 18px);
    margin:20px auto 32px;
  }
  :where(html:has(.edit-store-page)) .edit-store-header{
    align-items:flex-start;
    padding:16px;
  }
  :where(html:has(.edit-store-page)) .edit-store-header h1{
    font-size:19px;
  }
  :where(html:has(.edit-store-page)) .edit-store-card-head{
    padding:14px;
  }
  :where(html:has(.edit-store-page)) .edit-store-form{
    padding:14px;
    gap:16px;
  }
  :where(html:has(.edit-store-page)) .edit-store-fields{
    grid-template-columns:1fr;
    gap:14px;
  }
  :where(html:has(.edit-store-page)) .edit-store-field.full{
    grid-column:auto;
  }
  :where(html:has(.edit-store-page)) .edit-store-side{
    order:-1;
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    gap:10px 12px;
    padding:12px;
  }
  :where(html:has(.edit-store-page)) .edit-store-logo{
    grid-row:1/4;
    width:96px;
    aspect-ratio:1/1;
    margin:0;
  }
  :where(html:has(.edit-store-page)) .edit-store-logo img{
    padding:7px;
  }
  :where(html:has(.edit-store-page)) .edit-store-side-note{
    margin-top:0;
    font-size:11.5px;
  }
  :where(html:has(.edit-store-page)) .edit-store-safe-note{
    grid-column:1/-1;
    margin-top:2px;
  }
  :where(html:has(.edit-store-page)) .edit-store-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  :where(html:has(.edit-store-page)) .edit-store-btn{
    width:100%;
    min-height:44px;
  }
}
@media(max-width:420px){
  :where(html:has(.edit-store-page)) .edit-store-side{
    grid-template-columns:82px minmax(0,1fr);
  }
  :where(html:has(.edit-store-page)) .edit-store-logo{
    width:82px;
  }
  :where(html:has(.edit-store-page)) .edit-store-actions{
    grid-template-columns:1fr;
  }
}

:where(html:has(.edit-store-page)) .edit-store-page.is-dashboard-fragment{
  width:100%;
  margin:0;
}
:where(html:has(.edit-store-page)) .edit-store-page.is-dashboard-fragment .edit-store-header{
  margin-top:0;
}



/* V100 | Account tab styles migrated from tabs/tab_profile.php. */

  :where(html:has(.account-profile-section)) .account-profile-section,
:where(html:has(.account-profile-section)) .account-profile-section *{
    box-sizing:border-box;
  }

  :where(html:has(.account-profile-section)) .account-profile-section{
    width:100%;
    direction:rtl;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
  }

  :where(html:has(.account-profile-section)) .account-form-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    overflow:hidden;
  }

  :where(html:has(.account-profile-section)) .account-form-body{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 230px;
    gap:22px;
    align-items:stretch;
    padding:18px;
  }

  :where(html:has(.account-profile-section)) .account-form-main{
    min-width:0;
  }

  :where(html:has(.account-profile-section)) .account-form-intro{
    margin:0 0 16px;
    padding:0 0 14px;
    border-bottom:1px solid #eef2f7;
  }

  :where(html:has(.account-profile-section)) .account-form-kicker{
    display:inline-flex;
    align-items:center;
    margin-bottom:6px;
    color:var(--sadaa-admin-primary);
    font-size:12px;
    line-height:1.7;
  }

  :where(html:has(.account-profile-section)) .account-form-intro h3{
    margin:0;
    color:#111827;
    font-size:18px;
    line-height:1.7;
    font-weight:500;
  }

  :where(html:has(.account-profile-section)) .account-form-intro p{
    margin:3px 0 0;
    color:#6b7280;
    font-size:13px;
    line-height:1.9;
    font-weight:400;
  }

  :where(html:has(.account-profile-section)) .account-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  :where(html:has(.account-profile-section)) .account-field-full{
    grid-column:1 / -1;
  }

  :where(html:has(.account-profile-section)) .account-field label{
    display:block;
    margin:0 0 7px;
    color:#374151;
    font-size:13px;
    line-height:1.7;
    font-weight:400;
  }

  :where(html:has(.account-profile-section)) .account-input{
    width:100%;
    height:44px;
    padding:0 13px;
    border:1px solid #dfe3ea;
    border-radius:7px;
    background:#ffffff;
    color:#111827;
    outline:0;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
    font-size:14px;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  :where(html:has(.account-profile-section)) .account-input:focus{
    border-color:var(--sadaa-admin-primary);
    box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10);
    background:#ffffff;
  }

  :where(html:has(.account-profile-section)) .account-form-actions{
    display:flex;
    justify-content:flex-start;
    margin-top:16px;
  }

  :where(html:has(.account-profile-section)) .account-submit-btn{
    min-height:42px;
    padding:0 24px;
    border:0;
    border-radius:7px;
    color:#ffffff;
    background:var(--sadaa-admin-primary);
    cursor:pointer;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
    font-size:14px;
    font-weight:400;
    box-shadow:0 10px 22px rgba(var(--sadaa-admin-primary-rgb), .18);
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  }

  :where(html:has(.account-profile-section)) .account-submit-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(var(--sadaa-admin-primary-rgb), .23);
  }

  :where(html:has(.account-profile-section)) .account-submit-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
  }

  :where(html:has(.account-profile-section)) .account-form-message{
    margin:0 0 14px;
    padding:11px 13px;
    border-radius:7px;
    font-size:14px;
    line-height:1.8;
    font-weight:400;
  }

  :where(html:has(.account-profile-section)) .account-form-message.success{
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
  }

  :where(html:has(.account-profile-section)) .account-form-message.error{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
  }

  :where(html:has(.account-profile-section)) .account-form-visual{
    position:relative;
    min-height:100%;
    border-radius:8px;
    overflow:hidden;
    border:1px solid #ece7ff;
    background:
      radial-gradient(circle at 18% 18%, rgba(255,255,255,.68), transparent 34%),
      linear-gradient(145deg, rgba(var(--sadaa-admin-primary-rgb),.12), rgba(var(--sadaa-accent-rgb),.10));
  }

  :where(html:has(.account-profile-section)) .account-visual-orb{
    position:absolute;
    border-radius:50%;
    background:rgba(var(--sadaa-admin-primary-rgb),.16);
  }

  :where(html:has(.account-profile-section)) .account-visual-orb-1{
    width:104px;
    height:104px;
    left:-30px;
    top:-28px;
  }

  :where(html:has(.account-profile-section)) .account-visual-orb-2{
    width:78px;
    height:78px;
    right:-20px;
    bottom:-18px;
    background:rgba(var(--sadaa-accent-rgb),.12);
  }

  :where(html:has(.account-profile-section)) .account-visual-card{
    position:absolute;
    right:26px;
    left:26px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.74);
    background:rgba(255,255,255,.66);
    box-shadow:0 18px 38px rgba(31,41,55,.08);
  }

  :where(html:has(.account-profile-section)) .account-visual-card-main{
    top:46px;
    height:82px;
  }

  :where(html:has(.account-profile-section)) .account-visual-card-small{
    top:146px;
    right:54px;
    height:46px;
  }

  :where(html:has(.account-profile-section)) .account-visual-lines{
    position:absolute;
    right:46px;
    left:46px;
    top:72px;
    display:grid;
    gap:9px;
  }

  :where(html:has(.account-profile-section)) .account-visual-lines span{
    height:7px;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(var(--sadaa-admin-primary-rgb),.35), rgba(var(--sadaa-accent-rgb),.20));
  }

  :where(html:has(.account-profile-section)) .account-visual-lines span:nth-child(2){width:72%;}
  :where(html:has(.account-profile-section)) .account-visual-lines span:nth-child(3){width:54%;}

  @media (max-width:900px){
    :where(html:has(.account-profile-section)) .account-form-body{
      grid-template-columns:1fr;
      padding:14px;
    }

    :where(html:has(.account-profile-section)) .account-form-visual{
      display:none;
    }
  }

  @media (max-width:600px){
    :where(html:has(.account-profile-section)) .account-form-grid{
      grid-template-columns:1fr;
    }

    :where(html:has(.account-profile-section)) .account-form-actions,
:where(html:has(.account-profile-section)) .account-submit-btn{
      width:100%;
    }
  }



/* V100 | Account tab styles migrated from tabs/tab_password.php. */

  :where(html:has(.account-password-section)) .account-password-section,
:where(html:has(.account-password-section)) .account-password-section *{
    box-sizing:border-box;
  }

  :where(html:has(.account-password-section)) .account-password-section{
    width:100%;
    direction:rtl;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
  }

  :where(html:has(.account-password-section)) .account-password-card{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    overflow:hidden;
  }

  :where(html:has(.account-password-section)) .account-password-body{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 230px;
    gap:22px;
    align-items:stretch;
    padding:18px;
  }

  :where(html:has(.account-password-section)) .account-password-main{
    min-width:0;
  }

  :where(html:has(.account-password-section)) .account-password-intro{
    margin:0 0 16px;
    padding:0 0 14px;
    border-bottom:1px solid #eef2f7;
  }

  :where(html:has(.account-password-section)) .account-password-kicker{
    display:inline-flex;
    align-items:center;
    margin-bottom:6px;
    color:var(--sadaa-admin-primary);
    font-size:12px;
    line-height:1.7;
  }

  :where(html:has(.account-password-section)) .account-password-intro h3{
    margin:0;
    color:#111827;
    font-size:18px;
    line-height:1.7;
    font-weight:500;
  }

  :where(html:has(.account-password-section)) .account-password-intro p{
    margin:3px 0 0;
    color:#6b7280;
    font-size:13px;
    line-height:1.9;
    font-weight:400;
  }

  :where(html:has(.account-password-section)) .account-password-alert{
    margin:0 0 14px;
    padding:11px 13px;
    border-radius:7px;
    font-size:14px;
    line-height:1.8;
    font-weight:400;
  }

  :where(html:has(.account-password-section)) .account-password-alert.success{
    background:#ecfdf5;
    color:#166534;
    border:1px solid #bbf7d0;
  }

  :where(html:has(.account-password-section)) .account-password-alert.error{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
  }

  :where(html:has(.account-password-section)) .account-password-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  :where(html:has(.account-password-section)) .account-password-field-full{
    grid-column:1 / -1;
  }

  :where(html:has(.account-password-section)) .account-password-field label{
    display:block;
    margin:0 0 7px;
    color:#374151;
    font-size:13px;
    line-height:1.7;
    font-weight:400;
  }

  :where(html:has(.account-password-section)) .account-password-input{
    width:100%;
    height:44px;
    padding:0 13px;
    border:1px solid #dfe3ea;
    border-radius:7px;
    background:#ffffff;
    color:#111827;
    outline:0;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
    font-size:14px;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  :where(html:has(.account-password-section)) .account-password-input:focus{
    border-color:var(--sadaa-admin-primary);
    box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10);
  }

  :where(html:has(.account-password-section)) .account-password-actions{
    display:flex;
    justify-content:flex-start;
    margin-top:16px;
  }

  :where(html:has(.account-password-section)) .account-password-btn{
    min-height:42px;
    padding:0 24px;
    border:0;
    border-radius:7px;
    color:#ffffff;
    background:var(--sadaa-admin-primary);
    cursor:pointer;
    font-family:var(--site-font-family, Tahoma, Arial, sans-serif);
    font-size:14px;
    font-weight:400;
    box-shadow:0 10px 22px rgba(var(--sadaa-admin-primary-rgb), .18);
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  }

  :where(html:has(.account-password-section)) .account-password-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(var(--sadaa-admin-primary-rgb), .23);
  }

  :where(html:has(.account-password-section)) .account-password-visual{
    position:relative;
    min-height:100%;
    border-radius:8px;
    overflow:hidden;
    border:1px solid #ece7ff;
    background:
      radial-gradient(circle at 18% 18%, rgba(255,255,255,.68), transparent 34%),
      linear-gradient(145deg, rgba(var(--sadaa-admin-primary-rgb),.12), rgba(var(--sadaa-accent-rgb),.10));
  }

  :where(html:has(.account-password-section)) .account-password-shield{
    position:absolute;
    width:96px;
    height:112px;
    right:50%;
    top:38px;
    transform:translateX(50%);
    border-radius:34px 34px 42px 42px;
    background:rgba(255,255,255,.68);
    border:1px solid rgba(255,255,255,.78);
    box-shadow:0 18px 38px rgba(31,41,55,.08);
  }

  :where(html:has(.account-password-section)) .account-password-shield::before{
    content:"";
    position:absolute;
    width:34px;
    height:24px;
    right:50%;
    top:31px;
    transform:translateX(50%);
    border-radius:18px 18px 4px 4px;
    border:7px solid rgba(var(--sadaa-admin-primary-rgb),.32);
    border-bottom:0;
  }

  :where(html:has(.account-password-section)) .account-password-shield::after{
    content:"";
    position:absolute;
    width:14px;
    height:26px;
    right:50%;
    bottom:28px;
    transform:translateX(50%);
    border-radius:999px;
    background:linear-gradient(180deg, rgba(var(--sadaa-admin-primary-rgb),.36), rgba(var(--sadaa-accent-rgb),.28));
  }

  :where(html:has(.account-password-section)) .account-password-dot{
    position:absolute;
    border-radius:50%;
    background:rgba(var(--sadaa-admin-primary-rgb),.14);
  }

  :where(html:has(.account-password-section)) .account-password-dot-1{
    width:84px;
    height:84px;
    left:-22px;
    top:-18px;
  }

  :where(html:has(.account-password-section)) .account-password-dot-2{
    width:74px;
    height:74px;
    right:-24px;
    bottom:-18px;
    background:rgba(var(--sadaa-accent-rgb),.12);
  }

  @media (max-width:900px){
    :where(html:has(.account-password-section)) .account-password-body{
      grid-template-columns:1fr;
      padding:14px;
    }

    :where(html:has(.account-password-section)) .account-password-visual{
      display:none;
    }
  }

  @media (max-width:600px){
    :where(html:has(.account-password-section)) .account-password-grid{
      grid-template-columns:1fr;
    }

    :where(html:has(.account-password-section)) .account-password-actions,
:where(html:has(.account-password-section)) .account-password-btn{
      width:100%;
    }
  }


/* V100 | Invoice table keeps the original inherited text color when
   the site's theme stylesheet is loaded after the shared component sheet. */
body:has(#memberDashboardWrapper) #tabContent .member-invoices-page .invoices-table {
  color: var(--invoice-text);
}


/* ======================================================================
   V103 — Admin tab-specific CSS migrated from fragment <style> tags.
   Keep these rules in the EXISTING central css/components.css; no extra CSS
   endpoint is needed. Selector namespaces stay intact per tab.
   ====================================================================== */

/* ---- V103: tab_orders.php ---- */
.orders-tab-ui,
.orders-tab-ui * {
  box-sizing: border-box;
}

.orders-tab-ui {
  direction: rtl;
  color: #1f2937;
  font-family: var(--site-font-family);
}

.orders-tab-ui a,
.orders-tab-ui button,
.orders-tab-ui input {
  font-family: var(--site-font-family);
}

.orders-tab-ui button {
  appearance: none;
}

.orders-tab-ui .orders-clean-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
    radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
    linear-gradient(135deg, #4f73f6 0%, var(--sadaa-admin-primary) 48%, var(--sadaa-admin-primary) 100%);
  color: #ffffff;
}

.orders-tab-ui .orders-clean-header::before,
.orders-tab-ui .orders-clean-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orders-tab-ui .orders-clean-header::before {
  width: 118px;
  height: 118px;
  left: -36px;
  top: -46px;
  background: rgba(255, 255, 255, 0.14);
}

.orders-tab-ui .orders-clean-header::after {
  width: 86px;
  height: 86px;
  right: 34%;
  bottom: -44px;
  background: rgba(255, 255, 255, 0.12);
}

.orders-tab-ui .orders-header-icon,
.orders-tab-ui .orders-header-content,
.orders-tab-ui .orders-page-actions {
  position: relative;
  z-index: 1;
}

.orders-tab-ui .orders-header-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 16px;
}

.orders-tab-ui .orders-header-content {
  flex: 1;
  min-width: 0;
}

.orders-tab-ui .orders-header-label {
  display: none;
}

.orders-tab-ui .orders-clean-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.orders-tab-ui .orders-clean-header p {
  margin: 3px 0 0;
  max-width: 720px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.8;
}

.orders-tab-ui .orders-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.orders-tab-ui .orders-page-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #374151;
  font-size: 13px;
  white-space: nowrap;
}

.orders-tab-ui .orders-panel {
}

.orders-tab-ui .orders-search-card,
.orders-tab-ui .orders-controls-card {
  margin-bottom: 12px;
  border-color: var(--sadaa-admin-line) !important;
  box-shadow: var(--sadaa-admin-shadow) !important;
}

.orders-tab-ui .orders-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.orders-tab-ui .orders-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.orders-tab-ui .orders-section-title i {
  color: #6b7280;
}

.orders-tab-ui .search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  width: 100%;
}

.orders-tab-ui .orders-search-field {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.orders-tab-ui .orders-search-field i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}

.orders-tab-ui .orders-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.orders-tab-ui .orders-search-field input:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.orders-tab-ui .search-btn,
.orders-tab-ui .btn-tag,
.orders-tab-ui .action-toolbar button {
  font-size: 13px;
  font-weight: 400;
  border-radius: 7px;
  text-decoration: none;
}

.orders-tab-ui .search-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.orders-tab-ui .search-btn:hover {
  background: #000;
  border-color: #000;
}

.orders-tab-ui .search-btn.secondary {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.orders-tab-ui .search-btn.secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.orders-tab-ui .orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.orders-tab-ui .filters-group,
.orders-tab-ui .sort-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}


/* فلتر الحالات كقائمة واحدة لتخفيف الزحام */
.orders-tab-ui .orders-status-filter-select-wrap {
  position: relative;
  min-width: 210px;
}

.orders-tab-ui .orders-status-filter-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px 8px 34px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  font: inherit;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.orders-tab-ui .orders-status-filter-select:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.orders-tab-ui .orders-status-filter-select:focus {
  border-color: var(--sadaa-admin-primary);
  box-shadow: 0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10);
  background: #ffffff;
}

.orders-tab-ui .orders-status-filter-select-wrap::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #7c8798;
  transform: translateY(-25%);
  pointer-events: none;
}

.orders-tab-ui .btn-tag {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.orders-tab-ui .btn-tag:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.orders-tab-ui .btn-tag.active {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  font-weight: 500;
}

.orders-tab-ui .action-toolbar {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 0 0 12px !important;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.orders-tab-ui .action-toolbar button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.orders-tab-ui .action-toolbar button:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.orders-tab-ui .action-toolbar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.orders-tab-ui #deleteBtn:not(:disabled) {
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
  background: #f8fbfd;
}

/* إجراءات جماعية بجانب الفلاتر : تخص أكثر من طلب */
.orders-tab-ui .orders-toolbar .action-toolbar {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 !important;
  margin-inline-start: 50px !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.orders-tab-ui .orders-toolbar .action-toolbar button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 400;
}

.orders-tab-ui .orders-toolbar .action-toolbar button:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.orders-tab-ui .orders-toolbar .action-toolbar #deleteBtn:not(:disabled) {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.orders-tab-ui .orders-toolbar .action-toolbar #deleteBtn:hover:not(:disabled) {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

.orders-tab-ui .orders-bulk-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.orders-tab-ui .action-toolbar .orders-single-only {
  display: none !important;
}

.orders-tab-ui .orders-actions-head,
.orders-tab-ui .orders-actions-cell {
  text-align: center;
  overflow: visible;
}

.orders-tab-ui .orders-row-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.orders-tab-ui .orders-row-actions summary {
  list-style: none;
}

.orders-tab-ui .orders-row-actions summary::-webkit-details-marker {
  display: none;
}

.orders-tab-ui .orders-row-actions-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.orders-tab-ui .orders-row-actions-toggle:hover,
.orders-tab-ui .orders-row-actions[open] .orders-row-actions-toggle {
  background: #f9fafb;
  border-color: #cbd5e1;
  color: #111827;
}

.orders-tab-ui .orders-row-actions-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 154px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
  display: none;
  z-index: 40;
  text-align: right;
}

.orders-tab-ui .orders-row-actions[open] .orders-row-actions-menu {
  display: block;
}

.orders-tab-ui .orders-row-action-item {
  width: 100%;
  min-height: 34px;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.orders-tab-ui .orders-row-action-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.orders-tab-ui .orders-row-action-form {
  margin: 0;
  padding: 0;
}

.orders-tab-ui a.orders-row-action-item {
  text-decoration: none;
}

.orders-tab-ui .orders-row-action-form .orders-row-action-item {
  font-family: var(--site-font-family);
}

.orders-tab-ui .orders-row-action-item.danger {
  color: var(--sadaa-admin-dark);
}

.orders-tab-ui .orders-row-action-item.danger:hover {
  background: var(--sadaa-admin-soft);
}

.orders-tab-ui .orders-list-card {
  overflow: visible;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.orders-tab-ui .orders-grid {
  width: 100%;
}

.orders-tab-ui .orders-grid-header,
.orders-tab-ui .orders-grid-row {
  display: grid;
  grid-template-columns: 42px 58px minmax(100px, 1.25fr) minmax(72px, .8fr) minmax(78px, .72fr) minmax(104px, .88fr) minmax(132px, 1.15fr) minmax(108px, 1fr) 68px 54px;
  align-items: center;
  gap: 0;
}

.orders-tab-ui .orders-grid-header {
  min-height: 46px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

.orders-tab-ui .orders-grid-row {
  min-height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
  font-size: 13px;
}

.orders-tab-ui .orders-grid-row:hover {
  background: #fcfcfd;
}

.orders-tab-ui .orders-grid-row:last-child {
  border-bottom: 0;
}

.orders-tab-ui .orders-grid-cell {
  padding: 10px 7px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-tab-ui .orders-grid-cell:first-child {
  text-align: center;
}

/* توازن عمودي التصنيف والمقاس */
.orders-tab-ui .orders-grid-header .orders-grid-cell:nth-child(6),
.orders-tab-ui .orders-grid-row .orders-grid-cell:nth-child(6) {
  text-align: center;
}
.orders-tab-ui .orders-dimensions-value{
  direction:ltr;
  unicode-bidi:isolate;
}


/* إصلاح ظهور قائمة إجراءات الصف خارج حدود الخلية */
.orders-tab-ui .orders-grid-cell.orders-actions-cell {
  overflow: visible;
  position: relative;
}

.orders-tab-ui .orders-grid-row {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.orders-tab-ui .orders-grid-row.row-menu-open,
.orders-tab-ui .orders-grid-row:has(.orders-row-actions[open]) {
  z-index: 300;
}

.orders-tab-ui .orders-grid-row.row-menu-open .orders-actions-cell,
.orders-tab-ui .orders-grid-row:has(.orders-row-actions[open]) .orders-actions-cell {
  z-index: 310;
}

.orders-tab-ui .orders-row-actions[open] {
  position: relative;
  z-index: 320;
}

.orders-tab-ui .orders-row-actions[open] .orders-row-actions-menu {
  display: block;
  z-index: 330;
}

.orders-tab-ui input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}

.orders-tab-ui .orders-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 500;
}

.orders-tab-ui .orders-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.orders-tab-ui .orders-status-badge.active {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.orders-tab-ui .orders-status-badge.scheduled {
  background: var(--sadaa-tint-2);
  color: var(--sadaa-primary-light);
  border-color: #ddd6fe;
}

.orders-tab-ui .orders-status-badge.expired {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.orders-tab-ui .orders-status-badge.inactive {
  background: var(--sadaa-admin-soft);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
}

.orders-tab-ui .orders-status-badge.refunded {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.orders-tab-ui .orders-status-badge.pending {
  background: #fffbeb;
  color: #a16207;
  border-color: #fde68a;
}

.orders-tab-ui .orders-status-badge.cancelled {
  background: var(--sadaa-admin-soft);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
}


.orders-tab-ui .orders-status-badge.refund-pending {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.orders-tab-ui .orders-status-badge.payment-review {
  background: var(--sadaa-tint-2);
  color: var(--sadaa-primary-light);
  border-color: #ddd6fe;
}
.orders-tab-ui .orders-status-badge.payment-pending {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}
.orders-tab-ui .orders-status-badge.payment-failed {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.orders-tab-ui .orders-status-badge.payment-expired {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #d1d5db;
}
.orders-tab-ui .orders-status-stack {
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.orders-tab-ui .orders-status-badge.refund-failed {
  min-height:20px;
  padding:2px 7px;
  background:#fff7ed;
  color:#b45309;
  border-color:#fed7aa;
  font-size:11px;
}

.orders-tab-ui .orders-grid-row.empty {
  display: block;
  padding: 34px 18px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .orders-tab-ui .orders-list-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .orders-tab-ui .orders-grid {
    min-width: 1040px;
  }

  .orders-tab-ui .orders-panel {
    padding: 14px;
  }
}

@media (max-width:1100px) {
  .orders-tab-ui .orders-clean-header {
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .orders-tab-ui .orders-panel {
    padding: 12px;
  }

  .orders-tab-ui .search-form {
    flex-wrap: wrap;
  }

  .orders-tab-ui .orders-search-field {
    min-width: 100%;
    flex-basis: 100%;
  }

  .orders-tab-ui .search-btn {
    flex: 1 1 140px;
  }

  .orders-tab-ui .orders-toolbar {
    align-items: flex-start;
    gap: 10px;
  }

  .orders-tab-ui .filters-group,
  .orders-tab-ui .sort-group {
    width: 100%;
  }

  .orders-tab-ui .btn-tag {
    flex: 0 1 auto;
  }

  .orders-tab-ui .orders-toolbar .action-toolbar {
    width: 100%;
    margin-inline-start: 0 !important;
    padding: 0;
    border: 0;
  }
}

@media (max-width:1100px) {
  .orders-tab-ui .orders-clean-header {
    border-radius: 8px;
    padding: 14px;
  }

  .orders-tab-ui .orders-header-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 7px;
    font-size: 14px;
  }

  .orders-tab-ui .orders-clean-header h2 {
    font-size: 17px;
    line-height: 1.4;
  }

  .orders-tab-ui .orders-clean-header p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
  }

  .orders-tab-ui .orders-page-actions {
    display: none;
  }

  .orders-tab-ui .orders-panel {
    padding: 10px;
    border-radius: 8px;
  }

  .orders-tab-ui .orders-search-card,
  .orders-tab-ui .orders-controls-card {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }

  .orders-tab-ui .orders-card-head {
    margin-bottom: 8px;
  }

  .orders-tab-ui .orders-section-title {
    font-size: 13px;
  }

  .orders-tab-ui .search-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-items: center;
  }

  .orders-tab-ui .orders-search-field {
    grid-column: 1 / -1;
    min-width: 0;
    flex-basis: auto;
  }

  .orders-tab-ui .orders-search-field input,
  .orders-tab-ui .search-btn {
    min-height: 36px;
    border-radius: 7px;
    font-size: 12px;
  }

  .orders-tab-ui .orders-search-field input {
    padding: 8px 34px 8px 10px;
  }

  .orders-tab-ui .search-btn {
    width: 100%;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .orders-tab-ui .filters-group,
  .orders-tab-ui .sort-group {
    width: 100%;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .orders-tab-ui .filters-group {
    display: block;
  }

  .orders-tab-ui .sort-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-tab-ui .orders-status-filter-select-wrap {
    width: 100%;
    min-width: 0;
  }

  .orders-tab-ui .orders-status-filter-select {
    width: 100%;
  }

  .orders-tab-ui .btn-tag {
    width: 100%;
    flex: none;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .orders-tab-ui .orders-toolbar .action-toolbar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0 !important;
    padding: 0;
    border: 0;
    gap: 7px !important;
  }

  .orders-tab-ui .orders-bulk-label {
    grid-column: 1 / -1;
    min-height: 24px;
  }

  .orders-tab-ui .action-toolbar button {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 12.5px;
  }

  .orders-tab-ui .orders-list-card {
    overflow: visible;
    background: #ffffff;
    padding: 8px;
    border: 0;
    border-radius: 8px;
  }

  .orders-tab-ui .orders-grid {
    min-width: 0;
    display: grid;
    gap: 10px;
    background: transparent;
	padding: 10px;
  }

  .orders-tab-ui .orders-grid-header {
    display: none;
  }

  .orders-tab-ui .orders-grid-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: none;
  }

  .orders-tab-ui .orders-grid-row:hover {
    background: #ffffff;
  }

  .orders-tab-ui .orders-grid-row.empty {
    display: block;
    padding: 18px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    text-align: center;
  }

  .orders-tab-ui .orders-grid-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 34px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: left;
    font-size: 12px;
  }

  .orders-tab-ui .orders-grid-cell:last-child {
    border-bottom: 0;
  }

  .orders-tab-ui .orders-grid-cell::before {
    content: attr(data-label);
    flex: 0 0 95px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    text-align: right;
  }

  .orders-tab-ui .orders-grid-cell:first-child {
    text-align: left;
  }

  .orders-tab-ui .orders-id-pill,
  .orders-tab-ui .orders-status-badge {
    min-height: 25px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
  }

  /* تبقى الحالات الطويلة داخل بطاقة الجوال بدل خروجها من حدود الصف. */
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] {
    align-items: flex-start;
  }

  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .orders-status-stack {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 107px);
    /* RTL: flex-end يثبت الشارة عند الطرف الأيسر من مساحة الحالة،
       حتى تبقى محاذاتها ثابتة مهما تغيّر عرض شاشة الجوال. */
    align-items: flex-end;
  }

  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .sadaa-status {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .orders-tab-ui .orders-actions-cell {
    position: relative;
    justify-content: space-between;
    overflow: visible;
  }

  .orders-tab-ui .orders-row-actions {
    margin-inline-start: auto;
  }

  .orders-tab-ui .orders-row-actions-toggle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 7px;
    font-size: 12px;
  }

  .orders-tab-ui .orders-row-actions-menu {
    left: 0;
    right: auto;
    top: 34px;
    min-width: 145px;
    border-radius: 8px;
    z-index: 330;
  }

  .orders-tab-ui .orders-row-action-item {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

}

@media (max-width: 480px) {
  .orders-tab-ui .orders-clean-header,
  .orders-tab-ui .orders-panel,
  .orders-tab-ui .orders-search-card,
  .orders-tab-ui .orders-controls-card {
    border-radius: 7px;
  }
}



/* صدى المتاجر — الهوية البصرية الجديدة للوحة التحكم */
:root{
  --sadaa-admin-blue:var(--sadaa-admin-primary);
  --sadaa-admin-blue-hover:var(--sadaa-admin-hover);
  --sadaa-admin-blue-soft:var(--sadaa-admin-soft);
  --sadaa-admin-white:#fff;
  --sadaa-admin-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .055);
}




.orders-tab-ui{color:var(--sadaa-admin-text)}
.orders-tab-ui .orders-clean-header{position:relative;overflow:hidden;background:var(--sadaa-admin-hero-gradient)!important;border:0!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .09)!important;padding:22px 24px!important;color:#fff!important}
.orders-tab-ui .orders-clean-header::before{content:"";position:absolute;width:160px;height:160px;inset-inline-start:-72px;top:-92px;border-radius:50%;border:1px solid rgba(255,255,255,.18);box-shadow:0 0 0 30px rgba(255,255,255,.045),0 0 0 60px rgba(255,255,255,.025)}
.orders-tab-ui .orders-clean-header::after{content:"";position:absolute;width:96px;height:96px;inset-inline-end:-35px;bottom:-52px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11)}
.orders-tab-ui .orders-clean-header>*{position:relative;z-index:1}
.orders-tab-ui .orders-header-icon{border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;border-radius:7px!important}
.orders-tab-ui .orders-header-label,.orders-tab-ui .orders-clean-header p{color:rgba(255,255,255,.78)!important}
.orders-tab-ui .orders-clean-header h2{color:#fff!important;font-weight:500!important}
.orders-tab-ui .orders-page-meta{background:rgba(var(--sadaa-admin-dark-rgb), .19)!important;border:1px solid rgba(255,255,255,.17)!important;color:#fff!important}
.orders-tab-ui .orders-list-card{border:1px solid var(--sadaa-admin-line)!important;border-radius:8px!important;box-shadow:var(--sadaa-admin-shadow)!important;background:#fff!important}
.orders-tab-ui .orders-card-head{border-bottom:1px solid #eaf0f5!important;background:#fbfdff!important}
.orders-tab-ui .orders-section-title i{color:var(--sadaa-admin-blue)!important;background:var(--sadaa-admin-blue-soft)!important;border:1px solid #d7e8f5!important}
.orders-tab-ui .orders-search-field input{border-color:#d5e2ec!important;border-radius:7px!important}
.orders-tab-ui .orders-search-field input:focus{border-color:var(--sadaa-admin-blue)!important;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10)!important}
.orders-tab-ui .search-btn:not(.secondary){background:var(--sadaa-admin-blue)!important;border-color:var(--sadaa-admin-blue)!important;color:#fff!important}
.orders-tab-ui .search-btn:not(.secondary):hover{background:var(--sadaa-admin-blue-hover)!important}
.orders-tab-ui .btn-tag.active{background:var(--sadaa-admin-blue-soft)!important;border-color:var(--sadaa-admin-soft-line)!important;color:var(--sadaa-admin-dark)!important}
.orders-tab-ui .btn-tag.active i{color:var(--sadaa-admin-blue)!important}
.orders-tab-ui .orders-grid-header{background:var(--sadaa-admin-soft)!important;color:#466177!important;border-bottom:1px solid var(--sadaa-admin-line)!important}
.orders-tab-ui .orders-grid-row:hover{background:#fbfdff!important}
.orders-tab-ui .orders-row-actions-toggle:hover{background:var(--sadaa-admin-blue-soft)!important;color:var(--sadaa-admin-blue)!important;border-color:#d5e7f4!important}
@media (max-width:1100px){.orders-tab-ui .orders-clean-header{padding:18px!important}.orders-tab-ui .orders-page-meta{align-self:flex-start}}




/* صدى المتاجر — تنظيف عناوين البحث والفلاتر + تحسين التابلت والجوال */
.orders-tab-ui .orders-card-head{
  padding:0 !important;
  border:0 !important;
  border-bottom:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.orders-tab-ui .orders-section-title{
  color:var(--sadaa-admin-text) !important;
  font-weight:500 !important;
}

.orders-tab-ui .orders-section-title i{
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--sadaa-admin-primary) !important;
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}



@media (max-width:1100px){
  .orders-tab-ui .orders-toolbar{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    align-items:stretch !important;
    gap:10px !important;
  }

  .orders-tab-ui .filters-group,
  .orders-tab-ui .sort-group,
  .orders-tab-ui .orders-toolbar .action-toolbar{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .orders-tab-ui .filters-group{
    display:block !important;
  }

  .orders-tab-ui .orders-status-filter-select-wrap{
    width:100% !important;
    min-width:0 !important;
  }

  .orders-tab-ui .orders-toolbar .action-toolbar{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  .orders-tab-ui .orders-toolbar .action-toolbar button{
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    white-space:nowrap;
  }

  .orders-tab-ui .sort-group{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:7px !important;
  }

  .orders-tab-ui .sort-group .btn-tag{
    width:100% !important;
    min-width:0 !important;
  }
}

@media (max-width:520px){
  .orders-tab-ui .orders-toolbar .action-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .orders-tab-ui .orders-search-card,
  .orders-tab-ui .orders-controls-card{
    padding:12px !important;
  }

  .orders-tab-ui .orders-card-head{
    margin-bottom:10px !important;
  }
}



@media (max-width:1100px){
  .orders-tab-ui .orders-grid-cell[data-label="المقاس"]{
    direction:rtl;
    unicode-bidi:normal;
    text-align:left;
  }
  .orders-tab-ui .orders-grid-cell[data-label="المقاس"]::before{
    order:0;
  }
  .orders-tab-ui .orders-dimensions-value{
    order:1;
    margin-inline-start:auto;
    text-align:left;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"]{
    align-items:center;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .orders-status-stack{
    flex:0 0 auto;
    width:auto;
    min-width:0;
    max-width:calc(100% - 108px);
    align-items:flex-start;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .sadaa-status{
    width:max-content;
    max-width:100%;
    white-space:nowrap;
    line-height:1.35;
  }
}



@media (max-width:1100px){
  /* تكبير قراءة بيانات البطاقة على الجوال. */
  .orders-tab-ui .orders-grid-cell{
    font-size:13.5px;
    line-height:1.65;
  }
  .orders-tab-ui .orders-grid-cell::before{
    font-size:12.5px;
  }
  .orders-tab-ui .orders-id-pill{
    font-size:12.5px;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .sadaa-status{
    font-size:12px;
  }

  /* صف علوي واحد: الإجراءات + الحالة يساراً، ومربع التحديد يميناً. */
  .orders-tab-ui .orders-grid-row:not(.empty){
    direction:ltr;
    grid-template-columns:auto auto minmax(0,1fr);
    column-gap:6px;
    align-items:center;
  }
  .orders-tab-ui .orders-grid-row:not(.empty) > .orders-grid-cell{
    direction:rtl;
    grid-column:1/-1;
  }
  .orders-tab-ui .orders-grid-cell[data-label="تحديد"]{
    grid-column:3!important;
    grid-row:1;
    justify-self:end;
    width:auto;
    min-height:32px;
    padding:0 0 7px;
    border-bottom:0;
    line-height:0;
  }
  .orders-tab-ui .orders-grid-cell[data-label="تحديد"]::before{
    display:none;
  }
  .orders-tab-ui .orders-grid-cell[data-label="تحديد"] input[type="checkbox"]{
    display:block;
    width:16px;
    height:16px;
    margin:0;
  }

  .orders-tab-ui .orders-actions-cell{
    grid-column:1!important;
    grid-row:1;
    justify-self:start;
    width:auto;
    min-height:32px;
    padding:0 0 7px;
    border-bottom:0;
  }
  .orders-tab-ui .orders-actions-cell::before{
    display:none;
  }
  .orders-tab-ui .orders-row-actions{
    margin:0!important;
  }

  .orders-tab-ui .orders-grid-cell[data-label="الحالة"]{
    grid-column:2!important;
    grid-row:1;
    justify-self:start;
    width:auto;
    min-height:32px;
    padding:0 0 7px;
    border-bottom:0;
    align-items:center!important;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"]::before{
    display:none;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .orders-status-stack{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center!important;
    gap:4px;
    width:auto!important;
    min-width:0;
    max-width:none!important;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .sadaa-status{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center;
    gap:4px;
    width:auto!important;
    max-width:none!important;
    min-height:27px;
    padding:4px 8px;
    white-space:nowrap!important;
    line-height:1.3;
  }
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"] .sadaa-status i{
    flex:0 0 auto;
    line-height:1;
  }

  /* المقاس: العنوان يميناً والقيمة مقابله يساراً بدون تبادل. */
  .orders-tab-ui .orders-grid-cell[data-label="المقاس"]{
    direction:rtl!important;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
  }
  .orders-tab-ui .orders-grid-cell[data-label="المقاس"]::before{
    order:0!important;
    text-align:right;
  }
  .orders-tab-ui .orders-dimensions-value{
    order:1!important;
    margin:0!important;
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    white-space:nowrap;
  }
}



@media (max-width:360px){
  /* في الشاشات الضيقة: زر الحذف يأخذ صفاً كاملاً بدل نصف صف. */
  .orders-tab-ui .orders-toolbar .action-toolbar #deleteBtn{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
  }

  /* فاصل واضح أسفل صف: الإجراءات + الحالة + مربع التحديد. */
  .orders-tab-ui .orders-grid-row:not(.empty)::after{
    content:"";
    position:absolute;
    top:49px;
    inset-inline:12px;
    height:1px;
    background:#e5e7eb;
    pointer-events:none;
    z-index:0;
  }

  .orders-tab-ui .orders-grid-cell[data-label="تحديد"],
  .orders-tab-ui .orders-actions-cell,
  .orders-tab-ui .orders-grid-cell[data-label="الحالة"]{
    padding-bottom:10px !important;
    position:relative;
    z-index:1;
  }
}











@media (min-width:721px) and (max-width:1100px){

  /* ضمان ظهور الإطار السفلي لآخر بطاقة في الصفحة. */
  .orders-tab-ui .orders-grid-row:not(.empty):last-child{
    border-bottom:1px solid #e5e7eb!important;
  }

  /* المدة آخر سطر بيانات فعلي، لذلك لا نحتاج فاصلاً إضافياً تحتها. */
  .orders-tab-ui .orders-grid-cell[data-label="المدة"]{
    border-bottom:0!important;
    padding-bottom:7px!important;
  }

  /* فاصل واحد واضح بعد الصف العلوي: التحديد + الحالة + قائمة الإجراءات. */
  .orders-tab-ui .orders-grid-row:not(.empty){
    position:relative!important;
  }
  .orders-tab-ui .orders-grid-row:not(.empty)::after{
    content:"";
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    height:1px;
    margin:2px 0 1px;
    background:#e5e7eb;
    pointer-events:none;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_ORDERS_2026_10_04 */

@media (min-width:1101px){
  .orders-tab-ui .orders-list-card{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }
}




@media (min-width:1101px){
  #tabContent .orders-tab-ui .orders-list-card{
    display:contents!important;
  }
  #tabContent .orders-tab-ui .orders-grid{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
}





/* Hidden submission form; JavaScript continues to use FormData. */
#bulkForm{display:none;}


/* ---- V103: tab_users.php ---- */
.users-tab-soft,
.users-tab-soft *{
  box-sizing:border-box;
}

.users-tab-soft{
  --users-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --users-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --users-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --users-soft:var(--sadaa-admin-soft,rgba(var(--users-brand-rgb),.07));
  --users-line:var(--sadaa-admin-soft-line,rgba(var(--users-brand-rgb),.20));
  --users-border:#e5e7eb;
  --users-muted:#6b7280;
  --users-text:#1f2937;
  direction:rtl;
  color:var(--users-text);
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif);
}

.users-tab-soft a,
.users-tab-soft button,
.users-tab-soft input,
.users-tab-soft select{
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif);
}

.users-tab-soft button{
  appearance:none;
}

/* رأس التبويب */
.users-tab-soft .users-page-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:18px 20px;
  overflow:hidden;
  border:0;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
  color:#fff;
}

.users-tab-soft .users-page-header::before,
.users-tab-soft .users-page-header::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.users-tab-soft .users-page-header::before{
  width:118px;
  height:118px;
  left:-36px;
  top:-46px;
  background:rgba(255,255,255,.14);
}

.users-tab-soft .users-page-header::after{
  width:86px;
  height:86px;
  right:34%;
  bottom:-44px;
  background:rgba(255,255,255,.12);
}

.users-tab-soft .users-page-title,
.users-tab-soft .users-page-actions{
  position:relative;
  z-index:1;
}

.users-tab-soft .users-page-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.users-tab-soft .users-page-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  color:#fff;
  font-size:16px;
}

.users-tab-soft .users-page-title h2{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:500;
  line-height:1.5;
}

.users-tab-soft .users-page-title p{
  margin:3px 0 0;
  color:rgba(255,255,255,.84);
  font-size:13px;
  line-height:1.8;
}

.users-tab-soft .users-page-actions{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.users-tab-soft .users-page-meta,
.users-tab-soft .users-header-add-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 12px;
  border-radius:7px;
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}

.users-tab-soft .users-page-meta{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(var(--users-brand-rgb),.18);
  color:#fff;
}

.users-tab-soft .users-header-add-btn{
  border:1px solid rgba(255,255,255,.30);
  background:#fff;
  color:var(--users-brand-dark);
}

.users-tab-soft .users-header-add-btn:hover{
  background:#fdfdfd;
}

/* الحاوية */
.users-tab-soft .users-panel{
  padding:0;
  border:0;
  background:transparent;
}

.users-tab-soft .users-section,
.users-tab-soft .users-list-wrap,
.users-tab-soft .users-create-panel{
  border:1px solid var(--users-border);
  border-radius:8px;
  background:#fff;
}

.users-tab-soft .users-section{
  padding:12px;
  margin-bottom:12px;
}

.users-tab-soft .users-section-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 9px;
  color:#374151;
  font-size:13.5px;
  font-weight:500;
}

.users-tab-soft .users-section-title i,
.users-tab-soft .users-create-form-title i{
  color:var(--users-brand);
}

/* أدوات المستخدمين: البحث + الفلاتر + الفرز في صندوق واحد */
.users-tab-soft .users-tools-section{
  padding:12px 16px;
}

.users-tab-soft .users-tools-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  min-width:0;
}

.users-tab-soft .users-tools-search{
  flex:0 1 500px;
  width:500px;
  max-width:46%;
  min-width:360px;
}

.users-tab-soft .users-tools-filters{
  flex:0 0 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  margin-inline-start:auto;
  margin-left:20px;
}

/* رسائل العمليات */
.users-tab-soft .users-action-notice{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin:0 0 12px;
  padding:11px 13px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:13px;
  line-height:1.8;
}

.users-tab-soft .users-action-notice[hidden]{
  display:none;
}

.users-tab-soft .users-action-notice.success{
  border-color:#bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.users-tab-soft .users-action-notice.error{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

.users-tab-soft .users-action-notice i{
  margin-top:4px;
  flex:0 0 auto;
}

/* البحث */
.users-tab-soft .search-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:8px;
  align-items:center;
  margin:0;
}

.users-tab-soft .users-search-field{
  position:relative;
  min-width:0;
}

.users-tab-soft .users-search-field i{
  position:absolute;
  right:13px;
  top:50%;
  transform:translateY(-50%);
  color:#9ca3af;
  font-size:13px;
  pointer-events:none;
}

.users-tab-soft .users-search-field input{
  width:100%;
  min-height:42px;
  padding:9px 38px 9px 12px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#111827;
  outline:none;
  font-size:13.5px;
}

.users-tab-soft .users-search-field input:focus{
  border-color:var(--users-brand);
  box-shadow:none;
  outline:none;
}

.users-tab-soft .search-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 14px;
  border:1px solid var(--users-brand);
  border-radius:7px;
  background:var(--users-brand);
  color:#fff;
  font-size:13.5px;
  text-decoration:none;
  cursor:pointer;
}

.users-tab-soft .search-btn:hover{
  border-color:var(--users-brand-dark);
  background:var(--users-brand-dark);
}

.users-tab-soft .search-btn.secondary{
  border-color:#d1d5db;
  background:#fff;
  color:#4b5563;
}

.users-tab-soft .search-btn.secondary:hover{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

/* الفلاتر والفرز */
.users-tab-soft .users-filter-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  min-height:0 !important;
  height:auto !important;
  margin:0;
  padding:0;
  width:auto;
}

.users-tab-soft .users-filter-selects{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  margin:0;
  padding:0;
}

.users-tab-soft .users-filter-select-wrap{
  width:132px;
  min-width:132px;
}

.users-tab-soft .users-filter-select-wrap label{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.users-tab-soft .users-filter-select-wrap select{
  width:100%;
  min-height:42px;
  padding:9px 10px 9px 34px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background-color:#fff;
  color:#374151;
  font-size:13px;
  outline:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 10px center;
  background-size:14px 14px;
}

.users-tab-soft .users-filter-select-wrap select:focus{
  border-color:var(--users-brand);
  box-shadow:none;
  outline:none;
}

.users-tab-soft .filters-group,
.users-tab-soft .sort-group{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:nowrap;
  margin:0;
  padding:0;
}

.users-tab-soft .btn-tag{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#374151;
  font-size:13px;
  text-decoration:none;
}

.users-tab-soft .btn-tag:hover{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

.users-tab-soft .btn-tag.active{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
  font-weight:500;
}

/* شريط الإجراءات الجماعية مخفي كما هو في الواجهة الحالية */
.users-tab-soft .user-action-toolbar{
  display:none !important;
}

/* قائمة المستخدمين - سطح المكتب */
.users-tab-soft .users-list-wrap{
  overflow:visible;
}

.users-tab-soft .users-list{
  width:100%;
}

.users-tab-soft .users-header,
.users-tab-soft .users-row{
  display:grid;
  grid-template-columns:
    44px
    34px
    minmax(145px,1.00fr)
    minmax(220px,1.42fr)
    minmax(118px,.82fr)
    88px
    minmax(132px,.92fr)
    92px
    112px
    54px;
  align-items:center;
}

.users-tab-soft .users-header{
  min-height:46px;
  border-bottom:1px solid var(--users-line);
  border-radius:8px 8px 0 0;
  background:var(--users-soft);
  color:var(--users-brand-dark);
  font-size:13px;
  font-weight:500;
}

.users-tab-soft .users-row{
  min-height:60px;
  border-bottom:1px solid #eef0f3;
  background:#fff;
  color:#111827;
  font-size:13.5px;
}

.users-tab-soft .users-row:last-child{
  border-bottom:0;
  border-radius:0 0 8px 8px;
}

.users-tab-soft .users-row:hover{
  background:#fcfcfd;
}

.users-tab-soft .users-row.user-inactive{
  background:#fafbfc;
}

.users-tab-soft .users-cell{
  min-width:0;
  padding-block:10px;
  padding-inline:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#374151;
}

.users-tab-soft .users-select-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding-inline:7px;
  overflow:visible;
  text-overflow:clip;
}

.users-tab-soft .users-header .users-cell:first-child{
  overflow:visible;
  text-overflow:clip;
}

.users-tab-soft .users-actions-head,
.users-tab-soft .users-actions-cell{
  padding-inline:8px;
}

.users-tab-soft .users-cell:first-child{
  text-align:center;
}

.users-tab-soft .users-name-cell{
  padding-inline-start:16px;
}

.users-tab-soft .users-email-cell{
  text-align:center;
}

.users-tab-soft .users-header .users-cell:nth-child(4){
  text-align:center;
}

.users-tab-soft .user-email-value,
.users-tab-soft .user-phone-value,
.users-tab-soft .users-date-cell{
  direction:ltr;
  unicode-bidi:isolate;
}

.users-tab-soft .user-email-value,
.users-tab-soft .user-phone-value{
  display:inline-block;
}

.users-tab-soft .users-role-cell,
.users-tab-soft .users-verification-cell,
.users-tab-soft .users-status-cell{
  text-align:center;
}

.users-tab-soft .users-status-cell{
  overflow:visible;
  text-overflow:clip;
}

.users-tab-soft .status-badge{
  white-space:nowrap;
}

.users-tab-soft input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:var(--users-brand);
  cursor:pointer;
}

.users-tab-soft .users-note-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-inline:0;
  overflow:visible;
  text-overflow:clip;
}

.users-tab-soft .moderator-note-indicator{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  color:#b7791f;
  font-size:13px;
  line-height:1;
  pointer-events:none;
}

.users-tab-soft .moderator-note-indicator i{
  display:block;
}


.users-tab-soft .user-name-text{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:500;
}

.users-tab-soft .role-badge,
.users-tab-soft .status-badge{
  min-height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border:1px solid #e5e7eb;
  border-radius:6px;
  background:#f9fafb;
  color:#374151;
  font-size:12px;
  white-space:nowrap;
}

.users-tab-soft .role-badge.admin{
  border-color:#bfdbfe;
  background:#eff6ff;
  color:#1d4ed8;
}

.users-tab-soft .role-badge.moderator{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

.users-tab-soft .role-badge.member{
  background:#f9fafb;
  color:#4b5563;
}

.users-tab-soft .status-badge.verified{
  border-color:#bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.users-tab-soft .status-badge.unverified{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.users-tab-soft .users-empty{
  display:block;
  padding:34px 18px;
  text-align:center;
  color:#6b7280;
}

/* إجراءات الصف */
.users-tab-soft .users-actions-head,
.users-tab-soft .users-actions-cell{
  text-align:center;
  overflow:visible;
}

.users-tab-soft .row-actions{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.users-tab-soft .row-actions summary{
  list-style:none;
}

.users-tab-soft .row-actions summary::-webkit-details-marker{
  display:none;
}

.users-tab-soft .row-actions-toggle{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:7px;
  background:#fff;
  color:#4b5563;
  font-size:14px;
  cursor:pointer;
}

.users-tab-soft .row-actions-toggle:hover,
.users-tab-soft .row-actions[open] .row-actions-toggle,
.users-tab-soft .row-actions-toggle.is-open{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

.users-tab-soft .row-actions-menu{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  z-index:50;
  min-width:155px;
  display:none;
  padding:6px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 26px rgba(15,23,42,.12);
  text-align:right;
}

.users-tab-soft .row-actions-menu.is-open,
.users-tab-soft .row-actions[open] .row-actions-menu{
  display:block;
}

.users-tab-soft .row-action-item{
  width:100%;
  min-height:36px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#374151;
  font-size:13px;
  text-align:right;
  cursor:pointer;
}

.users-tab-soft .row-action-item:hover{
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

.users-tab-soft .row-action-item.danger{
  color:#991b1b;
}

.users-tab-soft .row-action-empty{
  display:block;
  padding:8px 9px;
  color:#6b7280;
  font-size:12px;
}


/* نافذة ملاحظات المشرف — التفاصيل الخاصة بالمحتوى فقط.
   الهيكل العام للنافذة أصبح من Sadaa Modal System. */
.moderator-note-modal{
  --users-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --users-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
}

.moderator-note-textarea{
  min-height:160px;
  resize:vertical;
}

.moderator-note-meta{
  display:grid;
  gap:2px;
  margin-top:5px;
}

.moderator-note-meta-line{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:var(--sadaa-muted,#6b7280);
  font-size:12px;
  line-height:1.55;
}

.moderator-note-meta-line i{
  width:14px;
  flex:0 0 14px;
  color:var(--users-brand);
  text-align:center;
}

.moderator-note-view{
  display:grid;
  gap:10px;
}

.moderator-note-view-text{
  min-height:120px;
  padding:13px 14px;
  border:1px solid var(--sadaa-line,#e5e7eb);
  border-radius:var(--sadaa-radius-md,8px);
  background:var(--sadaa-surface-alt,#fbfdfe);
  color:var(--sadaa-text,#111827);
  font-size:14px;
  line-height:1.9;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.moderator-note-view-text.is-empty{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--sadaa-muted,#6b7280);
  text-align:center;
}

.moderator-note-editor[hidden],
.moderator-note-actions[hidden],
.moderator-note-edit[hidden],
.moderator-note-view[hidden]{
  display:none !important;
}

.moderator-note-help{
  margin:7px 0 0;
  color:#6b7280;
  font-size:12px;
  line-height:1.7;
}

.moderator-note-help i{
  margin-left:4px;
  color:#6b7280;
}

.users-tab-soft .row-action-item.note-action i{
  color:#b7791f;
}

@media(max-width:600px){
  .moderator-note-textarea{
    min-height:190px;
  }
}

/* إضافة مستخدم */
.users-tab-soft .users-create-panel{
  padding:18px;
}

.users-tab-soft .users-create-note,
.users-tab-soft .users-create-message{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0 0 18px;
  padding:12px 13px;
  border-radius:7px;
  font-size:13px;
  line-height:1.85;
}

.users-tab-soft .users-create-note{
  border:1px solid var(--users-line);
  background:var(--users-soft);
  color:#4b5563;
}

.users-tab-soft .users-create-message{
  border:1px solid #bbf7d0;
  background:#dcfce7;
  color:#166534;
}

.users-tab-soft .users-create-message.error{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.users-tab-soft .users-create-note i,
.users-tab-soft .users-create-message i{
  margin-top:4px;
}

.users-tab-soft .users-create-form-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 16px;
  padding-bottom:12px;
  border-bottom:1px solid #eef0f3;
  color:#111827;
  font-size:15px;
  font-weight:500;
}

.users-tab-soft .users-create-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}

.users-tab-soft .users-create-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.users-tab-soft .users-create-field.full{
  grid-column:1/-1;
}

.users-tab-soft .users-create-field label{
  color:#374151;
  font-size:13.5px;
  font-weight:500;
}

.users-tab-soft .users-create-field .required{
  color:var(--users-brand);
}

.users-tab-soft .users-create-field input,
.users-tab-soft .users-create-field select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#111827;
  font:inherit;
  font-size:14px;
  outline:none;
}

.users-tab-soft .users-create-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-left:36px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 11px center;
  background-size:14px 14px;
}

.users-tab-soft .users-create-field input:focus,
.users-tab-soft .users-create-field select:focus{
  border-color:var(--users-brand);
  box-shadow:none;
  outline:none;
}

.users-tab-soft .users-create-field small,
.users-tab-soft .users-create-role-note{
  margin:0;
  color:#6b7280;
  font-size:12.5px;
  line-height:1.75;
}

.users-tab-soft .users-create-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #eef0f3;
}

.users-tab-soft .users-create-submit,
.users-tab-soft .users-create-cancel{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 16px;
  border-radius:7px;
  font:inherit;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
}

.users-tab-soft .users-create-submit{
  border:1px solid var(--users-brand);
  background:var(--users-brand);
  color:#fff;
}

.users-tab-soft .users-create-submit:hover:not(:disabled){
  border-color:var(--users-brand-dark);
  background:var(--users-brand-dark);
}

.users-tab-soft .users-create-submit:disabled{
  opacity:.7;
  cursor:wait;
}

.users-tab-soft .users-create-cancel{
  border:1px solid #d1d5db;
  background:#fff;
  color:#374151;
}

.users-tab-soft .users-create-cancel:hover{
  border-color:var(--users-line);
  background:var(--users-soft);
  color:var(--users-brand-dark);
}

/* الوصول */
.users-tab-soft a:focus-visible,
.users-tab-soft button:focus-visible{
  outline:2px solid var(--users-brand);
  outline-offset:2px;
}

.users-tab-soft input:focus-visible,
.users-tab-soft select:focus-visible{
  outline:none;
}

/* تابلت */
@media(max-width:1180px){
  .users-tab-soft .users-header,
  .users-tab-soft .users-row{
    grid-template-columns:
      40px
      32px
      minmax(138px,1fr)
      minmax(188px,1.34fr)
      108px
      82px
      118px
      90px
      104px
      52px;
    font-size:12.5px;
  }

  .users-tab-soft .users-cell{
    padding-block:9px;
    padding-inline:9px;
  }

  .users-tab-soft .users-select-cell{
    padding-inline:6px;
    overflow:visible;
    text-overflow:clip;
  }

  .users-tab-soft .users-actions-head,
  .users-tab-soft .users-actions-cell{
    padding-inline:6px;
  }
}

@media (max-width:1100px){
  .users-tab-soft .users-tools-section{
    padding-inline:14px;
  }

  .users-tab-soft .users-tools-row{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  .users-tab-soft .users-tools-search,
  .users-tab-soft .users-tools-filters{
    width:100%;
    max-width:none;
    min-width:0;
  }

  .users-tab-soft .users-tools-search{
    flex:1 1 auto;
  }

  .users-tab-soft .users-tools-filters{
    justify-content:space-between;
    margin-left:0;
  }

  .users-tab-soft .users-filter-row{
    width:100%;
    justify-content:space-between;
  }
}

@media (max-width:1100px){
  .users-tab-soft .users-page-header{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .users-tab-soft .users-page-actions{
    width:100%;
  }

  .users-tab-soft .search-form{
    grid-template-columns:minmax(0,1fr) auto auto;
  }

  .users-tab-soft .search-btn{
    width:auto;
  }

  .users-tab-soft .users-filter-selects{
    flex:0 0 auto;
    display:flex;
  }

  .users-tab-soft .sort-group{
    flex:0 0 auto;
  }
}


/* تابلت: تحويل قائمة المستخدمين إلى بطاقات بعمودين.
   السبب: مساحة المحتوى الفعلية تضيق بسبب سايدبار لوحة التحكم،
   لذلك لا يكفي الاعتماد على عرض الشاشة لعرض جدول ذي 10 أعمدة. */



/* الجوال: بطاقة مستخدم فعلية */
@media (max-width:1100px){

  .users-tab-soft .users-tools-section{
    padding:10px;
  }

  .users-tab-soft .users-tools-row{
    display:block;
  }

  .users-tab-soft .users-tools-search{
    margin-bottom:10px;
  }

  .users-tab-soft .users-tools-filters{
    display:block;
  }

  .users-tab-soft .users-filter-row{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    width:100%;
  }

  .users-tab-soft .users-page-header{
    padding:16px;
  }

  .users-tab-soft .users-page-icon{
    width:36px;
    height:36px;
    min-width:36px;
    font-size:14px;
  }

  .users-tab-soft .users-page-title h2{
    font-size:18px;
  }

  .users-tab-soft .users-page-title p{
    font-size:12.5px;
    line-height:1.7;
  }

  .users-tab-soft .users-page-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .users-tab-soft .users-page-meta,
  .users-tab-soft .users-header-add-btn{
    width:100%;
    min-width:0;
  }

  .users-tab-soft .users-section{
    padding:10px;
    margin-bottom:10px;
  }

  .users-tab-soft .users-tools-section{
    padding:10px;
  }

  .users-tab-soft .search-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .users-tab-soft .users-search-field{
    grid-column:1/-1;
  }

  .users-tab-soft .search-btn{
    width:100%;
  }

  .users-tab-soft .users-search-field input{
    min-height:44px;
    font-size:14px;
  }

  .users-tab-soft .search-btn{
    min-height:42px;
    font-size:13.5px;
  }

  .users-tab-soft .users-filter-selects{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
  }

  .users-tab-soft .users-filter-select-wrap{
    width:auto;
    min-width:0;
  }

  .users-tab-soft .users-filter-select-wrap select{
    min-height:42px;
    font-size:13.5px;
  }

  .users-tab-soft .sort-group{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .users-tab-soft .btn-tag{
    width:100%;
    min-height:38px;
    padding:7px 8px;
    font-size:12.5px;
  }

  .users-tab-soft .users-list-wrap{
    padding:8px;
    border-color:#e5e7eb;
    background:#fafafa;
  }

  .users-tab-soft .users-list{
    display:grid;
    gap:10px;
    min-width:0;
    background:transparent;
  }

  .users-tab-soft .users-header{
    display:none;
  }

  .users-tab-soft .users-row{
    position:relative;
    display:grid;
    grid-template-columns:34px 28px minmax(0,1fr) auto 38px;
    align-items:center;
    gap:0 8px;
    min-height:0;
    padding:11px 12px 12px;
    border:1px solid #e5e7eb;
    border-top:2px solid var(--users-brand);
    border-radius:8px;
    background:#fff;
    font-size:13.5px;
  }

  .users-tab-soft .users-row.user-inactive{
    background:#fff;
  }

  .users-tab-soft .users-row:hover{
    background:#fff;
  }

  .users-tab-soft .users-cell{
    width:auto;
    min-width:0;
    padding:9px 0;
    overflow:visible;
    border-bottom:1px solid #eef0f3;
    text-overflow:clip;
    white-space:normal;
    font-size:13.5px;
    text-align:right;
  }

  .users-tab-soft .users-cell::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#8a93a1;
    font-size:12px;
    line-height:1.5;
  }

  .users-tab-soft .users-select-cell{
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:0;
    min-height:34px;
    padding:0;
    border-bottom:0;
  }

  .users-tab-soft .users-select-cell::before{
    display:none;
  }

  .users-tab-soft .users-note-cell{
    grid-column:2;
    grid-row:1;
    min-height:34px;
    padding:0;
    border-bottom:0;
  }

  .users-tab-soft .users-note-cell::before{
    display:none;
  }

  .users-tab-soft .users-name-cell{
    grid-column:3;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:0;
    border-bottom:0;
  }

  .users-tab-soft .users-name-cell::before{
    display:none;
  }

  .users-tab-soft .users-status-cell{
    grid-column:4;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0;
    border-bottom:0;
  }

  .users-tab-soft .users-status-cell::before{
    display:none;
  }



  .users-tab-soft .user-name-text{
    max-width:180px;
    font-size:14px;
  }

  .users-tab-soft .users-email-cell{
    grid-column:1/-1;
    grid-row:2;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid var(--users-line);
  }

  .users-tab-soft .users-phone-cell{
    grid-column:1/-1;
    grid-row:3;
  }

  .users-tab-soft .users-role-cell{
    grid-column:1/-1;
    grid-row:4;
  }

  .users-tab-soft .users-verification-cell{
    grid-column:1/-1;
    grid-row:5;
  }

  .users-tab-soft .users-email-cell,
  .users-tab-soft .users-phone-cell,
  .users-tab-soft .users-role-cell,
  .users-tab-soft .users-verification-cell{
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    align-items:center;
    gap:10px;
    direction:rtl;
  }

  .users-tab-soft .users-email-cell::before,
  .users-tab-soft .users-phone-cell::before,
  .users-tab-soft .users-role-cell::before,
  .users-tab-soft .users-verification-cell::before{
    grid-column:1;
    margin:0;
    text-align:right;
  }

  .users-tab-soft .users-email-cell .user-email-value,
  .users-tab-soft .users-phone-cell .user-phone-value{
    grid-column:2;
    width:100%;
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    justify-self:stretch;
  }

  .users-tab-soft .role-badge,
  .users-tab-soft .status-badge{
    min-height:27px;
    font-size:12px;
  }

  .users-tab-soft .users-date-cell{
    grid-column:1/-1;
    grid-row:6;
    border-bottom:0;
  }

  .users-tab-soft .users-date-cell::before{
    display:inline;
    margin:0 0 0 7px;
  }

  .users-tab-soft .users-actions-cell{
    grid-column:5;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    align-self:center;
    padding:0;
    border-bottom:0;
  }

  .users-tab-soft .users-actions-cell::before{
    display:none;
  }

  .users-tab-soft .row-actions-toggle{
    width:38px;
    height:38px;
  }

  .users-tab-soft .row-actions-menu{
    left:0;
    right:auto;
    min-width:155px;
  }

  .users-tab-soft .users-create-grid{
    grid-template-columns:1fr;
  }

  .users-tab-soft .users-create-panel{
    padding:14px;
  }

  .users-tab-soft .users-create-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .users-tab-soft .users-create-submit,
  .users-tab-soft .users-create-cancel{
    width:100%;
  }

}

@media(max-width:480px){
  .users-tab-soft .users-page-actions{
    grid-template-columns:1fr 1fr;
  }

  .users-tab-soft .users-filter-selects,
  .users-tab-soft .sort-group{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .users-tab-soft .users-create-actions{
    grid-template-columns:1fr;
  }

  .users-tab-soft .users-email-cell,
  .users-tab-soft .users-phone-cell,
  .users-tab-soft .users-role-cell,
  .users-tab-soft .users-verification-cell{
    grid-template-columns:86px minmax(0,1fr);
  }
}



/* Design System refinement — role badge stays compact on tablet/mobile cards */
@media (max-width:1180px){
  .users-tab-soft .users-role-cell .role-badge{
    grid-column:2;
    width:max-content;
    max-width:100%;
    justify-self:end;
    align-self:center;
  }
}



/* Design System refinement — align role, activation type and registration date values on tablet/mobile cards */
@media (max-width:1180px){
  .users-tab-soft .users-verification-cell,
  .users-tab-soft .users-date-cell{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    align-items:center;
    gap:9px;
    direction:rtl;
  }

  .users-tab-soft .users-verification-cell::before,
  .users-tab-soft .users-date-cell::before{
    grid-column:1;
    display:block;
    margin:0;
    text-align:right;
  }

  .users-tab-soft .users-verification-cell .user-verification-value,
  .users-tab-soft .users-date-cell .user-date-value{
    grid-column:2;
    min-width:0;
    max-width:100%;
    justify-self:end;
    text-align:left;
  }

  .users-tab-soft .users-date-cell .user-date-value{
    direction:ltr;
    unicode-bidi:isolate;
  }
}

@media (max-width:1100px){
  .users-tab-soft .users-verification-cell,
  .users-tab-soft .users-date-cell{
    grid-template-columns:96px minmax(0,1fr);
    gap:10px;
  }
}



@media (max-width:1100px){
  .users-tab-soft .users-row{
    grid-template-columns:18px auto minmax(0,1fr) auto 38px;
    column-gap:5px;
  }
  .users-tab-soft .users-select-cell{
    width:18px;
    min-width:18px;
    min-height:34px;
    line-height:0;
  }
  .users-tab-soft .users-select-cell .user-check{
    display:block;
    width:16px;
    height:16px;
    margin:0;
  }
  .users-tab-soft .users-note-cell{
    width:auto;
    min-width:0;
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .users-tab-soft .users-note-cell:empty{
    width:0;
  }
  .users-tab-soft .moderator-note-indicator{
    width:18px;
    min-width:18px;
    height:18px;
  }
  .users-tab-soft .users-name-cell{
    min-width:0;
    padding-inline:0;
  }
  .users-tab-soft .user-name-text{
    max-width:100%;
  }
}



/*
 * التابلت: بطاقة المستخدم = بطاقة الجوال نفسها حرفياً.
 * البحث والفلاتر تبقى بتخطيط التابلت الحالي؛ فقط البطاقة ترث بنية الجوال.
 */








/*
 * الجوال: ألغِ الأثر التخطيطي للغلاف البنيوي المستخدم للتابلت فقط.
 * بهذا ترجع خلايا الصف الأول لتكون Grid items مباشرة داخل بطاقة المستخدم
 * مثل التصميم المعتمد سابقاً، بدون التأثير على تخطيط التابلت 721–1100px.
 */
@media (max-width:1100px){
  html body #tabContent .users-tab-soft .users-card-head-main{
    display:contents !important;
  }
}



/* الجوال فقط: ألغِ الحشو الموروث من قاعدة form العامة داخل نموذج البحث،
   حتى تصطف الحقول مع بقية عناصر صندوق الأدوات بنفس الهامش الجانبي. */
@media (max-width:1100px){
  html body #tabContent .users-tab-soft .users-tools-search .search-form{
    padding:0 !important;
    margin:0 !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }

  html body #tabContent .users-tab-soft .users-tools-search,
  html body #tabContent .users-tab-soft .users-search-field{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
}



@media (min-width:721px) and (max-width:1100px){
  .users-tab-soft .users-page-actions{display:flex!important;width:auto!important;align-self:flex-end!important;justify-content:flex-end!important;gap:7px!important;margin-inline-start:auto!important}
  .users-tab-soft .users-page-meta,.users-tab-soft .users-header-add-btn{width:auto!important;min-width:0!important;padding-inline:11px!important}
}



@media (min-width:721px) and (max-width:1100px){
  /* محاذاة نصوص القوائم داخل الحقول. */
  .users-tab-soft .users-filter-select-wrap select{
    direction:rtl!important;
    text-align:right!important;
    text-align-last:right!important;
    padding-right:16px!important;
    padding-left:40px!important;
    line-height:1.35!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_USERS_2026_10_04 */

@media (min-width:1101px){
  .users-tab-soft .users-list-wrap{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }
}




@media (min-width:1101px){
  #tabContent .users-tab-soft .users-list-wrap{
    display:contents!important;
  }
  #tabContent .users-tab-soft .users-list{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
}





/* Hidden submission form; JavaScript continues to use FormData. */
#userBulkForm{display:none;}


/* ---- V103: tab_moderators.php ---- */
.moderators-tab,
.moderators-tab *{box-sizing:border-box}

.moderators-tab{
  --mods-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --mods-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --mods-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --mods-soft:var(--sadaa-admin-soft,rgba(var(--mods-brand-rgb),.07));
  --mods-line:var(--sadaa-admin-soft-line,rgba(var(--mods-brand-rgb),.20));
  --mods-border:#e5e7eb;
  --mods-control:#6b7280;
  --mods-control-dark:#4b5563;
  --mods-control-soft:#f6f7f9;
  --mods-control-line:#d9dde3;
  direction:rtl;
  text-align:right;
  color:#1f2937;
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif);
}

.moderators-tab a,
.moderators-tab button,
.moderators-tab input,
.moderators-tab label,
.moderators-tab summary{font-family:var(--site-font-family,Tahoma,Arial,sans-serif)}

.moderators-page-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:18px 20px;
  overflow:hidden;
  border:0;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
  color:#fff;
}

.moderators-page-header::before,
.moderators-page-header::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.moderators-page-header::before{width:118px;height:118px;left:-36px;top:-46px;background:rgba(255,255,255,.14)}
.moderators-page-header::after{width:86px;height:86px;right:34%;bottom:-44px;background:rgba(255,255,255,.12)}

.moderators-page-title,
.moderators-page-actions{position:relative;z-index:1}

.moderators-page-title{display:flex;align-items:center;gap:12px;min-width:0}
.moderators-page-icon{
  width:42px;height:42px;min-width:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  color:#fff;font-size:16px
}
.moderators-page-title h2{margin:0;color:#fff;font-size:20px;font-weight:500;line-height:1.5}
.moderators-page-title p{margin:3px 0 0;color:rgba(255,255,255,.84);font-size:13px;line-height:1.8}

.moderators-page-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.moderators-page-meta,
.moderators-header-add-btn{
  min-height:38px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:8px 11px;border-radius:7px;font-size:13px;text-decoration:none;white-space:nowrap
}
.moderators-page-meta{border:1px solid rgba(255,255,255,.18);background:rgba(var(--mods-brand-rgb),.18);color:#fff}
.moderators-header-add-btn{border:1px solid rgba(255,255,255,.30);background:#fff;color:var(--mods-brand-dark)}

.moderators-panel{padding:14px;border:1px solid var(--mods-border);border-radius:8px;background:#fff}
.moderators-section{margin-bottom:12px;padding:12px;border:1px solid var(--mods-border);border-radius:8px;background:#fff}
.moderators-section-title{
  display:flex;align-items:center;gap:7px;
  margin:0 0 9px;color:#374151;font-size:13.5px;font-weight:500
}
.moderators-section-title i{color:var(--mods-control)}
.moderators-muted{color:#6b7280;font-size:12.5px;line-height:1.8}

.moderators-search-sort-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  margin:0;
}

.moderators-search-form{
  flex:1 1 auto;
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:8px;
  align-items:center;
  margin:0;
}

.moderators-sort-inline{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin:0;
}

.moderators-sort-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#6b7280;
  font-size:12.5px;
  white-space:nowrap;
}

.moderators-sort-label i{
  color:var(--mods-control);
}
.moderators-search-field{position:relative;min-width:0}
.moderators-search-field i{
  position:absolute;right:13px;top:50%;transform:translateY(-50%);
  color:#9ca3af;font-size:13px;pointer-events:none
}
.moderators-search-field input{
  width:100%;min-height:42px;padding:9px 38px 9px 12px;
  border:1px solid #d1d5db;border-radius:7px;background:#fff;color:#111827;
  outline:none;font-size:13.5px
}
.moderators-search-field input:focus{border-color:var(--mods-control);box-shadow:none}

.moderators-btn,
.moderators-tag,
.moderators-save-bar button{
  min-height:40px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:8px 13px;border:1px solid #d1d5db;border-radius:7px;
  background:#fff;color:#374151;cursor:pointer;font-size:13px;text-decoration:none;white-space:nowrap
}
.moderators-btn:hover,
.moderators-tag:hover{border-color:var(--mods-line);background:var(--mods-soft);color:var(--mods-brand-dark)}
.moderators-btn.primary,
.moderators-save-bar button.primary{border-color:var(--mods-brand);background:var(--mods-brand);color:#fff}
.moderators-btn.primary:hover,
.moderators-save-bar button.primary:hover{border-color:var(--mods-brand-dark);background:var(--mods-brand-dark)}
.moderators-btn.light{background:#fff}

.moderators-filter-row,
.moderators-sort-group{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.moderators-filter-row{justify-content:space-between}
.moderators-tag{min-height:42px;padding:8px 10px}
.moderators-tag.active{border-color:var(--mods-control-line);background:var(--mods-control-soft);color:var(--mods-control-dark);font-weight:500}


.moderators-grid{display:grid;gap:12px}
.moderator-card{overflow:hidden;border:1px solid var(--mods-border);border-radius:8px;background:#fff}
.moderator-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 14px;
  border-bottom:1px solid var(--mods-brand);
  background:var(--mods-brand);
}
.moderator-identity{min-width:0}
.moderator-name{margin-bottom:4px;color:#fff;font-size:15px;font-weight:500}
.moderator-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:rgba(255,255,255,.82);font-size:12.5px;line-height:1.7}
.moderator-meta i{color:rgba(255,255,255,.72)}
.moderator-status{
  min-height:27px;display:inline-flex;align-items:center;justify-content:center;
  padding:4px 9px;border:1px solid transparent;border-radius:6px;font-size:12px;white-space:nowrap
}
.moderator-status.active{border-color:#bbf7d0;background:#ecfdf3;color:#166534}
.moderator-status.inactive{border-color:#fecaca;background:#fef2f2;color:#991b1b}

/* Accordions الصلاحيات — الشكل من Design System، وهنا فقط سياق الصفحة */
.moderator-permissions-window,
.permission-group{
  --sadaa-accordion-accent:var(--mods-control);
  --sadaa-accordion-border:var(--mods-control-line);
  --sadaa-accordion-soft:var(--mods-control-soft);
}
.permissions-list{display:grid;gap:8px;padding:10px 12px 12px}
.permission-group-items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
  row-gap:0;
  padding:4px 10px 6px;
}

.permission-item{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:7px 4px;
  border:0;
  border-bottom:1px solid var(--mods-control-line);
  border-radius:0;
  background:transparent;
  color:#374151;
  cursor:pointer;
  font-size:13px;
  line-height:1.6;
}
.permission-item:hover{
  background:transparent;
  color:#111827;
}
.permission-item:has(input:checked){
  background:transparent;
  color:#374151;
}
.permission-item input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--mods-control-dark);
  cursor:pointer;
  flex:0 0 auto;
}

.moderators-save-bar{
  position:sticky;bottom:10px;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  margin-top:14px;padding:10px 12px;border:1px solid var(--mods-control-line);
  border-radius:8px;background:rgba(255,255,255,.97)
}
.moderators-empty{padding:26px 16px;border:1px dashed #d1d5db;border-radius:8px;background:#fff;color:#6b7280;text-align:center;line-height:1.8}

.moderators-tab a:focus-visible,
.moderators-tab button:focus-visible,
.moderators-tab summary:focus-visible{outline:2px solid var(--mods-brand);outline-offset:2px}

@media (max-width:1100px){
  .moderators-page-header{flex-direction:column;align-items:stretch;gap:12px}
  .moderators-page-actions{width:100%}

  .moderators-search-sort-row{
    flex-direction:column;
    align-items:stretch;
  }

  .moderators-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .moderators-search-field{grid-column:1/-1}
  .moderators-search-form .moderators-btn{width:100%}
  .moderators-sort-inline{justify-content:flex-start;width:100%}
  .moderators-sort-group{width:auto}
}

@media (max-width:1100px){
  .moderators-page-header{padding:16px}
  .moderators-page-icon{width:36px;height:36px;min-width:36px;font-size:14px}
  .moderators-page-title h2{font-size:18px}
  .moderators-page-title p{font-size:12.5px;line-height:1.7}
  .moderators-page-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .moderators-page-meta,
  .moderators-header-add-btn{width:100%;min-width:0}
  .moderators-panel{padding:10px}
  .moderators-section{padding:10px;margin-bottom:10px}
  .moderators-search-field input{min-height:44px;font-size:14px}
  .moderators-search-form .moderators-btn{min-height:42px}
  .moderators-sort-inline{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
  }
  .moderators-sort-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .moderators-tag{width:100%;min-height:38px}
  .moderator-card-head{align-items:flex-start;padding:12px}
  .moderator-name{font-size:14px}
  .moderator-meta{display:grid;gap:4px;font-size:12.5px}
  .permissions-list{gap:8px;padding:8px}
  .permission-group-items{
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    padding:4px 8px 6px;
  }

  .permission-item{
    width:100%;
    min-height:38px;
    padding:7px 4px;
    font-size:13px;
  }
  .moderators-save-bar{position:static;align-items:stretch;padding:10px}
  .moderators-save-bar .moderators-muted,
  .moderators-save-bar button{width:100%}
}

@media(max-width:480px){
  .moderator-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .moderator-meta span{overflow-wrap:anywhere}
}



@media (max-width:1100px){
  .moderators-tab .moderators-panel{
    padding:0;
    border:0;
    background:transparent;
  }
  .moderators-tab .moderators-section{
    padding:10px;
    margin-bottom:10px;
  }
  .moderators-tab .moderators-search-sort-row{
    gap:10px;
  }
  .moderators-tab .moderators-sort-label{
    display:none;
  }
  .moderators-tab .moderators-sort-inline{
    display:block;
    min-height:0;
    width:100%;
  }
  .moderators-tab .moderators-sort-group{
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .moderators-tab .moderators-grid{
    gap:10px;
  }
  .moderators-tab .moderator-card{
    width:100%;
  }
}



@media (max-width:1100px){
  .moderators-tab .moderators-search-form{
    width:100%;
    max-width:none;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}



@media (min-width:721px) and (max-width:1100px){
  .moderators-tab .moderators-page-actions{display:flex!important;width:auto!important;align-self:flex-end!important;justify-content:flex-end!important;gap:7px!important;margin-inline-start:auto!important}
  .moderators-tab .moderators-page-meta,.moderators-tab .moderators-header-add-btn{width:auto!important;min-width:0!important;padding-inline:11px!important}
}



@media (min-width:721px) and (max-width:1100px){
  /* نعطي البحث صفاً كاملاً حتى لا ينكمش الحقل بسبب أزرار الترتيب. */
  .moderators-tab .moderators-search-sort-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:8px!important;
  }
  .moderators-tab .moderators-search-form{
    width:100%!important;
    min-width:0!important;
    grid-template-columns:minmax(0,1fr) 120px 100px!important;
  }
  .moderators-tab .moderators-search-field{
    grid-column:auto!important;
    min-width:0!important;
  }
  .moderators-tab .moderators-sort-inline{
    width:auto!important;
    min-width:0!important;
    justify-self:start!important;
  }
  .moderators-tab .moderators-sort-group{
    width:auto!important;
    grid-template-columns:repeat(2,104px)!important;
  }
}


/* Desktop visual refresh — direct tab source so AJAX-injected CSS cannot override it. */
@media (min-width:1101px){
  .moderators-tab #moderatorsPermissionsForm > .sadaa-tablet-records-shell{
    width:100%;
    margin:0;
    padding:14px;
    border:1px solid var(--mods-border);
    border-radius:14px;
    background:#F6F7F9;
    box-shadow:0 1px 2px rgba(17,24,39,.03);
  }
  .moderators-tab .moderators-grid{gap:12px}
  .moderators-tab .moderator-card{
    border:1px solid var(--mods-border);
    border-top:3px solid var(--mods-brand);
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 8px rgba(17,24,39,.045);
  }
  .moderators-tab .moderator-card-head{
    padding:14px 16px;
    border-bottom:1px solid var(--mods-border);
    background:#fff;
  }
  .moderators-tab .moderator-name{
    margin-bottom:4px;
    color:var(--sadaa-text);
    font-size:15px;
    font-weight:700;
  }
  .moderators-tab .moderator-meta{
    color:var(--sadaa-text-2);
    font-size:12.5px;
  }
  .moderators-tab .moderator-meta i{color:var(--mods-brand);opacity:.72}
  .moderators-tab .moderators-save-bar{
    position:static;
    margin-top:12px;
    padding:11px 13px;
    border:1px solid var(--mods-border);
    border-radius:12px;
    background:#fff;
    box-shadow:0 1px 2px rgba(17,24,39,.03);
  }
}






/* ---- V103: tab_coupons.php ---- */
.coupons-tab-ui,
.coupons-tab-ui * {
  box-sizing: border-box;
}

.coupons-tab-ui {
  direction: rtl;
  color: #1f2937;
  font-family: var(--site-font-family);
}

.coupons-tab-ui a,
.coupons-tab-ui button,
.coupons-tab-ui input,
.coupons-tab-ui select {
  font-family: var(--site-font-family);
}

.coupons-tab-ui button {
  appearance: none;
}

.coupons-tab-ui .coupons-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
    radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
    linear-gradient(135deg, #4f73f6 0%, var(--sadaa-admin-primary) 48%, var(--sadaa-admin-primary) 100%);
  border: 0;
  border-radius: 8px;
}

.coupons-tab-ui .coupons-page-header::before,
.coupons-tab-ui .coupons-page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.coupons-tab-ui .coupons-page-header::before {
  width: 118px;
  height: 118px;
  left: -36px;
  top: -46px;
  background: rgba(255, 255, 255, 0.14);
}

.coupons-tab-ui .coupons-page-header::after {
  width: 86px;
  height: 86px;
  right: 34%;
  bottom: -44px;
  background: rgba(255, 255, 255, 0.12);
}

.coupons-tab-ui .coupons-page-title,
.coupons-tab-ui .coupons-page-actions {
  position: relative;
  z-index: 1;
}

.coupons-tab-ui .coupons-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.coupons-tab-ui .coupons-page-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 16px;
}

.coupons-tab-ui .coupons-page-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: #ffffff;
}

.coupons-tab-ui .coupons-page-title p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.8;
}

.coupons-tab-ui .coupons-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coupons-tab-ui .coupons-page-meta,
.coupons-tab-ui .coupons-header-add-btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.coupons-tab-ui .coupons-page-meta {
  color: #374151;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.72);
}

.coupons-tab-ui .coupons-header-add-btn {
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  cursor: pointer;
}

.coupons-tab-ui .coupons-header-add-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .22);
}

.coupons-tab-ui .coupons-header-add-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.coupons-tab-ui .coupons-panel,
.coupons-tab-ui .coupons-controls-card,
.coupons-tab-ui .coupon-editor,
.coupons-tab-ui .mc-list-wrap {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.coupons-tab-ui .coupons-panel {
  padding: 16px;
}

.coupons-tab-ui .coupons-controls-card {
  padding: 14px;
  margin-bottom: 12px;
}

.coupons-tab-ui .coupons-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.coupons-tab-ui .coupons-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.coupons-tab-ui .coupons-section-title i {
  color: #6b7280;
}

.coupons-tab-ui .coupons-toolbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 28px);
  flex-wrap: wrap;
}

.coupons-tab-ui .coupons-status-group,
.coupons-tab-ui .mc-bulkbar,
.coupons-tab-ui .coupon-editor__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.coupons-tab-ui .coupon-status-chip,
.coupons-tab-ui .mc-btn {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

.coupons-tab-ui .coupon-status-chip b {
  font-weight: 500;
  color: inherit;
}

.coupons-tab-ui .mc-btn {
  cursor: pointer;
}

.coupons-tab-ui .mc-btn:hover:not(:disabled):not(.no-permission) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.coupons-tab-ui .mc-btn.mc-primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.coupons-tab-ui .mc-btn.mc-primary:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
}

.coupons-tab-ui .mc-btn:disabled,
.coupons-tab-ui .mc-btn.no-permission {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(1);
}

.coupons-tab-ui .coupon-editor {
  padding: 14px;
  margin-bottom: 12px;
}

.coupons-tab-ui .coupon-editor__head {
  margin-bottom: 12px;
}

.coupons-tab-ui .coupon-editor__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
}

.coupons-tab-ui .coupon-editor__head p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.coupons-tab-ui .coupon-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
}

.coupons-tab-ui .coupon-grid > label:not(.coupon-editor__check) {
  color: #374151;
  font-size: 13px;
  font-weight: 400;
}

.coupons-tab-ui .coupon-grid input,
.coupons-tab-ui .coupon-grid select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 13px;
}

.coupons-tab-ui .coupon-grid input:focus,
.coupons-tab-ui .coupon-grid select:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
}

.coupons-tab-ui .coupon-editor__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
}

.coupons-tab-ui .coupon-editor__check input {
  width: 16px;
  height: 16px;
  accent-color: #111827;
}

.coupons-tab-ui .coupon-editor__actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.coupons-tab-ui .mc-list-wrap {
  overflow: hidden;
}

.coupons-tab-ui .mc-list {
  width: 100%;
}

.coupons-tab-ui .mc-header,
.coupons-tab-ui .mc-row {
  display: grid;
  grid-template-columns: 46px 72px minmax(150px, 1.25fr) minmax(90px, .8fr) minmax(95px, .8fr) minmax(90px, .7fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(120px, .9fr) minmax(125px, .95fr);
  align-items: center;
}

.coupons-tab-ui .mc-header {
  min-height: 46px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

.coupons-tab-ui .mc-row {
  min-height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
  font-size: 13px;
}

.coupons-tab-ui .mc-row:hover {
  background: #fcfcfd;
}

.coupons-tab-ui .mc-row:last-child {
  border-bottom: 0;
}

.coupons-tab-ui .mc-row.is-disabled,
.coupons-tab-ui .mc-row.is-expired,
.coupons-tab-ui .mc-row.is-used-up {
  background: #f8fbfd;
}

.coupons-tab-ui .mc-cell {
  padding: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupons-tab-ui .mc-cell:first-child {
  text-align: center;
}

.coupons-tab-ui input[type="checkbox"] {
  accent-color: #111827;
  cursor: pointer;
}

.coupons-tab-ui .coupon-id-pill,
.coupons-tab-ui .coupon-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.coupons-tab-ui .coupon-code-cell {
  font-weight: 500;
  color: #111827;
}

.coupons-tab-ui .coupon-status.is-active,
.coupons-tab-ui .coupon-status-chip.is-active {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.coupons-tab-ui .coupon-status.is-pending,
.coupons-tab-ui .coupon-status-chip.is-pending {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.coupons-tab-ui .coupon-status.is-expired,
.coupons-tab-ui .coupon-status-chip.is-expired,
.coupons-tab-ui .coupon-status.is-disabled,
.coupons-tab-ui .coupon-status-chip.is-disabled {
  background: var(--sadaa-admin-soft);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
}

.coupons-tab-ui .coupon-status.is-used-up,
.coupons-tab-ui .coupon-status-chip.is-used-up {
  background: var(--sadaa-tint-2);
  color: var(--sadaa-admin-hover);
  border-color: #d7e8f5;
}

.coupons-tab-ui .mc-empty-row {
  display: block;
  padding: 28px 16px;
  text-align: center;
}

.coupons-tab-ui .mc-empty-row .mc-cell {
  display: block;
  padding: 0;
}

.coupons-tab-ui .coupons-empty-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #6b7280;
}

.coupons-tab-ui .coupons-empty-box i {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}



/* ===== تقويم صلاحية الكوبون — مطابق للتقويم المعتمد في لوحة التحكم ===== */
.coupons-tab-ui .coupon-date-wrapper {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.coupons-tab-ui .coupon-date-wrapper .coupon-date-input {
  padding-left: 44px;
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
  caret-color: var(--sadaa-admin-primary);
  cursor: pointer;
}

.coupons-tab-ui .coupon-date-wrapper .coupon-date-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #747b8a;
  font-size: 14px;
  pointer-events: none;
  transition: color .15s ease;
}

.coupons-tab-ui .coupon-date-wrapper:hover .coupon-date-input {
  border-color: #b9d5ea;
}

.coupons-tab-ui .coupon-date-wrapper.is-calendar-open .coupon-date-input,
.coupons-tab-ui .coupon-date-wrapper .coupon-date-input:focus {
  border-color: var(--sadaa-admin-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--sadaa-admin-primary-rgb), .16);
}

.coupons-tab-ui .coupon-date-wrapper.is-calendar-open .coupon-date-icon {
  color: var(--sadaa-admin-primary);
}

body .flatpickr-calendar.sadaa-coupon-calendar,
body .flatpickr-calendar.sadaa-coupon-calendar * {
  box-sizing: border-box;
  font-family: var(--site-font-family) !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar {
  width: 326px;
  direction: rtl;
  overflow: hidden;
  margin-top: 8px;
  padding: 0;
  background: #ffffff !important;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  box-shadow: 0 22px 55px rgba(17, 24, 39, .16);
  color: #111827;
  z-index: 99999;
}

body .flatpickr-calendar.sadaa-coupon-calendar::before,
body .flatpickr-calendar.sadaa-coupon-calendar::after {
  display: none;
}

body .flatpickr-calendar.sadaa-coupon-calendar.open {
  animation: sadaaCouponCalendarOpen .17s ease-out both;
}

@keyframes sadaaCouponCalendarOpen {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-months {
  position: relative;
  min-height: 58px;
  align-items: center;
  padding: 9px 44px;
  background: var(--sadaa-admin-brand-gradient) !important;
  color: #ffffff !important;
  border: 0 !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-month {
  height: 40px;
  color: #ffffff;
  fill: #ffffff;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month {
  position: static;
  width: 100%;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  background: transparent !important;
  border: 0 !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .cur-month {
  margin: 0;
  color: #ffffff !important;
  font-weight: 500;
  background: transparent !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  min-width: 102px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0 10px 0 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .10));
  color: #ffffff !important;
  font-family: var(--site-font-family);
  font-size: 15px;
  font-weight: 500;
  line-height: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: #374151 !important;
  background: #ffffff !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:checked,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:hover {
  color: #111827 !important;
  background: var(--sadaa-admin-soft) !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .numInputWrapper {
  width: 66px;
  height: 32px;
  background: transparent !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month input.cur-year {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 7px;
  color: #ffffff !important;
  background: rgba(255, 255, 255, .13) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 6px;
  font-family: var(--site-font-family);
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  box-shadow: none !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month input.cur-year:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month input.cur-year:focus {
  background: rgba(255, 255, 255, .20) !important;
  border-color: rgba(255, 255, 255, .38) !important;
  box-shadow: none !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .numInputWrapper span {
  display: none;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month {
  position: absolute !important;
  top: 9px !important;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .20) !important;
  border-radius: 7px;
  background: rgba(255, 255, 255, .11) !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  z-index: 5;
  transition: background .16s ease, border-color .16s ease;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month {
  left: 9px !important;
  right: auto !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month {
  right: 9px !important;
  left: auto !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month:hover {
  background: rgba(255, 255, 255, .21) !important;
  border-color: rgba(255, 255, 255, .34) !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month svg,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month svg {
  display: none;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month::before,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month::before {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  color: currentColor;
  transform: translateY(-1px);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month::before { content: "›"; }
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month::before { content: "‹"; }

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-rContainer {
  width: 100%;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-weekdays {
  height: 38px;
  padding: 4px 8px 0;
  background: var(--sadaa-tint-3) !important;
  border-bottom: 1px solid var(--sadaa-tint-3);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-weekdaycontainer {
  width: 100%;
  background: var(--sadaa-tint-3) !important;
}

body .flatpickr-calendar.sadaa-coupon-calendar span.flatpickr-weekday {
  color: #6b7280 !important;
  background: var(--sadaa-tint-3) !important;
  font-size: 11px;
  line-height: 34px;
  font-weight: 500;
}

body .flatpickr-calendar.sadaa-coupon-calendar .days {
  width: 100%;
  padding: 8px;
}

body .flatpickr-calendar.sadaa-coupon-calendar .dayContainer {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  justify-content: space-between;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day {
  width: 38px;
  max-width: 38px;
  height: 38px;
  line-height: 38px;
  margin: 1px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #374151;
  font-size: 12.5px;
  font-weight: 400;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day:focus {
  color: var(--sadaa-admin-hover);
  background: var(--sadaa-tint-3);
  border-color: var(--sadaa-admin-line);
  outline: none;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.today {
  color: var(--sadaa-admin-hover);
  background: #ffffff;
  border-color: var(--sadaa-admin-primary);
  font-weight: 500;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.today:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.today:focus {
  color: #ffffff;
  background: var(--sadaa-admin-primary);
  border-color: var(--sadaa-admin-primary);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.selected,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.startRange,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.endRange,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.selected:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.startRange:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.endRange:hover {
  color: #ffffff !important;
  background: var(--sadaa-admin-brand-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 14px rgba(var(--sadaa-admin-primary-rgb), .22);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.prevMonthDay,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.nextMonthDay {
  color: #b7bdc8;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.flatpickr-disabled,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.flatpickr-disabled:hover,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.notAllowed,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.notAllowed:hover {
  color: #d1d5db;
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day:focus-visible,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month:focus-visible,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month:focus-visible {
  outline: 2px solid rgba(var(--sadaa-admin-primary-rgb), .30);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  body .flatpickr-calendar.sadaa-coupon-calendar {
    width: min(326px, calc(100vw - 24px));
  }

  body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day {
    width: 36px;
    max-width: 36px;
    height: 36px;
    line-height: 36px;
  }
}

@media (max-width: 1180px) {
  .coupons-tab-ui .mc-list-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .coupons-tab-ui .mc-list {
    min-width: 980px;
  }
}

@media (max-width:1100px) {
  .coupons-tab-ui .coupons-page-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .coupons-tab-ui .coupons-page-actions {
    width: 100%;
    justify-content: flex-start;
    padding-inline-start: 54px;
  }

  .coupons-tab-ui .coupons-panel {
    padding: 14px;
  }

  .coupons-tab-ui .coupons-toolbar {
    align-items: flex-start;
  }

  .coupons-tab-ui .coupons-status-group,
  .coupons-tab-ui .mc-bulkbar {
    width: 100%;
  }

  .coupons-tab-ui .coupon-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width:1100px) {
  .coupons-tab-ui .coupons-page-header {
    padding: 14px;
    border-radius: 8px;
    gap: 10px;
  }

  .coupons-tab-ui .coupons-page-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 7px;
    font-size: 14px;
  }

  .coupons-tab-ui .coupons-page-title {
    gap: 10px;
  }

  .coupons-tab-ui .coupons-page-title h2 {
    font-size: 17px;
    line-height: 1.4;
  }

  .coupons-tab-ui .coupons-page-title p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
  }

  .coupons-tab-ui .coupons-page-actions {
    width: 100%;
    justify-content: flex-start;
    padding-inline-start: 44px;
  }

  .coupons-tab-ui .coupons-page-meta,
  .coupons-tab-ui .coupons-header-add-btn {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 12px;
  }

  .coupons-tab-ui .coupons-panel,
  .coupons-tab-ui .coupons-controls-card,
  .coupons-tab-ui .coupon-editor,
  .coupons-tab-ui .mc-list-wrap {
    border-radius: 8px;
  }

  .coupons-tab-ui .coupons-panel {
    padding: 10px;
  }

  .coupons-tab-ui .coupons-controls-card,
  .coupons-tab-ui .coupon-editor {
    padding: 10px;
    margin-bottom: 10px;
  }

  .coupons-tab-ui .coupons-status-group,
  .coupons-tab-ui .mc-bulkbar,
  .coupons-tab-ui .coupon-editor__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .coupons-tab-ui .coupon-status-chip,
  .coupons-tab-ui .mc-btn {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 12.5px;
  }

  .coupons-tab-ui .mc-list-wrap {
    overflow: visible;
    background: #ffffff;
    padding: 8px;
  }

  .coupons-tab-ui .mc-list {
    min-width: 0;
    display: grid;
    gap: 10px;
  }

  .coupons-tab-ui .mc-header {
    display: none;
  }

  .coupons-tab-ui .mc-row {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
  }

  .coupons-tab-ui .mc-row.is-disabled,
  .coupons-tab-ui .mc-row.is-expired,
  .coupons-tab-ui .mc-row.is-used-up {
    background: #f8fbfd;
  }

  .coupons-tab-ui .mc-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 34px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: left;
    font-size: 12px;
  }

  .coupons-tab-ui .mc-cell:last-child {
    border-bottom: 0;
  }

  .coupons-tab-ui .mc-cell::before {
    content: attr(data-label);
    flex: 0 0 95px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    text-align: right;
  }

  .coupons-tab-ui .mc-select-cell {
    min-height: 28px;
  }

  .coupons-tab-ui .mc-empty-row {
    padding: 18px 12px;
  }
}

@media (max-width: 480px) {
  .coupons-tab-ui .coupons-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
    padding-inline-start: 0;
  }

  .coupons-tab-ui .coupons-page-meta,
  .coupons-tab-ui .coupons-header-add-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }

  .coupons-tab-ui .coupons-page-meta span,
  .coupons-tab-ui .coupons-header-add-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .coupons-tab-ui .coupons-status-group,
  .coupons-tab-ui .mc-bulkbar,
  .coupons-tab-ui .coupon-editor__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.coupons-tab-ui{
  --coupon-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --coupon-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --coupon-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --coupon-soft:var(--sadaa-admin-soft,rgba(var(--coupon-brand-rgb),.07));
  --coupon-line:var(--sadaa-admin-soft-line,rgba(var(--coupon-brand-rgb),.18));
  --coupon-border:#e5e7eb;
  color:#1f2937;
}

.coupons-tab-ui .coupons-page-header{
  padding:18px 20px;
  margin-bottom:14px;
  border-radius:8px;
  box-shadow:none;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.22) 0,rgba(255,255,255,.22) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.14) 0,rgba(255,255,255,.14) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
}

.coupons-tab-ui .coupons-page-meta{
  border-color:rgba(255,255,255,.18);
  background:rgba(var(--coupon-brand-rgb),.18);
  color:#fff;
}

.coupons-tab-ui .coupons-header-add-btn{
  min-height:38px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:7px;
  background:#fff;
  color:var(--coupon-brand-dark);
  text-decoration:none;
}

.coupons-tab-ui .coupons-header-add-btn:hover{
  background:#fdfdfd;
}



.coupons-tab-ui .coupons-panel{
  padding:0;
  border:0;
  background:transparent;
}

.coupons-tab-ui .coupons-controls-card,
.coupons-tab-ui .mc-list-wrap{
  border:1px solid var(--coupon-border);
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}

.coupons-tab-ui .coupons-controls-card{
  padding:12px;
  margin-bottom:12px;
}

.coupons-tab-ui .coupons-card-head{
  margin:0 0 10px;
  padding:0;
  background:transparent;
}

.coupons-tab-ui .coupons-section-title{
  color:#374151;
  font-size:13.5px;
}

.coupons-tab-ui .coupons-section-title i{
  color:var(--coupon-brand);
  background:transparent;
}

.coupons-tab-ui .coupons-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.coupons-tab-ui .coupons-status-group{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.coupons-tab-ui .mc-bulkbar{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.coupons-tab-ui .coupon-status-chip,
.coupons-tab-ui .mc-btn{
  min-height:36px;
  padding:7px 10px;
  border-radius:7px;
  font-size:12.5px;
}

.coupons-tab-ui .mc-btn{
  border-color:#d1d5db;
  background:#fff;
  color:#374151;
}

.coupons-tab-ui .mc-btn:hover:not(:disabled){
  border-color:var(--coupon-line);
  background:var(--coupon-soft);
  color:var(--coupon-brand-dark);
}

.coupons-tab-ui .mc-btn:disabled{
  opacity:.45;
  filter:none;
}

.coupons-tab-ui .mc-list-wrap{
  overflow:hidden;
}

.coupons-tab-ui .mc-header{
  background:var(--coupon-soft);
  color:var(--coupon-brand-dark);
  border-bottom:1px solid var(--coupon-line);
}

.coupons-tab-ui .mc-row{
  background:#fff;
  border-bottom:1px solid #eef0f3;
}

.coupons-tab-ui .mc-row.is-disabled,
.coupons-tab-ui .mc-row.is-expired,
.coupons-tab-ui .mc-row.is-used-up{
  background:#fff;
}

.coupons-tab-ui input[type="checkbox"]{
  accent-color:var(--coupon-brand);
}

.coupons-tab-ui .coupon-id-pill{
  background:#f9fafb;
  color:#4b5563;
}

.coupons-tab-ui .coupon-code-cell{
  color:#111827;
  font-weight:500;
}

.coupons-tab-ui .coupon-status.is-disabled,
.coupons-tab-ui .coupon-status-chip.is-disabled,
.coupons-tab-ui .coupon-status.is-expired,
.coupons-tab-ui .coupon-status-chip.is-expired{
  background:var(--coupon-soft);
  color:var(--coupon-brand-dark);
  border-color:var(--coupon-line);
}

.coupons-tab-ui .coupon-status.is-used-up,
.coupons-tab-ui .coupon-status-chip.is-used-up{
  background:var(--sadaa-tint-2);
  color:var(--sadaa-primary);
  border-color:#ddd6fe;
}

@media(max-width:1180px){
  .coupons-tab-ui .mc-list-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (max-width:1100px){
  .coupons-tab-ui .coupons-page-header{
    padding:16px;
  }

  .coupons-tab-ui .coupons-page-actions{
    padding-inline-start:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .coupons-tab-ui .coupons-page-meta,
  .coupons-tab-ui .coupons-header-add-btn{
    width:100%;
  }

  .coupons-tab-ui .coupons-controls-card{
    padding:10px;
  }

  .coupons-tab-ui .coupons-status-group{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:8px;
  }

  .coupons-tab-ui .coupon-status-chip{
    width:100%;
  }

  .coupons-tab-ui .mc-bulkbar{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    gap:8px;
  }

  .coupons-tab-ui .mc-btn{
    width:100%;
  }

  .coupons-tab-ui .mc-list-wrap{
    overflow:visible;
    padding:8px;
    background:#fafafa;
  }

  .coupons-tab-ui .mc-list{
    min-width:0;
    display:grid;
    gap:10px;
  }

  .coupons-tab-ui .mc-header{
    display:none;
  }

  .coupons-tab-ui .mc-row{
    display:grid;
    grid-template-columns:1fr;
    padding:11px 13px;
    border:1px solid #e5e7eb;
    border-top:2px solid var(--coupon-brand);
    border-radius:8px;
    background:#fff;
  }

  .coupons-tab-ui .mc-cell{
    min-height:38px;
    padding:8px 0;
    border-bottom:1px solid #eef0f3;
    font-size:14px;
    line-height:1.55;
  }

  .coupons-tab-ui .mc-cell::before{
    flex:0 0 96px;
    color:#7b8492;
    font-size:13px;
    line-height:1.5;
  }

  .coupons-tab-ui .mc-cell:last-child{
    border-bottom:0;
  }

  .coupons-tab-ui .coupon-id-pill,
  .coupons-tab-ui .coupon-status{
    min-height:28px;
    padding:5px 9px;
    font-size:13px;
  }

  .coupons-tab-ui .coupon-code-cell{
    font-size:14px;
    font-weight:500;
  }

  .coupons-tab-ui .mc-select-cell input[type="checkbox"]{
    width:16px;
    height:16px;
  }
}

@media(max-width:480px){
  .coupons-tab-ui .mc-bulkbar{
    grid-template-columns:1fr;
  }
}



@media (max-width:1100px){
  .coupons-tab-ui .mc-row{
    grid-template-columns:18px max-content minmax(0,1fr);
    column-gap:7px;
  }
  .coupons-tab-ui .mc-row > .mc-cell{
    grid-column:1/-1;
  }
  .coupons-tab-ui .mc-select-cell{
    grid-column:1!important;
    grid-row:1;
    width:18px;
    min-height:32px;
    padding:0;
    border-bottom:0;
    justify-content:flex-start;
  }
  .coupons-tab-ui .mc-select-cell::before{
    display:none;
  }
  .coupons-tab-ui .mc-select-cell .mc-checkbox{
    display:block;
    margin:0;
  }
  .coupons-tab-ui .coupon-id-cell{
    grid-column:2!important;
    grid-row:1;
    width:auto;
    min-height:32px;
    padding:0;
    border-bottom:0;
    justify-content:flex-start;
  }
  .coupons-tab-ui .coupon-id-cell::before{
    display:none;
  }
  .coupons-tab-ui .coupon-id-hash{
    display:none;
  }
  .coupons-tab-ui .coupon-status-cell{
    grid-column:3!important;
    grid-row:1;
    width:auto;
    min-height:32px;
    padding:0;
    border-bottom:0;
    justify-content:flex-end;
  }
  .coupons-tab-ui .coupon-status-cell::before{
    display:none;
  }
  .coupons-tab-ui .coupon-code-cell{
    grid-column:1/-1!important;
    grid-row:2;
    margin-top:3px;
    padding-top:9px;
    border-top:1px solid #eef0f3;
  }
  .coupons-tab-ui .coupon-id-pill,
  .coupons-tab-ui .coupon-status{
    min-height:27px;
    white-space:nowrap;
  }
}







@media (min-width:721px) and (max-width:1100px){
  .coupons-tab-ui .coupons-page-actions{display:flex!important;width:auto!important;align-self:flex-end!important;justify-content:flex-end!important;gap:7px!important;margin-inline-start:auto!important;padding-inline-start:0!important}
  .coupons-tab-ui .coupons-page-meta,.coupons-tab-ui .coupons-header-add-btn{width:auto!important;min-width:0!important;padding-inline:11px!important}
  .coupons-tab-ui .coupon-status-chip{width:100%!important;background:var(--sadaa-admin-soft)!important;color:var(--sadaa-admin-dark)!important;border-color:var(--sadaa-admin-soft-line)!important}
}



@media (max-width:720px){
  /* توحيد ألوان حالات الكوبونات على الجوال */
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip,
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip.is-active,
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip.is-disabled,
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip.is-pending,
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip.is-expired,
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip.is-used-up{
    width:100%!important;
    min-height:36px!important;
    background:var(--sadaa-admin-soft,var(--sadaa-tint-2))!important;
    color:var(--sadaa-admin-dark)!important;
    border:1px solid var(--sadaa-admin-soft-line,var(--sadaa-line-2))!important;
  }
  #tabContent .coupons-tab-ui .coupons-status-group .coupon-status-chip i{
    color:var(--sadaa-admin-primary,var(--sadaa-primary))!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_COUPONS_2026_10_04 */

@media (min-width:1101px){
  .coupons-tab-ui .mc-list-wrap{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }
}




@media (min-width:1101px){
  #tabContent .coupons-tab-ui .mc-list-wrap{
    display:contents!important;
  }
  #tabContent .coupons-tab-ui .mc-list{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
}





/* ---- V103: tab_reports.php ---- */
.reports-tab-ui,
.reports-tab-ui *{box-sizing:border-box}

.reports-tab-ui{
  --reports-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --reports-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --reports-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --reports-soft:var(--sadaa-admin-soft,rgba(var(--reports-brand-rgb),.07));
  --reports-line:var(--sadaa-admin-soft-line,rgba(var(--reports-brand-rgb),.20));
  --reports-border:#e5e7eb;
  --reports-muted:#6b7280;
  --reports-text:#1f2937;
  direction:rtl;
  color:var(--reports-text);
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif);
}

.reports-tab-ui a,
.reports-tab-ui button,
.reports-tab-ui input,
.reports-tab-ui select{font-family:var(--site-font-family,Tahoma,Arial,sans-serif)}

.reports-tab-ui button{appearance:none}

/* الهيرو */
.reports-tab-ui .reports-clean-header{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  padding:18px 20px;
  overflow:hidden;
  border:0;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
  color:#fff;
}

.reports-tab-ui .reports-clean-header::before,
.reports-tab-ui .reports-clean-header::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.reports-tab-ui .reports-clean-header::before{
  width:118px;height:118px;left:-36px;top:-46px;background:rgba(255,255,255,.14)
}

.reports-tab-ui .reports-clean-header::after{
  width:86px;height:86px;right:34%;bottom:-44px;background:rgba(255,255,255,.12)
}

.reports-tab-ui .reports-header-icon,
.reports-tab-ui .reports-header-content{position:relative;z-index:1}

.reports-tab-ui .reports-header-icon{
  width:42px;height:42px;min-width:42px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  color:#fff;font-size:16px
}

.reports-tab-ui .reports-header-content{flex:1;min-width:0}
.reports-tab-ui .reports-header-label{display:none}

.reports-tab-ui .reports-clean-header h2{
  margin:0;color:#fff;font-size:20px;font-weight:500;line-height:1.5
}

.reports-tab-ui .reports-clean-header p{
  margin:3px 0 0;max-width:780px;
  color:rgba(255,255,255,.84);
  font-size:13px;line-height:1.8
}

/* الحاوية */
.reports-tab-ui .reports-panel{padding:0;border:0;background:transparent}

.reports-tab-ui .reports-search-card,
.reports-tab-ui .reports-controls-card,
.reports-tab-ui .reports-list-card{
  border:1px solid var(--reports-border);
  border-radius:8px;
  background:#fff
}

.reports-tab-ui .reports-search-card,
.reports-tab-ui .reports-controls-card{
  padding:12px;
  margin-bottom:12px
}

.reports-tab-ui .reports-card-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:9px
}

.reports-tab-ui .reports-section-title{
  display:inline-flex;align-items:center;gap:7px;
  margin:0;color:#374151;font-size:13.5px;font-weight:500
}

.reports-tab-ui .reports-section-title i{color:var(--reports-brand)}

/* البحث */
.reports-tab-ui .reports-search-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) 190px auto auto;
  gap:8px;
  align-items:center;
  margin:0
}

.reports-tab-ui .reports-search-field,
.reports-tab-ui .reports-status-field{
  position:relative;
  min-width:0
}

.reports-tab-ui .reports-search-field i{
  position:absolute;
  top:50%;
  right:13px;
  transform:translateY(-50%);
  color:#9ca3af;
  font-size:13px;
  pointer-events:none
}

.reports-tab-ui .reports-status-field > i{display:none}

.reports-tab-ui .reports-search-field input,
.reports-tab-ui .reports-status-field select{
  width:100%;
  min-height:42px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#111827;
  outline:none;
  font-size:13.5px
}

.reports-tab-ui .reports-search-field input{padding:9px 38px 9px 12px}

.reports-tab-ui .reports-status-field select{
  appearance:none;
  -webkit-appearance:none;
  padding:9px 12px 9px 36px;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 11px center;
  background-size:14px 14px
}

.reports-tab-ui .reports-search-field input:focus,
.reports-tab-ui .reports-status-field select:focus{
  border-color:var(--reports-brand);
  box-shadow:none;
  outline:none
}

.reports-tab-ui .reports-search-form button,
.reports-tab-ui .reports-search-form a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 14px;
  border:1px solid var(--reports-brand);
  border-radius:7px;
  background:var(--reports-brand);
  color:#fff;
  text-decoration:none;
  font-size:13.5px;
  cursor:pointer
}

.reports-tab-ui .reports-search-form button:hover{
  border-color:var(--reports-brand-dark);
  background:var(--reports-brand-dark)
}

.reports-tab-ui #clearReportsSearchBtn{
  border-color:#d1d5db;
  background:#fff;
  color:#4b5563
}

.reports-tab-ui #clearReportsSearchBtn:hover{
  border-color:var(--reports-line);
  background:var(--reports-soft);
  color:var(--reports-brand-dark)
}

/* الفلاتر والإجراءات الجماعية */
.reports-tab-ui .reports-filter-bar{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  width:100%
}

.reports-tab-ui .reports-filter,
.reports-tab-ui .reports-bulk-action-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 10px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#374151;
  text-decoration:none;
  font-size:13px;
  cursor:pointer
}

.reports-tab-ui .reports-filter:hover,
.reports-tab-ui .reports-bulk-action-btn:hover:not(:disabled):not(.no-permission){
  border-color:var(--reports-line);
  background:var(--reports-soft);
  color:var(--reports-brand-dark)
}

.reports-tab-ui .reports-filter.active{
  border-color:var(--reports-line);
  background:var(--reports-soft);
  color:var(--reports-brand-dark);
  font-weight:500
}

.reports-tab-ui .reports-filter span{
  min-width:22px;
  min-height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 7px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  color:inherit;
  font-size:12px
}

.reports-tab-ui .reports-bulk-toolbar{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-inline-start:4px;
  padding-inline-start:10px;
  border-inline-start:1px solid #e5e7eb
}

.reports-tab-ui .reports-bulk-info{display:none}

.reports-tab-ui .reports-bulk-actions{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap
}

.reports-tab-ui .reports-bulk-action-btn:disabled,
.reports-tab-ui .reports-bulk-action-btn.no-permission,
.reports-tab-ui .report-action-btn.no-permission{
  opacity:.38;
  cursor:not-allowed;
  filter:grayscale(1)
}

/* الجدول */
.reports-tab-ui .reports-list-card{
  overflow:visible;
  border-radius:10px;
}

.reports-tab-ui .reports-table{
  border-radius:10px;
}

.reports-tab-ui .reports-row.header{
  border-radius:10px 10px 0 0;
}

.reports-tab-ui .reports-row:last-child{
  border-radius:0 0 10px 10px;
}

.reports-tab-ui .reports-table{
  width:100%;
  overflow:visible;
  isolation:isolate
}

.reports-tab-ui .reports-row{
  display:grid;
  grid-template-columns:46px 64px 96px minmax(118px,.8fr) minmax(145px,1fr) minmax(160px,1.1fr) minmax(125px,.9fr) 120px 112px 60px;
  align-items:center;
  min-height:62px;
  border-bottom:1px solid #eef0f3;
  background:#fff;
  color:#111827;
  font-size:13.5px
}

.reports-tab-ui.reports-readonly .reports-row{
  grid-template-columns:64px 96px minmax(118px,.8fr) minmax(145px,1fr) minmax(160px,1.1fr) minmax(125px,.9fr) 120px 112px 60px
}

.reports-tab-ui.reports-readonly .reports-select-cell{display:none}

.reports-tab-ui .reports-row.header{
  min-height:46px;
  border-bottom:1px solid var(--reports-line);
  background:var(--reports-soft);
  color:var(--reports-brand-dark);
  font-size:13px;
  font-weight:500
}

.reports-tab-ui .reports-row:last-child{border-bottom:0}
.reports-tab-ui .reports-row:hover:not(.header){background:#fcfcfd}

.reports-tab-ui .reports-cell{
  min-width:0;
  padding:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#374151;
  text-align:right
}

.reports-tab-ui .reports-select-cell{text-align:center}

.reports-tab-ui .reports-actions-cell{
  position:relative;
  z-index:5;
  overflow:visible;
  text-align:center
}

.reports-tab-ui .report-details,
.reports-tab-ui .reports-reporter-cell,
.reports-tab-ui .reports-owner-cell{
  white-space:normal;
  line-height:1.75
}

.reports-tab-ui .report-details-text{
  display:block;
}

.reports-tab-ui .report-details:not(:has(.report-details-text)) small{
  margin-top:0;
}

.reports-tab-ui .reports-cell small,
.reports-tab-ui .report-ad-meta,
.reports-tab-ui .report-date span{
  display:block;
  margin-top:4px;
  color:#7b8492;
  font-size:12px;
  line-height:1.65
}

.reports-tab-ui .report-ad-id{
  display:block;
  color:#111827;
  font-size:13.5px;
  font-weight:500
}

.reports-tab-ui .report-ad-meta{
  display:flex;
  flex-direction:column;
  gap:1px
}

.reports-tab-ui .report-reporter-main,
.reports-tab-ui .report-owner-main{
  display:block;
  color:#374151
}

.reports-tab-ui .report-check,
.reports-tab-ui #selectAllReports{
  width:16px;
  height:16px;
  cursor:pointer;
  accent-color:var(--reports-brand)
}

.reports-tab-ui .reports-row.selected{background:var(--reports-soft)}

.reports-tab-ui .report-id-pill{
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 9px;
  border-radius:999px;
  background:#f3f4f6;
  color:#374151;
  font-weight:500
}

.reports-tab-ui .report-badge{
  min-height:27px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:4px 9px;
  border:1px solid transparent;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap
}

.reports-tab-ui .report-badge.new{border-color:#bbf7d0;background:#ecfdf3;color:#166534}
.reports-tab-ui .report-badge.reviewed{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.reports-tab-ui .report-badge.dismissed{border-color:#d1d5db;background:#f3f4f6;color:#4b5563}
.reports-tab-ui .report-badge.actioned{border-color:#a7f3d0;background:#ecfdf5;color:#047857}

/* الإجراءات */
.reports-tab-ui .report-actions{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center
}

.reports-tab-ui .report-actions-menu{
  position:fixed;
  z-index:99999;
  display:none;
}

.reports-tab-ui .report-actions-menu.show{display:block}

/* فارغ + pagination */
.reports-tab-ui .reports-empty{
  padding:34px 18px;
  text-align:center;
  color:#6b7280
}

.reports-tab-ui .reports-empty-box{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:8px
}

.reports-tab-ui .reports-empty-box i{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:var(--reports-soft);
  color:var(--reports-brand);
  font-size:16px
}

/* الوصول */
.reports-tab-ui a:focus-visible,
.reports-tab-ui button:focus-visible{
  outline:2px solid var(--reports-brand);
  outline-offset:2px
}

.reports-tab-ui input:focus-visible,
.reports-tab-ui select:focus-visible{outline:none}

/* تابلت */
@media(max-width:1180px){
  .reports-tab-ui .reports-row{
    grid-template-columns:42px 54px 82px minmax(105px,.75fr) minmax(120px,.9fr) minmax(135px,1fr) minmax(110px,.8fr) 108px 98px 54px;
    font-size:12.5px
  }

  .reports-tab-ui.reports-readonly .reports-row{
    grid-template-columns:54px 82px minmax(105px,.75fr) minmax(120px,.9fr) minmax(135px,1fr) minmax(110px,.8fr) 108px 98px 54px
  }

  .reports-tab-ui .reports-cell{padding:9px 7px}
}

@media (max-width:1100px){
  .reports-tab-ui .reports-search-form{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .reports-tab-ui .reports-search-field{grid-column:1/-1}

  .reports-tab-ui .reports-search-form button,
  .reports-tab-ui .reports-search-form a{width:100%}

  .reports-tab-ui .reports-filter-bar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px
  }

  .reports-tab-ui .reports-filter,
  .reports-tab-ui .reports-bulk-action-btn{width:100%}

  .reports-tab-ui .reports-bulk-toolbar{
    grid-column:1/-1;
    width:100%;
    margin:2px 0 0;
    padding:8px 0 0;
    border-inline-start:0;
    border-top:1px solid #eef0f3
  }

  .reports-tab-ui .reports-bulk-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%
  }
}

/* جوال */
@media (max-width:1100px){
  .reports-tab-ui .reports-clean-header{
    align-items:flex-start;
    padding:16px
  }

  .reports-tab-ui .reports-header-icon{
    width:36px;height:36px;min-width:36px;font-size:14px
  }

  .reports-tab-ui .reports-clean-header h2{font-size:18px}

  .reports-tab-ui .reports-clean-header p{
    font-size:12.5px;
    line-height:1.7
  }

  .reports-tab-ui .reports-search-card,
  .reports-tab-ui .reports-controls-card{
    padding:10px;
    margin-bottom:10px
  }

  .reports-tab-ui .reports-search-form{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .reports-tab-ui .reports-search-field,
  .reports-tab-ui .reports-status-field{
    grid-column:1/-1
  }

  .reports-tab-ui .reports-search-field input,
  .reports-tab-ui .reports-status-field select{
    min-height:44px;
    font-size:14px
  }

  .reports-tab-ui .reports-search-form button,
  .reports-tab-ui .reports-search-form a{
    min-height:42px
  }

  .reports-tab-ui .reports-list-card{
    padding:8px;
    border-color:#e5e7eb;
    background:#fafafa
  }

  .reports-tab-ui .reports-table{
    display:grid;
    gap:10px;
    background:transparent
  }

  .reports-tab-ui .reports-row.header{display:none}

  .reports-tab-ui .reports-row,
  .reports-tab-ui.reports-readonly .reports-row{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    align-items:center;
    gap:0 10px;
    min-height:0;
    padding:11px 12px 12px;
    border:1px solid #e5e7eb;
    border-top:2px solid var(--reports-brand);
    border-radius:8px;
    background:#fff;
    font-size:13.5px
  }

  .reports-tab-ui .reports-row:hover:not(.header){background:#fff}

  .reports-tab-ui .reports-cell{
    width:auto;
    min-width:0;
    padding:9px 0;
    overflow:visible;
    border-bottom:1px solid #eef0f3;
    text-overflow:clip;
    white-space:normal;
    font-size:13.5px
  }

  .reports-tab-ui .reports-cell::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#8a93a1;
    font-size:12px;
    line-height:1.5
  }

  .reports-tab-ui .reports-select-cell{
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:34px;
    padding:0;
    border-bottom:0
  }

  .reports-tab-ui .reports-select-cell::before{display:none}
  .reports-tab-ui.reports-readonly .reports-select-cell{display:none}

  .reports-tab-ui .reports-id-cell{
    grid-column:2;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    padding:0;
    border-bottom:0
  }

  .reports-tab-ui .reports-id-cell::before{display:none}

  .reports-tab-ui .reports-status-cell{
    grid-column:3;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0;
    border-bottom:0
  }

  .reports-tab-ui .reports-status-cell::before{display:none}

  .reports-tab-ui .report-id-pill{
    min-width:0;
    padding:5px 9px;
    color:var(--reports-brand-dark);
    background:var(--reports-soft)
  }

  .reports-tab-ui .reports-ad-cell{
    grid-column:1/-1;
    grid-row:2;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid var(--reports-line)
  }

  .reports-tab-ui .reports-ad-cell::before{color:var(--reports-brand-dark)}

  .reports-tab-ui .report-ad-id{font-size:14px}

  .reports-tab-ui .report-ad-meta{
    margin-top:5px;
    flex-direction:row;
    gap:12px;
    flex-wrap:wrap
  }

  .reports-tab-ui .reports-reason-cell{
    grid-column:1/-1;
    grid-row:3
  }

  .reports-tab-ui .reports-details-cell{
    grid-column:1/-1;
    grid-row:4
  }

  .reports-tab-ui .reports-reporter-cell{
    grid-column:1/-1;
    grid-row:5
  }

  .reports-tab-ui .reports-date-cell{
    grid-column:1/3;
    grid-row:6;
    border-bottom:0
  }

  .reports-tab-ui .reports-actions-cell{
    grid-column:3;
    grid-row:6;
    align-self:end;
    padding-bottom:0;
    border-bottom:0;
    text-align:left
  }

  .reports-tab-ui .reports-actions-cell::before{display:none}

  .reports-tab-ui .report-menu-toggle{
    width:38px;
    height:38px
  }

  .reports-tab-ui .reports-cell small,
  .reports-tab-ui .report-ad-meta,
  .reports-tab-ui .report-date span{
    font-size:12.5px
  }

  .reports-tab-ui .report-badge{
    min-height:27px;
    font-size:12px
  }

  .reports-tab-ui .reports-bulk-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .reports-tab-ui .reports-bulk-action-btn:last-child{
    grid-column:1/-1
  }

  .reports-tab-ui .reports-empty{padding:24px 12px}
}

@media(max-width:480px){
  .reports-tab-ui .reports-filter-bar{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .reports-tab-ui .reports-filter,
  .reports-tab-ui .reports-bulk-action-btn{
    min-height:38px;
    font-size:12.5px
  }

  .reports-tab-ui .reports-row,
  .reports-tab-ui.reports-readonly .reports-row{
    padding-inline:11px
  }
}

/* طبقات قائمة الإجراءات */
.reports-tab-ui .reports-row:not(.header){
  position:relative;
  z-index:1
}

.reports-tab-ui .reports-row:not(.header):has(.report-actions-menu.show),
.reports-tab-ui .reports-row.row-menu-open{
  z-index:3000
}

.reports-tab-ui .reports-row.row-menu-open .reports-actions-cell,
.reports-tab-ui .reports-row.row-menu-open .report-actions,
.reports-tab-ui .reports-row.row-menu-open .report-actions-menu.show{
  z-index:999999
}



@media (max-width:1100px){
  .reports-tab-ui .reports-row,
  .reports-tab-ui.reports-readonly .reports-row{
    grid-template-columns:18px max-content minmax(0,1fr);
    column-gap:6px;
  }
  .reports-tab-ui .reports-select-cell{
    width:18px;
    min-width:18px;
    min-height:32px;
    line-height:0;
  }
  .reports-tab-ui .reports-select-cell input[type="checkbox"]{
    display:block;
    width:16px;
    height:16px;
    margin:0;
  }
  .reports-tab-ui .reports-id-cell{
    width:auto;
    min-height:32px;
  }
  .reports-tab-ui .report-id-pill{
    margin:0;
  }
  .reports-tab-ui .reports-status-cell{
    min-width:0;
    min-height:32px;
  }
}



@media (max-width:1100px){
  /* dashboard.css يضيف padding عاماً لكل form؛ نلغيه داخل هذا التبويب فقط. */
  .reports-tab-ui .reports-search-form{
    width:100%;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* رأس البطاقة: الإجراءات والحالة يساراً، الرقم والتحديد يميناً. */
  .reports-tab-ui .reports-row,
  .reports-tab-ui.reports-readonly .reports-row{
    direction:ltr;
    grid-template-columns:auto auto minmax(0,1fr) auto auto;
    column-gap:6px;
  }
  .reports-tab-ui .reports-cell{
    direction:rtl;
  }
  .reports-tab-ui .reports-actions-cell{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center;
    justify-self:start;
    width:auto;
    min-height:32px;
    padding:0;
    border-bottom:0;
  }
  .reports-tab-ui .reports-status-cell{
    grid-column:2!important;
    grid-row:1!important;
    align-self:center;
    justify-self:start;
    width:auto;
    min-height:32px;
    padding:0;
    border-bottom:0;
  }
  .reports-tab-ui .reports-id-cell{
    grid-column:4!important;
    grid-row:1!important;
    align-self:center;
    justify-self:end;
    min-height:32px;
    padding:0;
    border-bottom:0;
  }
  .reports-tab-ui .reports-select-cell{
    grid-column:5!important;
    grid-row:1!important;
    align-self:center;
    justify-self:end;
    width:18px;
    min-width:18px;
    min-height:32px;
    padding:0;
    border-bottom:0;
  }
  .reports-tab-ui.reports-readonly .reports-id-cell{
    grid-column:5!important;
  }
  .reports-tab-ui .report-menu-toggle{
    width:34px;
    height:34px;
  }

  /* بقية الحقول: العنوان يميناً والقيمة في الجهة المقابلة مثل بقية بطاقات الإدارة. */
  .reports-tab-ui .reports-ad-cell,
  .reports-tab-ui .reports-reason-cell,
  .reports-tab-ui .reports-details-cell,
  .reports-tab-ui .reports-reporter-cell,
  .reports-tab-ui .reports-date-cell{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:96px minmax(0,1fr);
    align-items:start;
    gap:10px;
    width:100%;
    margin:0;
    padding:9px 0;
    text-align:right;
  }
  .reports-tab-ui .reports-ad-cell{
    grid-row:2!important;
    margin-top:7px;
    padding-top:10px;
    border-top:1px solid var(--reports-line);
  }
  .reports-tab-ui .reports-reason-cell{grid-row:3!important;}
  .reports-tab-ui .reports-details-cell{grid-row:4!important;}
  .reports-tab-ui .reports-reporter-cell{grid-row:5!important;}
  .reports-tab-ui .reports-date-cell{grid-row:6!important;border-bottom:0;}
  .reports-tab-ui .reports-ad-cell::before,
  .reports-tab-ui .reports-reason-cell::before,
  .reports-tab-ui .reports-details-cell::before,
  .reports-tab-ui .reports-reporter-cell::before,
  .reports-tab-ui .reports-date-cell::before{
    display:block;
    grid-column:1;
    margin:0;
    text-align:right;
  }
  .reports-tab-ui .reports-mobile-value{
    grid-column:2;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
    text-align:left;
    overflow-wrap:anywhere;
  }
  .reports-tab-ui .reports-mobile-value .report-details-text,
  .reports-tab-ui .reports-mobile-value .report-reporter-main,
  .reports-tab-ui .reports-mobile-value small{
    width:100%;
    text-align:left;
  }
}



@media (max-width:1100px){
  /* صفوف بيانات البلاغ: العنوان يميناً والقيمة في الجهة المقابلة بمحاذاة ثابتة. */
  .reports-tab-ui .reports-ad-cell,
  .reports-tab-ui .reports-reason-cell,
  .reports-tab-ui .reports-details-cell,
  .reports-tab-ui .reports-reporter-cell,
  .reports-tab-ui .reports-owner-cell,
  .reports-tab-ui .reports-date-cell{
    grid-column:1/-1!important;
    display:grid!important;
    width:100%!important;
    margin:0!important;
    padding:9px 0!important;
    direction:ltr!important;
    grid-template-columns:minmax(0,1fr) 96px!important;
    align-items:start!important;
    column-gap:12px!important;
    text-align:right!important;
  }

  .reports-tab-ui .reports-ad-cell::before,
  .reports-tab-ui .reports-reason-cell::before,
  .reports-tab-ui .reports-details-cell::before,
  .reports-tab-ui .reports-reporter-cell::before,
  .reports-tab-ui .reports-owner-cell::before,
  .reports-tab-ui .reports-date-cell::before{
    grid-column:2!important;
    direction:rtl!important;
    text-align:right!important;
  }

  .reports-tab-ui .reports-mobile-value{
    grid-column:1!important;
    justify-self:start!important;
    width:auto!important;
    max-width:100%!important;
    direction:rtl!important;
    align-items:flex-start!important;
    text-align:right!important;
  }

  .reports-tab-ui .reports-mobile-value .report-details-text,
  .reports-tab-ui .reports-mobile-value .report-reporter-main,
  .reports-tab-ui .reports-mobile-value .report-owner-main,
  .reports-tab-ui .reports-mobile-value small{
    width:auto!important;
    max-width:100%!important;
    text-align:right!important;
  }

  .reports-tab-ui .reports-ad-cell{grid-row:2!important;}
  .reports-tab-ui .reports-reason-cell{grid-row:3!important;}
  .reports-tab-ui .reports-details-cell{grid-row:4!important;}
  .reports-tab-ui .reports-reporter-cell{grid-row:5!important;}
  .reports-tab-ui .reports-owner-cell{grid-row:6!important;}
  .reports-tab-ui .reports-date-cell{
    grid-column:1/-1!important;
    grid-row:7!important;
    border-bottom:0!important;
  }
}



@media (max-width:1100px){
  /* تثبيت محاذاة صفوف بطاقة البلاغ: العنوان يمين والقيمة مقابله يسار على نفس السطر. */
  .reports-tab-ui .reports-ad-cell,
  .reports-tab-ui .reports-reason-cell,
  .reports-tab-ui .reports-details-cell,
  .reports-tab-ui .reports-reporter-cell,
  .reports-tab-ui .reports-owner-cell,
  .reports-tab-ui .reports-date-cell{
    grid-column:1/-1!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:16px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:10px 0!important;
    direction:rtl!important;
    text-align:right!important;
  }

  .reports-tab-ui .reports-details-cell{
    align-items:flex-start!important;
  }

  .reports-tab-ui .reports-ad-cell::before,
  .reports-tab-ui .reports-reason-cell::before,
  .reports-tab-ui .reports-details-cell::before,
  .reports-tab-ui .reports-reporter-cell::before,
  .reports-tab-ui .reports-owner-cell::before,
  .reports-tab-ui .reports-date-cell::before{
    flex:0 0 92px!important;
    width:92px!important;
    margin:0!important;
    padding:0!important;
    direction:rtl!important;
    text-align:right!important;
    line-height:1.55!important;
  }

  .reports-tab-ui .reports-mobile-value{
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:calc(100% - 108px)!important;
    width:auto!important;
    margin:0!important;
    display:block!important;
    direction:rtl!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  .reports-tab-ui .reports-mobile-value .report-details-text,
  .reports-tab-ui .reports-mobile-value .report-reporter-main,
  .reports-tab-ui .reports-mobile-value .report-owner-main,
  .reports-tab-ui .reports-mobile-value small{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    text-align:left!important;
  }

  .reports-tab-ui .reports-mobile-value small{
    margin-top:3px!important;
  }

  .reports-tab-ui .reports-date-cell .reports-mobile-value{
    line-height:1.55!important;
  }

  .reports-tab-ui .reports-date-cell .reports-mobile-value span{
    display:inline-block!important;
    margin-top:2px!important;
  }
}



@media (max-width:1100px){
  /* بعد حذف الوقت: نحافظ على ارتفاع مريح للصف ونبعد آخر محتوى عن الحد السفلي للبطاقة. */
  .reports-tab-ui .reports-row,
  .reports-tab-ui.reports-readonly .reports-row{
    padding-bottom:16px!important;
  }

  .reports-tab-ui .reports-date-cell{
    min-height:40px!important;
    padding-top:10px!important;
    padding-bottom:12px!important;
    align-items:center!important;
  }

  .reports-tab-ui .reports-date-cell .reports-mobile-value{
    line-height:1.55!important;
  }
}



@media (max-width:1100px){
  /* توحيد ارتفاع الصف الأول في بطاقة البلاغ ومحاذاة عناصره رأسياً. */
  .reports-tab-ui .reports-actions-cell,
  .reports-tab-ui .reports-status-cell,
  .reports-tab-ui .reports-id-cell,
  .reports-tab-ui .reports-select-cell{
    min-height:44px!important;
    height:44px!important;
    align-self:center!important;
    display:flex!important;
    align-items:center!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }

  .reports-tab-ui .reports-actions-cell,
  .reports-tab-ui .reports-status-cell{
    justify-content:flex-start!important;
  }

  .reports-tab-ui .reports-id-cell,
  .reports-tab-ui .reports-select-cell{
    justify-content:flex-end!important;
  }
}











@media (min-width:721px) and (max-width:1100px){
  /* الإجراءات الجماعية في صف واحد على التابلت بدل صفين. */
  .reports-tab-ui .reports-bulk-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .reports-tab-ui .reports-bulk-action-btn:last-child{
    grid-column:auto!important;
  }
}



@media (max-width:720px){
  /* إعادة ضبط فلاتر البلاغات لتملأ عرض الجوال فعلياً */
  #tabContent .reports-tab-ui .reports-filter-bar.sadaa-tablet-filter-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
  }

  /* إلغاء grid-column:1 العام الذي كان يجمع كل الأزرار في نصف واحد */
  #tabContent .reports-tab-ui .reports-filter-bar > .reports-filter{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:34px!important;
    padding:6px 6px!important;
    gap:4px!important;
    border-radius:7px!important;
    font-size:11.5px!important;
    line-height:1.3!important;
    white-space:nowrap!important;
  }

  #tabContent .reports-tab-ui .reports-filter-bar > .reports-filter:nth-of-type(5){
    grid-column:1 / -1!important;
  }

  #tabContent .reports-tab-ui .reports-filter span{
    min-width:19px!important;
    min-height:19px!important;
    padding:1px 5px!important;
    font-size:10.5px!important;
  }

  #tabContent .reports-tab-ui .reports-bulk-toolbar{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    margin:2px 0 0!important;
    padding:7px 0 0!important;
  }

  #tabContent .reports-tab-ui .reports-bulk-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
  }

  #tabContent .reports-tab-ui .reports-bulk-action-btn{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:34px!important;
    padding:6px!important;
    font-size:11.5px!important;
  }

  #tabContent .reports-tab-ui .reports-bulk-action-btn:last-child{
    grid-column:1 / -1!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_REPORTS_2026_10_04 */

@media (min-width:1101px){
  .reports-tab-ui .reports-table-shell,
  .reports-tab-ui .reports-list-card{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }
}




@media (min-width:1101px){
  #tabContent .reports-tab-ui .reports-table-shell{
    display:contents!important;
  }
  #tabContent .reports-tab-ui .reports-list-card{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
}





/* ---- V103: tab_finance.php ---- */
/*
 * تقرير الطلبات — طبقة محلية خفيفة.
 * الأزرار، الحقول، البطاقات، الحالات، الترقيم وحالة الفراغ تأتي من Design System المركزي.
 * يبقى هنا فقط توزيع التقرير، جدول الجوال، وتقويم Flatpickr الخاص بالتقرير.
 */
.finance-tab,
.finance-tab *{box-sizing:border-box}
.finance-tab{direction:rtl;color:var(--sadaa-text,#111827);font-family:var(--site-font-family,Tahoma,Arial,sans-serif)}
.finance-tab a,.finance-tab button,.finance-tab input,.finance-tab select{font-family:inherit}

/* رأس التقرير: الهوية فقط، أما الهيكل فمن sadaa-page-header */
.finance-tab .finance-head{
    background:var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
}
.finance-tab .finance-head::before,
.finance-tab .finance-head::after{
    content:"";position:absolute;border-radius:50%;pointer-events:none
}
.finance-tab .finance-head::before{width:118px;height:118px;left:-36px;top:-46px;background:rgba(255,255,255,.14)}
.finance-tab .finance-head::after{width:86px;height:86px;right:34%;bottom:-44px;background:rgba(255,255,255,.12)}
.finance-tab .finance-head .sadaa-page-header__inner{position:relative;z-index:1}

/* المسافات بين أقسام التقرير */
.finance-tab .finance-filter-card,
.finance-tab .finance-selected-card,
.finance-tab .finance-table-card{margin-bottom:14px}

/* رؤوس البطاقات الداخلية */
.finance-tab .finance-card-head{
    display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
    margin:-14px -14px 10px;padding:10px 14px;min-height:44px;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
    border-radius:8px 8px 0 0;background:var(--sadaa-admin-soft,#f8fafc)
}
.finance-tab .finance-section-title{display:inline-flex;align-items:center;gap:8px;margin:0;color:var(--sadaa-admin-text,#111827);font-size:14px;font-weight:600}
.finance-tab .finance-section-title i{
    width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;
    border:1px solid var(--sadaa-admin-soft-line,#dbe7ef);border-radius:7px;background:#fff;color:var(--sadaa-admin-primary)
}
.finance-tab .finance-list-count{display:inline-flex;align-items:center;gap:6px;color:var(--sadaa-muted,#6b7280);font-size:12.5px}

/* فلاتر التقرير: التخطيط فقط، الحقول والأزرار مركزية */
.finance-tab .finance-filter-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end}
.finance-tab .finance-field{grid-column:span 2}
.finance-tab .finance-field.search-field{grid-column:span 4}
.finance-tab .finance-filter-actions{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-self:end;min-width:0}
.finance-tab .finance-filter-actions .sadaa-btn{width:100%;min-width:0}
.finance-tab .finance-select-shell{display:block}

/* بطاقات الإجماليات */
.finance-tab .finance-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px}
.finance-tab .finance-summary-card{
    min-height:92px;display:flex;align-items:center;gap:12px;padding:14px 15px;
    border-color:var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb));
}
.finance-tab .finance-summary-card::before{
    content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:3px;background:var(--sadaa-admin-primary)
}
.finance-tab .finance-summary-icon{
    width:38px;height:38px;flex:0 0 38px;display:inline-flex;align-items:center;justify-content:center;
    border:1px solid var(--sadaa-admin-soft-line,#dbe7ef);border-radius:8px;background:var(--sadaa-admin-soft,#eef7fb);
    color:var(--sadaa-admin-primary);font-size:14px
}
.finance-tab .finance-summary-label{display:block;margin-bottom:5px;color:#64748b;font-size:12px;line-height:1.5}
.finance-tab .finance-summary-value{display:block;color:var(--sadaa-admin-dark);font-size:19px;font-weight:600;line-height:1.35}

/* إجماليات الطلبات المحددة */
.finance-tab .finance-selected-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--sadaa-surface-alt,#fbfdfe)}
.finance-tab .finance-selected-title{display:inline-flex;align-items:center;gap:8px;color:var(--sadaa-text,#111827);font-size:14px;font-weight:500}
.finance-tab .finance-selected-title i{color:var(--sadaa-admin-primary)}
.finance-tab .finance-selected-stats{display:flex;gap:8px;flex-wrap:wrap}
.finance-tab .finance-selected-pill{padding:7px 10px;border:1px solid var(--sadaa-line,#e5e7eb);border-radius:7px;background:#fff;color:var(--sadaa-text-2,#374151);font-size:13px}
.finance-tab .finance-selected-pill b{color:var(--sadaa-text,#111827)}

/* جدول التقرير */
.finance-tab .finance-table-wrap{width:100%;overflow:auto}
.finance-tab .finance-orders-table{min-width:1034px;table-layout:auto}
.finance-tab .finance-orders-table th,
.finance-tab .finance-orders-table td{white-space:nowrap}
.finance-tab .finance-orders-table tbody tr.selected{background:var(--sadaa-admin-soft,#f4f9fc)}
.finance-tab input[type="checkbox"]{width:16px;height:16px;accent-color:var(--sadaa-admin-primary);cursor:pointer}
.finance-tab .finance-order-main,.finance-tab .finance-date-stack{display:flex;flex-direction:column;gap:3px;align-items:center}
.finance-tab .finance-order-main strong,.finance-tab .finance-date-stack strong{color:var(--sadaa-text,#111827);font-size:13px;font-weight:500}
.finance-tab .finance-order-main span,.finance-tab .finance-date-stack span{color:var(--sadaa-muted,#6b7280);font-size:12px}
.finance-tab .finance-orders-table .sadaa-status{min-width:72px}
.finance-tab .finance-empty{padding:0}

/* تقويم فلاتر التقرير */
.finance-date-wrapper{position:relative;display:block;cursor:pointer}
.finance-date-wrapper .finance-date-input{padding-left:44px;caret-color:var(--sadaa-admin-primary);cursor:pointer}
.finance-date-wrapper .finance-date-icon{
    position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#747b8a;font-size:14px;
    pointer-events:none;transition:color .15s ease
}
.finance-date-wrapper:hover .finance-date-input{border-color:var(--sadaa-line-3,#cbd5e1)}
.finance-date-wrapper.is-calendar-open .finance-date-input,
.finance-date-wrapper .finance-date-input:focus{border-color:var(--sadaa-admin-primary);background:#fff;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb),.13)}
.finance-date-wrapper.is-calendar-open .finance-date-icon{color:var(--sadaa-admin-primary)}

body .flatpickr-calendar.sadaa-finance-calendar,
body .flatpickr-calendar.sadaa-finance-calendar *{box-sizing:border-box;font-family:var(--site-font-family)!important}
body .flatpickr-calendar.sadaa-finance-calendar{
    width:326px;direction:rtl;overflow:hidden;margin-top:8px;padding:0;background:#fff!important;
    border:1px solid #e5e7eb;border-radius:9px;box-shadow:0 22px 55px rgba(17,24,39,.16);color:#111827;z-index:99999
}
body .flatpickr-calendar.sadaa-finance-calendar::before,
body .flatpickr-calendar.sadaa-finance-calendar::after{display:none}
body .flatpickr-calendar.sadaa-finance-calendar.open{animation:sadaaFinanceCalendarOpen .17s ease-out both}
@keyframes sadaaFinanceCalendarOpen{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-months{
    position:relative;min-height:58px;align-items:center;padding:9px 44px;background:var(--sadaa-admin-brand-gradient)!important;color:#fff!important;border:0!important
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-month{height:40px;color:#fff;fill:#fff;overflow:visible;background:transparent!important;border:0!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month{
    position:static;width:100%;height:40px;padding:0;display:flex;align-items:center;justify-content:center;gap:7px;
    color:#fff;font-size:15px;line-height:1;font-weight:500;background:transparent!important;border:0!important
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .cur-month{margin:0;color:#fff!important;font-weight:500;background:transparent!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus{
    min-width:102px;height:32px;min-height:32px;margin:0;padding:0 10px 0 28px;border:1px solid rgba(255,255,255,.22);
    border-radius:6px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.10));color:#fff!important;
    font-family:var(--site-font-family);font-size:15px;font-weight:500;line-height:30px;appearance:none;-webkit-appearance:none;-moz-appearance:none;
    box-shadow:none;outline:none;cursor:pointer;text-align:center;text-align-last:center
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option{color:#374151!important;background:#fff!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:checked,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:hover{color:#111827!important;background:var(--sadaa-admin-soft)!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month .numInputWrapper{width:66px;height:32px;background:transparent!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month input.cur-year{
    width:100%;height:32px;min-height:32px;padding:0 7px;color:#fff!important;background:rgba(255,255,255,.13)!important;
    border:1px solid rgba(255,255,255,.22)!important;border-radius:6px;font-family:var(--site-font-family);font-size:14px;font-weight:400;text-align:center;box-shadow:none!important
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month input.cur-year:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-current-month input.cur-year:focus{background:rgba(255,255,255,.20)!important;border-color:rgba(255,255,255,.38)!important;box-shadow:none!important}
body .flatpickr-calendar.sadaa-finance-calendar .numInputWrapper span{display:none}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month{
    position:absolute!important;top:9px!important;width:34px;height:34px;margin:0!important;padding:8px;display:inline-flex;align-items:center;justify-content:center;
    border:1px solid rgba(255,255,255,.20)!important;border-radius:7px;background:rgba(255,255,255,.11)!important;color:#fff!important;fill:#fff!important;z-index:5
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month{left:9px!important;right:auto!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month{right:9px!important;left:auto!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month:hover{background:rgba(255,255,255,.21)!important;border-color:rgba(255,255,255,.34)!important}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month svg,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month svg{display:none}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month::before,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month::before{display:block;font-size:22px;line-height:1;font-weight:500;color:currentColor;transform:translateY(-1px)}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month::before{content:"›"}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month::before{content:"‹"}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-rContainer{width:100%}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-weekdays{height:38px;padding:4px 14px 0!important;background:var(--sadaa-tint-3)!important;border-bottom:1px solid var(--sadaa-tint-3)}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-weekdaycontainer{width:100%;background:var(--sadaa-tint-3)!important}
body .flatpickr-calendar.sadaa-finance-calendar span.flatpickr-weekday{color:#6b7280!important;background:var(--sadaa-tint-3)!important;font-size:11px;line-height:34px;font-weight:500}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-days{width:100%!important;padding:8px 14px 10px!important}
body .flatpickr-calendar.sadaa-finance-calendar .dayContainer{
    width:100%!important;min-width:100%!important;max-width:100%!important;display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
    justify-items:center;align-items:center;gap:2px 0
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day{
    width:34px!important;max-width:34px!important;height:34px!important;line-height:34px!important;margin:0!important;
    border:1px solid transparent;border-radius:7px;color:#374151;font-size:12.5px;font-weight:400;transition:color .14s ease,background .14s ease,border-color .14s ease
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day:focus{color:var(--sadaa-admin-hover);background:var(--sadaa-tint-3);border-color:var(--sadaa-admin-line);outline:none}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.today{color:var(--sadaa-admin-hover);background:#fff;border-color:var(--sadaa-admin-primary);font-weight:500}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.today:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.today:focus{color:#fff;background:var(--sadaa-admin-primary);border-color:var(--sadaa-admin-primary)}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.selected,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.startRange,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.endRange,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.selected:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.startRange:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.endRange:hover{
    color:#fff!important;background:var(--sadaa-admin-brand-gradient)!important;border-color:transparent!important;box-shadow:0 6px 14px rgba(var(--sadaa-admin-primary-rgb),.22)
}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.prevMonthDay,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.nextMonthDay{color:#b7bdc8}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.flatpickr-disabled,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.flatpickr-disabled:hover,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.notAllowed,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day.notAllowed:hover{color:#d1d5db;background:transparent;border-color:transparent;cursor:not-allowed}
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day:focus-visible,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-prev-month:focus-visible,
body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-next-month:focus-visible{outline:2px solid rgba(var(--sadaa-admin-primary-rgb),.30);outline-offset:2px}

@media(max-width:1180px){
    .finance-tab .finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .finance-tab .finance-field{grid-column:span 3}
    .finance-tab .finance-field.search-field{grid-column:span 6}
    .finance-tab .finance-filter-actions{grid-column:span 3}
}
@media (max-width:1100px){
    .finance-tab .finance-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .finance-tab .finance-field,.finance-tab .finance-field.search-field,.finance-tab .finance-filter-actions{grid-column:span 2}
    .finance-tab .finance-selected-card{align-items:stretch}
    .finance-tab .finance-selected-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
}
@media (max-width:1100px){
    .finance-tab .finance-head .sadaa-page-header__inner{align-items:flex-start;flex-direction:column}
    .finance-tab .finance-head .sadaa-page-header__meta{align-self:flex-start}
    .finance-tab .finance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .finance-tab .finance-summary-card{min-height:90px;padding:12px}
    .finance-tab .finance-summary-card--total{grid-column:1/-1}
    .finance-tab .finance-summary-icon{width:32px;height:32px;flex-basis:32px;font-size:12px}
    .finance-tab .finance-summary-label{font-size:11.5px}
    .finance-tab .finance-summary-value{font-size:17px}
    .finance-tab .finance-filter-grid{grid-template-columns:1fr;gap:9px}
    .finance-tab .finance-field,.finance-tab .finance-field.search-field,.finance-tab .finance-filter-actions{grid-column:1}
    .finance-tab .finance-selected-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
    .finance-tab .finance-selected-pill:last-child{grid-column:1/-1}
    .finance-tab .finance-table-wrap{overflow:visible;border:0;background:transparent}
    .finance-tab .finance-orders-table,
    .finance-tab .finance-orders-table thead,
    .finance-tab .finance-orders-table tbody,
    .finance-tab .finance-orders-table th,
    .finance-tab .finance-orders-table td,
    .finance-tab .finance-orders-table tr{display:block;width:100%;min-width:0}
    .finance-tab .finance-orders-table{border-collapse:separate;border-spacing:0;background:transparent}
    .finance-tab .finance-orders-table thead{display:none}
    .finance-tab .finance-orders-table tbody{display:grid;gap:9px;background:transparent}
    .finance-tab .finance-orders-table tbody tr{display:grid;grid-template-columns:1fr;gap:0;padding:11px 12px;border:1px solid #e1e6ee;border-radius:8px;background:#fff}
    .finance-tab .finance-orders-table tbody tr:hover{background:#fff}
    .finance-tab .finance-orders-table tbody tr.selected{background:var(--sadaa-admin-soft,#f4f9fc)}
    .finance-tab .finance-orders-table tbody tr.finance-empty-row{display:block;padding:18px 12px;text-align:center}
    .finance-tab .finance-orders-table td{
        display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:38px;padding:8px 0;
        border-bottom:1px solid #f1f5f9;overflow:visible;text-overflow:clip;white-space:normal;text-align:left;font-size:14px;line-height:1.65
    }
    .finance-tab .finance-orders-table td:last-child{border-bottom:0}
    .finance-tab .finance-orders-table td::before{content:attr(data-label);flex:0 0 102px;color:#64748b;font-size:13px;font-weight:500;line-height:1.55;text-align:right}
    .finance-tab .finance-order-main,.finance-tab .finance-date-stack{align-items:flex-end;text-align:left}
    .finance-tab .finance-order-main strong,.finance-tab .finance-date-stack strong{font-size:14px}
    .finance-tab .finance-order-main span,.finance-tab .finance-date-stack span{font-size:12.5px}
    .finance-tab .finance-empty{padding:0;justify-content:center}
    .finance-tab .finance-empty::before{display:none}
    body .flatpickr-calendar.sadaa-finance-calendar{width:min(326px,calc(100vw - 24px))}
    body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-weekdays{padding-inline:12px!important}
    body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-days{padding:8px 12px 10px!important}
    body .flatpickr-calendar.sadaa-finance-calendar .flatpickr-day{width:32px!important;max-width:32px!important;height:32px!important;line-height:32px!important}
}
@media(max-width:420px){
    .finance-tab .finance-summary-icon{display:none}
    .finance-tab .finance-orders-table td{font-size:13.5px}
    .finance-tab .finance-orders-table td::before{flex-basis:96px;font-size:12.5px}
}



@media (max-width:1100px){
  .finance-tab .finance-orders-table tbody tr:not(.finance-empty-row){
    grid-template-columns:auto minmax(0,1fr);
    column-gap:8px;
  }
  .finance-tab .finance-orders-table tbody tr:not(.finance-empty-row) > td{
    grid-column:1/-1;
  }
  .finance-tab .finance-orders-table td[data-label="تحديد"]{
    grid-column:1!important;
    grid-row:1;
    width:auto;
    min-height:34px;
    padding:0 0 7px;
    border-bottom:0;
    justify-content:flex-start;
  }
  .finance-tab .finance-orders-table td[data-label="تحديد"]::before{
    display:none;
  }
  .finance-tab .finance-orders-table td[data-label="تحديد"] input[type="checkbox"]{
    display:block;
    margin:0;
  }
  .finance-tab .finance-orders-table td[data-label="الحالة"]{
    grid-column:2!important;
    grid-row:1;
    width:auto;
    min-height:34px;
    padding:0 0 7px;
    border-bottom:0;
    justify-content:flex-end;
  }
  .finance-tab .finance-orders-table td[data-label="الحالة"]::before{
    display:none;
  }
  .finance-tab .finance-orders-table td[data-label="الطلب"]{
    grid-column:1/-1!important;
    grid-row:2;
    margin-top:2px;
    padding-top:9px;
    border-top:1px solid #f1f5f9;
  }
  .finance-tab .finance-order-main span{
    display:none;
  }
  .finance-tab .finance-orders-table td[data-label="الحالة"] .sadaa-status{
    width:max-content;
    max-width:100%;
    white-space:nowrap;
  }
}







@media (min-width:721px) and (max-width:1100px){
  .finance-tab .finance-card-head{display:none!important}
  .finance-tab .finance-filter-grid{display:block!important}
  .finance-tab .finance-tablet-disclosure{display:block;border:1px solid var(--sadaa-admin-line);border-radius:8px;background:#fff;padding:10px;margin:0 0 9px}
  .finance-tab .finance-tablet-disclosure:last-of-type{margin-bottom:0}
}



@media (min-width:721px) and (max-width:1100px){
  /* إزالة الحاوية الخارجية بصرياً والإبقاء على منطقتي البحث والفلاتر فقط. */
  .finance-tab .finance-filter-card{
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* البحث: حقل مرن، والأزرار بجانبه وعلى نفس السطر. */
  .finance-tab .finance-search-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:8px!important;
    width:100%!important;
  }
  .finance-tab .finance-search-row .finance-field.search-field{
    grid-column:auto!important;
    min-width:0!important;
  }
  .finance-tab .finance-search-row .finance-filter-actions{
    grid-column:auto!important;
    align-self:end!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(88px,auto))!important;
    gap:7px!important;
    width:auto!important;
  }
  .finance-tab .finance-search-row .finance-filter-actions .sadaa-btn{
    width:auto!important;
    min-width:88px!important;
  }

  /* فلاتر التقرير: الحقول الثلاثة في صف واحد. */
  .finance-tab .finance-date-filter-row{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:end!important;
  }
  .finance-tab .finance-date-filter-row > .finance-field{
    grid-column:auto!important;
    min-width:0!important;
  }
}



@media (max-width:720px){
  /* قائمة الطلبات + البطاقات = حاوية واحدة */
  #tabContent .finance-tab .finance-table-card.sadaa-admin-card{
    display:block!important;
    width:100%!important;
    margin:0 0 10px!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc))!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }

  #tabContent .finance-tab .finance-table-card > .finance-card-head{
    width:100%!important;
    min-height:44px!important;
    margin:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-bottom:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:0!important;
    background:var(--sadaa-surface,#fff)!important;
  }

  #tabContent .finance-tab .finance-table-card > .finance-table-wrap.sadaa-tablet-records-shell{
    width:100%!important;
    margin:0!important;
    padding:8px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  #tabContent .finance-tab .finance-table-card .finance-orders-table tbody.sadaa-tablet-records-stack{
    gap:8px!important;
  }

  #tabContent .finance-tab .finance-table-card .finance-pagination{
    margin:8px 0 0!important;
    padding:8px 0 0!important;
    border-top:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_FINANCE_2026_10_04 */

@media (min-width:1101px){
  .finance-tab-ui .finance-table-card,
  .finance-table-card,
  .finance-table-wrap{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .finance-table-card{padding:0!important;}
  .finance-table-wrap{padding:0!important;}
}




@media (min-width:1101px){
  #tabContent .finance-tab .finance-table-card{
    display:contents!important;
  }
  #tabContent .finance-tab .finance-table-card > .finance-card-head{
    width:100%!important;
    min-height:44px!important;
    margin:0 0 8px!important;
    padding:9px 12px!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-admin-soft,var(--sadaa-surface-alt,#f8fafc))!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
  }
  #tabContent .finance-tab .finance-table-wrap{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:auto!important;
    box-sizing:border-box!important;
  }
  #tabContent .finance-tab .finance-orders-table{
    width:100%!important;
    margin:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
  }
}





/* ---- V103: tab_newsletter.php ---- */
.newsletter-admin,
.newsletter-admin *{box-sizing:border-box}
.newsletter-admin{direction:rtl;color:#1f2937}
/* لا نفرض وزن الخط على أيقونات Font Awesome؛ الـ solid يحتاج وزنه الأصلي. */
.newsletter-admin i.fa-solid{font-weight:900!important}
.newsletter-admin i.fa-regular{font-weight:400!important}
.newsletter-admin-hero{position:relative;overflow:hidden;padding:22px 24px;margin-bottom:12px;border-radius:10px;background:var(--sadaa-admin-brand-gradient);color:#fff}
.newsletter-admin-hero:before,.newsletter-admin-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.11)}
.newsletter-admin-hero:before{width:180px;height:180px;left:-70px;top:-100px}
.newsletter-admin-hero:after{width:110px;height:110px;right:70px;bottom:-65px}
.newsletter-admin-hero-content{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.newsletter-admin-title{display:flex;align-items:center;gap:12px}
.newsletter-admin-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.25);border-radius:9px;font-size:20px}
.newsletter-admin h1{margin:0;font-size:21px;color:#fff}.newsletter-admin-hero p{margin:5px 0 0;color:rgba(255,255,255,.85);font-size:13px}
.newsletter-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}
.newsletter-stat{padding:13px;background:#fff;border:1px solid #e5e7eb;border-radius:8px}
.newsletter-stat-label{font-size:12px;color:#6b7280;margin-bottom:5px}.newsletter-stat-value{font-size:20px;color:#111827}
.newsletter-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:12px}
.newsletter-filters{display:flex;gap:6px;flex-wrap:wrap}.newsletter-filter{padding:7px 10px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#4b5563;text-decoration:none;font-size:12px}.newsletter-filter.active{background:var(--sadaa-tint-2);color:var(--sadaa-admin-primary);border-color:#d7e8f5}
.newsletter-search{display:grid;grid-template-columns:minmax(220px,360px) auto;align-items:center;gap:8px;min-width:min(100%,440px);margin:0;padding:0}.newsletter-search-field{min-width:0}.newsletter-search button{white-space:nowrap}
.newsletter-table-wrap{overflow-x:auto}.newsletter-table{min-width:900px}.newsletter-table th,.newsletter-table td{font-size:12px}
.newsletter-email-cell{direction:ltr;text-align:left!important}.newsletter-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 9px;border-radius:999px;border:1px solid transparent;font-size:11px}.newsletter-admin .is-active{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}.newsletter-admin .is-pending{background:#fffbeb;color:#a16207;border-color:#fde68a}.newsletter-admin .is-unsubscribed{background:#f3f4f6;color:#4b5563;border-color:#d1d5db}
.newsletter-empty{padding:30px;text-align:center;color:#6b7280}
.newsletter-note{margin-top:12px;padding:11px 12px;border:1px solid #e5e7eb;border-radius:7px;background:#fafafa;color:#6b7280;font-size:12px;line-height:1.8}
@media (max-width:1100px){.newsletter-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.newsletter-admin-hero{padding:18px}.newsletter-tools{align-items:stretch;padding:10px}.newsletter-search{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) auto}.newsletter-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:7px}.newsletter-filter{text-align:center}.newsletter-admin-title{align-items:flex-start}}
@media(max-width:480px){.newsletter-search{grid-template-columns:1fr}.newsletter-search .sadaa-btn{width:100%}.newsletter-admin-stats{grid-template-columns:1fr 1fr}}



/* صدى المتاجر — الهوية البصرية الجديدة للوحة التحكم */
:root{
  --sadaa-admin-blue:var(--sadaa-admin-primary);
  --sadaa-admin-blue-hover:var(--sadaa-admin-hover);
  --sadaa-admin-blue-soft:var(--sadaa-admin-soft);
  --sadaa-admin-white:#fff;
  --sadaa-admin-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .055);
}




.newsletter-admin{color:var(--sadaa-admin-text);font-family:inherit!important}
.newsletter-admin .newsletter-admin-hero{position:relative;overflow:hidden;background:var(--sadaa-admin-hero-gradient)!important;border:0!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .09)!important;padding:22px 24px!important;color:#fff!important}
.newsletter-admin .newsletter-admin-hero::before{width:160px!important;height:160px!important;left:-72px!important;top:-92px!important;background:transparent!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 0 0 30px rgba(255,255,255,.045),0 0 0 60px rgba(255,255,255,.025)!important}.newsletter-admin .newsletter-admin-hero::after{width:96px!important;height:96px!important;right:-35px!important;bottom:-52px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.11)!important}
.newsletter-admin .newsletter-admin-icon{border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;border-radius:7px!important}.newsletter-admin .newsletter-admin h1{font-size:20px!important;font-weight:500!important}.newsletter-admin .newsletter-admin-hero p{color:rgba(255,255,255,.78)!important}
.newsletter-admin .newsletter-stat,.newsletter-admin .newsletter-tools,.newsletter-admin .newsletter-table-wrap{border:1px solid var(--sadaa-admin-line)!important;border-radius:8px!important;box-shadow:var(--sadaa-admin-shadow)!important;background:#fff!important}.newsletter-admin .newsletter-stat-value{color:var(--sadaa-admin-dark)!important}.newsletter-admin .newsletter-filter.active{background:var(--sadaa-admin-blue-soft)!important;color:var(--sadaa-admin-dark)!important;border-color:var(--sadaa-admin-soft-line)!important}.newsletter-admin .newsletter-search input:focus{border-color:var(--sadaa-admin-blue)!important;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10)!important;outline:0}.newsletter-admin .newsletter-search button{background:var(--sadaa-admin-blue)!important;border-radius:7px!important}.newsletter-admin .newsletter-search button:hover{background:var(--sadaa-admin-blue-hover)!important}.newsletter-admin .newsletter-table th{background:var(--sadaa-admin-soft)!important;color:#466177!important;font-weight:500!important}.newsletter-admin .newsletter-table tbody tr:hover{background:#fbfdff!important}
@media (max-width:1100px){.newsletter-admin .newsletter-admin-hero{padding:18px!important}}




@media (max-width:1100px){
  .newsletter-admin .newsletter-table-wrap{
    overflow:visible;
    padding:8px;
    background:#fafafa!important;
  }
  .newsletter-admin .newsletter-table,
  .newsletter-admin .newsletter-table tbody,
  .newsletter-admin .newsletter-table tr,
  .newsletter-admin .newsletter-table td{
    display:block;
    width:100%;
    min-width:0;
  }
  .newsletter-admin .newsletter-table{
    min-width:0;
    border:0;
    background:transparent;
  }
  .newsletter-admin .newsletter-table thead{
    display:none;
  }
  .newsletter-admin .newsletter-table tbody{
    display:grid;
    gap:10px;
    background:transparent;
  }
  .newsletter-admin .newsletter-table tbody tr{
    padding:10px 12px;
    border:1px solid #e5e7eb;
    border-top:2px solid var(--sadaa-admin-primary);
    border-radius:8px;
    background:#fff;
    overflow:hidden;
  }
  .newsletter-admin .newsletter-table tbody tr:hover{
    background:#fff!important;
  }
  .newsletter-admin .newsletter-table td{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:36px;
    padding:7px 0;
    border:0;
    border-bottom:1px solid #eef0f3;
    white-space:normal;
    text-align:left!important;
    font-size:13px;
  }
  .newsletter-admin .newsletter-table td:last-child{
    border-bottom:0;
  }
  .newsletter-admin .newsletter-table td::before{
    content:attr(data-label);
    flex:0 0 104px;
    color:#7b8492;
    font-size:12px;
    text-align:right;
  }
  .newsletter-admin .newsletter-email-cell{
    direction:rtl;
  }
  .newsletter-admin .newsletter-email-cell::after{
    content:none;
  }
  .newsletter-admin .newsletter-email-cell{
    unicode-bidi:normal;
  }
  .newsletter-admin .newsletter-email-cell{
    word-break:break-word;
  }
  .newsletter-admin .newsletter-email-value{
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
  }
  .newsletter-admin .newsletter-badge{
    flex:0 0 auto;
    white-space:nowrap;
  }
}







@media (min-width:721px) and (max-width:1100px){
  .newsletter-admin .newsletter-tools{display:block!important}
}



@media (min-width:721px) and (max-width:1100px){
  .newsletter-admin .newsletter-admin-stats{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .newsletter-admin .newsletter-stat{
    min-width:0!important;
    padding:11px 10px!important;
  }
  .newsletter-admin .newsletter-stat-label{
    font-size:11.5px!important;
    line-height:1.55!important;
  }
  .newsletter-admin .newsletter-stat-value{
    font-size:18px!important;
  }
}



@media (max-width:720px){
  /* حقل البحث وزر البحث بجانب بعض */
  #tabContent .newsletter-admin .newsletter-search.sadaa-tablet-search-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 92px!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    align-items:center!important;
  }
  #tabContent .newsletter-admin .newsletter-search .newsletter-search-field,
  #tabContent .newsletter-admin .newsletter-search .sadaa-tablet-search-field{
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  #tabContent .newsletter-admin .newsletter-search > button{
    grid-column:auto!important;
    grid-row:auto!important;
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    min-height:40px!important;
    height:40px!important;
    margin:0!important;
    padding:7px 8px!important;
    white-space:nowrap!important;
  }
}
@media (max-width:360px){
  #tabContent .newsletter-admin .newsletter-search.sadaa-tablet-search-row{
    grid-template-columns:minmax(0,1fr) 82px!important;
  }
  #tabContent .newsletter-admin .newsletter-search > button{
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_NEWSLETTER_2026_10_04 */

@media (min-width:1101px){
  .newsletter-admin-ui .newsletter-table-wrap,
  .newsletter-table-wrap{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    padding:0!important;
  }
}




@media (min-width:1101px){
  #tabContent .newsletter-admin .newsletter-table-wrap{
    display:contents!important;
  }
  #tabContent .newsletter-admin .newsletter-table{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
}





/* ---- V103: tab_store_directory.php ---- */
.directory-tab-soft,
.directory-tab-soft * {
  box-sizing: border-box;
}

.directory-tab-soft {
  direction: rtl;
  color: #1f2937;
  font-family: var(--site-font-family);
}

.directory-tab-soft a,
.directory-tab-soft button,
.directory-tab-soft input,
.directory-tab-soft select,
.directory-tab-soft textarea {
  font-family: var(--site-font-family);
}

/* ===== رأس الصفحة : مطابق لتبويب المستخدمين ===== */
.directory-tab-soft .directory-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.24) 0, rgba(255, 255, 255, 0.24) 72px, transparent 74px),
    radial-gradient(circle at 78% 110%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 92px, transparent 94px),
    var(--sadaa-admin-hero-gradient);
  border: 0;
  border-radius: 8px;
}

.directory-tab-soft .directory-page-header::before,
.directory-tab-soft .directory-page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.directory-tab-soft .directory-page-header::before {
  width: 118px;
  height: 118px;
  left: -36px;
  top: -46px;
  background: rgba(255, 255, 255, 0.14);
}

.directory-tab-soft .directory-page-header::after {
  width: 86px;
  height: 86px;
  right: 34%;
  bottom: -44px;
  background: rgba(255, 255, 255, 0.12);
}

.directory-tab-soft .directory-page-title,
.directory-tab-soft .directory-page-meta,
.directory-tab-soft .directory-page-actions {
  position: relative;
  z-index: 1;
}

.directory-tab-soft .directory-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.directory-tab-soft .directory-page-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 16px;
}

.directory-tab-soft .directory-page-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: #ffffff;
}

.directory-tab-soft .directory-page-title p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.8;
}

.directory-tab-soft .directory-page-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-tab-soft .directory-header-add-btn {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 7px;
  background: rgba(255,255,255,.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}

.directory-tab-soft .directory-header-add-btn:hover { background: rgba(255,255,255,.22); }

.directory-tab-soft .directory-page-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

/* ===== إطارات المحتوى : نفس إطار تبويب المستخدمين ===== */
.directory-tab-soft .directory-panel,
.directory-tab-soft .directory-table-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.directory-tab-soft .directory-table-panel {
  margin-top: 12px;
}

.directory-tab-soft .directory-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
}

.directory-tab-soft .directory-section:last-child {
  margin-bottom: 0;
}


/* ===== تجميع الأقسام المرتبطة داخل صندوق واحد ===== */
.directory-tab-soft .directory-combined-section {
  padding: 0;
  overflow: hidden;
}

.directory-tab-soft .directory-combined-section .directory-subsection {
  padding: 14px;
  background: #ffffff;
}

.directory-tab-soft .directory-combined-section .directory-subsection + .directory-subsection {
  border-top: 1px solid #e5e7eb;
}

.directory-tab-soft .directory-admin-settings-section {
  margin-bottom: 12px;
}

.directory-tab-soft .directory-search-filter-section {
  margin-bottom: 0;
}

.directory-tab-soft .directory-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.directory-tab-soft .directory-section-title i {
  color: #6b7280;
}

.directory-tab-soft .directory-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px 12px;
  color: var(--sadaa-admin-dark);
  border: 1px solid var(--sadaa-admin-soft-line);
  border-radius: 8px;
  background: var(--sadaa-admin-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== إعدادات ظهور عناصر الدليل ===== */
.directory-tab-soft .directory-display-settings-form {
  display: grid;
  gap: 12px;
}

.directory-tab-soft .directory-display-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.directory-tab-soft .directory-display-setting {
  min-width: 0;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--sadaa-admin-soft-line);
  border-radius: 8px;
  background: var(--sadaa-admin-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.directory-tab-soft .directory-display-setting-copy {
  min-width: 0;
}

.directory-tab-soft .directory-display-setting-title {
  display: block;
  margin-bottom: 4px;
  color: var(--sadaa-admin-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.directory-tab-soft .directory-display-setting-note {
  display: block;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.75;
}

.directory-tab-soft .directory-setting-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  cursor: pointer;
}

.directory-tab-soft .directory-setting-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.directory-tab-soft .directory-setting-switch-track {
  position: absolute;
  inset: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background .18s ease, border-color .18s ease;
}

.directory-tab-soft .directory-setting-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .20);
  transition: transform .18s ease;
}

.directory-tab-soft .directory-setting-switch input:checked + .directory-setting-switch-track {
  background: #111827;
  border-color: #111827;
}

.directory-tab-soft .directory-setting-switch input:checked + .directory-setting-switch-track::after {
  transform: translateX(-18px);
}

.directory-tab-soft .directory-setting-switch input:focus-visible + .directory-setting-switch-track {
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .10);
}

.directory-tab-soft .directory-display-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.directory-tab-soft .directory-display-settings-actions .directory-btn {
  min-height: 38px;
  padding: 8px 13px;
}

@media (max-width:1100px) {
  .directory-tab-soft .directory-display-settings-grid {
    grid-template-columns: 1fr;
  }

  .directory-tab-soft .directory-display-setting {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .directory-tab-soft .directory-display-settings-actions .directory-btn {
    width: 100%;
  }
}

/* ===== البحث : مطابق لتبويب المستخدمين ===== */
.directory-tab-soft .directory-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.directory-tab-soft .directory-search-field {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.directory-tab-soft .directory-search-field i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}

.directory-tab-soft .directory-search-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.directory-tab-soft .directory-search-field input:focus,
.directory-tab-soft .directory-filter-select:focus,
.directory-tab-soft .directory-form-group input:focus,
.directory-tab-soft .directory-form-group select:focus,
.directory-tab-soft .directory-form-group textarea:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .06);
  outline: none;
}

.directory-tab-soft .directory-btn,
.directory-tab-soft .directory-filter-tag {
  font-size: 13px;
  font-weight: 400;
  border-radius: 7px;
  text-decoration: none;
}

.directory-tab-soft .directory-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.directory-tab-soft .directory-btn:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
}

.directory-tab-soft .directory-btn-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.directory-tab-soft .directory-btn-soft {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}

.directory-tab-soft .directory-btn-soft:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.directory-tab-soft .directory-btn-danger {
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
  background: #f8fbfd;
}

.directory-tab-soft .directory-btn-danger:hover:not(:disabled) {
  background: var(--sadaa-admin-soft);
  border-color: #a9cce8;
}

.directory-tab-soft .directory-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ===== الفلاتر : حالات الظهور تبقى يميناً والقوائم فقط يساراً ===== */
.directory-tab-soft .directory-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.directory-tab-soft .directory-filters-group,
.directory-tab-soft .directory-sort-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* مجموعة الحالات هي العنصر الأول، فتظل في اليمين ضمن اتجاه RTL. */
.directory-tab-soft .directory-filters-group {
  min-width: 0;
}

/* القائمتان المنسدلتان وزر التطبيق فقط في يسار نموذج الفلاتر. */
.directory-tab-soft .directory-sort-group {
  margin-right: auto;
}

.directory-tab-soft .directory-filter-tag {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.directory-tab-soft .directory-filter-tag:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.directory-tab-soft .directory-filter-tag.active {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  font-weight: 500;
}

.directory-tab-soft .directory-filter-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.directory-tab-soft .directory-filter-select {
  min-height: 34px;
  padding: 7px 30px 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
}

.directory-tab-soft .directory-filter-controls .directory-btn {
  min-height: 34px;
  padding: 7px 11px;
}

/* ===== شريط العمليات الجماعية ===== */
.directory-tab-soft .directory-bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}


.directory-tab-soft .directory-bulk-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  margin-left: auto;
}

.directory-tab-soft .directory-bulk-copy strong {
  color: #111827;
  font-weight: 500;
}

.directory-tab-soft .directory-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-tab-soft .directory-bulk-actions .directory-btn {
  min-height: 36px;
  padding: 8px 12px;
}

/* ===== الجدول : نفس ألوان وحدود وزوايا تبويب المستخدمين ===== */
.directory-tab-soft .directory-list-wrap {
  overflow: visible;
  background: #ffffff;
  border-radius: 8px;
}

.directory-tab-soft .directory-list {
  width: 100%;
}

.directory-tab-soft .directory-header,
.directory-tab-soft .directory-row {
  display: grid;
  grid-template-columns: 46px minmax(160px, 1.2fr) minmax(82px, .55fr) minmax(120px, .85fr) minmax(150px, 1fr) minmax(115px, .8fr) minmax(110px, .75fr) 62px;
  align-items: center;
}

.directory-tab-soft .directory-header {
  min-height: 46px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
}

.directory-tab-soft .directory-row {
  min-height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  color: #111827;
  font-size: 13px;
}

.directory-tab-soft .directory-row:hover {
  background: #fcfcfd;
}

.directory-tab-soft .directory-row:last-child {
  border-bottom: 0;
}

.directory-tab-soft .directory-row.is-rejected {
  background: #f8fbfd;
}

.directory-tab-soft .directory-cell {
  padding: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-tab-soft .directory-cell:first-child {
  text-align: center;
}

.directory-tab-soft input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111827;
  cursor: pointer;
}

.directory-tab-soft .directory-store-name-stack {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.directory-tab-soft .directory-store-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-tab-soft .directory-featured {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sadaa-admin-soft);
  border: 1px solid var(--sadaa-admin-soft-line);
  color: var(--sadaa-admin-hover);
  font-size: 11px;
}

.directory-tab-soft .directory-domain-link {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
}

.directory-tab-soft .directory-domain-link:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  color: #111827;
}

.directory-tab-soft .directory-domain-link.is-empty {
  color: #9ca3af;
  cursor: default;
}

.directory-tab-soft .directory-category,
.directory-tab-soft .directory-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 12px;
  font-weight: 400;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-tab-soft .directory-category {
  background: #f9fafb;
  color: #374151;
}

.directory-tab-soft .directory-status {
  gap: 6px;
}

.directory-tab-soft .directory-status.is-active {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.directory-tab-soft .directory-status.is-pending {
  background: var(--sadaa-admin-soft);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
}

.directory-tab-soft .directory-status.is-hidden {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.directory-tab-soft .directory-status.is-rejected {
  background: var(--sadaa-admin-soft);
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
}

.directory-tab-soft .directory-owner {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-tab-soft .directory-owner-email {
  display: block;
  margin-top: 2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #6b7280;
  font-size: 11px;
}

.directory-tab-soft .directory-date {
  color: #4b5563;
}

/* ===== قائمة الثلاث نقاط : نفس نمط المستخدمين ===== */
.directory-tab-soft .directory-actions-head,
.directory-tab-soft .directory-actions {
  text-align: center;
  overflow: visible;
}

.directory-tab-soft .directory-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.directory-tab-soft .directory-menu-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.directory-tab-soft .directory-menu-toggle:hover,
.directory-tab-soft .directory-menu-toggle.is-open {
  background: #f9fafb;
  border-color: #cbd5e1;
  color: #111827;
}

.directory-tab-soft .directory-row-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
  display: none;
  z-index: 30;
  text-align: right;
}

.directory-tab-soft .directory-row-menu.show {
  display: block;
}

.directory-tab-soft .directory-row-menu button,
.directory-tab-soft .directory-row-menu a {
  width: 100%;
  min-height: 34px;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  text-decoration: none;
}

.directory-tab-soft .directory-row-menu button:hover,
.directory-tab-soft .directory-row-menu a:hover {
  background: #f3f4f6;
  color: #111827;
}

.directory-tab-soft .directory-row-menu .menu-danger {
  color: var(--sadaa-admin-dark);
}

.directory-tab-soft .directory-row-menu .menu-danger:hover {
  background: var(--sadaa-admin-soft);
}

.directory-tab-soft .directory-menu-divider {
  height: 1px;
  margin: 5px 2px;
  background: #f1f5f9;
}

.directory-tab-soft .directory-pagination-summary {
  display: none;
}

.directory-tab-soft .directory-empty {
  display: block;
  padding: 34px 18px;
  text-align: center;
  color: #6b7280;
}

.directory-tab-soft .directory-empty i {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 20px;
  color: #9ca3af;
}

.directory-tab-soft .directory-empty h3 {
  margin: 0 0 4px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.directory-tab-soft .directory-empty p {
  margin: 0;
  font-size: 12px;
}

/* ===== نافذة التعديل ===== */
.directory-tab-soft .directory-modal-backdrop:not(.sadaa-modal) {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
}

.directory-tab-soft .directory-modal-backdrop:not(.sadaa-modal).show {
  display: flex;
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
}

.directory-tab-soft .directory-modal-head:not(.sadaa-modal__header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.directory-tab-soft .directory-modal-head:not(.sadaa-modal__header) h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 500;
}

.directory-tab-soft .directory-modal-close:not(.sadaa-modal__close) {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
}

.directory-tab-soft .directory-modal-close:not(.sadaa-modal__close):hover {
  background: #f9fafb;
  border-color: #cbd5e1;
}

.directory-tab-soft .directory-form-grid:not(.sadaa-form-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.directory-tab-soft .directory-form-group {
  min-width: 0;
}

.directory-tab-soft .directory-form-group:not(.sadaa-field).full {
  grid-column: 1 / -1;
}

.directory-tab-soft .directory-form-group:not(.sadaa-field) > label:first-child {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 400;
}

.directory-tab-soft .directory-form-group:not(.sadaa-field) input,
.directory-tab-soft .directory-form-group:not(.sadaa-field) select,
.directory-tab-soft .directory-form-group:not(.sadaa-field) textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  resize: vertical;
}

.directory-tab-soft .directory-form-group:not(.sadaa-field) textarea {
  min-height: 86px;
  line-height: 1.7;
}

.directory-tab-soft .directory-form-check:not(.sadaa-choice) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fafafa;
  color: #374151;
  font-size: 13px;
}

.directory-tab-soft .directory-form-check:not(.sadaa-choice) input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.directory-tab-soft .directory-form-hint:not(.sadaa-help) {
  display: block;
  margin-top: 6px;
  color: #7c8798;
  font-size: 11px;
  line-height: 1.75;
}

.directory-tab-soft .directory-modal-actions:not(.sadaa-modal__footer) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.directory-tab-soft .directory-modal-actions:not(.sadaa-modal__footer) .directory-btn {
  min-height: 38px;
  padding: 8px 12px;
}




@media (max-width: 1180px) {
  .directory-tab-soft .directory-list-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .directory-tab-soft .directory-list {
    min-width: 1020px;
  }

  .directory-tab-soft .directory-panel,
  .directory-tab-soft .directory-table-panel {
    padding: 14px;
  }
}

@media (max-width:1100px) {
  .directory-tab-soft .directory-page-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .directory-tab-soft .directory-page-actions {
    width: 100%;
    align-self: stretch;
    justify-content: flex-start;
    margin-top: 0;
    padding-inline-start: 54px;
  }

  .directory-tab-soft .directory-search-form {
    flex-wrap: wrap;
  }

  .directory-tab-soft .directory-search-field {
    min-width: 100%;
    flex-basis: 100%;
  }

  .directory-tab-soft .directory-search-form .directory-btn {
    flex: 1 1 140px;
  }

  .directory-tab-soft .directory-filter-row {
    align-items: flex-start;
    gap: 10px;
  }

  .directory-tab-soft .directory-filters-group,
  .directory-tab-soft .directory-sort-group {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width:1100px) {
  .directory-tab-soft {
    padding: 0;
  }

  .directory-tab-soft .directory-page-header {
    padding: 14px;
    border-radius: 8px;
    gap: 10px;
  }

  .directory-tab-soft .directory-page-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 7px;
    font-size: 14px;
  }

  .directory-tab-soft .directory-page-title {
    gap: 10px;
  }

  .directory-tab-soft .directory-page-title h2 {
    font-size: 17px;
    line-height: 1.4;
  }

  .directory-tab-soft .directory-page-title p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
  }

  .directory-tab-soft .directory-page-actions {
    width: 100%;
    justify-content: flex-start;
    padding-inline-start: 44px;
  }

  .directory-tab-soft .directory-page-meta {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 12px;
  }

  .directory-tab-soft .directory-panel,
  .directory-tab-soft .directory-table-panel {
    padding: 10px;
    border-radius: 8px;
  }

  .directory-tab-soft .directory-section {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }


  .directory-tab-soft .directory-combined-section {
    padding: 0;
  }

  .directory-tab-soft .directory-combined-section .directory-subsection {
    padding: 10px;
  }

  .directory-tab-soft .directory-section-title {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .directory-tab-soft .directory-search-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 7px;
    align-items: center;
  }

  .directory-tab-soft .directory-search-field {
    min-width: 0;
    flex-basis: auto;
  }

  .directory-tab-soft .directory-search-field input,
  .directory-tab-soft .directory-search-form .directory-btn {
    min-height: 36px;
    border-radius: 7px;
    font-size: 12px;
  }

  .directory-tab-soft .directory-search-field input {
    padding: 8px 34px 8px 10px;
  }

  .directory-tab-soft .directory-search-form .directory-btn {
    width: auto;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .directory-tab-soft .directory-filter-row {
    gap: 8px;
  }

  .directory-tab-soft .directory-filters-group,
  .directory-tab-soft .directory-sort-group {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .directory-tab-soft .directory-filter-controls {
    display: contents;
  }

  .directory-tab-soft .directory-filter-tag,
  .directory-tab-soft .directory-filter-select,
  .directory-tab-soft .directory-filter-controls .directory-btn {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 13px;
    white-space: nowrap;
  }

  .directory-tab-soft .directory-bulk-bar {
    padding: 10px;
    gap: 8px;
  }

  .directory-tab-soft .directory-bulk-copy,
  .directory-tab-soft .directory-bulk-actions {
    width: 100%;
    margin-left: 0;
  }

  .directory-tab-soft .directory-bulk-actions .directory-btn {
    flex: 1 1 120px;
  }

  /* نسخة الجوال مطابقة لبطاقات المستخدمين. */
  .directory-tab-soft .directory-list-wrap {
    overflow: visible;
    background: transparent;
  }

  .directory-tab-soft .directory-list {
    min-width: 0;
    display: grid;
    gap: 10px;
    background: transparent;
    padding: 10px;
  }

  .directory-tab-soft .directory-header {
    display: none;
  }

  .directory-tab-soft .directory-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #ffffff;
  }

  .directory-tab-soft .directory-row:hover {
    background: #ffffff;
  }

  .directory-tab-soft .directory-row.is-rejected {
    background: #f8fbfd;
  }

  .directory-tab-soft .directory-empty {
    display: block;
    padding: 18px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    text-align: center;
  }

  .directory-tab-soft .directory-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 34px;
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    text-align: left;
    font-size: 12px;
  }

  .directory-tab-soft .directory-cell:last-child {
    border-bottom: 0;
  }

  .directory-tab-soft .directory-cell::before {
    content: attr(data-label);
    flex: 0 0 95px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
    text-align: right;
  }

  .directory-tab-soft .directory-cell:first-child {
    text-align: left;
  }

  .directory-tab-soft .directory-select-cell {
    min-height: 28px;
  }

  .directory-tab-soft .directory-store-name-stack {
    justify-content: flex-end;
    min-width: 0;
  }

  .directory-tab-soft .directory-store-name {
    font-size: 12px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .directory-tab-soft .directory-featured,
  .directory-tab-soft .directory-domain-link {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    font-size: 12px;
  }

  .directory-tab-soft .directory-category,
  .directory-tab-soft .directory-status {
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 400;
  }

  .directory-tab-soft .directory-owner,
  .directory-tab-soft .directory-owner-email {
    max-width: 180px;
    text-align: left;
  }

  .directory-tab-soft .directory-actions {
    position: relative;
    justify-content: space-between;
  }

  .directory-tab-soft .directory-menu-toggle {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 7px;
  }

  .directory-tab-soft .directory-row-menu {
    left: 0;
    right: auto;
    top: 34px;
    min-width: 145px;
    border-radius: 8px;
    z-index: 50;
  }

  .directory-tab-soft .directory-row-menu button,
  .directory-tab-soft .directory-row-menu a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .directory-tab-soft .directory-modal-backdrop:not(.sadaa-modal) {
    padding: 12px;
  }

  .directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) {
    padding: 14px;
    border-radius: 8px;
  }

  .directory-tab-soft .directory-form-grid:not(.sadaa-form-grid) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .directory-tab-soft .directory-form-group:not(.sadaa-field).full {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .directory-tab-soft .directory-page-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 7px;
    padding-inline-start: 0;
  }

  .directory-tab-soft .directory-page-meta {
    width: 100%;
    min-width: 0;
    padding-inline: 7px;
  }

  .directory-tab-soft .directory-page-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .directory-tab-soft .directory-search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-tab-soft .directory-search-field {
    grid-column: 1 / -1;
  }

  .directory-tab-soft .directory-search-form .directory-btn {
    width: 100%;
  }

  .directory-tab-soft .directory-panel,
  .directory-tab-soft .directory-table-panel,
  .directory-tab-soft .directory-section {
    border-radius: 7px;
  }

  .directory-tab-soft .directory-filters-group,
  .directory-tab-soft .directory-sort-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-tab-soft .directory-filter-controls .directory-btn {
    grid-column: 1 / -1;
  }

  .directory-tab-soft .directory-filter-tag,
  .directory-tab-soft .directory-filter-select,
  .directory-tab-soft .directory-filter-controls .directory-btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12.5px;
  }

  .directory-tab-soft .directory-list {
    padding: 8px;
  }

  }

/* ===== نافذة تعديل المتجر : حقول أوضح وصندوق وسائط للشعار ===== */
.directory-tab-soft .directory-modal-backdrop:not(.sadaa-modal) {
  padding: 18px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(3px);
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) {
  width: min(890px, 100%);
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden auto;
  border: 1px solid #dbe2ea;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.directory-tab-soft .directory-modal-head:not(.sadaa-modal__header) {
  align-items: flex-start;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #e7edf3;
  background:
    radial-gradient(circle at 10% 115%, rgba(var(--sadaa-admin-primary-rgb), .08) 0, rgba(var(--sadaa-admin-primary-rgb), .08) 74px, transparent 76px),
    linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}

.directory-tab-soft .directory-modal-title-wrap:not(.sadaa-modal__title-wrap) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.directory-tab-soft .directory-modal-title-icon:not(.sadaa-modal__title-icon) {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  background: #ffffff;
  color: #475569;
  font-size: 15px;
}

.directory-tab-soft .directory-modal-head:not(.sadaa-modal__header) h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.directory-tab-soft .directory-modal-head:not(.sadaa-modal__header) p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.65;
}

.directory-tab-soft .directory-modal-close:not(.sadaa-modal__close) {
  flex: 0 0 auto;
  background: #ffffff;
}

.directory-tab-soft .directory-modal-content:not(.sadaa-modal__body) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 0;
  min-height: 380px;
}

.directory-tab-soft .directory-modal-fields:not(.sadaa-modal__main) {
  padding: 18px;
  min-width: 0;
}

.directory-tab-soft .directory-modal-side:not(.sadaa-modal__aside) {
  padding: 18px;
  border-right: 1px solid #e7edf3;
  background: #fbfcfe;
}

.directory-tab-soft .directory-modal-side-heading:not(.sadaa-modal__aside-title) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.directory-tab-soft .directory-modal-side-heading:not(.sadaa-modal__aside-title) i {
  color: #64748b;
}

.directory-tab-soft .directory-logo-uploader {
  position: relative;
  min-height: 255px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.directory-tab-soft .directory-logo-uploader:hover,
.directory-tab-soft .directory-logo-uploader.is-dragging {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .04);
}

.directory-tab-soft .directory-logo-uploader input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.directory-tab-soft .directory-logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 230px;
  text-align: center;
}

.directory-tab-soft .directory-logo-image-wrap {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.directory-tab-soft .directory-logo-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.directory-tab-soft .directory-logo-preview-title {
  color: #374151;
  font-size: 13px;
  font-weight: 500;
}

.directory-tab-soft .directory-logo-preview-note {
  min-height: 34px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.6;
}

.directory-tab-soft .directory-logo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.directory-tab-soft .directory-logo-action {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
}

.directory-tab-soft .directory-logo-action:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  color: #111827;
}

.directory-tab-soft .directory-logo-action.is-reset {
  display: none;
  color: var(--sadaa-admin-dark);
  border-color: var(--sadaa-admin-soft-line);
  background: var(--sadaa-admin-soft);
}

.directory-tab-soft .directory-logo-uploader.has-new-file .directory-logo-action.is-reset {
  display: inline-flex;
}

.directory-tab-soft .directory-logo-help {
  margin: 10px 0 0;
  color: #7c8798;
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-grid {
  gap: 14px;
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-group > label:first-child {
  margin-bottom: 7px;
  color: #4b5563;
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-group input,
.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-group select,
.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-group textarea {
  min-height: 42px;
  border-color: #d7dee8;
  border-radius: 7px;
  background: #ffffff;
}

.directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) .directory-form-group textarea {
  min-height: 104px;
}

.directory-tab-soft .directory-modal-actions:not(.sadaa-modal__footer) {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid #e7edf3;
  background: #ffffff;
}

.directory-tab-soft .directory-modal-actions:not(.sadaa-modal__footer) .directory-btn {
  min-height: 40px;
  padding: 8px 13px;
}

@media (max-width:1100px) {
  .directory-tab-soft .directory-modal-backdrop:not(.sadaa-modal) {
    align-items: flex-end;
    padding: 8px;
  }

  .directory-tab-soft .directory-modal:not(.sadaa-modal__dialog) {
    max-height: calc(100vh - 16px);
    border-radius: 9px 9px 0 0;
  }

  .directory-tab-soft .directory-modal-content:not(.sadaa-modal__body) {
    grid-template-columns: 1fr;
  }

  .directory-tab-soft .directory-modal-side:not(.sadaa-modal__aside) {
    order: -1;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #e7edf3;
  }

  .directory-tab-soft .directory-logo-uploader {
    min-height: 0;
    padding: 10px;
  }

  .directory-tab-soft .directory-logo-preview {
    min-height: 0;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px 12px;
    align-items: center;
    text-align: right;
  }

  .directory-tab-soft .directory-logo-image-wrap {
    grid-row: span 3;
    width: 84px;
    height: 84px;
  }

  .directory-tab-soft .directory-logo-preview-title,
  .directory-tab-soft .directory-logo-preview-note,
  .directory-tab-soft .directory-logo-actions {
    align-self: center;
    justify-content: flex-start;
    text-align: right;
  }

  .directory-tab-soft .directory-logo-preview-note {
    min-height: 0;
  }

  .directory-tab-soft .directory-logo-help {
    margin-top: 8px;
    text-align: right;
  }

  .directory-tab-soft .directory-modal-fields:not(.sadaa-modal__main) {
    padding: 14px;
  }
}




.directory-tab-soft{
  --directory-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --directory-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --directory-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --directory-soft:var(--sadaa-admin-soft,rgba(var(--directory-brand-rgb),.07));
  --directory-line:var(--sadaa-admin-soft-line,rgba(var(--directory-brand-rgb),.20));
  --directory-border:#e5e7eb;
  --directory-muted:#6b7280;
}

/* هوية عامة أنظف */
.directory-tab-soft .directory-page-header{
  padding:18px 20px;
  box-shadow:none;
}
.directory-tab-soft .directory-page-meta{
  border-color:rgba(255,255,255,.20);
  background:rgba(var(--directory-brand-rgb),.18);
  color:#fff;
}
.directory-tab-soft .directory-header-add-btn{
  background:#fff;
  color:var(--directory-brand-dark);
  border-color:rgba(255,255,255,.32);
}
.directory-tab-soft .directory-panel,
.directory-tab-soft .directory-table-panel,
.directory-tab-soft .directory-section{
  border-color:var(--directory-border);
  box-shadow:none;
}
.directory-tab-soft .directory-section-title i{
  color:var(--directory-brand);
}

/* الأزرار والتفاعل */
.directory-tab-soft .directory-btn-primary{
  border-color:var(--directory-brand);
  background:var(--directory-brand);
}
.directory-tab-soft .directory-btn-primary:hover:not(:disabled){
  border-color:var(--directory-brand-dark);
  background:var(--directory-brand-dark);
}
.directory-tab-soft .directory-btn-soft:hover:not(:disabled),
.directory-tab-soft .directory-menu-toggle:hover,
.directory-tab-soft .directory-menu-toggle.is-open{
  border-color:var(--directory-line);
  background:var(--directory-soft);
  color:var(--directory-brand-dark);
}
.directory-tab-soft input:focus,
.directory-tab-soft select:focus,
.directory-tab-soft textarea:focus{
  border-color:var(--directory-brand);
  box-shadow:none;
  outline:none;
}
.directory-tab-soft input[type="checkbox"]{
  accent-color:var(--directory-brand);
}
.directory-tab-soft .directory-setting-switch input:checked + .directory-setting-switch-track{
  background:var(--directory-brand);
  border-color:var(--directory-brand);
}

/* خدمة التمييز بدون المساحة البيضاء الكبيرة */
.directory-tab-soft .directory-feature-service-section .directory-display-settings-grid{
  grid-template-columns:1fr;
}
.directory-tab-soft .directory-feature-service-section .directory-display-settings-actions{
  justify-content:flex-end;
}
.directory-tab-soft .directory-display-setting{
  min-height:0;
  padding:13px;
  background:var(--directory-soft);
  border-color:var(--directory-line);
}
.directory-tab-soft .directory-display-setting-title{
  color:var(--directory-brand-dark);
  font-size:13.5px;
}
.directory-tab-soft .directory-display-setting-note{
  font-size:12px;
  line-height:1.8;
}

/* البحث */
.directory-tab-soft .directory-search-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:8px;
}
.directory-tab-soft .directory-search-field{
  min-width:0;
}

/* الفلاتر */
.directory-tab-soft .directory-filter-row{
  display:block;
}
.directory-tab-soft .directory-filter-controls-modern{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,200px)) auto;
  align-items:end;
  justify-content:start;
  gap:8px;
}
.directory-tab-soft .directory-filter-field{
  min-width:0;
}
.directory-tab-soft .directory-filter-field label{
  display:block;
  margin-bottom:6px;
  color:var(--directory-muted);
  font-size:12px;
}
.directory-tab-soft .directory-filter-select{
  width:100%;
  min-height:40px;
  padding:8px 10px 8px 34px;
  appearance:none;
  -webkit-appearance:none;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 10px center;
  background-size:14px 14px;
}
.directory-tab-soft .directory-filter-apply{
  min-height:40px;
}

/* الجدول */
.directory-tab-soft .directory-table-panel{
  padding:14px;
}
.directory-tab-soft .directory-list-wrap{
  border:1px solid var(--directory-border);
  border-radius:9px;
  overflow:visible;
}
.directory-tab-soft .directory-header,
.directory-tab-soft .directory-row{
  grid-template-columns:
    42px
    minmax(190px,1.40fr)
    76px
    minmax(105px,.78fr)
    minmax(180px,1.20fr)
    112px
    116px
    50px;
}
.directory-tab-soft .directory-header{
  min-height:46px;
  border-radius:9px 9px 0 0;
  background:var(--directory-soft);
  color:var(--directory-brand-dark);
  border-color:var(--directory-line);
}
.directory-tab-soft .directory-row:last-child{
  border-radius:0 0 9px 9px;
}
.directory-tab-soft .directory-cell{
  padding-block:10px;
  padding-inline:11px;
  font-size:13.5px;
}

.directory-tab-soft .directory-select-cell,
.directory-tab-soft .directory-header .directory-cell:first-child{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-inline:7px;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
}
.directory-tab-soft .directory-store-head,
.directory-tab-soft .directory-store-cell{
  padding-inline-start:15px;
}
.directory-tab-soft .directory-domain-head,
.directory-tab-soft .directory-domain-cell,
.directory-tab-soft .directory-category-head,
.directory-tab-soft .directory-category-cell,
.directory-tab-soft .directory-owner-head,
.directory-tab-soft .directory-owner-cell,
.directory-tab-soft .directory-status-head,
.directory-tab-soft .directory-status-cell,
.directory-tab-soft .directory-date-head,
.directory-tab-soft .directory-date-cell,
.directory-tab-soft .directory-actions-head,
.directory-tab-soft .directory-actions{
  text-align:center;
}
.directory-tab-soft .directory-owner,
.directory-tab-soft .directory-owner-email{
  text-align:center;
}
.directory-tab-soft .directory-owner{
  color:#111827;
  font-weight:500;
}
.directory-tab-soft .directory-owner-email{
  font-size:12px;
}
.directory-tab-soft .directory-domain-link{
  margin-inline:auto;
}
.directory-tab-soft .directory-category,
.directory-tab-soft .directory-status{
  font-size:12.5px;
}
.directory-tab-soft .directory-featured{
  width:24px;
  height:24px;
  min-width:24px;
  color:var(--directory-brand-dark);
}
.directory-tab-soft .directory-status.is-pending{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a5a12;
}
.directory-tab-soft .directory-status.is-rejected{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}
/* نافذة التعديل */
.directory-tab-soft .directory-modal-title-icon{
  color:var(--directory-brand-dark);
  border-color:var(--directory-line);
  background:var(--directory-soft);
}
.directory-tab-soft .directory-logo-uploader:hover,
.directory-tab-soft .directory-logo-uploader.is-dragging{
  border-color:var(--directory-brand);
  background:var(--directory-soft);
  box-shadow:none;
}

@media(max-width:1180px){
  .directory-tab-soft .directory-list-wrap{overflow-x:auto}
  .directory-tab-soft .directory-list{min-width:980px}
}

@media (max-width:1100px){
  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .directory-tab-soft .directory-filter-apply{width:100%}
}

/* الجوال */
@media (max-width:1100px){
  .directory-tab-soft .directory-page-header{padding:16px}
  .directory-tab-soft .directory-page-title h2{font-size:18px}
  .directory-tab-soft .directory-page-title p{font-size:12.5px;line-height:1.7}

  .directory-tab-soft .directory-panel,
  .directory-tab-soft .directory-table-panel{padding:10px}

  .directory-tab-soft .directory-feature-service-section .directory-display-settings-grid{
    grid-template-columns:1fr;
  }
  .directory-tab-soft .directory-feature-service-section .directory-display-settings-actions .directory-btn{
    width:100%;
  }

  .directory-tab-soft .directory-search-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .directory-tab-soft .directory-search-field{
    grid-column:1/-1;
  }
  .directory-tab-soft .directory-search-form .directory-btn{
    width:100%;
    min-height:42px;
    font-size:13.5px;
  }

  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .directory-tab-soft .directory-filter-field:first-child{
    grid-column:1/-1;
  }
  .directory-tab-soft .directory-filter-select{
    min-height:42px;
    font-size:13.5px;
  }
  .directory-tab-soft .directory-filter-apply{
    grid-column:1/-1;
    width:100%;
    min-height:42px;
  }

  .directory-tab-soft .directory-list-wrap{
    border:0;
    border-radius:0;
    background:transparent;
    overflow:visible;
  }
  .directory-tab-soft .directory-list{
    min-width:0;
    padding:0;
    gap:10px;
  }
  .directory-tab-soft .directory-row{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto 38px;
    align-items:center;
    gap:0 8px;
    padding:11px 12px 12px;
    border:1px solid var(--directory-border);
    border-top:2px solid var(--directory-brand);
    border-radius:8px;
    background:#fff;
  }
  .directory-tab-soft .directory-cell{
    width:auto;
    min-width:0;
    padding:9px 0;
    border-bottom:1px solid #eef0f3;
    font-size:13.5px;
    text-align:right;
  }
  .directory-tab-soft .directory-cell::before{
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    color:#8a93a1;
    font-size:12px;
  }
  .directory-tab-soft .directory-select-cell{
    grid-column:1;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-height:34px;
    padding:0;
    border-bottom:0;
  }
  .directory-tab-soft .directory-select-cell::before{display:none}

  .directory-tab-soft .directory-store-cell{
    grid-column:2;
    grid-row:1;
    display:flex;
    align-items:center;
    padding:0;
    border-bottom:0;
  }
  .directory-tab-soft .directory-store-cell::before{display:none}
  .directory-tab-soft .directory-store-name-stack{
    justify-content:flex-start;
    gap:7px;
  }
  .directory-tab-soft .directory-store-name{
    max-width:none;
    font-size:14px;
    font-weight:500;
  }

  .directory-tab-soft .directory-status-cell{
    grid-column:3;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0;
    border-bottom:0;
  }
  .directory-tab-soft .directory-status-cell::before{display:none}

  .directory-tab-soft .directory-actions{
    grid-column:4;
    grid-row:1;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0;
    border-bottom:0;
  }
  .directory-tab-soft .directory-actions::before{display:none}

  .directory-tab-soft .directory-domain-cell{
    grid-column:1/-1;
    grid-row:2;
    margin-top:7px;
    padding-top:8px;
    border-top:1px solid var(--directory-line);
  }
  .directory-tab-soft .directory-category-cell{grid-column:1/-1;grid-row:3}
  .directory-tab-soft .directory-owner-cell{grid-column:1/-1;grid-row:4}
  .directory-tab-soft .directory-date-cell{
    grid-column:1/-1;
    grid-row:5;
    border-bottom:0;
  }

  .directory-tab-soft .directory-domain-cell,
  .directory-tab-soft .directory-category-cell,
  .directory-tab-soft .directory-owner-cell,
  .directory-tab-soft .directory-date-cell{
    display:grid;
    grid-template-columns:84px minmax(0,1fr);
    align-items:center;
    gap:8px;
    min-height:38px;
    padding-block:7px;
    direction:rtl;
  }
  .directory-tab-soft .directory-domain-cell::before,
  .directory-tab-soft .directory-category-cell::before,
  .directory-tab-soft .directory-owner-cell::before,
  .directory-tab-soft .directory-date-cell::before{
    grid-column:1;
    margin:0;
    text-align:right;
  }
  .directory-tab-soft .directory-domain-link,
  .directory-tab-soft .directory-category,
  .directory-tab-soft .directory-date{
    grid-column:2;
    justify-self:stretch;
    text-align:right;
    margin-inline:0;
  }

  .directory-tab-soft .directory-domain-link{
    justify-self:start;
  }

  .directory-tab-soft .directory-owner-cell{
    grid-template-columns:84px minmax(0,1fr);
  }
  .directory-tab-soft .directory-owner-cell .directory-owner,
  .directory-tab-soft .directory-owner-cell .directory-owner-email{
    grid-column:2;
    max-width:100%;
    width:100%;
    text-align:right;
    justify-self:stretch;
  }
  .directory-tab-soft .directory-owner-email{
    margin-top:3px;
    font-size:12px;
  }

  .directory-tab-soft .directory-domain-link,
  .directory-tab-soft .directory-featured{
    width:28px;
    height:28px;
    min-width:28px;
  }
  .directory-tab-soft .directory-category,
  .directory-tab-soft .directory-status{
    font-size:12px;
  }
  .directory-tab-soft .directory-menu-toggle{
    width:38px;
    height:38px;
  }
  .directory-tab-soft .directory-row-menu{
    left:0;
    right:auto;
    top:42px;
  }
  .directory-tab-soft .directory-display-setting-note,
  .directory-tab-soft .directory-logo-help,
  .directory-tab-soft .directory-form-hint{
    font-size:12px;
  }
}

@media(max-width:480px){
  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:1fr;
  }
  .directory-tab-soft .directory-filter-field:first-child,
  .directory-tab-soft .directory-filter-apply{
    grid-column:1;
  }
}



/* دمج فعلي: صندوق واحد، صفوف داخلية بلا حدود أو مسافات فاصلة */
.directory-tab-soft .directory-admin-settings-section,
.directory-tab-soft .directory-search-filter-section{
  padding:14px;
  overflow:visible;
}

/* إعدادات ظهور عناصر الدليل: كل إعداد في سطر مستقل */
.directory-tab-soft .directory-admin-settings-section .directory-display-settings-grid{
  grid-template-columns:1fr;
  gap:8px;
}

.directory-tab-soft .directory-admin-settings-section .directory-display-setting{
  width:100%;
}

.directory-tab-soft .directory-unified-settings-form,
.directory-tab-soft .directory-unified-search-form{
  display:grid;
  gap:0;
}

.directory-tab-soft .directory-settings-row,
.directory-tab-soft .directory-search-row,
.directory-tab-soft .directory-filter-row-unified{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.directory-tab-soft .directory-settings-row + .directory-settings-row,
.directory-tab-soft .directory-filter-row-unified{
  margin-top:14px;
}

.directory-tab-soft .directory-settings-row-head{
  margin:0 0 10px;
}

.directory-tab-soft .directory-settings-row .directory-section-title,
.directory-tab-soft .directory-search-row .directory-section-title,
.directory-tab-soft .directory-filter-row-unified .directory-section-title{
  margin:0 0 10px;
}

.directory-tab-soft .directory-feature-setting{
  width:100%;
}

.directory-tab-soft .directory-unified-settings-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
  padding:0;
  border:0;
  background:transparent;
}

.directory-tab-soft .directory-unified-settings-actions .directory-btn{
  min-height:40px;
  padding:8px 14px;
}

/* البحث والفلاتر: سطر فوق سطر داخل نفس الصندوق */
.directory-tab-soft .directory-search-controls{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto auto;
  gap:8px;
  align-items:center;
}

.directory-tab-soft .directory-filter-row-unified{
  padding-top:0;
}

.directory-tab-soft .directory-filter-controls-modern{
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,200px)) auto;
  gap:8px;
  align-items:end;
  justify-content:start;
}

.directory-tab-soft .directory-combined-section .directory-subsection{
  padding:0;
  border:0!important;
}

/* منع أي حدود قديمة بين الأجزاء */
.directory-tab-soft .directory-combined-section .directory-subsection + .directory-subsection{
  border-top:0!important;
}

@media (max-width:1100px){
  .directory-tab-soft .directory-search-controls{
    grid-template-columns:1fr auto auto;
  }

  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1100px){
  .directory-tab-soft .directory-admin-settings-section,
  .directory-tab-soft .directory-search-filter-section{
    padding:10px;
  }

  .directory-tab-soft .directory-settings-row + .directory-settings-row,
  .directory-tab-soft .directory-filter-row-unified{
    margin-top:12px;
  }

  .directory-tab-soft .directory-unified-settings-actions .directory-btn{
    width:100%;
  }

  .directory-tab-soft .directory-search-controls{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .directory-tab-soft .directory-search-field{
    grid-column:1/-1;
  }

  .directory-tab-soft .directory-search-controls .directory-btn{
    width:100%;
  }

  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .directory-tab-soft .directory-filter-field:first-child{
    grid-column:1/-1;
  }

  .directory-tab-soft .directory-filter-apply{
    grid-column:1/-1;
  }
}

@media(max-width:480px){
  .directory-tab-soft .directory-filter-controls-modern{
    grid-template-columns:1fr;
  }

  .directory-tab-soft .directory-filter-field:first-child,
  .directory-tab-soft .directory-filter-apply{
    grid-column:1;
  }
}



/* إزالة أي مسافات موروثة من عناوين الإعدادات المحذوفة */
.directory-tab-soft .directory-admin-settings-section .directory-settings-row{
  margin:0;
}

.directory-tab-soft .directory-admin-settings-section .directory-settings-row + .directory-settings-row{
  margin-top:8px;
}

/* البحث + الفلاتر في شريط واحد */
.directory-tab-soft .directory-search-filter-section{
  padding:14px;
}

.directory-tab-soft .directory-search-filter-section > .directory-section-title{
  margin:0 0 10px;
}

.directory-tab-soft .directory-unified-toolbar{
  display:grid;
  grid-template-columns:
    minmax(260px,1fr)
    minmax(130px,160px)
    minmax(150px,180px)
    minmax(135px,160px)
    auto
    auto;
  align-items:end;
  gap:8px;
  margin:0;
}

.directory-tab-soft .directory-unified-toolbar .directory-search-field{
  min-width:0;
  align-self:end;
}

.directory-tab-soft .directory-unified-toolbar .directory-search-field input{
  min-height:42px;
}

.directory-tab-soft .directory-toolbar-filter{
  min-width:0;
}

.directory-tab-soft .directory-toolbar-filter label{
  display:block;
  margin:0 0 5px;
  color:var(--directory-muted);
  font-size:12px;
  line-height:1.4;
}

.directory-tab-soft .directory-unified-toolbar .directory-filter-select{
  width:100%;
  min-height:42px;
  padding:8px 10px 8px 34px;
}

.directory-tab-soft .directory-toolbar-search,
.directory-tab-soft .directory-toolbar-clear{
  min-height:42px;
  white-space:nowrap;
}

/* إلغاء أي تنسيقات قديمة كانت تفصل البحث والفلاتر إلى صفين */
.directory-tab-soft .directory-search-row,
.directory-tab-soft .directory-filter-row-unified{
  display:none;
}

@media(max-width:1180px){
  .directory-tab-soft .directory-unified-toolbar{
    grid-template-columns:
      minmax(220px,1fr)
      minmax(120px,145px)
      minmax(135px,165px)
      minmax(125px,145px)
      auto
      auto;
    gap:7px;
  }
}

@media (max-width:1100px){
  .directory-tab-soft .directory-unified-toolbar{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .directory-tab-soft .directory-unified-toolbar .directory-search-field{
    grid-column:1/-1;
  }

  .directory-tab-soft .directory-toolbar-search,
  .directory-tab-soft .directory-toolbar-clear{
    width:100%;
  }
}

@media (max-width:1100px){
  .directory-tab-soft .directory-search-filter-section{
    padding:10px;
  }

  .directory-tab-soft .directory-unified-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .directory-tab-soft .directory-unified-toolbar .directory-search-field{
    grid-column:1/-1;
  }

  .directory-tab-soft .directory-toolbar-filter{
    min-width:0;
  }

  .directory-tab-soft .directory-toolbar-filter:nth-of-type(4){
    grid-column:1/-1;
  }

  .directory-tab-soft .directory-unified-toolbar .directory-filter-select{
    min-height:42px;
    font-size:13.5px;
  }
}

@media(max-width:480px){
  .directory-tab-soft .directory-unified-toolbar{
    grid-template-columns:1fr;
  }

  .directory-tab-soft .directory-unified-toolbar .directory-search-field,
  .directory-tab-soft .directory-toolbar-filter,
  .directory-tab-soft .directory-toolbar-search,
  .directory-tab-soft .directory-toolbar-clear{
    grid-column:1;
  }

  .directory-tab-soft .directory-toolbar-filter label{
    font-size:12.5px;
  }
}



@media (max-width:1100px){
  .directory-tab-soft .directory-row{
    grid-template-columns:20px minmax(0,1fr) auto 38px;
    column-gap:7px;
  }
  .directory-tab-soft .directory-select-cell,
  .directory-tab-soft .directory-store-cell,
  .directory-tab-soft .directory-status-cell,
  .directory-tab-soft .directory-actions{
    height:38px;
    min-height:38px;
  }
  .directory-tab-soft .directory-select-cell{
    width:20px;
    line-height:0;
  }
  .directory-tab-soft .directory-row-select{
    display:block;
    width:16px;
    height:16px;
    min-width:16px;
    min-height:16px;
    margin:0;
    flex:0 0 16px;
    vertical-align:middle;
  }
  .directory-tab-soft .directory-domain-cell,
  .directory-tab-soft .directory-category-cell,
  .directory-tab-soft .directory-owner-cell,
  .directory-tab-soft .directory-date-cell{
    grid-template-columns:max-content minmax(0,1fr);
    gap:12px;
  }
  .directory-tab-soft .directory-domain-cell::before,
  .directory-tab-soft .directory-category-cell::before,
  .directory-tab-soft .directory-owner-cell::before,
  .directory-tab-soft .directory-date-cell::before{
    grid-column:1;
    justify-self:start;
    text-align:right;
  }
  .directory-tab-soft .directory-domain-link,
  .directory-tab-soft .directory-category,
  .directory-tab-soft .directory-date{
    grid-column:2;
    justify-self:end;
    width:auto;
    max-width:100%;
    margin:0;
    text-align:left;
  }
  .directory-tab-soft .directory-owner-cell .directory-owner,
  .directory-tab-soft .directory-owner-cell .directory-owner-email{
    grid-column:2;
    justify-self:end;
    width:auto;
    max-width:100%;
    text-align:left;
  }
  .directory-tab-soft .directory-owner-cell .directory-owner-email{
    direction:ltr;
    unicode-bidi:isolate;
  }
}



@media (max-width:1100px){
  .directory-tab-soft .directory-unified-toolbar{
    width:100%;
    max-width:none;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}



@media (max-width:1100px){
  /* اسم المتجر في صف مستقل على الجوال */
  .directory-tab-soft .directory-store-cell{
    grid-column:1 / -1;
    grid-row:2;
    display:flex;
    align-items:center;
    min-height:40px!important;
    height:auto!important;
    margin-top:7px;
    padding:8px 0!important;
    border-top:1px solid var(--directory-line);
    border-bottom:1px solid #eef0f3!important;
  }
  .directory-tab-soft .directory-store-name-stack{
    width:100%;
    min-width:0;
    justify-content:flex-start;
  }
  .directory-tab-soft .directory-store-name{
    min-width:0;
    max-width:100%;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    line-height:1.45;
  }

  /* بعد نقل اسم المتجر، تنزل بقية البيانات صفاً واحداً */
  .directory-tab-soft .directory-domain-cell{
    grid-row:3;
    margin-top:0;
    border-top:0;
  }
  .directory-tab-soft .directory-category-cell{grid-row:4}
  .directory-tab-soft .directory-owner-cell{grid-row:5}
  .directory-tab-soft .directory-date-cell{grid-row:6}
}







@media (min-width:721px) and (max-width:1100px){
  /* صفان ممتلئان ومتوازنان بدون فراغات كبيرة. */
  .directory-tab-soft .directory-unified-toolbar{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:end!important;
    width:100%!important;
  }
  .directory-tab-soft .directory-unified-toolbar .directory-search-field{
    grid-column:span 2!important;
    min-width:0!important;
  }
  .directory-tab-soft .directory-unified-toolbar .directory-toolbar-filter{
    grid-column:auto!important;
    min-width:0!important;
  }
  .directory-tab-soft .directory-unified-toolbar .directory-toolbar-filter:nth-of-type(4){
    grid-column:span 2!important;
  }
  .directory-tab-soft .directory-toolbar-search,
  .directory-tab-soft .directory-toolbar-clear{
    grid-column:span 1!important;
    width:100%!important;
    min-width:0!important;
  }
  .directory-tab-soft .directory-unified-toolbar .directory-filter-select,
  .directory-tab-soft .directory-unified-toolbar .directory-search-field input{
    width:100%!important;
    min-width:0!important;
  }
}



/* SADAA_DESKTOP_TABLE_OUTER_SURFACE_REMOVE_DIRECTORY_2026_10_04 */

@media (min-width:1101px){
  .directory-tab-soft .directory-table-panel,
  .directory-tab-soft .directory-list-wrap{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  .directory-tab-soft .directory-table-panel{padding:0!important;}
  .directory-tab-soft .directory-list-wrap{padding:0!important;}
}




@media (min-width:1101px){
  #tabContent .directory-tab-soft .directory-table-panel{
    display:contents!important;
  }
  #tabContent .directory-tab-soft .directory-list-wrap{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 0 0!important;
    padding:0!important;
    border:1px solid var(--sadaa-admin-line,var(--sadaa-line,#e5e7eb))!important;
    border-radius:8px!important;
    background:var(--sadaa-surface,#fff)!important;
    box-shadow:none!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
}





/* ---- V103: tab_offers.php ---- */
.offers-tab-ui,
.offers-tab-ui *{box-sizing:border-box;}
.offers-tab-ui{direction:rtl;font-family:var(--site-font-family);color:#1f2937;--offers-primary:var(--sadaa-admin-primary);--offers-primary-dark:var(--sadaa-admin-hover);--offers-accent:var(--sadaa-admin-primary);--offers-focus:rgba(var(--sadaa-admin-primary-rgb), .16);}

.offers-page-header{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:18px 20px;background:radial-gradient(circle at 10% 0%,rgba(255,255,255,.24) 0,rgba(255,255,255,.24) 72px,transparent 74px),radial-gradient(circle at 78% 110%,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 92px,transparent 94px),var(--sadaa-admin-hero-gradient);border-radius:8px;color:#fff;}
.offers-page-title{position:relative;z-index:1;display:flex;align-items:center;gap:12px;min-width:0;}
.offers-page-icon{width:42px;height:42px;min-width:42px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.24);font-size:16px;}
.offers-page-title h2{margin:0;font-size:20px;line-height:1.5;font-weight:500;color:#fff;}
.offers-page-title p{margin:3px 0 0;color:rgba(255,255,255,.86);font-size:13px;line-height:1.8;}
.offers-page-meta{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;color:#374151;font-size:13px;white-space:nowrap;padding:8px 11px;border:1px solid rgba(148,163,184,.42);border-radius:7px;background:rgba(255,255,255,.82);}


.offers-stack{display:grid;gap:14px;}
.offers-panel{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;}
.offers-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid #edf0f4;background:#fff;}
.offers-panel-title{display:flex;align-items:flex-start;gap:10px;min-width:0;}
.offers-panel-title-icon{width:34px;height:34px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--sadaa-admin-line);border-radius:7px;background:var(--sadaa-admin-soft);color:var(--sadaa-admin-primary);font-size:14px;}
.offers-panel-title h3{margin:0;color:#111827;font-size:15px;line-height:1.5;font-weight:500;}
.offers-panel-title p{margin:3px 0 0;color:#6b7280;font-size:12px;line-height:1.7;}
.offers-panel-count{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:5px 9px;border:1px solid #e5e7eb;border-radius:7px;background:#f8fafc;color:#475569;font-size:12px;white-space:nowrap;}

.offers-form{padding:16px;}
.offers-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:13px 14px;align-items:start;}
.offers-field{display:grid;gap:6px;color:#374151;font-size:13px;line-height:1.7;font-weight:400;}
.offers-field-title{grid-column:span 6;}
.offers-field-text{grid-column:span 6;}
.offers-field-icon{grid-column:1/-1;}
.offers-field-small{grid-column:span 3;}
.offers-field-label{display:block;color:#374151;font-size:13px;line-height:1.7;}
.offers-form input[type="text"],
.offers-form input[type="number"],
.offers-form input[type="date"],
.offers-form .offers-date-input{width:100%;min-height:42px;border:1px solid #d8dde6;border-radius:7px;background:#fff;color:#111827;padding:9px 11px;outline:none;font-family:var(--site-font-family);font-size:13px;font-weight:400;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;}
.offers-form input:hover{border-color:#bcc4d0;}
.offers-form input:focus{border-color:#6aa7dd;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10);background:#fff;}

.offers-icon-picker{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;}
.offers-icon-option{position:relative;display:block;cursor:pointer;}
.offers-icon-option input{position:absolute;opacity:0;pointer-events:none;}
.offers-icon-option span{height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #e0e5ec;border-radius:7px;background:#fff;color:#667085;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;}
.offers-icon-option span i{font-size:15px;line-height:1;}
.offers-icon-option:hover span{background:#f8fbfd;color:var(--sadaa-admin-primary);border-color:var(--sadaa-admin-soft-line);}
.offers-icon-option input:checked + span{background:var(--sadaa-admin-soft);color:var(--sadaa-admin-primary);border-color:#a9cce8;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10);}

.offers-form-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:2px;padding-top:14px;border-top:1px solid #edf0f4;}
.offers-form-note{display:flex;align-items:flex-start;gap:10px;min-width:0;}
.offers-form-note i{margin-top:4px;color:var(--sadaa-admin-primary);font-size:13px;}
.offers-help{margin:0;color:#6b7280;font-size:12px;line-height:1.9;}
.offers-check{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:36px;
  min-height:36px;
  margin:0;
  padding:0;
  white-space:nowrap;
  color:#374151;
  font-size:13px;
  line-height:36px;
  vertical-align:middle;
  cursor:pointer;
}
.offers-check input{
  width:17px;
  height:17px;
  margin:0;
  flex:0 0 17px;
  align-self:center;
  accent-color:var(--sadaa-admin-primary);
}
.offers-check span{
  display:inline-flex;
  align-items:center;
  height:36px;
  min-height:36px;
  margin:0;
  padding:0;
  line-height:36px;
  vertical-align:middle;
}
.offers-footer-side{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;}
.offers-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.offers-btn{min-height:36px;border:1px solid #d1d5db;border-radius:7px;padding:7px 12px;background:#fff;color:#374151;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:400;white-space:nowrap;font-family:var(--site-font-family);transition:background .15s ease,border-color .15s ease,color .15s ease;}
.offers-btn:hover{background:#f9fafb;border-color:#9ca3af;color:#111827;}
.offers-btn-primary{background:#111827;border-color:#111827;color:#fff;}
.offers-btn-primary:hover{background:#000;border-color:#000;color:#fff;}
.offers-btn-danger:hover{background:var(--sadaa-admin-soft);border-color:var(--sadaa-admin-soft-line);color:var(--sadaa-admin-dark);}
.offers-btn-icon{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;}

.offers-table-wrap{overflow-x:auto;}
.offers-table{table-layout:fixed;}
.offers-table th,.offers-table td{text-align:right;}
.offers-col-main{width:34%;}
.offers-col-duration{width:16%;}
.offers-col-validity{width:23%;}
.offers-col-status{width:10%;}
.offers-col-actions{width:17%;}
.offers-title-preview{display:flex;align-items:flex-start;gap:9px;color:#111827;min-width:0;}
.offers-title-preview > i{width:30px;height:30px;min-width:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--sadaa-admin-soft);border-radius:7px;background:var(--sadaa-admin-soft);color:var(--sadaa-admin-primary);font-size:13px;}
.offers-title-content{min-width:0;}
.offers-title-name{display:block;color:#111827;font-size:13px;line-height:1.6;font-weight:500;white-space:normal;}
.offers-table-sub{margin-top:2px;color:#6b7280;font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;}
.offers-duration{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#374151;line-height:1.7;}
.offers-duration strong{font-weight:500;color:#111827;}
.offers-duration-separator{color:#c3c8d0;}
.offers-validity{display:grid;gap:3px;color:#4b5563;font-size:12px;line-height:1.7;}
.offers-validity span{display:flex;align-items:center;gap:6px;}
.offers-validity i{width:14px;color:var(--sadaa-admin-primary);text-align:center;}
.offers-status{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:26px;padding:3px 9px;border-radius:999px;font-size:12px;border:1px solid #e5e7eb;background:#f8fafc;color:#475569;}
.offers-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#94a3b8;}
.offers-status.is-active{background:#ecfdf5;border-color:#bbf7d0;color:#166534;}
.offers-status.is-active::before{background:#22c55e;}
.offers-status.is-expired{background:var(--sadaa-admin-soft);border-color:var(--sadaa-admin-soft-line);color:var(--sadaa-admin-dark);}
.offers-status.is-expired::before{background:var(--sadaa-admin-primary);}
.offers-row-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;}
.offers-empty{margin:16px;padding:24px;border:1px dashed #d1d5db;border-radius:8px;background:#fafafa;color:#6b7280;text-align:center;font-size:13px;line-height:1.9;}



/* تقاويم مدة العرض — نفس هوية التقويم المعتمدة في صفحة إضافة الإعلان */
.offers-date-wrapper{position:relative;display:block;cursor:pointer;}
.offers-date-wrapper .offers-date-input{padding-left:44px;background:linear-gradient(180deg,#fff,#fbfbfd);caret-color:var(--sadaa-admin-primary);cursor:pointer;}
.offers-date-wrapper .offers-date-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#747b8a;font-size:14px;pointer-events:none;transition:color .15s ease;}
.offers-date-wrapper:hover .offers-date-input{border-color:#b9d5ea;}
.offers-date-wrapper.is-calendar-open .offers-date-input,
.offers-date-wrapper .offers-date-input:focus{border-color:var(--sadaa-admin-primary);background:#fff;box-shadow:0 0 0 4px rgba(var(--sadaa-admin-primary-rgb), .16);}
.offers-date-wrapper.is-calendar-open .offers-date-icon{color:var(--sadaa-admin-primary);}

body .flatpickr-calendar.sadaa-offers-calendar,
body .flatpickr-calendar.sadaa-offers-calendar *{box-sizing:border-box;font-family:var(--site-font-family)!important;}
body .flatpickr-calendar.sadaa-offers-calendar{width:326px;direction:rtl;overflow:hidden;margin-top:8px;padding:0;background:#fff!important;border:1px solid #e5e7eb;border-radius:9px;box-shadow:0 22px 55px rgba(17,24,39,.16);color:#111827;z-index:99999;}
body .flatpickr-calendar.sadaa-offers-calendar::before,
body .flatpickr-calendar.sadaa-offers-calendar::after{display:none;}
body .flatpickr-calendar.sadaa-offers-calendar.open{animation:sadaaOffersCalendarOpen .17s ease-out both;}
@keyframes sadaaOffersCalendarOpen{from{opacity:0;transform:translateY(-5px) scale(.985);}to{opacity:1;transform:translateY(0) scale(1);}}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-months{position:relative;min-height:58px;align-items:center;padding:9px 44px;background:var(--sadaa-admin-brand-gradient)!important;color:#fff!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-month{height:40px;color:#fff;fill:#fff;overflow:visible;background:transparent!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month{position:static;width:100%;height:40px;padding:0;display:flex;align-items:center;justify-content:center;gap:7px;color:#fff;font-size:15px;line-height:1;font-weight:500;background:transparent!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .cur-month{margin:0;color:#fff!important;font-weight:500;background:transparent!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:focus{min-width:102px;height:32px;min-height:32px;margin:0;padding:0 10px 0 28px;border:1px solid rgba(255,255,255,.22);border-radius:6px;background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.10));color:#fff!important;font-family:var(--site-font-family);font-size:15px;font-weight:500;line-height:30px;appearance:none;-webkit-appearance:none;-moz-appearance:none;box-shadow:none;outline:none;cursor:pointer;text-align:center;text-align-last:center;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option{color:#374151!important;background:#fff!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:checked,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .flatpickr-monthDropdown-months option:hover{color:#111827!important;background:var(--sadaa-admin-soft)!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month .numInputWrapper{width:66px;height:32px;background:transparent!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month input.cur-year{width:100%;height:32px;min-height:32px;padding:0 7px;color:#fff!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:6px;font-family:var(--site-font-family);font-size:14px;font-weight:400;text-align:center;box-shadow:none!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month input.cur-year:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month input.cur-year:focus{background:rgba(255,255,255,.20)!important;border-color:rgba(255,255,255,.38)!important;box-shadow:none!important;}
body .flatpickr-calendar.sadaa-offers-calendar .numInputWrapper span{display:none;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month{position:absolute!important;top:9px!important;width:34px;height:34px;margin:0!important;padding:8px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.20)!important;border-radius:7px;background:rgba(255,255,255,.11)!important;color:#fff!important;fill:#fff!important;z-index:5;transition:background .16s ease,border-color .16s ease;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month{left:9px!important;right:auto!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month{right:9px!important;left:auto!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month:hover{background:rgba(255,255,255,.21)!important;border-color:rgba(255,255,255,.34)!important;color:#fff!important;fill:#fff!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month svg,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month svg{display:none;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month::before,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month::before{display:block;font-size:22px;line-height:1;font-weight:500;color:currentColor;transform:translateY(-1px);}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month::before{content:"›";}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month::before{content:"‹";}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-rContainer{width:100%;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdays{height:38px;padding:4px 8px 0;background:#f8fbfd!important;border-bottom:1px solid var(--sadaa-admin-line);}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdaycontainer{width:100%;background:#f8fbfd!important;}
body .flatpickr-calendar.sadaa-offers-calendar span.flatpickr-weekday{color:#6b7280!important;background:#f8fbfd!important;font-size:11px;line-height:34px;font-weight:500;}
body .flatpickr-calendar.sadaa-offers-calendar .days{width:100%;padding:8px;}
body .flatpickr-calendar.sadaa-offers-calendar .dayContainer{width:100%;min-width:100%;max-width:100%;justify-content:space-between;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day{width:38px;max-width:38px;height:38px;line-height:38px;margin:1px 0;border:1px solid transparent;border-radius:7px;color:#374151;font-size:12.5px;font-weight:400;transition:color .14s ease,background .14s ease,border-color .14s ease;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day:focus{color:var(--sadaa-admin-hover);background:var(--sadaa-admin-soft);border-color:var(--sadaa-admin-line);outline:none;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.today{color:var(--sadaa-admin-hover);background:#fff;border-color:var(--sadaa-admin-primary);font-weight:500;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.today:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.today:focus{color:#fff;background:var(--sadaa-admin-primary);border-color:var(--sadaa-admin-primary);}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.selected,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.startRange,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.endRange,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.selected:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.startRange:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.endRange:hover{color:#fff!important;background:var(--sadaa-admin-brand-gradient)!important;border-color:transparent!important;box-shadow:0 6px 14px rgba(var(--sadaa-admin-primary-rgb), .22);}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.prevMonthDay,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.nextMonthDay{color:#b7bdc8;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.flatpickr-disabled,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.flatpickr-disabled:hover,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.notAllowed,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day.notAllowed:hover{color:#d1d5db;background:transparent;border-color:transparent;cursor:not-allowed;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day:focus-visible,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-prev-month:focus-visible,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-next-month:focus-visible{outline:2px solid rgba(var(--sadaa-admin-primary-rgb), .30);outline-offset:2px;}
@media(max-width:420px){body .flatpickr-calendar.sadaa-offers-calendar{width:min(326px,calc(100vw - 24px));}body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day{width:36px;max-width:36px;height:36px;line-height:36px;}}

/* منع قالب Flatpickr الأخضر المحمّل في لوحة التحكم من التدخل في تقويم العروض */
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-months,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-month,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-current-month{border:0!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-month{background:transparent!important;}
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdays,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdaycontainer,
body .flatpickr-calendar.sadaa-offers-calendar span.flatpickr-weekday{background:#f8fbfd!important;}

@media(max-width:1100px){
  .offers-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr));}
  .offers-field-small{grid-column:span 6;}
  .offers-table{min-width:920px;}
}
@media (max-width:1100px){
  .offers-page-header{flex-direction:column;align-items:stretch;}
  .offers-page-meta{width:max-content;max-width:100%;}
  .offers-panel-head{align-items:flex-start;}
  .offers-form{padding:14px;}
  .offers-form-grid{grid-template-columns:1fr;}
  .offers-field-title,.offers-field-text,.offers-field-icon,.offers-field-small{grid-column:1/-1;}
  .offers-icon-picker{grid-template-columns:repeat(4,minmax(0,1fr));}
  .offers-form-footer{align-items:stretch;flex-direction:column;}
  .offers-footer-side{justify-content:space-between;}
  .offers-table-wrap{overflow:visible;}
  .offers-table,.offers-table tbody,.offers-table tr,.offers-table td{display:block;width:100%;}
  .offers-table{min-width:0;table-layout:auto;}
  .offers-table thead{display:none;}
  .offers-table tbody{display:grid;gap:10px;padding:12px;}
  .offers-table tbody tr{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background:#fff;}
  .offers-table tbody tr:hover{background:#fff;}
  .offers-table td{position:relative;display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:10px 12px;border-bottom:1px solid #eef1f5;text-align:right;}
  .offers-table td::before{content:attr(data-label);color:#6b7280;font-size:12px;font-weight:400;}
  .offers-table td:first-child{display:block;padding:13px 12px;}
  .offers-table td:first-child::before{display:none;}
  .offers-table td:last-child{border-bottom:0;}
  .offers-row-actions{justify-content:flex-start;}
}
@media(max-width:520px){
  .offers-page-title h2{font-size:17px;}
  .offers-page-icon{width:34px;height:34px;min-width:34px;}
  .offers-panel-head{padding:12px;}
  .offers-panel-count{display:none;}
  .offers-icon-picker{grid-template-columns:repeat(4,minmax(0,1fr));}
  .offers-footer-side{align-items:stretch;flex-direction:column;}
  .offers-actions{width:100%;}
  .offers-actions .offers-btn{flex:1;}
  .offers-table tbody{padding:10px;}
  .offers-table td{grid-template-columns:88px minmax(0,1fr);}
}



/* صدى المتاجر — الهوية البصرية الجديدة للوحة التحكم */
:root{
  --sadaa-admin-blue:var(--sadaa-admin-primary);
  --sadaa-admin-blue-hover:var(--sadaa-admin-hover);
  --sadaa-admin-blue-soft:var(--sadaa-admin-soft);
  --sadaa-admin-white:#fff;
  --sadaa-admin-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .055);
}




.offers-tab-ui{color:var(--sadaa-admin-text)}
.offers-tab-ui .offers-page-header{position:relative;overflow:hidden;background:var(--sadaa-admin-hero-gradient)!important;border:0!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .09)!important;padding:22px 24px!important;color:#fff!important}
.offers-tab-ui .offers-page-header::before{content:"";position:absolute;width:160px;height:160px;inset-inline-start:-72px;top:-92px;border-radius:50%;border:1px solid rgba(255,255,255,.18);box-shadow:0 0 0 30px rgba(255,255,255,.045),0 0 0 60px rgba(255,255,255,.025)}
.offers-tab-ui .offers-page-header::after{content:"";position:absolute;width:96px;height:96px;inset-inline-end:-35px;bottom:-52px;border-radius:50%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.11)}
.offers-tab-ui .offers-page-header>*{position:relative;z-index:1}.offers-tab-ui .offers-page-icon{border-color:rgba(255,255,255,.22)!important;color:#fff!important}.offers-tab-ui .offers-page-header h2{color:#fff!important;font-weight:500!important}.offers-tab-ui .offers-page-header p{color:rgba(255,255,255,.78)!important}.offers-tab-ui .offers-page-meta{background:rgba(var(--sadaa-admin-dark-rgb), .19)!important;border-color:rgba(255,255,255,.17)!important;color:#fff!important}
.offers-tab-ui .offers-panel{border-color:var(--sadaa-admin-line)!important;border-radius:8px!important;box-shadow:var(--sadaa-admin-shadow)!important;background:#fff!important}.offers-tab-ui .offers-panel-head,.offers-tab-ui .offers-table th{background:var(--sadaa-admin-soft)!important;border-color:var(--sadaa-admin-line)!important}.offers-tab-ui .offers-panel-title-icon{background:var(--sadaa-admin-blue-soft)!important;color:var(--sadaa-admin-blue)!important;border-color:#d7e8f5!important}.offers-tab-ui .offers-btn-primary{background:var(--sadaa-admin-blue)!important;border-color:var(--sadaa-admin-blue)!important}.offers-tab-ui .offers-field input:focus,.offers-tab-ui .offers-field select:focus{border-color:var(--sadaa-admin-blue)!important;box-shadow:0 0 0 3px rgba(var(--sadaa-admin-primary-rgb), .10)!important}.offers-tab-ui .offers-table tbody tr:hover{background:#fbfdff!important}
@media (max-width:1100px){.offers-tab-ui .offers-page-header{padding:18px!important}}




/* الخطوة الأولى: تجميع محتويات النموذج داخل صناديق واضحة */
.offers-tab-ui .offers-form-box{
  grid-column:1/-1;
  display:grid;
  gap:12px 14px;
  padding:14px;
  border:1px solid #e3e6eb;
  border-radius:8px;
  background:#fff;
}

.offers-tab-ui .offers-form-box-main{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.offers-tab-ui .offers-form-box-icons{
  display:block;
}

.offers-tab-ui .offers-form-box-icons .offers-field-icon{
  width:100%;
}

.offers-tab-ui .offers-form-box-duration{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.offers-tab-ui .offers-form-box .offers-field-title,
.offers-tab-ui .offers-form-box .offers-field-text,
.offers-tab-ui .offers-form-box .offers-field-icon,
.offers-tab-ui .offers-form-box .offers-field-small{
  grid-column:auto;
}

.offers-tab-ui .offers-form-box-icons .offers-icon-picker{
  margin-top:2px;
}

/* تقويم العروض: هوامش داخلية متساوية وتوزيع 7 أعمدة فعلي */
body .flatpickr-calendar.sadaa-offers-calendar{
  width:320px!important;
  min-width:320px!important;
  padding:0!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-months{
  width:100%!important;
  padding:8px 44px!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-rContainer{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdays{
  width:100%!important;
  height:auto!important;
  padding:0 8px!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdaycontainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

body .flatpickr-calendar.sadaa-offers-calendar span.flatpickr-weekday{
  width:auto!important;
  max-width:none!important;
  height:34px!important;
  line-height:34px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .days{
  width:100%!important;
  min-width:0!important;
  padding:7px 8px 9px!important;
  overflow:visible!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .dayContainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:1px 0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
  justify-content:stretch!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day{
  width:100%!important;
  max-width:none!important;
  height:36px!important;
  line-height:34px!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}

@media(max-width:1100px){
  .offers-tab-ui .offers-form-box-duration{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1100px){
  .offers-tab-ui .offers-form-box{
    padding:11px;
    gap:11px;
  }

  .offers-tab-ui .offers-form-box-main,
  .offers-tab-ui .offers-form-box-duration{
    grid-template-columns:1fr;
  }
}

@media(max-width:420px){
  body .flatpickr-calendar.sadaa-offers-calendar{
    width:min(320px,calc(100vw - 24px))!important;
    min-width:0!important;
  }
}



/*
 * إصلاح هوامش Flatpickr الفعلي:
 * الحاوية الصحيحة للأيام اسمها .flatpickr-days وليست .days.
 */
body .flatpickr-calendar.sadaa-offers-calendar{
  width:320px!important;
  min-width:320px!important;
  padding:0!important;
  overflow:hidden!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-rContainer{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* أسماء أيام الأسبوع — نفس الهامش تماماً */
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdays{
  width:100%!important;
  margin:0!important;
  padding:0 14px!important;
  box-sizing:border-box!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdaycontainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body .flatpickr-calendar.sadaa-offers-calendar span.flatpickr-weekday{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
}

/* هذه هي الحاوية الحقيقية لشبكة الأيام */
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-days{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:8px 14px 10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .dayContainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:2px 0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  justify-content:stretch!important;
  box-sizing:border-box!important;
}

body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day{
  width:34px!important;
  max-width:34px!important;
  height:34px!important;
  line-height:32px!important;
  margin:0!important;
  padding:0!important;
  justify-self:center!important;
  text-align:center!important;
}

/* رأس التقويم بنفس التوازن */
body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-months{
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}

@media(max-width:420px){
  body .flatpickr-calendar.sadaa-offers-calendar{
    width:min(320px,calc(100vw - 24px))!important;
    min-width:0!important;
  }

  body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-weekdays{
    padding-inline:12px!important;
  }

  body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-days{
    padding:7px 12px 9px!important;
  }

  body .flatpickr-calendar.sadaa-offers-calendar .flatpickr-day{
    width:32px!important;
    max-width:32px!important;
    height:32px!important;
    line-height:30px!important;
  }
}



/* محاذاة سطر الملاحظة + العرض نشط + زر الحفظ */
.offers-tab-ui .offers-form-footer{
  align-items:center!important;
}

.offers-tab-ui .offers-form-note{
  align-items:center!important;
}

.offers-tab-ui .offers-footer-side{
  align-items:center!important;
}

.offers-tab-ui .offers-check{
  align-self:center!important;
  transform:none!important;
}

/* بطاقة العروض الحالية: الشكل من Design System، وهنا فقط المسافة السياقية */
.offers-tab-ui .offers-current-card{margin:12px}
.offers-tab-ui .offers-current-card .offers-table-wrap{overflow-x:auto}

@media (max-width:1100px){
  .offers-tab-ui .offers-current-card{
    margin:10px;
  }

  .offers-tab-ui .offers-current-card-body .offers-table tbody{
    padding:10px;
  }

  .offers-tab-ui .offers-check{
    height:38px;
    min-height:38px;
    line-height:38px;
  }

  .offers-tab-ui .offers-check span{
    height:38px;
    min-height:38px;
    line-height:38px;
  }
}



/* محاذاة أعمدة جدول العروض — سطح المكتب */
@media(min-width:1101px){
  .offers-tab-ui .offers-table th,
  .offers-tab-ui .offers-table td{
    text-align:center;
    vertical-align:middle;
  }

  .offers-tab-ui .offers-title-preview{
    align-items:center;
    justify-content:center;
    text-align:right;
  }

  .offers-tab-ui .offers-duration{
    justify-content:center;
  }

  .offers-tab-ui .offers-validity{
    justify-items:center;
    text-align:center;
  }

  .offers-tab-ui .offers-validity span{
    justify-content:center;
  }

  .offers-tab-ui .offers-row-actions{
    justify-content:center;
  }

  .offers-tab-ui .offers-status{
    margin-inline:auto;
  }
}



/* رأس بطاقة العروض الحالية بلون هوية الموقع */
.offers-tab-ui .offers-panel-current > .offers-panel-head{
  background:var(--sadaa-admin-primary)!important;
  border-bottom-color:var(--sadaa-admin-primary)!important;
}

.offers-tab-ui .offers-panel-current > .offers-panel-head .offers-panel-title h3{
  color:#fff!important;
}

.offers-tab-ui .offers-panel-current > .offers-panel-head .offers-panel-title p{
  color:rgba(255,255,255,.82)!important;
}

.offers-tab-ui .offers-panel-current > .offers-panel-head .offers-panel-title-icon{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.24)!important;
  color:#fff!important;
}

.offers-tab-ui .offers-panel-current > .offers-panel-head .offers-panel-count{
  background:rgba(255,255,255,.12)!important;
  border-color:rgba(255,255,255,.22)!important;
  color:#fff!important;
}

.offers-tab-ui .offers-panel-current > .offers-panel-head .offers-panel-count i{
  color:#fff!important;
}



@media (max-width:1100px){
  .offers-tab-ui .offers-form{
    padding:10px;
  }
  .offers-tab-ui .offers-form-grid{
    gap:8px;
  }
  .offers-tab-ui .offers-form-box{
    padding:10px;
    gap:8px;
  }
  .offers-tab-ui .offers-field{
    gap:4px;
  }
  .offers-tab-ui .offers-field-label{
    line-height:1.5;
  }
  .offers-tab-ui .offers-icon-picker{
    gap:6px;
  }
  .offers-tab-ui .offers-icon-option span{
    height:38px;
  }
  .offers-tab-ui .offers-form-footer{
    gap:10px;
    padding-top:10px;
  }
  .offers-tab-ui .offers-current-card-body.sadaa-accordion__body--flush{
    padding:8px!important;
  }
  .offers-tab-ui .offers-current-card-body .offers-table-wrap{
    margin:0;
    border-radius:7px;
    overflow:hidden;
  }
  .offers-tab-ui .offers-table tbody{
    padding:8px;
    gap:8px;
  }
}
@media (max-width:520px){
  .offers-tab-ui .offers-form-box{
    padding:9px;
  }
  .offers-tab-ui .offers-icon-picker{
    gap:5px;
  }
  .offers-tab-ui .offers-table tbody{
    padding:7px;
  }
}



@media (max-width:1100px){
  /* dashboard.css يضيف margin كبيراً لكل label؛ حقول العروض هي labels بحد ذاتها. */
  .offers-tab-ui label.offers-field{
    margin:0!important;
  }
  .offers-tab-ui .offers-form-grid{
    row-gap:6px!important;
    column-gap:6px!important;
  }
  .offers-tab-ui .offers-form-box{
    padding:9px!important;
    gap:5px!important;
  }
  .offers-tab-ui .offers-field{
    gap:3px!important;
  }
  .offers-tab-ui .offers-field-label{
    margin:0!important;
    line-height:1.45;
  }
  .offers-tab-ui .offers-form-box-icons .offers-icon-picker{
    margin-top:0!important;
  }
  .offers-tab-ui .offers-icon-picker{
    gap:5px!important;
  }
  .offers-tab-ui .offers-form-footer{
    margin-top:0!important;
    padding-top:8px!important;
    gap:8px!important;
  }
}



@media (max-width:1100px){
  /* توحيد كثافة الأسطر مع تقرير الطلبات وإلغاء هوامش label العامة القديمة. */
  .offers-tab-ui .offers-form{
    padding:10px!important;
  }
  .offers-tab-ui .offers-form-grid{
    gap:10px!important;
  }
  .offers-tab-ui .offers-form-box{
    padding:10px!important;
    gap:8px!important;
  }
  .offers-tab-ui .offers-form-box-main,
  .offers-tab-ui .offers-form-box-duration{
    row-gap:8px!important;
  }
  .offers-tab-ui label.offers-field,
  .offers-tab-ui label.offers-icon-option{
    margin:0!important;
  }
  .offers-tab-ui .offers-field{
    gap:4px!important;
  }
  .offers-tab-ui .offers-field-label{
    margin:0!important;
    line-height:1.45!important;
  }
  .offers-tab-ui .offers-icon-picker{
    row-gap:8px!important;
    column-gap:6px!important;
  }
  .offers-tab-ui .offers-form-box-icons .offers-icon-picker{
    margin-top:0!important;
  }
  .offers-tab-ui .offers-form-footer{
    margin-top:0!important;
    padding-top:9px!important;
    gap:9px!important;
  }
}



/*
 * Flatpickr يحسب موضعه قبل تطبيق العرض المصغر أحياناً، فيبقى جزء منه خارج
 * الشاشة على 320px. في المقاسات الضيقة نثبت العرض والموضع داخل الـ viewport.
 */
@media (max-width:360px){
  body .flatpickr-calendar.sadaa-offers-calendar,
  body .flatpickr-calendar.sadaa-offers-calendar.open{
    width:calc(100vw - 24px) !important;
    min-width:0 !important;
    max-width:calc(100vw - 24px) !important;
    left:12px !important;
    right:auto !important;
    transform:none !important;
    box-sizing:border-box !important;
  }
}







@media (min-width:721px) and (max-width:1100px){
  /* حقول المدة والتواريخ: كل حقلين في صف واحد على التابلت. */
  .offers-tab-ui .offers-form-box-duration{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:10px!important;
    row-gap:8px!important;
  }
  .offers-tab-ui .offers-form-box-duration > .offers-field-small{
    grid-column:auto!important;
    min-width:0!important;
  }
}





/* ---- V103: tab_site_activity.php ---- */
.site-presence-page,
.site-presence-page *{box-sizing:border-box}

.site-presence-page{
  --sp-text:#172033;
  --sp-muted:#64748b;
  --sp-border:#e5e7eb;
  --sp-primary:var(--sadaa-admin-primary);
  --sp-primary-2:var(--sadaa-admin-primary);
  width:100%;
  max-width:none;
  margin:0;
  color:var(--sp-text);
  font-family:var(--site-font-family);
}

.site-presence-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(135deg,var(--sadaa-admin-hover),var(--sadaa-admin-primary));
}

.site-presence-hero:before,
.site-presence-hero:after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  pointer-events:none;
}

.site-presence-hero:before{width:150px;height:150px;top:-80px;left:-55px}
.site-presence-hero:after{width:100px;height:100px;bottom:-52px;right:31%;}

.site-presence-hero-main,
.site-presence-hero-meta{position:relative;z-index:1}

.site-presence-hero-main{display:flex;align-items:center;gap:12px}
.site-presence-hero-icon{
  width:44px;height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:8px;
  font-size:18px;
}

.site-presence-hero h2{
  margin:0;
  font-size:20px;
  font-weight:500;
  line-height:1.5;
}

.site-presence-hero p{
  margin:3px 0 0;
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.8;
}

.site-presence-hero-meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:7px;
  background:rgba(255,255,255,.14);
  font-size:12px;
  white-space:nowrap;
}

.site-maintenance-control{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  padding:15px 16px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#ffffff;
}

.site-maintenance-control.is-enabled{
  border-color:#fed7aa;
  background:#fffaf3;
}

.site-registration-control.is-disabled{
  border-color:var(--sadaa-admin-soft-line);
  background:#fff8f8;
}

.site-maintenance-main{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-width:0;
}

.site-maintenance-icon{
  width:38px;
  height:38px;
  min-width:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#f8fafc;
  color:#64748b;
}

.site-maintenance-control.is-enabled .site-maintenance-icon{
  color:#b45309;
  border-color:#fed7aa;
  background:#fff7ed;
}

.site-registration-control.is-disabled .site-maintenance-icon{
  color:var(--sadaa-admin-dark);
  border-color:var(--sadaa-admin-soft-line);
  background:var(--sadaa-admin-soft);
}

.site-maintenance-copy h3{
  margin:0;
  color:#172033;
  font-size:14px;
  font-weight:500;
  line-height:1.6;
}

.site-maintenance-copy p{
  margin:3px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.8;
}

.site-maintenance-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  padding:4px 8px;
  border:1px solid #d1fae5;
  border-radius:6px;
  background:#ecfdf5;
  color:#166534;
  font-size:11.5px;
}

.site-maintenance-control.is-enabled .site-maintenance-status{
  border-color:#fed7aa;
  background:#fff7ed;
  color:var(--sadaa-admin-dark);
}

.site-registration-control.is-disabled .site-maintenance-status{
  border-color:var(--sadaa-admin-soft-line);
  background:var(--sadaa-admin-soft);
  color:var(--sadaa-admin-dark);
}

.site-maintenance-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}

.site-maintenance-btn,
.site-maintenance-access{
  min-height:38px;
  padding:8px 11px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-family:inherit;
  font-size:12.5px;
  font-weight:400;
  text-decoration:none;
  cursor:pointer;
}

.site-maintenance-btn{
  border:1px solid #111827;
  background:#111827;
  color:#ffffff;
}

.site-maintenance-btn:hover:not(:disabled){
  background:#000000;
}

.site-maintenance-btn:disabled{
  opacity:.55;
  cursor:wait;
}

.site-maintenance-access{
  border:1px solid #d1d5db;
  background:#ffffff;
  color:#374151;
}

.site-maintenance-access:hover{
  border-color:#9ca3af;
  background:#f9fafb;
}

.site-maintenance-message{
  display:none;
  width:100%;
  margin-top:8px;
  color:#166534;
  font-size:11.5px;
  line-height:1.7;
}

.site-maintenance-message.show{display:block}
.site-maintenance-message.error{color:var(--sadaa-admin-dark)}

.site-presence-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.site-presence-card{
  position:relative;
  overflow:hidden;
  min-height:125px;
  padding:17px;
  border:1px solid var(--sp-border);
  border-radius:8px;
  background:#fff;
}

.site-presence-card:before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:4px;
  height:100%;
  background:var(--sp-card-accent,var(--sadaa-admin-primary));
}

.site-presence-card--total{--sp-card-accent:var(--sadaa-admin-primary)}
.site-presence-card--members{--sp-card-accent:#2563eb}
.site-presence-card--guests{--sp-card-accent:#0f766e}
.site-presence-card--today{--sp-card-accent:#d97706}
.site-presence-card--unique{--sp-card-accent:var(--sadaa-admin-primary)}
.site-presence-card--all{--sp-card-accent:#475569}

.site-presence-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--sp-muted);
  font-size:13px;
  line-height:1.6;
}

.site-presence-card-icon{
  width:34px;height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  color:var(--sp-card-accent,var(--sadaa-admin-primary));
  background:#f8fafc;
  font-size:14px;
}

.site-presence-card-number{
  margin-top:15px;
  color:var(--sp-text);
  font-size:30px;
  font-weight:500;
  line-height:1;
  direction:ltr;
  text-align:right;
}

.site-presence-card-note{
  margin-top:8px;
  color:#94a3b8;
  font-size:11.5px;
  line-height:1.7;
}

.site-presence-info{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:16px;
  padding:13px 14px;
  border:1px solid #dce7f7;
  border-radius:8px;
  background:#f8fbff;
  color:#475569;
  font-size:12.5px;
  line-height:1.9;
}

.site-presence-info i{color:#2563eb;margin-top:4px}
.site-presence-info strong{font-weight:500;color:#1e3a8a}

.site-presence-error{
  margin-top:16px;
  padding:14px;
  border:1px solid var(--sadaa-admin-soft-line);
  border-radius:8px;
  background:var(--sadaa-admin-soft);
  color:var(--sadaa-admin-dark);
  font-size:13px;
  line-height:1.9;
}

@media (max-width:1100px){
  .site-presence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1100px){
  .site-maintenance-control{
    align-items:stretch;
    flex-direction:column;
  }

  .site-maintenance-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .site-maintenance-btn,
  .site-maintenance-access{
    width:100%;
  }

  .site-registration-actions{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .site-presence-hero{align-items:flex-start;flex-direction:column;padding:18px}
  .site-presence-hero-meta{width:100%;justify-content:center}
  .site-presence-grid{grid-template-columns:1fr}
  .site-presence-card{min-height:108px}
}



/* صدى المتاجر — الهوية البصرية الجديدة للوحة التحكم */
:root{
  --sadaa-admin-blue:var(--sadaa-admin-primary);
  --sadaa-admin-blue-hover:var(--sadaa-admin-hover);
  --sadaa-admin-blue-soft:var(--sadaa-admin-soft);
  --sadaa-admin-white:#fff;
  --sadaa-admin-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .055);
}




.site-presence-page{color:var(--sadaa-admin-text)}
.site-presence-page .site-presence-hero{position:relative;overflow:hidden;background:var(--sadaa-admin-hero-gradient)!important;border:0!important;border-radius:8px!important;box-shadow:0 10px 26px rgba(var(--sadaa-admin-dark-rgb), .09)!important;padding:22px 24px!important;color:#fff!important}.site-presence-page .site-presence-hero::before{width:160px!important;height:160px!important;left:-72px!important;top:-92px!important;background:transparent!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 0 0 30px rgba(255,255,255,.045),0 0 0 60px rgba(255,255,255,.025)!important}.site-presence-page .site-presence-hero::after{width:96px!important;height:96px!important;right:-35px!important;bottom:-52px!important;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.11)!important}.site-presence-page .site-presence-hero-icon{border-color:rgba(255,255,255,.22)!important;color:#fff!important}.site-presence-page .site-presence-hero h2{color:#fff!important;font-weight:500!important}.site-presence-page .site-presence-hero p{color:rgba(255,255,255,.78)!important}.site-presence-page .site-presence-hero-meta{background:rgba(var(--sadaa-admin-dark-rgb), .19)!important;border-color:rgba(255,255,255,.17)!important;color:#fff!important}
.site-presence-page .site-maintenance-control,.site-presence-page .site-presence-card,.site-presence-page .site-presence-info{border-color:var(--sadaa-admin-line)!important;border-radius:8px!important;box-shadow:var(--sadaa-admin-shadow)!important;background:#fff!important}.site-presence-page .site-maintenance-icon,.site-presence-page .site-presence-card-icon{background:var(--sadaa-admin-blue-soft)!important;color:var(--sadaa-admin-blue)!important;border-color:#d7e8f5!important}.site-presence-page .site-presence-card-number{color:var(--sadaa-admin-dark)!important}.site-presence-page .site-presence-info i{color:var(--sadaa-admin-blue)!important}.site-presence-page .site-maintenance-access{color:var(--sadaa-admin-dark)!important;background:#fff!important;border-color:#d8e5ef!important}
@media (max-width:1100px){.site-presence-page .site-presence-hero{padding:18px!important}}
@media (min-width:1101px){
  .site-presence-page{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
}




/* ===== تنظيم إعدادات حركة الموقع مثل صفوف إعدادات دليل المتاجر ===== */
.site-presence-page .site-activity-settings-card{
  margin-top:16px;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  box-shadow:none;
}

/* كل إعداد صف كامل داخل الحاوية نفسها */
.site-presence-page .site-activity-settings-card > .site-maintenance-control{
  margin:0 !important;
  min-height:86px;
  padding:14px !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid var(--sadaa-admin-soft-line) !important;
  border-radius:8px !important;
  background:var(--sadaa-admin-soft) !important;
  box-shadow:none !important;
}

.site-presence-page .site-activity-settings-card > .site-maintenance-control + .site-maintenance-control{
  margin-top:8px !important;
}

/* لا نغيّر خلفية الصف حسب الحالة؛ الحالة تظهر فقط في الشارة */
.site-presence-page .site-activity-settings-card > .site-maintenance-control.is-enabled,
.site-presence-page .site-activity-settings-card > .site-registration-control.is-disabled{
  background:var(--sadaa-admin-soft) !important;
  border-color:var(--sadaa-admin-soft-line) !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:11px;
}

.site-presence-page .site-activity-settings-card .site-maintenance-icon{
  width:38px;
  height:38px;
  min-width:38px;
  border:1px solid var(--sadaa-admin-soft-line) !important;
  border-radius:8px;
  background:#fff !important;
  color:var(--sadaa-admin-primary) !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy{
  min-width:0;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy h3{
  margin:0;
  color:var(--sadaa-admin-dark);
  font-size:13.5px;
  font-weight:600;
  line-height:1.7;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy p{
  margin:3px 0 0;
  color:#6b7280;
  font-size:12px;
  line-height:1.85;
}

.site-presence-page .site-activity-settings-card .site-maintenance-status{
  margin-top:7px;
  width:max-content;
  max-width:100%;
}

/* الإجراءات في الجهة المقابلة، بدون تحويلها إلى بطاقة مستقلة */
.site-presence-page .site-activity-settings-card .site-maintenance-actions{
  flex:0 0 auto;
  min-width:245px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex-wrap:wrap;
}

.site-presence-page .site-activity-settings-card .site-registration-actions{
  min-width:245px;
}

.site-presence-page .site-activity-settings-card .site-maintenance-btn,
.site-presence-page .site-activity-settings-card .site-maintenance-access{
  min-height:38px;
  box-shadow:none !important;
}

/* زر رئيسي بهوية الموقع بدلاً من الأسود */
.site-presence-page .site-activity-settings-card .site-maintenance-btn{
  border-color:var(--sadaa-admin-primary) !important;
  background:var(--sadaa-admin-primary) !important;
  color:#fff !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-btn:hover:not(:disabled){
  border-color:var(--sadaa-admin-dark) !important;
  background:var(--sadaa-admin-dark) !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-access{
  border-color:#d8dee7 !important;
  background:#fff !important;
  color:#475569 !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-access:hover{
  border-color:var(--sadaa-admin-soft-line) !important;
  background:#fff !important;
  color:var(--sadaa-admin-dark) !important;
}

@media (max-width:1100px){
  .site-presence-page .site-activity-settings-card{
    padding:10px;
  }

  .site-presence-page .site-activity-settings-card > .site-maintenance-control{
    min-height:0;
    padding:12px !important;
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }

  .site-presence-page .site-activity-settings-card .site-maintenance-actions,
  .site-presence-page .site-activity-settings-card .site-registration-actions{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .site-presence-page .site-activity-settings-card .site-registration-actions{
    grid-template-columns:1fr;
  }

  .site-presence-page .site-activity-settings-card .site-maintenance-btn,
  .site-presence-page .site-activity-settings-card .site-maintenance-access{
    width:100%;
  }
}



/* ===== مفاتيح ON/OFF لإعدادات حركة الموقع ===== */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
  min-width:170px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

.site-presence-page .site-activity-switch{
  position:relative;
  width:42px;
  height:24px;
  flex:0 0 42px;
  display:inline-block;
  cursor:pointer;
}

.site-presence-page .site-activity-switch input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.site-presence-page .site-activity-switch-track{
  position:absolute;
  inset:0;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#e5e7eb;
  transition:background .18s ease,border-color .18s ease,opacity .18s ease;
}

.site-presence-page .site-activity-switch-track::after{
  content:"";
  position:absolute;
  top:3px;
  right:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(15,23,42,.20);
  transition:transform .18s ease;
}

.site-presence-page .site-activity-switch input:checked + .site-activity-switch-track{
  background:var(--sadaa-admin-primary);
  border-color:var(--sadaa-admin-primary);
}

.site-presence-page .site-activity-switch input:checked + .site-activity-switch-track::after{
  transform:translateX(-18px);
}

.site-presence-page .site-activity-switch input:disabled + .site-activity-switch-track{
  opacity:.55;
  cursor:wait;
}

.site-presence-page .site-maintenance-access--compact{
  min-height:36px !important;
  padding:7px 10px !important;
  font-size:12px !important;
}

@media (max-width:1100px){
  .site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
    width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }

  .site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
    justify-content:flex-start;
  }

  .site-presence-page .site-maintenance-access--compact{
    width:auto !important;
  }
}



/* ===== صقل ترتيب إعدادات حركة الموقع بدون تكلف ===== */

/* الصف نفسه: محتوى واضح يميناً + منطقة تحكم ثابتة يساراً */
.site-presence-page .site-activity-settings-card > .site-maintenance-control{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 230px;
  align-items:center !important;
  column-gap:24px !important;
  min-height:104px;
  padding:15px 16px !important;
}

/* المحتوى */
.site-presence-page .site-activity-settings-card .site-maintenance-main{
  grid-column:1;
  width:100%;
  min-width:0;
  align-items:flex-start;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy{
  min-width:0;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy h3{
  font-size:14px;
  line-height:1.6;
}

.site-presence-page .site-activity-settings-card .site-maintenance-copy p{
  max-width:720px;
  margin-top:4px;
  font-size:12px;
  line-height:1.8;
}

.site-presence-page .site-activity-settings-card .site-maintenance-status{
  margin-top:7px;
}

/* منطقة التحكم: نفس العرض والموقع في الصفين */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
  grid-column:2;
  width:230px;
  min-width:230px;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 42px;
  align-items:center;
  gap:10px;
  justify-self:stretch;
}

/* رابط الإدارة في الخانة الأولى، والمفتاح دائماً في الخانة اليسرى */
.site-presence-page .site-activity-settings-card .site-maintenance-access--compact{
  grid-column:1;
  justify-self:start;
  min-height:36px !important;
  padding:7px 10px !important;
  border-radius:7px;
  font-size:12px !important;
  white-space:nowrap;
}

.site-presence-page .site-activity-settings-card .site-activity-switch{
  grid-column:2;
  justify-self:end;
}

/* صف التسجيل لا يحتوي رابطاً؛ نحافظ على المفتاح في نفس موضع الصف الأول */
.site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
  grid-template-columns:minmax(0,1fr) 42px;
}

.site-presence-page .site-activity-settings-card .site-registration-actions .site-activity-switch{
  grid-column:2;
}

/* توازن بصري أدق للأيقونة */
.site-presence-page .site-activity-settings-card .site-maintenance-icon{
  margin-top:1px;
}

/* فصل هادئ بين الصفين */
.site-presence-page .site-activity-settings-card > .site-maintenance-control + .site-maintenance-control{
  margin-top:9px !important;
}

/* الجوال: يعود كل شيء لعمود واحد بدون ازدحام */
@media (max-width:1100px){
  .site-presence-page .site-activity-settings-card > .site-maintenance-control{
    grid-template-columns:1fr;
    row-gap:12px !important;
    min-height:0;
    padding:13px !important;
  }

  .site-presence-page .site-activity-settings-card .site-maintenance-main,
  .site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
    grid-column:1;
  }

  .site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
    width:100%;
    min-width:0;
    grid-template-columns:minmax(0,1fr) 42px;
    padding-top:2px;
  }

  .site-presence-page .site-activity-settings-card .site-maintenance-copy p{
    max-width:none;
  }
}



/* ===== الحالة ومفتاح التشغيل في صف أفقي موحد ===== */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch{
  grid-column:2;
  width:220px;
  min-width:220px;
  display:flex !important;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  justify-self:stretch;
  white-space:nowrap;
}

.site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
  display:flex !important;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
}

.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch .site-maintenance-status{
  flex:0 0 auto;
  width:auto;
  max-width:none;
  margin:0 !important;
}

.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch .site-activity-switch{
  flex:0 0 42px;
  margin:0;
  justify-self:auto;
  grid-column:auto;
}

/* رسالة الحفظ تبقى داخل جهة المحتوى ولا تؤثر على محاذاة عناصر التحكم */
.site-presence-page .site-activity-settings-card .site-maintenance-message{
  margin-top:7px;
}

/* لم يعد رابط دخول الإدارة مستخدماً */
.site-presence-page .site-maintenance-access--compact{
  display:none !important;
}

@media (max-width:1100px){
  .site-presence-page .site-activity-settings-card .site-maintenance-actions--switch,
  .site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
    grid-column:1;
    width:100%;
    min-width:0;
    display:flex !important;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    gap:10px;
    padding-top:2px;
  }
}



/* ===== تثبيت موضع مفاتيح ON/OFF وتلوين الحالة حسب وضع المفتاح ===== */

/* منطقة التحكم بعرض ثابت في الصفين */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch,
.site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
  grid-column:2;
  width:220px;
  min-width:220px;
  display:grid !important;
  grid-template-columns:42px max-content;
  align-items:center;
  justify-content:start;
  column-gap:10px;
  direction:ltr;
  justify-self:stretch;
  white-space:nowrap;
}

/* المفتاح دائماً في نفس الموضع */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch .site-activity-switch{
  grid-column:1;
  grid-row:1;
  justify-self:start;
  margin:0;
}

/* الحالة بجوار المفتاح مباشرة */
.site-presence-page .site-activity-settings-card .site-maintenance-actions--switch .site-maintenance-status{
  grid-column:2;
  grid-row:1;
  justify-self:start;
  width:auto;
  max-width:none;
  margin:0 !important;
  direction:rtl;
}

/* ON = أخضر */
.site-presence-page #siteMaintenanceControl.is-enabled .site-maintenance-status,
.site-presence-page #siteRegistrationControl:not(.is-disabled) .site-maintenance-status{
  border-color:#bbf7d0 !important;
  background:#ecfdf3 !important;
  color:#166534 !important;
}

.site-presence-page #siteMaintenanceControl.is-enabled .site-maintenance-status i,
.site-presence-page #siteRegistrationControl:not(.is-disabled) .site-maintenance-status i{
  color:#16a34a !important;
}

/* OFF = أحمر هادئ */
.site-presence-page #siteMaintenanceControl:not(.is-enabled) .site-maintenance-status,
.site-presence-page #siteRegistrationControl.is-disabled .site-maintenance-status{
  border-color:#fecaca !important;
  background:#fff5f5 !important;
  color:#b42318 !important;
}

.site-presence-page #siteMaintenanceControl:not(.is-enabled) .site-maintenance-status i,
.site-presence-page #siteRegistrationControl.is-disabled .site-maintenance-status i{
  color:#dc2626 !important;
}

/* الجوال: نفس العلاقة الأفقية بين المفتاح والحالة */
@media (max-width:1100px){
  .site-presence-page .site-activity-settings-card .site-maintenance-actions--switch,
  .site-presence-page .site-activity-settings-card .site-registration-actions.site-maintenance-actions--switch{
    grid-column:1;
    width:100%;
    min-width:0;
    grid-template-columns:42px max-content;
    justify-content:start;
    padding-top:2px;
  }
}





/* ---- V103: coupon_form.php ---- */
.coupon-form-shell,
.coupon-form-shell *{
  box-sizing:border-box;
}

.coupon-form-shell{
  --coupon-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --coupon-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --coupon-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --coupon-soft:var(--sadaa-admin-soft,rgba(var(--coupon-brand-rgb),.07));
  --coupon-line:var(--sadaa-admin-soft-line,rgba(var(--coupon-brand-rgb),.18));
  --coupon-border:#e5e7eb;
  --coupon-muted:#6b7280;
  --coupon-text:#1f2937;
  direction:rtl;
  color:var(--coupon-text);
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif);
}

.coupon-form-shell a,
.coupon-form-shell button,
.coupon-form-shell input,
.coupon-form-shell select{
  font-family:inherit;
}

/* رأس النموذج */
.coupon-form-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:18px 20px;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.22) 0,rgba(255,255,255,.22) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.14) 0,rgba(255,255,255,.14) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient,linear-gradient(90deg,var(--sadaa-primary) 0%,var(--sadaa-primary) 75%,var(--sadaa-accent) 100%));
  color:#fff;
}

.coupon-form-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.coupon-form-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:16px;
}

.coupon-form-title h2{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:500;
  line-height:1.5;
}

.coupon-form-title p{
  margin:3px 0 0;
  color:rgba(255,255,255,.84);
  font-size:13px;
  line-height:1.8;
}

.coupon-form-back{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:7px;
  background:#fff;
  color:var(--coupon-brand-dark);
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}

/* الحاوية */
.coupon-form-card{
  padding:18px;
  border:1px solid var(--coupon-border);
  border-radius:8px;
  background:#fff;
}

.coupon-form-card form{
  margin:0;
}

.coupon-form-note,
.coupon-form-message{
  display:flex;
  align-items:center;
  gap:9px;
  width:auto;
  margin:0 20px 8px;
  padding:9px 12px;
  border-radius:8px;
  font-size:13px;
  line-height:1.7;
}

.coupon-form-note{
  border:1px solid var(--coupon-line);
  background:var(--sadaa-surface-alt);
  color:#4b5563;
}

.coupon-form-note i{
  margin-top:0;
  color:var(--coupon-brand);
  flex:0 0 auto;
}

.coupon-form-message.success{
  border:1px solid #bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.coupon-form-message.error{
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.coupon-form-message[hidden]{
  display:none !important;
}

/* الأقسام */
.coupon-form-section{
  margin-top:6px;
  padding:0;
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}

.coupon-form-section:first-of-type{
  margin-top:0;
}

.coupon-section-head{
  margin:0;
  padding:8px 12px;
  border-bottom:1px solid #eceff3;
  background:#fafafa;
}

.coupon-section-title{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.coupon-section-icon{
  width:30px;
  height:30px;
  min-width:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--coupon-line);
  border-radius:7px;
  background:var(--coupon-soft);
  color:var(--coupon-brand);
  font-size:12px;
}

.coupon-section-title h3{
  margin:0;
  color:#374151;
  font-size:14px;
  font-weight:500;
  line-height:1.55;
}

.coupon-section-title p{
  margin:2px 0 0;
  color:#8a93a1;
  font-size:12px;
  line-height:1.55;
}

.coupon-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  padding:6px 12px 10px;
}

.coupon-form-grid--main{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* الحقول */
.coupon-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  padding:0;
}

.coupon-field label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#374151;
  font-size:13.5px;
  font-weight:500;
}

.coupon-field-label-icon{
  width:18px;
  min-width:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--coupon-brand);
  font-size:14px;
  line-height:1;
}

.coupon-field .required{
  color:var(--coupon-brand);
}

.coupon-field small{
  margin-top:-1px;
  color:#8a93a1;
  font-size:11.5px;
  line-height:1.55;
}

.coupon-field input,
.coupon-field select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:7px;
  background:#fff;
  color:#111827;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease,background .15s ease;
}

.coupon-field input::placeholder{
  color:#9ca3af;
}

#couponCode{
  direction:ltr;
  text-align:left;
  letter-spacing:.3px;
  font-weight:500;
}

#couponValue,
#couponLimit{
  direction:ltr;
  text-align:left;
}

.coupon-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-left:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M3.5 5.5h9L8 11z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:left 11px center;
  background-size:14px 14px;
  cursor:pointer;
}

.coupon-field input:hover,
.coupon-field select:hover{
  border-color:#b8bec8;
}

.coupon-field input:focus,
.coupon-field select:focus{
  border-color:#6b7280;
  box-shadow:none;
  background:#fff;
}

/* التاريخ */
.coupon-date-wrapper{
  position:relative;
}

.coupon-date-wrapper input{
  padding-left:42px;
  cursor:pointer;
}

.coupon-date-wrapper > i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#7b8492;
  pointer-events:none;
  font-size:14px;
}

/* الحالة */
.coupon-status-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 12px;
}

.coupon-status-copy{
  min-width:0;
}

.coupon-status-toggle{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:7px;
  background:#fff;
  color:#374151;
  cursor:pointer;
  user-select:none;
}






.coupon-switch-label{
  font-size:13px;
  font-weight:500;
}

/* الأزرار */
.coupon-form-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 0;
  padding:14px 0 0;
  border-top:1px solid #e5e7eb;
  background:transparent;
}

.coupon-form-submit,
.coupon-form-cancel{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 16px;
  border-radius:7px;
  font:inherit;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
}

.coupon-form-submit{
  border:1px solid var(--coupon-brand);
  background:var(--coupon-brand);
  color:#fff;
}

.coupon-form-submit:hover:not(:disabled){
  border-color:var(--coupon-brand-dark);
  background:var(--coupon-brand-dark);
}

.coupon-form-submit:disabled{
  opacity:.65;
  cursor:wait;
}

.coupon-form-cancel{
  border:1px solid #d1d5db;
  background:#fff;
  color:#374151;
}

.coupon-form-cancel:hover{
  background:#f8f9fb;
}

/* التركيز */
.coupon-form-shell a:focus-visible,
.coupon-form-shell button:focus-visible{
  outline:2px solid rgba(var(--coupon-brand-rgb),.34);
  outline-offset:2px;
}

/* تقويم Flatpickr — توزيع متوازن 7 أعمدة */
body .flatpickr-calendar.sadaa-coupon-calendar,
body .flatpickr-calendar.sadaa-coupon-calendar *{
  box-sizing:border-box;
  font-family:var(--site-font-family,Tahoma,Arial,sans-serif)!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar{
  width:308px!important;
  min-width:308px!important;
  direction:rtl;
  overflow:hidden!important;
  margin-top:7px;
  padding:0!important;
  border:1px solid #e5e7eb;
  border-radius:9px;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(17,24,39,.16);
  color:#111827;
  z-index:99999;
}

body .flatpickr-calendar.sadaa-coupon-calendar::before,
body .flatpickr-calendar.sadaa-coupon-calendar::after{
  display:none!important;
}

/* رأس الشهر */
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-months{
  position:relative;
  width:100%!important;
  min-height:50px;
  padding:6px 42px!important;
  display:flex;
  align-items:center;
  background:var(--sadaa-admin-hero-gradient,var(--coupon-brand))!important;
  color:#fff!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-month{
  width:100%!important;
  height:38px!important;
  color:#fff!important;
  fill:#fff!important;
  background:transparent!important;
  overflow:visible!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month{
  position:static!important;
  width:100%!important;
  height:38px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:38px!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .cur-month,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month input.cur-year{
  color:#fff!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-current-month .numInputWrapper{
  width:62px!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month{
  position:absolute!important;
  top:8px!important;
  width:32px!important;
  height:32px!important;
  padding:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:6px;
  color:#fff!important;
  fill:#fff!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-prev-month{
  left:7px!important;
  right:auto!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-next-month{
  right:7px!important;
  left:auto!important;
}

/* الحاويات الداخلية */
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-innerContainer,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-rContainer{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

/* أسماء أيام الأسبوع */
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-weekdays{
  width:100%!important;
  height:auto!important;
  padding:0 7px!important;
  background:var(--sadaa-tint-3)!important;
  border-bottom:1px solid var(--sadaa-tint-3);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-weekdaycontainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar span.flatpickr-weekday{
  width:auto!important;
  max-width:none!important;
  height:32px!important;
  line-height:32px!important;
  margin:0!important;
  padding:0!important;
  color:#6b7280!important;
  background:var(--sadaa-tint-3)!important;
  font-size:10.5px!important;
  font-weight:500!important;
  text-align:center!important;
}

/* الأيام */
body .flatpickr-calendar.sadaa-coupon-calendar .days{
  width:100%!important;
  min-width:0!important;
  padding:6px 7px 8px!important;
  overflow:visible!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .dayContainer{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:1px 0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:0!important;
  justify-content:stretch!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day{
  width:100%!important;
  max-width:none!important;
  height:34px!important;
  line-height:32px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid transparent;
  border-radius:7px;
  color:#374151;
  font-size:12px!important;
  text-align:center!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day:hover{
  border-color:var(--coupon-line);
  background:var(--coupon-soft);
  color:var(--coupon-brand-dark);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.today{
  border-color:var(--coupon-brand);
  color:var(--coupon-brand-dark);
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.selected,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.startRange,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.endRange{
  border-color:var(--coupon-brand)!important;
  background:var(--coupon-brand)!important;
  color:#fff!important;
}

body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.prevMonthDay,
body .flatpickr-calendar.sadaa-coupon-calendar .flatpickr-day.nextMonthDay{
  color:#b6bdc7!important;
}


/* تابلت */
@media (max-width:1100px){
  .coupon-form-grid--main{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* الجوال */
@media (max-width:1100px){
  .coupon-form-shell{
    font-size:14px;
  }

  .coupon-field-label-icon{
    width:18px;
    min-width:18px;
    font-size:14px;
  }

  .coupon-form-hero{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:16px;
  }

  .coupon-form-icon{
    width:36px;
    height:36px;
    min-width:36px;
    font-size:14px;
  }

  .coupon-form-title h2{
    font-size:18px;
  }

  .coupon-form-title p{
    font-size:13.5px;
    line-height:1.7;
  }

  .coupon-form-back{
    width:100%;
    font-size:14px;
  }

  .coupon-form-card{
    padding:14px;
  }

  .coupon-form-note{
    margin:0 0 8px;
    padding:10px 11px;
    font-size:13.5px;
    line-height:1.75;
  }

  .coupon-form-section{
    margin-top:6px;
    padding:0;
  }

  .coupon-form-grid,
  .coupon-form-grid--main{
    grid-template-columns:1fr;
    gap:9px;
    padding:8px 10px 10px;
  }

  .coupon-section-title{
    gap:8px;
  }

  .coupon-section-icon{
    width:30px;
    height:30px;
    min-width:30px;
    font-size:13px;
  }

  .coupon-section-title h3{
    font-size:14.5px;
  }

  .coupon-section-title p{
    font-size:13px;
    line-height:1.65;
  }

  .coupon-field label{
    font-size:14px;
  }

  .coupon-field small{
    font-size:12.5px;
    line-height:1.65;
  }

  .coupon-field input,
  .coupon-field select{
    min-height:46px;
    font-size:14.5px;
  }

  .coupon-status-section{
    align-items:stretch;
    flex-direction:column;
    padding:8px 10px;
  }

  .coupon-status-toggle{
    width:100%;
    min-height:44px;
    justify-content:space-between;
  }

  .coupon-switch-label{
    font-size:14px;
  }

  .coupon-form-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:14px 0 0;
    padding:12px 0 0;
  }

  .coupon-form-submit,
  .coupon-form-cancel{
    width:100%;
    min-height:44px;
    font-size:14px;
  }
}

@media(max-width:430px){
  .coupon-form-card{
    padding:12px;
  }

  .coupon-form-title h2{
    font-size:18px;
  }

  .coupon-form-title p,
  .coupon-form-note{
    font-size:13.5px;
  }

  .coupon-field label{
    font-size:14px;
  }

  .coupon-field input,
  .coupon-field select{
    font-size:14.5px;
  }


  .coupon-form-actions{
    grid-template-columns:1fr;
  }

  body .flatpickr-calendar.sadaa-coupon-calendar{
    width:min(308px,calc(100vw - 20px))!important;
    min-width:0!important;
  }
}


body.sadaa-coupon-standalone{margin:0;background:#f4f6fa;}


/* ---- V103: store_directory_settings.php ---- */
.directory-settings-tab,
.directory-settings-tab *{
  box-sizing:border-box;
}

.directory-settings-tab{
  --directory-brand:var(--sadaa-admin-primary,var(--sadaa-primary));
  --directory-brand-dark:var(--sadaa-admin-dark,var(--sadaa-primary-dark));
  --directory-brand-rgb:var(--sadaa-admin-primary-rgb,var(--sadaa-primary-rgb));
  --directory-soft:var(--sadaa-admin-soft,rgba(var(--directory-brand-rgb),.07));
  --directory-line:var(--sadaa-admin-soft-line,rgba(var(--directory-brand-rgb),.20));
  direction:rtl;
  color:#1f2937;
  font-family:var(--site-font-family);
}

.directory-settings-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:18px 20px;
  border-radius:8px;
  background:
    radial-gradient(circle at 10% 0%,rgba(255,255,255,.22) 0,rgba(255,255,255,.22) 72px,transparent 74px),
    radial-gradient(circle at 78% 110%,rgba(255,255,255,.14) 0,rgba(255,255,255,.14) 92px,transparent 94px),
    var(--sadaa-admin-hero-gradient);
  color:#fff;
}

.directory-settings-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.directory-settings-icon{
  width:42px;
  height:42px;
  min-width:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:8px;
  background:rgba(255,255,255,.18);
  color:#fff;
}

.directory-settings-title h2{
  margin:0;
  color:#fff;
  font-size:20px;
  font-weight:500;
}

.directory-settings-title p{
  margin:3px 0 0;
  color:rgba(255,255,255,.84);
  font-size:13px;
  line-height:1.8;
}

.directory-settings-back{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.30);
  border-radius:7px;
  background:#fff;
  color:var(--directory-brand-dark);
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}

.directory-settings-card{
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
}

.directory-settings-message{
  margin:0 0 10px;
  padding:10px 12px;
  border-radius:7px;
  font-size:13px;
}

.directory-settings-message[hidden]{
  display:none!important;
}

.directory-settings-message.is-success{
  border:1px solid #bbf7d0;
  background:#ecfdf3;
  color:#166534;
}

.directory-settings-message.is-error{
  border:1px solid #fecaca;
  background:#fef2f2;
  color:#991b1b;
}

.directory-setting-row{
  min-height:74px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:13px;
  border:1px solid var(--directory-line);
  border-radius:8px;
  background:var(--directory-soft);
}

.directory-setting-row + .directory-setting-row{
  margin-top:8px;
}

.directory-setting-copy{
  min-width:0;
}

.directory-setting-title{
  display:block;
  margin-bottom:4px;
  color:var(--directory-brand-dark);
  font-size:13.5px;
  font-weight:500;
  line-height:1.7;
}

.directory-setting-note{
  display:block;
  color:#6b7280;
  font-size:12px;
  line-height:1.8;
}

.directory-setting-switch{
  margin-top:2px;
}







.directory-settings-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}

.directory-settings-save{
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--directory-brand);
  border-radius:7px;
  background:var(--directory-brand);
  color:#fff;
  font:inherit;
  font-size:13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
}

.directory-settings-save:hover:not(:disabled){
  background:var(--directory-brand-dark);
  border-color:var(--directory-brand-dark);
}

.directory-settings-save:disabled{
  opacity:.65;
  cursor:wait;
}

@media (max-width:1100px){
  .directory-settings-hero{
    flex-direction:column;
    align-items:stretch;
    padding:16px;
  }

  .directory-settings-title h2{
    font-size:18px;
  }

  .directory-settings-title p{
    font-size:12.5px;
  }

  .directory-settings-back{
    width:100%;
  }

  .directory-settings-card{
    padding:10px;
  }

  .directory-setting-row{
    min-height:0;
    padding:11px;
  }

  .directory-setting-title{
    font-size:14px;
  }

  .directory-setting-note{
    font-size:12.5px;
  }

  .directory-settings-save{
    width:100%;
    min-height:42px;
    font-size:13.5px;
  }
}



@media (min-width:721px) and (max-width:1100px){
  .directory-settings-hero{
    align-items:flex-start!important;
  }
  .directory-settings-back{
    width:auto!important;
    min-width:160px!important;
    align-self:flex-start!important;
    padding-inline:14px!important;
  }
  .directory-settings-actions{
    justify-content:flex-end!important;
  }
  .directory-settings-save{
    width:auto!important;
    min-width:170px!important;
    padding-inline:18px!important;
  }
}


/* ---- V103: row action menu rules from js/tab_scripts.js ---- */
/* V103 — Externalized dashboard row-action-menu rules (formerly injected by tab_scripts.js). */
#tabContent .users-tab-soft .users-row,
#tabContent .orders-tab-ui .orders-grid-row,
#tabContent .reports-tab-ui .reports-row:not(.header) {
  position: relative;
  z-index: 1;
  overflow: visible;
}
#tabContent .users-tab-soft .users-row.row-menu-open,
#tabContent .orders-tab-ui .orders-grid-row.row-menu-open,
#tabContent .reports-tab-ui .reports-row.row-menu-open {
  z-index: 1000000 !important;
}
#tabContent .users-tab-soft .users-actions-cell,
#tabContent .orders-tab-ui .orders-grid-cell.orders-actions-cell,
#tabContent .reports-tab-ui .reports-cell[data-label="الإجراءات"] {
  overflow: visible !important;
}
#tabContent .users-tab-soft .row-actions-menu,
#tabContent .orders-tab-ui .orders-row-actions-menu,
#tabContent .reports-tab-ui .report-actions-menu {
  z-index: 1000001 !important;
}



/* =======================================================================
   SADAA V105 — CSP service pages / styles migrated from existing pages
   ======================================================================= */

/* ===== SADAA V105 CSP | contact.php: migrated original page styles; scope: page-specific ===== */
:root:has(.contact-page) {
    --contact-page-bg: var(--sadaa-page-bg, var(--sadaa-tint-2));
    --contact-card-bg: var(--sadaa-surface, #ffffff);
    --contact-text: var(--sadaa-text, #111827);
    --contact-muted: var(--sadaa-muted, #6b7280);
    --contact-border: var(--sadaa-line, #e5e7eb);
    --contact-soft: var(--sadaa-surface-alt, var(--sadaa-surface-alt));
    --contact-primary: var(--sadaa-primary);
    --contact-primary-dark: var(--sadaa-primary-dark);
    --contact-accent: var(--sadaa-accent);
    --contact-primary-rgb: var(--sadaa-primary-rgb);
    --contact-primary-dark-rgb: var(--sadaa-primary-dark-rgb);
    --contact-focus: var(--sadaa-focus);
    --contact-shadow: 0 16px 38px rgba(17,24,39,.075);
    --contact-shadow-soft: 0 8px 20px rgba(17,24,39,.055);
    --contact-radius-main: 9px;
    --contact-radius-inner: 8px;
    --contact-radius-field: 7px;
}

html:has(.contact-page),
body:has(.contact-page) {
    margin: 0;
    padding: 0;
    width: 100%;
}

body:has(.contact-page) {
    background:
        radial-gradient(circle at top right, rgba(var(--contact-primary-rgb),.08), transparent 30%),
        var(--contact-page-bg);
}

.contact-page,
.contact-page * {
    box-sizing: border-box;
}

.contact-page {
    max-width: 1430px;
    margin: 28px auto 42px;
    padding: 0 16px;
    direction: rtl;
    text-align: right;
    color: var(--contact-text);
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
    font-weight: 400;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--contact-radius-main);
    padding: 28px 30px;
    margin-bottom: 18px;
    color: #fff;
    background:
        var(--contact-primary);
    box-shadow: var(--contact-shadow);
}

.contact-hero::before,
.contact-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}

.contact-hero::before {
    width: 190px;
    height: 190px;
    left: -70px;
    top: -80px;
}

.contact-hero::after {
    width: 120px;
    height: 120px;
    right: 42px;
    bottom: -66px;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.contact-hero-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--contact-radius-inner);
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
}

.contact-hero-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
}

.contact-hero h1 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.4;
    color: #fff;
    font-weight: 400;
}

.contact-hero p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}

.contact-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: var(--contact-radius-field);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    white-space: nowrap;
}

.contact-hero-pill svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex: 0 0 auto;
}

.contact-card strong {
    font-weight: 400;
    color: var(--contact-text);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 24px;
    align-items: flex-start;
}

.contact-form {
    min-width: 0;
}


.contact-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.contact-clear {
    display: none;
}

.contact-action-link {
    width: fit-content;
}

.contact-submit svg,
.contact-clear svg,
.contact-action-link svg,
.contact-action-link i {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
    flex: 0 0 auto;
    line-height: 1;
}

.contact-info {
    background: var(--contact-soft);
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-main);
    padding: 22px;
}

.contact-info h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
    padding: 0 13px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--contact-text);
    font-weight: 400;
}

.contact-info h2::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--contact-primary), var(--contact-accent));
    flex: 0 0 auto;
}

.contact-info p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 2;
    font-size: 14px;
    font-weight: 400;
}

.contact-info-item {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-inner);
    background: #fff;
}

.contact-info-item strong {
    display: block;
    color: var(--contact-text);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.contact-info-item span,
.contact-info-item a {
    color: #374151;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.contact-alert {
    padding: 13px 15px;
    border-radius: var(--contact-radius-field);
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}

.contact-alert.success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.contact-alert.error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.contact-alert ul {
    margin: 0;
    padding-right: 20px;
}

.contact-hp {
    display: none !important;
}

#contactForm:has(input[name="name"]:not(:placeholder-shown)) .contact-clear,
#contactForm:has(input[name="email"]:not(:placeholder-shown)) .contact-clear,
#contactForm:has(input[name="phone"]:not(:placeholder-shown)) .contact-clear,
#contactForm:has(input[name="subject"]:not(:placeholder-shown)) .contact-clear,
#contactForm:has(textarea[name="message"]:not(:placeholder-shown)) .contact-clear {
    display: inline-flex;
}

.contact-verification {
    margin: 3px 0 17px;
    padding: 16px;
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius-inner);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.contact-verification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.contact-verification-title {
    margin: 0 0 3px;
    color: var(--contact-text);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.contact-verification-note {
    margin: 0;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.8;
}

.contact-verification-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.contact-verification-state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
}

.contact-verification.is-solved .contact-verification-state {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #166534;
}

.contact-verification.is-solved .contact-verification-state::before {
    background: #22c55e;
}

.contact-verify-track {
    position: relative;
    height: 58px;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(var(--contact-primary-rgb),.045) 1px, transparent 1px) 0 0 / 22px 100%,
        #f1f5f9;
    direction: ltr;
    touch-action: none;
    user-select: none;
}

.contact-verify-track::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    left: 18px;
    height: 2px;
    transform: translateY(-50%);
    background: #d7dee8;
}

.contact-verify-target {
    position: absolute;
    top: 7px;
    width: 68px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(var(--contact-primary-rgb),.7);
    border-radius: 7px;
    background: rgba(var(--contact-primary-rgb),.095);
    color: var(--contact-primary-dark);
    font-size: 11px;
    pointer-events: none;
}

.contact-verify-piece {
    position: absolute;
    top: 7px;
    left: 0;
    width: 44px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--contact-primary);
    border-radius: 7px;
    background: var(--contact-primary);
    color: #fff;
    cursor: grab;
    box-shadow: 0 5px 14px rgba(var(--contact-primary-dark-rgb),.22);
    transition: box-shadow .16s ease, background .16s ease, border-color .16s ease;
    touch-action: none;
    z-index: 2;
}

.contact-verify-piece:active,
.contact-verify-piece.is-dragging {
    cursor: grabbing;
    box-shadow: 0 7px 18px rgba(var(--contact-primary-dark-rgb),.3);
}

.contact-verify-piece:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--contact-focus), 0 5px 14px rgba(var(--contact-primary-dark-rgb),.22);
}

.contact-verify-piece svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
}

.contact-verification.is-solved .contact-verify-piece {
    border-color: #16a34a;
    background: #16a34a;
    cursor: default;
}

.contact-verify-feedback {
    min-height: 20px;
    margin-top: 8px;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.7;
}

.contact-verification.is-solved .contact-verify-feedback {
    color: #166534;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-page {
        margin: 20px auto 32px;
        padding: 0 12px;
    }

    .contact-hero {
        padding: 22px 18px;
    }

    .contact-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-hero h1 {
        font-size: 22px;
    }

    .contact-hero-pill {
        width: 100%;
        justify-content: center;
    }


    .contact-submit,
    .contact-clear {
        flex: 1 1 140px;
    }
}

/* =========================================================
   Desktop public-page width = authenticated secondary navbar
   2026-10-05
   Keep mobile/tablet spacing unchanged.
   ========================================================= */
@media (min-width:1101px){
  .contact-page{
    width:min(calc(100% - 32px),1450px) !important;
    max-width:none !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
  }
}
/* ===== End contact.php ===== */


/* ===== SADAA V105 CSP | about.php: migrated original page styles; scope: page-specific ===== */
:root:has(.about-page){--about-bg:var(--sadaa-page-bg,var(--sadaa-tint-2));--about-text:var(--sadaa-text,#111827);--about-line:var(--sadaa-line,#e5e7eb);--about-primary:var(--sadaa-primary,#5E6EA4);--about-primary-dark:var(--sadaa-primary-dark,#4B598D);--about-accent:var(--sadaa-accent,#C49C74);--about-primary-rgb:var(--sadaa-primary-rgb, 94,110,164);--about-accent-rgb:var(--sadaa-accent-rgb, 196,156,116);--about-tint:var(--sadaa-tint-2,#EFF1FA)}
html:has(.about-page),body:has(.about-page){margin:0;padding:0;width:100%}body:has(.about-page){background:radial-gradient(circle at top right,rgba(var(--about-primary-rgb),.08),transparent 30%),var(--about-bg)}
.about-page,.about-page *{box-sizing:border-box}.about-page{max-width:1430px;margin:28px auto 42px;padding:0 16px;direction:rtl;text-align:right;color:var(--about-text);font-family:var(--site-font-family,Tahoma,Arial,sans-serif);font-weight:400}
.about-hero{position:relative;overflow:hidden;padding:30px;border-radius:9px;color:#fff;margin-bottom:18px;background:var(--about-primary);box-shadow:0 16px 38px rgba(17,24,39,.075)}
.about-hero:before,.about-hero:after{content:"";position:absolute;border-radius:999px;border:1px solid rgba(255,255,255,.2);pointer-events:none}.about-hero:before{width:190px;height:190px;left:-70px;top:-80px}.about-hero:after{width:120px;height:120px;right:42px;bottom:-66px}
.about-hero-content{position:relative;z-index:1;display:flex;align-items:center;gap:14px}.about-hero-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:8px;font-size:20px}
.about-hero h1{margin:0;font-size:26px;line-height:1.45;font-weight:400}
.about-card h2{display:flex;align-items:center;gap:10px;margin:30px 0 13px;padding-right:13px;font-size:18px;line-height:1.6;font-weight:400;color:var(--about-text)}.about-card h2:first-of-type{margin-top:6px}.about-card h2:before{content:"";width:4px;height:22px;border-radius:3px;background:linear-gradient(180deg,var(--about-primary),var(--about-accent));flex:0 0 auto}
.about-card p{margin:0 0 14px;color:#374151;font-size:15px;line-height:2}.about-card strong{font-weight:400;color:var(--about-text)}
.about-highlight{margin:20px 0;padding:18px 20px;border:1px solid rgba(var(--about-primary-rgb),.22);border-radius:8px;background:linear-gradient(135deg,rgba(var(--about-primary-rgb),.055),rgba(var(--about-accent-rgb),.04))}.about-highlight p{margin:0;color:#313949}
.about-actions{margin-top:28px}
@media(max-width:768px){.about-page{margin:20px auto 32px;padding:0 12px}.about-hero{padding:22px 18px}.about-hero h1{font-size:22px}.about-card h2{font-size:17px}.about-card p{font-size:14px}}

/* =========================================================
   Desktop public-page width = authenticated secondary navbar
   2026-10-05
   Keep mobile/tablet spacing unchanged.
   ========================================================= */
@media (min-width:1101px){
  .about-page{
    width:min(calc(100% - 32px),1450px) !important;
    max-width:none !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
  }
}
/* ===== End about.php ===== */


/* ===== SADAA V105 CSP | terms.php: migrated original page styles; scope: page-specific ===== */
:root:has(.terms-page) {
    --terms-page-bg: var(--sadaa-page-bg, var(--sadaa-tint-2));
    --terms-card-bg: var(--sadaa-surface, #ffffff);
    --terms-text: var(--sadaa-text, #111827);
    --terms-muted: var(--sadaa-muted, #6b7280);
    --terms-border: var(--sadaa-line, #e5e7eb);
    --terms-soft: var(--sadaa-surface-alt, var(--sadaa-surface-alt));
    --terms-primary: var(--sadaa-primary, var(--sadaa-primary));
    --terms-primary-dark: var(--sadaa-primary-dark, var(--sadaa-primary-dark));
    --terms-accent: var(--sadaa-accent, var(--sadaa-primary));
    --terms-primary-rgb: var(--sadaa-primary-rgb, 94,110,164);
    --terms-tint: var(--sadaa-tint-2, var(--sadaa-tint-2));
    --terms-shadow: 0 16px 38px rgba(17,24,39,.075);
    --terms-shadow-soft: 0 8px 20px rgba(17,24,39,.055);
    --terms-radius-main: 9px;
    --terms-radius-inner: 8px;
    --terms-radius-field: 7px;
}

html:has(.terms-page),
body:has(.terms-page) {
    margin: 0;
    padding: 0;
    width: 100%;
}

body:has(.terms-page) {
    background:
        radial-gradient(circle at top right, rgba(var(--terms-primary-rgb),.08), transparent 30%),
        var(--terms-page-bg);
}

.terms-page,
.terms-page * { box-sizing: border-box; }

.terms-page {
    max-width: 1430px;
    margin: 28px auto 42px;
    padding: 0 16px;
    direction: rtl;
    text-align: right;
    color: var(--terms-text);
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
    font-weight: 400;
}

.terms-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--terms-radius-main);
    padding: 28px 30px;
    margin-bottom: 18px;
    color: #fff;
    background:
        var(--terms-primary);
    box-shadow: var(--terms-shadow);
}

.terms-hero::before,
.terms-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}
.terms-hero::before { width:190px; height:190px; left:-70px; top:-80px; }
.terms-hero::after { width:120px; height:120px; right:42px; bottom:-66px; }

.terms-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.terms-title-wrap { display:flex; align-items:center; gap:13px; min-width:0; }
.terms-hero-icon {
    width:46px; height:46px; display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 auto; border-radius:var(--terms-radius-inner);
    background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.22);
}
.terms-hero-icon svg { width:23px; height:23px; display:block; fill:currentColor; }
.terms-hero h1 { margin:0 0 6px; font-size:25px; line-height:1.4; color:#fff; font-weight:400; }
.terms-hero p { margin:0; color:rgba(255,255,255,.86); font-size:14px; line-height:1.8; font-weight:400; }

.terms-updated-pill {
    display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; min-height:38px;
    padding:8px 13px; border-radius:var(--terms-radius-field);
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
    color:#fff; font-size:13px; line-height:1.6; font-weight:400; white-space:nowrap;
}
.terms-updated-pill svg { width:15px; height:15px; fill:currentColor; flex:0 0 auto; }

.terms-card strong { font-weight:400; color:var(--terms-text); }
.terms-card h1, .terms-updated { display:none; }

.terms-card h2 {
    position:relative; display:flex; align-items:center; gap:10px;
    margin:30px 0 13px; padding:0 13px 0 0; font-size:18px; line-height:1.6;
    color:var(--terms-text); font-weight:400; border:0;
}
.terms-card h2:first-of-type { margin-top:6px; }
.terms-card h2::before {
    content:""; width:4px; height:22px; border-radius:3px;
    background:linear-gradient(180deg,var(--terms-primary),var(--terms-accent)); flex:0 0 auto;
}
.terms-card p { color:#374151; line-height:2; font-size:15px; margin:0 0 14px; font-weight:400; }
.terms-card ul { margin:2px 0 18px; padding:0; list-style:none; display:grid; gap:8px; }
.terms-card li {
    position:relative; color:#374151; line-height:1.9; font-size:15px; margin:0;
    padding:10px 38px 10px 14px; background:var(--terms-soft);
    border:none; border-radius:var(--terms-radius-field); font-weight:400;
}
.terms-card li::before {
    content:""; position:absolute; right:14px; top:20px; width:8px; height:8px;
    border-radius:50%; background:var(--terms-primary); box-shadow:0 0 0 4px rgba(var(--terms-primary-rgb),.09);
}
.terms-back-home { margin-top:26px; text-align:center; }
@media (max-width:768px) {
    .terms-page { margin:20px auto 32px; padding:0 12px; }
    .terms-hero { padding:22px 18px; margin-bottom:14px; }
    .terms-hero-content { align-items:flex-start; flex-direction:column; gap:14px; }
    .terms-title-wrap { align-items:flex-start; }
    .terms-hero-icon { width:42px; height:42px; }
    .terms-hero h1 { font-size:22px; }
    .terms-updated-pill { width:100%; justify-content:center; white-space:normal; }
    .terms-card h2 { font-size:17px; align-items:flex-start; }
    .terms-card p, .terms-card li { font-size:14px; }
}

/* =========================================================
   Desktop public-page width = authenticated secondary navbar
   2026-10-05
   Keep mobile/tablet spacing unchanged.
   ========================================================= */
@media (min-width:1101px){
  .terms-page{
    width:min(calc(100% - 32px),1450px) !important;
    max-width:none !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
  }
}
/* ===== End terms.php ===== */


/* ===== SADAA V105 CSP | privacy.php: migrated original page styles; scope: page-specific ===== */
:root:has(.privacy-page) {
    --privacy-page-bg: var(--sadaa-page-bg, var(--sadaa-tint-2));
    --privacy-card-bg: var(--sadaa-surface, #ffffff);
    --privacy-text: var(--sadaa-text, #111827);
    --privacy-muted: var(--sadaa-muted, #6b7280);
    --privacy-border: var(--sadaa-line, #e5e7eb);
    --privacy-soft: var(--sadaa-surface-alt, var(--sadaa-surface-alt));
    --privacy-primary: var(--sadaa-primary, var(--sadaa-primary));
    --privacy-primary-dark: var(--sadaa-primary-dark, var(--sadaa-primary-dark));
    --privacy-accent: var(--sadaa-accent, var(--sadaa-primary));
    --privacy-primary-rgb: var(--sadaa-primary-rgb, 94,110,164);
    --privacy-focus: var(--sadaa-focus, rgba(var(--sadaa-primary-rgb),.15));
    --privacy-tint: var(--sadaa-tint-2, var(--sadaa-tint-2));
    --privacy-shadow: 0 16px 38px rgba(17,24,39,.075);
    --privacy-shadow-soft: 0 8px 20px rgba(17,24,39,.055);
    --privacy-radius-main: 9px;
    --privacy-radius-inner: 8px;
    --privacy-radius-field: 7px;
}

html:has(.privacy-page),
body:has(.privacy-page) {
    margin: 0;
    padding: 0;
    width: 100%;
}

body:has(.privacy-page) {
    background:
        radial-gradient(circle at top right, rgba(var(--privacy-primary-rgb),.08), transparent 30%),
        var(--privacy-page-bg);
}

.privacy-page,
.privacy-page * {
    box-sizing: border-box;
}

.privacy-page {
    max-width: 1430px;
    margin: 28px auto 42px;
    padding: 0 16px;
    direction: rtl;
    text-align: right;
    color: var(--privacy-text);
    font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
    font-weight: 400;
}

.privacy-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--privacy-radius-main);
    padding: 28px 30px;
    margin-bottom: 18px;
    color: #fff;
    background:
        var(--privacy-primary);
    box-shadow: var(--privacy-shadow);
}

.privacy-hero::before,
.privacy-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}

.privacy-hero::before {
    width: 190px;
    height: 190px;
    left: -70px;
    top: -80px;
}

.privacy-hero::after {
    width: 120px;
    height: 120px;
    right: 42px;
    bottom: -66px;
}

.privacy-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.privacy-title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.privacy-hero-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--privacy-radius-inner);
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
}

.privacy-hero-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
}

.privacy-hero h1 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.4;
    color: #fff;
    font-weight: 400;
}

.privacy-hero p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
}

.privacy-updated-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: var(--privacy-radius-field);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;
    white-space: nowrap;
}

.privacy-updated-pill svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex: 0 0 auto;
}

.privacy-card strong {
    font-weight: 400;
    color: var(--privacy-text);
}

.privacy-card h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 13px;
    padding: 0 13px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--privacy-text);
    font-weight: 400;
}

.privacy-card h2:first-of-type {
    margin-top: 6px;
}

.privacy-card h2::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--privacy-primary), var(--privacy-accent));
    flex: 0 0 auto;
}

.privacy-card p {
    color: #374151;
    line-height: 2;
    font-size: 15px;
    margin: 0 0 14px;
    font-weight: 400;
}

.privacy-card ul {
    margin: 2px 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.privacy-card li {
    position: relative;
    color: #374151;
    line-height: 1.9;
    font-size: 15px;
    margin: 0;
    padding: 10px 38px 10px 14px;
    background: var(--privacy-soft);
    border: none;
    border-radius: var(--privacy-radius-field);
    font-weight: 400;
}

.privacy-card li::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--privacy-primary);
    box-shadow: 0 0 0 4px rgba(var(--privacy-primary-rgb),.09);
}

.privacy-contact-box {
    background: #fff;
    border: 1px solid var(--privacy-border);
    border-radius: var(--privacy-radius-inner);
    padding: 18px 20px;
    margin-top: 14px;
    box-shadow: 0 8px 18px rgba(17,24,39,.035);
}

.privacy-contact-box p:last-child {
    margin-bottom: 0;
}

.privacy-contact-box a {
    color: var(--privacy-primary);
    text-decoration: none;
    font-weight: 400;
}

.privacy-contact-box a:hover {
    color: var(--privacy-primary-dark);
    text-decoration: underline;
}

.privacy-back-home {
    margin-top: 26px;
    text-align: center;
}

@media (max-width: 900px) {
    .privacy-page {
        margin: 22px auto 34px;
        padding: 0 14px;
    }

    .privacy-hero {
        padding: 22px 18px;
    }

    .privacy-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .privacy-updated-pill {
        white-space: normal;
    }

    .privacy-card {
        padding: 22px 18px;
    }

    .privacy-hero h1 {
        font-size: 22px;
    }

    .privacy-card h2 {
        font-size: 17px;
    }

    .privacy-card p,
    .privacy-card li {
        font-size: 14px;
    }
}

/* =========================================================
   Desktop public-page width = authenticated secondary navbar
   2026-10-05
   Keep mobile/tablet spacing unchanged.
   ========================================================= */
@media (min-width:1101px){
  .privacy-page{
    width:min(calc(100% - 32px),1450px) !important;
    max-width:none !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
  }
}
/* ===== End privacy.php ===== */


/* ===== SADAA V105 CSP | faq.php: migrated original page styles; scope: page-specific ===== */
:root:has(.faq-page){--faq-bg:var(--sadaa-page-bg,var(--sadaa-tint-2));--faq-card:var(--sadaa-surface,#fff);--faq-text:var(--sadaa-text,#111827);--faq-muted:var(--sadaa-muted,#64748b);--faq-line:var(--sadaa-line,#e5e7eb);--faq-soft:var(--sadaa-surface-alt,#FDFDFF);--faq-primary:var(--sadaa-primary,#5E6EA4);--faq-primary-dark:var(--sadaa-primary-dark,#4B598D);--faq-accent:var(--sadaa-accent,#C49C74);--faq-primary-rgb:var(--sadaa-primary-rgb, 94,110,164)}html:has(.faq-page),body:has(.faq-page){margin:0;padding:0;width:100%}body:has(.faq-page){background:radial-gradient(circle at top right,rgba(var(--faq-primary-rgb),.08),transparent 30%),var(--faq-bg)}.faq-page,.faq-page *{box-sizing:border-box}.faq-page{max-width:1430px;margin:28px auto 42px;padding:0 16px;direction:rtl;text-align:right;color:var(--faq-text);font-family:var(--site-font-family,Tahoma,Arial,sans-serif);font-weight:400}.faq-hero{position:relative;overflow:hidden;padding:30px;border-radius:9px;color:#fff;margin-bottom:18px;background:var(--faq-primary);box-shadow:0 16px 38px rgba(17,24,39,.075)}.faq-hero:before,.faq-hero:after{content:"";position:absolute;border-radius:999px;border:1px solid rgba(255,255,255,.2);pointer-events:none}.faq-hero:before{width:190px;height:190px;left:-70px;top:-80px}.faq-hero:after{width:120px;height:120px;right:42px;bottom:-66px}.faq-hero-inner{position:relative;z-index:1;display:flex;gap:14px;align-items:center}.faq-hero-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:8px;font-size:20px}.faq-hero h1{margin:0 0 6px;font-size:26px;font-weight:400}.faq-hero p{margin:0;color:rgba(255,255,255,.88);font-size:14px;line-height:1.9}.faq-content{background:rgba(255,255,255,.97);border:1px solid var(--faq-line);border-radius:9px;padding:30px 34px;box-shadow:0 8px 20px rgba(17,24,39,.055)}.faq-intro{margin:0 0 24px;color:#475569;font-size:15px;line-height:2}.faq-list{display:grid;gap:8px}.faq-item{--sadaa-accordion-accent:var(--faq-primary);--sadaa-accordion-border:var(--faq-line);--sadaa-accordion-soft:var(--faq-soft)}.faq-item .sadaa-accordion__summary{min-height:54px;padding:12px 16px}.faq-item .sadaa-accordion__title{font-size:15px;line-height:1.8;font-weight:400}.faq-answer{color:#475569;font-size:14px;line-height:2}.faq-answer p{margin:0}.faq-actions{margin-top:28px}@media(max-width:768px){.faq-page{margin:20px auto 32px;padding:0 12px}.faq-hero{padding:22px 18px}.faq-content{padding:22px 16px}.faq-hero h1{font-size:22px}.faq-item .sadaa-accordion__title{font-size:14px}}

/* =========================================================
   Desktop public-page width = authenticated secondary navbar
   2026-10-05
   Keep mobile/tablet spacing unchanged.
   ========================================================= */
@media (min-width:1101px){
  .faq-page{
    width:min(calc(100% - 32px),1450px) !important;
    max-width:none !important;
    margin-inline:auto !important;
    padding-inline:0 !important;
  }
}
/* ===== End faq.php ===== */


/* ===== SADAA V105 CSP | newsletter_confirm.php: migrated original page styles; scope: page-specific ===== */
body.sadaa-newsletter-confirm, body.sadaa-newsletter-confirm *{box-sizing:border-box}
        body.sadaa-newsletter-confirm{margin:0;background:#f5f6f8;color:#1f2937;font-family:var(--site-font-family,Tahoma,Arial,sans-serif);font-weight:400}
        body.sadaa-newsletter-confirm .wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
        body.sadaa-newsletter-confirm .card{width:min(560px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:30px;text-align:center;box-shadow:0 14px 34px rgba(31,41,55,.07)}
        body.sadaa-newsletter-confirm .mark{width:54px;height:54px;margin:0 auto 15px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:24px}
        body.sadaa-newsletter-confirm .success .mark{background:#ecfdf3;color:#15803d}body.sadaa-newsletter-confirm .warning .mark{background:#fff7ed;color:#c2410c}
        body.sadaa-newsletter-confirm h1{margin:0 0 10px;font-size:21px;font-weight:400}
        body.sadaa-newsletter-confirm p{margin:0 auto 20px;max-width:460px;color:#6b7280;font-size:14px;line-height:1.9}
        body.sadaa-newsletter-confirm a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 20px;background:var(--sadaa-primary);color:#fff;text-decoration:none;border-radius:6px;font-size:14px}
/* ===== End newsletter_confirm.php ===== */


/* ===== SADAA V105 CSP | newsletter_unsubscribe.php: migrated original page styles; scope: page-specific ===== */
body.sadaa-newsletter-unsubscribe, body.sadaa-newsletter-unsubscribe *{box-sizing:border-box}
        body.sadaa-newsletter-unsubscribe{margin:0;background:#f5f6f8;color:#1f2937;font-family:var(--site-font-family,Tahoma,Arial,sans-serif);font-weight:400}
        body.sadaa-newsletter-unsubscribe .wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
        body.sadaa-newsletter-unsubscribe .card{width:min(560px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:30px;text-align:center;box-shadow:0 14px 34px rgba(31,41,55,.07)}
        body.sadaa-newsletter-unsubscribe h1{margin:0 0 10px;font-size:21px;font-weight:400}
        body.sadaa-newsletter-unsubscribe p{margin:0 auto 20px;max-width:460px;color:#6b7280;font-size:14px;line-height:1.9}
        body.sadaa-newsletter-unsubscribe .actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
        body.sadaa-newsletter-unsubscribe .btn{min-height:40px;padding:8px 20px;border-radius:6px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
        body.sadaa-newsletter-unsubscribe .danger{border:1px solid #b91c1c;background:#b91c1c;color:#fff}
        body.sadaa-newsletter-unsubscribe .back{border:1px solid #d1d5db;background:#fff;color:#374151}
/* ===== End newsletter_unsubscribe.php ===== */

/* V106 — الرسائل البريدية، ضمن ملف التصميم المركزي القائم. */
#tabContent .newsletter-admin .newsletter-section-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
#tabContent .newsletter-admin .newsletter-section-link{padding:10px 17px;border:1px solid var(--sadaa-admin-line,var(--sadaa-line-2));background:#fff;border-radius:8px;color:var(--sadaa-admin-text,var(--sadaa-text));font-size:13px;text-decoration:none}
#tabContent .newsletter-admin .newsletter-section-link.active{background:var(--sadaa-primary);color:#fff;border-color:var(--sadaa-primary)}
#tabContent .newsletter-admin .newsletter-campaign-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px;margin-bottom:12px}
#tabContent .newsletter-admin .newsletter-campaign-intro h2,#tabContent .newsletter-admin .newsletter-campaign-list h3,#tabContent .newsletter-admin .newsletter-editor-card h3{font-size:17px;margin:0 0 7px;color:var(--sadaa-admin-dark,var(--sadaa-brand-deep))}
#tabContent .newsletter-admin .newsletter-campaign-intro p,#tabContent .newsletter-admin .newsletter-editor-note,#tabContent .newsletter-admin .newsletter-go-live p{color:#687183;font-size:12px;line-height:1.9;margin:0 0 12px}
#tabContent .newsletter-admin .newsletter-campaign-list,#tabContent .newsletter-admin .newsletter-editor-card{padding:18px;margin-bottom:12px}
#tabContent .newsletter-admin .newsletter-campaign-items{display:grid;gap:8px}
#tabContent .newsletter-admin .newsletter-campaign-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--sadaa-line-2);border-radius:8px;background:#fff;padding:13px}
#tabContent .newsletter-admin .newsletter-campaign-copy{display:grid;gap:5px;min-width:0}
#tabContent .newsletter-admin .newsletter-campaign-copy strong{font-size:13px;color:var(--sadaa-text)}
#tabContent .newsletter-admin .newsletter-campaign-copy small,#tabContent .newsletter-admin .newsletter-campaign-meta{font-size:12px;color:#718096;overflow-wrap:anywhere}
#tabContent .newsletter-admin .newsletter-editor-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
#tabContent .newsletter-admin .newsletter-editor-fields label,#tabContent .newsletter-admin .newsletter-send-test label{display:grid;gap:7px;font-size:12px;color:var(--sadaa-primary-dark)}
#tabContent .newsletter-admin .newsletter-editor-label{display:block;font-weight:600;font-size:13px;margin:12px 0 7px}
#tabContent .newsletter-admin .newsletter-html-editor{width:100%;min-height:260px;border:1px solid var(--sadaa-line-2);border-radius:7px;background:#fff;color:#293244;padding:14px;font:12px/1.75 Consolas,monospace;text-align:left;resize:vertical}
#tabContent .newsletter-admin .newsletter-editor-actions{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}
#tabContent .newsletter-admin .newsletter-preview-holder{border:1px solid var(--sadaa-line-2);border-radius:7px;padding:12px;margin:14px 0}
#tabContent .newsletter-admin .newsletter-preview-holder[hidden]{display:none!important}
#tabContent .newsletter-admin .newsletter-preview-holder h4{margin:0 0 10px;font-size:13px}
#tabContent .newsletter-admin .newsletter-preview-frame{width:100%;height:450px;border:1px solid #e5e7eb;border-radius:7px;background:#fff}
#tabContent .newsletter-admin .newsletter-send-test{display:flex;flex-wrap:wrap;gap:12px;align-items:end;border-top:1px solid var(--sadaa-line-2);padding:15px 0}
#tabContent .newsletter-admin .newsletter-send-test label{min-width:250px;flex:1}
#tabContent .newsletter-admin .newsletter-go-live{margin:10px 0;padding:14px;background:var(--sadaa-tint-3);border:1px solid var(--sadaa-line-2);border-radius:8px}
#tabContent .newsletter-admin .newsletter-actions-menu{display:inline-block;position:relative}
#tabContent .newsletter-admin .newsletter-actions-menu summary{list-style:none;cursor:pointer;min-width:30px;min-height:28px;border:1px solid var(--sadaa-line-2);border-radius:6px;display:flex;align-items:center;justify-content:center}
#tabContent .newsletter-admin .newsletter-actions-menu summary::-webkit-details-marker{display:none}
#tabContent .newsletter-admin .newsletter-actions-content{position:absolute;z-index:15;min-width:155px;left:0;top:100%;background:#fff;box-shadow:0 8px 24px rgba(var(--sadaa-shadow-rgb),.12);border:1px solid var(--sadaa-line-2);border-radius:7px;padding:5px}
#tabContent .newsletter-admin .newsletter-actions-content form{margin:0}
#tabContent .newsletter-admin .newsletter-actions-content button{width:100%;background:#fff;border:0;padding:9px;text-align:right;color:var(--sadaa-text);cursor:pointer;font-size:12px}
#tabContent .newsletter-admin .newsletter-actions-content button:hover{background:var(--sadaa-tint-3)}
#tabContent .newsletter-admin .newsletter-actions-muted{font-size:11px;color:#738092;padding:8px;display:block}
#tabContent .newsletter-admin .newsletter-sending-progress{padding:10px;background:var(--sadaa-tint-3);border:1px solid var(--sadaa-line-2);border-radius:7px;font-size:12px}
@media(max-width:720px){
 #tabContent .newsletter-admin .newsletter-campaign-intro,#tabContent .newsletter-admin .newsletter-campaign-item{flex-direction:column;align-items:stretch}
 #tabContent .newsletter-admin .newsletter-editor-fields{grid-template-columns:1fr}
 #tabContent .newsletter-admin .newsletter-send-test{align-items:stretch;flex-direction:column}
 #tabContent .newsletter-admin .newsletter-send-test label{min-width:0}
 #tabContent .newsletter-admin .newsletter-row-actions .newsletter-actions-content{left:auto;right:0}
}

/* V106: قائمة الإجراءات يجب ألا تُقص داخل حاوية الجدول. */
@media(min-width:1101px){
 #tabContent .newsletter-admin .newsletter-table-wrap{overflow:visible}
 #tabContent .newsletter-admin .newsletter-table{width:100%;min-width:0}
}

#tabContent .newsletter-admin .newsletter-html-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
#tabContent .newsletter-admin .newsletter-html-toolbar button{border:1px solid var(--sadaa-line-2);border-radius:6px;background:var(--sadaa-tint-3);color:var(--sadaa-primary-dark);padding:7px 10px;font-size:12px;cursor:pointer}
#tabContent .newsletter-admin .newsletter-html-toolbar button:hover{background:var(--sadaa-tint-3)}


/* SADAA V106.1 | Newsletter subscribers layout and action menus.
   Works only in the existing newsletter component; no new style assets. */
@media (min-width:1101px){
  /* Previous high-specificity rule used overflow:hidden!important, clipping menus. */
  html body .dashboard-wrapper:not(.member-dashboard-wrapper) #tabContent
  .newsletter-admin .newsletter-table{
    table-layout:fixed !important;
    overflow:visible !important;
  }
  /* Deliberate proportions: compact ID/action columns and usable email/dates. */
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(1){width:4.5% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(2){width:19% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(3){width:11% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(4){width:10% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(5){width:17% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(6){width:17% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(7){width:16% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(8){width:5.5% !important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(2){text-align:right !important;}
  #tabContent .newsletter-admin .newsletter-table .newsletter-email-cell{direction:rtl !important;}
  #tabContent .newsletter-admin .newsletter-table .newsletter-email-value{
    display:inline-block;
    max-width:100%;
    direction:ltr;
    unicode-bidi:isolate;
    text-align:left;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
  }
}
/* Raised row is necessary so its menu overlays later rows, not vice versa. */
#tabContent .newsletter-admin .newsletter-table tbody tr:has(.newsletter-actions-menu[open]){
  position:relative;
  z-index:5;
  overflow:visible !important;
}
#tabContent .newsletter-admin .newsletter-table .newsletter-row-actions,
#tabContent .newsletter-admin .newsletter-actions-menu[open]{
  overflow:visible !important;
}
#tabContent .newsletter-admin .newsletter-actions-menu[open]{z-index:7;}
#tabContent .newsletter-admin .newsletter-actions-content{
  top:calc(100% + 5px);
  left:0;
  right:auto;
  min-width:168px;
  max-width:min(230px,calc(100vw - 28px));
  z-index:30;
  text-align:right;
}
/* Last row opens upward when there is no following table space. */
@media(min-width:1101px){
  #tabContent .newsletter-admin .newsletter-table tbody tr:last-child .newsletter-actions-content{
    top:auto;
    bottom:calc(100% + 5px);
  }
}
@media(max-width:1100px){
  /* Tablet/mobile rows are cards with overflow:hidden!important by default. */
  html body #tabContent .newsletter-admin .newsletter-table tbody tr:has(.newsletter-actions-menu[open]){
    overflow:visible !important;
  }
  #tabContent .newsletter-admin .newsletter-row-actions .newsletter-actions-content{
    top:auto;
    bottom:calc(100% + 5px);
    left:0;
    right:auto;
  }
  #tabContent .newsletter-admin .newsletter-email-value{
    display:inline-block;
    max-width:calc(100% - 110px);
    overflow-wrap:anywhere;
  }
}


/* SADAA V106.2 | Newsletter UI: central styles only. */
#tabContent .newsletter-admin .newsletter-bulk-toolbar{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:10px;padding:12px 14px;margin:0 0 10px;
  background:#fff;border:1px solid var(--sadaa-line-2);border-radius:8px;
  color:var(--sadaa-text);font-size:13px;
}
#tabContent .newsletter-admin .newsletter-bulk-toolbar[hidden],
#tabContent .newsletter-admin .newsletter-bulk-progress[hidden]{display:none!important}
#tabContent .newsletter-admin .newsletter-bulk-summary,
#tabContent .newsletter-admin .newsletter-bulk-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
#tabContent .newsletter-admin .newsletter-bulk-summary i{color:var(--sadaa-primary)}
#tabContent .newsletter-admin .newsletter-bulk-buttons .sadaa-btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;font-size:12px;white-space:normal}
#tabContent .newsletter-admin .newsletter-bulk-buttons .newsletter-bulk-danger{color:#a52939;border-color:#e5c9d0;background:#fff}
#tabContent .newsletter-admin .newsletter-bulk-buttons button:disabled{opacity:.48;cursor:not-allowed}
#tabContent .newsletter-admin .newsletter-bulk-clear{border:0;background:transparent;color:var(--sadaa-primary);text-decoration:underline;cursor:pointer;font:inherit;padding:7px}
#tabContent .newsletter-admin .newsletter-bulk-progress{flex-basis:100%;padding:7px 10px;border-radius:6px;background:var(--sadaa-tint-3);color:var(--sadaa-text);font-size:12px}
#tabContent .newsletter-admin .newsletter-check{appearance:auto!important;accent-color:var(--sadaa-primary);width:16px!important;height:16px!important;min-width:16px;margin:0;cursor:pointer;vertical-align:middle}
#tabContent .newsletter-admin .newsletter-check:focus-visible{outline:2px solid var(--sadaa-primary);outline-offset:3px}

@media(min-width:1101px){
  #tabContent .newsletter-admin .newsletter-table :is(th,td){text-align:center!important;vertical-align:middle!important;padding:11px 6px!important;}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(1){width:4%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(2){width:5%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(3){width:17%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(4){width:12%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(5){width:11%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(6){width:14%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(7){width:14%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(8){width:14%!important}
  #tabContent .newsletter-admin .newsletter-table :is(th,td):nth-child(9){width:9%!important}
  #tabContent .newsletter-admin .newsletter-table .newsletter-email-cell{direction:rtl!important;text-align:center!important}
  #tabContent .newsletter-admin .newsletter-table .newsletter-email-value{direction:ltr!important;text-align:center!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;unicode-bidi:isolate}
}
#tabContent .newsletter-admin .newsletter-actions-menu summary{
  width:34px;min-width:34px;min-height:33px;margin-inline:auto;border-radius:7px;background:#fff;color:var(--sadaa-text);
}
#tabContent .newsletter-admin .newsletter-actions-menu summary:hover,
#tabContent .newsletter-admin .newsletter-actions-menu[open] summary{background:var(--sadaa-tint-3);border-color:var(--sadaa-line-3)}
#tabContent .newsletter-admin .newsletter-actions-content{
  width:max-content;min-width:222px;max-width:min(260px,calc(100vw - 32px));
  padding:6px;background:#fff;border-radius:9px;border:1px solid var(--sadaa-line-2);
  box-shadow:0 12px 26px rgba(var(--sadaa-shadow-rgb),.14);text-align:right;
}
#tabContent .newsletter-admin .newsletter-actions-content button{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  min-height:41px;padding:10px 12px;border-radius:6px;text-align:right;
  white-space:nowrap;line-height:1.5;font-size:13px;font-weight:500;
}
#tabContent .newsletter-admin .newsletter-actions-content button i{width:18px;flex:0 0 18px;text-align:center;color:var(--sadaa-primary)}
#tabContent .newsletter-admin .newsletter-actions-content button.newsletter-action-danger{color:#a52b42}
#tabContent .newsletter-admin .newsletter-actions-content button.newsletter-action-danger i{color:#a52b42}
#tabContent .newsletter-admin .newsletter-actions-content button.newsletter-action-danger:hover{background:#fff1f3}
#tabContent .newsletter-admin .newsletter-actions-content form+form{border-top:1px solid var(--sadaa-tint-3)}
#tabContent .newsletter-admin .newsletter-actions-muted{max-width:240px;padding:12px;line-height:1.7}

/* Campaign panels match the administrator's existing white card surfaces. */
#tabContent .newsletter-admin :is(.newsletter-campaign-intro,.newsletter-campaign-list,.newsletter-editor-card){
  background:#fff!important;border:1px solid var(--sadaa-line-2)!important;border-radius:9px!important;
  box-shadow:none!important;margin:0 0 12px!important;padding:20px!important;
  min-height:0!important;color:var(--sadaa-text);
}
#tabContent .newsletter-admin .newsletter-campaign-intro{min-height:98px!important}
#tabContent .newsletter-admin .newsletter-campaign-list h3,
#tabContent .newsletter-admin .newsletter-editor-card h3{padding:0 0 12px;margin:0 0 14px;border-bottom:1px solid var(--sadaa-tint-3);font-size:16px}
#tabContent .newsletter-admin .newsletter-campaign-intro h2{font-size:17px;margin:0 0 8px}
#tabContent .newsletter-admin .newsletter-campaign-intro p{margin:0;max-width:900px}
#tabContent .newsletter-admin .newsletter-campaign-list .newsletter-empty{
  padding:24px 14px;min-height:75px;display:flex;justify-content:center;align-items:center;
  border:1px dashed var(--sadaa-line-2);background:var(--sadaa-surface-alt);border-radius:7px;
}
#tabContent .newsletter-admin .newsletter-editor-fields{padding:4px 0 8px}
#tabContent .newsletter-admin .newsletter-editor-fields .sadaa-input{
  width:100%;min-height:44px;border-radius:7px;background:#fff;
}
#tabContent .newsletter-admin .newsletter-html-editor{border-color:var(--sadaa-line-2);min-height:245px}
#tabContent .newsletter-admin .newsletter-html-toolbar{padding-top:5px}
#tabContent .newsletter-admin .newsletter-editor-actions{justify-content:flex-start;padding:2px 0 12px;margin:10px 0}
#tabContent .newsletter-admin .newsletter-send-test{margin-top:10px}
#tabContent .newsletter-admin .newsletter-campaign-guidance{
  display:flex;align-items:start;gap:8px;padding:13px 16px!important;margin:0 0 12px!important;
  background:#fff!important;border:1px solid var(--sadaa-line-2)!important;border-radius:8px!important;
  color:#687183;font-size:12px;line-height:1.9;
}
#tabContent .newsletter-admin .newsletter-campaign-guidance i{color:var(--sadaa-primary);margin-top:4px}
@media(max-width:1100px){
  /* In responsive cards, retain field/value labels and a compact selection row. */
  #tabContent .newsletter-admin .newsletter-table td.newsletter-select-col{justify-content:space-between!important;text-align:right!important}
  #tabContent .newsletter-admin .newsletter-table .newsletter-row-actions{z-index:2}
  #tabContent .newsletter-admin .newsletter-actions-content{white-space:normal}
  #tabContent .newsletter-admin .newsletter-campaign-intro,
  #tabContent .newsletter-admin .newsletter-campaign-list,
  #tabContent .newsletter-admin .newsletter-editor-card{padding:16px!important}
}
@media(max-width:600px){
  #tabContent .newsletter-admin .newsletter-bulk-toolbar{align-items:stretch;flex-direction:column}
  #tabContent .newsletter-admin .newsletter-bulk-buttons{width:100%;align-items:stretch}
  #tabContent .newsletter-admin .newsletter-bulk-buttons .sadaa-btn{flex:1 1 100%}
  #tabContent .newsletter-admin .newsletter-actions-content{min-width:215px}
}

/* Tablet and mobile: the table header is hidden, so Select All remains accessible. */
#tabContent .newsletter-admin .newsletter-mobile-select-all{display:none}
@media(max-width:1100px){
  #tabContent .newsletter-admin .newsletter-mobile-select-all{
    display:flex;align-items:center;padding:10px 12px;margin-bottom:9px;
    border:1px solid var(--sadaa-line-2);border-radius:8px;background:#fff;color:var(--sadaa-text);font-size:12px;
  }
  #tabContent .newsletter-admin .newsletter-mobile-select-all label{display:flex;align-items:center;gap:10px;cursor:pointer}
}

/* SADAA V106.3 — newsletter polish; scoped to the existing tab and central stylesheet. */
/* Selection actions remain visible even if the user has not selected rows yet. */
#tabContent .newsletter-admin .newsletter-bulk-toolbar{
  min-height:62px;
  padding:12px 16px;
  gap:12px;
}
#tabContent .newsletter-admin .newsletter-bulk-buttons{gap:8px}
#tabContent .newsletter-admin .newsletter-bulk-buttons .sadaa-btn{
  border-radius:7px;
  padding:9px 14px;
  min-height:38px;
  font-size:13px;
  line-height:1.4;
}
#tabContent .newsletter-admin .newsletter-bulk-buttons .newsletter-bulk-danger:not(:disabled):hover{
  background:#fff4f5;
  border-color:#cb8893;
}
#tabContent .newsletter-admin .newsletter-bulk-clear{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--sadaa-line-2);
  border-radius:7px;
  background:#fff;
  color:var(--sadaa-text-2);
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  white-space:nowrap;
}
#tabContent .newsletter-admin .newsletter-bulk-clear:not(:disabled):hover{
  border-color:var(--sadaa-line-3);
  color:var(--sadaa-primary);
  background:var(--sadaa-tint-3);
}
#tabContent .newsletter-admin .newsletter-bulk-clear:disabled{opacity:.48;cursor:not-allowed}
#tabContent .newsletter-admin .newsletter-bulk-clear:focus-visible,
#tabContent .newsletter-admin .newsletter-test-button:focus-visible{
  outline:2px solid var(--sadaa-primary);
  outline-offset:2px;
}
/* Override inherited generic form spacing, which inflated the three-dot menu. */
#tabContent .newsletter-admin .newsletter-actions-content{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  padding:5px;
  width:max-content;
  min-width:218px;
  max-width:min(260px,calc(100vw - 32px));
  border-radius:8px;
}
#tabContent .newsletter-admin .newsletter-actions-content > form{
  display:block!important;
  flex:none!important;
  width:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
#tabContent .newsletter-admin .newsletter-actions-content > form + form{
  margin-top:4px!important;
  padding-top:4px!important;
  border-top:1px solid var(--sadaa-tint-3)!important;
}
#tabContent .newsletter-admin .newsletter-actions-content button{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:38px!important;
  margin:0!important;
  padding:8px 10px!important;
  border-radius:6px;
  font-size:13px!important;
  line-height:1.45!important;
  text-align:right!important;
  white-space:normal;
  gap:9px;
}
#tabContent .newsletter-admin .newsletter-actions-content button i{flex:0 0 17px;width:17px}
/* HTML source is easier to read, without altering the message's own font. */
#tabContent .newsletter-admin .newsletter-html-editor{
  font-family:Consolas,"Courier New",monospace!important;
  font-size:15px!important;
  line-height:1.8!important;
  padding:16px 18px!important;
  tab-size:2;
}
/* Compose/test section: concise heading and aligned input + test button. */
#tabContent .newsletter-admin .newsletter-send-test{
  display:block;
  border:1px solid var(--sadaa-line-2);
  border-radius:9px;
  margin:18px 0 4px;
  padding:16px;
  background:#faf9fb;
}
#tabContent .newsletter-admin .newsletter-test-heading{margin-bottom:12px}
#tabContent .newsletter-admin .newsletter-test-heading h4{
  margin:0 0 5px;
  font-size:14px;
  font-weight:700;
  color:var(--sadaa-text);
}
#tabContent .newsletter-admin .newsletter-test-heading p{
  margin:0;
  color:#687183;
  font-size:12px;
  line-height:1.8;
}
#tabContent .newsletter-admin .newsletter-test-controls{
  display:flex;
  align-items:flex-end;
  gap:12px;
}
#tabContent .newsletter-admin .newsletter-test-controls label{
  flex:1 1 auto;
  min-width:0;
  margin:0;
}
#tabContent .newsletter-admin .newsletter-test-controls .sadaa-input{
  min-height:44px;
  width:100%;
}
#tabContent .newsletter-admin .newsletter-test-button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:9px 18px;
  background:#fff;
  border:1px solid var(--sadaa-line-3);
  border-radius:7px;
  color:var(--sadaa-primary-dark);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
#tabContent .newsletter-admin .newsletter-test-button:hover:not(:disabled){
  background:var(--sadaa-tint-3);
  border-color:var(--sadaa-primary);
}
@media(max-width:720px){
  #tabContent .newsletter-admin .newsletter-test-controls{
    flex-direction:column;
    align-items:stretch;
  }
  #tabContent .newsletter-admin .newsletter-test-controls label{width:100%}
  #tabContent .newsletter-admin .newsletter-test-button{width:100%}
  #tabContent .newsletter-admin .newsletter-bulk-toolbar{align-items:stretch}
}

/* V107 — ملفات المتاجر، واجهة مستقلة مستندة إلى نظام التصميم المركزي. */
.sadaa-store-profile-page,.sadaa-sp-admin{--sp-color:var(--sadaa-primary);--sp-border:#e2e4e9;--sp-muted:#6f7480;color:#23242b}
.sadaa-store-profile-page{max-width:1230px;width:calc(100% - 32px);margin:32px auto 60px;direction:rtl}
.sadaa-store-profile-page *,.sadaa-sp-admin *{box-sizing:border-box}
.sadaa-sp-admin{padding:12px 0;direction:rtl}
.sadaa-sp-panel{background:#fff;border:1px solid var(--sp-border);border-radius:16px;padding:24px;margin:0 0 20px;box-shadow:none}
.sadaa-sp-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;margin-bottom:20px;color:var(--sp-muted)}
.sadaa-sp-breadcrumb a,.sadaa-sp-back{color:var(--sadaa-primary);text-decoration:none;font-weight:600}
.sadaa-sp-heading{margin:10px 0 22px}.sadaa-sp-heading h1{font-size:26px;margin:0 0 8px}.sadaa-sp-heading p{color:var(--sp-muted);margin:0}
.sadaa-sp-hero{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:24px;align-items:center;border-top:3px solid var(--sadaa-primary)}
.sadaa-sp-hero.is-featured{border-top-width:4px}
.sadaa-sp-shop-logo{width:120px;height:120px;display:grid;place-items:center;background:#f7f7f8;border:1px solid var(--sp-border);border-radius:14px;overflow:hidden}
.sadaa-sp-shop-logo img{max-width:95%;max-height:95%;object-fit:contain}
.sadaa-sp-title-line,.sadaa-sp-section-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.sadaa-sp-title-line{justify-content:flex-start}
.sadaa-sp-title-line h1{font-size:27px;line-height:1.5;margin:0;font-weight:800}
.sadaa-sp-featured{border:1px solid var(--sadaa-primary);background:var(--sadaa-tint-3);color:var(--sadaa-primary);padding:5px 12px;border-radius:30px;font-weight:700;font-size:12px;white-space:nowrap}
.sadaa-sp-intro p{color:#575964;line-height:1.95;font-size:15px;overflow-wrap:anywhere;margin:12px 0}
.sadaa-sp-stats{display:flex;flex-wrap:wrap;gap:18px;color:var(--sadaa-text-2);font-size:13px}
.sadaa-sp-stats i{color:var(--sadaa-primary);margin-inline-end:5px}
.sadaa-sp-hero-actions{display:flex;flex-direction:column;gap:9px;min-width:156px}
.sadaa-sp-button{background:var(--sadaa-primary);color:#fff!important;border:1px solid var(--sadaa-primary);border-radius:10px;padding:10px 18px;min-height:41px;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none!important;cursor:pointer;font:inherit;font-size:13px;font-weight:700;white-space:normal;text-align:center}
.sadaa-sp-button:hover{background:var(--sadaa-primary-dark);color:#fff!important}
.sadaa-sp-button.secondary{background:#fff;border-color:var(--sadaa-line-3);color:var(--sadaa-primary)!important}
.sadaa-sp-button.secondary:hover{background:var(--sadaa-tint-3)}
.sadaa-sp-section-title{margin-bottom:24px;align-items:center}
.sadaa-sp-section-title h2{font-size:21px;margin:0 0 7px;font-weight:800}
.sadaa-sp-section-title p{margin:0;font-size:13px;color:var(--sp-muted);line-height:1.75}
.sadaa-sp-counter{background:#f8f8f9;border:1px solid var(--sp-border);border-radius:10px;padding:7px 13px;font-size:13px;white-space:nowrap}
.sadaa-sp-products{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.sadaa-sp-product{display:flex;min-width:0;flex-direction:column;gap:9px;border:1px solid var(--sp-border);border-radius:13px;padding:11px;background:#fff;text-decoration:none!important;color:inherit!important;overflow:hidden}
.sadaa-sp-product:hover{border-color:var(--sadaa-line-3)}
.sadaa-sp-product img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#faf9fb;border-radius:9px}
.sadaa-sp-product strong{font-size:14px;line-height:1.7;min-height:45px;overflow-wrap:anywhere}
.sadaa-sp-product .sadaa-sp-price{color:var(--sadaa-primary);font-weight:800;font-size:15px}
.sadaa-sp-product small{color:var(--sp-muted);font-size:12px}
.sadaa-sp-empty{color:var(--sp-muted);background:#f8f8fa;border-radius:10px;padding:22px;text-align:center;margin:0}
.sadaa-sp-score{display:flex;align-items:center;gap:9px}.sadaa-sp-score strong{font-size:27px}.sadaa-sp-score span{color:#b78a2a;font-size:25px}.sadaa-sp-score small{color:var(--sp-muted)}
.sadaa-sp-reviews-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:25px;align-items:start}
.sadaa-sp-reviews-list{display:flex;flex-direction:column;gap:13px;min-width:0}
.sadaa-sp-review{background:#fff;border:1px solid var(--sp-border);border-radius:12px;padding:18px}
.sadaa-sp-review-head{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:13px}
.sadaa-sp-review-head time{color:var(--sp-muted)}.sadaa-sp-stars{color:#b78a2a;letter-spacing:2px;font-size:16px}
.sadaa-sp-review p{line-height:1.9;margin:13px 0 0;white-space:normal;overflow-wrap:anywhere}
.sadaa-sp-owner-reply{margin:16px 8px 0 0;padding:12px 17px;background:var(--sadaa-tint-2);border-right:3px solid var(--sadaa-primary);border-radius:8px;font-size:13px}
.sadaa-sp-owner-reply p{margin:5px 0}
.sadaa-sp-review-form{border:1px solid var(--sp-border);border-radius:14px;padding:19px;background:#fbfbfc}
.sadaa-sp-review-form h3{margin:0 0 20px;font-size:19px}
.sadaa-sp-form{display:flex;flex-direction:column;align-items:stretch;gap:11px}
.sadaa-sp-form label,.sadaa-sp-reply-form label{font-size:13px;font-weight:700}
.sadaa-sp-form input,.sadaa-sp-form select,.sadaa-sp-form textarea,.sadaa-sp-reply-form textarea{width:100%;min-width:0;display:block;background:#fff;color:var(--sadaa-text);border:1px solid #d6d7dd;border-radius:9px;padding:11px;font:inherit;font-size:14px;box-shadow:none}
.sadaa-sp-form input:focus,.sadaa-sp-form select:focus,.sadaa-sp-form textarea:focus,.sadaa-sp-reply-form textarea:focus{outline:2px solid var(--sadaa-primary);outline-offset:1px}
.sadaa-sp-form textarea,.sadaa-sp-reply-form textarea{resize:vertical;line-height:1.8}
.sadaa-sp-stars-picker{border:0;padding:0;margin:0;min-width:0}.sadaa-sp-stars-picker legend{font-size:13px;font-weight:700;margin-bottom:6px}
.sadaa-sp-star-options{display:flex;flex-direction:row;justify-content:flex-end;direction:rtl;width:max-content;gap:1px}
.sadaa-sp-star-options input{position:absolute;opacity:0;width:1px;height:1px}
.sadaa-sp-star-options label{font-size:32px;color:#c6c8ce;cursor:pointer;line-height:1.3}
.sadaa-sp-star-options label:hover,.sadaa-sp-star-options label:hover~label,.sadaa-sp-star-options input:checked+label,.sadaa-sp-star-options input:checked~label{color:#b78a2a}
.sadaa-sp-star-options input:focus-visible+label{outline:2px solid var(--sadaa-primary);outline-offset:2px}
.sadaa-sp-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.sadaa-sp-muted{color:var(--sp-muted);line-height:1.85;font-size:13px}
.sadaa-sp-notice{background:var(--sadaa-tint-3);color:var(--sadaa-primary);border:1px solid var(--sadaa-line-2);padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.8}
.sadaa-sp-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:14px 0 22px}
.sadaa-sp-choice{padding:19px;border:1px solid var(--sp-border);border-radius:12px;background:#faf9fb}
.sadaa-sp-choice strong{display:block;color:var(--sadaa-primary);margin-bottom:8px}.sadaa-sp-choice p{margin:0;font-size:13px;color:var(--sp-muted);line-height:1.9}
.sadaa-sp-manager .sadaa-sp-form{max-width:700px}
.sadaa-sp-manager .sadaa-sp-products a{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:8px}
.sadaa-sp-manager .sadaa-sp-product .sadaa-sp-button{width:100%}
.sadaa-sp-result{max-width:570px;text-align:center;margin:10vh auto!important}
.sadaa-sp-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.sadaa-sp-tab{border:1px solid var(--sp-border);border-radius:8px;padding:10px 15px;text-decoration:none;color:var(--sadaa-primary)}.sadaa-sp-tab.is-current{background:var(--sadaa-primary);color:#fff}
.sadaa-sp-review-row .sadaa-sp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:15px}.sadaa-sp-review-row .sadaa-sp-actions form{margin:0}
.sadaa-sp-reply-form{margin-top:15px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.sadaa-sp-reply-form textarea{width:100%}
.sadaa-store-card-links{display:flex;align-items:center;gap:7px;width:100%}.sadaa-store-card-links>*{min-width:0;flex:1;justify-content:center}.sadaa-store-card-detail{border:1px solid var(--sadaa-line-3);background:var(--sadaa-tint-3);color:var(--sadaa-primary-dark)!important;text-decoration:none;display:inline-flex;align-items:center;text-align:center;padding:9px 12px;border-radius:9px;font-weight:700;font-size:13px;min-height:39px}.sadaa-store-card-detail:hover{border-color:var(--sadaa-primary);background:var(--sadaa-tint-2)}
.sadaa-store-detail-title{color:inherit!important;text-decoration:none!important}.sadaa-store-detail-title:hover{text-decoration:underline!important}
@media(max-width:1060px){.sadaa-sp-products{grid-template-columns:repeat(4,minmax(0,1fr))}.sadaa-sp-hero{grid-template-columns:95px 1fr}.sadaa-sp-shop-logo{width:95px;height:95px}.sadaa-sp-hero-actions{grid-column:1/-1;flex-direction:row}}
@media(max-width:760px){.sadaa-store-profile-page{width:calc(100% - 24px);margin:20px auto 40px}.sadaa-sp-panel{padding:17px;border-radius:13px}.sadaa-sp-reviews-layout{grid-template-columns:1fr}.sadaa-sp-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sadaa-sp-choice-grid{grid-template-columns:1fr}.sadaa-sp-title-line h1{font-size:22px}.sadaa-sp-section-title h2{font-size:18px}.sadaa-sp-product strong{font-size:13px;min-height:0}}
@media(max-width:490px){.sadaa-sp-hero{grid-template-columns:65px 1fr;gap:13px}.sadaa-sp-shop-logo{width:65px;height:65px}.sadaa-sp-hero-actions{flex-direction:column}.sadaa-sp-title-line h1{font-size:19px}.sadaa-sp-section-title{gap:8px}.sadaa-sp-counter{font-size:11px}.sadaa-sp-product{padding:8px}.sadaa-sp-review-head{gap:8px}.sadaa-sp-products{gap:9px}}
.sadaa-sp-report{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:15px}.sadaa-sp-report label{font-size:12px;color:#6f7480}.sadaa-sp-report select{padding:5px 9px;font:inherit;font-size:12px;border:1px solid #d6d7dd;border-radius:7px;margin-inline-start:5px;background:#fff}.sadaa-sp-report button{border:0;background:transparent;color:var(--sadaa-primary);text-decoration:underline;cursor:pointer;font:inherit;font-size:12px}
.sadaa-sp-edit{border-top:1px solid #e2e4e9;margin-top:8px;padding-top:8px}.sadaa-sp-edit summary{color:var(--sadaa-primary);font-weight:700;cursor:pointer;font-size:12px}.sadaa-sp-edit .sadaa-sp-form{margin-top:12px}.sadaa-sp-edit label{display:block}.sadaa-sp-edit input{margin-top:4px}.sadaa-sp-product-controls{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.sadaa-sp-product-controls form{flex:1;min-width:calc(50% - 3px)}.sadaa-sp-product-controls .sadaa-sp-button{padding:7px 5px;font-size:11px;min-height:34px}
.sadaa-store-card-rating{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--sadaa-text-2);margin:4px 0 10px;min-height:18px}.sadaa-store-card-rating i{color:#b78a2a}.sadaa-store-card-rating strong{font-size:13px;color:var(--sadaa-text)}.sadaa-store-card-rating span{color:var(--sadaa-text-2)}

/* V107 prelaunch: moderation of merchant product submissions */
.sadaa-sp-product-review-main{display:flex;gap:16px;align-items:flex-start}
.sadaa-sp-product-review-main>img{width:92px;height:92px;flex:none;object-fit:contain;border:1px solid #e2e4e9;border-radius:10px;background:#faf9fb}
.sadaa-sp-product-review-main>div{min-width:0;flex:1;overflow-wrap:anywhere}
.sadaa-sp-product-review-main code{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.sadaa-sp-product-status{font-size:12px;color:var(--sadaa-primary);background:var(--sadaa-tint-3);border-radius:7px;padding:5px 8px;display:inline-block}
@media(max-width:520px){.sadaa-sp-product-review-main{gap:9px}.sadaa-sp-product-review-main>img{width:62px;height:62px}}

/* V107.3 | Store product manager — unified admin-quality interface.
   Scoped to the member tab; uses the existing components.css and no inline styles. */
#tabContent .sadaa-sp-manager{
  --sp-primary:var(--sadaa-primary);--sp-ink:var(--sadaa-text);--sp-sub:#74717e;
  --sp-stroke:var(--sadaa-line-2);--sp-soft:var(--sadaa-tint-3);
  width:100%;max-width:none;min-width:0;margin:0;padding:0;direction:rtl;color:var(--sp-ink);
}
#tabContent .sadaa-sp-manager *{box-sizing:border-box}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--sp-stroke);border-radius:12px;padding:12px 18px;margin:0 0 20px;
}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-breadcrumb{display:flex;align-items:center;gap:11px;color:var(--sadaa-muted);font-size:13px;line-height:1.6}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-breadcrumb i{color:var(--sadaa-muted);font-size:10px}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-breadcrumb strong{color:var(--sp-primary);font-weight:700}
#tabContent .sadaa-sp-manager .sadaa-sp-back{display:inline-flex;align-items:center;gap:9px;min-height:37px;padding:7px 13px;background:#fff;border:1px solid var(--sadaa-line-2);border-radius:9px;font-size:13px;color:var(--sp-primary);font-weight:700;text-decoration:none;transition:background .15s,border-color .15s}
#tabContent .sadaa-sp-manager .sadaa-sp-back:hover{background:var(--sp-soft);border-color:var(--sadaa-muted)}
#tabContent .sadaa-sp-manager .sadaa-sp-heading.sadaa-sp-manager-intro{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin:0 0 20px;padding:23px 27px;background:#fff;border:1px solid var(--sp-stroke);border-radius:14px;
}
#tabContent .sadaa-sp-manager .sadaa-sp-intro-copy{min-width:0;max-width:790px}
#tabContent .sadaa-sp-manager .sadaa-sp-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--sp-primary);font-size:12px;font-weight:700;margin-bottom:8px}
#tabContent .sadaa-sp-manager .sadaa-sp-heading h1{font-size:clamp(21px,2vw,27px);color:var(--sadaa-text);font-weight:800;line-height:1.6;margin:0 0 7px}
#tabContent .sadaa-sp-manager .sadaa-sp-heading p{color:#686572;font-size:14px;line-height:1.9;margin:0;max-width:720px}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-status{min-width:187px;display:flex;align-items:center;gap:13px;padding:15px 16px;background:var(--sadaa-tint-3);border:1px solid var(--sadaa-line-2);border-radius:12px}
#tabContent .sadaa-sp-manager .sadaa-sp-status-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:11px;background:var(--sadaa-tint-3);color:var(--sp-primary);font-size:19px}
#tabContent .sadaa-sp-manager .sadaa-sp-status-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
#tabContent .sadaa-sp-manager .sadaa-sp-status-copy small{font-size:11px;color:var(--sadaa-text-2);line-height:1.5}
#tabContent .sadaa-sp-manager .sadaa-sp-status-copy strong{font-size:14px;color:var(--sadaa-text);font-weight:700;white-space:nowrap}
#tabContent .sadaa-sp-manager .sadaa-sp-status-copy b{color:var(--sp-primary);font-size:22px;font-weight:800}
#tabContent .sadaa-sp-manager .sadaa-sp-panel{padding:26px 28px;margin:0 0 18px;min-width:0;border:1px solid var(--sp-stroke);border-radius:14px;background:#fff;box-shadow:none}
#tabContent .sadaa-sp-manager .sadaa-sp-panel-head{display:flex;align-items:flex-start;gap:14px;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--sadaa-tint-3)}
#tabContent .sadaa-sp-manager .sadaa-sp-section-icon{width:41px;height:41px;flex:0 0 41px;border-radius:10px;background:var(--sadaa-tint-3);display:grid;place-items:center;color:var(--sp-primary);font-size:17px}
#tabContent .sadaa-sp-manager .sadaa-sp-panel-head>div{flex:1;min-width:0}
#tabContent .sadaa-sp-manager .sadaa-sp-section-eyebrow{display:block;color:var(--sp-primary);font-size:11px;font-weight:700;margin:0 0 4px}
#tabContent .sadaa-sp-manager .sadaa-sp-panel-head h2{font-size:19px;line-height:1.55;font-weight:800;margin:0 0 4px;color:var(--sadaa-text)}
#tabContent .sadaa-sp-manager .sadaa-sp-panel-head p{margin:0;color:var(--sadaa-muted);font-size:13px;line-height:1.85}
#tabContent .sadaa-sp-manager .sadaa-sp-mode-form{max-width:none;gap:0}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:0}
#tabContent .sadaa-sp-manager .sadaa-sp-choice{min-width:0;position:relative;display:flex;align-items:flex-start;gap:13px;cursor:pointer;padding:20px;border:1px solid var(--sadaa-line-2);border-radius:12px;background:#fff;transition:background .15s,border-color .15s,box-shadow .15s}
#tabContent .sadaa-sp-manager .sadaa-sp-choice:hover{border-color:var(--sadaa-line-3);background:var(--sadaa-surface-alt)}
#tabContent .sadaa-sp-manager .sadaa-sp-choice:has(input:checked){background:var(--sadaa-tint-3);border-color:var(--sadaa-primary);box-shadow:inset 0 0 0 1px var(--sadaa-primary)}
#tabContent .sadaa-sp-manager .sadaa-sp-choice:focus-within{outline:2px solid var(--sadaa-primary);outline-offset:2px}
#tabContent .sadaa-sp-manager .sadaa-sp-choice input[type=radio]{flex:0 0 17px;width:17px;height:17px;margin:3px 0 0;accent-color:var(--sp-primary);cursor:pointer;padding:0}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-indicator{display:grid;place-items:center;flex:0 0 41px;height:41px;border-radius:10px;background:var(--sadaa-tint-3);color:var(--sp-primary);font-size:17px}
#tabContent .sadaa-sp-manager .sadaa-sp-choice:has(input:checked) .sadaa-sp-choice-indicator{background:var(--sadaa-tint-3)}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-body{display:block;flex:1;min-width:0;line-height:1.7}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-body strong{display:block;margin:0 0 7px;color:var(--sadaa-text);font-size:15px;font-weight:800}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-body>span{display:block;color:var(--sadaa-text-2);font-size:12.5px;line-height:1.95}
#tabContent .sadaa-sp-manager .sadaa-sp-choice-mark{display:none;color:var(--sp-primary);font-size:12px}
#tabContent .sadaa-sp-manager .sadaa-sp-choice:has(input:checked) .sadaa-sp-choice-mark{display:inline-flex}
#tabContent .sadaa-sp-manager .sadaa-sp-section-footer{display:flex;justify-content:flex-start;align-items:center;gap:14px;flex-wrap:wrap;margin-top:22px}
#tabContent .sadaa-sp-manager .sadaa-sp-button{min-height:44px;padding:10px 21px;background:var(--sp-primary);border:1px solid var(--sp-primary);border-radius:9px;font:inherit;font-size:13px;font-weight:700;color:#fff!important;box-shadow:none;transition:background .15s,transform .15s;cursor:pointer}
#tabContent .sadaa-sp-manager .sadaa-sp-button:hover{background:var(--sadaa-primary-dark)}
#tabContent .sadaa-sp-manager .sadaa-sp-save-mode{width:auto;min-width:180px;margin:0}
#tabContent .sadaa-sp-manager .sadaa-sp-auto-fields[hidden],#tabContent .sadaa-sp-manager [data-sp-active-method][hidden]{display:none!important}
#tabContent .sadaa-sp-manager .sadaa-sp-auto-fields{width:100%;max-width:none;background:var(--sadaa-surface-alt);border:1px solid var(--sadaa-line-2);border-radius:12px;padding:20px;margin:18px 0 0}
#tabContent .sadaa-sp-manager .sadaa-sp-source-heading{display:flex;flex-direction:column;gap:7px;margin-bottom:17px}
#tabContent .sadaa-sp-manager .sadaa-sp-source-heading strong{font-size:14px;color:var(--sadaa-text)}
#tabContent .sadaa-sp-manager .sadaa-sp-source-heading strong i{color:var(--sp-primary);margin-inline-end:6px}
#tabContent .sadaa-sp-manager .sadaa-sp-source-heading span{font-size:12px;color:var(--sadaa-text-2);line-height:1.9}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-list{display:flex;flex-direction:column;gap:13px}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-row{display:flex;align-items:flex-end;gap:10px;width:100%;min-width:0}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px;font-size:13px;color:var(--sadaa-text);font-weight:700}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-number{display:inline-flex;align-items:center;justify-content:center;background:var(--sadaa-line-2);border-radius:5px;width:21px;height:21px;margin-inline-start:6px;color:var(--sp-primary);font-size:11px}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-remove{flex:0 0 45px;height:46px;border:1px solid var(--sadaa-line-2);background:#fff;border-radius:9px;display:grid;place-items:center;color:var(--sadaa-primary);cursor:pointer}
#tabContent .sadaa-sp-manager .sadaa-sp-feed-remove:not(:disabled):hover{background:var(--sadaa-tint-2)}
#tabContent .sadaa-sp-manager .sadaa-sp-add-feed{display:inline-flex;align-items:center;gap:8px;margin-top:15px;padding:10px 15px;min-height:40px;border:1px solid var(--sadaa-line-2);border-radius:9px;color:var(--sp-primary);background:#fff;font-size:12px;font-weight:700;cursor:pointer}
#tabContent .sadaa-sp-manager .sadaa-sp-add-feed:hover{background:var(--sadaa-tint-2)}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(285px,.9fr);align-items:start;gap:22px;margin:0}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-fields{grid-column:1;grid-row:1;min-width:0}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-fields .sadaa-sp-form{width:100%;max-width:none;gap:18px}
#tabContent .sadaa-sp-manager .sadaa-sp-field{display:flex;flex-direction:column;min-width:0;gap:8px}
#tabContent .sadaa-sp-manager .sadaa-sp-field label{font-size:13px;color:var(--sadaa-text);font-weight:700;line-height:1.7}
#tabContent .sadaa-sp-manager .sadaa-sp-required{color:#a03b5c}
#tabContent .sadaa-sp-manager .sadaa-sp-optional{font-size:11px;color:var(--sadaa-muted);font-weight:400;margin-inline-start:5px}
#tabContent .sadaa-sp-manager .sadaa-sp-field>small{color:var(--sadaa-muted);font-size:11.5px;line-height:1.6}
#tabContent .sadaa-sp-manager .sadaa-sp-field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}
#tabContent .sadaa-sp-manager .sadaa-sp-field input,#tabContent .sadaa-sp-manager .sadaa-sp-field select,#tabContent .sadaa-sp-manager .sadaa-sp-feed-label input{
  display:block;box-sizing:border-box;width:100%;min-width:0;height:46px;min-height:46px;padding:10px 13px;border:1px solid var(--sadaa-line-2);border-radius:9px;background:#fff;color:var(--sadaa-text);box-shadow:none;font:inherit;font-size:13px;outline:0;transition:border-color .15s,box-shadow .15s
}
#tabContent .sadaa-sp-manager .sadaa-sp-field input::placeholder,#tabContent .sadaa-sp-manager .sadaa-sp-feed-label input::placeholder{color:var(--sadaa-muted)}
#tabContent .sadaa-sp-manager .sadaa-sp-field input:focus,#tabContent .sadaa-sp-manager .sadaa-sp-field select:focus,#tabContent .sadaa-sp-manager .sadaa-sp-feed-label input:focus{border-color:var(--sadaa-primary);box-shadow:0 0 0 3px rgba(var(--sadaa-primary-rgb),.12)}
#tabContent .sadaa-sp-manager .sadaa-sp-field input[dir=ltr]{text-align:left}
#tabContent .sadaa-sp-manager .sadaa-sp-select-wrap{display:block;position:relative}
#tabContent .sadaa-sp-manager .sadaa-sp-select-wrap select{appearance:none;padding-inline-start:34px;cursor:pointer}
#tabContent .sadaa-sp-manager .sadaa-sp-select-wrap>i{position:absolute;inset-inline-start:13px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--sadaa-text-2);pointer-events:none}
#tabContent .sadaa-sp-manager .sadaa-sp-product-entry-form .sadaa-sp-section-footer{padding-top:19px;margin-top:3px;border-top:1px solid var(--sadaa-tint-3)}
#tabContent .sadaa-sp-manager .sadaa-sp-save-hint{font-size:11.5px;color:var(--sadaa-text-2);display:inline-flex;align-items:center;gap:7px;line-height:1.7}
#tabContent .sadaa-sp-manager .sadaa-sp-save-hint i{color:var(--sp-primary)}
/* Functional preview replaces the oversized static illustration. */
#tabContent .sadaa-sp-manager .sadaa-sp-manual-art{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:20px;align-self:start;min-width:0;min-height:0;max-height:none;order:0;margin:0;padding:21px;border:1px solid var(--sadaa-line-2);border-radius:12px;background:var(--sadaa-surface-alt);overflow:hidden}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-art::before,#tabContent .sadaa-sp-manager .sadaa-sp-manual-art::after{content:none}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-head{display:flex;flex-direction:column;gap:5px}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-kicker{color:var(--sp-primary);font-weight:700;font-size:11px}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-head strong{font-weight:800;color:var(--sadaa-text);font-size:16px}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-head p{margin:0;color:var(--sadaa-text-2);font-size:12px;line-height:1.85}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-foot{display:flex;align-items:flex-start;gap:8px;color:var(--sadaa-text-2);font-size:11.5px;line-height:1.8}
#tabContent .sadaa-sp-manager .sadaa-sp-preview-foot i{color:var(--sp-primary);margin-top:3px}
#tabContent .sadaa-sp-manager .sadaa-sp-sync-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border:1px solid var(--sadaa-line-2);background:var(--sadaa-surface-alt);border-radius:10px;padding:14px 17px;font-size:13px}
#tabContent .sadaa-sp-manager .sadaa-sp-sync-status span{color:var(--sadaa-text-2)}.sadaa-sp-sync-status i{margin-inline-end:6px}
#tabContent .sadaa-sp-manager .sadaa-sp-sync-actions{margin-top:17px}
#tabContent .sadaa-sp-manager .sadaa-sp-muted{font-size:12px;color:var(--sadaa-muted);line-height:1.8}
#tabContent .sadaa-sp-manager .sadaa-sp-sync-panel>.sadaa-sp-muted{margin:15px 0 0}
#tabContent .sadaa-sp-manager .sadaa-sp-saved-panel .sadaa-sp-panel-head{margin-bottom:18px}
#tabContent .sadaa-sp-manager .sadaa-sp-count{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:7px;background:var(--sadaa-tint-2);color:var(--sp-primary);font-size:12px;vertical-align:middle;margin-inline-start:6px}
#tabContent .sadaa-sp-manager .sadaa-sp-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#tabContent .sadaa-sp-manager .sadaa-sp-product{border:1px solid var(--sadaa-line-2);border-radius:12px;padding:11px;gap:10px;min-width:0;transition:border-color .15s}
#tabContent .sadaa-sp-manager .sadaa-sp-product:hover{border-color:var(--sadaa-line-3)}
#tabContent .sadaa-sp-manager .sadaa-sp-product img{aspect-ratio:1/1;object-fit:contain;background:transparent}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price{font-weight:800;color:var(--sp-primary);font-size:14px}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-button.secondary{border:1px solid var(--sadaa-line-2);background:#fff;color:var(--sp-primary)!important;font-size:11px;padding:7px 5px;min-height:34px}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-button.secondary:hover{background:var(--sadaa-tint-3)}
#tabContent .sadaa-sp-manager .sadaa-sp-empty-products{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:38px 14px;background:var(--sadaa-surface-alt);border:1px dashed var(--sadaa-line-2);border-radius:12px}
#tabContent .sadaa-sp-manager .sadaa-sp-empty-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:13px;background:var(--sadaa-tint-3);color:var(--sp-primary);font-size:24px;margin-bottom:6px}
#tabContent .sadaa-sp-manager .sadaa-sp-empty-products strong{color:var(--sadaa-text);font-size:14px}
#tabContent .sadaa-sp-manager .sadaa-sp-empty-products>span:last-child{color:var(--sadaa-text-2);font-size:12px}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-flash{margin:0 0 17px;display:flex;align-items:flex-start;gap:10px}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-endnote{display:flex;align-items:flex-start;gap:9px;padding:4px 3px 13px;margin:0}
#tabContent .sadaa-sp-manager .sadaa-sp-manager-endnote i{color:var(--sp-primary);margin-top:3px}
@media(max-width:1120px){
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-layout{grid-template-columns:minmax(0,1fr) minmax(245px,.7fr);gap:18px}
 #tabContent .sadaa-sp-manager .sadaa-sp-products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:850px){
 #tabContent .sadaa-sp-manager .sadaa-sp-heading.sadaa-sp-manager-intro{align-items:flex-start}
 #tabContent .sadaa-sp-manager .sadaa-sp-manager-status{min-width:165px}
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-layout{grid-template-columns:minmax(0,1fr)}
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-fields,#tabContent .sadaa-sp-manager .sadaa-sp-manual-art{grid-column:1;grid-row:auto}
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-art{order:1;min-height:0;max-height:none}
}
@media(max-width:660px){
 #tabContent .sadaa-sp-manager .sadaa-sp-manager-topbar{padding:11px 13px;margin-bottom:12px}
 #tabContent .sadaa-sp-manager .sadaa-sp-heading.sadaa-sp-manager-intro{padding:19px 16px;gap:17px;flex-direction:column}
 #tabContent .sadaa-sp-manager .sadaa-sp-manager-status{width:100%;min-width:0}
 #tabContent .sadaa-sp-manager .sadaa-sp-panel{padding:19px 15px;margin-bottom:13px}
 #tabContent .sadaa-sp-manager .sadaa-sp-panel-head{gap:10px;margin-bottom:18px;padding-bottom:15px}
 #tabContent .sadaa-sp-manager .sadaa-sp-panel-head h2{font-size:17px}
 #tabContent .sadaa-sp-manager .sadaa-sp-section-icon{width:36px;height:36px;flex-basis:36px}
 #tabContent .sadaa-sp-manager .sadaa-sp-choice-grid{grid-template-columns:minmax(0,1fr)}
 #tabContent .sadaa-sp-manager .sadaa-sp-choice{padding:15px 13px;gap:9px}
 #tabContent .sadaa-sp-manager .sadaa-sp-choice-indicator{width:34px;height:34px;flex-basis:34px;font-size:15px}
 #tabContent .sadaa-sp-manager .sadaa-sp-field-grid{grid-template-columns:1fr}
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-layout{gap:16px}
 #tabContent .sadaa-sp-manager .sadaa-sp-manual-art{padding:17px}
 #tabContent .sadaa-sp-manager .sadaa-sp-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:390px){
 #tabContent .sadaa-sp-manager .sadaa-sp-manager-topbar{align-items:flex-start}
 #tabContent .sadaa-sp-manager .sadaa-sp-panel{padding:16px 12px}
 #tabContent .sadaa-sp-manager .sadaa-sp-choice input[type=radio]{width:16px;height:16px;flex-basis:16px}
 #tabContent .sadaa-sp-manager .sadaa-sp-products{grid-template-columns:1fr}
 #tabContent .sadaa-sp-manager .sadaa-sp-feed-row{gap:6px}
}


/* V107.3.2 — Member shell tablet sidebar: final shared-layout invariant.
   Only the member dashboard between 901–1100 CSS pixels. */
@media (min-width:901px) and (max-width:1100px){
  html body #memberDashboardWrapper.dashboard-wrapper.member-dashboard-wrapper{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:12px !important;
    width:calc(100% - 20px) !important;
    max-width:1430px !important;
    margin:14px auto 28px !important;
    padding:0 !important;
    direction:rtl !important;
  }
  html body #memberDashboardWrapper.dashboard-wrapper.member-dashboard-wrapper > #memberSidebarStack.member-sidebar-stack{
    display:flex !important;
    flex-direction:column !important;
    position:sticky !important;
    top:82px !important;
    right:auto !important;
    left:auto !important;
    inset-inline:auto !important;
    flex:0 0 265px !important;
    width:265px !important;
    min-width:265px !important;
    max-width:265px !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    pointer-events:auto !important;
  }
  html body #memberDashboardWrapper.dashboard-wrapper.member-dashboard-wrapper > .content-area{
    flex:1 1 0 !important;
    min-width:0 !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
  }
  html body #memberDashboardWrapper.dashboard-wrapper.member-dashboard-wrapper > #memberMobileTabsToggle{
    display:none !important;
  }
}


/* V107.3.3 | Member navigation is a dedicated <nav>, not a generic ad/sidebar.
   The content column already reserves space for this navigation at 901–1100px.
   Keep it visible even if browser extensions hide generic aside.sidebar elements.
   Scoped strictly to the member dashboard; admin menu and compact drawer unchanged. */
#memberDashboardWrapper > #memberSidebarStack > #memberPrimaryNavigation.sadaa-member-side-nav{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  flex:0 0 auto;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}
@media (min-width:901px) and (max-width:1100px){
  html body #memberDashboardWrapper > #memberSidebarStack > #memberPrimaryNavigation.sadaa-member-side-nav{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:none !important;
    pointer-events:auto !important;
    position:relative !important;
    height:auto !important;
    min-height:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
  }
  html body #memberDashboardWrapper #memberPrimaryNavigation .member-sidebar-nav{
    display:flex !important;
    flex-direction:column !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:none !important;
  }
}


/* V107.3.4 | full-height member navigation column, from header to footer.
   The sidebar itself is a stretched layout column, not a viewport-height sticky box.
   Only its inner navigation may stick. Keep the <=900px mobile drawer untouched. */
@media (min-width:901px){
  html body #memberDashboardWrapper.dashboard-wrapper.member-dashboard-wrapper{
    display:flex !important;
    flex-direction:row !important;
    align-items:stretch !important;
    gap:0 !important;
    width:100% !important;
    max-width:none !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px)) !important;
    margin:0 !important;
    padding:0 !important;
    direction:rtl !important;
  }
  html body #memberDashboardWrapper > #memberSidebarStack.member-sidebar-stack{
    box-sizing:border-box !important;
    position:relative !important;
    inset:auto !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    align-self:stretch !important;
    flex:0 0 265px !important;
    width:265px !important;
    min-width:265px !important;
    max-width:265px !important;
    height:auto !important;
    min-height:calc(100dvh - var(--sadaa-header-height,70px)) !important;
    max-height:none !important;
    margin:0 !important;
    overflow:visible !important;
    background:#fff !important;
    border-radius:0 !important;
    box-shadow:none !important;
    transform:none !important;
    opacity:1 !important;
    visibility:visible !important;
  }
  html body #memberDashboardWrapper > .content-area.member-form-shell{
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    align-self:stretch !important;
    margin:0 !important;
    /* Restore the shared member-dashboard workspace inset without
       breaking the full-height sidebar-to-header/footer connection. */
    padding:24px clamp(18px,2.15vw,34px) 42px !important;
    box-sizing:border-box !important;
  }
}


/* V107.3.6 | Member sidebar: visually continuous from header through footer.
   The wide-tablet member navigation must be the column, not an inset floating card.
   Keep page-content padding from V107.3.5 and compact drawer (<=900px) unchanged. */
@media (min-width:901px) and (max-width:1100px){
  html body #memberDashboardWrapper > #memberSidebarStack.member-sidebar-stack{
    background:#fff !important;
    border-radius:0 !important;
    box-shadow:none !important;
    border-inline-end:1px solid var(--sadaa-admin-line,var(--sadaa-line,var(--sadaa-line-2))) !important;
  }
  html body #memberDashboardWrapper > #memberSidebarStack > #memberPrimaryNavigation.sadaa-member-side-nav{
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
}
/* The footer's external top margin otherwise leaves a horizontal gap at 1024px.
   Existing desktop rule starts at 1101px; extend it to all permanent-sidebar widths. */
@media (min-width:901px){
  html body:has(#memberDashboardWrapper) > .main-footer,
  html body > #memberDashboardWrapper.dashboard-wrapper ~ .main-footer{
    margin-top:0 !important;
    margin-block-start:0 !important;
  }
}

/* V107.3.7 | Store product card preview: desktop only.
   The product-entry form stays fully usable on phones and tablets
   up to and including 1024 CSS pixels. Desktop 1025px+ is unchanged. */
@media screen and (max-width: 1024px) {
  #tabContent .sadaa-sp-manager .sadaa-sp-manual-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #tabContent .sadaa-sp-manager .sadaa-sp-manual-fields {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }
  #tabContent .sadaa-sp-manager .sadaa-sp-manual-art {
    display: none !important;
  }
}


/* V107.4.2 — Store products: compact, coherent saved product cards.
   Scope stays inside the member manager. The official SAR mark reuses
   the existing centralized .sar-symbol SVG mask from the member stores UI. */
#tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product{
  padding:12px;
  gap:10px;
  border:1px solid var(--sadaa-line-2);
  border-radius:15px;
  background:#fff;
  box-shadow:none;
  align-self:start;
}
#tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product:hover{
  border-color:var(--sadaa-line-3);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product>a.sadaa-sp-product-link{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:11px;
  overflow:hidden;
  background:transparent;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media>img{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  padding:40px 13px 13px;
  object-fit:contain;
  border-radius:0;
  background:transparent;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status{
  position:absolute;
  inset:10px 10px auto auto;
  z-index:1;
  display:inline-flex;
  max-width:calc(100% - 20px);
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:5px 10px;
  background:#fff;
  color:var(--sadaa-primary);
  border:1px solid var(--sadaa-line-2);
  border-radius:7px;
  box-shadow:0 1px 3px rgba(var(--sadaa-shadow-rgb),.03);
  font-size:11px;
  font-weight:700;
  line-height:1.6;
  text-align:center;
  overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="rejected"]{
  color:#a32938;
  border-color:#f1dbe0;
  background:#fff8f9;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="hidden"]{
  color:var(--sadaa-text-2);
  background:#fff;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-title{
  display:block;
  color:var(--sadaa-text);
  font-size:13px;
  font-weight:750;
  line-height:1.8;
  min-height:0;
  margin:0;
  overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price{
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  gap:6px;
  margin:0;
  direction:ltr;
  unicode-bidi:isolate;
  color:#b4232c;
  font-size:16px;
  font-weight:800;
  line-height:1.45;
  font-variant-numeric:tabular-nums;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price .sar-symbol{
  vertical-align:middle;
  width:.87em;
  height:.94em;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price.sadaa-sp-price-unavailable{
  font-size:12px;
  color:var(--sadaa-text-2);
  font-weight:600;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit{
  margin-top:3px;
  padding-top:10px;
  border-color:var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>summary{
  font-size:12px;
  line-height:1.65;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  align-content:start;
  margin:2px 0 0;
  padding:12px 0 0;
  border-top:1px solid var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form{
  display:block;
  min-width:0;
  width:100%;
  flex:none;
  margin:0!important;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child{
  grid-column:1 / -1;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button{
  width:100%;
  min-height:35px;
  padding:7px 9px;
  line-height:1.4;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child .sadaa-sp-button{
  color:#a43140!important;
  border-color:#ecd7dd;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child .sadaa-sp-button:hover{
  background:#fff6f7;
}
@media(max-width:390px){
  #tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product{padding:10px}
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media>img{padding:38px 9px 10px}
}


/* V107.4.3 — Public visitor product cards (store_detail.php).
   Isolated from owner controls; no unsupported availability, seller or rating badges. */
.sadaa-store-profile-page .sadaa-sp-visitor-products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.sadaa-store-profile-page .sadaa-sp-visitor-product{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:11px;
  background:#fff;
  border:1px solid var(--sadaa-line-2);
  border-radius:16px;
  box-shadow:0 2px 10px rgba(var(--sadaa-shadow-rgb),.035);
  overflow:hidden;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.sadaa-store-profile-page .sadaa-sp-visitor-product:hover{
  border-color:var(--sadaa-line-3);
  box-shadow:0 8px 22px rgba(var(--sadaa-shadow-rgb),.10);
  transform:translateY(-2px);
}
.sadaa-store-profile-page .sadaa-sp-visitor-media{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1 / 1;
  padding:0;
  border-radius:12px;
  overflow:hidden;
  background:transparent;
  text-decoration:none!important;
}
.sadaa-store-profile-page .sadaa-sp-visitor-media img{
  display:block;
  position:relative;
  z-index:1;
  width:100%;height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  object-fit:contain;
  transition:transform .18s ease;
}
.sadaa-store-profile-page .sadaa-sp-visitor-product:hover .sadaa-sp-visitor-media img{transform:scale(1.025)}
.sadaa-store-profile-page .sadaa-sp-visitor-info{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:0;
  min-width:0;
  margin-top:12px;
  padding:13px 5px 4px;
  border-top:1px solid var(--sadaa-line-2); /* V107.4.22 | divider between product image and name */
}
.sadaa-store-profile-page .sadaa-sp-visitor-name{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  overflow-wrap:anywhere;
  min-width:0;
  min-height:3.35em;
  margin:0 0 10px;
  color:var(--sadaa-text);
  font-size:14px;
  font-weight:800;
  line-height:1.68;
  text-align:right;
}
.sadaa-store-profile-page .sadaa-sp-visitor-price{
  display:inline-flex;
  flex:none;
  align-self:flex-end;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-width:0;
  margin:0 0 15px;
  color:#b4232c;
  font-size:19px;
  font-weight:800;
  line-height:1.55;
  font-variant-numeric:tabular-nums;
  unicode-bidi:isolate;
}
.sadaa-store-profile-page .sadaa-sp-visitor-price .sar-symbol{
  display:inline-block;
  width:.88em;
  height:.96em;
  flex:0 0 auto;
}
.sadaa-store-profile-page .sadaa-sp-visitor-currency{font-size:.72em;font-weight:700}
.sadaa-store-profile-page .sadaa-sp-visitor-no-price{
  align-self:flex-end;
  margin:0 0 15px;
  color:var(--sadaa-text-2);
  font-size:12px;
  font-weight:600;
}
.sadaa-store-profile-page .sadaa-sp-visitor-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:8px;
  width:100%;
  min-height:43px;
  margin-top:auto;
  padding:9px 8px;
  border:1px solid var(--sadaa-primary);
  border-radius:10px;
  background:var(--sadaa-primary);
  color:#fff!important;
  font-size:12.5px;
  font-weight:800;
  line-height:1.5;
  text-align:center;
  text-decoration:none!important;
  white-space:nowrap;
  transition:background .18s ease,box-shadow .18s ease;
}
.sadaa-store-profile-page .sadaa-sp-visitor-cta:hover,
.sadaa-store-profile-page .sadaa-sp-visitor-cta:focus-visible{
  background:var(--sadaa-primary);
  color:#fff!important;
  box-shadow:0 4px 12px rgba(var(--sadaa-primary-rgb),.15);
}
.sadaa-store-profile-page .sadaa-sp-visitor-cta:focus-visible,
.sadaa-store-profile-page .sadaa-sp-visitor-media:focus-visible{
  outline:3px solid var(--sadaa-primary);
  outline-offset:3px;
}
.sadaa-store-profile-page .sadaa-sp-visitor-cta i{font-size:11px;flex:0 0 auto}
@media(max-width:1150px){
  .sadaa-store-profile-page .sadaa-sp-visitor-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
}
@media(max-width:880px){
  .sadaa-store-profile-page .sadaa-sp-visitor-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
}
@media(max-width:490px){
  .sadaa-store-profile-page .sadaa-sp-visitor-products{gap:10px}
  .sadaa-store-profile-page .sadaa-sp-visitor-product{padding:8px;border-radius:13px}
  .sadaa-store-profile-page .sadaa-sp-visitor-media{padding:0;border-radius:9px}
  .sadaa-store-profile-page .sadaa-sp-visitor-info{padding:10px 2px 3px}
  .sadaa-store-profile-page .sadaa-sp-visitor-name{font-size:12px;line-height:1.65;min-height:3.3em;margin-bottom:7px}
  .sadaa-store-profile-page .sadaa-sp-visitor-price{font-size:16px;gap:3px;margin-bottom:11px}
  .sadaa-store-profile-page .sadaa-sp-visitor-cta{font-size:11px;min-height:38px;padding:8px 3px;gap:5px;border-radius:8px}
  .sadaa-store-profile-page .sadaa-sp-visitor-cta i{font-size:10px}
}
@media(max-width:350px){
  .sadaa-store-profile-page .sadaa-sp-visitor-products{grid-template-columns:1fr;gap:13px}
  .sadaa-store-profile-page .sadaa-sp-visitor-product{padding:11px}
  .sadaa-store-profile-page .sadaa-sp-visitor-info{padding:12px 4px 4px}
  .sadaa-store-profile-page .sadaa-sp-visitor-name{font-size:14px;min-height:0}
  .sadaa-store-profile-page .sadaa-sp-visitor-price{font-size:19px}
  .sadaa-store-profile-page .sadaa-sp-visitor-cta{font-size:13px;min-height:43px}
}
@media(prefers-reduced-motion:reduce){
  .sadaa-store-profile-page .sadaa-sp-visitor-product,
  .sadaa-store-profile-page .sadaa-sp-visitor-media img,
  .sadaa-store-profile-page .sadaa-sp-visitor-cta{transition:none!important}
  .sadaa-store-profile-page .sadaa-sp-visitor-product:hover,
  .sadaa-store-profile-page .sadaa-sp-visitor-product:hover .sadaa-sp-visitor-media img{transform:none!important}
}
/* V107.4.4 | Owner product cards — approved editorial design.
   Existing card image, forms, moderation, and store links remain functional.
   Deliberately isolated from visitor cards and the rest of the member dashboard. */
#tabContent .sadaa-sp-manager .sadaa-sp-products{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,264px),1fr));
  gap:18px;
  align-items:start;
}
#tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product{
  display:flex;
  flex-direction:column;
  align-self:start;
  gap:0;
  min-width:0;
  padding:13px 13px 9px;
  border:1px solid var(--sadaa-tint-3);
  border-radius:20px;
  background:#fff;
  box-shadow:0 3px 12px rgba(var(--sadaa-shadow-rgb),.045);
  overflow:hidden;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
#tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product:hover{
  border-color:var(--sadaa-line-3);
  box-shadow:0 10px 25px rgba(var(--sadaa-shadow-rgb),.105);
  transform:translateY(-2px);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product>a.sadaa-sp-product-link{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  text-decoration:none!important;
  min-width:0;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media{
  position:relative;
  display:grid;
  place-items:center;
  isolation:isolate;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  border-radius:15px;
  background:transparent;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media>img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;height:100%;
  margin:0;
  padding:36px 14px 15px;
  object-fit:contain;
  aspect-ratio:auto;
  border:0;
  border-radius:0;
  background:transparent;
  transition:transform .18s ease;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product:hover .sadaa-sp-product-media>img{
  transform:scale(1.025);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status{
  position:absolute;
  z-index:2;
  inset:11px 11px auto auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  max-width:calc(100% - 22px);
  width:max-content;
  padding:6px 11px;
  color:#fff;
  background:var(--sadaa-primary);
  border:1px solid var(--sadaa-primary);
  border-radius:50px;
  box-shadow:0 3px 7px rgba(var(--sadaa-shadow-rgb),.12);
  font-size:11px;
  font-weight:750;
  line-height:1.5;
  text-align:center;
  overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status i{font-size:12px;flex:0 0 auto}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="pending"]{
  color:var(--sadaa-primary);
  background:#fff;
  border-color:var(--sadaa-line-2);
  box-shadow:0 2px 5px rgba(var(--sadaa-shadow-rgb),.07);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="inactive"],
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="hidden"]{
  color:var(--sadaa-text-2);
  background:#fff;
  border-color:var(--sadaa-line-2);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-status[data-status="rejected"]{
  color:#aa2434;
  background:#fff8fa;
  border-color:#efd0d6;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  min-height:0;
  max-height:5.4em;
  margin:12px 2px 6px;
  padding-top:12px;
  border-top:1px solid var(--sadaa-line-2); /* V107.4.22 | divider between product image and name */
  color:var(--sadaa-brand-deep);
  font-size:14px;
  line-height:1.8;
  font-weight:800;
  text-align:right;
  overflow:hidden;
  overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  align-self:flex-start;
  gap:6px;
  min-width:0;
  margin:0 2px 13px;
  color:#b4232c;
  font-size:18px;
  font-weight:800;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
  unicode-bidi:isolate;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price .sar-symbol{
  display:inline-block;
  width:.89em;
  height:.98em;
  flex:0 0 auto;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-saved-price.sadaa-sp-price-unavailable{
  font-size:12px;
  color:var(--sadaa-text-2);
  font-weight:600;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit{
  order:0;
  margin:0 0 3px!important;
  padding:0;
  border:0;
  border-top:1px solid var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:0;
  min-height:42px;
  margin:12px 0 0;
  padding:10px 10px;
  border:1px solid var(--sadaa-primary);
  border-radius:11px;
  background:var(--sadaa-primary);
  color:#fff;
  font-size:12.5px;
  line-height:1.5;
  font-weight:800;
  cursor:pointer;
  list-style:none;
  text-align:center;
  transition:background .18s ease,border-color .18s ease;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>summary::-webkit-details-marker{display:none}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>summary::marker{content:""}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action:hover,
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action:focus-visible{
  background:var(--sadaa-primary-dark);
  border-color:var(--sadaa-primary-dark);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action i:first-child{font-size:14px}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action .sadaa-sp-edit-chevron{
  font-size:10px;
  transition:transform .16s ease;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit[open]>summary .sadaa-sp-edit-chevron{transform:rotate(-90deg)}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>.sadaa-sp-form{
  margin-top:12px;
  padding:12px;
  background:var(--sadaa-surface-alt);
  border:1px solid var(--sadaa-tint-3);
  border-radius:10px;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:6px;
  row-gap:3px!important;
  min-width:0;
  margin:0!important;
  padding:0!important;
  border-top:0;
  align-content:start;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form{
  flex:none;
  width:100%;
  min-width:0;
  /* Explicitly neutralize dashboard.css `form { padding:20px; background:white }`.
     Without this, every button form creates a 20px empty inset on all sides. */
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-height:0!important;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child{grid-column:1 / -1}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button{
  margin:0!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:40px;
  padding:8px 6px;
  border:1px solid var(--sadaa-primary-light);
  border-radius:11px;
  background:var(--sadaa-tint-3);
  color:var(--sadaa-primary)!important;
  font-size:11px;
  font-weight:800;
  line-height:1.5;
  white-space:normal;
  transition:background .15s ease,border-color .15s ease;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button i{
  flex:0 0 auto;
  font-size:13px;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button:hover{
  background:var(--sadaa-tint-3);
  border-color:var(--sadaa-muted);
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child .sadaa-sp-button{
  background:#fff1f4;
  color:#ae2637!important;
  border-color:#ecc0c9;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls>form:last-child .sadaa-sp-button:hover{
  background:#ffe6eb;
  border-color:#e5a2b0;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product :is(a,button,summary):focus-visible{
  outline:3px solid var(--sadaa-primary);
  outline-offset:3px;
}
@media(max-width:390px){
  #tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product{padding:10px 10px 7px;border-radius:15px}
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media{border-radius:11px}
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-title{font-size:13px}
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button{font-size:11px;gap:5px}
}
@media(prefers-reduced-motion:reduce){
  #tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product,
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media>img,
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action,
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-controls .sadaa-sp-button{transition:none!important}
  #tabContent .sadaa-sp-manager .sadaa-sp-products .sadaa-sp-product:hover,
  #tabContent .sadaa-sp-manager .sadaa-sp-product:hover .sadaa-sp-product-media>img{transform:none!important}
}

/* V107.4.9 | Expanded product editing & genuine public-card live preview.
   Use the existing visitor product classes to preserve design consistency. */
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-edit>a.sadaa-sp-edit-action{
  display:flex;flex-direction:row!important;align-items:center;justify-content:center;
  gap:9px;width:100%;box-sizing:border-box;text-decoration:none!important;
}
#tabContent .sadaa-sp-product-edit-page{
  width:100%;max-width:none;min-width:0;margin-inline:0;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-panel{
  width:100%;max-width:none;margin:0 0 18px;padding:clamp(20px,2.2vw,36px)!important;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-intro{
  width:100%;max-width:none;min-height:148px;margin:0 0 18px;
  padding:clamp(24px,2.3vw,38px) clamp(22px,2.6vw,40px);
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-intro .sadaa-sp-intro-copy{max-width:100%}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-layout{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,350px);
  align-items:start;gap:clamp(18px,2.5vw,38px);width:100%;margin:0;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-layout>*{min-width:0}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-fields{min-width:0;width:100%}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-form{
  display:flex;flex-direction:column;gap:20px;width:100%;max-width:none;
  padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-form .sadaa-sp-field{margin:0;width:100%}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-form .sadaa-sp-field label{margin:0!important}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-form :is(input,select){
  box-sizing:border-box;max-width:100%;width:100%;min-height:48px;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-form input[dir="ltr"]{text-align:left;unicode-bidi:plaintext}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-currency{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--sadaa-text-2);
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-currency i{color:var(--sadaa-primary)}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-currency strong{color:var(--sadaa-brand-deep)}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-review-note{
  display:flex;align-items:flex-start;gap:10px;margin:0;padding:13px 14px;
  border:1px solid var(--sadaa-line-2);border-radius:12px;background:var(--sadaa-tint-3);
  font-size:12px;line-height:1.9;color:var(--sadaa-text-2);
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-review-note i{margin-top:4px;color:var(--sadaa-primary);flex:0 0 auto}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:0;padding-top:6px;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions :is(a,button){
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;min-width:160px;margin:0;text-decoration:none;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions a.sadaa-sp-button.secondary{
  background:#fff!important;border-color:var(--sadaa-line-3)!important;color:var(--sadaa-primary)!important;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions a.sadaa-sp-button.secondary:hover{background:var(--sadaa-tint-3)!important}
/* The live card shares the actual store_detail.php visitor classes and styles. */
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-aside{
  display:flex;flex-direction:column;align-items:stretch;gap:13px;
  width:100%;padding:18px;border:1px solid var(--sadaa-line-2);border-radius:16px;background:var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-preview-heading{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-preview-heading h3{
  margin:0;color:var(--sadaa-text);font-size:16px;font-weight:800;line-height:1.5;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-preview-heading>i{color:var(--sadaa-primary);font-size:19px}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-visitor-card{
  width:100%;margin:0;min-width:0;box-shadow:0 2px 10px rgba(var(--sadaa-shadow-rgb),.035);
  transform:none!important;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-visitor-card:hover{transform:none!important;box-shadow:0 2px 10px rgba(var(--sadaa-shadow-rgb),.035)}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-visitor-card .sadaa-sp-visitor-media img{transform:none!important}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-visitor-card .sadaa-sp-visitor-cta{
  cursor:default;pointer-events:none;user-select:none;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-preview-help{
  margin:0;color:var(--sadaa-text-2);font-size:11px;line-height:1.9;
}
#tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-preview-help i{color:var(--sadaa-primary);margin-inline-end:5px}
@media(max-width:1050px){
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-layout{
    grid-template-columns:minmax(0,1fr) minmax(230px,300px);gap:19px;
  }
}
@media(max-width:800px){
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-aside{max-width:480px;margin-inline:auto}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-intro{min-height:0}
}
@media(max-width:420px){
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-panel{padding:16px 12px!important}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-aside{padding:12px;gap:10px}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions{flex-direction:column;align-items:stretch}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-product-edit-actions :is(a,button){width:100%;min-width:0}
  #tabContent .sadaa-sp-product-edit-page .sadaa-sp-edit-intro{padding:22px 16px}
}

/* V107.4.11 | The manual-add example is the SAME visitor-card component
   used by store_detail.php, with only a non-interactive preview override.
   The existing 1024px-and-below hide rule remains untouched. */
#tabContent .sadaa-sp-manager .sadaa-sp-manual-art{
  align-items:stretch;
  gap:14px;
  padding:clamp(16px,1.8vw,22px);
  background:var(--sadaa-surface-alt);
}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card{
  box-sizing:border-box;
  width:min(100%,345px);
  margin:0 auto;
  min-width:0;
  padding:11px;
  align-self:center;
  box-shadow:0 4px 17px rgba(var(--sadaa-shadow-rgb),.055);
  transform:none!important;
}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card:hover{
  transform:none!important;
  box-shadow:0 4px 17px rgba(var(--sadaa-shadow-rgb),.055);
}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card .sadaa-sp-visitor-media img{
  transform:none!important;
}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card .sadaa-sp-visitor-cta{
  pointer-events:none;
  cursor:default;
  user-select:none;
}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card [hidden]{display:none!important}
#tabContent .sadaa-sp-manager .sadaa-sp-manual-art .sadaa-sp-preview-foot{
  margin:0;
  font-size:11.5px;
  line-height:1.75;
}
/* RTL preview: align the product amount to the right like the approved card. */
#tabContent .sadaa-sp-manager .sadaa-sp-manual-visitor-card .sadaa-sp-visitor-price{
  align-self:flex-start;
}


/* V107.4.13 | Store detail is a directory view. Layout, page edges and shared shell. */
html:has(.sadaa-store-detail-shell),
body:has(.sadaa-store-detail-shell){
 max-width:100%; overflow-x:clip;
}
body:has(.sadaa-store-detail-shell){margin:0!important;padding:0!important;box-sizing:border-box}
body:has(.sadaa-store-detail-shell) :is(header,footer){max-width:100%}
.sadaa-store-detail-shell,
.sadaa-store-detail-shell *{box-sizing:border-box}
/* V107.4.26 | Use the SAME directory container geometry in both views.
   The shared css/store_directory-style.php owns width, padding and margins;
   avoid detail-only max-width/gutters that can diverge from stores.php. */
.sadaa-store-detail-shell.container{
 min-width:0;
 box-sizing:border-box;
}
.sadaa-store-detail-shell .sadaa-store-profile-page{
 width:100%!important;max-width:none!important;min-width:0;
 margin:0!important;padding:0!important;direction:rtl;
 display:flex;flex-direction:column;gap:20px;
}
.sadaa-store-detail-shell .sadaa-sp-breadcrumb{
 margin:0!important;display:flex;min-width:0;align-items:center;
 gap:9px;flex-wrap:wrap;font-size:12px;line-height:1.7;
}
.sadaa-store-detail-shell .sadaa-sp-breadcrumb i{font-size:9px;color:var(--sadaa-muted)}
.sadaa-store-detail-shell .sadaa-sp-breadcrumb [aria-current="page"]{
 color:var(--sadaa-primary-dark);font-weight:700;max-width:100%;overflow-wrap:anywhere;
}
.sadaa-store-detail-shell .sadaa-sp-directory-header{
 display:flex;align-items:center;justify-content:space-between;gap:18px;
 padding:24px 28px;background:#fff;border:1px solid var(--sadaa-line-2);
 border-top:3px solid var(--sadaa-primary);border-radius:16px;
}
.sadaa-store-detail-shell .sadaa-sp-directory-header-text{min-width:0}
.sadaa-store-detail-shell .sadaa-sp-directory-eyebrow{
 display:inline-flex;gap:8px;align-items:center;color:var(--sadaa-primary);
 font-size:12px;font-weight:700;margin-bottom:8px;
}
.sadaa-store-detail-shell .sadaa-sp-directory-header h2{
 font-size:23px;line-height:1.45;font-weight:800;margin:0 0 7px;color:var(--sadaa-brand-deep);
}
.sadaa-store-detail-shell .sadaa-sp-directory-header p{font-size:13px;color:var(--sadaa-text-2);line-height:1.8;margin:0}
.sadaa-store-detail-shell .sadaa-sp-directory-back{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 padding:11px 16px;min-height:41px;flex:0 0 auto;
 background:var(--sadaa-tint-3);color:var(--sadaa-primary)!important;text-decoration:none!important;
 border:1px solid var(--sadaa-line-2);border-radius:10px;font-size:12px;font-weight:700;
}
.sadaa-store-detail-shell .sadaa-sp-directory-back:hover,
.sadaa-store-detail-shell .sadaa-sp-directory-back:focus-visible{background:var(--sadaa-tint-3);border-color:var(--sadaa-line-3)}
.sadaa-store-detail-shell .sadaa-sp-panel{
 min-width:0;width:100%;margin:0!important;padding:25px 28px;
 background:#fff;border:1px solid var(--sadaa-line-2);border-radius:17px;
 box-shadow:0 2px 10px rgba(var(--sadaa-shadow-rgb),.025);
}
.sadaa-store-detail-shell .sadaa-sp-hero{
 grid-template-columns:106px minmax(0,1fr) auto;
 padding:29px!important;gap:24px;
 border-top:3px solid var(--sadaa-primary);
}
.sadaa-store-detail-shell .sadaa-sp-hero.is-featured{border-top-width:3px}
.sadaa-store-detail-shell .sadaa-sp-shop-logo{width:106px;height:106px;background:var(--sadaa-tint-3);border-color:var(--sadaa-tint-3)}
.sadaa-store-detail-shell .sadaa-sp-intro{min-width:0}
.sadaa-store-detail-shell .sadaa-sp-title-line h1{font-size:clamp(20px,2.2vw,28px);color:var(--sadaa-brand-deep);overflow-wrap:anywhere}
.sadaa-store-detail-shell .sadaa-sp-intro p{margin:7px 0 12px;font-size:14px;line-height:1.9}
.sadaa-store-detail-shell .sadaa-sp-stats{gap:10px}
.sadaa-store-detail-shell .sadaa-sp-stats span{
 display:inline-flex;align-items:center;gap:5px;padding:6px 10px;
 background:var(--sadaa-tint-3);border:1px solid var(--sadaa-tint-3);border-radius:8px;
 color:var(--sadaa-muted);font-size:12px;
}
.sadaa-store-detail-shell .sadaa-sp-hero-actions{min-width:162px;gap:8px}
.sadaa-store-detail-shell .sadaa-sp-section-title{
 margin:0 0 21px;padding-bottom:17px;border-bottom:1px solid var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-section-title h2{color:var(--sadaa-brand-deep)}
.sadaa-store-detail-shell .sadaa-sp-section-title p{max-width:800px}
.sadaa-store-detail-shell .sadaa-sp-products,
.sadaa-store-detail-shell .sadaa-sp-reviews-layout{min-width:0;max-width:100%}
.sadaa-store-detail-shell .sadaa-sp-visitor-product{min-width:0;max-width:100%}
.sadaa-store-detail-shell .sadaa-sp-visitor-media{min-width:0}
.sadaa-store-detail-shell .sadaa-sp-reviews-layout{grid-template-columns:minmax(0,1fr) minmax(265px,340px);gap:20px}
.sadaa-store-detail-shell .sadaa-sp-review-form,
.sadaa-store-detail-shell .sadaa-sp-review,
.sadaa-store-detail-shell .sadaa-sp-reviews-list{min-width:0;max-width:100%}
.sadaa-store-detail-shell :is(a,p,div,span,h1,h2,h3){overflow-wrap:anywhere}
@media(max-width:900px){
 .sadaa-store-detail-shell .sadaa-sp-panel{padding:20px}
 .sadaa-store-detail-shell .sadaa-sp-directory-header{padding:19px 20px}
 .sadaa-store-detail-shell .sadaa-sp-hero{grid-template-columns:86px minmax(0,1fr);gap:18px;padding:21px!important}
 .sadaa-store-detail-shell .sadaa-sp-shop-logo{width:86px;height:86px}
 .sadaa-store-detail-shell .sadaa-sp-hero-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
 .sadaa-store-detail-shell .sadaa-sp-reviews-layout{grid-template-columns:1fr}
}
@media(max-width:600px){
 .sadaa-store-detail-shell .sadaa-store-profile-page{gap:13px}
 .sadaa-store-detail-shell .sadaa-sp-panel{padding:16px!important;border-radius:13px}
 .sadaa-store-detail-shell .sadaa-sp-directory-header{align-items:stretch;flex-direction:column;padding:16px;gap:12px}
 .sadaa-store-detail-shell .sadaa-sp-directory-header h2{font-size:20px}
 .sadaa-store-detail-shell .sadaa-sp-directory-back{width:100%}
 .sadaa-store-detail-shell .sadaa-sp-hero{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:16px!important}
 .sadaa-store-detail-shell .sadaa-sp-shop-logo{width:64px;height:64px}
 .sadaa-store-detail-shell .sadaa-sp-title-line h1{font-size:18px}
 .sadaa-store-detail-shell .sadaa-sp-intro p{font-size:12px;margin:5px 0 8px}
 .sadaa-store-detail-shell .sadaa-sp-hero-actions{flex-direction:column;width:100%}
 .sadaa-store-detail-shell .sadaa-sp-section-title{gap:10px;align-items:flex-start}
 .sadaa-store-detail-shell .sadaa-sp-section-title h2{font-size:18px}
 .sadaa-store-detail-shell .sadaa-sp-section-title p{font-size:12px}
 .sadaa-store-detail-shell .sadaa-sp-review-form{padding:14px}
}

/* Balanced product gallery when a store has only one or two approved products. */
@media(min-width:700px){
 .sadaa-store-detail-shell .sadaa-sp-visitor-products:has(>article:only-child),
 .sadaa-store-detail-shell .sadaa-sp-visitor-products:has(>article:nth-child(2):last-child){
  display:flex;flex-wrap:wrap;align-items:stretch;justify-content:flex-start;gap:18px;
 }
 .sadaa-store-detail-shell .sadaa-sp-visitor-products:has(>article:only-child)>article,
 .sadaa-store-detail-shell .sadaa-sp-visitor-products:has(>article:nth-child(2):last-child)>article{
  flex:0 1 320px;width:100%;min-width:0;
 }
}


/* V107.4.14 | Store overview and gallery share one directory container.
   No redundant breadcrumb, directory hero, or gallery heading. */
.sadaa-store-detail-shell .sadaa-sp-directory-collection{
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--sadaa-line-2);
  border-top:3px solid var(--sadaa-primary);
  background:#fff;
  border-radius:18px;
  /* يمكن تعديل لون معلومات المتجر والفاصل هنا بشكل مستقل عن المعرض. */
  --sadaa-store-info-background:#F0F2FA;
  --sadaa-store-gallery-divider:#C7D0E6;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection > .sadaa-sp-hero{
  display:grid;
  grid-template-columns:114px minmax(0,1fr) 178px;
  align-items:center;
  column-gap:20px;
  row-gap:14px;
  margin:0!important;
  padding:24px 27px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--sadaa-store-info-background,#F0F2FA);
  min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-shop-logo{
  width:114px;height:114px;align-self:center;
  padding:11px;
  border:1px solid rgba(94,110,164,.16);
  border-radius:17px;
  background:rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-shop-logo img{
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;
}
/* الأيقونة وحدها، مع الإبقاء على الوصف البديل لإتاحة الوصول. */
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-featured{
  display:inline-grid;place-items:center;
  width:22px;height:22px;min-width:22px;flex:0 0 22px;
  padding:0;margin:0;
  border:1px solid rgba(196,156,116,.52);
  border-radius:50%;
  background:#FFFFFF;
  color:#946C43;
  font-size:0;line-height:1;
  box-shadow:none;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-featured i{
  font-size:10px;line-height:1;color:#946C43;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions{
  display:flex;flex-direction:column;align-items:stretch;
  gap:8px;width:178px;min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions > a{
  display:inline-flex;min-width:0;width:100%;
  justify-content:center;margin:0;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-directory-back{
  background:#fff;min-height:39px;padding:9px 10px;
  color:var(--sadaa-primary)!important;border:1px solid var(--sadaa-line-2);
  font-size:12px;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-directory-back:hover{
  background:var(--sadaa-tint-3);border-color:var(--sadaa-line-3);
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-gallery-body{
  /* خط فاصل كامل العرض بين المعلومات والمعرض حتى مع تغيّر الخلفيتين. */
  border-top:1px solid var(--sadaa-store-gallery-divider,#C7D0E6);
  margin:0;
  padding:23px 27px 28px;
  background:#fff;
  min-width:0;
}
/* External merchant products: clear ownership and destination notice. */
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-products-notice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  margin:0 0 18px;
  padding:10px 13px;
  border:1px solid #f1d4b0;
  border-radius:10px;
  background:#fff9f1;
  color:#94520f;
  font-size:12.5px;
  line-height:1.8;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-products-notice > i{
  flex:0 0 auto;
  margin-top:4px;
  color:#be6b18;
  font-size:15px;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-products-notice p{
  margin:0;
  min-width:0;
  color:inherit;
  line-height:inherit;
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-products-notice strong{
  font-weight:700;
  color:inherit;
}
@media(max-width:600px){
  .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-products-notice{
    padding:9px 11px;
    font-size:12px;
    gap:8px;
  }
}
.sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-visitor-products{
  direction:rtl;
  justify-content:start;
  justify-items:stretch;
  margin:0;
  min-width:0;
}
/* With one or two products, do not center the cards inside the large display area. */
@media (min-width:700px){
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-visitor-products:has(>article:only-child),
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-visitor-products:has(>article:nth-child(2):last-child){
  justify-content:flex-start;
 }
}
@media (max-width:900px){
 .sadaa-store-detail-shell .sadaa-sp-directory-collection > .sadaa-sp-hero{
  grid-template-columns:90px minmax(0,1fr);
  gap:15px;
  padding:20px!important;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-shop-logo{width:90px;height:90px;padding:9px}
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions{
  grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;width:100%;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions > a{
  flex:1 1 155px;width:auto;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-gallery-body{
  margin:0;padding:20px 20px 23px;
 }
}
@media (max-width:600px){
 .sadaa-store-detail-shell .sadaa-sp-directory-collection{border-radius:14px}
 .sadaa-store-detail-shell .sadaa-sp-directory-collection > .sadaa-sp-hero{
  grid-template-columns:72px minmax(0,1fr);
  gap:12px;
  padding:16px!important;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-shop-logo{
  width:72px;height:72px;padding:7px;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions{
  flex-direction:column;width:100%;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-hero-actions > a{
  flex:none;width:100%;
 }
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-gallery-body{
  margin:0;padding:17px 15px 21px;
 }
}
@media(max-width:600px){
 .sadaa-store-detail-shell .sadaa-sp-directory-collection .sadaa-sp-visitor-products:has(>article:only-child){
  display:grid;grid-template-columns:minmax(0,1fr);
 }
}

/* V107.4.15 | Directory cards and store reviews — restrained, consistent RTL design.
   Keep the rating INSIDE .store-info so list cards always have three grid items. */
html body .stores-directory-shell .stores-content-panel .store-card{
  min-width:0;
}
html body .stores-directory-shell .stores-content-panel .store-card > .store-info{
  min-width:0;
}
html body .stores-directory-shell .stores-content-panel .store-card .sadaa-directory-store-title{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
}
html body .stores-directory-shell .stores-content-panel .store-card .sadaa-directory-store-title a{
  min-width:0;
  overflow-wrap:anywhere;
}
html body .stores-directory-shell .stores-content-panel .store-card .sadaa-directory-store-title .store-title-verification{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;
  position:relative;
}
html body .stores-directory-shell .stores-content-panel .store-card .store-info .sadaa-store-card-rating{
  box-sizing:border-box;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:max-content;
  max-width:100%;
  min-height:27px!important;
  margin:10px auto 0!important;
  padding:4px 10px;
  background:rgba(var(--sadaa-accent-rgb),.075);
  border:1px solid rgba(var(--sadaa-accent-rgb),.23);
  border-radius:9px;
  font-size:12px;
  line-height:1.3;
  white-space:nowrap;
  direction:ltr;
}
html body .stores-directory-shell .stores-content-panel .store-card .store-info .sadaa-store-card-rating strong{
  color:var(--sadaa-text);font-weight:800;font-size:12px;
}
html body .stores-directory-shell .stores-content-panel .store-card .store-info .sadaa-store-card-rating i{
  color:var(--sadaa-accent);font-size:12px;
}
html body .stores-directory-shell .stores-content-panel .store-card > .store-footer{
  box-sizing:border-box;
  min-width:0;
}
html body .stores-directory-shell .stores-content-panel .store-card > .store-footer > .sadaa-store-card-links{
  grid-column:1 / -1!important;
  min-width:0;
  width:100%;
  margin:0!important;
  display:flex!important;
  align-items:stretch;
  gap:7px;
}
html body .stores-directory-shell .stores-content-panel .store-card .sadaa-store-card-links > a{
  flex:1 1 0;
  min-width:0;
  margin:0!important;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.4;
}
@media (min-width:768px){
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card > .store-logo{
    grid-column:1!important;grid-row:1!important;
  }
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card > .store-info{
    grid-column:2!important;grid-row:1!important;
  }
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card > .store-footer{
    grid-column:3!important;grid-row:1!important;
    width:100%;align-self:center!important;
  }
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card .sadaa-directory-store-title{
    justify-content:flex-start!important;
  }
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card .store-info .sadaa-store-card-rating{
    margin:9px 0 0!important;
    justify-content:flex-start!important;
  }
}
@media (max-width:767px){
  html body .stores-directory-shell .stores-content-panel .store-list.list-view .store-card .store-info .sadaa-store-card-rating{
    margin:8px auto 0!important;
  }
}

/* Store detail — reviews, trust-first and uncluttered, without changing review logic. */
.sadaa-store-detail-shell .sadaa-sp-rating{
  --sadaa-reviews-border:var(--sadaa-line-2);
  --sadaa-reviews-soft:var(--sadaa-tint-3);
  padding:26px!important;
  background:var(--sadaa-surface, #fff);
  border:1px solid var(--sadaa-reviews-border);
  border-radius:20px;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  min-width:0;
  padding-bottom:20px;
  margin:0 0 21px;
  border-bottom:1px solid var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-reviews-heading-copy{min-width:0;flex:1 1 340px}
.sadaa-store-detail-shell .sadaa-sp-reviews-kicker{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--sadaa-primary);font-size:11.5px;font-weight:700;
  margin-bottom:7px;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-heading h2{
  margin:0 0 7px;
  color:var(--sadaa-text);
  font-size:clamp(18px,1.65vw,23px);
  line-height:1.45;
  font-weight:800;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-heading p{
  margin:0;color:var(--sadaa-muted);
  font-size:12.5px;line-height:1.8;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-summary{
  display:flex;align-items:center;gap:11px;
  flex:0 0 auto;
  padding:11px 16px;
  border:1px solid var(--sadaa-tint-3);
  border-radius:13px;
  background:var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-reviews-average{
  font-size:28px;font-weight:800;color:var(--sadaa-brand-deep);
  line-height:1;direction:ltr;font-variant-numeric:tabular-nums;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-summary-side{
  display:flex;flex-direction:column;align-items:flex-start;gap:3px;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-summary-stars{
  color:#b68827;letter-spacing:1px;font-size:20px;line-height:1.2;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-summary-count{
  color:var(--sadaa-text-2);font-size:11px;line-height:1.5;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:20px!important;
  align-items:start!important;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-list{
  background:var(--sadaa-tint-3);
  border:1px solid var(--sadaa-line-2);
  border-radius:18px;
  padding:18px;
  gap:14px;
  min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-list-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:1px 2px 14px;
  border-bottom:1px solid var(--sadaa-line-2);
  color:var(--sadaa-text);
  font-size:13.5px;font-weight:700;
}
.sadaa-store-detail-shell .sadaa-sp-reviews-list-head div{display:flex;align-items:center;gap:8px}
.sadaa-store-detail-shell .sadaa-sp-reviews-list-head i{color:var(--sadaa-primary)}
.sadaa-store-detail-shell .sadaa-sp-reviews-list-head > span{
  border-radius:7px;padding:4px 8px;background:#fff;
  border:1px solid var(--sadaa-line-2);color:var(--sadaa-text-2);
  font-size:11px;font-weight:600;white-space:nowrap;
}
.sadaa-store-detail-shell .sadaa-sp-review{
  background:var(--sadaa-surface,#fff);
  border:1px solid var(--sadaa-line-2);
  border-radius:14px;
  padding:19px 20px 16px;
  box-shadow:none;
  min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-review-head{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;
  padding:0 0 13px;
  border-bottom:1px solid var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-review-author{display:flex;align-items:center;gap:10px;min-width:0}
.sadaa-store-detail-shell .sadaa-sp-review-avatar{
  width:38px;height:38px;
  border-radius:11px;
  border:1px solid var(--sadaa-tint-3);
  background:var(--sadaa-tint-3);
  color:var(--sadaa-primary);
  display:grid;place-items:center;
  flex:0 0 auto;
  font-size:15px;
}
.sadaa-store-detail-shell .sadaa-sp-review-author > div{display:flex;flex-direction:column;gap:3px}
.sadaa-store-detail-shell .sadaa-sp-review-author strong{font-size:13px;color:var(--sadaa-text);font-weight:800}
.sadaa-store-detail-shell .sadaa-sp-review-author small{color:var(--sadaa-muted);font-size:10.5px}
.sadaa-store-detail-shell .sadaa-sp-review-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sadaa-store-detail-shell .sadaa-sp-review-meta .sadaa-sp-stars{
  color:#b68827;font-size:21px;white-space:nowrap;
  letter-spacing:1.5px;line-height:1.3;
}
.sadaa-store-detail-shell .sadaa-sp-review-head time{
  color:var(--sadaa-muted);font-size:11px;direction:ltr;font-variant-numeric:tabular-nums;
  padding:5px 0;
}
.sadaa-store-detail-shell .sadaa-sp-review .sadaa-sp-review-content{
  margin:17px 0 9px;color:var(--sadaa-text);
  font-size:13.5px;line-height:1.95;
  overflow-wrap:anywhere;
}
.sadaa-store-detail-shell .sadaa-sp-owner-reply{
  margin:15px 0 5px;
  padding:13px 15px;
  background:var(--sadaa-tint-2);
  border:1px solid var(--sadaa-tint-3);
  border-right:3px solid var(--sadaa-primary);
  border-radius:10px;
  font-size:12.5px;
}
.sadaa-store-detail-shell .sadaa-sp-owner-reply strong{
  display:flex;align-items:center;gap:8px;color:var(--sadaa-primary-dark);font-size:12.5px;
}
.sadaa-store-detail-shell .sadaa-sp-owner-reply p{margin:7px 0 0;line-height:1.85}
.sadaa-store-detail-shell .sadaa-sp-review-report{
  border-top:1px solid var(--sadaa-tint-3);
  margin:15px 0 0;
  padding:11px 0 0;
  font-size:11px;
}
.sadaa-store-detail-shell .sadaa-sp-review-report > summary{
  display:inline-flex;align-items:center;gap:7px;
  list-style:none;cursor:pointer;
  color:var(--sadaa-muted);font-size:11px;font-weight:600;
  padding:4px 0;
}
.sadaa-store-detail-shell .sadaa-sp-review-report > summary::-webkit-details-marker{display:none}
.sadaa-store-detail-shell .sadaa-sp-review-report > summary:hover{color:var(--sadaa-primary)}
.sadaa-store-detail-shell .sadaa-sp-review-report .sadaa-sp-report{
  display:flex;align-items:center;gap:8px;
  justify-content:flex-start;flex-wrap:wrap;
  padding:12px;margin:9px 0 0;
  border:1px solid var(--sadaa-tint-3);border-radius:9px;background:var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-report label{font-weight:700;color:var(--sadaa-text-2)}
.sadaa-store-detail-shell .sadaa-sp-report select{
  min-height:34px;margin:0;padding:6px 8px;
  border:1px solid var(--sadaa-line-2);border-radius:8px;
  font:inherit;font-size:11px;background:#fff;color:var(--sadaa-text);
}
/* V107.4.23 | The report reason uses the central RTL-aware select arrow. */
.sadaa-store-detail-shell .sadaa-sp-report .sadaa-sp-report-select-shell{
  display:inline-block;
  flex:0 1 146px;
  width:146px;
  min-width:132px;
  max-width:100%;
}
.sadaa-store-detail-shell .sadaa-sp-report .sadaa-sp-report-select-shell > select.sadaa-select{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding-inline-start:10px;
  padding-inline-end:36px;
  text-align:start;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  background-image:none;
  cursor:pointer;
}
.sadaa-store-detail-shell .sadaa-sp-report button{
  border:1px solid var(--sadaa-line-2);background:#fff;
  border-radius:8px;padding:7px 10px;
  color:var(--sadaa-primary);text-decoration:none;
  font-size:11px;font-weight:700;cursor:pointer;
}
.sadaa-store-detail-shell .sadaa-sp-report button:hover{background:var(--sadaa-tint-3)}
.sadaa-store-detail-shell .sadaa-sp-review-form{
  padding:0!important;
  background:var(--sadaa-surface,#fff);
  border:1px solid var(--sadaa-line-2);
  border-radius:18px;
  overflow:hidden;
  box-shadow:none;
}
.sadaa-store-detail-shell .sadaa-sp-review-form-head{
  padding:17px 21px;
  display:flex;align-items:center;gap:12px;
  border-bottom:1px solid var(--sadaa-line-2);
  background:var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-review-form-icon{
  width:42px;height:42px;display:grid;place-items:center;
  flex:none;border-radius:12px;
  background:var(--sadaa-primary);color:#fff;font-size:18px;
}
.sadaa-store-detail-shell .sadaa-sp-review-form-head h3{
  margin:0 0 4px;color:var(--sadaa-text);font-size:16px;font-weight:700;
}
.sadaa-store-detail-shell .sadaa-sp-review-form-head p{
  margin:0;font-size:11.5px;color:var(--sadaa-muted);line-height:1.7;
}
.sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{
  padding:20px 21px 0;
  gap:16px;
}
/* Store reviews: full-width horizontal participation form, above visitor reviews.
   The controls retain their original IDs, names and validation. */
.sadaa-store-detail-shell .sadaa-sp-review-form{
  container-type:inline-size;
}
.sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{
  display:grid;
  grid-template-columns:minmax(242px,.91fr) minmax(265px,1.48fr) minmax(220px,.98fr);
  gap:16px;
  align-items:start;
}
.sadaa-store-detail-shell .sadaa-sp-review-field{
  display:flex;flex-direction:column;gap:9px;min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-review-field--rating{
  align-self:stretch;
  min-height:150px;
  padding:12px 13px;
  border:1px solid var(--sadaa-line-2);
  border-radius:13px;
  background:var(--sadaa-tint-3);
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--comment textarea{
  min-height:132px;max-width:100%;
}
.sadaa-store-detail-shell .sadaa-sp-review-submit-row{
  grid-column:1/-1;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  margin:3px -21px 0;
  padding:15px 21px;
  border-top:1px solid var(--sadaa-line-2);
  background:var(--sadaa-tint-3);
  min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-submit-row > .sadaa-sp-button{
  width:auto;min-width:203px;min-height:46px;margin:0;
  box-shadow:none;
}
@container (max-width: 790px){
  .sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--comment{
    grid-column:1/-1;grid-row:1;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating{
    grid-column:1;grid-row:2;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--email{
    grid-column:2;grid-row:2;
  }
}
@container (max-width: 530px){
  .sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{
    grid-template-columns:minmax(0,1fr);
    gap:13px;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--comment,
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating,
  .sadaa-store-detail-shell .sadaa-sp-review-field--email{
    grid-column:1;grid-row:auto;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating{grid-row:1;min-height:125px}
  .sadaa-store-detail-shell .sadaa-sp-review-field--comment{grid-row:2}
  .sadaa-store-detail-shell .sadaa-sp-review-field--email{grid-row:3}
  .sadaa-store-detail-shell .sadaa-sp-review-submit-row{justify-content:center;gap:12px}
  .sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-submit-row > .sadaa-sp-button{width:100%}
  .sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-star-options label{font-size:35px}
}
.sadaa-store-detail-shell .sadaa-sp-form :is(label,legend){font-size:12px;font-weight:700;color:var(--sadaa-text)}
.sadaa-store-detail-shell .sadaa-sp-email-privacy{
  display:inline;margin:0;font-size:11px;font-weight:400;
  color:var(--sadaa-muted);line-height:inherit;
}
.sadaa-store-detail-shell .sadaa-sp-form :is(input:not([type=radio]),textarea){
  border:1px solid var(--sadaa-line-2);border-radius:9px;
  background:#fff;color:var(--sadaa-text);
  font-size:13px;
  padding:12px 13px;
  box-shadow:none;
}
.sadaa-store-detail-shell .sadaa-sp-form textarea{min-height:132px;resize:vertical}
.sadaa-store-detail-shell .sadaa-sp-review-field--email input{min-height:46px}
.sadaa-store-detail-shell .sadaa-sp-form :is(input:not([type=radio]),textarea):focus-visible{
  outline:2px solid var(--sadaa-primary);outline-offset:1px;
}
.sadaa-store-detail-shell .sadaa-sp-stars-picker{margin:0;padding:0;border:0;min-width:0;width:100%}
.sadaa-store-detail-shell .sadaa-sp-stars-picker legend{margin:0 0 7px}
.sadaa-store-detail-shell .sadaa-sp-star-options{gap:0;margin-inline:auto;max-width:100%}
/* V107.4.16 | The star's own hover color must override review-form label colors. */
.sadaa-store-detail-shell .sadaa-sp-star-options label{
  padding:0 2px;
  font-size:38px;
  line-height:1.22;
  cursor:pointer;
  color:#bfc5d2;
  transition:color .14s ease;
}
.sadaa-store-detail-shell .sadaa-sp-star-options label:hover,
.sadaa-store-detail-shell .sadaa-sp-star-options label:hover~label,
.sadaa-store-detail-shell .sadaa-sp-star-options input:checked+label,
.sadaa-store-detail-shell .sadaa-sp-star-options input:checked~label{
  color:#b78a2a;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .cf-turnstile{max-width:100%;margin:0}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-button{
  width:100%;min-height:46px;margin:0;
  border-radius:10px;justify-content:center;
  font-size:13px;font-weight:700;
}
.sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-notice{margin:16px 18px 0}
.sadaa-store-detail-shell .sadaa-sp-reviews-empty{
  display:flex;flex-direction:column;gap:6px;align-items:center;
  justify-content:center;min-height:170px;padding:20px;text-align:center;
  color:var(--sadaa-muted);
}
.sadaa-store-detail-shell .sadaa-sp-reviews-empty i{font-size:23px;color:var(--sadaa-primary);margin-bottom:4px}
.sadaa-store-detail-shell .sadaa-sp-reviews-empty strong{font-size:13px;color:var(--sadaa-text)}
.sadaa-store-detail-shell .sadaa-sp-reviews-empty p{margin:0;font-size:12px}
@media(max-width:900px){
 .sadaa-store-detail-shell .sadaa-sp-reviews-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 .sadaa-store-detail-shell .sadaa-sp-rating{padding:21px!important}
}
@media(max-width:600px){
 .sadaa-store-detail-shell .sadaa-sp-rating{padding:15px!important}
 .sadaa-store-detail-shell .sadaa-sp-reviews-heading{gap:12px;align-items:stretch}
 .sadaa-store-detail-shell .sadaa-sp-reviews-summary{width:100%;justify-content:center;padding:11px 13px}
 .sadaa-store-detail-shell .sadaa-sp-reviews-list{padding:12px}
 .sadaa-store-detail-shell .sadaa-sp-review{padding:14px 13px}
 .sadaa-store-detail-shell .sadaa-sp-review-meta{gap:7px}
 .sadaa-store-detail-shell .sadaa-sp-review .sadaa-sp-review-content{font-size:12.5px}
 .sadaa-store-detail-shell .sadaa-sp-review-form-head{padding:15px 14px}
 .sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{padding:16px 14px 0}
 .sadaa-store-detail-shell .sadaa-sp-review-submit-row{margin-inline:-14px;padding:14px}
}
/* Keep the anti-spam honeypot inaccessible visually without creating RTL overflow. */
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-honeypot{
 position:absolute!important;
 left:auto!important;
 right:auto!important;
 top:auto!important;
 bottom:auto!important;
 width:1px!important;height:1px!important;
 padding:0!important;margin:0!important;border:0!important;
 overflow:hidden!important;
 clip:rect(0,0,0,0)!important;
 clip-path:inset(50%)!important;
 white-space:nowrap!important;
}
/* V107.4.18 | Store-reviews dashboard: scoped visual system (reviews + product moderation).
   No changes to public store pages, core dashboard, review actions or permissions. */
#tabContent .sadaa-sp-admin-reviewpage {
  --rv-primary:var(--sadaa-primary);
  --rv-ink:var(--sadaa-text);
  --rv-muted:var(--sadaa-text-2);
  --rv-border:var(--sadaa-line-2);
  --rv-surface:#fff;
  --rv-soft:var(--sadaa-tint-3);
  width:100%;max-width:none;min-width:0;padding:12px 0 28px;
  direction:rtl;color:var(--rv-ink);box-sizing:border-box;
}
#tabContent .sadaa-sp-admin-reviewpage, #tabContent .sadaa-sp-admin-reviewpage *{box-sizing:border-box}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-panel{
  margin:0;max-width:none;min-width:0;border:1px solid var(--rv-border);
  background:var(--rv-surface);box-shadow:none;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-head{
  padding:26px 28px 21px;border-radius:17px;margin-bottom:16px;
  border-top:3px solid var(--rv-primary);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-line{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding-bottom:21px;border-bottom:1px solid var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-text{min-width:0;flex:1}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-eyebrow{
  display:inline-flex;align-items:center;gap:7px;color:var(--rv-primary);
  font-size:11px;font-weight:700;line-height:1.65;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-eyebrow i{font-size:12px}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-text h2{
  margin:4px 0 5px;font-size:23px;font-weight:800;line-height:1.5;color:var(--rv-ink);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-text p{
  margin:0;color:var(--rv-muted);font-size:13px;line-height:1.9;max-width:760px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count{
  flex:0 0 auto;display:flex;align-items:center;gap:13px;padding:12px 15px;
  border:1px solid var(--sadaa-line-2);background:var(--rv-soft);border-radius:12px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count>i{
  width:33px;height:33px;border-radius:9px;display:grid;place-items:center;
  color:var(--rv-primary);background:var(--sadaa-tint-3);font-size:15px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count span{display:flex;flex-direction:column;gap:1px}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count strong{font-size:21px;line-height:1.1;color:var(--rv-ink)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count small{font-size:11px;color:var(--rv-muted)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-filters{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:17px 0 0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-tab{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:9px 14px;min-height:37px;border:1px solid var(--sadaa-line-2);border-radius:9px;
  background:#fff;color:var(--sadaa-text-2);text-decoration:none!important;font-size:12px;
  font-weight:700;line-height:1.5;transition:background .15s,border-color .15s;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-tab:hover{background:var(--sadaa-tint-2);border-color:var(--sadaa-line-3);color:var(--rv-primary)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-tab.is-current{
  color:#fff!important;background:var(--rv-primary);border-color:var(--rv-primary);
}
/* V107.4.20 | All moderation filters: full-width stacked cards.
   The reviews (pending/published/hidden/rejected/replies/reports) and
   products (pending/approved/rejected/hidden) share this exact grid. */
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-review-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  grid-auto-columns:minmax(0,1fr)!important;
  gap:15px;
  align-items:start;
  width:100%;
  min-width:0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-review-grid > .sadaa-sp-admin-item-card{
  grid-column:1/-1!important;
  width:100%;
  max-width:100%;
  min-width:0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-item-card{
  display:flex;flex-direction:column;padding:0!important;border-radius:15px;
  overflow:hidden;min-width:0;transition:border-color .15s;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-item-card:hover{border-color:var(--sadaa-line-3)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-header{
  display:flex;align-items:center;gap:12px;padding:17px 20px 16px;
  border-bottom:1px solid var(--sadaa-tint-3);min-width:0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-store-icon{
  display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;
  border-radius:11px;background:var(--sadaa-tint-3);color:var(--rv-primary);font-size:17px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-ident{min-width:0;flex:1}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-ident strong{
  display:block;color:var(--rv-ink);font-size:15px;font-weight:800;
  line-height:1.65;overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-subtitle{
  display:block;color:var(--rv-muted);font-size:11px;line-height:1.8;margin-top:1px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-meta{
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-meta time{
  font-size:11px;color:var(--sadaa-muted);font-variant-numeric:tabular-nums;white-space:nowrap;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-status{
  display:inline-flex;align-items:center;justify-content:center;min-height:25px;
  border:1px solid var(--sadaa-tint-3);border-radius:20px;padding:3px 9px;
  background:var(--sadaa-tint-3);color:var(--sadaa-primary);font-size:10px;font-weight:700;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-status.is-approved{
  border-color:#c9e7d7;background:#effaf4;color:#26784d;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-status.is-rejected,
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-status.is-flagged{
  border-color:#f1d4d5;background:#fff3f3;color:#ab3640;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-status.is-hidden{
  border-color:var(--sadaa-line-2);background:#f5f5f5;color:var(--sadaa-text-2);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-rating{
  display:flex;align-items:center;gap:11px;padding:13px 20px 5px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-rating-stars{
  display:inline-flex;gap:3px;direction:ltr;font-size:19px;line-height:1.25;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-rating-stars .is-lit{color:#b88623}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-rating-stars .is-dim{color:var(--sadaa-line-2)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-rating>strong{
  font-size:14px;font-weight:800;color:var(--rv-ink);font-variant-numeric:tabular-nums;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-rating>strong small{font-size:11px;font-weight:500;color:var(--rv-muted)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-rating-caption{font-size:11px;color:var(--rv-muted)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-comment{
  padding:9px 20px 17px;min-width:0;color:var(--sadaa-text);font-size:14px;
  line-height:2;overflow-wrap:anywhere;white-space:normal;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty-comment{color:var(--sadaa-muted);font-style:italic}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-owner-reply{
  margin:0 20px 15px;padding:12px 14px;border:1px solid var(--sadaa-line-2);
  border-right:3px solid var(--rv-primary);border-radius:9px;background:var(--sadaa-tint-3);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-owner-reply-title{
  display:flex;align-items:center;gap:7px;color:var(--sadaa-primary);font-size:12px;font-weight:800;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-owner-reply p{
  font-size:13px;line-height:1.9;margin:6px 0 0;color:var(--sadaa-text);overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-report-reason{
  display:flex;gap:10px;align-items:flex-start;margin:0 20px 14px;
  padding:12px 14px;border-radius:9px;background:#fff8f0;
  border:1px solid #f2e1cc;color:#915e1e;font-size:12px;line-height:1.9;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-report-reason i{margin-top:4px}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-footer{
  margin-top:auto;border-top:1px solid var(--sadaa-tint-3);background:var(--sadaa-surface-alt);
  padding:12px 18px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-actions{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-actions form{
  display:inline-flex;align-items:center;flex:0 0 auto;
  width:auto!important;min-width:0!important;margin:0!important;
  padding:0!important;min-height:0!important;border:0!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn{
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
  width:auto!important;min-width:0;min-height:36px!important;
  margin:0!important;padding:7px 13px!important;border-radius:8px!important;
  border:1px solid var(--sadaa-line-2)!important;background:#fff!important;
  color:var(--rv-primary)!important;font:inherit!important;
  font-size:12px!important;line-height:1.6!important;font-weight:700!important;
  text-decoration:none!important;cursor:pointer;box-shadow:none!important;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn.is-primary{
  background:var(--rv-primary)!important;border-color:var(--rv-primary)!important;color:#fff!important;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn.is-danger{
  background:#fff!important;border-color:#ead1d5!important;color:#b63a43!important;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn:hover{filter:brightness(.97)}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn:focus-visible,
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-tab:focus-visible{
  outline:2px solid var(--rv-primary);outline-offset:2px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty{
  border:1px dashed var(--sadaa-line-2);border-radius:15px;background:#fff;
  padding:38px 18px;text-align:center;color:var(--rv-muted);
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty>i{
  display:grid;place-items:center;margin:0 auto 12px;color:var(--rv-primary);
  background:var(--rv-soft);width:48px;height:48px;border-radius:13px;font-size:20px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty strong{
  display:block;font-size:15px;color:var(--rv-ink);font-weight:800;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty p{font-size:13px;line-height:1.8;margin:7px 0 0}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-empty.is-error>i{color:#b63a43}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-body{
  display:flex;gap:15px;align-items:flex-start;padding:19px;min-width:0;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-image{
  flex:0 0 100px;width:100px;height:100px;display:grid;place-items:center;
  padding:8px;border-radius:12px;border:1px solid var(--sadaa-tint-3);background:transparent;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-image img{width:100%;height:100%;object-fit:contain}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-info{min-width:0;flex:1}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-info h3{
  margin:5px 0 12px;font-size:15px;line-height:1.7;font-weight:800;color:var(--rv-ink);overflow-wrap:anywhere;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-small-tag{
  font-size:11px;color:var(--sadaa-text-2);background:var(--sadaa-tint-3);border:1px solid var(--sadaa-line-2);border-radius:6px;padding:4px 7px;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-url{
  display:flex;align-items:flex-start;gap:7px;min-width:0;font-size:11px;
  color:var(--rv-muted);line-height:1.8;
}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-url i{margin-top:4px;flex:0 0 auto}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-url span{overflow-wrap:anywhere;word-break:break-word;min-width:0}
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-owner-warning{font-size:12px;color:#a15f30;line-height:1.8}
@media (max-width:700px){
 #tabContent .sadaa-sp-admin-reviewpage{padding:8px 0 20px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-head{padding:19px 15px 17px;border-radius:13px;margin-bottom:12px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-line{align-items:flex-start;gap:10px;flex-wrap:wrap;padding-bottom:17px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-text h2{font-size:19px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count{padding:8px 10px;gap:9px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count>i{width:28px;height:28px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-count strong{font-size:17px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-filters{gap:6px;margin-top:14px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-tab{min-height:34px;padding:7px 9px;font-size:11px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-review-grid{gap:11px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-header{padding:14px 12px;gap:9px;flex-wrap:wrap}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-store-icon{width:36px;height:36px;flex-basis:36px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-ident strong{font-size:13px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-meta{margin-inline-start:auto;align-items:flex-start;gap:4px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-meta time{font-size:10px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-rating{padding:12px 13px 4px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-comment{padding:9px 13px 15px;font-size:13px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-owner-reply,
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-report-reason{margin:0 13px 12px;padding:11px 12px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-footer{padding:11px 12px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-btn{min-height:35px!important;padding:7px 10px!important;font-size:11px!important}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-body{gap:10px;padding:14px}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-image{flex-basis:70px;width:70px;height:70px}
}
@media (max-width:380px){
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-card-meta{width:100%;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-inline-start:0}
 #tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-heading-text{flex-basis:100%}
}


/* V107.4.24 | Real directory context for the nested store detail view. */
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout{
  min-width:0;max-width:100%;box-sizing:border-box;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-content{
  min-width:0;width:auto;max-width:100%;box-sizing:border-box;
  padding:0!important;margin:0!important;background:transparent!important;
  border:0!important;box-shadow:none!important;overflow:visible!important;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .stores-directory-unified-head,
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .stores-directory-filter-disclosure{
  min-width:0;box-sizing:border-box;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .stores-directory-head-text h2{
  max-width:100%;overflow-wrap:anywhere;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-return-link,
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-all-stores-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;min-width:0!important;text-align:center!important;
  white-space:normal!important;text-decoration:none!important;
  font-size:12px!important;font-weight:700!important;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-all-stores-link{
  background:#fff!important;border:1px solid var(--sadaa-line-2)!important;
  border-radius:9px!important;color:var(--sadaa-primary)!important;
  padding:8px!important;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-return-link{
  background:var(--sadaa-tint-3)!important;border:1px solid var(--sadaa-line-2)!important;
  border-radius:9px!important;color:var(--sadaa-primary)!important;padding:8px!important;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-content > .sadaa-store-profile-page{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;
}
html body .sadaa-store-detail-shell .sadaa-directory-detail-content .sadaa-sp-panel{
  min-width:0;max-width:100%;
}
@media(max-width:1100px){
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  }
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout > :is(.stores-directory-unified-head,.stores-directory-filter-disclosure,.sadaa-directory-detail-content){
    grid-column:1/-1!important;min-width:0!important;width:100%!important;
  }
}
@media(max-width:600px){
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .stores-directory-unified-head{
    padding:15px 12px!important;
  }
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-all-stores-link,
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout .sadaa-directory-return-link{
    font-size:11px!important;
  }
}



/* 2026-11-24 | Store-detail hero only: equal visual air above and below its contents.
   The shared directory listing hero remains untouched. */
@media (min-width:1101px){
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout > .stores-directory-unified-head{
    align-items:center!important;
  }
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout > .stores-directory-unified-head > .stores-directory-head-text,
  html body .sadaa-store-detail-shell .sadaa-directory-detail-layout > .stores-directory-unified-head > .stores-directory-hero-actions{
    transform:translateY(11px);
  }
}

/* V107.4.47 | Product images: show the complete original image in all product views.
   Owner-card status badges occupy the top area of the media CONTAINER, not
   the image's box. This avoids padded 100%-height images being clipped by
   overflow:hidden. Do not affect merchant logos, banners or ordinary images. */
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  padding:clamp(36px, 12%, 45px) 10px 10px;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media > img {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  min-width:0;
  min-height:0;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center center;
  background:transparent;
  transform:none;
}
#tabContent .sadaa-sp-manager .sadaa-sp-product:hover .sadaa-sp-product-media > img {
  transform:none;
}
/* Shared visitor cards also power add/edit previews. */
.sadaa-store-profile-page .sadaa-sp-visitor-product .sadaa-sp-visitor-media {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  padding:9px;
}
.sadaa-store-profile-page .sadaa-sp-visitor-product .sadaa-sp-visitor-media img {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center center;
  transform:none;
}
.sadaa-store-profile-page .sadaa-sp-visitor-product:hover .sadaa-sp-visitor-media img {
  transform:none;
}
/* Older product cards and moderation thumbnails: preserve every image edge. */
.sadaa-store-profile-page .sadaa-sp-product img,
.sadaa-sp-product-review-main > img,
#tabContent .sadaa-sp-admin-reviewpage .sadaa-sp-admin-product-image img {
  object-fit:contain;
  object-position:center center;
  max-width:100%;
  max-height:100%;
}
@media (max-width:390px) {
  #tabContent .sadaa-sp-manager .sadaa-sp-product .sadaa-sp-product-media {
    padding:38px 7px 7px;
  }
  .sadaa-store-profile-page .sadaa-sp-visitor-product .sadaa-sp-visitor-media {
    padding:6px;
  }
}

/* ============================================================
   Misty Indigo — shared public/dashboard header presentation
   This replaces, rather than layers over, the obsolete purple/gold patch.
   All identity hues are sourced from css/color-theme.php.
   ============================================================ */
html body .main-header,
html body .main-header.sadaa-dashboard-header{
  background:var(--sadaa-header-bg,#F1F2FA) !important;
  background-image:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
html body .main-header .header-nav a,
html body .main-header .header-nav a i,
html body .main-header .header-nav a span{
  color:var(--sadaa-text,#252B47) !important;
}
html body .main-header .header-nav a:hover,
html body .main-header .header-nav a:focus-visible,
html body .main-header .header-nav a[aria-current="page"]{
  color:var(--sadaa-primary,#5E6EA4) !important;
}
html body .main-header .btn-account,
html body .main-header.sadaa-dashboard-header .btn-account{
  background:var(--sadaa-primary,#5E6EA4) !important;
  border:1px solid var(--sadaa-primary,#5E6EA4) !important;
  color:#fff !important;
  box-shadow:none !important;
}
html body .main-header .btn-account > *,
html body .main-header .btn-account i,
html body .main-header .btn-account p{color:#fff !important;}
html body .main-header .btn-account:hover,
html body .main-header .btn-account:focus-visible{
  background:var(--sadaa-primary-dark,#4B598D) !important;
  border-color:var(--sadaa-primary-dark,#4B598D) !important;
  color:#fff !important;
}
html body .main-header .btn-store-directory,
html body .main-header .btn-add-ad,
html body .main-header.sadaa-dashboard-header .btn-add-ad{
  background:#fff !important;
  border:1px solid var(--sadaa-primary,#5E6EA4) !important;
  color:var(--sadaa-primary-dark,#4B598D) !important;
  box-shadow:none !important;
}
html body .main-header .btn-store-directory *,
html body .main-header .btn-add-ad *{color:inherit !important;}
html body .main-header .btn-store-directory:hover,
html body .main-header .btn-store-directory:focus-visible,
html body .main-header .btn-add-ad:hover,
html body .main-header .btn-add-ad:focus-visible{
  background:var(--sadaa-tint-2,#EFF1FA) !important;
  border-color:var(--sadaa-primary,#5E6EA4) !important;
  color:var(--sadaa-primary-dark,#4B598D) !important;
}
html body .main-header .site-share-button,
html body .main-header.sadaa-dashboard-header .site-share-button{
  background:transparent !important;
  border-color:transparent !important;
  color:var(--sadaa-primary,#5E6EA4) !important;
  box-shadow:none !important;
}
html body .main-header .site-share-button *,
html body .main-header .site-share-button .site-share-outline-icon{
  color:inherit !important;
}
html body .main-header .site-share-button:hover,
html body .main-header .site-share-button:focus-visible,
html body .main-header .site-share-button[aria-expanded="true"]{
  background:var(--sadaa-tint-2,#EFF1FA) !important;
  border-color:transparent !important;
  color:var(--sadaa-primary-dark,#4B598D) !important;
}
html body .main-header .dropdown-menu{
  background:#fff !important;
  border-color:var(--sadaa-line,#E5E7F0) !important;
}
html body .main-header .dropdown-item{
  color:var(--sadaa-text,#252B47) !important;
}
html body .main-header .dropdown-item:hover,
html body .main-header .dropdown-item:focus-visible{
  background:var(--sadaa-tint,#F4F5FC) !important;
  color:var(--sadaa-primary-dark,#4B598D) !important;
}

/* Public header auxiliary icons/text on a light surface. */
html body .main-header .sadaa-notifications-bell,
html body .main-header .site-share-head-icon,
html body .main-header .header-section .sadaa-header-link{
  color:var(--sadaa-primary-dark) !important;
}
html body .main-header .sadaa-notifications-bell:hover,
html body .main-header .sadaa-notifications-bell:focus-visible{
  background:var(--sadaa-tint-2) !important;
  color:var(--sadaa-primary-dark) !important;
}

/* =========================================================
   دليل المتاجر — صقل بصري إضافي للمميزة والهيرو
   2026-11-15
   - أيقونة الهيرو باللون المساند.
   - الحدود والعلامات للمتاجر المميزة بالنيلي الداكن.
   - زوايا الحاوية 24px.
   - أزرار بطاقات المميزة بالنيلي الداكن دون ظل.
   - أيقونة اللوحة الجانبية بالذهبي.
   ========================================================= */
html body .stores-directory-shell .stores-directory-unified-head .stores-directory-head-kicker > i,
html body .stores-directory-shell .stores-directory-unified-head .stores-directory-head-kicker .fa-store {
  color: var(--sadaa-primary-light) !important;
}

html body .stores-directory-shell #storeContainer .stores-featured-zone {
  margin: 0 0 18px !important;
  padding: 16px !important;
  border: 1px solid rgba(var(--sadaa-primary-dark-rgb), .48) !important;
  border-radius: 24px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured {
  border-color: rgba(var(--sadaa-primary-dark-rgb), .56) !important;
  border-radius: 24px !important;
  background: var(--sadaa-surface) !important;
  box-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured:hover,
html body .stores-directory-shell .stores-content-panel .store-card.featured:focus-within,
html body .stores-directory-shell .stores-content-panel .store-card.featured:active {
  border-color: rgba(var(--sadaa-primary-dark-rgb), .78) !important;
  box-shadow: none !important;
}

/* لون علامة التميز وحدود الشعار يتبع النيلي الداكن، دون المساس بنجوم التقييم. */
html body .stores-directory-shell .stores-content-panel .store-card.featured .badge-triangle,
html body .stores-directory-shell .stores-content-panel .store-card.featured .badge-triangle::before {
  border-top-color: var(--sadaa-primary-dark) !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .badge-featured {
  background: var(--sadaa-primary-dark) !important;
  box-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .store-logo {
  border-color: rgba(var(--sadaa-primary-dark-rgb), .35) !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .visit-button {
  border-color: var(--sadaa-primary-dark) !important;
  background: var(--sadaa-primary-dark) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .visit-button:hover,
html body .stores-directory-shell .stores-content-panel .store-card.featured .visit-button:focus-visible {
  border-color: var(--sadaa-brand-deep) !important;
  background: var(--sadaa-brand-deep) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card .sadaa-store-card-detail {
  font-weight: 400 !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .sadaa-store-card-detail {
  border-color: rgba(var(--sadaa-primary-dark-rgb), .62) !important;
  background: rgba(var(--sadaa-primary-dark-rgb), .10) !important;
  color: var(--sadaa-primary-dark) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body .stores-directory-shell .stores-content-panel .store-card.featured .sadaa-store-card-detail:hover,
html body .stores-directory-shell .stores-content-panel .store-card.featured .sadaa-store-card-detail:focus-visible {
  border-color: rgba(var(--sadaa-primary-dark-rgb), .82) !important;
  background: rgba(var(--sadaa-primary-dark-rgb), .16) !important;
  color: var(--sadaa-brand-deep) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body .stores-directory-shell .stores-side-visual .stores-visual-logo {
  color: var(--sadaa-accent) !important;
  border-color: rgba(var(--sadaa-accent-rgb), .36) !important;
  background: rgba(var(--sadaa-accent-rgb), .14) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55) !important;
}

@media (max-width: 640px) {
  html body .stores-directory-shell #storeContainer .stores-featured-zone {
    padding: 12px !important;
    border-radius: 24px !important;
  }
}

/* =========================================================
   Store detail reviews — header stars + stretched comment field
   2026-11-16
   - نقل النجوم إلى رأس النموذج في الجهة المقابلة للعنوان.
   - جعل صندوق الكتابة متمددًا.
   - نقل البريد الإلكتروني أسفل صندوق الكتابة.
   ========================================================= */
.sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) !important;
  gap:15px !important;
  align-items:start;
  padding:0 21px 0 !important;
}
.sadaa-store-detail-shell .sadaa-sp-review-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:17px 21px;
  margin-inline:-21px;
}
.sadaa-store-detail-shell .sadaa-sp-review-form-copy{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}
.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  min-width:250px;
  margin-inline-start:auto;
}
.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-stars-picker{
  width:auto;
}
/* إبقاء تعريف مجموعة النجوم متاحًا لقارئ الشاشة، دون مزاحمة النص الأفقي الظاهر. */
.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-stars-picker legend.sadaa-sp-visually-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  overflow:hidden !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
}
.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-rating-inline{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  direction:rtl;
  min-width:0;
}
.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-rating-inline-label{
  font-size:14px;
  font-weight:600;
  line-height:1.6;
  color:var(--sadaa-text);
  white-space:nowrap;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--comment > label{
  font-size:14px;
  font-weight:600;
  line-height:1.7;
}

.sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-star-options{
  justify-content:flex-start;
  margin:0;
}
/* ثبّت ترتيب الرأس، التعليق، البريد، والإرسال على جميع أحجام الشاشة. */
.sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form > .sadaa-sp-review-form-head{
  grid-column:1/-1;
  grid-row:1;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--comment{
  grid-column:1/-1;
  grid-row:2 !important;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--comment textarea{
  min-height:152px;
  width:100%;
}
.sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--email{
  grid-column:1/-1;
  grid-row:3 !important;
  max-width:430px;
}
.sadaa-store-detail-shell .sadaa-sp-review-submit-row{
  grid-column:1/-1;
  grid-row:4 !important;
}
@container (max-width: 790px){
  .sadaa-store-detail-shell .sadaa-sp-review-form-head{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating-head{
    min-width:0;
    width:100%;
    margin-inline-start:0;
    align-items:flex-start;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-stars-picker legend{
    text-align:right;
  }
  .sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--email{
    max-width:none;
  }
}
@media(max-width:600px){
  .sadaa-store-detail-shell .sadaa-sp-review-form-head{padding:15px 14px;margin-inline:-14px}
  .sadaa-store-detail-shell .sadaa-sp-review-form > .sadaa-sp-form{padding:0 14px 0 !important}
  .sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--comment textarea{min-height:138px}
}

@container (max-width: 420px){
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-rating-inline{gap:8px}
  .sadaa-store-detail-shell .sadaa-sp-review-field--rating-head .sadaa-sp-rating-inline-label{font-size:12px}
  .sadaa-store-detail-shell .sadaa-sp-review-form .sadaa-sp-review-field--rating-head .sadaa-sp-star-options label{
    font-size:clamp(27px,8.3cqw,34px);
    padding:0 1px;
  }
}
