/* Business Control Manager — Web Executive shell (login + app bar). External stylesheet only (strict CSP: no inline styles). */
/* --header-h: a safe, realistic FALLBACK only, used until app.js's syncHeaderHeight() measures the
   real, currently-rendered .sh-bar and overwrites this with the true value (Live UAT correction
   2026-09-26 §2) -- every layout rule that must clear the header reads this variable, never a
   hardcoded guess, so it stays correct regardless of what makes the real header taller or shorter. */
:root{--bg:#eef1f4;--ink:#23272e;--dark:#1e2228;--dark2:#2b2f36;--line:#cfd5db;--acc:#3f5f8a;--bad:#a3332b;--panel:#fff;--panel2:#f7f8fa;--muted:#5a6472;--divider:#eef0f2;--header-h:60px}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:'Segoe UI','Inter',system-ui,-apple-system,Roboto,sans-serif;-webkit-text-size-adjust:100%}
[hidden]{display:none !important}
body{min-height:100vh;min-height:100dvh}
.sh-login{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));background:linear-gradient(160deg,#171b21 0%,#232a33 55%,#2b2f36 100%)}
.sh-card{width:100%;max-width:400px;background:#fff;border-radius:16px;padding:28px 24px 22px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.sh-brand{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.sh-brand img{width:44px;height:44px;border-radius:8px;object-fit:cover;flex:none}
.sh-brand .n{font-size:18px;font-weight:700;color:var(--dark);line-height:1.2}
.sh-brand .s{font-size:12px;color:#66707c;letter-spacing:.06em;text-transform:uppercase}
.sh-sub{margin:10px 0 18px;color:#4f5864;font-size:14px;line-height:1.4}
.sh-field{margin-bottom:14px}
.sh-field label{display:block;margin-bottom:5px;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#4f5864}
.sh-field input{width:100%;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:16px;color:var(--ink);background:#f7f8fa}
.sh-field input:focus{outline:2px solid var(--acc);outline-offset:1px;background:#fff}
.sh-btn{display:inline-block;width:100%;min-height:48px;border:0;border-radius:10px;background:var(--dark2);color:#fff;font-size:16px;font-weight:700;cursor:pointer}
.sh-btn:disabled{opacity:.55;cursor:wait}
.sh-btn.sec{width:auto;min-height:44px;padding:0 16px;background:#fff;color:var(--dark2);border:1px solid var(--line);font-size:14px;font-weight:600}
.sh-msg{margin:0 0 14px;padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.35;background:#e8eef6;color:#22364f;border:1px solid #c5d3e4;animation:sh-msg-pop .35s ease}
.sh-msg.err{background:#f8e3e1;color:var(--bad);border-color:#e2b4af}
/* P0.4 human-gate live finding (2026-09-28): a re-rendered result banner with IDENTICAL text to the
   previous state (e.g. clicking "Testeaza conexiunea" twice when already ADAPTER_READY) is otherwise
   visually silent even though it is a brand-new DOM node each time -- this animation makes every
   completion, success or error, visibly register regardless of whether the message text changed. */
@keyframes sh-msg-pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.sh-foot{margin-top:16px;text-align:center;font-size:11px;color:#66707c;letter-spacing:.03em}
.sh-app{min-height:100vh;min-height:100dvh}
.sh-bar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;padding:calc(8px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 8px calc(14px + env(safe-area-inset-left));background:var(--dark);color:#fff}
.sh-bar img{width:30px;height:30px;border-radius:6px;object-fit:cover;flex:none}
.sh-bar .t{font-size:14px;font-weight:700;line-height:1.15}
.sh-bar .c{font-size:11px;color:#a8b8cc;line-height:1.15;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-bar .sp{flex:1}
.sh-bar .u{font-size:12px;color:#c6d2e0;max-width:30vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-bar button{min-height:44px;min-width:44px;padding:0 14px;border:1px solid #4a5563;border-radius:9px;background:transparent;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.sh-denied{max-width:560px;margin:40px auto;padding:24px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-left:5px solid #c7802a;border-radius:12px}
.sh-denied h2{margin:0 0 8px;font-size:17px}
.sh-denied p{margin:0 0 10px;color:var(--muted);font-size:14px;line-height:1.45}
.sh-main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
@media (max-width:640px){.sh-bar .u{display:none}.sh-bar .c{max-width:52vw}}
