/* مؤشرُ تقدّم الرفع (upload-progress.js) — قرارُ المالك 2026-11-14 */
.akq-upl-back {
    position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55); padding: 16px;
}
.akq-upl-card {
    width: min(480px, 100%); background: #fff; color: #0f172a; border-radius: 14px; padding: 18px 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35); direction: inherit;
}
.akq-upl-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.akq-upl-spin {
    width: 18px; height: 18px; border-radius: 50%; border: 3px solid #cbd5e1; border-top-color: #16a34a;
    animation: akq-upl-rot .9s linear infinite; flex: none;
}
.akq-upl-fail { width: 18px; height: 18px; border-radius: 50%; background: #dc2626; flex: none; }
.akq-upl-bar { height: 14px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.akq-upl-fill { height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: 999px; transition: width .25s ease; }
.akq-upl-fill-fail { background: #dc2626; width: 100% !important; }
.akq-upl-busy .akq-upl-fill {
    width: 100% !important; background: repeating-linear-gradient(45deg, #16a34a 0 14px, #4ade80 14px 28px);
    background-size: 40px 40px; animation: akq-upl-stripes 1s linear infinite;
}
.akq-upl-text { margin-top: 10px; font-size: .95rem; font-weight: 600; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.akq-upl-note { margin-top: 8px; font-size: .82rem; color: #475569; }
.akq-upl-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.akq-upl-btn { border: 1px solid #94a3b8; background: #f8fafc; color: #0f172a; border-radius: 8px; padding: 6px 14px; font-size: .9rem; cursor: pointer; }
.akq-upl-btn:hover { background: #e2e8f0; }
@keyframes akq-upl-rot { to { transform: rotate(360deg); } }
@keyframes akq-upl-stripes { to { background-position: 40px 0; } }
@media (prefers-reduced-motion: reduce) { .akq-upl-spin, .akq-upl-busy .akq-upl-fill { animation: none; } }

/* شريطُ تقدّمٍ مصغّرٌ بجانب «جارٍ الرفع…» في الرسائل الصغيرة (صفحة المراجعة) */
.akq-upl-inline { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.akq-upl-inline .akq-upl-mini { display: inline-block; width: 140px; height: 8px; background: rgba(0, 0, 0, .12); border-radius: 999px; overflow: hidden; }
.akq-upl-inline .akq-upl-mini > i { display: block; height: 100%; width: 0; background: #16a34a; transition: width .25s ease; }
.akq-upl-inline .akq-upl-mini.akq-upl-busy > i {
    width: 100% !important; background: repeating-linear-gradient(45deg, #16a34a 0 8px, #4ade80 8px 16px); background-size: 24px 24px; animation: akq-upl-stripes 1s linear infinite;
}
