/* ===================== مستند ملف الإنجاز (A4 794×1123) ===================== */
.edoc { font-family: var(--font); color: var(--ink); line-height: 1.6; }
.edoc * { box-sizing: border-box; margin: 0; padding: 0; }
.edoc .pg { width: 794px; height: 1123px; position: relative; overflow: hidden; background-color: var(--cream); background-repeat: repeat; background-size: 90px 90px; display: flex; flex-direction: column; }
.edoc .pg.has-tpl { background-size: 794px 1123px; background-repeat: no-repeat; }
.edoc .pg-in { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; padding: 38px 44px 12px 44px; text-align: var(--ta); }
.edoc .pg-cover .pg-in { padding: 0; }
.edoc img { display: block; }

/* ---------- الغلاف: عناصر مشتركة ---------- */
.edoc .cov { position: relative; width: 794px; height: 1123px; display: flex; flex-direction: column; align-items: center; padding: 56px 70px 48px; }
.edoc .cov-top { width: 100%; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.edoc .gov { font-size: 14px; font-weight: 800; line-height: 1.85; color: var(--pd); text-align: var(--ta); }
.edoc .gov.light { color: #fff; }
.edoc .cov-logos { display: flex; gap: 10px; align-items: center; position: relative; z-index: 8; }
.edoc .cov-logos img { height: 88px; width: auto; max-width: 160px; background: #fff; border-radius: 14px; padding: 6px 8px; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.edoc .cov-title { text-align: center; margin: auto 0 26px; position: relative; z-index: 3; width: 100%; }
.edoc .cov-badge { display: inline-block; background: var(--p); color: #fff; font-size: 13.5px; font-weight: 800; padding: 6px 26px; border-radius: 30px; border: 2px solid var(--a); margin-bottom: 18px; }
.edoc .cov-title h1 { font-size: 50px; font-weight: 900; color: var(--pd); line-height: 1.3; }
.edoc .lang-en .cov-title h1 { font-size: 46px; }
.edoc .cov-sub { font-size: 18px; font-weight: 700; color: var(--ad); margin-top: 8px; }
.edoc .cov-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 12px; }
.edoc .cov-divider span { width: 110px; height: 2px; background: var(--a); }
.edoc .cov-divider i { width: 12px; height: 12px; background: var(--a); transform: rotate(45deg); }
.edoc .cov-year { font-size: 17px; font-weight: 800; color: var(--p); }
.edoc .cov-card { width: 82%; background: rgba(255,255,255,.94); border: 2px solid var(--a); border-radius: 16px; padding: 14px 28px; position: relative; z-index: 3; box-shadow: 0 10px 28px rgba(0,0,0,.08); margin-bottom: auto; }
.edoc .cov-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.edoc .cov-row:last-child { border-bottom: none; }
.edoc .cov-row .k { color: var(--ad); font-weight: 800; white-space: nowrap; }
.edoc .cov-row .v { font-weight: 800; color: var(--ink); text-align: var(--tae); }
.edoc .cov-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ad); position: relative; z-index: 3; margin-top: 26px; }
.edoc .cov-laurel { width: 92px; height: auto; }
.edoc .cov-foot.plain { margin-top: 30px; }

/* الملكي */
.edoc .cov-royal .cr-frame1 { position: absolute; top: 18px; left: 18px; right: 18px; bottom: 18px; border: 3px solid var(--a); border-radius: 6px; }
.edoc .cov-royal .cr-frame2 { position: absolute; top: 28px; left: 28px; right: 28px; bottom: 28px; border: 1.5px solid var(--p); border-radius: 4px; }
.edoc .cov-royal .cr-c { position: absolute; width: 110px; height: 110px; z-index: 2; }
.edoc .cov-royal .c1 { top: 10px; right: 10px; transform: scaleX(-1); }
.edoc .cov-royal .c2 { top: 10px; left: 10px; }
.edoc .cov-royal .c3 { bottom: 10px; right: 10px; transform: scale(-1, -1); }
.edoc .cov-royal .c4 { bottom: 10px; left: 10px; transform: scaleY(-1); }
.edoc .cov-royal .cr-seal { width: 88px; height: auto; margin: 26px auto 0; position: relative; z-index: 3; }
.edoc .cov-royal .cov-title { margin-top: 18px; }

/* أقلام التلوين */
.edoc .cov-pencils { padding: 0 0 0; }
.edoc .cov-pencils .cp-band { width: 100%; background: var(--p); padding: 30px 60px 26px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.edoc .cov-pencils .cp-band .cov-logos img { background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.edoc .cov-pencils .cp-stripes { width: 100%; height: 12px; }
.edoc .cov-pencils .cp-doodle { position: absolute; top: 205px; left: 40px; width: 130px; height: 130px; opacity: .9; }
.edoc .lang-en .cov-pencils .cp-doodle { left: auto; right: 40px; }
.edoc .cov-pencils .cov-title { margin: 110px 0 26px; padding: 0 60px; }
.edoc .cov-pencils .cov-card { border-radius: 22px; border-width: 3px; border-style: dashed; margin-bottom: 0; }
.edoc .cov-pencils .cp-pencils { position: absolute; bottom: -6px; left: 0; width: 794px; height: 200px; z-index: 2; }

/* الهندسي */
.edoc .cov-geometric .cg-a { position: absolute; top: -40px; left: -40px; width: 360px; height: 360px; transform: scaleX(-1); }
.edoc .cov-geometric .cg-b { position: absolute; bottom: -50px; right: -50px; width: 330px; height: 330px; transform: rotate(180deg) scaleX(-1); }
.edoc .lang-en .cov-geometric .cg-a { left: auto; right: -40px; transform: none; }
.edoc .lang-en .cov-geometric .cg-b { right: auto; left: -50px; transform: rotate(180deg); }
.edoc .cov-geometric .cg-bar { position: absolute; top: 0; bottom: 0; right: 0; width: 18px; background: var(--p); }
.edoc .cov-geometric .cg-bar:after { content: ''; position: absolute; top: 0; bottom: 0; left: -8px; width: 5px; background: var(--a); }
.edoc .lang-en .cov-geometric .cg-bar { right: auto; left: 0; }
.edoc .lang-en .cov-geometric .cg-bar:after { left: auto; right: -8px; }
.edoc .cov-geometric .cov-title { text-align: var(--ta); }
.edoc .cov-geometric .cov-title h1 { font-size: 56px; }
.edoc .cov-geometric .cov-divider { justify-content: flex-start; }
.edoc .cov-geometric .cov-card { width: 100%; border-radius: 4px; border-width: 0; border-top: 5px solid var(--p); }

/* الأمواج */
.edoc .cov-waves { padding: 0 0 0; }
.edoc .cov-waves .cw-top { position: absolute; top: 0; left: 0; width: 794px; height: 300px; }
.edoc .cov-waves .cw-head { width: 100%; padding: 44px 64px 0; display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 3; }
.edoc .cov-waves .cw-head .cov-logos img { background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.edoc .cov-waves .cov-title { margin: 150px 0 26px; padding: 0 60px; }
.edoc .cov-waves .cov-card { margin-bottom: 0; }
.edoc .cov-waves .cw-bottom { position: absolute; bottom: 0; left: 0; width: 794px; height: 120px; z-index: 1; }

/* الإسلامي */
.edoc .cov-islamic .ci-band { position: absolute; left: 0; right: 0; height: 70px; background-size: 60px 60px; background-repeat: repeat; border-color: var(--a); border-style: solid; border-width: 0; }
.edoc .cov-islamic .ci-top { top: 0; border-bottom-width: 4px; }
.edoc .cov-islamic .ci-bottom { bottom: 0; border-top-width: 4px; }
.edoc .cov-islamic .ci-med { position: absolute; top: 330px; left: 247px; width: 300px; height: 300px; opacity: .45; z-index: 1; }
.edoc .cov-islamic { padding-top: 96px; padding-bottom: 92px; }

/* البسيط */
.edoc .cov-minimal { padding: 70px 76px 60px; }
.edoc .cov-minimal:not(.is-tpl):before { content: ''; position: absolute; top: 34px; left: 34px; right: 34px; bottom: 34px; border: 1px solid var(--line); }
.edoc .cov-minimal .cov-badge { background: transparent; color: var(--p); border-color: var(--p); }
.edoc .cov-minimal .cov-card { border-width: 0; border-top: 2px solid var(--a); border-bottom: 2px solid var(--a); border-radius: 0; box-shadow: none; background: transparent; }

/* ---------- زخارف الصفحات الداخلية ---------- */
.edoc .dc { position: absolute; z-index: 1; }
.edoc .dc-c1 { top: 8px; right: 8px; width: 90px; height: 90px; transform: scaleX(-1); }
.edoc .dc-c2 { bottom: 8px; left: 8px; width: 90px; height: 90px; transform: scaleY(-1); }
.edoc .dc-g1 { top: -60px; left: -60px; width: 220px; height: 220px; opacity: .55; transform: scaleX(-1); }
.edoc .dc-g2 { bottom: -70px; right: -70px; width: 200px; height: 200px; opacity: .45; transform: rotate(180deg); }
.edoc .dc-stripe { top: 0; left: 0; width: 794px; height: 9px; }
.edoc .dc-doodle { top: 16px; left: 50%; margin-left: -34px; width: 68px; height: 68px; opacity: .35; }
.edoc .dc-band { left: 0; right: 0; height: 18px; background-size: 30px 30px; }
.edoc .dc-band-t { top: 0; } .edoc .dc-band-b { bottom: 0; }
.edoc .dc-wave { top: 0; left: 0; width: 794px; height: 64px; }
.edoc .decor-waves .pg-in { padding-top: 78px; }
.edoc .decor-islamic .pg-in { padding-top: 40px; }
.edoc .decor-pencils .pg-in { padding-top: 34px; }

/* ---------- ترويسة داخلية ---------- */
.edoc .ih { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--a); margin-bottom: 16px; }
.edoc .decor-waves .ih { border-bottom-color: var(--line); }
.edoc .ih-s { display: flex; align-items: center; gap: 10px; }
.edoc .ih-logo { height: 40px; width: auto; }
.edoc .ih-t { display: flex; flex-direction: column; line-height: 1.35; }
.edoc .ih-t b { font-size: 13px; color: var(--pd); font-weight: 900; }
.edoc .ih-t span { font-size: 10.5px; color: var(--ad); font-weight: 700; }
.edoc .ih-badge { background: var(--p); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 16px; border-radius: 20px; border: 1.5px solid var(--a); }

.edoc .sec-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.edoc .sec-num { min-width: 46px; height: 46px; border-radius: 12px; background: var(--p); color: #fff; font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center; border-bottom: 4px solid var(--a); }
.edoc .sec-dot { width: 12px; height: 34px; border-radius: 6px; background: var(--a); }
.edoc .sec-head h2 { font-size: 21px; font-weight: 900; color: var(--pd); line-height: 1.35; }
.edoc .sec-sub { font-size: 12.5px; font-weight: 700; color: var(--ad); }

.edoc .info-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 11.5px; margin-bottom: 12px; }
.edoc .info-strip b { color: var(--p); }

.edoc .two-boxes { display: flex; gap: 12px; margin-bottom: 12px; }
.edoc .box { flex: 3; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 12px; line-height: 1.75; }
.edoc .box-alt { flex: 2; background: var(--cream); border-color: var(--a); }
.edoc .box-h { font-size: 12.5px; font-weight: 900; color: var(--p); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.edoc .bi { width: 9px; height: 9px; border-radius: 3px; background: var(--a); display: inline-block; }
.edoc .box ol { padding-inline-start: 18px; }
.edoc .box li { margin-bottom: 3px; }

.edoc .ev-h { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: 13px; font-weight: 900; color: var(--pd); }
.edoc .ev-h:after { content: ''; flex: 1; height: 1.5px; background: var(--line); }

/* ---------- البراويز ---------- */
.edoc .ph-grid { display: grid; gap: 14px; margin-bottom: 8px; }
.edoc .ph { position: relative; margin: 0; }
.edoc .ph-img { width: 100%; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; }
.edoc .ph figcaption { font-size: 10.5px; font-weight: 700; color: var(--ink); text-align: center; padding-top: 5px; line-height: 1.4; }
.edoc .ph-gold { padding: 7px; background: #fff; border: 3px double var(--a); outline: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.edoc .ph-polaroid { padding: 9px 9px 6px; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.14); border: 1px solid #eee; }
.edoc .ph-polaroid figcaption { font-size: 11px; padding-top: 7px; min-height: 22px; }
.edoc .ph-shadow { border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.16); background: #fff; }
.edoc .ph-shadow .ph-img { border-radius: 14px; }
.edoc .ph-shadow figcaption { padding: 5px 8px 7px; }
.edoc .ph-corners { padding: 8px; background: #fff; }
.edoc .ph-corners .pc { position: absolute; width: 26px; height: 26px; border-color: var(--p); border-style: solid; border-width: 0; }
.edoc .ph-corners .pc1 { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; }
.edoc .ph-corners .pc2 { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-color: var(--a); }
.edoc .ph-corners .pc3 { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-color: var(--a); }
.edoc .ph-corners .pc4 { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; }
.edoc .ph-none .ph-img { background-color: transparent; }

/* ---------- التوقيعات ---------- */
.edoc .sign-row { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.edoc .sg { flex: 1; text-align: center; }
.edoc .sg-t { font-size: 11.5px; font-weight: 900; color: var(--p); }
.edoc .sg-v { height: 46px; display: flex; align-items: center; justify-content: center; }
.edoc .sg-v img { max-height: 44px; max-width: 130px; }
.edoc .sg-stamp .sg-v { height: 58px; }
.edoc .sg-stamp .sg-v img { max-height: 58px; max-width: 58px; opacity: .9; }
.edoc .sg-line { display: block; width: 110px; border-bottom: 1.5px dotted var(--ad); height: 30px; }
.edoc .sg-circle { display: block; width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--line); }
.edoc .sg-n { font-size: 10.5px; font-weight: 700; color: var(--ink); min-height: 16px; }

/* ---------- الجداول ---------- */
.edoc .dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.edoc .dt th { background: var(--p); color: #fff; font-weight: 800; padding: 9px 8px; text-align: center; border-bottom: 3px solid var(--a); }
.edoc .dt td { padding: 8px; border-bottom: 1px solid #f0ece2; text-align: center; vertical-align: middle; }
.edoc .dt tr:last-child td { border-bottom: none; }
.edoc .dt tbody tr:nth-child(even) td { background: #fbfaf6; }
.edoc .dt-toc td:nth-child(2), .edoc .dt-courses td:nth-child(2) { text-align: var(--ta); }
.edoc .dt-toc td { padding: 9px 8px; font-size: 12px; }
.edoc .dt-schedule td { height: 58px; font-size: 11px; font-weight: 700; }
.edoc .dt-schedule td:first-child { background: var(--cream) !important; color: var(--pd); }
.edoc .dt-waiting td:last-child { text-align: var(--ta); }
.edoc .st { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 10.5px; font-weight: 800; }
.edoc .st-done { background: #DCF5E6; color: #146C3A; }
.edoc .st-skipped { background: #EEF0F3; color: #5B6472; }
.edoc .st-pending { background: #FDF0DA; color: #8A5A0B; }
.edoc .total-pill { align-self: flex-start; background: var(--pd); color: #fff; font-weight: 800; font-size: 12px; padding: 7px 18px; border-radius: 20px; border-inline-start: 5px solid var(--a); margin-bottom: 12px; }

/* ---------- الإحصاءات والسيرة ---------- */
.edoc .cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.edoc .cv-f { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; display: flex; flex-direction: column; border-inline-start: 4px solid var(--a); }
.edoc .cv-f .k { font-size: 10.5px; font-weight: 800; color: var(--ad); }
.edoc .cv-f .v { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.edoc .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.edoc .stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-align: center; }
.edoc .stat-hl { background: var(--p); border-color: var(--p); }
.edoc .stat-hl .stat-v, .edoc .stat-hl .stat-k { color: #fff; }
.edoc .stat-v { font-size: 26px; font-weight: 900; color: var(--pd); line-height: 1.2; }
.edoc .stat-v small { font-size: 14px; color: var(--ad); }
.edoc .stat-k { font-size: 11px; font-weight: 800; color: var(--ad); }
.edoc .bar { height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.edoc .bar span { display: block; height: 100%; background: var(--a); }
.edoc .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.edoc .chips span { background: #fff; border: 1px solid var(--a); color: var(--pd); font-size: 11.5px; font-weight: 800; padding: 5px 14px; border-radius: 20px; }

/* ---------- الإقرار ---------- */
.edoc .decl { position: relative; background: #fff; border: 2px solid var(--a); border-radius: 16px; padding: 44px 30px 24px; margin: 34px 0 22px; }
.edoc .decl p { font-size: 15px; line-height: 2.2; font-weight: 700; text-align: justify; }
.edoc .decl-seal { width: 60px; height: auto; position: absolute; top: -34px; left: 50%; margin-left: -30px; }
.edoc .decl-signs { display: flex; gap: 16px; margin-bottom: 20px; }
.edoc .ds { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.edoc .ds-h { font-size: 14px; font-weight: 900; color: var(--p); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--a); }
.edoc .ds-r { display: flex; align-items: center; gap: 8px; min-height: 42px; font-size: 12.5px; }
.edoc .ds-r span { font-weight: 800; color: var(--ad); white-space: nowrap; }
.edoc .ds-r img { max-height: 40px; max-width: 150px; }
.edoc .ds-r .ds-stamp { max-height: 60px; max-width: 60px; }
.edoc .dl { flex: 1; border-bottom: 1.5px dotted var(--ad); height: 26px; display: block; }
.edoc .notes-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.edoc .nl { display: block; border-bottom: 1.5px dotted var(--line); height: 34px; }
.edoc .decl-laurel { width: 120px; margin: auto auto 6px; }

/* ---------- التذييل والعلامة المائية ---------- */
.edoc .pg-foot { position: relative; z-index: 3; display: flex; justify-content: space-between; margin: 0 44px 22px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; color: var(--ad); }
.edoc .decor-islamic .pg-foot { margin-bottom: 30px; }
.edoc .pg-num { background: var(--p); color: #fff; padding: 1px 12px; border-radius: 10px; }
.edoc .tpl-foot { position: absolute; bottom: 0; left: 0; width: 794px; height: auto; z-index: 1; }
.edoc .wm { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; overflow: hidden; }
.edoc .wm span { width: 33%; text-align: center; transform: rotate(-30deg); font-family: Arial, sans-serif; font-size: 18px; font-weight: 900; color: rgba(190, 30, 30, .2); padding: 34px 0; white-space: nowrap; }

.edoc.font-amiri .cov-title h1, .edoc.font-amiri .sec-head h2 { font-weight: 700; }

/* ---------- الأغلفة الإضافية ---------- */
/* القوس */
.edoc .cov-arch .ca-arch { width: 560px; height: 560px; margin: 26px auto 0; background-size: 100% 100%; display: flex; align-items: flex-end; padding: 0 40px 50px; position: relative; z-index: 2; }
.edoc .cov-arch .ca-arch .cov-title { margin: 0; }
.edoc .cov-arch .ca-arch .cov-title h1, .edoc .cov-arch .ca-arch .cov-year { color: #fff; }
.edoc .cov-arch .ca-arch .cov-sub { color: var(--a); }
.edoc .cov-arch .ca-arch .cov-badge { background: var(--a); color: var(--pd); border-color: #fff; }
.edoc .cov-arch .cov-card { margin-top: -30px; }
/* المنقسم */
.edoc .cov-split { flex-direction: row; padding: 0; align-items: stretch; }
.edoc .cov-split .cs-panel { width: 250px; background-color: var(--pd); background-size: 60px 60px; position: relative; border-inline-end: 6px solid var(--a); }
.edoc .cov-split .cs-in { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 22px; text-align: center; }
.edoc .cov-split .cs-in .gov { text-align: center; font-size: 13px; }
.edoc .cov-split .cs-in .cov-logos img { background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.edoc .cov-split .cs-seal { width: 80px; height: auto; }
.edoc .cov-split .cs-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 70px 40px 48px; }
.edoc .cov-split .cov-title h1 { font-size: 44px; }
.edoc .cov-split .cov-card { width: 100%; }
/* القُطري */
.edoc .cov-diagonal { padding: 0 0 48px; }
.edoc .cov-diagonal .cd-bg { position: absolute; top: 0; left: 0; width: 794px; height: 470px; }
.edoc .cov-diagonal .cd-head { width: 100%; padding: 50px 64px 0; display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 3; }
.edoc .cov-diagonal .cd-head .cov-logos img { background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.edoc .cov-diagonal .cov-title { margin: 330px 0 22px; padding: 0 60px; }
.edoc .cov-diagonal .cov-card { margin-bottom: 0; }
/* الأغصان */
.edoc .cov-botanical .cb-a { position: absolute; top: -10px; left: -10px; width: 300px; height: 300px; transform: scaleX(-1) rotate(90deg); opacity: .9; }
.edoc .cov-botanical .cb-b { position: absolute; bottom: -10px; right: -10px; width: 300px; height: 300px; transform: rotate(180deg) scaleX(-1) rotate(90deg); opacity: .9; }
.edoc .cov-botanical .cov-card { border-radius: 30px 4px 30px 4px; }
.edoc .cov-botanical .cov-badge { border-radius: 4px 18px 4px 18px; }
/* الشهادة */
.edoc .cov-certificate { padding: 84px 90px 70px; }
.edoc .cov-certificate .cc-border { position: absolute; top: 22px; left: 22px; right: 22px; bottom: 22px; background-size: 40px 40px; border: 3px solid var(--a); }
.edoc .cov-certificate .cc-inner { position: absolute; top: 58px; left: 58px; right: 58px; bottom: 58px; background: var(--cream); border: 2px solid var(--p); outline: 1px solid var(--a); outline-offset: 5px; }
.edoc .cov-certificate .cr-seal { width: 84px; height: auto; margin: 18px auto 0; position: relative; z-index: 3; }
.edoc .cov-certificate .cov-title { margin-top: 12px; }
.edoc .cov-certificate .cov-card { box-shadow: none; }

/* ---------- رمز QR على الغلاف ---------- */
.edoc .cov-qr { position: absolute; bottom: 44px; left: 48px; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; padding: 7px 7px 5px; border-radius: 10px; border: 1.5px solid var(--a); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.edoc .cov-qr img { width: 96px; height: 96px; image-rendering: pixelated; }
.edoc .cov-qr span { font-size: 8.5px; font-weight: 800; color: var(--pd); max-width: 90px; text-align: center; line-height: 1.3; }
.edoc.lang-en .cov-qr { left: auto; right: 48px; }
.edoc .cov-pencils .cov-qr { bottom: 205px; }
.edoc .cov-waves .cov-qr { bottom: 128px; }
.edoc .cov-islamic .cov-qr { bottom: 96px; }
.edoc .cov-certificate .cov-qr { bottom: 78px; left: 80px; }
.edoc.lang-en .cov-certificate .cov-qr { left: auto; right: 80px; }
.edoc .cov-royal .cov-qr { bottom: 52px; left: 56px; }

/* ---------- الاعتماد الإلكتروني ---------- */
.edoc .ok-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; background: #DCF5E6; color: #146C3A; padding: 1px 8px; border-radius: 10px; vertical-align: middle; }
.edoc .appr-line { background: #F0FAF4; border: 1px solid #BFE6CF; color: #146C3A; border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 800; margin-bottom: 10px; }


/* ---------- توزيع الصور الذكي ---------- */
.edoc .ph-flow { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 2px 0 10px; }
.edoc .ph-row { display: flex; justify-content: center; align-items: flex-start; gap: 14px; }
.edoc .ph-flow .ph-img { background-size: cover; }
.edoc .ph { flex-shrink: 0; }
.edoc .ph figcaption { margin: 0 auto; }

/* براويز إضافية */
.edoc .ph-round { padding: 7px; background: #fff; border: 3px solid var(--p); border-radius: 18px; }
.edoc .ph-round .ph-img { border-radius: 11px; }
.edoc .ph-double { padding: 6px; background: #fff; border: 5px double var(--p); }
.edoc .ph-tape { padding: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); position: relative; }
.edoc .ph-tape .tp { position: absolute; top: -9px; width: 64px; height: 20px; background: var(--a); opacity: .75; }
.edoc .ph-tape .tp1 { right: 14px; transform: rotate(6deg); }
.edoc .ph-tape .tp2 { left: 14px; transform: rotate(-6deg); background: var(--p); opacity: .55; }
.edoc .ph-stack { padding: 8px; background: #fff; border: 1px solid var(--line); position: relative; box-shadow: 6px 6px 0 var(--line), 12px 12px 0 rgba(0,0,0,.05); }
.edoc .ph-film { padding: 20px 8px; background: #1E1E1E; position: relative; }
.edoc .ph-film:before, .edoc .ph-film:after { content: ''; position: absolute; left: 10px; right: 10px; height: 0; border-top: 5px dotted #fff; opacity: .85; }
.edoc .ph-film:before { top: 7px; } .edoc .ph-film:after { bottom: 7px; }
.edoc .ph-film figcaption { color: #fff; position: absolute; bottom: -2px; left: 0; right: 0; font-size: 9px; }
.edoc .ph-dashed { padding: 7px; background: #fff; border: 2px dashed var(--a); border-radius: 10px; }
.edoc .ph-arch { padding: 7px; background: #fff; border: 2px solid var(--a); border-radius: 120px 120px 8px 8px; }
.edoc .ph-arch .ph-img { border-radius: 114px 114px 4px 4px; }
.edoc .ph-soft { padding: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; box-shadow: inset 0 0 0 1px #fff; }
.edoc .ph-label { padding: 5px; background: var(--p); border-radius: 10px; }
.edoc .ph-label .ph-img { border-radius: 6px; }
.edoc .ph-label figcaption { color: #fff; font-weight: 800; padding: 6px 4px 3px; min-height: 26px; }
.edoc .ph-tilt { padding: 8px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); transform: rotate(-1.5deg); }
.edoc .ph-row .ph-tilt:nth-child(even) { transform: rotate(1.5deg); }

/* ---------- أغلفة إضافية (7) ---------- */
.edoc .cov-ribbon .crb-bg { position: absolute; top: 150px; left: 0; width: 794px; height: 300px; opacity: .95; }
.edoc .cov-ribbon .cov-title { margin-top: 300px; }
.edoc .cov-goldframe .cgf-1 { position: absolute; top: 16px; left: 16px; right: 16px; bottom: 16px; border: 10px solid var(--a); }
.edoc .cov-goldframe .cgf-2 { position: absolute; top: 34px; left: 34px; right: 34px; bottom: 34px; border: 2px solid var(--p); }
.edoc .cov-goldframe .cgf-3 { position: absolute; top: 42px; left: 42px; right: 42px; bottom: 42px; border: 1px dotted var(--a); }
.edoc .cov-goldframe { padding: 70px 80px 60px; }
.edoc .cov-goldframe .cr-seal { width: 84px; height: auto; margin: 16px auto 0; position: relative; z-index: 3; }
.edoc .cov-stripes .cst-bars { position: absolute; top: 0; bottom: 0; right: 0; display: flex; }
.edoc.lang-en .cov-stripes .cst-bars { right: auto; left: 0; }
.edoc .cov-stripes .cst-bars i { width: 26px; background: var(--p); }
.edoc .cov-stripes .cst-bars i:nth-child(2) { width: 10px; background: var(--a); }
.edoc .cov-stripes .cst-bars i:nth-child(3) { width: 16px; background: var(--pd); }
.edoc .cov-stripes .cst-bars i:nth-child(4) { width: 5px; background: var(--a); opacity: .6; }
.edoc .cov-stripes { padding-right: 130px; padding-left: 60px; }
.edoc.lang-en .cov-stripes { padding-left: 130px; padding-right: 60px; }
.edoc .cov-stripes .cov-title { text-align: var(--ta); }
.edoc .cov-stripes .cov-divider { justify-content: flex-start; }
.edoc .cov-stripes .cov-card { width: 100%; }
.edoc .cov-circle .cci { width: 500px; height: 500px; border-radius: 50%; background: var(--p); border: 10px solid var(--a); box-shadow: 0 0 0 14px var(--cream), 0 0 0 16px var(--line); margin: 30px auto 0; display: flex; align-items: center; justify-content: center; padding: 50px; position: relative; z-index: 2; }
.edoc .cov-circle .cci .cov-title { margin: 0; }
.edoc .cov-circle .cci h1 { color: #fff; font-size: 42px; }
.edoc .cov-circle .cci .cov-sub { color: var(--a); }
.edoc .cov-circle .cci .cov-year { color: #fff; }
.edoc .cov-circle .cci .cov-badge { background: var(--a); color: var(--pd); border-color: #fff; }
.edoc .cov-circle .cov-card { margin-top: -20px; }
.edoc .cov-confetti .ccf-a { position: absolute; top: -20px; left: -20px; width: 340px; height: 340px; }
.edoc .cov-confetti .ccf-b { position: absolute; bottom: -30px; right: -30px; width: 320px; height: 320px; transform: rotate(180deg); }
.edoc .cov-confetti .ccf-s { position: absolute; top: 180px; right: 40px; width: 160px; height: 160px; }
.edoc .cov-confetti .cov-card { border-radius: 24px; border-style: dashed; border-width: 3px; }
.edoc .cov-band .cbd { width: 794px; margin: 50px -70px 30px; background: var(--p); padding: 34px 60px; position: relative; z-index: 2; border-top: 8px solid var(--a); border-bottom: 8px solid var(--a); }
.edoc .cov-band .cbd .cov-title { margin: 0; }
.edoc .cov-band .cbd h1, .edoc .cov-band .cbd .cov-year { color: #fff; }
.edoc .cov-band .cbd .cov-sub { color: var(--a); }
.edoc .cov-band .cbd .cov-badge { background: var(--a); color: var(--pd); border-color: #fff; }
.edoc .cov-triangles .ctr-a { position: absolute; top: 0; left: 0; width: 280px; height: 280px; }
.edoc .cov-triangles .ctr-b { position: absolute; bottom: 0; right: 0; width: 280px; height: 280px; transform: rotate(180deg); }
.edoc .cov-triangles .cov-title { margin-top: 120px; }

/* ---------- زخارف داخلية إضافية (9) ---------- */
.edoc .dc-frame1 { top: 14px; left: 14px; right: 14px; bottom: 14px; border: 2px solid var(--a); }
.edoc .dc-frame2 { top: 20px; left: 20px; right: 20px; bottom: 20px; border: 1px solid var(--p); opacity: .6; }
.edoc .dc-conf1 { top: -40px; left: -40px; width: 180px; height: 180px; opacity: .5; }
.edoc .dc-conf2 { bottom: -50px; right: -50px; width: 170px; height: 170px; opacity: .45; transform: rotate(180deg); }
.edoc .dc-leaf1 { top: -20px; left: -20px; width: 150px; height: 150px; opacity: .55; transform: scaleX(-1) rotate(90deg); }
.edoc .dc-leaf2 { bottom: -20px; right: -20px; width: 130px; height: 130px; opacity: .45; transform: rotate(180deg) scaleX(-1) rotate(90deg); }
.edoc .dc-side { top: 0; bottom: 0; right: 0; width: 14px; background: var(--p); border-left: 4px solid var(--a); }
.edoc.lang-en .dc-side { right: auto; left: 0; border-left: none; border-right: 4px solid var(--a); }
.edoc .dc-star1 { top: 10px; left: 10px; width: 96px; height: 96px; opacity: .6; }
.edoc .dc-star2 { bottom: 40px; right: 10px; width: 80px; height: 80px; opacity: .45; }
.edoc .dc-ln1 { top: 18px; left: 44px; right: 44px; height: 6px; border-top: 3px solid var(--p); border-bottom: 1px solid var(--a); }
.edoc .dc-ln2 { bottom: 16px; left: 44px; right: 44px; height: 6px; border-bottom: 3px solid var(--p); border-top: 1px solid var(--a); }
.edoc .dc-archh { top: 0; left: 0; width: 794px; height: 70px; }
.edoc .decor-archhead .pg-in { padding-top: 76px; }
.edoc .dc-tri1 { top: 0; left: 0; width: 120px; height: 120px; opacity: .85; }
.edoc .dc-tri2 { bottom: 0; right: 0; width: 110px; height: 110px; transform: rotate(180deg); opacity: .8; }
.edoc .decor-sideband .pg-in { padding-right: 56px; }
.edoc.lang-en .decor-sideband .pg-in { padding-right: 44px; padding-left: 56px; }
.edoc .decor-frame .pg-in, .edoc .decor-lines .pg-in { padding-top: 44px; }

/* ---------- مصغّرات الخيارات ---------- */
.edoc .thumb-lines { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 20px; }
.edoc .thumb-lines i { display: block; height: 16px; border-radius: 8px; background: var(--line); }
.edoc .thumb-lines i.s { width: 60%; }
.edoc .frame-thumb { display: flex; align-items: center; justify-content: center; width: 260px; height: 200px; background: var(--cream); }

/* تنسيقات عنوان الغلاف */
.edoc .cov-title h1.ts-sm { font-size: 38px; }
.edoc .cov-title h1.ts-lg { font-size: 58px; }
.edoc .cov-title h1.ts-xl { font-size: 66px; }
.edoc .cov-title h1.ts-long { font-size: 36px; }
.edoc .cov-title h1.tc-gold { color: var(--ad); }
.edoc .cov-title h1.tc-dark { color: #1E1A14; }
.edoc .cov-title h1.tc-accent { color: var(--a); }
.edoc .cov-title h1.tt-normal { font-weight: 500; }
.edoc .cov-title h1.tt-outline { display: table; margin: 0 auto; padding-bottom: 6px; border-bottom: 4px solid var(--a); }
.edoc .cov-sub { overflow-wrap: anywhere; }

/* صفحة من مستند PDF معزول: الصفحة في المنتصف بأكبر حجم ممكن */
.edoc .doc-solo { flex: 1; display: flex; align-items: center; justify-content: center; }
.edoc .doc-solo .ph-flow { width: 100%; }

/* شريط النسخة المجانية (مكتبة الملفات المجانية) */
.edoc .pg-promo { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 6; max-width: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--pd, #004232); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 14px; border-radius: 10px; border: 1.5px solid var(--a, #C9A227); }

.edoc .cov-qr.plain { padding: 5px; border-width: 1px; border-color: rgba(0,0,0,.12); box-shadow: none; gap: 0; }
.edoc .cov-qr.plain img { width: 70px; height: 70px; }

/* ---------- 4.15: غلافان جديدان وبرواز جديد ---------- */
.edoc .cov-crest { padding: 0 70px 50px; }
.edoc .cov-crest .cx-band { margin: 0 -70px; padding: 40px 70px 34px; background: linear-gradient(135deg, var(--pd), var(--p)); display: flex; justify-content: space-between; align-items: center; color: #fff; }
.edoc .cov-crest .cx-stripe { height: 10px; margin: 0 -70px 70px; background: linear-gradient(90deg, var(--a), var(--ad), var(--a)); }
.edoc .cov-goldcorners { padding: 64px 76px 56px; }
.edoc .cov-goldcorners .gc { position: absolute; width: 120px; height: 120px; border: 0 solid var(--a); }
.edoc .cov-goldcorners .gc1 { top: 30px; right: 30px; border-top-width: 6px; border-right-width: 6px; }
.edoc .cov-goldcorners .gc2 { top: 30px; left: 30px; border-top-width: 6px; border-left-width: 6px; }
.edoc .cov-goldcorners .gc3 { bottom: 30px; right: 30px; border-bottom-width: 6px; border-right-width: 6px; }
.edoc .cov-goldcorners .gc4 { bottom: 30px; left: 30px; border-bottom-width: 6px; border-left-width: 6px; }
.edoc .cov-goldcorners .gc-med { display: block; width: 96px; height: 96px; margin: 26px auto 6px; }
.edoc .ph-ribbon { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.10); border-top: 7px solid var(--p); }
.edoc .ph-ribbon figcaption { background: var(--cream); padding: 5px 8px 6px; border-top: 2px solid var(--a); }
/* صفحة البسملة */
.edoc .bsm { flex: 1; display: flex; align-items: center; justify-content: center; }
.edoc .bsm-ring { position: relative; width: 470px; height: 470px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, var(--cream) 0 58%, transparent 59%); }
.edoc .bsm-orn { position: absolute; inset: 0; width: 100%; height: 100%; }
.edoc .bsm-t { font-family: 'Amiri', 'Traditional Arabic', serif; font-weight: 700; font-size: 46px; line-height: 1.6; color: var(--pd); text-align: center; max-width: 330px; }
