/* =====================================================================
   ZAAD ACADEMY — Student Records (portal pages + printed documents)
   ===================================================================== */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.fld.with-btn { position: relative; }
.fld.with-btn .btn { position: absolute; inset-inline-end: 6px; bottom: 6px; }
.btn.xs { padding: 4px 9px; font-size: .74rem; border-radius: 8px; }
.warn-txt { color: #9a7b3c; font-size: .76rem; }
.rs-modal .za-modal, .za-modal.rs-modal { max-width: 1100px; }

/* filters & search */
.rc-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.rc-filters select { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; max-width: 280px; }
.rc-filters .chk { padding: 4px 8px; margin: 0; }
.rs-search { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--gold-200); border-radius: 18px; padding: 8px 10px 8px 18px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.rs-search > i { color: var(--gold-700); font-size: 1.15rem; }
.rs-search input { flex: 1; border: 0; outline: 0; font-size: 1.05rem; padding: 10px 4px; background: transparent; min-width: 120px; }
.rs-who { display: flex; align-items: center; gap: 10px; }
.rs-who small { display: block; color: var(--muted); }
.rs-av { width: 38px; height: 38px; border-radius: 50%; background: var(--royal-grad); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; overflow: hidden; }
.rs-av img { width: 100%; height: 100%; object-fit: cover; }
.rs-av.lg { width: 76px; height: 76px; font-size: 1.5rem; border: 3px solid var(--gold-200); }
.rs-warn { color: #9a7b3c; }
.rs-tbl tbody tr { cursor: pointer; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rs-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; padding: 3px 9px; border-radius: 99px; background: #f3f5fa; border: 1px solid var(--line); white-space: nowrap; }
.rs-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rs-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); white-space: nowrap; }
.rs-pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 14px 0 4px; }
.rs-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--blue-950); color: #fff; margin-bottom: 14px; position: sticky; top: 8px; z-index: 5; }
.rs-bulkbar select, .rs-bulkbar input { border-radius: 8px; border: 0; padding: 6px 10px; }
.rs-bulkbar input { width: 70px; }
.rs-bulkbar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.bb-att { display: inline-flex; gap: 6px; align-items: center; }
.rs-dept { margin: 22px 0 10px; color: var(--blue-900); font-size: 1.02rem; display: flex; gap: 8px; align-items: center; }
.rs-dept i { color: var(--gold-700); }
.rs-pcard, .rs-bcard { cursor: pointer; transition: .2s; }
.rs-pcard:hover, .rs-bcard:hover { transform: translateY(-3px); border-color: var(--gold); }
.rs-mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; font-size: .78rem; font-weight: 700; }
.rs-mini span { display: inline-flex; gap: 4px; align-items: center; }
.rs-mini i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.rs-mini.big { font-size: .9rem; margin: 6px 0 16px; }
.rs-phead { background: var(--royal-grad); color: #fff; border-radius: 18px; padding: 18px 22px; margin-bottom: 18px; }
.rs-phead h2 { margin: 0; font-size: 1.3rem; }
.rs-phead p { margin: 4px 0 0; opacity: .85; font-size: .88rem; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* student file */
.rsf-head { padding-inline-end: 46px !important; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 6px 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rsf-id { flex: 1; min-width: 220px; }
.rsf-id h2 { margin: 0; color: var(--blue-950); font-size: 1.35rem; }
.rsf-id p { margin: 2px 0; color: var(--muted); }
.rsf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rsf-tags span { background: var(--gold-50); border: 1px solid var(--gold-200); border-radius: 8px; padding: 2px 9px; font-size: .78rem; }
.rsf-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rsf-tabs { margin-bottom: 14px; }
.rsf-tabs small { background: var(--gold-200); color: var(--blue-900); border-radius: 99px; padding: 0 7px; }
.rsf-sec h4 { margin: 14px 0 8px; color: var(--blue-900); display: flex; gap: 8px; align-items: center; }
.rsf-sec h4 i { color: var(--gold-700); }
.rsf-dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; margin: 0; font-size: .88rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rsf-dl dt, .rsf-dl dd { padding: 7px 12px; margin: 0; border-bottom: 1px solid #edf0f6; }
.rsf-dl dt { background: #f7f8fc; color: var(--muted); font-weight: 600; }
.rsf-dl dd { word-break: break-word; }
.rsf-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.rs-ecard { border: 1px solid var(--line); border-inline-start: 5px solid var(--c); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.rs-ecard header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.rs-ecard h4 { margin: 0; color: var(--blue-950); }
.rs-ecard header small { color: var(--muted); }
.rs-ecard footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.rs-ecard .rsf-dl { grid-template-columns: repeat(2, minmax(110px, 25%) 1fr); }
@media (max-width: 700px) { .rs-ecard .rsf-dl { grid-template-columns: minmax(110px, 38%) 1fr; } }
.rs-review { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #faf5eb; border: 1px solid #ddc89e; color: #634a17; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: .84rem; }
.rs-review > div { flex: 1; min-width: 200px; }
.rs-pay { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: .82rem; }
.rs-pay .pm { display: inline-flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; min-width: 52px; }
.rs-pay .pm small { color: var(--muted); font-size: .68rem; }
.rs-pay .pm.tot { background: var(--blue-950); color: #fff; border-color: var(--blue-950); }
.rs-pay .pm.tot small { color: var(--gold-200); }
.rs-subj { margin-top: 8px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-subj span { background: #f3f5fa; border-radius: 6px; padding: 2px 8px; }
.rs-hist { list-style: none; padding: 0; margin: 0; }
.rs-hist li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; font-size: .88rem; }
.rs-hist li i { color: var(--gold-700); }
.rs-hist small { color: var(--muted); margin-inline-start: auto; }
.rs-photo-row { display: flex; align-items: center; gap: 14px; }
.rs-paygrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rs-paygrid label { display: flex; flex-direction: column; font-size: .78rem; gap: 2px; }
.rs-paygrid input { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 100%; }
@media (max-width: 640px) { .rs-paygrid { grid-template-columns: repeat(3, 1fr); } }
.rs-modtbl input, .rs-modtbl select { border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; width: 100%; min-width: 60px; font-size: .84rem; }
.rs-modtbl td { padding: 6px; }
.gr-row { display: flex; gap: 6px; } .gr-row input { width: 50%; }

/* charts */
.rc-kpis .stat b { font-size: 1.5rem; }
.rc-svg { width: 100%; height: auto; display: block; direction: ltr; }
.rc-svg .gl { stroke: #e9ecf3; stroke-width: 1; }
.rc-svg .ax, .rc-svg .lb { font-size: 11px; fill: #677388; font-family: Inter, Faruma, sans-serif; }
.rc-svg .val { font-size: 11px; fill: #192235; font-weight: 700; font-family: Inter, sans-serif; }
.rc-svg .dn-big { font-size: 26px; font-weight: 800; fill: #081a44; font-family: Inter, sans-serif; }
.rc-svg .dn-sm { font-size: 11px; fill: #677388; font-family: Inter, Faruma, sans-serif; }
.rc-svg [data-tip] { cursor: pointer; }
.rc-svg g[data-tip]:hover path, .rc-svg path[data-tip]:hover { opacity: .82; }
.rc-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rc-donut svg { width: 190px; flex: none; }
.rc-donut ul { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 160px; font-size: .86rem; }
.rc-donut li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.rc-donut li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.rc-donut li b { margin-inline-start: auto; }
.rc-donut li small { color: var(--muted); width: 38px; text-align: end; }
.rc-hb { display: flex; flex-direction: column; gap: 6px; }
.hb-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 54px; gap: 10px; align-items: center; font-size: .82rem; cursor: default; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-t { background: #f1f3f8; border-radius: 4px; height: 14px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
[dir="rtl"] .hb-t i, body.is-dv .hb-t i { border-radius: 4px 0 0 4px; }
.hb-v { text-align: end; color: var(--ink); }
.hb-row:hover .hb-t i { filter: brightness(.92); }
.rc-tbl { margin-top: 10px; font-size: .84rem; }
.rc-tbl summary { cursor: pointer; color: var(--blue-700); font-weight: 600; }
.rc-tip { position: fixed; z-index: 99999; pointer-events: none; background: #081a44; color: #fff; padding: 7px 11px; border-radius: 9px; font-size: .8rem; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .12s; max-width: 280px; }
.rc-tip.on { opacity: 1; }

/* documents page */
.rd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.rd-tile { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.rd-tile i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: none; }
.rd-tile:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-2px); }
.rd-tile.on { border-color: var(--blue-900); background: var(--blue-950); color: #fff; }
.rd-tile.on i { background: var(--gold-200); color: var(--blue-950); }
.rd-tile:disabled { opacity: .45; cursor: not-allowed; }
.rd-cols { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.rd-cols .chk { padding: 2px; }
.rd-bar { margin-top: 22px; position: sticky; top: 0; background: var(--ivory); z-index: 4; padding: 10px 0; }
.rd-bar b { flex: 1; }
.doc-preview { background: #e8ebf2; padding: 18px; border-radius: 16px; overflow: auto; max-height: 78vh; }
.doc-preview .doc-page { margin: 0 auto 18px; box-shadow: 0 6px 26px rgba(8, 26, 68, .18); }
.ad-steps { line-height: 1.9; }
.ad-bar { height: 12px; border-radius: 99px; background: #eef1f7; overflow: hidden; margin-top: 12px; }
.ad-bar i { display: block; height: 100%; background: var(--royal-grad); transition: width .2s; }
.alert.ok { background: #e9f7ef; color: #14532d; border: 1px solid #b7e2c6; padding: 12px 16px; border-radius: 12px; }
.mk-tbl input.mk { width: 70px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; text-align: center; }
.mk-tbl input.mk:focus { border-color: var(--gold); outline: 0; }

/* connected apps (AIMS / CourseCraft) */
.pg.pg-app { padding: 0 !important; display: flex; flex-direction: column; height: calc(100vh - 64px); }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-bar b { flex: 1; color: var(--blue-900); }
.app-frame { flex: 1; width: 100%; border: 0; background: #fff; min-height: 70vh; }

/* =====================================================================
   PRINTED DOCUMENTS (A4)
   ===================================================================== */
.doc-page { width: 210mm; min-height: 297mm; background: #fff; color: #111; padding: 14mm 16mm 18mm; position: relative; font-family: Faruma, "MV Faseyha", Inter, sans-serif; font-size: 13.5px; line-height: 1.75; -webkit-user-select: text; user-select: text; }
.doc-page[dir="ltr"] { font-family: Inter, Faruma, sans-serif; font-size: 12.5px; line-height: 1.5; }
.doc-page.land { width: 297mm; min-height: 210mm; }
.doc-page .lh { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px; border-bottom: 3px solid #0a2a6b; box-shadow: 0 3px 0 #fff, 0 5px 0 #0d6b3c, 0 7px 0 #fff, 0 8px 0 #ac8c4b; padding-bottom: 8px; margin-bottom: 18px; }
.doc-page .lh img { width: 64px; height: 64px; object-fit: contain; }
.doc-page .lh-n b { display: block; font-size: 21px; color: #0d2a6b; }
.doc-page .lh-n span { display: block; font: 700 14px Inter, sans-serif; color: #0d2a6b; letter-spacing: .04em; }
.doc-page .lh-n small { font: 11px Inter, sans-serif; color: #555; }
.doc-page .lh-ar { font: 700 20px Amiri, serif; color: #4b2f9a; }
.doc-page .lt-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.doc-page .lt-date { display: flex; flex-direction: column; text-align: start; font-size: 12.5px; }
.doc-page .lt-title { text-align: center; font-size: 19px; color: #0d6b3c; margin: 12px 0 14px; text-decoration: underline; text-underline-offset: 6px; }
.doc-page .lt-title small { display: block; font: 600 12px Inter, sans-serif; text-decoration: none; color: #555; margin-top: 4px; }
.doc-page .lt-title.en { font-family: Inter, sans-serif; letter-spacing: .06em; text-decoration: none; border: 2px solid #0d2a6b; display: table; margin: 10px auto 14px; padding: 4px 18px; border-radius: 6px; }
.doc-page .lt-to { display: flex; flex-direction: column; margin-bottom: 14px; }
.doc-page .lt-to b { font-size: 15px; }
.doc-page .lt-kv { border-collapse: collapse; width: 100%; margin: 6px 0 14px; }
.doc-page .lt-kv th, .doc-page .lt-kv td { border: 1px solid #9aa4bd; padding: 5px 10px; text-align: start; }
.doc-page .lt-kv th { width: 34%; background: #eaf5ee; color: #0a2a6b; font-weight: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-page .lt-body p { margin: 0 0 10px; text-align: justify; }
.doc-page .lt-sign { margin-top: 46px; width: 230px; text-align: center; display: flex; flex-direction: column; margin-inline-start: auto; }
.doc-page .sg-line { border-top: 1px dotted #333; margin-bottom: 6px; }
.doc-page .lf { position: absolute; bottom: 8mm; inset-inline: 16mm; border-top: 1px solid #c8cfe0; padding-top: 4px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 10.5px; color: #555; }
.doc-page .lt-warn { border: 2px solid #c53030; color: #9b2c2c; padding: 8px 12px; border-radius: 6px; margin: 10px 0; font-weight: bold; }
.doc-page .lt-note { font-size: 12px; margin-top: 12px; }
.doc-page .lt-note p { margin: 2px 0; }
.doc-page .dt { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.doc-page .dt th, .doc-page .dt td { border: 1px solid #8f99b3; padding: 4px 6px; text-align: start; vertical-align: middle; }
.doc-page .dt thead th { background: linear-gradient(90deg, #0a2a6b, #0d6b3c); color: #fff; font-weight: 600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-page .dt tfoot th { background: #f1f3fb; }
.doc-page .dt tbody tr:nth-child(even) td { background: #f7f8fc; }
.doc-page .dt.sm { font-size: 10.5px; }
.doc-page .dt.att td, .doc-page .dt.att th.d { min-width: 24px; height: 22px; }
.doc-page .dt.fee { font-size: 10.5px; }
.doc-page .ls-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: 12.5px; }
.doc-page .tr-head { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 11.5px; }
.doc-page .tr-head th, .doc-page .tr-head td { border: 1px solid #8f99b3; padding: 4px 8px; text-align: start; }
.doc-page .tr-head th { background: #f1f3fb; width: 18%; font-weight: 600; }
.doc-page .tr-sem { margin: 12px 0 4px; font-size: 13px; color: #0d2a6b; }
.doc-page .tr-cgpa { margin-top: 12px; padding: 8px 12px; border: 2px solid #0d2a6b; border-radius: 6px; display: inline-block; }
.doc-page .tr-sign { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
.doc-page .tr-sign > div:first-child { width: 220px; text-align: center; }
.doc-page .grade-key { font-size: 10px; color: #555; margin-top: 8px; }
.doc-page .mqa-h { display: flex; justify-content: space-between; align-items: flex-start; font-size: 12px; border-bottom: 2px solid #0d2a6b; padding-bottom: 6px; }
.doc-page .muted { color: #555; }
/* student cards: 8 per A4 page (85.6 × 54 mm) */
.doc-page.cards { display: grid; grid-template-columns: repeat(2, 85.6mm); grid-auto-rows: 54mm; gap: 8mm 10mm; justify-content: center; align-content: start; padding-top: 14mm; }
.idc { width: 85.6mm; height: 54mm; border-radius: 3.5mm; overflow: hidden; background: linear-gradient(160deg, #ffffff 55%, #eef1fb); border: 1px solid #c8cfe0; display: flex; flex-direction: column; font-family: Inter, Faruma, sans-serif; font-size: 8.5px; line-height: 1.3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idc-top { display: flex; align-items: center; gap: 6px; padding: 2.2mm 3mm; background: linear-gradient(135deg, #0d2a6b, #1a4fb0 60%, #4b2f9a); color: #fff; }
.idc-top img { width: 8mm; height: 8mm; background: #fff; border-radius: 50%; padding: 1px; }
.idc-top b { display: block; font-size: 10px; font-family: Faruma, sans-serif; }
.idc-top span { font-size: 8px; letter-spacing: .05em; }
.idc-top em { margin-inline-start: auto; font-style: normal; font-weight: 800; font-size: 8px; letter-spacing: .14em; background: rgba(255, 255, 255, .18); padding: 1px 5px; border-radius: 4px; }
.idc-mid { flex: 1; display: grid; grid-template-columns: 19mm 1fr 15mm; gap: 2.5mm; padding: 2.5mm 3mm; align-items: start; }
.idc-ph { width: 19mm; height: 24mm; border-radius: 2mm; overflow: hidden; background: #0d2a6b; color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800; border: 1.5px solid #8e9bc4; }
.idc-ph img { width: 100%; height: 100%; object-fit: cover; }
.idc-info b { display: block; font-size: 10px; color: #081a44; }
.idc-info > span { display: block; font-size: 9.5px; color: #333; }
.idc-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0 4px; margin: 3px 0 0; }
.idc-info dt { color: #677388; font-weight: 600; } .idc-info dd { margin: 0; color: #111; overflow: hidden; text-overflow: ellipsis; }
.idc-qr svg { width: 15mm; height: 15mm; }

/* the print window */
body.doc-print *, body.doc-print *::before, body.doc-print *::after, .doc-page, .doc-page * { box-sizing: border-box; }
body.doc-print { margin: 0; background: #fff; -webkit-user-select: text; user-select: text; }
body.doc-print .doc-page { box-shadow: none; margin: 0; page-break-after: always; break-after: page; }
body.doc-print .doc-page:last-child { page-break-after: auto; break-after: auto; }
@page { size: A4; margin: 0; }
@media print {
  body.doc-print .doc-page.land { width: 297mm; min-height: 210mm; }
  body.doc-print .dt thead th, body.doc-print .lt-kv th, body.doc-print .tr-head th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.doc-page.land { page: land; }
@page land { size: A4 landscape; margin: 0; }

/* =====================================================================
   v2 — royal colours, QR, certificate, transcript, two-sided cards
   ===================================================================== */
@font-face { font-family: 'Great Vibes'; src: url(../vendor/fonts/cert/GreatVibes.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Kaushan Script'; src: url(../vendor/fonts/cert/KaushanScript.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Cinzel'; font-weight: 700; src: url(../vendor/fonts/cert/Cinzel-Bold.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Noto Thaana Bold'; src: url(../vendor/fonts/cert/NotoSansThaana-Bold.woff2) format('woff2'); font-display: block; }
:root { --rz-navy: #0a2a6b; --rz-blue: #1550c0; --rz-green: #0d6b3c; --rz-emerald: #12925a; --rz-gold: #ac8c4b; --rz-gold-l: #dbc291; }

/* QR boxes on documents */
.doc-page .qr svg, .qr svg { width: 100%; height: 100%; display: block; }
.doc-page .lt-qr { position: absolute; top: 12mm; inset-inline-end: 16mm; width: 19mm; height: 19mm; padding: 1.2mm; background: #fff; border: 1px solid #0d6b3c; border-radius: 2mm; }
.doc-page.letter .lh { margin-inline-end: 24mm; }

/* ---------- the student file: royal, full screen ---------- */
.za-modal.rs-full { width: min(1500px, 98vw); max-width: none; height: 96vh; max-height: 96vh; padding: 0; overflow: auto; background: #f6f8fc; border-radius: 22px; }
.za-modal.rs-full > .za-modal-x { z-index: 6; background: rgba(255, 255, 255, .92); }
.rsx { min-height: 100%; padding: 12px; background: linear-gradient(135deg, var(--rz-navy), var(--rz-green)); }
.rsx > .rs-file { min-height: calc(96vh - 24px); background: #fff; border-radius: 16px; outline: 2px solid var(--rz-gold); outline-offset: -8px; padding: 22px 26px 26px; position: relative;
  background-image: radial-gradient(circle at 100% 0, rgba(13, 107, 60, .06), transparent 40%), radial-gradient(circle at 0 100%, rgba(10, 42, 107, .06), transparent 45%); }
.rsx-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--rz-navy) 0%, var(--rz-blue) 46%, var(--rz-green) 100%); box-shadow: 0 14px 34px rgba(10, 42, 107, .28); }
.rsx-hero::after { content: ""; position: absolute; inset: 0; background: url(../img/geo-line.svg) center/220px repeat; opacity: .09; pointer-events: none; }
.rsx-hero::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(219, 194, 145, .55); border-radius: 14px; pointer-events: none; }
.rsx-ph { width: 132px; height: 158px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, .14); border: 3px solid var(--rz-gold-l); box-shadow: 0 0 0 5px rgba(255, 255, 255, .15); display: grid; place-items: center; position: relative; z-index: 1; }
.rsx-ph img { width: 100%; height: 100%; object-fit: cover; }
.rsx-ph span { font: 800 2.6rem Inter, sans-serif; color: #fff; }
.rsx-id { position: relative; z-index: 1; min-width: 0; }
.rsx-org { letter-spacing: .14em; font-size: .72rem; color: var(--rz-gold-l); font-weight: 700; }
body.is-dv .rsx-org { letter-spacing: 0; font-size: .85rem; }
.rsx-id h2 { margin: 4px 0 0; font-size: 2rem; line-height: 1.15; color: #fff; }
.rsx-id p { margin: 2px 0 0; font-size: 1.25rem; color: #e6f3ea; }
.rsx-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.rsx-badges .rs-badge { background: #fff; }
.rsx-prog, .rsx-warn { display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 99px; font-size: .82rem; }
.rsx-warn { background: #f7efde; color: #634a17; border-color: #ddc89e; }
.rsx-hero .rsf-acts .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.rsx-qr { position: relative; z-index: 1; width: 112px; height: 112px; padding: 8px; background: #fff; border-radius: 12px; border: 2px solid var(--rz-gold-l); }
.rsx-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.rsx-tile { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #dfe7f2; border-inline-start: 4px solid var(--rz-green); border-radius: 14px; box-shadow: 0 4px 14px rgba(10, 42, 107, .06); min-width: 0; }
.rsx-tile:nth-child(even) { border-inline-start-color: var(--rz-blue); }
.rsx-tile > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--rz-navy), var(--rz-green)); }
.rsx-tile small { display: block; color: #677388; font-size: .74rem; }
.rsx-tile b { display: block; color: var(--rz-navy); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rsx-tabs { margin-bottom: 16px; }
.rsx-tabs button.on { background: linear-gradient(120deg, var(--rz-navy), var(--rz-green)); color: #fff; }
@media (max-width: 1000px) { .rsx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rsx-hero { grid-template-columns: auto 1fr; } .rsx-qr { display: none; } }
@media (max-width: 560px) { .rsx-tiles { grid-template-columns: 1fr; } .rsx-hero { grid-template-columns: 1fr; text-align: center; } .rsx-ph { margin: auto; } .rsx-badges { justify-content: center; } }

/* ---------- statistics extras ---------- */
.rc-legend { display: flex; gap: 14px; margin-bottom: 10px; font-size: .82rem; }
.rc-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.hb-t.st { display: flex; gap: 2px; background: #f1f3f8; }
.hb-t.st i { border-radius: 0; }
.rc-rates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rc-rate { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 10px 14px; background: #fff; }
.rc-rate b { display: block; font-size: 1.6rem; color: var(--c); line-height: 1.1; }
.rc-rate span { display: block; font-weight: 600; font-size: .85rem; } .rc-rate small { color: var(--muted); font-size: .74rem; }
.tbl.xt td, .tbl.xt th { text-align: center; } .tbl.xt td:first-child, .tbl.xt th:first-child { text-align: start; }
.tbl.xt tfoot th { border-top: 2px solid var(--line); }

/* ---------- settings: schemes, uploads ---------- */
.sch { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: #fbfcfe; }
.sch-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .sch-h input[data-sn] { flex: 1; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.sch-t input { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; width: 100%; }
.up-pv img { max-height: 60px; margin-top: 6px; border: 1px dashed var(--line); padding: 3px; background: #fff; }
.g-dv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-height: 40vh; overflow: auto; }

/* ---------- transcript editor ---------- */
.te-head { padding-inline-end: 52px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; position: sticky; top: -1px; background: #fff; z-index: 3; padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.te-head h2 { margin: 0; }
.te-sem { border: 1px solid #d9e3f0; border-inline-start: 5px solid var(--rz-green); border-radius: 14px; padding: 12px; margin: 14px 0; background: #fff; }
.te-sem header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.te-sname { flex: 1; font-weight: 800; color: var(--rz-navy); border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.te-sgpa { background: var(--rz-navy); color: #fff; border-radius: 99px; padding: 3px 12px; font-size: .82rem; font-weight: 700; }
.te-tbl td { padding: 4px; } .te-tbl input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: .86rem; }
.te-tbl .qp { white-space: nowrap; font-weight: 700; color: var(--rz-green); }
.te-tot { position: sticky; bottom: -1px; display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 16px; background: linear-gradient(90deg, var(--rz-navy), var(--rz-green)); color: #fff; border-radius: 12px; margin-top: 10px; }
.te-tot .cg b { color: var(--rz-gold-l); font-size: 1.2rem; }
.te-cols { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .te-cols input { border: 0; background: transparent; width: 90px; }
.m-pad.te { padding: 18px 22px; }

/* ---------- certificate designer ---------- */
.cd { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 18px; align-items: start; }
.cd-prev { position: sticky; top: 8px; background: #e7ebf2; border-radius: 16px; padding: 14px; overflow: hidden; height: calc(297mm * .62 + 28px); }
.cd-scale { transform: scale(.62); transform-origin: top left; width: 210mm; }
html[dir="rtl"] .cd-scale, body.is-dv .cd-scale { transform-origin: top right; margin-inline-start: auto; }
.cd-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; max-height: calc(100vh - 140px); overflow: auto; }
.cd-side h4 { margin: 14px 0 8px; color: var(--rz-navy); } .cd-side h4 small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; word-break: break-all; }
.cd-blk { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 8px; background: #fbfcfe; }
.cd-blk textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 6px; }
.cd-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: .8rem; }
.cd-row input[type=number] { width: 58px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; } .cd-row select { border: 1px solid var(--line); border-radius: 6px; padding: 3px; max-width: 150px; }
.cd-row input[type=color] { width: 30px; height: 26px; border: 0; padding: 0; background: none; }
.cd-row .chk { padding: 0; }
@media (max-width: 1200px) { .cd { grid-template-columns: 1fr; } .cd-prev { position: static; } }

/* ---------- the certificate (A4) ---------- */
.doc-page.cert { padding: 0; background-size: 100% 100%; background-repeat: no-repeat; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; height: 297mm; }
.cert .c-logo { position: absolute; top: 9mm; left: 50%; transform: translateX(-50%); width: 46mm; }
.cert .c-head { position: absolute; display: flex; justify-content: space-between; align-items: flex-start; }
.cert .c-hen b { display: block; font-family: 'Times New Roman', Times, serif; font-weight: 700; color: #111; line-height: 1.1; }
.cert .c-hen span { display: block; font: 11pt 'Times New Roman', Times, serif; margin-inline-start: 6mm; }
.cert .c-hdv { text-align: right; } .cert .c-hdv b { display: block; font-family: 'CertDv', Faruma, sans-serif; color: #111; line-height: 1.3; } .cert .c-hdv span { display: block; font: 10pt Faruma, sans-serif; margin-right: 6mm; }
.cert .c-body { position: absolute; text-align: center; }
.cert .c-b { white-space: normal; }
.cert .c-sign { position: absolute; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cert .c-sign img { max-height: 30mm; object-fit: contain; }
.cert .c-sdv { font: 700 11pt 'CertDv', Faruma, sans-serif; margin-top: 2mm; } .cert .c-sen { font: 13pt 'Kaushan Script', cursive; }
.cert .c-no { position: absolute; text-align: center; font-family: 'Times New Roman', Times, serif; letter-spacing: .02em; }
.cert .c-mqa { position: absolute; text-align: center; font-family: Inter, Arial, sans-serif; color: #333; letter-spacing: .03em; }
.cert .c-seal { position: absolute; left: 146mm; top: 238mm; width: 56mm; height: 56mm; }
.cert .c-seal-svg { width: 100%; height: 100%; }
.cert .c-seal-logo { position: absolute; left: 157mm; top: 252mm; width: 34mm; opacity: .28; filter: grayscale(1) brightness(1.6) contrast(1.4); mix-blend-mode: screen; }
.cert .c-qr { position: absolute; background: #fff; padding: 1mm; border: .4mm solid #0d6b3c; border-radius: 1.5mm; }

/* ---------- transcript (sample layout) ---------- */
.doc-page.tr2 { font-family: 'Times New Roman', Times, serif; font-size: 11px; line-height: 1.35; height: auto; min-height: 297mm; padding: 12mm 16mm 14mm; }
.tr2-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; }
.tr2-en b { display: block; font: 900 17px 'Times New Roman', serif; color: #1d8a3a; letter-spacing: .02em; } .tr2-en span { display: block; font-weight: 700; color: #1d8a3a; font-size: 12px; }
.tr2-en i, .tr2-dv span { display: block; font-style: normal; font-family: Amiri, serif; color: #1d8a3a; font-size: 13px; }
.tr2-en { text-align: left; } .tr2-en i { text-align: left; margin-left: 12mm; }
.tr2-dv { text-align: right !important; } .tr2-dv span { font-family: Faruma, sans-serif; font-size: 11px; }
.tr2-logo { text-align: center; } .tr2-logo small { display: block; font-family: Amiri, serif; font-size: 12px; } .tr2-logo img { width: 30mm; margin: 2mm auto 0; }
/* dv */ .tr2-dv b { display: block; font: 700 18px Faruma, sans-serif; color: #1d8a3a; }
.tr2-title { text-align: center; font: 900 25px 'Times New Roman', serif; color: #1d8a3a; margin: 8mm 0 6mm; letter-spacing: .01em; }
.tr2-qr { position: absolute; top: 40mm; right: 16mm; width: 16mm; height: 16mm; }
.tr2-info { width: 100%; border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 11px; margin-bottom: 6mm; }
.tr2-info th { text-align: left; font-weight: 600; width: 16%; padding: 1.4mm 2mm; color: #222; } .tr2-info td { padding: 1.4mm 2mm; font-size: 12px; }
.tr2-sem { break-inside: avoid; page-break-inside: avoid; margin-bottom: 4mm; }
.tr2-sem h3 { font: 700 12px 'Times New Roman', serif; margin: 2mm 0 1mm 30mm; }
.tr2-tbl { width: 100%; border-collapse: collapse; }
.tr2-tbl th { font-weight: 400; font-size: 11.5px; padding: 1mm 1.5mm; text-align: left; border-bottom: 1px solid #c8d4e6; }
.tr2-tbl td { padding: 1mm 1.5mm; font-size: 11.5px; } .tr2-tbl td.s b { font-weight: 700; } .tr2-tbl .ar { font-family: Amiri, serif; margin-left: 2mm; font-weight: 700; }
.tr2-tbl .c { width: 22mm; } .tr2-tbl .n { text-align: right; width: 16mm; } .tr2-tbl th.s { width: auto; }
.tr2-tbl tfoot td { padding-top: 2.5mm; }
.tr2-cg { text-align: right; font-weight: 700; font-size: 13px; margin: 1mm 0 3mm; } .tr2-cg b { margin-left: 8mm; }
.tr2-sum { margin-left: auto; margin-right: 22mm; font-size: 11.5px; } .tr2-sum th { text-align: right; padding: .6mm 6mm .6mm 0; } .tr2-sum td.end { text-align: right; padding-top: 1mm; }
.tr2-f { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 10mm; margin-top: 16mm; text-align: center; font-size: 11px; }
.tr2-f > div > b, .tr2-f > div > small { display: block; border-bottom: 1px solid #333; padding-bottom: 1mm; font-family: Arial, sans-serif; }
.tr2-f span { display: block; margin-top: 1mm; }
.tr2-f .sig { position: relative; min-height: 26mm; display: flex; flex-direction: column; justify-content: flex-end; border-bottom: 0; }
.tr2-f .sig img { max-height: 22mm; margin: 0 auto; } .tr2-f .sig img.stamp { position: absolute; left: 50%; bottom: 6mm; transform: translateX(-50%); max-height: 28mm; opacity: .9; }
.tr2-f .sig span { border-top: 1px solid #333; padding-top: 1mm; }
.tr2-mqa { text-align: center; font: 9px Arial, sans-serif; color: #444; margin-top: 6mm; }

/* ---------- two-sided student cards ---------- */
.idc.f, .idc.b { border: .3mm solid #b8c6dd; background: linear-gradient(160deg, #ffffff 0%, #ffffff 58%, #e8f4ec 100%); position: relative; }
.idc.f .idc-top, .idc.b .idc-top { background: linear-gradient(120deg, #0a2a6b, #1550c0 55%, #0d6b3c); border-bottom: .8mm solid #ac8c4b; }
.idc.f .idc-top em { background: #ac8c4b; color: #0a2a6b; }
.idc.f .idc-ph { background: linear-gradient(135deg, #0a2a6b, #0d6b3c); border: .6mm solid #ac8c4b; }
.idc.f .idc-mid { grid-template-columns: 19mm 1fr; }
.idc-band { display: flex; justify-content: space-between; padding: 1.2mm 3mm; background: linear-gradient(90deg, #0d6b3c, #0a2a6b); color: #fff; font-size: 7.5px; font-weight: 600; letter-spacing: .03em; }
.idc-back { display: grid; grid-template-columns: 27mm 1fr; gap: 3mm; padding: 4mm 3.5mm; height: 100%; border-top: 3mm solid #0a2a6b; box-shadow: inset 0 .8mm 0 #ac8c4b; }
.idc-bqr { width: 27mm; height: 27mm; padding: 1mm; border: .5mm solid #0d6b3c; border-radius: 1.5mm; background: #fff; }
.idc-btx b { display: block; color: #0a2a6b; font-size: 9.5px; } .idc-btx small { display: block; color: #555; font-size: 7.5px; }
.idc-btx p { margin: 1.4mm 0 0; font-size: 7.4px; line-height: 1.35; color: #222; } .idc-btx p.thaana { font-size: 8px; }
.idc-sig { margin-top: 3mm; font-size: 7px; color: #555; text-align: center; } .idc-sig span { display: block; border-top: .2mm dotted #333; margin: 4mm 6mm 1mm; }
.idc.ghost { border: 0; background: none; }

/* =====================================================================
   ROYAL STUDENT FILE — full screen, blue & green with a gold frame
   ===================================================================== */
.rsr-wrap { --rb: #0b2a6f; --rb2: #1546a6; --rg: #0a7a49; --rg2: #13a463; --au: #ac8c4b; --au2: #dac291;
  position: fixed; inset: 0; z-index: 4900; background: radial-gradient(circle at 15% 10%, #1546a6 0, transparent 45%), radial-gradient(circle at 90% 90%, #0a7a49 0, transparent 50%), linear-gradient(135deg, #061a45, #063d2c);
  padding: clamp(6px, 1.4vw, 18px); display: flex; animation: rsrIn .25s ease; }
@keyframes rsrIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.rsr-frame { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fbfcfe;
  border-radius: 18px; border: 3px solid var(--au); box-shadow: 0 0 0 6px var(--rb), 0 0 0 9px var(--au2), 0 0 0 12px var(--rg), 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden;
  background-image: url("../img/geo-line.svg"); background-size: 260px; background-blend-mode: soft-light; }
.rsr-c { position: absolute; width: 54px; height: 54px; z-index: 3; pointer-events: none; border: 3px solid var(--au); }
.rsr-c::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--rg); transform: rotate(45deg); border: 2px solid var(--au2); }
.rsr-c.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; } .rsr-c.tl::after { top: 6px; left: 6px; }
.rsr-c.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; } .rsr-c.tr::after { top: 6px; right: 6px; }
.rsr-c.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; } .rsr-c.bl::after { bottom: 6px; left: 6px; }
.rsr-c.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; } .rsr-c.br::after { bottom: 6px; right: 6px; }
.rsr-head { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(10px, 2vw, 26px); align-items: center; padding: 22px clamp(18px, 3vw, 44px) 18px;
  background: linear-gradient(120deg, var(--rb) 0%, var(--rb2) 45%, var(--rg) 100%); color: #fff; border-bottom: 4px solid var(--au); }
.rsr-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 6px; background: repeating-linear-gradient(90deg, var(--rg2) 0 18px, var(--au2) 18px 22px, var(--rb2) 22px 40px, var(--au2) 40px 44px); opacity: .9; }
.rsr-emb { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 16px; padding: 8px 10px; border: 2px solid var(--au2); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.rsr-emb img { width: 64px; height: 56px; object-fit: contain; } .rsr-emb small { color: var(--rb); font-size: .66rem; font-weight: 700; line-height: 1.1; }
.rsr-who { min-width: 0; }
.rsr-kick { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--au2); font-weight: 700; }
body.is-dv .rsr-kick { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.rsr-who h1 { margin: 2px 0 0; font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-family: var(--f-head); line-height: 1.15; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.rsr-who p { margin: 2px 0 0; font-size: clamp(1rem, 1.6vw, 1.35rem); color: #e8f6ee; }
.rsr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rsr-tags span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(218, 194, 145, .55); border-radius: 99px; padding: 3px 11px; font-size: .8rem; display: inline-flex; gap: 6px; align-items: center; }
.rsr-tags i { color: var(--au2); }
.rsr-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rsr-stats div { background: rgba(255, 255, 255, .95); color: var(--rb); border-radius: 12px; padding: 6px 14px; min-width: 84px; text-align: center; border-bottom: 3px solid var(--rg2); }
.rsr-stats b { display: block; font-size: 1.25rem; line-height: 1.1; } .rsr-stats small { font-size: .7rem; color: #3d4a63; }
.rsr-qr { background: #fff; padding: 8px; border-radius: 12px; border: 2px solid var(--au2); text-align: center; color: var(--rb); }
.rsr-qr svg { width: 96px; height: 96px; display: block; } .rsr-qr small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.rsr-photo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rsr-ph { width: clamp(110px, 10vw, 150px); aspect-ratio: 3 / 3.7; border-radius: 14px; background: linear-gradient(160deg, var(--rg), var(--rb)); color: #fff; display: grid; place-items: center; font: 800 2.4rem var(--f-head); overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--au), 0 12px 28px rgba(0, 0, 0, .35); }
.rsr-ph img { width: 100%; height: 100%; object-fit: cover; }
.rsr-phbtn { position: absolute; top: -8px; inset-inline-end: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--au); color: var(--rb); display: grid; place-items: center; cursor: pointer; border: 2px solid #fff; }
.rsr-photo .rs-badge { background: #fff; }
.rsr-x { position: absolute; top: 22px; inset-inline-end: 26px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--au2); background: rgba(0, 0, 0, .25); color: #fff; font-size: 1.1rem; z-index: 4; }
.rsr-x:hover { background: #c53030; }
.rsr-head { padding-inline-end: 92px; }
.rsr-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px clamp(18px, 3vw, 44px) 10px; }
.rsr-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #eef2f9; padding: 5px; border-radius: 14px; border: 1px solid #d8dfee; }
.rsr-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: #33415c; display: inline-flex; gap: 7px; align-items: center; }
.rsr-tabs button.on { background: linear-gradient(120deg, var(--rb), var(--rg)); color: #fff; box-shadow: 0 4px 12px rgba(11, 42, 111, .3); }
.rsr-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rsr-acts .rb { border: 1.5px solid #cfd8ea; background: #fff; border-radius: 10px; padding: 8px 13px; font-weight: 700; color: var(--rb); display: inline-flex; gap: 7px; align-items: center; }
.rsr-acts .rb:hover { border-color: var(--rg); color: var(--rg); }
.rsr-acts .rb.gold { background: linear-gradient(135deg, var(--au2), var(--au)); border-color: var(--au); color: #2a1d00; }
.rsr-acts .rb.del { color: #c53030; }
.rsr-body { flex: 1; overflow: auto; padding: 8px clamp(18px, 3vw, 44px) 34px; }
.rsr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .rsr-grid { grid-template-columns: 1fr 1fr; } .rsr-head { grid-template-columns: auto 1fr auto; } .rsr-qr { display: none; } }
@media (max-width: 720px) { .rsr-grid { grid-template-columns: 1fr; } .rsr-head { grid-template-columns: 1fr auto; } .rsr-emb { display: none; } }
.rsr-card { background: #fff; border-radius: 16px; padding: 14px 16px 16px; border: 1px solid #dde4f1; border-top: 4px solid var(--rg); box-shadow: 0 6px 20px rgba(11, 42, 111, .08); }
.rsr-card:nth-child(3n+2) { border-top-color: var(--rb2); } .rsr-card:nth-child(3n) { border-top-color: var(--au); }
.rsr-card h3 { margin: 0 0 10px; font-size: .98rem; color: var(--rb); display: flex; gap: 8px; align-items: center; }
.rsr-card h3 i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--rg), var(--rb2)); color: #fff; font-size: .8rem; }
.rsr-card .rsf-dl { border-color: #e3e8f3; }
.rsr-card .rsf-dl dt { background: #f3f7f5; color: #3c5a4b; }
.rsr-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rsr-line li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #f6f8fc; cursor: pointer; border: 1px solid #e3e8f3; }
.rsr-line li:hover { border-color: var(--rg); }
.rsr-line li > i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c); }
.rsr-line b { display: block; font-size: .88rem; color: #13254d; } .rsr-line small { color: #5b6780; font-size: .74rem; }
.rsr-idc { min-height: 120px; border: 2px dashed #cfd8ea; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; color: #9aa6bd; font-size: 2rem; }
.rsr-idc img { width: 100%; max-height: 260px; object-fit: contain; }
.rsr-note { background: #faf5eb; border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: .86rem; }
.rsr-ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .rsr-ecards { grid-template-columns: 1fr; } }
.rsr-wrap .rs-ecard { margin: 0; border-top: 1px solid var(--line); }

/* ---------- document colours: royal blue, green and gold (strong, print-safe) ---------- */
.doc-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-page .lh { border-bottom: 0; padding-bottom: 10px; position: relative; }
.doc-page .lh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #0b2a6f 0 40%, #ac8c4b 40% 60%, #0a7a49 60% 100%); border-radius: 3px; }
.doc-page .lh-n b, .doc-page .lh-n span { color: #0b2a6f; }
.doc-page .lh-ar { color: #0a7a49; }
.doc-page .lt-title { color: #0a7a49; text-decoration-color: #ac8c4b; }
.doc-page .lt-title.en { color: #0b2a6f; border-color: #0a7a49; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px #ac8c4b; }
.doc-page .dt thead th { background: linear-gradient(180deg, #0b2a6f, #123d93); border-color: #0b2a6f; }
.doc-page .dt tfoot th { background: #e8f4ee; color: #0a5e38; }
.doc-page .lt-kv th, .doc-page .tr-head th { background: #eef5f1; color: #0a4d31; }
.doc-page .tr-sem { color: #0a7a49; }
.doc-page .tr-cgpa { border-color: #0a7a49; color: #0b2a6f; }
.doc-page .lf { border-top: 2px solid #0a7a49; color: #0b2a6f; }
.doc-page .doc-qr { position: absolute; bottom: 14mm; left: 14mm; width: 22mm; text-align: center; z-index: 2; }
.doc-page.list .doc-qr { top: 12mm; bottom: auto; left: auto; right: 16mm; width: 18mm; }
.doc-page.list[dir="rtl"] .doc-qr { right: auto; left: 16mm; }
.doc-page.list .lh { padding-inline-end: 24mm; } .doc-page.list[dir="rtl"] .lh { padding-inline-end: 0; padding-inline-start: 22mm; }
.doc-page .doc-qr svg { width: 100%; height: auto; display: block; background: #fff; padding: 1mm; border: 1px solid #0a7a49; border-radius: 2mm; }
.doc-page .doc-qr small { display: block; font: 600 6.5px Inter, sans-serif; color: #0a7a49; margin-top: 1px; white-space: nowrap; }
/* cards: front band + back side */
.idc { border: 1px solid #0a7a49; box-shadow: inset 0 0 0 1.2mm #fff, inset 0 0 0 1.5mm #ac8c4b; position: relative; }
.idc-top { background: linear-gradient(120deg, #0b2a6f, #1546a6 55%, #0a7a49) !important; }
.idc-top em { background: #ac8c4b !important; color: #1b1300; }
.idc-ph { border-color: #ac8c4b !important; background: linear-gradient(160deg, #0a7a49, #0b2a6f) !important; }
.idc-band { position: absolute; left: 0; right: 0; bottom: 0; height: 2.4mm; background: linear-gradient(90deg, #0a7a49 0 45%, #ac8c4b 45% 55%, #0b2a6f 55%); }
.idc.back { flex-direction: row; align-items: center; gap: 3mm; padding: 3mm 3mm 4mm; background: linear-gradient(160deg, #ffffff 50%, #e9f5ef); }
.idc-bq { width: 26mm; flex: none; } .idc-bq svg { width: 26mm; height: 26mm; border: 1px solid #0a7a49; padding: 1mm; border-radius: 1.5mm; background: #fff; }
.idc-bt { flex: 1; font-size: 7.5px; line-height: 1.35; color: #13254d; }
.idc-bt b { display: block; font-size: 10px; color: #0b2a6f; } .idc-bt span { display: block; font-size: 9.5px; color: #0a7a49; }
.idc-bt p { margin: 1.2mm 0; } .idc-bt small { color: #0a7a49; font-weight: 600; }
.idc-sg { margin-top: 2mm; font-size: 7px; color: #445; } .idc-sg i { display: block; width: 26mm; border-top: 1px dotted #333; margin-bottom: .6mm; }
.idc.ghost { border: 0; box-shadow: none; background: none; }

/* student profile sheet (A4) */
.doc-page.profile { padding: 10mm; }
.pf-frame { border: 2.5px solid #0b2a6f; outline: 1px solid #ac8c4b; outline-offset: -5px; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7.5px #0a7a49; border-radius: 4mm; padding: 9mm; min-height: 275mm; }
.pf-head { display: grid; grid-template-columns: 22mm 1fr 24mm 30mm; gap: 5mm; align-items: center; padding-bottom: 4mm; border-bottom: 3px solid #0a7a49; }
.pf-head img { width: 22mm; } .pf-head b { display: block; font: 700 18px Inter; color: #0b2a6f; } .pf-head span { display: block; color: #0a7a49; font-size: 15px; } .pf-head small { color: #ac8c4b; font-weight: 700; letter-spacing: .12em; font-size: 9px; }
.pf-qr svg { width: 24mm; height: 24mm; display: block; }
.pf-ph { width: 30mm; height: 37mm; border-radius: 2.5mm; overflow: hidden; border: 1mm solid #fff; box-shadow: 0 0 0 .6mm #ac8c4b; background: linear-gradient(160deg, #0a7a49, #0b2a6f); color: #fff; display: grid; place-items: center; font: 800 26px Inter; }
.pf-ph img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font: 700 24px "Cormorant Garamond", serif; color: #0b2a6f; margin: 6mm 0 4mm; } .pf-name span { font-size: 20px; color: #0a7a49; margin-inline-start: 4mm; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin-bottom: 5mm; }
.pf-t { width: 100%; border-collapse: collapse; font-size: 11.5px; } .pf-t caption { text-align: start; font-weight: 700; color: #0a7a49; padding-bottom: 1.5mm; border-bottom: 2px solid #ac8c4b; margin-bottom: 1mm; }
.pf-t th { text-align: start; width: 38%; color: #44506a; font-weight: 600; padding: 1.4mm 2mm; background: #f1f6f3; border-bottom: 1px solid #fff; } .pf-t td { padding: 1.4mm 2mm; border-bottom: 1px solid #e6ebf3; }
.doc-page.list .lh-ar { visibility: hidden; }

/* keep the sidebar in place while the page scrolls (overflow: hidden on body broke "position: sticky") */
html, body { overflow-x: clip; }
.app-view > .sb { align-self: start; }
/* document tiles: always look clear; until a programme / students are chosen they only nudge */
.rd-tile:disabled { opacity: 1; cursor: pointer; filter: none; }
.rd-tile.wait { border-style: dashed; }
/* Access file viewer */
.ax-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.ax-tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; font-weight: 600; }
.ax-tabs button.on { background: var(--blue-950); color: #fff; border-color: var(--blue-950); }
.ax-grid { overflow: auto; max-height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ax-t { font-size: .78rem; } .ax-t th { position: sticky; top: 0; background: #eef2f9; z-index: 1; text-transform: none; letter-spacing: 0; }
.ax-t td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding: 6px 9px; }
.ax-t img { width: 34px; height: 42px; object-fit: cover; border-radius: 5px; }
/* certificate handover */
.ho-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .ho-top > div:last-child { flex: 1; min-width: 260px; }
.ho-qr { width: 130px; padding: 6px; border: 2px solid #0a7a49; border-radius: 12px; background: #fff; } .ho-qr svg { width: 100%; height: auto; display: block; }
.ho-link { display: flex; gap: 6px; } .ho-link input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font-size: .8rem; }
.ho-send { white-space: nowrap; } .ho-send .ib { display: inline-grid; place-items: center; text-decoration: none; }
.ho-sig { height: 38px; max-width: 140px; object-fit: contain; border: 1px solid #e3e8f3; border-radius: 6px; background: #fff; display: block; } .ho-sig.big { height: 70px; max-width: 260px; }
.ho-pad { width: 100%; height: 110px; border: 2px dashed #0a7a49; border-radius: 12px; background: #fbfdfc; touch-action: none; }
.ho-staff { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-page .ho-t td.sg { width: 45mm; height: 14mm; } .doc-page .ho-t td.sg img { height: 12mm; max-width: 44mm; object-fit: contain; }

/* ---------- Certificate Studio ---------- */
.st-lock { display: grid; justify-items: center; gap: 12px; padding: 40px 0; }
.st-head h2 i { color: #b0945c; }
.st-x { border-top: 2px dashed #e1e6ef; margin-top: 14px; padding-top: 6px; }
.st-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.st-card { display: flex; gap: 10px; align-items: center; text-align: start; background: #fff; border: 1.5px solid #dfe4ee; border-radius: 12px; padding: 8px; cursor: pointer; }
.st-card:hover { border-color: #b0945c; box-shadow: 0 0 0 3px rgba(176, 148, 92, .2); }
.st-card img { width: 54px; height: 76px; object-fit: contain; background: #f3f5f9; border-radius: 6px; }
.st-card b { display: block; } .st-card small { color: #66718a; font-size: .78rem; line-height: 1.5; display: block; }
.st-sw { display: inline-flex; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px #d8deea; flex: none; }
.st-sw i { width: 14px; height: 40px; display: block; }
.st-hint { font-size: .8rem; margin: 4px 0; }
.st-gbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.st-ggrid { display: grid; gap: 10px; max-height: 66vh; overflow: auto; padding: 4px; }
.st-ggrid.border { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.st-ggrid.theme { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.st-gb, .st-gt { position: relative; background: #fff; border: 1.5px solid #e1e6ef; border-radius: 10px; padding: 6px; cursor: pointer; display: grid; justify-items: center; gap: 4px; }
.st-gb img { width: 100%; aspect-ratio: 210 / 297; object-fit: contain; background: #f6f7fb; }
.st-gb.on, .st-gt.on, .st-gb:hover, .st-gt:hover { border-color: #b0945c; box-shadow: 0 0 0 3px rgba(176, 148, 92, .25); }
.st-gb small, .st-gt small { font-size: .72rem; color: #66718a; }
.st-gb .ib.del { position: absolute; top: 4px; right: 4px; }
.st-ev h4 { margin: 6px 0 2px; }
.cert .c-back { position: absolute; text-align: center; line-height: 1.9; }
.cert .cb-dv { font-family: Faruma, sans-serif; margin-bottom: 8mm; }
.cert .cb-ar { font-family: Amiri, serif; margin-bottom: 8mm; }
.cert .cb-en { font-family: 'Times New Roman', Times, serif; }
.cert .cb-qr { width: 26mm; height: 26mm; margin: 12mm auto 0; }
.cert .c-dup { position: absolute; text-align: center; color: #9b1c1c; font-family: 'Times New Roman', serif; }
.cert .c-dup .thaana { font-family: Faruma, sans-serif; }
.cert .c-dupst { position: absolute; top: 18mm; left: 18mm; transform: rotate(-12deg); border: 2.2px solid #b91c1c; color: #b91c1c; border-radius: 6px; padding: 1.5mm 4mm; text-align: center; font: 700 13pt 'Times New Roman', serif; letter-spacing: .18em; opacity: .85; }
.cert .c-dupst span { display: block; font: 10pt Faruma, sans-serif; letter-spacing: 0; }
.doc-page.cert.land { height: 210mm; }
.cd-scale.land { width: 297mm; }
.rs-iss { border: 1px solid #b7e0c8; background: #eaf7f0; color: #0a7a49; border-radius: 999px; font-size: .74rem; padding: 1px 8px; cursor: pointer; white-space: nowrap; }
.rs-iss:hover { background: #fdecec; border-color: #f3b9b9; color: #b91c1c; }
.ho-live { color: #0a7a49; font-size: .78rem; } .ho-live i { font-size: .55rem; animation: hoBlink 1.4s infinite; }
@keyframes hoBlink { 50% { opacity: .2; } }
.ho-paper { color: #1747a6; font-size: .8rem; }
.ho-by small { display: block; font-size: 9pt; color: #444; }
.ho-miss { max-height: 40vh; overflow: auto; font-size: .85rem; }

/* ---------- reports for the Ministry (MOHE) ---------- */
.doc-page.mh { font-size: 13px; line-height: 1.95; }
.mh p { text-align: justify; }
.mh .mh-no { text-align: left; } .mh .mh-to { font-weight: 700; }
.mh .mh-list { margin: 0 0 8px; }
.mh .mh-date { margin-top: 14mm; }
.mh-sign { break-inside: avoid; page-break-inside: avoid; display: flex; justify-content: space-between; gap: 20mm; margin-top: 10mm; }
.mh-sign > div { flex: 1; text-align: center; } .mh-sign .mh-sl { border-bottom: 1px solid #333; height: 16mm; margin-bottom: 4px; } .mh-sign b { display: block; } .mh-sign span { font-size: 11px; color: #444; }
.doc-page.mh-cover { height: 297mm; min-height: 0; overflow: hidden; padding: 0; }
.mh-cover { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #000f46, #0b6b45 60%, #4a1f78); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.mh-cv { max-width: 170mm; background: #fffdf6; border: 3px solid #b0945c; box-shadow: inset 0 0 0 6px #fffdf6, inset 0 0 0 7px #b0945c; border-radius: 10px; padding: 26mm 18mm; text-align: center; width: 160mm; }
.mh-cv img { width: 52mm; margin: 0 auto 6mm; } .mh-cv h1 { margin: 0; font-size: 30px; color: #000f46; } .mh-cv h2 { margin: 2mm 0 10mm; font: 700 18px Cinzel, 'Times New Roman', serif; letter-spacing: .2em; color: #0b6b45; }
.mh-cvt { display: inline-grid; gap: 2px; padding: 6mm 14mm; border-top: 2px solid #b0945c; border-bottom: 2px solid #b0945c; margin-bottom: 10mm; }
.mh-cvt b { font-size: 26px; color: #000f46; } .mh-cvt span { font: 700 14px Cinzel, serif; letter-spacing: .25em; color: #4a1f78; } .mh-cvt em { font: 700 22px 'Times New Roman', serif; color: #755e31; font-style: normal; }
.mh-cv p { text-align: center; margin: 2px 0; } .mh-cvto { margin-top: 12mm !important; font-size: 12px; color: #333; }
.mh-h { font-size: 17px; color: #000f46; border-bottom: 2px solid #b0945c; padding-bottom: 2px; margin: 8mm 0 3mm; }
.mh-h span { display: inline-grid; place-items: center; width: 8mm; height: 8mm; border-radius: 50%; background: #0b6b45; color: #fff; font: 700 12px Inter, sans-serif; margin-left: 2mm; }
.mh-h small { font: 600 11px Inter, sans-serif; color: #4a1f78; margin-right: 3mm; }
.mh-y { margin: 5mm 0 2mm; color: #0b6b45; font: 700 15px Inter, sans-serif; }
.mh-note { background: #f4f1ec; border-right: 4px solid #b0945c; padding: 3mm 5mm; border-radius: 4px; }
.mh-note .en { font-family: 'Times New Roman', serif; font-size: 12px; text-align: left; }
.mh-kv th { width: 52mm; text-align: right; background: #f2f5fa; }
.mh-sum th, .mh-sum td { text-align: center; }
.mh-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; } .mh-ph img { width: 100%; height: 30mm; object-fit: cover; border-radius: 3px; }
.mh-sm { font-size: 12px; }
.mh-mqa { font: 600 .8rem Inter, sans-serif; margin-inline-start: 8px; }
.mq-t input[data-f="name_en"] { min-width: 260px; } .mq-t tr.off { opacity: .45; }
.mq-all { margin-inline-start: auto; display: inline-flex; gap: 6px; }
.doc-page .dt.att th.d { vertical-align: bottom; padding: 2px 1px; width: 7mm; }
.doc-page .dt.att .att-d { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; font: 600 8pt 'Times New Roman', serif; white-space: nowrap; }
.doc-page .dt.att th.d small { display: block; font-size: 6.5pt; color: #555; }
.doc-page .dt.att td.am { text-align: center; font: 700 9pt 'Times New Roman', serif; padding: 0; }
.doc-page .dt.att td.am.p { color: #0a7a49; } .doc-page .dt.att td.am.a { color: #b91c1c; } .doc-page .dt.att td.am.l { color: #9a7b3c; } .doc-page .dt.att td.am.e { color: #1747a6; }
.doc-page .att-key { font-size: 9pt; margin-top: 2mm; }
.ho-kind { background: #eef2fb; color: #1747a6; border-radius: 999px; padding: 1px 10px; font-size: .8rem; font-weight: 600; }
.ho-closed { color: #b91c1c; font-size: .8rem; }
.ho-add { margin: 8px 0; }
.pd-sel { display: flex; flex-wrap: wrap; gap: 6px; } .pd-sel span { background: #eaf7f0; color: #0a7a49; border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
.sh-card h4 { margin: 6px 0 2px; }
/* transcript: automatic grades / GPA / CGPA + batch results */
.te-help { margin: 4px 0 10px; font-size: .84rem; }
.te-tbl .gp { white-space: nowrap; color: var(--rz-navy); font-weight: 700; text-align: center; }
.te-tbl .te-src { color: var(--rz-green); font-weight: 900; text-align: center; width: 18px; }
.te-tbl tr.te-fail td { background: #fff3f3; } .te-tbl tr.te-tr td { background: #f3f7ff; }
.te-tbl input::placeholder { color: #1d8a3a; font-weight: 700; opacity: .9; }
.tr2-tbl tr.tr2-fail td { color: #a11; }
.bv-stats { margin: 6px 0 12px; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.bv-tbl td, .bv-tbl th { white-space: nowrap; text-align: center; } .bv-tbl td:nth-child(2) { text-align: start; }
.bv-tbl .bv-g small { color: #6b7a90; font-size: .72rem; } .bv-tbl .bv-g.bad b, .bv-tbl .bad { color: #c62828; } .bv-tbl .ok { color: #1d8a3a; font-weight: 700; }
.bv-tbl .bv-cg b { color: var(--rz-navy); font-size: 1.02rem; }
/* ---------- batch results page: tabs + document buttons ---------- */
.bv-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.bv-tabs { display: inline-flex; background: #eef2f9; border-radius: 12px; padding: 4px; gap: 4px; }
.bv-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--rz-navy); cursor: pointer; }
.bv-tabs button.on { background: var(--rz-navy); color: #fff; box-shadow: 0 3px 10px rgba(11, 42, 91, .25); }
.bv-docs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .bv-docs select { border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 8px; font: inherit; }
.bv-master th small { font-weight: 600; } .bv-master thead tr:first-child th { background: var(--rz-navy); color: #fff; }
.bv-rl i { color: var(--rz-gold, #aa8946); }
.rl-sems { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; }

/* ---------- PROVISIONAL watermark (slips + transcripts) ---------- */
.rs-wm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; z-index: 0; transform: rotate(-30deg); }
.rs-wm span { font: 900 86px 'Times New Roman', serif; color: rgba(190, 30, 30, .075); letter-spacing: .12em; line-height: 1.1; }
.rs-wm span[dir=rtl] { font: 700 92px Faruma, sans-serif; letter-spacing: 0; }
.doc-page.prov > *:not(.rs-wm):not(.qr) { position: relative; z-index: 1; } .doc-page.prov > .qr { z-index: 1; }
.tr2-pv { text-align: center; color: #a11; font: 600 10.5px Arial, sans-serif; margin: -4mm 0 4mm; }

/* ---------- royal semester result slip ---------- */
.rslip { padding: 9mm !important; font-family: 'Times New Roman', Faruma, serif !important; }
.rslip .dv, .rslip [dir=rtl] { font-family: Faruma, sans-serif; }
.rslip .ar { font-family: Amiri, serif; }
.rs-frame { border: 2.2px solid #9d8045; outline: 1px solid #9d8045; outline-offset: 2.5mm; min-height: calc(297mm - 18mm - 6mm); padding: 8mm 9mm 7mm; position: relative; background:
  radial-gradient(circle at 0 0, rgba(170, 137, 70, .10) 0 18mm, transparent 18.2mm), radial-gradient(circle at 100% 0, rgba(170, 137, 70, .10) 0 18mm, transparent 18.2mm),
  radial-gradient(circle at 0 100%, rgba(170, 137, 70, .10) 0 18mm, transparent 18.2mm), radial-gradient(circle at 100% 100%, rgba(170, 137, 70, .10) 0 18mm, transparent 18.2mm); }
.rs-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8mm; border-bottom: 2px solid #0b2a5b; padding-bottom: 3mm; }
.rs-h b { display: block; color: #0b2a5b; font-size: 17px; letter-spacing: .04em; } .rs-h small { color: #1d6b3c; font-size: 11px; }
.rs-l { text-align: left; } .rs-r { text-align: right; } .rs-r b { font-size: 19px; letter-spacing: 0; }
.rs-c { text-align: center; } .rs-c img { width: 26mm; display: block; margin: 1mm auto 0; } .rs-c small { font-family: Amiri, serif; color: #0b2a5b; font-size: 12px; }
.rs-title { text-align: center; margin: 5mm 0 4mm; }
.rs-title h1 { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 6mm; color: #0b2a5b; }
.rs-title h1 span { font-size: 24px; } .rs-title h1 i { font: 700 italic 27px 'Cormorant Garamond', 'Times New Roman', serif; color: #735a29; letter-spacing: .03em; } .rs-title h1 .ar { font-size: 22px; }
.rs-title p { margin: 1.5mm 0 0; font-size: 13px; color: #1d6b3c; font-weight: 700; } .rs-pv { color: #b11d1d; }
.rs-qr { position: absolute; top: 33mm; right: 10mm; width: 17mm; height: 17mm; }
.rs-info { width: 100%; border-collapse: separate; border-spacing: 0; font: 12px Arial, sans-serif; margin: 0 0 5mm; border: 1px solid #c7b798; border-radius: 3mm; overflow: hidden; }
.rs-info th { text-align: left; background: #f7f3ea; color: #5a4721; font-weight: 700; width: 17%; padding: 2mm 3mm; border-bottom: 1px solid #e6dbc6; }
.rs-info td { padding: 2mm 3mm; border-bottom: 1px solid #e6dbc6; } .rs-info tr:last-child th, .rs-info tr:last-child td { border-bottom: 0; } .rs-info .dv { margin-left: 3mm; font-size: 13px; }
.rs-tbl { width: 100%; border-collapse: collapse; font: 12px Arial, sans-serif; }
.rs-tbl thead th { background: linear-gradient(180deg, #0b2a5b, #13407f); color: #fff; padding: 2.2mm 2mm; font-weight: 700; text-align: center; border-right: 1px solid rgba(255, 255, 255, .15); }
.rs-tbl thead th.s, .rs-tbl td.s { text-align: left; } .rs-tbl thead th span { font-weight: 400; }
.rs-tbl td { padding: 2mm; text-align: center; border-bottom: 1px solid #e3e8f1; } .rs-tbl tbody tr:nth-child(even) td { background: #f7f9fc; }
.rs-tbl td.s .ar { margin-left: 2mm; font-size: 13px; color: #333; } .rs-tbl tr.bad td { color: #b11d1d; }
.rs-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; margin: 6mm 0 3mm; }
.rs-sum div { border: 1px solid #c7b798; border-radius: 3mm; padding: 2.5mm; text-align: center; background: #fffdf6; }
.rs-sum small { display: block; font: 10px Arial, sans-serif; color: #5a4721; } .rs-sum b { display: block; font: 700 18px 'Times New Roman', serif; color: #0b2a5b; margin-top: 1mm; }
.rs-sum .gpa { background: linear-gradient(160deg, #0b2a5b, #1d6b3c); border-color: #9d8045; } .rs-sum .gpa small { color: #e0ceab; } .rs-sum .gpa b { color: #fff; font-size: 22px; }
.rs-sum .res.ok b { color: #1d6b3c; font-size: 15px; } .rs-sum .res.no b { color: #b11d1d; font-size: 15px; }
.rs-key { text-align: center; font: 9.5px Arial, sans-serif; color: #555; margin: 2mm 0; }
.rs-note { text-align: center; font-size: 11px; color: #a11; margin: 1mm 0; } .rs-note[dir=rtl] { font-size: 12.5px; }
.rs-f { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10mm; align-items: end; margin-top: 14mm; text-align: center; font: 11px Arial, sans-serif; }
.rs-f > div > b { display: block; border-bottom: 1px solid #333; padding-bottom: 1mm; font-size: 12px; } .rs-f span { display: block; margin-top: 1mm; color: #444; }
.rs-f .sig { position: relative; min-height: 24mm; display: flex; flex-direction: column; justify-content: flex-end; } .rs-f .sig img { max-height: 20mm; margin: 0 auto; }
.rs-f .sig img.stamp { position: absolute; left: 50%; bottom: 5mm; transform: translateX(-50%); max-height: 24mm; opacity: .85; } .rs-f .sig span { border-top: 1px solid #333; padding-top: 1mm; }
/* ---------- document styles (border + colours + background on every printed page) ---------- */
.doc-page.ds { background-color: var(--ds-paper, #fff) !important; background-size: 100% 100% !important; background-repeat: no-repeat !important; padding: var(--ds-pad, 18mm) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; position: relative; }
.doc-page.ds > * { position: relative; z-index: 1; } .doc-page.ds > .qr, .doc-page.ds > .tr2-qr, .doc-page.ds > .rs-wm { position: absolute; }
.doc-page.ds .ds-crest { position: absolute !important; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0 !important; pointer-events: none; }
.doc-page.ds .ds-crest img { width: 52%; opacity: .05; }
.ds .rs-frame { border: 0 !important; outline: 0 !important; background: none !important; min-height: 0 !important; padding: 0 !important; }
.ds .rs-h, .ds .tr2-h { border-bottom-color: var(--ds-p) !important; }
.ds .rs-h b, .ds .rs-title h1, .ds .tr2-title, .ds h1, .ds .rs-sum b, .ds .lt-title { color: var(--ds-p) !important; }
.ds .rs-title h1 i { color: var(--ds-a) !important; }
.ds .rs-tbl thead th, .ds .tr2-tbl thead th, .ds .dt thead th, .ds table.ds-st thead th { background: linear-gradient(180deg, var(--ds-p), var(--ds-s)) !important; color: #fff !important; }
.ds .rs-info, .ds .rs-sum div { border-color: var(--ds-a) !important; } .ds .rs-info th { background: color-mix(in srgb, var(--ds-a2) 35%, #fff) !important; color: var(--ds-p) !important; }
.ds .rs-sum .gpa { background: linear-gradient(160deg, var(--ds-p), var(--ds-s)) !important; } .ds .rs-sum .gpa small { color: var(--ds-a2) !important; } .ds .rs-sum .gpa b { color: #fff !important; }
/* the gallery */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ds-card { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ds-card.on { border-color: var(--rz-gold, #aa8946); box-shadow: 0 6px 20px rgba(170, 137, 70, .18); }
.ds-ch { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f6f8fc; } .ds-ch b { flex: 1; } .ds-ch i { color: var(--rz-navy); }
.ds-cf { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; margin-top: auto; } .ds-cf small { color: #6b7a90; font-size: .72rem; }
.ds-thumb { direction: ltr; position: relative; width: calc(210mm * var(--sc)); height: calc(297mm * var(--sc)); overflow: hidden; margin: 8px auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); border-radius: 4px; }
.ds-thumb > .doc-page { position: absolute !important; left: 0; top: 0; width: 210mm; height: 297mm; transform: scale(var(--sc)); transform-origin: 0 0; margin: 0 !important; box-shadow: none !important; overflow: hidden; font-family: Inter, Faruma, sans-serif; }
.ds-sh { display: flex; align-items: center; gap: 4mm; border-bottom: 2px solid var(--ds-p); padding-bottom: 3mm; margin-bottom: 6mm; } .ds-sh img { width: 18mm; } .ds-sh b { display: block; color: var(--ds-p); font-size: 18px; } .ds-sh span { font-family: Faruma; color: var(--ds-s); font-size: 15px; }
.ds-thumb h1 { font-size: 26px; text-align: center; margin: 4mm 0; } .ds-thumb p, .ds-thumb li { font-size: 15px; line-height: 1.9; } .ds-thumb [dir=rtl] { font-family: Faruma; }
table.ds-st { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4mm; } table.ds-st td { border-bottom: 1px solid #dde3ee; padding: 2.5mm; text-align: center; } table.ds-st thead th { padding: 2.5mm; }
.ds-cg { text-align: right; font-size: 18px !important; } .ds-cg b { color: var(--ds-p); font-size: 24px; } .ds-ref { text-align: right; color: #555; }
.ds-gtools { display: flex; gap: 8px; align-items: center; margin: 8px 0 12px; } .ds-gtools select, .ds-gtools input { border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 8px; font: inherit; } .ds-gtools input { width: 80px; }
.ds-gl { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.ds-opt { border: 2px solid transparent; background: #f7f9fc; border-radius: 12px; padding: 4px 4px 8px; cursor: pointer; font: inherit; } .ds-opt:hover { border-color: #c9d4ea; } .ds-opt.on { border-color: var(--rz-gold, #aa8946); }
.ds-opt small { display: block; font-size: .66rem; color: #44506a; line-height: 1.3; padding: 0 4px; }
.sw { position: relative; width: 38px; height: 22px; display: inline-block; } .sw input { opacity: 0; width: 0; height: 0; } .sw span { position: absolute; inset: 0; background: #cfd6e3; border-radius: 99px; transition: .2s; cursor: pointer; } .sw span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; } .sw input:checked + span { background: #1d8a3a; } .sw input:checked + span::before { transform: translateX(16px); }
/* =================== Meetings & governance =================== */
.gv-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.gv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gv-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; transition: .15s; }
.gv-card:hover { border-color: var(--rz-gold, #aa8946); box-shadow: 0 6px 18px rgba(11, 42, 91, .08); }
.gv-no { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--rz-navy, #0b2a5b), #1d6b3c); color: #fff; font-weight: 800; flex: none; }
.gv-ci { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .gv-ci b { font-family: Faruma, Inter, sans-serif; } .gv-ci small { color: #6b7a90; }
.gv-st { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 99px; background: #eef2f9; color: var(--rz-navy); width: fit-content; }
.st-approved .gv-st, .st-adopted .gv-st { background: #e7f6ec; color: #14532d; } .st-review .gv-st, .st-consult .gv-st { background: #f9f2e3; color: #735a29; } .st-session .gv-st { background: #fdecec; color: #8f2020; }
.gv-cat { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 99px; background: #f3eefc; color: #5b2a86; margin-inline-start: 6px; }
.gv-tag { font-size: .7rem; color: #1d6b3c; margin-inline-start: 4px; }
.gv-mh { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; } .gv-mh h2 { margin: 0; font-family: Faruma, Inter, sans-serif; color: var(--rz-navy); } .gv-mh > a { font-size: 1.2rem; }
.gv-pipe { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; } .gv-pipe span { padding: 5px 10px; border-radius: 8px; background: #f1f4f9; font-size: .78rem; color: #6b7a90; } .gv-pipe span[data-st] { cursor: pointer; } .gv-pipe span.done { background: #e7f6ec; color: #14532d; } .gv-pipe span.on { background: var(--rz-navy, #0b2a5b); color: #fff; }
.gv-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; } .gv-bar .gv-f { margin: 0; display: flex; align-items: center; gap: 6px; }
.gv-ag { padding-inline-start: 22px; } .gv-it { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #fff; list-style-position: outside; }
.gv-ith { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .gv-ith b { font-family: Faruma, Inter, sans-serif; } .gv-acts { margin-inline-start: auto; }
.gv-in { white-space: pre-wrap; background: #f7f9fc; border-radius: 8px; padding: 8px; font: .85rem/1.6 Inter, Faruma, sans-serif; max-height: 220px; overflow: auto; }
.gv-links a, .gv-lr a { display: inline-flex; gap: 6px; align-items: center; margin: 3px 10px 3px 0; }
.gv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; } .gv-chips .chip { background: #eef3fb; border-radius: 99px; padding: 3px 10px; font-size: .8rem; }
.gv-f { display: block; margin: 8px 0; } .gv-f > span { display: block; font-weight: 700; color: var(--rz-navy); margin-bottom: 4px; font-size: .86rem; }
.gv-f input, .gv-f select, .gv-f textarea, .gv-lk input, .gv-sbox input, .gv-sbox select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; }
.gv-lk { display: flex; gap: 6px; } .gv-lk input { flex: 1; } .gv-sr a { display: block; padding: 6px 8px; border-bottom: 1px solid #eef2f9; }
textarea.auto { resize: vertical; overflow: hidden; min-height: 44px; line-height: 1.8; font-family: Faruma, Inter, sans-serif; }
.gv-att .gv-sig { height: 34px; display: block; } .gv-att select { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px; }
.gv-recbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border-radius: 16px; background: linear-gradient(120deg, #0b2a5b, #13407f 60%, #1d6b3c); color: #fff; margin-bottom: 10px; }
.gv-recbar small { color: #c9d4ea; } .gv-recbar select { border-radius: 8px; padding: 6px; border: 0; } .gv-recbar .chk span { color: #fff; }
.gv-mic { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #e0ceab; background: #fff; color: #0b2a5b; font-size: 1.5rem; cursor: pointer; } .gv-mic.on { background: #c62828; color: #fff; animation: gvp 1.4s infinite; }
@keyframes gvp { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .6); } 70% { box-shadow: 0 0 0 16px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
.gv-lv { width: 180px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; margin: 4px 0; } .gv-lv i { display: block; height: 100%; width: 0; background: #4ade80; transition: width .1s; }
.gv-cap { padding: 10px 14px; border-radius: 12px; background: #111827; color: #fff; font: 1.05rem/1.8 Faruma, Inter, sans-serif; min-height: 44px; margin-bottom: 10px; }
.gv-tp { margin: 8px 0; } .gv-tp small { font-weight: 700; color: var(--rz-navy); } .gv-tp textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; }
.gv-min section { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; background: #fff; } .gv-min h4 { margin: 0 0 8px; color: var(--rz-navy); font-family: Faruma, sans-serif; }
.gv-min textarea { width: 100%; border: 1.5px solid #e3e8f1; border-radius: 10px; padding: 8px; } .gv-min label { font-weight: 700; color: #5a4721; display: block; margin-top: 6px; }
.gv-vr, .gv-ar { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; } .gv-vr input { width: 160px; } .gv-vr textarea { flex: 1; } .gv-vr input, .gv-ar input { border: 1.5px solid #e3e8f1; border-radius: 8px; padding: 6px; font: inherit; } .gv-ar input[data-f=what] { flex: 1; }
.gv-add { font-size: .85rem; }
.gv-revwrap { position: relative; } .gv-rev { position: relative; } .gv-blk { border: 1.5px solid var(--line); border-radius: 12px; margin: 8px 0; background: #fff; } .gv-bh { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #f7f9fc; border-radius: 12px 12px 0 0; font-family: Faruma, Inter, sans-serif; }
.gv-bt { padding: 10px 14px; line-height: 2; font-family: Faruma, Inter, sans-serif; font-size: 1.02rem; } .gv-bt::selection, .gv-bt *::selection { background: #e7cfa0; }
.gv-pop { position: absolute; z-index: 20; display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); } .gv-hint { color: #6b7a90; }
.gv-prop blockquote, .gv-am blockquote { margin: 0; padding: 8px 12px; border-inline-start: 4px solid #aa8946; background: #fffaf0; font-family: Faruma, Inter, sans-serif; }
.gv-df { padding: 8px 12px; background: #f7f9fc; border-radius: 10px; line-height: 2; font-family: Faruma, Inter, sans-serif; margin: 6px 0; } .gv-df del { background: #fde2e2; color: #8f2020; text-decoration: line-through; } .gv-df ins { background: #dcfce7; color: #14532d; text-decoration: none; }
.gv-ab-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; } .gv-ag h4 { margin: 14px 0 6px; color: var(--rz-navy); font-family: Faruma, Inter, sans-serif; }
.gv-cl { border-radius: 12px; margin: 6px 0; } .gv-cl.many { border: 2px dashed #aa8946; padding: 6px; } .gv-cl-h { font-size: .8rem; color: #735a29; font-weight: 700; padding: 0 4px 4px; }
.gv-am { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 6px 0; background: #fff; } .gv-am.st-approved { border-color: #86efac; background: #f6fffa; } .gv-am.st-rejected { opacity: .55; }
.gv-am-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .gv-k { font-size: .7rem; padding: 1px 8px; border-radius: 99px; background: #eef2f9; } .gv-k.amend { background: #f9f2e3; color: #735a29; } .gv-s { margin-inline-start: auto; font-size: .75rem; color: #6b7a90; } .gv-why { color: #44506a; font-family: Faruma, Inter, sans-serif; }
.gv-hi { border-bottom: 1px solid #eef2f9; padding: 8px 0; } .gv-hh select { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px; margin-bottom: 8px; }
.gv-sbox input#sq { font-size: 1.05rem; padding: 12px 14px; margin-bottom: 8px; } .gv-sbox .rc-filters input, .gv-sbox .rc-filters select { width: auto; }
.gv-hit { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #fff; } .gv-hh2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .gv-hh2 small { color: #6b7a90; } .gv-same { margin-inline-start: auto; font-size: .8rem; }
.gv-hit p { margin: 6px 0 0; line-height: 1.9; font-family: Faruma, Inter, sans-serif; } .gv-hit mark { background: #e7cfa0; padding: 0 2px; border-radius: 3px; }
.gv-pv iframe { width: 100%; height: 75vh; border: 0; border-radius: 10px; } .gv-pv img { max-width: 100%; }
.gv-bi { display: block; padding: 6px 0; border-bottom: 1px solid #eef2f9; } .gv-mt input, .gv-mt select { width: 100%; border: 1.5px solid #e3e8f1; border-radius: 8px; padding: 5px; font: inherit; }
.gv-rs { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 10px 0; } .gv-rs input, .gv-rs textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; } .gv-rs textarea { grid-column: 1 / -1; }
/* printed agenda / minutes / notices / rules */
.doc-page.gp { font-family: Faruma, 'Times New Roman', serif; font-size: 13.5px; line-height: 2; color: #111; padding: 12mm 16mm; }
.gp-h { text-align: center; border-bottom: 2px solid var(--ds-p, #0b2a5b); padding-bottom: 2mm; margin-bottom: 4mm; } .gp-bis { font: 17px Amiri, serif; color: var(--ds-p, #0b2a5b); }
.gp-row { display: grid; direction: ltr; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6mm; } .gp-row img { width: 22mm; } .gp-en { text-align: left; direction: ltr; font-family: 'Times New Roman', serif; } .gp-dv { text-align: right; direction: rtl; }
.gp-row b { display: block; color: var(--ds-p, #0b2a5b); font-size: 15px; } .gp-row small { color: #555; font-size: 10.5px; }
.gp-t { text-align: center; font-size: 19px; color: var(--ds-p, #0b2a5b); margin: 3mm 0 1mm; text-decoration: underline; text-underline-offset: 6px; } .gp-dr { color: #b11d1d; font-size: 12px; text-decoration: none; }
.gp-ref { text-align: left; font: 13px 'Times New Roman', serif; margin: 0 0 2mm; } .gp-key { float: left; direction: rtl; border: 1px solid #333; padding: 1.5mm 3mm; font-size: 11.5px; line-height: 1.7; margin: 0 0 2mm 0; display: flex; flex-direction: column; } .gp-key b { font: 11px 'Times New Roman', serif; }
.gp-kv { border-collapse: collapse; margin: 2mm 0 3mm; } .gp-kv th { text-align: right; padding: 0 0 0 3mm; white-space: nowrap; } .gp-kv td { padding: 0 0 0 8mm; }
.gp-sub { margin: 2mm 0; text-decoration: underline; font-size: 14px; }
.gp-at { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 4mm; } .gp-at td { border: 1px solid #333; padding: 1mm 2mm; } .gp-at td.n { width: 7mm; text-align: center; } .gp-at td.m { width: 12mm; text-align: center; font-size: 15px; line-height: 1.2; }
.gp-sec { margin: 3mm 0; break-inside: auto; } .gp-sec h3 { font-size: 14.5px; text-decoration: underline; margin: 3mm 0 1mm; color: var(--ds-p, #111); } .gp-sec p { margin: 0 0 1.2mm; text-align: justify; }
.gp-v { margin: 0 0 1mm; padding-inline-start: 6mm; } .gp-v li { list-style: "➢ "; }
.gp-dec { border: 1px solid #999; border-radius: 2mm; padding: 1.5mm 3mm; margin: 1.5mm 0; background: #fafafa; } .gp-dec p { margin: 0; }
.gp-act { width: 100%; border-collapse: collapse; font-size: 12px; margin: 1.5mm 0; } .gp-act th, .gp-act td { border: 1px solid #666; padding: .8mm 2mm; } .gp-act th { background: #eee; }
.gp-close { margin-top: 5mm; } .gp-sig { display: grid; grid-template-columns: 1fr 1fr; gap: 12mm; margin-top: 10mm; } .gp-sig div { display: flex; flex-direction: column; gap: 1mm; } .gp-sig i { font-style: normal; margin-top: 8mm; border-bottom: 1px dotted #333; }
.gp-ok { text-align: center; font: 10px Inter, sans-serif; color: #14532d; margin-top: 4mm; }
.gp-ag li { margin: 2mm 0; } .gp-ag p { margin: 0; color: #333; } .gp-att { font-size: 11.5px; color: #555; }
.gp-nt { font-size: 24px; text-decoration: none; letter-spacing: .02em; } .notice.gp > p { text-align: justify; font-size: 15px; } .gp-en-b { font-family: 'Times New Roman', serif; border-top: 1px solid #ccc; margin-top: 4mm; padding-top: 2mm; }
.gp-nf { margin-top: 10mm; } .gp-nf p { margin: 0; } .gp-sig1 { margin-top: 12mm; display: flex; flex-direction: column; } .gp-sig1 b { border-top: 1px dotted #333; padding-top: 1mm; width: 60mm; }
/* graduation list */
.gl-h { display: grid; grid-template-columns: auto auto 1fr; gap: 5mm; align-items: center; border-bottom: 2px solid var(--ds-p, #0b2a5b); padding-bottom: 2mm; margin-bottom: 3mm; } .gl-h img { width: 18mm; } .gl-h b { display: block; font: 16px Faruma; color: var(--ds-p, #0b2a5b); } .gl-h span { font: 12px 'Times New Roman', serif; }
.gl-t { text-align: center; } .gl-t h1 { margin: 0; font: 20px Faruma; color: var(--ds-p, #0b2a5b); } .gl-t p { margin: 0; font: italic 14px 'Times New Roman', serif; } .gl-t small { color: #555; }
.gl-tbl { width: 100%; font-size: 11.5px; } .gl-tbl td { padding: 1.4mm 2mm; } .gl-tbl td.nm span { font-family: Faruma; } .gl-tbl td span[dir=rtl] { font-family: Faruma; }
.gl-f { display: flex; justify-content: space-between; font-size: 10.5px; margin-top: 3mm; color: #555; }
.gl-ed input { border: 1.5px solid #e3e8f1; border-radius: 8px; padding: 5px; font: inherit; width: 100%; min-width: 80px; } .gl-pick > div { padding: 6px 0; border-bottom: 1px solid #eef2f9; }
/* results import */
.bk-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; } .bk-tbl select { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px; max-width: 260px; } .bk-off td { opacity: .55; } .bk-sum .ok { color: #1d8a3a; } .bk-sum .bad, .bk-tbl .bad { color: #c62828; } .warn { color: #735a29; }
.gv-rev, .gv-rev .gv-bt, .gv-rev .gv-bt * { -webkit-user-select: text !important; user-select: text !important; }
/* Dhivehi tools (meetings) */
.gv-dvt{display:inline-flex;gap:.4rem;align-items:center;margin-inline-start:auto}
.gv-dvt .chk{font-size:.82rem}
.gv-lat{white-space:pre-wrap;font:12px/1.5 ui-monospace,Menlo,monospace;background:#f4f1ec;border:1px dashed #bfb196;border-radius:8px;padding:.5rem .7rem;margin:.3rem 0 0;color:#4f432b;max-height:240px;overflow:auto}
.gv-pl{max-height:62vh;overflow:auto;display:grid;gap:.6rem}
.gv-pli{display:flex;gap:.6rem;align-items:flex-start;border:1px solid #dfd8ca;border-radius:10px;padding:.55rem .7rem;background:#fffdf7}
.gv-pli small{display:block;color:#8a7a50;margin-bottom:.2rem}
.gv-lw{display:grid;gap:.35rem;max-height:50vh;overflow:auto;margin:.6rem 0}
.gv-lw s{color:#b42318}
.gv-lw b{color:#067647}
/* batch sheet: typing marks, add module / student */
.bv-e{white-space:nowrap}
.bv-in{width:3.4em;padding:.15rem .25rem;border:1px solid #d9cfb4;border-radius:6px;text-align:center;font:inherit;background:#fffdf6}
.bv-in:focus{outline:2px solid #aa8946;border-color:#aa8946}
.bv-eg{display:inline-block;min-width:1.9em;margin-inline-start:.25rem;font-size:.8rem}
.bv-cx{color:#b42318;text-decoration:none;font-weight:700;margin-inline-start:.2rem}
#bv-ed.on{background:#aa8946;color:#fff;border-color:#aa8946}
.as-list{display:grid;gap:.25rem;max-height:55vh;overflow:auto;margin-top:.6rem}
.as-list a{display:block;padding:.45rem .6rem;border:1px solid #e7dfcf;border-radius:8px;text-decoration:none;color:inherit}
.as-list a:hover{background:#f7f3eb}
.rs-seed{display:flex;gap:.9rem;align-items:center;margin-bottom:.8rem}
.rs-seed>i{font-size:1.5rem;color:#85682d}
.rs-seed>div{flex:1}
.gv-err{color:#b42318;font-size:.78rem;margin-top:.2rem;white-space:normal;max-width:420px}
.gv-prog{position:sticky;top:0;z-index:5;background:#0b2a5b;color:#fff;padding:.45rem .8rem;border-radius:8px;margin-bottom:.5rem;font-weight:600}
.gv-dvo{margin:.8rem 0;padding:.8rem 1rem;border:1px solid #d9ceb7;border-radius:12px;background:#fffdf6}
.gv-dvo audio{width:100%;margin:.3rem 0}
.gv-dvt-t{font-size:1.25rem;line-height:2.1;white-space:pre-wrap}
.gv-rec-now{font-size:1.1rem}.gv-rec-now i{color:#d92d20;animation:gvb 1s infinite}
@keyframes gvb{50%{opacity:.2}}
.gp-dv b { font-size: 19px; line-height: 1.6; } .gp-dv small { font-size: 13px; }
.gv-dvl{font-size:1.15rem;line-height:2;margin-top:.4rem;white-space:pre-wrap;color:#fff}
/* ---------- advertisements (portal → Website → Advertisements) ---------- */
.ad-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.05fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ad-grid { grid-template-columns: 1fr; } }
.ad-side { position: sticky; top: 10px; }
.ad-form .panel, .ad-side .panel { padding: 14px; margin-bottom: 14px; }
.ad-form .fld { display: block; margin: 8px 0; } .ad-form .fld > span { display: block; font-size: .85rem; color: #5b6478; margin-bottom: 3px; }
.ad-form .fld input, .ad-form .fld textarea { width: 100%; font-family: Faruma, Inter, sans-serif; font-size: 1rem; line-height: 1.8; }
#ad-cq { width: 100%; margin: 6px 0; }
.ad-crsl { max-height: 560px; overflow: auto; border: 1px solid #dfd8ca; border-radius: 10px; padding: 4px; margin-bottom: 8px; background: #fffdf8; }
.ad-cg { font-size: .78rem; color: #8a7a50; padding: 6px 8px 2px; font-weight: 700; }
.ad-crs { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.ad-crs:hover { background: #f1ece1; } .ad-crs.on { background: #0b2a5b; color: #fff; } .ad-crs.on small { color: #d8e1f3; }
.ad-crs span { flex: 1; min-width: 0; } .ad-crs b { display: block; font-weight: 400; } .ad-crs small { display: block; color: #6b7280; font: 12px Inter, sans-serif; }
.ad-mqa { font: 700 10px Inter, sans-serif; font-style: normal; background: #1d6b3c; color: #fff; padding: 2px 6px; border-radius: 6px; }
.ad-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ad-pic { display: grid; place-items: center; gap: 6px; min-height: 130px; border: 2px dashed #cbbfa6; border-radius: 12px; cursor: pointer; text-align: center; padding: 8px; background: #fffdf6; }
.ad-pic img { max-width: 100%; max-height: 110px; border-radius: 8px; object-fit: cover; } .ad-pic i { font-size: 2rem; color: #a18d65; } .ad-pic span { font-size: .82rem; color: #5b6478; }
.ad-stbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.ad-stbar input { width: 70px; text-align: center; } .ad-stbar select { margin-inline-start: auto; }
.ad-cv { background: repeating-conic-gradient(#eef0f4 0 25%, #fff 0 50%) 50% / 22px 22px; border-radius: 12px; padding: 10px; margin: 8px 0; display: grid; place-items: center; }
.ad-cv canvas { width: 100%; max-height: 72vh; object-fit: contain; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); border-radius: 6px; }
.ad-acts { flex-wrap: wrap; }
.ad-share { margin-top: 10px; padding: 10px; border-radius: 12px; background: #f3f7ff; border: 1px solid #cbd8f3; }
.ad-share input { width: 100%; font: 13px Inter, monospace; margin-bottom: 8px; } .ad-share .row-acts { flex-wrap: wrap; }
.ad-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 70vh; overflow: auto; margin-top: 10px; }
.ad-th { border: 2px solid transparent; border-radius: 10px; padding: 4px; background: #f6f7fa; cursor: pointer; display: grid; gap: 4px; }
.ad-th canvas { width: 100%; height: auto; border-radius: 6px; background: #e9ecf2; min-height: 120px; } .ad-th small { font: 11px Inter, sans-serif; color: #475069; }
.ad-th.on, .ad-th:hover { border-color: #aa8946; }
/* signature sheets: ticks, dates, who signed */
.ho-ticks { margin: 14px 0; } .ho-ticks h4 { display: flex; gap: 10px; align-items: center; }
.ho-tk { display: inline-flex; gap: 6px; align-items: center; } .ho-tk input[type=checkbox] { width: 18px; height: 18px; } .ho-tk input[type=date] { width: auto; padding: 2px 4px; font-size: .8rem; }
.ho-px { color: #8a5a00; }
/* advert → which registration form */
.ad-forms { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.ad-form-o { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e3e7ef; border-radius: 12px; cursor: pointer; transition: .2s; }
.ad-form-o:hover { border-color: #b9c6e4; background: #f7f9fd; } .ad-form-o.on { border-color: #0b6b45; background: #eefaf4; box-shadow: 0 0 0 2px #0b6b4522; }
.ad-form-o > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #000f46; color: #e4dccb; flex: none; }
.ad-form-o span { flex: 1; min-width: 0; } .ad-form-o b { display: block; font-weight: 400; } .ad-form-o small { display: block; color: #6b7280; font: 12px Inter, sans-serif; } .ad-form-o em { display: block; font: 11px ui-monospace, monospace; color: #9a7b3c; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-form-o input { flex: none; }
.ad-logos { display: grid; gap: 4px; margin: 10px 0; padding: 10px 12px; border: 1px dashed #d9dee9; border-radius: 12px; background: #fafbfe; }
.ad-logos small { font-size: 12px; }
#ad-dom { max-width: 190px; }
/* 🔴 new applications waiting */
#sb-nav a { position: relative; }
#sb-nav a .nb { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #e11d2e; color: #fff; font: 800 12px/22px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 10px rgba(225,29,46,.45); animation: nbp 2.2s ease-in-out infinite; }
@keyframes nbp { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { #sb-nav a .nb { animation: none; } }
.stat.hot { border-color: #e11d2e !important; background: linear-gradient(135deg, #fff1f2, #fff) !important; }
.stat.hot b { color: #e11d2e !important; }
.stat.hot i { color: #e11d2e !important; }
.ws-inbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid #fecaca; background: linear-gradient(135deg, #fff1f2, #fff); border-radius: 14px; }
.ws-inbox > b { color: #b91c1c; margin-inline-end: 6px; }
.nb2 { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e11d2e; color: #fff; font: 800 11px/20px Inter, sans-serif; text-align: center; }
/* approvals & history */
.ap-req { border: 1px solid #e5e9f2; border-radius: 16px; padding: 12px 14px; margin: 10px 0; background: #fff; box-shadow: 0 4px 14px rgba(15, 30, 70, .05); }
.ap-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ap-m { color: #4b5563; font-size: .92em; margin: 6px 0; }
.ap-req details { margin: 6px 0; } .ap-req summary { cursor: pointer; color: #1956b3; }
.ap-diff td { vertical-align: top; max-width: 380px; overflow-wrap: anywhere; } .ap-old { background: #fff1f2; } .ap-new { background: #ecfdf5; }
.ap-pre { max-height: 240px; overflow: auto; background: #f7f9fc; padding: 8px; border-radius: 10px; font-size: 12px; white-space: pre-wrap; }
