/* Vieta loader l3 (23 Nov 2026, AD31; l2: the Vieta header strip for HTML apps that have no header of their own; l3: the "paused" card): the one loading screen for every Vieta app page, Qlik app pages and HTML apps
   alike, from the first paint through sign-in to the app being ready. Colours are CSS variables: the client's theme
   (Admin's Brand tab, or the site's theme.css) sets them. Master: Vieta\App Sign-in\loader (copy beside each site). */
.vl{position:absolute;inset:0;z-index:20;background:var(--cover-bg,#fff);color:var(--cover-ink,var(--ink,#172235));
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;
  font-family:var(--font,system-ui),system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;transition:opacity .25s ease}
.vl.vl-fixed{position:fixed;z-index:40}
.vl.out{opacity:0;pointer-events:none}
.vl[hidden]{display:none}
.vl-logo{display:block;height:var(--cover-logo-h,32px);width:auto;max-width:min(320px,80vw);margin-bottom:6px}
.vl-logo[hidden],.vl-name:empty,.vl-text:empty{display:none}
.vl-name{font-size:18px;font-weight:700;letter-spacing:.3px}
.vl-text{font-size:15px;font-weight:700;min-height:1.2em}
.vl-bar{display:block;width:160px;height:3px;background:var(--cover-track,var(--line,#E3E8EF));border-radius:2px;overflow:hidden}
.vl-bar i{display:block;width:40%;height:100%;background:var(--cover-bar,var(--accent,#00285E));border-radius:2px;animation:vlbar 1.2s ease-in-out infinite}
@keyframes vlbar{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
@media (prefers-reduced-motion:reduce){.vl-bar i{animation:none;width:100%;opacity:.5}}

/* l2: the Vieta header strip (as on the Qlik app pages): client logo, app name, who is signed in, Sign out. For HTML
   apps without a header of their own (e.g. Pulse 3.0); colours from the client's theme (Admin's Brand tab). */
.vh{background:var(--hd-bg,#00285E);color:var(--hd-ink,#fff);display:flex;align-items:center;gap:8px 28px;padding:0 24px;min-height:56px;
  box-sizing:border-box;font-family:var(--font,system-ui),system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;line-height:1.4}
.vh-brand{display:flex;align-items:center;gap:12px;min-width:0}
.vh-logo{display:block;height:var(--logo-h,34px);width:auto}
.vh-logo[hidden]{display:none}
.vh-title{border-left:1px solid var(--hd-line,rgba(255,255,255,.3));padding-left:12px;font-size:12px;font-weight:700;color:var(--hd-muted,#BFD3EA);text-transform:uppercase;letter-spacing:1.4px;white-space:nowrap}
.vh-logo[hidden]+.vh-title{border-left:0;padding-left:0}
.vh-right{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--hd-muted,#BFD3EA);white-space:nowrap}
.vh-right button{font:inherit;background:transparent;border:1px solid var(--hd-line,rgba(255,255,255,.3));color:var(--hd-ink,#fff);border-radius:6px;padding:5px 10px;cursor:pointer}
.vh-right button:hover{background:rgba(255,255,255,.08)}
@media (max-width:600px){.vh{padding:0 12px;gap:8px 14px}.vh-who{display:none}}

/* l3: the "paused" card (as on the Qlik app pages, q14): covers the app under the header strip when the connection to
   Qlik could not be restored; Continue reconnects (or reloads). Over the app, under the sign-in box (#ovl, z-index 50). */
.vp{position:fixed;left:0;right:0;bottom:0;top:0;z-index:45;background:var(--cover-bg,#F4F6F9);display:flex;align-items:center;justify-content:center;padding:24px;
  font-family:var(--font,system-ui),system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;animation:vpIn .2s ease;transition:opacity .25s ease}
.vp.out{opacity:0;pointer-events:none}
.vp-box{background:#fff;border:1px solid var(--line,#E3E8EF);border-radius:8px;padding:24px 28px;max-width:420px;text-align:center;display:flex;flex-direction:column;gap:12px;
  box-shadow:0 8px 28px rgba(16,24,40,.08);color:var(--cover-ink,var(--ink,#172235))}
.vp-logo{display:block;margin:0 auto 4px;height:var(--cover-logo-h,32px);width:auto;max-width:100%}
.vp-title{font-size:17px}
.vp-note{font-size:13px;color:var(--muted,#5E6A7D)}
.vp-btn{align-self:center;min-width:140px;font:inherit;font-size:14px;font-weight:600;padding:9px 16px;border-radius:8px;border:1px solid var(--accent,#00285E);
  background:var(--accent,#00285E);color:#fff;cursor:pointer}
.vp-btn:disabled{opacity:.7;cursor:default}
@keyframes vpIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.vp{animation:none}}
