/* /WebBA/assets/pwa.css - "Install SF Portal app" banner (assets/pwa.js)
   + App lock screen (assets/app-lock.js) */

/* ---------- Android, not Chrome: one action only (assets/pwa.js) ---------- */
html.sf-need-chrome-on,
html.sf-need-chrome-on body{
  overflow:hidden !important;
}

html.sf-need-chrome-on body > *:not(#sfNeedChrome){
  visibility:hidden !important;
}

.sf-need-chrome{
  position:fixed;
  inset:0;
  z-index:2147483100;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:24px 20px calc(24px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#1F3F6B 0%,#132a4b 100%);
  color:#fff;
  text-align:center;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.sf-need-chrome img{
  width:84px;
  height:84px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.sf-need-chrome h1{
  margin:6px 0 0;
  font-size:22px;
}

.sf-need-chrome p{
  margin:0;
  max-width:320px;
  font-size:14px;
  line-height:1.5;
  color:#cbd5e1;
}

.sf-need-chrome .sf-need-chrome-go{
  display:block;
  width:100%;
  max-width:320px;
  margin-top:18px;
  padding:16px;
  border-radius:14px;
  background:#F8B020;
  color:#1F3F6B;
  font-weight:900;
  font-size:16px;
  text-decoration:none;
}

.sf-need-chrome .sf-need-chrome-help{
  display:inline-block;
  margin-top:10px;
  color:#cbd5e1;
  font-size:13px;
  font-weight:700;
}

.sf-need-chrome .sf-need-chrome-missing{
  width:100%;
  max-width:320px;
  margin-top:8px;
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
}

.sf-need-chrome .sf-need-chrome-missing[hidden]{
  display:none;
}

.sf-need-chrome .sf-need-chrome-missing p{
  margin:0 auto 6px;
  color:#fecaca;
}

.sf-need-chrome .sf-need-chrome-get{
  display:block;
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  background:#fff;
  color:#1F3F6B;
  font-weight:900;
  text-decoration:none;
}

.sf-need-chrome .sf-need-chrome-get-alt{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
}

/* ---------- App lock: hide everything until Face ID / fingerprint ---------- */
html.sf-app-locked,
html.sf-app-locked body{
  overflow:hidden !important;
  background:#1F3F6B !important;
}

html.sf-app-locked body > *:not(#sfAppLock):not(.sfsu-back):not(.sfp-toast){
  visibility:hidden !important;
}

#sfAppLock{
  position:fixed;
  inset:0;
  z-index:2147483200;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:24px 20px calc(24px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,#1F3F6B 0%,#132a4b 100%);
  color:#fff;
  text-align:center;
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

#sfAppLock img{
  width:84px;
  height:84px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

#sfAppLock h1{
  margin:6px 0 0;
  font-size:22px;
}

#sfAppLock p{
  margin:0;
  font-size:14px;
  color:#cbd5e1;
  line-height:1.5;
  max-width:320px;
}

#sfAppLock .sf-lock-who{
  color:#F8B020;
  font-weight:800;
}

#sfAppLock .sf-lock-unlock{
  margin-top:18px;
  width:100%;
  max-width:320px;
  border:0;
  border-radius:14px;
  padding:15px;
  background:#F8B020;
  color:#1F3F6B;
  font-weight:900;
  font-size:16px;
  cursor:pointer;
}

#sfAppLock .sf-lock-signout{
  border:0;
  background:none;
  color:#cbd5e1;
  font-size:14px;
  font-weight:700;
  padding:10px;
  cursor:pointer;
  text-decoration:underline;
}

#sfAppLock .sf-lock-msg{
  min-height:20px;
  color:#fecaca;
  font-size:13px;
}

.sf-install-banner{
  position:fixed;
  left:10px;
  right:10px;
  top:calc(10px + env(safe-area-inset-top));
  /* Below the open Sidebar drawer (sidebar.css). */
  z-index:2147480500;
  max-width:520px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px 10px 12px;
  border-radius:16px;
  background:#1F3F6B;
  color:#fff;
  box-shadow:0 14px 40px rgba(2,6,23,.35);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.35;
}

.sf-install-banner img{
  width:40px;
  height:40px;
  border-radius:10px;
  flex:0 0 auto;
}

.sf-install-banner .sf-install-text{
  flex:1 1 auto;
  min-width:0;
}

.sf-install-banner b{
  display:block;
  font-size:14px;
}

.sf-install-banner small{
  display:block;
  color:#cbd5e1;
  font-size:12px;
}

.sf-install-banner .sf-install-go{
  flex:0 0 auto;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  background:#F8B020;
  color:#1F3F6B;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
}

.sf-install-banner .sf-install-close{
  flex:0 0 auto;
  border:0;
  background:none;
  color:#cbd5e1;
  font-size:20px;
  line-height:1;
  padding:4px 6px;
  cursor:pointer;
}
