/* Pratonton fail dalam portal (fail-pratonton.js): Word, Excel, PowerPoint, PDF telefon, teks. */
.fp-host{--fp-font:Calibri,Carlito,"Segoe UI",Arial,sans-serif;width:100%;height:100%;min-height:0;min-width:0;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;overflow:hidden}
.fp-host.fp-docx,.fp-host.fp-xlsx,.fp-host.fp-csv,.fp-host.fp-pptx,.fp-host.fp-pdf,.fp-host.fp-txt{place-items:stretch}
.fp-audio{width:min(520px,100%)}
.fp-load{display:grid;justify-items:center;gap:12px;color:#e2e8f0;font-size:13px;align-self:center;justify-self:center}
.fp-spin{width:38px;height:38px;border-radius:50%;border:4px solid #ffffff33;border-top-color:#fff;animation:fp-spin 0.9s linear infinite}
@keyframes fp-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.fp-spin{animation-duration:3s}}
.fp-none{background:#fff;color:#18212f;border-radius:20px;padding:30px;text-align:center;max-width:400px;display:grid;gap:10px;justify-items:center;align-self:center;justify-self:center}
.fp-none span{font-size:42px}.fp-none p{margin:0;font-size:14px;line-height:1.5}
.fp-doc{width:100%;height:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:8px;box-sizing:border-box}
/* Word */
.fp-doc .docx-wrapper{background:transparent!important;padding:0!important;display:flex;flex-direction:column;align-items:center;gap:14px}
.fp-doc .docx-wrapper>section.docx{box-shadow:0 12px 40px #0007!important;margin:0!important;flex:none}
/* PDF telefon */
.fp-doc.fp-pdf{display:flex;flex-direction:column;align-items:center;gap:12px}
.fp-page{position:relative;background:#fff;border-radius:4px;box-shadow:0 10px 30px #0006;flex:none;max-width:100%}
.fp-page canvas{display:block;max-width:100%;height:auto!important}
.fp-pno{position:absolute;right:6px;bottom:6px;background:#0f172acc;color:#fff;font-size:10px;padding:2px 7px;border-radius:999px}
.fp-more{color:#cbd5e1;text-align:center;font-size:12px;margin:10px 0}
/* Excel / CSV */
.fp-doc.fp-xl{display:flex;flex-direction:column;gap:8px;padding:0 0 8px}
.fp-tabs{display:flex;gap:6px;overflow-x:auto;flex:none;padding:2px}
.fp-tab{border:0;border-radius:999px;padding:7px 14px;background:#ffffff26;color:#fff;font:600 12px/1 inherit;cursor:pointer;white-space:nowrap}
.fp-tab[aria-selected="true"]{background:#fff;color:#0f172a}
.fp-xlwrap{flex:0 1 auto;align-self:flex-start;max-width:100%;min-height:0;overflow:auto;background:#fff;border-radius:10px;-webkit-overflow-scrolling:touch}
.fp-sheet{border-collapse:collapse;font:12px/1.35 var(--fp-font);color:#111827;background:#fff}
.fp-sheet td,.fp-sheet th{border:1px solid #d7dde6;padding:4px 8px;white-space:pre-wrap;vertical-align:top;max-width:340px;min-width:44px}
.fp-sheet td.num{text-align:right;font-variant-numeric:tabular-nums}
.fp-sheet thead th{position:sticky;top:0;background:#eef2f7;color:#475569;font-weight:600;z-index:1;text-align:center}
.fp-sheet tbody th{position:sticky;left:0;background:#eef2f7;color:#475569;font-weight:600;min-width:34px;text-align:center}
.fp-sheet .fp-corner{left:0;z-index:2}
/* PowerPoint */
.fp-doc.fp-ppt{display:flex;flex-direction:column;align-items:center;gap:6px}
.fp-slide-box{position:relative;flex:none;overflow:hidden;border-radius:6px;box-shadow:0 12px 36px #0007}
.fp-slide{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;font-family:var(--fp-font);color:#000;background-position:center;background-repeat:no-repeat}
.fp-sh{position:absolute;box-sizing:border-box}
.fp-sh>img{width:100%;height:100%;display:block;object-fit:fill}
.fp-ph{display:grid;place-items:center;background:#f1f5f9;color:#64748b;font-size:14px;border:1px dashed #94a3b8}
.fp-tx{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;line-height:1.15;overflow-wrap:break-word}
.fp-tx p{margin:0}
.fp-bu{margin-right:.45em}
.fp-ptbl{border-collapse:collapse;width:100%;height:100%;table-layout:fixed;font:13px/1.25 var(--fp-font)}
.fp-ptbl td{border:1px solid #9ca3af;padding:4px 6px;white-space:pre-wrap;vertical-align:top}
.fp-sno{color:#cbd5e1;font-size:11px;margin:0 0 12px}
.fp-text{margin:0 auto;max-width:900px;background:#fff;color:#111827;padding:20px;border-radius:10px;white-space:pre-wrap;word-break:break-word;font:13px/1.5 ui-monospace,Menlo,monospace}
@media (max-width:760px){.fp-doc{padding:4px}}
