@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap");
/* =====================================================================
   Ehgzli Design System v1 — Wave 32 R1 Track C
   Per RFC-0031 D3 Design System + Clause 23 WCAG 2.2 AA + Clause 10 bilingual.
   Reusable component classes extracted from Wave 28 R1 polish.
   Source: apps/ehgzli ONLY — Golden Rule compliant.
   All components are RTL-safe (inset-inline-*, margin-inline-*, text-align: start).
   All meet WCAG 2.2 AA (4.5:1 text contrast, 3:1 non-text, 44x44 hit targets).
   ===================================================================== */

/* === DESIGN TOKENS ============================================ */
:root {
  --eh-color-primary: #0d9488;
  --eh-color-primary-hover: #0f766e;
  --eh-color-primary-active: #115e59;
  --eh-color-primary-soft: #ccfbf1;
  --eh-color-success: #15803d;
  --eh-color-success-soft: #dcfce7;
  --eh-color-warning: #b45309;
  --eh-color-warning-soft: #fef3c7;
  --eh-color-error: #b91c1c;
  --eh-color-error-soft: #fee2e2;
  --eh-color-info: #1d4ed8;
  --eh-color-info-soft: #dbeafe;
  --eh-color-emergency: #991b1b;
  --eh-color-emergency-soft: #fecaca;
  --eh-color-text: #111827;
  --eh-color-text-muted: #4b5563;
  --eh-color-text-inverse: #ffffff;
  --eh-color-surface: #ffffff;
  --eh-color-surface-2: #f9fafb;
  --eh-color-border: #e5e7eb;
  --eh-color-border-strong: #d1d5db;
  --eh-spacing-xs: 4px;
  --eh-spacing-sm: 8px;
  --eh-spacing-md: 12px;
  --eh-spacing-lg: 16px;
  --eh-spacing-xl: 24px;
  --eh-radius-sm: 4px;
  --eh-radius-md: 8px;
  --eh-radius-lg: 12px;
  --eh-radius-pill: 9999px;
  --eh-font-xs: 12px;
  --eh-font-sm: 14px;
  --eh-font-md: 16px;
  --eh-font-lg: 18px;
  --eh-font-xl: 24px;
  --eh-motion-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --eh-motion-base: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BUTTON =================================================== */
.eh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--eh-spacing-sm);
  min-height: 44px;
  padding-inline: var(--eh-spacing-lg);
  padding-block: var(--eh-spacing-sm);
  border: 1px solid transparent;
  border-radius: var(--eh-radius-md);
  font-family: inherit;
  font-size: var(--eh-font-sm);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--eh-motion-base), border-color var(--eh-motion-base), color var(--eh-motion-base), transform var(--eh-motion-fast);
}
.eh-btn:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-btn:disabled, .eh-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.eh-btn--primary { background: var(--eh-color-primary); color: var(--eh-color-text-inverse); }
.eh-btn--primary:hover:not(:disabled) { background: var(--eh-color-primary-hover); }
.eh-btn--primary:active:not(:disabled) { background: var(--eh-color-primary-active); transform: translateY(1px); }
.eh-btn--secondary { background: #f3f4f6; color: var(--eh-color-text); border-color: var(--eh-color-border); }
.eh-btn--secondary:hover:not(:disabled) { background: #e5e7eb; }
.eh-btn--ghost { background: transparent; color: var(--eh-color-primary); }
.eh-btn--ghost:hover:not(:disabled) { background: var(--eh-color-primary-soft); }
.eh-btn--danger { background: var(--eh-color-error); color: var(--eh-color-text-inverse); }
.eh-btn--danger:hover:not(:disabled) { background: #991b1b; }
.eh-btn--icon-only { padding-inline: var(--eh-spacing-sm); min-width: 44px; aspect-ratio: 1; }
.eh-btn--lg { min-height: 52px; font-size: var(--eh-font-md); padding-inline: var(--eh-spacing-xl); }
.eh-btn--md { min-height: 44px; }
.eh-btn--sm { min-height: 36px; font-size: var(--eh-font-xs); padding-inline: var(--eh-spacing-md); }
@media (prefers-reduced-motion: reduce) { .eh-btn { transition: none; } .eh-btn--primary:active:not(:disabled) { transform: none; } }

/* === CARD ===================================================== */
.eh-card {
  background: var(--eh-color-surface);
  border: 1px solid var(--eh-color-border);
  border-radius: var(--eh-radius-lg);
  padding: var(--eh-spacing-lg);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.04);
  text-align: start;
}
.eh-card--interactive { cursor: pointer; transition: transform var(--eh-motion-base), box-shadow var(--eh-motion-base); }
.eh-card--interactive:hover { transform: translateY(-2px); box-shadow: 0 4px 12px -2px rgba(13,148,136,0.18), 0 2px 4px -2px rgba(0,0,0,0.08); }
.eh-card--interactive:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-card--selected, .eh-card[aria-current="true"] { border-color: var(--eh-color-primary); box-shadow: 0 8px 24px -4px rgba(13,148,136,0.28); }
.eh-card__header { padding-bottom: var(--eh-spacing-md); border-bottom: 1px solid var(--eh-color-border); margin-bottom: var(--eh-spacing-md); font-weight: 600; }
.eh-card__body { font-size: var(--eh-font-sm); color: var(--eh-color-text); }
.eh-card__footer { padding-top: var(--eh-spacing-md); border-top: 1px solid var(--eh-color-border); margin-top: var(--eh-spacing-md); display: flex; gap: var(--eh-spacing-sm); justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .eh-card--interactive { transition: none; } .eh-card--interactive:hover { transform: none; } }
@media print { .eh-card { box-shadow: none !important; border: 1px solid #999; } .eh-card--interactive:hover { transform: none; box-shadow: none; } }

/* === INPUT ==================================================== */
.eh-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding-inline: var(--eh-spacing-md);
  padding-block: var(--eh-spacing-sm);
  border: 1px solid var(--eh-color-border-strong);
  border-radius: var(--eh-radius-md);
  background: var(--eh-color-surface);
  color: var(--eh-color-text);
  font: inherit;
  font-size: var(--eh-font-sm);
  text-align: start;
  transition: border-color var(--eh-motion-base), box-shadow var(--eh-motion-base);
}
.eh-input:focus-visible { outline: none; border-color: var(--eh-color-primary); box-shadow: 0 0 0 2px var(--eh-color-primary-soft); }
.eh-input::placeholder { color: var(--eh-color-text-muted); }
.eh-input:disabled { background: var(--eh-color-surface-2); cursor: not-allowed; }
.eh-input--error { border-color: var(--eh-color-error); box-shadow: 0 0 0 2px var(--eh-color-error-soft); }
.eh-input--success { border-color: var(--eh-color-success); box-shadow: 0 0 0 2px var(--eh-color-success-soft); }
.eh-input__hint { display: block; margin-top: var(--eh-spacing-xs); font-size: var(--eh-font-xs); color: var(--eh-color-text-muted); }
.eh-input__error-msg { display: block; margin-top: var(--eh-spacing-xs); font-size: var(--eh-font-xs); color: var(--eh-color-error); }

/* === BADGE ==================================================== */
.eh-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--eh-spacing-xs);
  padding-inline: var(--eh-spacing-sm);
  padding-block: 2px;
  border-radius: var(--eh-radius-pill);
  font-size: var(--eh-font-xs);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.eh-badge--soft { background: var(--eh-color-surface-2); color: var(--eh-color-text); }
.eh-badge--solid { background: var(--eh-color-text); color: var(--eh-color-text-inverse); }
.eh-badge--success { background: var(--eh-color-success-soft); color: var(--eh-color-success); }
.eh-badge--warning { background: var(--eh-color-warning-soft); color: var(--eh-color-warning); }
.eh-badge--error { background: var(--eh-color-error-soft); color: var(--eh-color-error); }
.eh-badge--info { background: var(--eh-color-info-soft); color: var(--eh-color-info); }

/* === ALERT ==================================================== */
.eh-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--eh-spacing-md);
  padding: var(--eh-spacing-lg);
  border-radius: var(--eh-radius-md);
  border-inline-start: 4px solid var(--eh-color-info);
  background: var(--eh-color-info-soft);
  color: var(--eh-color-text);
  text-align: start;
}
.eh-alert--info { background: var(--eh-color-info-soft); border-inline-start-color: var(--eh-color-info); }
.eh-alert--success { background: var(--eh-color-success-soft); border-inline-start-color: var(--eh-color-success); }
.eh-alert--warning { background: var(--eh-color-warning-soft); border-inline-start-color: var(--eh-color-warning); }
.eh-alert--error { background: var(--eh-color-error-soft); border-inline-start-color: var(--eh-color-error); }
.eh-alert--emergency { background: var(--eh-color-emergency-soft); border-inline-start: 4px solid var(--eh-color-emergency); color: var(--eh-color-emergency); font-weight: 600; }
.eh-alert__title { display: block; font-weight: 700; margin-bottom: var(--eh-spacing-xs); }
.eh-alert__body { display: block; font-size: var(--eh-font-sm); }
.eh-alert__action { margin-inline-start: auto; }

/* === MODAL ==================================================== */
.eh-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(17,24,39,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1050; padding: var(--eh-spacing-lg);
}
.eh-modal__panel {
  background: var(--eh-color-surface);
  border-radius: var(--eh-radius-lg);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.3);
  text-align: start;
}
.eh-modal__header { padding: var(--eh-spacing-lg); border-bottom: 1px solid var(--eh-color-border); font-weight: 700; font-size: var(--eh-font-lg); display: flex; justify-content: space-between; align-items: center; gap: var(--eh-spacing-md); }
.eh-modal__body { padding: var(--eh-spacing-lg); }
.eh-modal__footer { padding: var(--eh-spacing-lg); border-top: 1px solid var(--eh-color-border); display: flex; gap: var(--eh-spacing-sm); justify-content: flex-end; }

/* === SKELETON ================================================= */
.eh-skeleton {
  display: block; position: relative; overflow: hidden;
  background-color: #f1f5f9; border-radius: var(--eh-radius-sm);
  min-height: 1em;
}
.eh-skeleton::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: eh-skeleton-shimmer 1.4s infinite;
}
[dir="rtl"] .eh-skeleton::after { animation-direction: reverse; }
@keyframes eh-skeleton-shimmer { 100% { transform: translateX(100%); } }
.eh-skeleton--text { height: 0.9em; margin-block: 0.3em; }
.eh-skeleton--title { height: 1.4em; width: 60%; margin-bottom: 0.6em; }
.eh-skeleton--card { height: 180px; }
.eh-skeleton--avatar { width: 56px; height: 56px; border-radius: 50%; }
.eh-skeleton--button { height: 38px; width: 120px; border-radius: var(--eh-radius-md); }
@media (prefers-reduced-motion: reduce) { .eh-skeleton::after { animation: none; } }

/* === TOAST / SNACKBAR ========================================= */
.eh-toast {
  position: fixed; bottom: var(--eh-spacing-xl);
  inset-inline-start: 50%; transform: translateX(-50%);
  background: var(--eh-color-text); color: var(--eh-color-text-inverse);
  padding: var(--eh-spacing-md) var(--eh-spacing-lg);
  border-radius: var(--eh-radius-md);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
  z-index: 1100; max-width: 90vw;
  display: flex; gap: var(--eh-spacing-md); align-items: center;
}
[dir="rtl"] .eh-toast { transform: translateX(50%); }
.eh-toast--success { background: var(--eh-color-success); }
.eh-toast--warning { background: var(--eh-color-warning); }
.eh-toast--error { background: var(--eh-color-error); }
.eh-toast--info { background: var(--eh-color-info); }

/* === TABLE ==================================================== */
.eh-table {
  width: 100%; border-collapse: collapse;
  background: var(--eh-color-surface); color: var(--eh-color-text);
  text-align: start;
}
.eh-table caption { caption-side: top; text-align: start; font-weight: 600; padding-block: var(--eh-spacing-sm); }
.eh-table th, .eh-table td { padding: var(--eh-spacing-md); border-bottom: 1px solid var(--eh-color-border); text-align: start; }
.eh-table th { background: var(--eh-color-surface-2); font-weight: 600; font-size: var(--eh-font-sm); }
.eh-table__row--hoverable { transition: background-color var(--eh-motion-fast); }
.eh-table__row--hoverable:hover { background: var(--eh-color-surface-2); }
@media print { .eh-table th { background: #f5f5f5 !important; -webkit-print-color-adjust: exact; } }

/* === TABS ===================================================== */
.eh-tabs { display: flex; gap: var(--eh-spacing-xs); border-bottom: 2px solid var(--eh-color-border); }
.eh-tab {
  padding-inline: var(--eh-spacing-md); padding-block: var(--eh-spacing-sm);
  border: 0; background: transparent;
  font-weight: 600; font-size: var(--eh-font-sm); color: var(--eh-color-text-muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; min-height: 44px;
  transition: color var(--eh-motion-base), border-color var(--eh-motion-base);
}
.eh-tab:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-tab--active, .eh-tab[aria-selected="true"] { color: var(--eh-color-primary); border-bottom-color: var(--eh-color-primary); }
.eh-tab:hover:not(.eh-tab--active) { color: var(--eh-color-text); }

/* === AVATAR =================================================== */
.eh-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
  background: var(--eh-color-surface-2); color: var(--eh-color-text);
  font-weight: 600; flex-shrink: 0;
}
.eh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eh-avatar--xs { width: 24px; height: 24px; font-size: 10px; }
.eh-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.eh-avatar--md { width: 44px; height: 44px; font-size: 14px; }
.eh-avatar--lg { width: 64px; height: 64px; font-size: 18px; }

/* === PROGRESS ================================================= */
.eh-progress {
  display: block; width: 100%; height: 8px;
  background: var(--eh-color-border); border-radius: var(--eh-radius-pill);
  overflow: hidden;
}
.eh-progress__bar {
  display: block; height: 100%;
  background: var(--eh-color-primary);
  border-radius: var(--eh-radius-pill);
  transition: width var(--eh-motion-base);
}
.eh-progress--circular { width: 48px; height: 48px; background: none; border-radius: 50%; border: 4px solid var(--eh-color-border); border-top-color: var(--eh-color-primary); animation: eh-progress-spin 1s linear infinite; }
@keyframes eh-progress-spin { to { transform: rotate(360deg); } }
[dir="rtl"] .eh-progress--circular { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .eh-progress--circular { animation-duration: 3s; } }

/* === END Ehgzli Design System v1 — Wave 32 R1 Track C ========= */

/* === BREADCRUMB =============================================== */
/* Component 13 - Wave 34 R1 Track B */
.eh-breadcrumb { font-size: var(--eh-font-sm); color: var(--eh-color-text-muted); text-align: start; }
.eh-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eh-spacing-xs); list-style: none; margin: 0; padding: 0; }
.eh-breadcrumb__item { display: inline-flex; align-items: center; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eh-breadcrumb__item a { color: var(--eh-color-primary); text-decoration: none; border-radius: var(--eh-radius-sm); padding-inline: 2px; }
.eh-breadcrumb__item a:hover { text-decoration: underline; }
.eh-breadcrumb__item a:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-breadcrumb__item--current,
.eh-breadcrumb__item[aria-current="page"] { color: var(--eh-color-text); font-weight: 600; }
.eh-breadcrumb__separator { display: inline-flex; align-items: center; color: var(--eh-color-text-muted); user-select: none; }
.eh-breadcrumb__separator::before { content: "\2192"; }
[dir="rtl"] .eh-breadcrumb__separator::before { content: "\2190"; }
@media (max-width: 600px) {
  .eh-breadcrumb__item:not(:first-child):not(:last-child):not(.eh-breadcrumb__item--current) { max-width: 80px; }
}
@media print { .eh-breadcrumb__separator::before { content: "/"; } }

/* === PAGINATION =============================================== */
/* Component 14 - Wave 34 R1 Track B */
.eh-pagination { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--eh-spacing-xs); text-align: start; }
.eh-page-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  padding-inline: var(--eh-spacing-md); padding-block: var(--eh-spacing-sm);
  border: 1px solid var(--eh-color-border); border-radius: var(--eh-radius-md);
  background: var(--eh-color-surface); color: var(--eh-color-text);
  font-size: var(--eh-font-sm); font-weight: 600;
  text-decoration: none;
  transition: background-color var(--eh-motion-base), border-color var(--eh-motion-base), color var(--eh-motion-base);
}
.eh-page-item:hover:not(.eh-page-item--current):not(.eh-page-item--disabled) {
  background: var(--eh-color-surface-2);
  border-color: var(--eh-color-border-strong);
}
.eh-page-item:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-page-item--current,
.eh-page-item[aria-current="page"] {
  background: var(--eh-color-primary);
  border-color: var(--eh-color-primary);
  color: var(--eh-color-text-inverse);
  cursor: default;
}
.eh-page-item--disabled,
.eh-page-item[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.eh-page-prev::before { content: "\2190"; margin-inline-end: var(--eh-spacing-xs); }
.eh-page-next::after  { content: "\2192"; margin-inline-start: var(--eh-spacing-xs); }
[dir="rtl"] .eh-page-prev::before { content: "\2192"; }
[dir="rtl"] .eh-page-next::after  { content: "\2190"; }
@media (prefers-reduced-motion: reduce) { .eh-page-item { transition: none; } }

/* === SEARCH INPUT ============================================= */
/* Component 15 - Wave 34 R1 Track B */
.eh-search { position: relative; display: block; width: 100%; }
.eh-search__icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-start: 12px;
  font-size: var(--eh-font-md);
  color: var(--eh-color-text-muted);
  pointer-events: none;
  line-height: 1;
}
.eh-search__input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding-block: var(--eh-spacing-sm);
  padding-inline-start: 40px;
  padding-inline-end: 40px;
  border: 1px solid var(--eh-color-border-strong);
  border-radius: var(--eh-radius-md);
  background: var(--eh-color-surface);
  color: var(--eh-color-text);
  font: inherit;
  font-size: var(--eh-font-sm);
  text-align: start;
  transition: border-color var(--eh-motion-base), box-shadow var(--eh-motion-base);
}
.eh-search__input::-webkit-search-decoration,
.eh-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.eh-search__input::placeholder { color: var(--eh-color-text-muted); }
.eh-search__input:focus-visible {
  outline: none;
  border-color: var(--eh-color-primary);
  box-shadow: 0 0 0 2px var(--eh-color-primary-soft);
}
.eh-search__input:disabled { background: var(--eh-color-surface-2); cursor: not-allowed; }
.eh-search__clear {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-end: 8px;
  display: none;
  min-width: 32px; min-height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--eh-radius-sm);
  color: var(--eh-color-text-muted);
  font-size: var(--eh-font-md);
  line-height: 1;
  cursor: pointer;
}
.eh-search__clear:hover { background: var(--eh-color-surface-2); color: var(--eh-color-text); }
.eh-search__clear:focus-visible { outline: 2px solid var(--eh-color-primary); outline-offset: 2px; }
.eh-search__input:not(:placeholder-shown) ~ .eh-search__clear { display: inline-flex; align-items: center; justify-content: center; }
.eh-search--lg .eh-search__input { min-height: 52px; font-size: var(--eh-font-md); padding-inline-start: 48px; padding-inline-end: 48px; }
.eh-search--lg .eh-search__icon  { inset-inline-start: 14px; font-size: var(--eh-font-lg); }
.eh-search--lg .eh-search__clear { inset-inline-end: 10px; min-width: 36px; min-height: 36px; }

/* === EMPTY STATE ============================================== */
/* Component 16 - Wave 34 R1 Track B */
.eh-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--eh-spacing-xl) var(--eh-spacing-lg);
  gap: var(--eh-spacing-md);
  color: var(--eh-color-text);
  background: var(--eh-color-surface);
  border: 1px dashed var(--eh-color-border);
  border-radius: var(--eh-radius-lg);
}
.eh-empty__icon {
  width: 96px; height: 96px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eh-color-surface-2);
  border-radius: 50%;
  font-size: 40px;
  color: var(--eh-color-text-muted);
  margin-bottom: var(--eh-spacing-xs);
}
.eh-empty__icon svg { width: 48px; height: 48px; }
.eh-empty__title { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--eh-color-text); }
.eh-empty__description { margin: 0; max-width: 48ch; font-size: 0.95rem; color: var(--eh-color-text-muted); }
.eh-empty__action { margin-top: var(--eh-spacing-sm); }
.eh-empty--no-data        .eh-empty__icon { color: var(--eh-color-info);    background: var(--eh-color-info-soft); }
.eh-empty--no-results     .eh-empty__icon { color: var(--eh-color-warning); background: var(--eh-color-warning-soft); }
.eh-empty--no-permission  .eh-empty__icon { color: var(--eh-color-error);   background: var(--eh-color-error-soft); }
@media print { .eh-empty { border-style: solid; border-color: #999; } }

/* === END Wave 34 R1 Track B (components 13-16) ================ */


/* =====================================================================
   W34.55 — Typography foundation (audit W50, best-in-world pass).
   The whole site requested 'IBM Plex Sans Arabic','Tajawal' in inline
   styles but no font was ever loaded -> it silently fell back to
   system-ui. The @import at the TOP of this file now loads them; the
   rules below apply the family site-wide (website pages only; this CSS
   is web_include_css, never loaded on /app desk). Clause 10 (AR-first)
   + Clause 23. font-display:swap (in the import) avoids FOIT.
   ===================================================================== */
:root {
  --eh-font: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body,
.ehgzli-find, .ehgzli-me-home, .ehgzli-portal,
.eh-card, .eh-btn, .eh-badge, .eh-alert,
h1, h2, h3, h4, h5, h6, p, a, span, li, label,
input, select, textarea, button, table {
  font-family: var(--eh-font);
}
h1, h2, h3 { letter-spacing: -0.01em; }

/* === FIND-DOCTOR next-available slot pill (VEZEETA parity) ============ */
/* Rounded green pill on each catalogue card. Reuses .eh-badge--success for
   colour; adds a pulsing live dot. RTL-safe via logical gap/inline props. */
.ehgzli-slot-pill {
  gap: 0.35rem;
  max-inline-size: 100%;
  white-space: normal;
}
.ehgzli-slot-pill .ehgzli-slot-dot {
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: 50%;
  background: var(--eh-color-success, #15803d);
  flex: 0 0 auto;
  animation: ehgzli-slot-pulse 2s ease-in-out infinite;
}
.ehgzli-slot-pill .ehgzli-slot-label {
  font-weight: 600;
}
@keyframes ehgzli-slot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .ehgzli-slot-pill .ehgzli-slot-dot { animation: none; }
}

/* W34.88 — footer link lists: kill default bullets (floated to far edge in RTL) */
.ehgzli-footer-col ul{ list-style:none; margin:0; padding:0; }
.ehgzli-footer-col li{ margin:.25rem 0; }
.ehgzli-footer-col a{ text-decoration:none; }
/* W34.88 — RTL: search inputs put the magnifier/clear on the inline-start (left in RTL) */
[dir="rtl"] .ehg-search__btn{ align-self:flex-end; }
