/* إدارة المستودعات — أنماط إضافية لمجموعة الشاشات (a). الأصل iv-* في inventory.css و rc-* في record-page.css */

/* ── شجرة الفئات داخل جدول القائمة: الإزاحة بالمستوى تقول من تحت من قبل قراءة الاسم ── */
.ia-node { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ia-tog { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 0; background: none; color: var(--iv-mut); cursor: pointer; }
.ia-tog:hover { background: var(--iv-soft); color: var(--iv-ink); }
.ia-tog--leaf { cursor: default; color: #cbd5e1; }
.ia-tog--leaf:hover { background: none; color: #cbd5e1; }
.ia-tog i { transition: transform .15s; }
.ia-tog.is-open i { transform: rotate(-90deg); }
.ia-node .iv-av { width: 30px; height: 30px; border-radius: 8px; }
.ia-node .iv-av.is-sub { background: var(--iv-soft); color: var(--iv-mut); }
.ia-node > div { min-width: 0; }
.ia-path { color: var(--iv-mut); font-size: .74rem; }
.ia-path i { font-size: .62rem; margin-inline: 3px; }

/* ── صف عنوان مجموعة داخل جدول (مستودع، نوع سبب) ── */
.iv-tbl tr.ia-grp td { background: #f8fafc; font-weight: 800; font-size: .8rem; color: #334155; padding-block: 8px; border-bottom: 1px solid var(--iv-line); }
.iv-tbl tr.ia-grp td i { color: var(--iv-acc); margin-inline-end: 5px; }
.iv-tbl tr.ia-grp td .num { color: var(--iv-mut); font-weight: 700; margin-inline-start: 6px; }
.iv-tbl tr.ia-grp:hover td { background: #f8fafc; }

/* ── معاينة رمز الموقع من الممر والرف والخانة ── */
.ia-suggest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--rc-mut, #64748b); }
.ia-suggest button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px dashed #93c5fd; background: #eff6ff; color: #1d4ed8; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; direction: ltr; }
.ia-suggest button:hover { background: #dbeafe; }

/* ── عدّاد بسيط للوحدات: معامل التحويل مكتوبًا جملةً ── */
.ia-eq { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid #e6ebf1; font-weight: 700; font-size: .85rem; color: #0f172a; }
.ia-eq b { font-variant-numeric: tabular-nums; }

/* ── رسالة القراءة فقط للأسباب العامة ── */
.ia-ro fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ia-ro fieldset:disabled .ui-input { background: #f8fafc; color: #475569; }

@media (max-width: 760px) {
    .iv-tbl.iv-cards tr.ia-grp { padding: 0; }
    .iv-tbl.iv-cards tr.ia-grp td::before { content: none; }
}
