/* Evrak Plus 2.7.6 – compact, unobtrusive app installation in the header */
.evp-pwa-bottom{display:none}
.evp-pwa-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center;padding:8px 12px}
.evp-pwa-tools button{background:#eaf1ff;color:#173b7b;border:1px solid #c7d8f8;border-radius:9px;padding:9px 12px;font:600 13px system-ui;cursor:pointer}
.evp-pwa-tools button[hidden]{display:none!important}
@media(max-width:850px){
 body.evp-pwa-on{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
 .evp-pwa-bottom{position:fixed;inset:auto 0 0;z-index:80;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#fff;border-top:1px solid #dce4f0;box-shadow:0 -5px 25px #162d4a16;padding-bottom:env(safe-area-inset-bottom,0px)}
 .evp-pwa-bottom a{display:flex;min-width:0;min-height:63px;gap:3px;align-items:center;justify-content:center;flex-direction:column;text-decoration:none;color:#3c5272;font:600 10px/1.25 system-ui;padding:7px 2px;text-align:center}
 .evp-pwa-bottom a[aria-current="page"]{color:#2058c9;background:#edf4ff}
 .evp-pwa-bottom svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .evp-pwa-bottom span{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
/* 2.7.2: always show manual installation help when native install is unavailable. */
.evp-pwa-guide[hidden]{display:none!important}
.evp-pwa-guide{position:fixed;inset:0;background:rgba(14,30,54,.68);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.evp-pwa-guide-panel{background:#fff;color:#172b47;width:min(100%,470px);padding:24px;border-radius:16px;box-shadow:0 18px 55px #091c3a44;font-family:system-ui,sans-serif}
.evp-pwa-guide-panel h2{font-size:1.2rem;line-height:1.3;margin:0 0 12px}
.evp-pwa-guide-panel p{font-size:.95rem;line-height:1.6;margin:0 0 18px}
.evp-pwa-guide-close{border:0;border-radius:9px;background:#174a9a;color:#fff;font:600 14px system-ui;padding:10px 18px;cursor:pointer}
@media(max-width:760px){.evp-pwa-tools{padding:10px 12px}}

/* 2.7.5: Header placement. Unlike a floating banner, this never covers content. */
.evp-pwa-install-header{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:38px;padding:7px 11px;background:#eaf2ff;color:#174b9b;border:1px solid #c7d8f8;border-radius:10px;font:700 12px/1.1 system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.evp-pwa-install-header:hover{background:#dceafd;border-color:#97b8ee}
.evp-pwa-install-header:focus-visible{outline:3px solid #e6ac35;outline-offset:2px}
.evp-pwa-install-header svg{display:block;flex:none}
/* 6.9: Desktop browsers also expose an install control when PWA is enabled. */
/* Keep the action understandable: text remains visible even on small phones. */
@media(max-width:540px){.evp-pwa-install-header{font-size:11px;padding:7px 9px;gap:5px}.evp-pwa-install-header svg{width:15px;height:15px}.wpipc-header-actions{gap:5px}}
@media(max-width:410px){.brand img{max-width:104px}.evp-pwa-install-header{font-size:10px;padding:7px 6px;gap:3px}.wpipc-profile{padding:7px;min-width:34px;min-height:38px}.wpipc-menu-toggle{width:38px;height:38px}.header-inner{gap:5px}}
@media(max-width:350px){.evp-pwa-install-header svg{display:none}.evp-pwa-install-header{padding:7px 5px}}
@media(prefers-reduced-motion:reduce){.evp-pwa-install-header{transition:none}}

/* 2.7.6 - clear app-install CTA, without overlay or animation. */
.evp-pwa-install-header{background:#1755bd;color:#fff;border-color:#1755bd;box-shadow:none}
.evp-pwa-install-header:hover{background:#123f91;color:#fff;border-color:#123f91}

/* 6.9.0: Honor native hidden state in all viewport sizes, even with earlier display rules. */
.evp-pwa-install-header[hidden],.evp-pwa-bottom[hidden],.evp-pwa-tools button[hidden],.evp-pwa-guide[hidden]{display:none!important}
.evp-pwa-notify-status{font-size:12px;color:#3a567b;text-align:center}
@media(max-width:850px){
 body.evp-pwa-on{padding-bottom:calc(83px + env(safe-area-inset-bottom,0px))}
 .evp-pwa-bottom a{min-height:67px;padding:8px 2px;touch-action:manipulation}
 .evp-pwa-bottom span{white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15;font-size:10px}
 .evp-pwa-bottom a:focus-visible{outline:3px solid #e7a939;outline-offset:-3px}
}

@media(min-width:851px){.evp-pwa-install-header{display:inline-flex;min-height:40px;font-size:12px}}
