/* FDX_CUSTOMERS — ملف العميل الواحد */
.cu-bar { padding: 12px 14px; margin-bottom: 12px; }
.cu-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cu-q { flex: 1 1 280px; min-width: 0; }
.cu-tools .chip b { font-weight: 600; opacity: .7; margin-inline-start: 2px; }
.cu-t td { vertical-align: middle; }
.cu-who b { overflow-wrap: anywhere; }
.cu-mail { unicode-bidi: isolate; overflow-wrap: anywhere; }
.cu-t tr.click:hover td { background: var(--surface-2); }
.cu-more { padding: 12px; text-align: center; }
.cu-more:empty { display: none; }
.cu-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cu-acts { flex-wrap: wrap; justify-content: flex-end; }
.cu-top { margin-bottom: 16px; }
.cu-sec { margin-bottom: 16px; }
.cu-o td { vertical-align: middle; }
.cu-o tr.cu-gone td { opacity: .55; }
.cu-h { padding: 8px 0; border-top: 1px solid var(--line); }
.cu-h:first-child { border-top: 0; padding-top: 0; }
.cu-picks { max-height: 320px; overflow: auto; margin-top: 10px; }
.cu-inline { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }

/* النموذج */
.cu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.cu-grid .span2 { grid-column: 1 / -1; }
.cu-form .field > span i { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 12px; margin-inline-start: 4px; }
.cu-form .input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.cu-phone { display: flex; gap: 6px; align-items: center; }
.cu-phone .cu-cc { width: 72px; flex: 0 0 72px; }
.cu-phone .input:last-child { flex: 1 1 auto; min-width: 0; }
.cu-check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; cursor: pointer; }
.cu-note { margin: 12px 0 0; }
.cu-err { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); font-size: 14px; }
.cu-foot { margin-top: 14px; }
.cu-form.compact .cu-grid { grid-template-columns: minmax(0, 1fr); }
.cu-form.compact .cu-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: 8px; }

@media (max-width: 560px) {
  .cu-grid { grid-template-columns: minmax(0, 1fr); }
  .cu-acts { justify-content: flex-start; }
  /* العملاء بطاقاتٍ مكدّسة: الاسم ورقم الريسلر، ثم فيوباس والأعداد */
  table.cu-t thead { display: none; }
  table.cu-t, table.cu-t tbody { display: block; }
  table.cu-t tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
  table.cu-t td { display: block; padding: 0; border: 0; min-width: 0; }
  table.cu-t td.cu-who { flex: 1 1 100%; }
  table.cu-t td.cu-n { color: var(--text-2); }
  table.cu-t td.cu-n::before { content: attr(data-l) " "; }
  table.cu-t td[colspan] { flex: 1 1 100%; }
  table.cu-o thead { display: none; }
  table.cu-o, table.cu-o tbody { display: block; }
  table.cu-o tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
  table.cu-o td { display: block; padding: 0; border: 0; min-width: 0; }
  table.cu-o td:first-child { flex: 1 1 100%; }
}
