/* Droosi PDF Viewer - تنسيق العارض (يُحمَّل فقط عند وجود عارض في الصفحة) */
.dpvp{position:relative;border:1px solid #cbd5e1;border-radius:4px;overflow:hidden;box-shadow:0 2px 6px rgba(0,0,0,.06);margin:0 auto 2rem auto;max-width:100%;background:#525659;direction:rtl;line-height:1.4;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.dpvp *,.dpvp *::before,.dpvp *::after{box-sizing:border-box}

/* قبل تشغيل العارض: مساحة محجوزة ورسالة تحميل (بدون قفزة في الصفحة) */
.dpvp:not(.dpvp-ready){min-height:380px;display:flex;align-items:center;justify-content:center}
.dpvp:not(.dpvp-ready)::before{content:"\062C\0627\0631\064A  \062A\062D\0645\064A\0644  \0627\0644\0645\0644\0641...";color:#fff;font-size:14px}

/* الشريط الأخضر */
.dpvp-bar{background:#359756;color:#fff;height:38px;padding:0 8px;display:flex;align-items:center;gap:4px;direction:rtl;flex-shrink:0;overflow:hidden}
.dpvp-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0;background:transparent;border:0;border-radius:4px;color:#fff;cursor:pointer;padding:0;flex-shrink:0;box-shadow:none;min-height:0;line-height:1}
.dpvp-btn:hover,.dpvp-btn:focus{background:rgba(255,255,255,.18);color:#fff;outline:none}
.dpvp-btn svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;display:block}
.dpvp-btn svg.dpvp-ic-fill{fill:#fff;stroke:none}
.dpvp-page-in{width:38px;height:24px;margin:0;border:0;border-radius:3px;text-align:center;font-size:12px;font-weight:700;color:#333;background:#fff;direction:ltr;padding:0;box-shadow:none;min-height:0}
.dpvp-of{font-size:12px;font-weight:600;white-space:nowrap;color:#fff}
.dpvp-sp{flex:1 1 0;min-width:0}
.dpvp-select{height:24px;margin:0;border:0;border-radius:3px;font-size:12px;background:#fff;color:#333;padding:0 4px;flex:0 1 112px;min-width:0;max-width:112px;box-shadow:none;min-height:0;width:112px}
.dpvp-logo{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:8px;padding:2px;width:32px;height:32px;margin-right:4px;flex-shrink:0;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s;border:0}
.dpvp-logo:hover{transform:scale(1.06)}
.dpvp-logo svg{width:100%;height:100%;display:block}

/* منطقة الصفحات */
.dpvp-scroll{position:relative;direction:ltr;height:380px;overflow:auto;background:#525659;padding:10px 12px;outline:none;-webkit-overflow-scrolling:touch}
.dpvp-page{position:relative;margin:0 auto 10px auto;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.4);overflow:hidden}
.dpvp-page canvas{display:block;max-width:none}
.dpvp-status{position:absolute;top:0;left:0;right:0;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;direction:rtl;pointer-events:none;text-align:center;padding:0 16px}

/* شاشات ضيقة: نضغط الشريط حتى يظهر الشعار كاملاً دائماً */
@media(max-width:420px){
  .dpvp-bar{padding:0 6px;gap:2px}
  .dpvp-btn{width:26px}
  .dpvp-page-in{width:32px}
  .dpvp-logo{margin-right:2px}
}
@media(max-width:350px){
  .dpvp-b-in,.dpvp-b-out{display:none}
}

/* ملء الشاشة */
.dpvp.dpvp-fs{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;z-index:999999!important;margin:0!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important}
.dpvp.dpvp-fs .dpvp-scroll{flex:1;height:auto!important;max-height:none!important}

/* الجوال: ارتفاع يناسب الصفحة كاملة (يضبطه السكربت بدقة بعد تحميل الملف) */
@media(max-width:700px){
  .dpvp-scroll{height:calc((100vw - 48px)*1.4143 + 22px);max-height:88vh}
}

/* منع الطباعة المباشرة من المتصفح */
@media print{.dpvp{display:none!important}}
