/* v4.3.2 — Uygulama içi PDF araç çubuğu ve tablet menü kapatma düzeltmesi */
.patoz-pdf-viewer{position:fixed;inset:0;z-index:30000;background:#f3f1f8;display:grid;grid-template-rows:auto 1fr}
.patoz-pdf-viewer[hidden]{display:none!important}
.patoz-pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:calc(8px + env(safe-area-inset-top,0px)) 12px 8px;background:#fff;border-bottom:1px solid #ddd7e8;box-shadow:0 2px 10px rgba(33,20,58,.08)}
.patoz-pdf-toolbar strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.patoz-pdf-actions{display:flex;align-items:center;gap:7px}
.patoz-pdf-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:38px;padding:0 11px;border:1px solid #ded8e8;border-radius:10px;background:#fff;color:#37284d;font:700 12px/1 system-ui;cursor:pointer}
.patoz-pdf-actions .patoz-pdf-close{width:38px;padding:0;font-size:27px;font-weight:400}
.patoz-pdf-viewer iframe{width:100%;height:100%;border:0;background:#e9e6ee}
body.pdf-viewer-open{overflow:hidden!important}
@media(max-width:560px){.patoz-pdf-toolbar{min-height:52px}.patoz-pdf-actions button span{display:none}.patoz-pdf-actions button{width:38px;padding:0;font-size:16px}}
@media(min-width:768px) and (max-width:1366px){
 html:not(.patoz-login-first) #app.app-shell.host-app>.host-sidebar .mobile-drawer-close{
  top:calc(12px + env(safe-area-inset-top,0px))!important;right:12px!important;left:auto!important;
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;
  border-radius:10px!important;background:#fff!important;border:1px solid #ded8e8!important;box-shadow:0 2px 8px rgba(47,28,106,.08)!important;
 }
 html:not(.patoz-login-first) #app.app-shell.host-app>.host-sidebar .mobile-drawer-close svg{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important}
 html:not(.patoz-login-first) #app.app-shell.host-app>.host-sidebar .host-brand{padding-right:58px!important;min-height:62px!important}
}

/* v4.3.2 — PWA app-shell PDF görüntüleyici görünürlük düzeltmesi */
.patoz-pdf-viewer:not([hidden]){display:grid!important;visibility:visible!important;opacity:1!important}
.patoz-pdf-status{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);padding:12px 16px;border-radius:12px;background:#fff;color:#37284d;box-shadow:0 8px 30px rgba(33,20,58,.18);font:700 13px/1.3 system-ui}
.patoz-pdf-status[hidden]{display:none!important}
.patoz-pdf-viewer iframe{position:relative;z-index:1}

/* v4.3.2 — iOS uyumlu kapat, paylaş ve yazdır ikon sistemi */
.ios-action-icon{width:22px!important;height:22px!important;display:block!important;flex:0 0 22px;overflow:visible;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.patoz-pdf-actions button{color:#007aff!important}
.patoz-pdf-actions .patoz-pdf-close{color:#1c1c1e!important;font-size:initial!important}
.icon-btn .ios-action-icon,.mobile-customer-close .ios-action-icon,.job-pause-close .ios-action-icon,.support-detail-close .ios-action-icon,.mobile-drawer-close .ios-action-icon{width:20px!important;height:20px!important}
button[aria-label="Kapat"]{line-height:1!important}


/* v4.3.9 — açılış ekranında kullanıcı onaylı PWA güncellemesi */
.pwa-opening-update{position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;padding:calc(22px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px));background:rgba(73,34,188,.26);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.pwa-opening-update[hidden]{display:none!important}
.pwa-opening-update-card{width:min(430px,100%);max-height:min(620px,calc(var(--pd-app-height,100dvh) - 44px));overflow:auto;-webkit-overflow-scrolling:touch;background:#fff;color:#2e2544;border-radius:24px;padding:24px;box-shadow:0 22px 60px rgba(34,15,94,.32);text-align:left}
.pwa-opening-update-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#eee8ff;color:#6036cf;font-size:12px;font-weight:800}
.pwa-opening-update-card h2{margin:15px 0 7px;font-size:23px;line-height:1.18;color:#2e2544}
.pwa-opening-update-card>p{margin:0 0 15px;color:#70677f;font-size:14px;line-height:1.45}
.pwa-opening-update-features{display:grid;gap:9px;margin:0 0 19px;padding:0;list-style:none}
.pwa-opening-update-features li{position:relative;padding:11px 12px 11px 38px;border:1px solid #e8e1f7;border-radius:14px;background:#faf8ff;font-size:14px;line-height:1.35;color:#453b57}
.pwa-opening-update-features li:before{content:'✓';position:absolute;left:13px;top:10px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:#673de6;color:#fff;font-size:11px;font-weight:900}
.pwa-opening-update-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pwa-opening-update-actions button{min-height:48px;border-radius:14px;border:1px solid #d8ccef;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.pwa-opening-update-continue{background:#fff;color:#564d65}
.pwa-opening-update-now{background:#673de6;color:#fff;border-color:#673de6!important}
.pwa-opening-update-actions button:disabled{opacity:.62;cursor:wait}
.pwa-opening-update-progress{margin-top:13px;font-size:13px;color:#655b73;text-align:center}
@media(max-width:430px){.pwa-opening-update-card{padding:20px;border-radius:21px}.pwa-opening-update-card h2{font-size:21px}.pwa-opening-update-actions{grid-template-columns:1fr}}

/* v4.3.9 — güncelleme kararı ilk uygulama katmanında alınır */
.pwa-opening-check-status{margin-top:28px;color:rgba(255,255,255,.9);font-size:14px;font-weight:700;letter-spacing:.01em;text-align:center}
#splash .splash-loader[hidden],#splash .splash-credit[hidden],#pwaOpeningCheckStatus[hidden]{display:none!important}
#pwaOpeningUpdate{background:rgba(68,30,177,.42);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#pwaOpeningUpdate .pwa-opening-update-card{margin-top:calc(78px + env(safe-area-inset-top,0px));max-height:calc(var(--pd-app-height,100dvh) - 150px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
@media(max-width:430px){.pwa-opening-check-status{margin-top:24px;font-size:13px}#pwaOpeningUpdate .pwa-opening-update-card{margin-top:calc(62px + env(safe-area-inset-top,0px));max-height:calc(var(--pd-app-height,100dvh) - 118px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}
