/* NovoGov installation UI — isolated from the existing WebForms login layout. */
.novo-pwa-login-entry { text-align:center; margin-top:10px; }
.novo-pwa-login-trigger {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:5px 12px; font:inherit; font-size:12px; line-height:1.4;
  color:#285976; background:transparent; border:1px solid #cbd8df;
  border-radius:18px; cursor:pointer;
}
.novo-pwa-login-trigger:hover { background:#eef5f9; border-color:#9bb6c5; }
.novo-pwa-login-trigger:focus-visible,
.novo-pwa-login-overlay button:focus-visible { outline:3px solid #5d9cc6; outline-offset:2px; }
.novo-pwa-login-overlay[hidden], .novo-pwa-login-overlay [hidden] { display:none !important; }
.novo-pwa-login-overlay {
  position:fixed !important; inset:0 !important; z-index:2147483600 !important;
  padding:18px; margin:0; box-sizing:border-box; background:rgba(17,33,45,.60);
  display:flex; align-items:flex-start; justify-content:center;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
}
.novo-pwa-login-dialog, .novo-pwa-login-dialog * { box-sizing:border-box; }
.novo-pwa-login-dialog {
  position:relative; display:block; flex:none; width:100%; max-width:420px; min-height:0;
  margin:auto; padding:22px 25px 17px; overflow:visible;
  color:#17323f; background:white; border-radius:13px;
  box-shadow:0 20px 55px rgba(0,0,0,.28); font-family:'Source Sans Pro',Arial,sans-serif;
  font-size:14px; line-height:1.4; text-align:center;
}
.novo-pwa-login-dialog h2 { font-size:21px; font-weight:600; line-height:1.2; margin:0 70px 7px 0; text-align:left; }
.novo-pwa-login-dialog p { font-size:14px; line-height:1.4; margin:7px 0; }
.novo-pwa-login-dialog #novo-pwa-description { color:#536b77; font-size:13px; text-align:left; margin-bottom:14px; }
.novo-pwa-login-close {
  position:absolute; right:14px; top:13px; display:inline-flex; align-items:center; gap:4px;
  padding:4px 5px; font:inherit; color:#4c6270; border:0; background:transparent;
  cursor:pointer; font-size:12px; line-height:1.2;
}
.novo-pwa-login-close span:first-child { font-size:21px; line-height:1; }
.novo-pwa-login-install-section { background:#f2f7f9; border:1px solid #dbe7ed; border-radius:9px; padding:13px 15px; }
.novo-pwa-login-instructions { color:#2e5368; }
.novo-pwa-login-primary { display:inline-block; margin:10px auto 0; padding:9px 20px; cursor:pointer; font:inherit; font-weight:600; color:white; background:#225d79; border:1px solid #225d79; border-radius:7px; }
.novo-pwa-login-primary:hover { background:#18485f; }
.novo-pwa-login-feedback { min-height:0; color:#2e657d; font-size:12px!important; }
.novo-pwa-login-feedback:empty { display:none; }
.novo-pwa-login-share-section { margin-top:14px; padding-top:13px; border-top:1px solid #e5ebee; text-align:left; }
.novo-pwa-login-share-toggle {
  display:flex; gap:9px; align-items:center; justify-content:flex-start;
  width:100%; padding:9px 11px; background:#fff; border:1px solid #cbd8df; border-radius:8px;
  cursor:pointer; color:#225d79; font:inherit; font-weight:600; text-align:left;
}
.novo-pwa-login-share-toggle:hover { background:#f3f8fa; }
.novo-pwa-login-chevron { margin-left:auto; color:#607985; font-size:17px; line-height:1; }
.novo-pwa-login-share-toggle[aria-expanded="true"] .novo-pwa-login-chevron { transform:rotate(180deg); }
.novo-pwa-login-share-panel { text-align:center; padding:9px 5px 3px; }
.novo-pwa-login-share-panel > p:first-child { color:#415e6e; font-size:13px; margin:5px 0 7px; }
.novo-pwa-login-qr {
  display:flex; align-items:center; justify-content:center; margin:8px auto 6px;
  width:182px; height:182px; max-width:100%; border:1px solid #e1e8eb;
  border-radius:8px; background:white; padding:7px;
}
.novo-pwa-login-qr svg { width:100%; max-width:166px; height:auto; display:block; }
.novo-pwa-login-url { color:#536e7b; word-break:break-all; font-family:Consolas,monospace; font-size:11px!important; margin:6px 0!important; }
.novo-pwa-login-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin-top:9px; }
.novo-pwa-login-secondary {
  padding:7px 12px; cursor:pointer; font:inherit; font-size:13px; color:#225d79;
  background:#fff; border:1px solid #aac2cf; border-radius:6px;
}
.novo-pwa-login-done {
  display:block; width:100%; margin:15px auto 0; padding:9px 12px; cursor:pointer;
  border:0; border-radius:7px; font:inherit; color:#3d5968; background:#edf2f5;
}
.novo-pwa-login-done:hover { background:#e1eaef; }
@media(max-width:440px) {
  .novo-pwa-login-overlay { padding:12px; }
  .novo-pwa-login-dialog { padding:19px 16px 15px; }
  .novo-pwa-login-dialog h2 { font-size:20px; }
}

/* Icon reminder after confirmed installation. Scoped to PWA login elements only. */
.novo-pwa-login-trigger[hidden], .novo-pwa-login-installed[hidden] { display:none !important; }
.novo-pwa-icon-guide {
  display:flex; align-items:center; gap:12px; margin:12px 0 0;
  padding:9px 10px; background:#fff; border:1px solid #e4edf1;
  border-radius:9px; text-align:left;
}
.novo-pwa-icon-guide img { display:block; width:49px; height:49px; flex:none; object-fit:contain; border-radius:10px; }
.novo-pwa-icon-guide p { margin:0 !important; font-size:13px !important; color:#314b59; line-height:1.35; }
.novo-pwa-login-installed {
  display:flex; align-items:center; gap:10px; width:100%; max-width:300px;
  margin:8px auto 0; padding:9px 10px; border-radius:10px;
  background:#f3f8fb; border:1px solid #dbe8ef;
  color:#28546a; font:12px/1.4 'Source Sans Pro',Arial,sans-serif;
  box-sizing:border-box; text-align:left;
}
.novo-pwa-login-installed img { width:46px; height:46px; flex:0 0 46px; object-fit:contain; border-radius:9px; }
.novo-pwa-login-installed-copy { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.novo-pwa-login-installed-copy strong { font-weight:700; font-size:12px; color:#20485e; }
.novo-pwa-login-installed-share {
  display:inline-block; align-self:flex-start; margin:2px 0 0; padding:1px 0;
  color:#1b6c9b; font:12px/1.4 'Source Sans Pro',Arial,sans-serif;
  border:0; background:transparent; text-decoration:underline; cursor:pointer;
}
.novo-pwa-login-installed-share:hover { color:#124768; }
.novo-pwa-login-installed-share:focus-visible { outline:2px solid #5d9cc6; outline-offset:2px; }
@media (max-width:340px) {
  .novo-pwa-icon-guide {gap:8px; padding:8px;}
  .novo-pwa-icon-guide img {width:42px;height:42px;}
  .novo-pwa-login-install-section { padding:10px; }
  .novo-pwa-login-installed { padding:8px; gap:8px; }
  .novo-pwa-login-installed img { width:40px; height:40px; flex-basis:40px; }
}

/* In the installed Home-screen app: only the QR-sharing action and QR panel.
   Do not display any "already installed" guide or install prompt. */
.novo-pwa-login-share-trigger[hidden] { display:none !important; }
.novo-pwa-login-overlay.novo-pwa-standalone-share-mode .novo-pwa-login-share-toggle { display:none !important; }
.novo-pwa-login-overlay.novo-pwa-standalone-share-mode .novo-pwa-login-share-section {
  margin-top:0; padding-top:0; border-top:0;
}

/* Minimal additions: hide empty helper text, and show the Safari guide only on iOS. */
.novo-pwa-login-instructions:empty, .novo-pwa-login-dialog #novo-pwa-description:empty { display:none !important; }
.novo-pwa-ios-guide { margin:12px auto 5px; max-width:310px; }
.novo-pwa-ios-guide img { display:block; width:100%; height:auto; border-radius:8px; }
