/* PDF sayfa düzenleyici — 0.3.11 (js/pdf_sayfa.js). İlerleme çubuğu ve sonuç kutusu pdf_parola.css'teki pp- sınıflarını kullanır. */
.ps-sec { display: block; max-width: none; margin: 0; text-align: center; box-sizing: border-box; min-height: 50px; }
.ps-orta { text-align: center; margin: 10px 0 0; }
.ps-not { margin: 8px 4px; }
.ps-ilerleme { margin-top: 14px; }
.ps-ilerleme .kucuk { margin-top: 6px; }
.ps-uyari { white-space: normal; }
.ps-parolaya { margin-top: 10px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; }
.ps-dosyalar { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ln); display: flex; flex-direction: column; gap: 8px; }
.ps-dosyalar li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; min-width: 0; }
.ps-dosyalar li .kucuk { grid-column: 2; }
.ps-harf { grid-row: span 2; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ps-dad { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }

/* Araç çubuğu: kaydırırken üstte kalır */
.ps-arac { position: sticky; top: 0; z-index: 5; margin: 0 -4px 10px; padding: 8px 4px; background: var(--bg); border-bottom: 1px solid var(--ln); }
.ps-ozet { margin: 0 4px 6px; min-height: 18px; }
.ps-dugmeler { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ps-dug { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px; border: 1px solid var(--ln); border-radius: 12px;
  background: var(--sf); color: var(--tx); font: inherit; font-size: 11px; line-height: 1.15; text-align: center; cursor: pointer; overflow-wrap: anywhere; }
.ps-dug .ps-ik { font-size: 19px; line-height: 1; }
.ps-dug:disabled { opacity: .38; cursor: default; }
.ps-dug:not(:disabled):active { background: color-mix(in srgb, var(--ac) 16%, var(--sf)); }

/* Sayfa ızgarası */
.ps-izgara { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.ps-sayfa { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: var(--sf);
  cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.ps-sayfa.ps-secik { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, var(--sf)); }
.ps-sayfa:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.ps-kutu { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--tx) 5%, transparent); }
.ps-don { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.ps-resim { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); background: #fff; pointer-events: none; }
span.ps-resim { width: 70%; height: 92%; border-radius: 2px; background: color-mix(in srgb, #fff 85%, var(--ln)); animation: ps-nabiz 1.4s ease-in-out infinite; }
span.ps-resim.ps-resimsiz { animation: none; }
@keyframes ps-nabiz { 50% { opacity: .55; } }
.ps-alt { display: flex; align-items: center; gap: 4px; min-height: 22px; flex-wrap: wrap; }
.ps-no { font-weight: 700; font-size: 15px; margin-right: auto; }
.ps-kaynak, .ps-aci { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px; color: #fff; }
.ps-kaynak.ps-gri { background: var(--ln); color: var(--tx); font-weight: 600; }
.ps-aci { background: color-mix(in srgb, var(--tx) 70%, transparent); color: var(--bg); }
.ps-tik { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--ac); color: var(--onac); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.ps-secik .ps-tik { opacity: 1; transform: none; }
.ps-sayfa.ps-yer { opacity: .3; border-style: dashed; border-color: var(--ac); }
.ps-hayalet { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; margin: 0; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); opacity: .95; border-color: var(--ac); box-sizing: border-box; }

.ps-cikti { margin-top: 14px; }
.ps-cikti .buyuk-dugme { max-width: none; display: block; }
.ps-cikti .buyuk-dugme:disabled { opacity: .45; cursor: default; }
.ps-temizle { margin-top: 14px; min-height: 44px; font: inherit; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .ps-don, .ps-tik { transition: none; } span.ps-resim { animation: none; } }
