/* ملف تجاوز الثيم: يُحمّل آخراً. يستبدل الألوان الفاتحة الثابتة في بطاقات العملاء والتحديد
   بمتغيرات الثيم الداكن (workspace.css). لا يغيّر بنية الصفحة. */

/* التحديد في الجدول والبطاقات */
.client-table-section .clients-table tbody tr.is-selected td{
  background:rgba(59,130,246,.14)!important;
  border-bottom-color:var(--line)!important;
  color:var(--ink)!important;
}
.client-table-section .clients-table tbody tr.is-selected{
  border-inline-start:4px solid var(--accent-strong,#3b82f6)!important;
  box-shadow:inset 0 0 0 1px rgba(59,130,246,.18)!important;
}
.client-table-section[data-view-mode="cards"] .clients-table tbody tr.is-selected{
  outline:2px solid rgba(59,130,246,.55);
  outline-offset:0;
  background:var(--surface-2,#142235);
}

/* بطاقات العملاء: الخلفيات والنصوص من الثيم */
.client-table-section[data-view-mode="cards"] .clients-table tbody tr{
  background:var(--surface,#101a29);
  color:var(--ink);
}
.client-table-section[data-view-mode="cards"] .clients-table tbody td.phone-cell{
  background:var(--surface-3,#1a2b40);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:10px;
}
.client-table-section[data-view-mode="cards"] .clients-table tbody td[data-label]::before{
  color:var(--muted,#95a6bb);
}
.client-table-section[data-view-mode="cards"] .clients-table tbody td{
  color:var(--ink);
}

/* ترتيب ثابت للحقول حتى لا تتداخل التسميات مع القيم */
.client-table-section[data-view-mode="cards"] .clients-table tbody td[data-label]{
  min-width:0;
}
.client-table-section[data-view-mode="cards"] .clients-table tbody td[data-label]::before{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
