.thapp-install{position:fixed;z-index:100;left:12px;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #002471;border-radius:18px;background:#fffffff5;box-shadow:0 8px 30px #00247122;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#002471}
.thapp-install strong,.thapp-install small{display:block}.thapp-install small{font-size:11px;color:#647086;margin-top:3px}.thapp-install>div{flex:1}.thapp-install button{border:0;border-radius:12px;padding:10px;background:#fbb60e;color:#002471;font:inherit;font-weight:700;min-height:44px;cursor:pointer}.thapp-install [data-dismiss]{font-size:24px;background:transparent;padding:5px}
.thapp-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 28px));max-height:85dvh;padding:28px;border:1px solid #002471;border-radius:24px;background:#fffffffa;color:#002471;box-shadow:0 20px 80px #00247133;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto}.thapp-dialog::backdrop{background:#00247160;backdrop-filter:blur(8px)}.thapp-dialog h2{margin:12px 30px 20px 0;font-size:24px}.thapp-close{position:absolute;right:10px;top:10px;background:none;border:0;font-size:28px;color:#002471;width:44px;height:44px;cursor:pointer}
.thapp-button{display:block;width:100%;padding:13px 14px;margin:12px 0;border:0;border-radius:14px;background:#002471;color:white;font:inherit;font-weight:700;min-height:48px;cursor:pointer}.thapp-button:disabled{opacity:.55}.thapp-button:focus-visible,.thapp-install button:focus-visible{outline:3px solid #fbb60e;outline-offset:3px}.thapp-pin-form label{display:grid;gap:8px;margin-top:14px}.thapp-pin-form input{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #002471;border-radius:12px;background:#f3f4f7;font-size:24px;text-align:center;letter-spacing:.2em;color:#002471}.thapp-feedback{padding:12px;background:#fff7dc;border-radius:12px;overflow-wrap:anywhere}.thapp-settings{width:auto;padding:8px 12px;font-size:12px;margin:0;white-space:nowrap;background:#fbb60e;color:#002471}.thapp-unlock{margin-bottom:24px;padding:18px;border:1px solid #002471;border-radius:18px;background:#f8f7f3}.thapp-unlock h2{margin:0;font-size:22px}.thapp-unlock p{font-size:13px;color:#647086}
.thapp-install-shortcut{position:fixed;z-index:100;right:12px;bottom:calc(88px + env(safe-area-inset-bottom));transition:opacity .2s ease,transform .2s ease}
.thapp-install-shortcut.is-leaving{opacity:0;transform:scale(.9) translateY(6px);pointer-events:none}
.thapp-install-shortcut-open{display:block;min-height:44px;padding:10px 16px;border:1px solid #fbb60e;border-radius:14px;background:#002471;color:#fff;box-shadow:0 6px 22px #00247122;font:650 13px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.thapp-install-shortcut-close{position:absolute;top:-9px;left:-9px;width:22px;height:22px;padding:0;display:grid;place-items:center;border:1px solid #c9ced6;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffffff 0,#eef0f3 45%,#cfd4dc 100%);box-shadow:0 2px 4px #0f172a40,0 1px 0 #ffffff inset,0 -1px 2px #0f172a1f inset;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;-webkit-tap-highlight-color:transparent}
.thapp-install-shortcut-close::before{content:"";position:absolute;inset:-11px}
.thapp-install-shortcut-close svg{width:10px;height:10px;fill:none;stroke:#dc2626;stroke-width:2.2;stroke-linecap:round}
.thapp-install-shortcut-close:hover{transform:scale(1.08)}
.thapp-install-shortcut-close:active{transform:scale(.94);box-shadow:0 1px 2px #0f172a40,0 1px 3px #0f172a26 inset}
.thapp-install-shortcut[hidden],.thapp-dialog [data-native-install][hidden]{display:none!important}
.thapp-install-shortcut-open:focus-visible,.thapp-install-shortcut-close:focus-visible{outline:3px solid #fbb60e;outline-offset:3px}
@media(display-mode:standalone){.thapp-install,.thapp-install-shortcut{display:none}}
.thapp-pin-form input:focus{outline:none;box-shadow:0 0 0 3px #00247125}

/* App login: one clear choice at a time. */
.thapp-login-screen{width:min(100%,440px);padding:26px 12px!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible;backdrop-filter:none}
.thapp-login-screen::before{display:none}
.thapp-login-screen [hidden]{display:none!important}
.thapp-login-choices{color:#002471;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.thapp-login-brand{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0 0 36px;font-size:11px;font-weight:750;letter-spacing:.22em}
.thapp-monogram{display:block;width:80px;height:80px;border-radius:24px;background:#002471 url("icon-th-rounddot-192.png") center/cover no-repeat;box-shadow:0 12px 28px #00247118;font-size:0}
.thapp-login-screen .thapp-login-choices h1{font-size:31px;line-height:1.2;letter-spacing:-1px;margin:0 0 10px;color:#002471}
.thapp-login-intro{margin:0 0 30px;color:#647086;font-size:15px;line-height:1.5}
.thapp-login-methods{display:grid;gap:12px;text-align:left}
.thapp-login-method{appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:15px;width:100%;min-height:92px;padding:18px;border:1px solid #002471;border-radius:22px;background:#fff;color:#002471;font:inherit;text-align:left;cursor:pointer;box-shadow:0 5px 16px #00247106;transition:transform .15s,box-shadow .15s}
.thapp-login-method.is-selected{background:#002471;color:#fff;border-color:#002471}
.thapp-method-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;background:#fbb60e;color:#002471}
.thapp-method-icon svg{display:block;width:29px;height:29px}
.thapp-method-copy{flex:1;min-width:0}
.thapp-method-copy strong,.thapp-method-copy small{display:block}
.thapp-method-copy strong{font-size:15px;line-height:1.35;font-weight:750;letter-spacing:-.2px}
.thapp-method-copy small{margin-top:5px;color:#647086;font-size:12px;line-height:1.4}
.thapp-login-method.is-selected .thapp-method-copy small{color:#d5deef}
.thapp-method-arrow{width:17px;height:17px;flex:0 0 17px;opacity:.65}
.thapp-login-method:active:not(:disabled){transform:scale(.98)}
.thapp-login-method:focus-visible,.thapp-login-back:focus-visible{outline:3px solid #fbb60e;outline-offset:4px}
.thapp-login-method:disabled{opacity:.5;cursor:default;box-shadow:none}
.thapp-login-status{margin:20px 6px 0;color:#647086;font-size:13px;line-height:1.6}
.thapp-login-back{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:0 0 24px;padding:10px 0;border:0;background:transparent;color:#002471;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.thapp-login-status+.thapp-login-back{margin:8px auto 0}
.thapp-credentials{padding:24px;background:#ffffffed;border:1px solid #002471;border-radius:24px;box-shadow:0 12px 30px #0024710a}
.thapp-credentials .factino-login-brand::before{content:"";background:#002471 url("icon-th-rounddot-192.png") center/cover no-repeat}
.thapp-code-dialog{padding:30px 24px}
.thapp-code-dialog>p:not(.thapp-feedback){color:#647086;font-size:14px}
@media(max-width:360px){.thapp-login-screen{padding:18px 0!important}.thapp-login-method{gap:11px;padding:14px}.thapp-method-copy strong{font-size:14px}.thapp-method-copy small{font-size:11px}.thapp-credentials{padding:20px}}
@media(prefers-reduced-motion:reduce){.thapp-login-method{transition:none}}
.thapp-standalone .factino-login-shell{background:radial-gradient(ellipse at 4% 0%,#fbb60e 0%,#fbb60e8c 19%,transparent 58%),linear-gradient(155deg,#294375 0%,#002471 58%);min-height:100dvh}
.thapp-standalone .thapp-login-brand,.thapp-standalone .thapp-login-screen .thapp-login-choices h1{color:#fff}
.thapp-standalone .thapp-login-intro,.thapp-standalone .thapp-login-status{color:#e0e7f4}
.thapp-standalone .thapp-login-status+.thapp-login-back{color:#fbb60e}
.thapp-standalone .thapp-login-method.is-selected{border-color:#fbb60e}
.thapp-logout-dialog{padding:34px 26px;text-align:center;background:linear-gradient(145deg,#fffffff2,#eef3ffd9);border-color:#ffffffb8;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 28px 80px #00153a55}
.thapp-logout-dialog h2{margin:22px 0 14px;font-size:25px;line-height:1.25}.thapp-logout-dialog>p:not(.thapp-feedback){color:#53647b;line-height:1.6}
.thapp-logout-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.thapp-logout-actions .thapp-button{margin:0}.thapp-logout-actions .thapp-logout-no{background:transparent;border:1px solid #002471;color:#002471}.thapp-logout-actions .thapp-logout-yes{background:#fbb60e;color:#002471}
.thapp-logout-dialog .thapp-close{display:grid;place-items:center;padding:0;line-height:1}
.thapp-standalone .thapp-settings{border:1px solid #002471}


/* 1.3.6 — geïnstalleerde app: inlogscherm full-bleed en zonder onnodige paginascroll */
@media(display-mode:standalone){
  html.thapp-standalone.thapp-login-active,
  html.thapp-standalone.thapp-login-active body{
    box-sizing:border-box;
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    background:#002471!important;
  }
  html.thapp-standalone.thapp-login-active .factino-login-shell{
    box-sizing:border-box!important;
    width:100vw!important;
    max-width:none!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding-left:max(14px,env(safe-area-inset-left))!important;
    padding-right:max(14px,env(safe-area-inset-right))!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-login-screen{
    box-sizing:border-box!important;
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  /* Alleen het echte formulier mag intern bewegen als een klein scherm/toetsenbord dat noodzakelijk maakt. */
  html.thapp-standalone.thapp-login-active.thapp-login-credentials-open .thapp-credentials{
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
  }
  html.thapp-standalone.thapp-login-active.thapp-login-credentials-open .thapp-credentials::-webkit-scrollbar{display:none}
}


/* 1.3.7 — login in installed app truly full-bleed, centered, and without theme gutters */
@media(display-mode:standalone){
  html.thapp-standalone.thapp-login-active,
  html.thapp-standalone.thapp-login-active body{
    background:#002471!important;
    overflow:hidden!important;
  }

  html.thapp-standalone.thapp-login-active body,
  html.thapp-standalone.thapp-login-active #page,
  html.thapp-standalone.thapp-login-active .site,
  html.thapp-standalone.thapp-login-active #content,
  html.thapp-standalone.thapp-login-active .site-content,
  html.thapp-standalone.thapp-login-active .content-area,
  html.thapp-standalone.thapp-login-active .site-main,
  html.thapp-standalone.thapp-login-active article,
  html.thapp-standalone.thapp-login-active .page,
  html.thapp-standalone.thapp-login-active .post,
  html.thapp-standalone.thapp-login-active .entry-content,
  html.thapp-standalone.thapp-login-active .inside-article,
  html.thapp-standalone.thapp-login-active .page-content,
  html.thapp-standalone.thapp-login-active .content,
  html.thapp-standalone.thapp-login-active .container,
  html.thapp-standalone.thapp-login-active .container-fluid,
  html.thapp-standalone.thapp-login-active .grid-container,
  html.thapp-standalone.thapp-login-active .wrapper,
  html.thapp-standalone.thapp-login-active .wrap{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }

  html.thapp-standalone.thapp-login-active .site-header,
  html.thapp-standalone.thapp-login-active header,
  html.thapp-standalone.thapp-login-active .entry-header,
  html.thapp-standalone.thapp-login-active .page-header,
  html.thapp-standalone.thapp-login-active footer,
  html.thapp-standalone.thapp-login-active .site-footer,
  html.thapp-standalone.thapp-login-active .sidebar,
  html.thapp-standalone.thapp-login-active aside,
  html.thapp-standalone.thapp-login-active nav:not(.factino-login-card nav){
    display:none!important;
  }

  html.thapp-standalone.thapp-login-active .factino-login-shell{
    box-sizing:border-box!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    width:100vw!important;
    max-width:100vw!important;
    min-height:100dvh!important;
    height:100dvh!important;
    margin:0 auto!important;
    padding-top:max(12px, env(safe-area-inset-top))!important;
    padding-right:max(12px, env(safe-area-inset-right))!important;
    padding-bottom:max(12px, env(safe-area-inset-bottom))!important;
    padding-left:max(12px, env(safe-area-inset-left))!important;
    overflow:hidden!important;
    background:radial-gradient(ellipse at 4% 0%,#fbb60e 0%,#fbb60e8c 19%,transparent 58%),linear-gradient(155deg,#294375 0%,#002471 58%)!important;
  }

  html.thapp-standalone.thapp-login-active .factino-login-shell > *{
    margin-left:auto!important;
    margin-right:auto!important;
  }

  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-login-screen{
    width:min(100%, 440px)!important;
    max-width:440px!important;
    margin:0 auto!important;
    padding:26px 0!important;
    align-self:center!important;
  }

  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-login-screen,
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-login-screen > *{
    box-sizing:border-box!important;
  }
}


/* 1.4.1 — login methods slightly narrower again, same height */
.thapp-login-methods{
  justify-items:center;
}
.thapp-login-method{
  width:min(330px,calc(100% - 24px));
  min-height:84px;
  padding:16px 18px 16px 16px;
  gap:13px;
  margin:0 auto;
}
.thapp-method-icon{
  flex:0 0 46px;
  width:46px;
  height:46px;
}
.thapp-method-icon svg{
  width:27px;
  height:27px;
}
.thapp-method-arrow{
  margin-left:auto;
  width:16px;
  height:16px;
  flex:0 0 16px;
}
@media(max-width:360px){
  .thapp-login-method{
    width:min(316px,calc(100% - 12px));
    min-height:84px;
  }
}




/* 1.4.5 — credentials login screen compact, readable and without extra scroll */
.thapp-credentials{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
  overflow:hidden!important;
}
.thapp-credentials > .factino-login-brand,
.thapp-credentials > h1,
.thapp-credentials > h2,
.thapp-credentials > .factino-login-intro,
.thapp-credentials > .factino-login-copy,
.thapp-credentials > .factino-login-help,
.thapp-credentials > p:not(.factino-notice-error):not(.factino-notice-success):not(.factino-notice){
  display:none!important;
}
.thapp-credentials-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:4px 0 2px;
  text-align:center;
  color:#fff;
  font-size:10px;
  font-weight:760;
  letter-spacing:.24em;
}
.thapp-credentials-brand .thapp-monogram{
  width:80px;
  height:80px;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(0,24,79,.2);
}
.thapp-credentials-hero{
  margin:4px 0 2px;
  text-align:center;
  color:#fff;
}
.thapp-credentials-hero h2{
  margin:0;
  color:#fff;
  font-size:23px;
  line-height:1.15;
  letter-spacing:-.5px;
}
.thapp-credentials-hero p{
  margin:12px auto 0;
  max-width:306px;
  color:#edf2fb;
  font-size:14px;
  line-height:1.45;
}
.thapp-credentials .thapp-login-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:auto;
  min-height:44px;
  margin:4px auto 10px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  color:#fbb60e;
  font-size:14px;
  font-weight:760;
  line-height:1;
  box-shadow:0 8px 18px rgba(0,19,70,.14);
  backdrop-filter:blur(10px);
}
.thapp-credentials .thapp-login-back:hover{
  background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.1));
}
.thapp-credentials .factino-login-form,
.thapp-credentials form{
  box-sizing:border-box;
  width:100%;
  margin:0!important;
  padding:20px!important;
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(0,36,113,.55)!important;
  border-radius:24px!important;
  box-shadow:0 18px 38px rgba(0,20,65,.16)!important;
  color:#002471!important;
}
.thapp-credentials .factino-login-form label,
.thapp-credentials form label{
  display:block;
  margin:0 0 9px;
  color:#002471!important;
  font-size:14px;
  font-weight:760;
  letter-spacing:.01em;
}
.thapp-credentials .factino-login-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.thapp-credentials form input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.thapp-credentials .factino-login-form select,
.thapp-credentials form select{
  box-sizing:border-box;
  width:100%;
  min-height:50px;
  padding:13px 16px;
  border:1.5px solid rgba(0,36,113,.26)!important;
  border-radius:16px!important;
  background:#f6f8fc!important;
  color:#10274f!important;
  box-shadow:inset 0 1px 2px rgba(0,20,65,.04);
}
.thapp-credentials .factino-login-form input:focus,
.thapp-credentials form input:focus,
.thapp-credentials .factino-login-form select:focus,
.thapp-credentials form select:focus{
  outline:none;
  border-color:#002471!important;
  box-shadow:0 0 0 4px rgba(0,36,113,.1);
}
.thapp-credentials .factino-login-form button,
.thapp-credentials form button,
.thapp-credentials .factino-login-form input[type=submit],
.thapp-credentials form input[type=submit]{
  box-sizing:border-box;
  width:100%;
  min-height:52px;
  padding:14px 18px;
  border:1px solid #f0a900!important;
  border-radius:17px!important;
  background:#002471!important;
  color:#fff!important;
  font-size:16px;
  font-weight:780;
  letter-spacing:-.2px;
  box-shadow:0 12px 24px rgba(0,28,85,.14);
}
.thapp-credentials .factino-login-form button:hover,
.thapp-credentials form button:hover,
.thapp-credentials .factino-login-form input[type=submit]:hover,
.thapp-credentials form input[type=submit]:hover{
  transform:translateY(-1px);
}
.thapp-credentials .factino-login-form p,
.thapp-credentials form p,
.thapp-credentials .factino-login-copy,
.thapp-credentials .factino-login-help{
  color:#4f6381!important;
  font-size:13px;
  line-height:1.4;
}
.thapp-credentials .factino-login-form a,
.thapp-credentials form a,
.thapp-credentials a{
  color:#002471!important;
  font-weight:720;
}
.thapp-credentials .factino-notice-error,
.thapp-credentials .factino-notice-success,
.thapp-credentials .factino-notice,
.thapp-credentials .message,
.thapp-credentials .error{
  margin:0 0 12px!important;
  border-radius:16px!important;
}
@media(max-width:360px){
  .thapp-credentials{gap:10px}
  .thapp-credentials-brand .thapp-monogram{width:68px;height:68px;border-radius:21px}
  .thapp-credentials-hero h2{font-size:21px}
  .thapp-credentials-hero p{font-size:13px;line-height:1.38}
  .thapp-credentials .thapp-login-back{font-size:13px;padding:8px 12px;margin-bottom:6px}
  .thapp-credentials .factino-login-form,
  .thapp-credentials form{padding:18px!important}
}

/* 1.4.3 — clear, compact forgot-password / static auth screen */
.thapp-auth-static{
  width:min(100%,440px);
  padding:26px 0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:hidden;
  color:#fff;
}
.thapp-auth-static .factino-login-brand{display:none!important}
.thapp-auth-static h1,
.thapp-auth-static h2,
.thapp-auth-static h3{
  margin-left:0!important;
  margin-right:0!important;
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,22,70,.18);
}
.thapp-auth-static > p,
.thapp-auth-static .factino-login-intro,
.thapp-auth-static .factino-login-copy,
.thapp-auth-static .factino-login-help{
  color:#e8eef9!important;
}
.thapp-auth-static form,
.thapp-auth-static .factino-login-form{
  box-sizing:border-box;
  margin-top:24px!important;
  padding:24px!important;
  background:#ffffffF7!important;
  border:1px solid rgba(0,36,113,.55)!important;
  border-radius:24px!important;
  box-shadow:0 16px 38px rgba(0,25,73,.18)!important;
  color:#002471!important;
}
.thapp-auth-static form label,
.thapp-auth-static .factino-login-form label{
  color:#002471!important;
}
.thapp-auth-static form input,
.thapp-auth-static .factino-login-form input{
  color:#10274f!important;
  background:#f7f9fc!important;
}
.thapp-auth-static form button,
.thapp-auth-static .factino-login-form button{
  color:#fff!important;
}
.thapp-auth-static a{
  color:#fbb60e!important;
}
@media(display-mode:standalone){
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-auth-static{
    width:min(100%,440px)!important;
    max-width:440px!important;
    margin:0 auto!important;
    padding-left:18px!important;
    padding-right:18px!important;
    align-self:center!important;
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)!important;
    overflow:hidden!important;
  }
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-auth-static form,
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-auth-static .factino-login-form{
    max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 80px)!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none;
  }
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-auth-static form::-webkit-scrollbar,
  html.thapp-standalone.thapp-login-active .factino-login-card.thapp-auth-static .factino-login-form::-webkit-scrollbar{display:none}
}


/* 1.4.8 — account-login wording and visible password-reset link */
.thapp-credentials .thapp-forgot-link{
  display:block!important;
  flex:0 0 auto;
  width:fit-content;
  margin:4px auto 0!important;
  padding:6px 10px;
  color:#fff!important;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
  text-align:center;
  text-decoration:none!important;
  text-shadow:0 1px 2px rgba(0,19,70,.24);
  opacity:1!important;
  visibility:visible!important;
}
.thapp-credentials .thapp-forgot-link:hover,
.thapp-credentials .thapp-forgot-link:focus-visible{
  color:#fbb60e!important;
  text-decoration:underline;
}


/* 1.4.10 — identical selected styling for all three login methods */
.thapp-login-method.is-selected,
.thapp-method-biometric.is-selected,
.thapp-method-pin.is-selected,
.thapp-method-account.is-selected{
  background:#002471!important;
  color:#fff!important;
  border:1.5px solid #fbb60e!important;
  box-shadow:0 8px 22px rgba(0,24,78,.14)!important;
}
.thapp-login-method.is-selected .thapp-method-copy small,
.thapp-method-biometric.is-selected .thapp-method-copy small,
.thapp-method-pin.is-selected .thapp-method-copy small,
.thapp-method-account.is-selected .thapp-method-copy small{
  color:#d5deef!important;
}


/* 1.4.11 — selected login method: force identical yellow ring, suppress theme/native focus ring */
.thapp-login-method.is-selected,
.thapp-method-biometric.is-selected,
.thapp-method-pin.is-selected,
.thapp-method-account.is-selected{
  border-color:#fbb60e!important;
  outline:none!important;
  box-shadow:0 0 0 2px #fbb60e inset,0 8px 22px rgba(0,24,78,.14)!important;
}
.thapp-login-method.is-selected:focus,
.thapp-login-method.is-selected:focus-visible,
.thapp-method-biometric.is-selected:focus,
.thapp-method-biometric.is-selected:focus-visible,
.thapp-method-pin.is-selected:focus,
.thapp-method-pin.is-selected:focus-visible,
.thapp-method-account.is-selected:focus,
.thapp-method-account.is-selected:focus-visible{
  outline:none!important;
  border-color:#fbb60e!important;
  box-shadow:0 0 0 2px #fbb60e inset,0 8px 22px rgba(0,24,78,.14)!important;
}


/* 1.5.6 — adaptieve scrollvrijgave op kleine schermen / bij toetsenbord.
   De vaste app-layout blijft behouden zolang alles past. Zodra JS constateert
   dat verticale ruimte nodig is, krijgt native touch-scroll tijdelijk voorrang. */
@media(display-mode:standalone){
  html.thapp-standalone.thapp-scroll-needed,
  html.thapp-standalone.thapp-scroll-needed body{
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-x:none!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch;
  }
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .factino-login-shell{
    height:auto!important;
    min-height:max(100dvh,var(--thapp-visible-height,100dvh))!important;
    overflow:visible!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
    align-items:flex-start!important;
    padding-bottom:max(28px,env(safe-area-inset-bottom))!important;
  }
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .factino-login-card.thapp-login-screen,
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .factino-login-card.thapp-auth-static,
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .thapp-credentials,
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .factino-login-card.thapp-auth-static form,
  html.thapp-standalone.thapp-scroll-needed.thapp-login-active .factino-login-card.thapp-auth-static .factino-login-form{
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y!important;
  }
  /* Ook buiten het inlogscherm mag een actieve formulierinteractie nooit door
     een oude body-lock worden vastgezet. */
  html.thapp-standalone.thapp-scroll-needed body{
    position:static!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
  }
}

/* 1.6.3 – Scrollen in de geïnstalleerde app altijd vrijgeven buiten het inlogscherm.
   Een oude body-lock (van een thema, een andere plugin of een vergeten class) mag de app nooit
   vastzetten. De bewuste vergrendelingen van Thinvoice Boekhouding (alles past al op het scherm)
   blijven werken. */
@media (display-mode: standalone){
  html.thapp-standalone:not(.thapp-login-active):not(.thapp-private):not(.fbk-mobile-page-fixed):not(.fbk-expense-collapsed-lock),
  html.thapp-standalone:not(.thapp-login-active):not(.thapp-private):not(.fbk-mobile-page-fixed):not(.fbk-expense-collapsed-lock) body{
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    position:static!important;
    touch-action:pan-x pan-y pinch-zoom!important;
    overscroll-behavior-y:auto!important;
  }
  html.thapp-standalone:not(.thapp-login-active):not(.thapp-private) body{top:auto!important}
}
