/* Keskele paigutatud kuni 900 px PDF-aken */
dialog.hk-pdf-popup{position:fixed!important;inset:0!important;box-sizing:border-box;width:var(--hk-pdf-width,900px)!important;max-width:calc(100vw - 24px)!important;height:var(--hk-pdf-height,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:auto!important;padding:0!important;border:0!important;border-radius:8px!important;background:#f0faf1!important;color:#17231a!important;overflow:hidden!important;box-shadow:0 16px 70px #0008;z-index:2147483647}dialog.hk-pdf-popup[open]{display:block!important}dialog.hk-pdf-popup::backdrop{background:rgba(0,0,0,.55)}
.hk-pdf-popup .hk-pdf-panel{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;padding:0;margin:0;background:#f0faf1;overflow:hidden}
/* Õrnroheline päis; minimeerimine ja sulgemine */
.hk-pdf-popup .hk-pdf-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;box-sizing:border-box;gap:8px;min-height:40px;padding:4px 6px 4px 12px;background:#f0faf1;color:#17231a}.hk-pdf-popup .hk-pdf-title{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:15px/24px system-ui,sans-serif;color:#17231a!important}.hk-pdf-popup .hk-pdf-tools{display:flex;flex-shrink:0;gap:4px}
.hk-pdf-popup .hk-pdf-tools button{position:static!important;display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:1px solid #bdd8c0!important;border-radius:4px;background:transparent!important;color:#286b36!important;font:22px/1 Arial,sans-serif!important;box-shadow:none!important;cursor:pointer;transform:none!important}.hk-pdf-popup .hk-pdf-tools button:hover{background:#fff!important}.hk-pdf-popup .hk-pdf-tools button:focus-visible{outline:2px solid #286b36;outline-offset:1px}.hk-pdf-popup .hk-pdf-tools button.hk-pdf-close:hover{color:#a02020!important;border-color:#a02020!important}
/* Brauseri PDF-vaatur ja alati kättesaadav eraldi avamise link */
.hk-pdf-popup iframe.hk-pdf-frame{display:block!important;flex:1 1 0;min-height:0;box-sizing:border-box;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:#fff;transform:none!important}.hk-pdf-popup .hk-pdf-footer{flex-shrink:0;padding:5px 10px;font:12px/1.5 system-ui,sans-serif;color:#314a35;background:#f0faf1}.hk-pdf-popup .hk-pdf-footer a{color:#286b36!important;text-decoration:underline}
/* Minimeeritud olekus jääb alles päiseriba */
dialog.hk-pdf-popup[data-state=minimized]{inset:auto 16px 16px auto!important;margin:0!important;width:340px!important;height:auto!important;max-width:calc(100vw - 24px)!important}.hk-pdf-popup[data-state=minimized] .hk-pdf-frame,.hk-pdf-popup[data-state=minimized] .hk-pdf-footer{display:none!important}
@media(max-width:600px){.hk-pdf-popup .hk-pdf-header{min-height:44px;padding:4px 5px 4px 10px}.hk-pdf-popup .hk-pdf-tools button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}.hk-pdf-popup .hk-pdf-title{font-size:14px}dialog.hk-pdf-popup[data-state=minimized]{right:12px!important;bottom:12px!important}}
