/* PPTXjs v2 */

.pptxjs { position: relative; }
/* isolate slides from host-page CSS (Bootstrap/Tailwind set border-box, max-width:100% ...) */
.pptxjs .slide, .pptxjs .slide *, .pptxjs .slide *::before, .pptxjs .slide *::after { box-sizing: content-box; }
.pptxjs .slide img, .pptxjs .slide svg, .pptxjs .slide video, .pptxjs .slide iframe { max-width: none; max-height: none; }
.pptxjs .slide p, .pptxjs .slide table { margin: 0; }
/* slides are laid out in absolute LTR coordinates; a host page with dir="rtl" must not mirror them.
   Paragraph direction comes from the presentation (or the textDirection option). */
.pptxjs .slide { direction: ltr; unicode-bidi: isolate; }
.pptxjs .slide { line-height: normal; letter-spacing: normal; text-transform: none; text-align: left; font-size: 16px; color: #000; font-weight: normal; font-style: normal; }
.pptxjs .slide { position: relative; overflow: hidden; margin: 0 auto 24px; background: #fff; box-sizing: content-box; }
.pptxjs .slide-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a00; font: 16px sans-serif; background: #fff4f4; }
.pptxjs .slide div.block { position: absolute; top: 0; left: 0; width: 100%; line-height: 1; }
.pptxjs .slide div.content, .pptxjs .slide div.diagram-content { display: flex; flex-direction: column; }
.pptxjs .slide div.content-rtl { display: flex; flex-direction: column; direction: rtl; }
.pptxjs .slide .pregraph-rtl { direction: rtl; }
.pptxjs .slide .pregraph-ltr { direction: ltr; }
.pptxjs .slide .pregraph-inherit { direction: inherit; }
.pptxjs .slide .slide-prgrph { width: 100%; }
/* keep runs of spaces/tabs but wrap at word boundaries like PowerPoint (v1 used &nbsp;) */
.pptxjs .slide .text-block { white-space: pre-wrap; tab-size: 4; }
.pptxjs .slide .line-break-br::before { content: "\A"; white-space: pre; }
.pptxjs .slide div.v-up { justify-content: flex-start; }
.pptxjs .slide div.v-mid { justify-content: center; }
.pptxjs .slide div.v-down { justify-content: flex-end; }
.pptxjs .slide div.h-left { justify-content: flex-start; align-items: flex-start; text-align: left; }
.pptxjs .slide div.h-left-rtl { justify-content: flex-end; align-items: flex-end; text-align: left; }
.pptxjs .slide div.h-mid { justify-content: center; align-items: center; text-align: center; }
.pptxjs .slide div.h-right { justify-content: flex-end; align-items: flex-end; text-align: right; }
.pptxjs .slide div.h-right-rtl { justify-content: flex-start; align-items: flex-start; text-align: right; }
.pptxjs .slide div.h-just, .pptxjs .slide div.h-dist { text-align: justify; }
.pptxjs .slide div.up-left { justify-content: flex-start; align-items: flex-start; text-align: left; }
.pptxjs .slide div.up-center { justify-content: flex-start; align-items: center; }
.pptxjs .slide div.up-right { justify-content: flex-start; align-items: flex-end; }
.pptxjs .slide div.center-left { justify-content: center; align-items: flex-start; text-align: left; }
.pptxjs .slide div.center-center { justify-content: center; align-items: center; }
.pptxjs .slide div.center-right { justify-content: center; align-items: flex-end; }
.pptxjs .slide div.down-left { justify-content: flex-end; align-items: flex-start; text-align: left; }
.pptxjs .slide div.down-center { justify-content: flex-end; align-items: center; }
.pptxjs .slide div.down-right { justify-content: flex-end; align-items: flex-end; }
.pptxjs .slide li.slide { margin: 10px 0; font-size: 18px; }
.pptxjs .slide table { position: absolute; }
.pptxjs .slide svg.drawing { position: absolute; overflow: visible; }
.pptxjs .slide svg.pptx-chart { display: block; }
.pptxjs .slide .pptx-media-link { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 26px; line-height: 56px; text-align: center; text-decoration: none; }


.pptxjs-viewer { position: relative; outline: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pptxjs-viewer:focus-visible { box-shadow: 0 0 0 2px #4775d1; }
.pptxjs-stage { position: relative; width: 100%; }
.pptxjs-slides { display: flex; flex-direction: column; align-items: center; gap: var(--pptx-gap, 24px); }
.pptxjs-slide-wrap { position: relative; width: calc(var(--pptx-w) * var(--pptx-scale, 1)); height: calc(var(--pptx-h) * var(--pptx-scale, 1)); flex: none; }
.pptxjs-slide-wrap[hidden] { display: none; }
.pptxjs-slide-wrap > .slide { position: absolute; top: 0; left: 0; margin: 0; transform: scale(var(--pptx-scale, 1)); transform-origin: 0 0; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pptxjs-mode-slideshow .pptxjs-slides { gap: 0; }
.pptxjs-mode-slideshow .pptxjs-slide-wrap > .slide { box-shadow: none; }
.pptxjs-progress { height: 4px; background: rgba(0,0,0,.08); overflow: hidden; margin-bottom: 8px; border-radius: 2px; }
.pptxjs-progress[hidden] { display: none; }
.pptxjs-progress-bar { height: 100%; width: 0; background: #4775d1; transition: width .15s ease; }
.pptxjs-toolbar { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 8px; }
.pptxjs-toolbar[hidden] { display: none; }
.pptxjs-btn { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 36px; height: 32px; border: 1px solid rgba(0,0,0,.15); border-radius: 6px; background: #fff; color: #222; cursor: pointer; font-size: 15px; line-height: 1; }
.pptxjs-btn:hover { background: #f0f3fa; }
.pptxjs-btn:focus-visible { outline: 2px solid #4775d1; outline-offset: 1px; }
.pptxjs-counter { min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; color: #333; font-size: 14px; }
.pptxjs-error { padding: 12px 16px; margin: 8px 0; border: 1px solid #e3a3a3; background: #fff4f4; color: #8a1c1c; border-radius: 6px; font-size: 14px; }
.pptxjs-fullscreen { background: #000; display: flex; flex-direction: column; justify-content: center; }
.pptxjs-fullscreen .pptxjs-toolbar { position: absolute; bottom: 0; left: 0; right: 0; opacity: 0; transition: opacity .2s; }
.pptxjs-fullscreen:hover .pptxjs-toolbar { opacity: .9; }
.pptxjs-fullscreen .pptxjs-counter { color: #eee; }
.pptxjs-anim-fade { animation: pptxjs-fade var(--pptx-transition, .4s) ease both; }
.pptxjs-anim-slide { animation: pptxjs-slide var(--pptx-transition, .4s) ease both; }
.pptxjs-anim-zoom { animation: pptxjs-zoom var(--pptx-transition, .4s) ease both; }
@keyframes pptxjs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pptxjs-slide { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
@keyframes pptxjs-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
/* right-to-left UI: mirror the direction icons and the slide transition */
.pptxjs-viewer[dir="rtl"] :is(.pptxjs-first, .pptxjs-prev, .pptxjs-next, .pptxjs-last) svg { transform: scaleX(-1); }
.pptxjs-viewer[dir="rtl"] .pptxjs-anim-slide { animation-name: pptxjs-slide-rtl; }
@keyframes pptxjs-slide-rtl { from { opacity: 0; transform: translateX(-8%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pptxjs-anim-fade, .pptxjs-anim-slide, .pptxjs-anim-zoom { animation: none; } }


.pptxjs-editor { display: flex; flex-direction: column; height: 100%; min-height: 420px; border: 1px solid #d0d4dc; border-radius: 8px; overflow: hidden; background: #f4f5f8; outline: none; font: 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2430; }
.pptxjs-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; background: #fff; border-bottom: 1px solid #d0d4dc; }
.pptxjs-editor-toolbar[hidden] { display: none; }
.pptxjs-tb-group { display: flex; align-items: center; gap: 3px; padding-right: 6px; border-right: 1px solid #e3e6ec; }
.pptxjs-tb-group:last-child { border-right: 0; }
.pptxjs-tb-btn { min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 600; }
.pptxjs-tb-btn:hover:not(:disabled) { background: #eef1f7; border-color: #d6dbe6; }
.pptxjs-tb-btn.pptxjs-on { background: #dfe7fb; border-color: #9fb5ec; }
.pptxjs-tb-btn:disabled, .pptxjs-tb-num:disabled, .pptxjs-tb-select:disabled, .pptxjs-tb-color:disabled { opacity: .4; cursor: default; }
.pptxjs-tb-btn:focus-visible, .pptxjs-tb-select:focus-visible, .pptxjs-tb-num:focus-visible { outline: 2px solid #4775d1; outline-offset: 1px; }
.pptxjs-tb-select, .pptxjs-tb-num { height: 30px; border: 1px solid #d6dbe6; border-radius: 5px; background: #fff; font: inherit; padding: 0 4px; }
.pptxjs-tb-num { width: 56px; }
.pptxjs-tb-color { width: 30px; height: 30px; padding: 2px; border: 1px solid #d6dbe6; border-radius: 5px; background: #fff; }
.pptxjs-tb-label { color: #6a7180; font-size: 12px; padding: 0 2px; }
.pptxjs-editor-body { display: flex; flex: 1; min-height: 0; }
.pptxjs-editor-thumbs { width: 184px; flex: none; overflow-y: auto; padding: 10px 8px; background: #eceef3; border-right: 1px solid #d0d4dc; display: flex; flex-direction: column; gap: 10px; }
.pptxjs-editor-thumbs[hidden] { display: none; }
.pptxjs-thumb { position: relative; display: flex; gap: 6px; align-items: flex-start; cursor: pointer; border-radius: 4px; padding: 2px; }
.pptxjs-thumb-num { width: 14px; text-align: right; font-size: 11px; color: #6a7180; padding-top: 2px; }
.pptxjs-thumb-frame { position: relative; overflow: hidden; background: #fff; outline: 1px solid #c8cdd8; border-radius: 2px; }
.pptxjs-thumb-frame > .slide { position: absolute; top: 0; left: 0; margin: 0; }
.pptxjs-thumb-active .pptxjs-thumb-frame { outline: 2px solid #4775d1; }
.pptxjs-thumb-hidden .pptxjs-thumb-frame { opacity: .45; }
.pptxjs-editor-stage { flex: 1; min-width: 0; overflow: auto; padding: 20px; }
.pptxjs-editor-stage > .pptxjs-viewer { height: 100%; }
.pptxjs-editor-stage .pptxjs-slide-wrap { box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pptxjs-editor-stage .pptx-shape > * { cursor: move; }
.pptxjs-editor-overlay { position: absolute; z-index: 2147483000; border: 1.5px solid #4775d1; box-sizing: border-box; cursor: move; transform-origin: 50% 50%; }
.pptxjs-editor-overlay[hidden] { display: none; }
.pptxjs-handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #4775d1; border-radius: 2px; box-sizing: border-box; }
.pptxjs-handle-nw { left: -5px; top: -5px; cursor: nwse-resize; }
.pptxjs-handle-n { left: calc(50% - 4.5px); top: -5px; cursor: ns-resize; }
.pptxjs-handle-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.pptxjs-handle-e { right: -5px; top: calc(50% - 4.5px); cursor: ew-resize; }
.pptxjs-handle-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.pptxjs-handle-s { left: calc(50% - 4.5px); bottom: -5px; cursor: ns-resize; }
.pptxjs-handle-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.pptxjs-handle-w { left: -5px; top: calc(50% - 4.5px); cursor: ew-resize; }
.pptxjs-editor-text { position: absolute; z-index: 2147483001; box-sizing: border-box; padding: 4px 6px; border: 2px solid #4775d1; border-radius: 3px; background: rgba(255,255,255,.96); resize: none; font-family: Calibri, Arial, sans-serif; line-height: 1.2; color: #111; }
