/* ============ المراسلات وطلبات المعلومات ============ */
.ltr-sub .ic { width: 13px; height: 13px; vertical-align: -2px; margin-inline-end: 2px; }

/* تفاصيل الطلب */
.rfi-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; font-size: 13px; }
.rfi-meta > div { min-width: 0; }
.rfi-meta .muted { display: block; font-size: 12px; }
.rfi-thread { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.rfi-msg { max-width: 92%; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; border-end-start-radius: 4px; padding: 12px 14px; }
.rfi-msg.ans { align-self: flex-end; background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); border-end-start-radius: 14px; border-end-end-radius: 4px; }
.rfi-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 6px; }
.rfi-msg-head b { font-size: 13px; }
.rfi-msg-head .faint { margin-inline-start: auto; }
.rfi-msg p { margin: 0; line-height: 1.8; }

/* المرفقات */
.att-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s; }
.att-chip:hover { border-color: var(--primary); color: var(--primary); }
.att-chip .ic { width: 14px; height: 14px; color: var(--muted); }
.att-chip span { direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* الإرساليات */
.tr-dw { display: flex; flex-wrap: wrap; gap: 4px; }
a.tag { transition: color .15s, border-color .15s; }
a.tag:hover { color: var(--primary); border-color: var(--primary); }
.tr-picks { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; max-height: 260px; overflow-y: auto; background: var(--surface); }
.tr-pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; min-width: 0; }
.tr-pick:last-child { border-bottom: 0; }
.tr-pick:hover { background: var(--surface-2); }
.tr-pick input { accent-color: var(--primary); width: 16px; height: 16px; flex: none; margin: 0; }
.tr-pick .tr-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .rfi-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfi-msg { max-width: 100%; }
  .tr-pick .tag { display: none; }
}
