:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#14243b;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{background:#102c4c;color:white;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px}header span{color:#b4d6f7}header small{font-size:12px}main{max-width:740px;margin:auto;padding:18px}section{background:white;border:1px solid #dde5ee;border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:0 5px 18px #12243b0a}h1{font-size:23px;margin:0 0 10px}h2{font-size:19px}p{color:#5b6b7f;line-height:1.5}label{display:block;font-weight:600;margin:15px 0}input,textarea{display:block;width:100%;border:1px solid #bfcbd8;border-radius:10px;padding:13px;margin-top:7px;font:inherit}textarea{min-height:92px}button{background:#124f8b;color:white;border:0;border-radius:10px;padding:12px 17px;font-weight:700;font:inherit;cursor:pointer}button.ghost{background:#e9f1f9;color:#16426a}.heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.heading p{margin:0}.notice{background:#fff5db;padding:12px;border-radius:10px}.item{padding:14px 0;border-bottom:1px solid #e5eaf0}.item small{display:block;color:#627186;margin-top:6px}.item b{display:block}#message{min-height:25px}#online{white-space:nowrap}

/* Identidade oficial Vektor + marca do cliente apos login */
:root{color:#071d33;background:#f3f6fb}header{background:linear-gradient(115deg,#071d33,#123c69);border-bottom:3px solid #0058d8}header span{color:#dce9ff}.app-brand{display:flex;align-items:center;gap:12px;min-width:0}.app-brand img{width:142px;max-height:48px;object-fit:contain;background:white;border-radius:6px;padding:3px}.app-brand strong{font-size:13px;letter-spacing:.14em;color:white;border-left:1px solid #9bb5ce;padding-left:12px}.login-logo{display:block;width:min(100%,320px);height:auto;margin:4px auto 24px}.client-brand{display:flex;align-items:center;gap:13px;min-width:0}.client-brand img{width:68px;height:68px;object-fit:contain;border:1px solid #dce5f0;background:#fff;border-radius:12px;padding:5px;flex-shrink:0}.client-brand img[hidden]{display:none}.client-brand h1{margin:2px 0 4px}.kicker{font-size:10px;letter-spacing:.13em;color:#0058d8;font-weight:800}.section-title{border-top:1px solid #e5eaf0;padding-top:18px}button{background:#0058d8}button.ghost{background:#e8effa;color:#071d33}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #00c7f5;outline-offset:2px}@media(max-width:500px){header{padding:12px}.app-brand img{width:115px}.app-brand strong{font-size:11px;padding-left:8px}header small{font-size:10px}main{padding:12px}.client-brand img{width:58px;height:58px}}

/* v0.13.2: marca do cliente no topo, marca Vektor no rodape, mobile seguro */
html,body{max-width:100%;overflow-x:hidden}body{min-width:0}img{max-width:100%;height:auto}header.topbar{width:100%;min-width:0;overflow:hidden}.app-brand{flex:1 1 auto;min-width:0;overflow:hidden}.app-brand img,#headerCompanyLogo{display:block!important;flex:0 1 auto;width:auto!important;max-width:110px!important;height:auto!important;max-height:44px!important;object-fit:contain!important;background:#fff;border-radius:6px;padding:3px}.topbar-title{min-width:0;display:flex;flex-direction:column;gap:2px}.topbar-title strong{font-size:12px;letter-spacing:.02em;border:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.topbar-title span{font-size:10px;letter-spacing:.11em;color:#dce9ff}.login-logo{width:100%!important;max-width:280px!important;max-height:95px!important;height:auto!important;object-fit:contain!important;display:block;margin:0 auto 20px}.client-brand img{max-width:68px!important;max-height:68px!important;object-fit:contain}.provider-footer{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;padding:16px 10px 24px;color:#60728a;text-align:center;font-size:11px}.provider-footer a{display:inline-flex;align-items:center;justify-content:center;max-width:150px}.provider-footer img{display:block;width:auto!important;max-width:145px!important;max-height:38px!important;height:auto!important;object-fit:contain}.provider-footer span:last-child{width:100%;font-size:10px}#login[hidden],#workspace[hidden],#companyLogo[hidden]{display:none!important}
@media(max-width:500px){header.topbar{padding:10px 12px;gap:8px}.app-brand{gap:8px}.app-brand img,#headerCompanyLogo{max-width:74px!important;max-height:36px!important}.topbar-title strong{font-size:11px;max-width:130px}.topbar-title span{font-size:9px}#online{font-size:9px;max-width:70px;white-space:normal;text-align:right}main{padding:12px}.login-logo{max-width:200px!important;max-height:68px!important}.provider-footer img{max-width:120px!important;max-height:32px!important}}
@media(max-width:360px){.app-brand img,#headerCompanyLogo{max-width:58px!important}.topbar-title strong{max-width:110px}.topbar-title span{font-size:8px}}
/* v0.13.3: painel, navegação e usabilidade mobile */
[hidden]{display:none!important}.topbar{position:sticky;top:0;z-index:20}.menu-toggle{flex:0 0 auto;background:transparent;border:1px solid #6e8aa8;padding:7px 11px;font-size:22px;line-height:1}.menu-backdrop{position:fixed;inset:0;background:#071d3380;z-index:29}.drawer{position:fixed;top:0;bottom:0;left:0;width:min(310px,86vw);z-index:30;background:#fff;box-shadow:6px 0 30px #071d3340;padding:20px 15px;overflow-y:auto}.drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4eaf3;padding-bottom:14px}.drawer #menuLinks{display:grid;gap:5px;margin:15px 0}.drawer #menuLinks button{background:transparent;color:#14243b;text-align:left;font-weight:600;padding:13px}.drawer #menuLinks button.active{background:#e7f0ff;color:#0058d8}.drawer-logout{width:100%;background:#edf2f8;color:#18344e;margin-top:20px}.view{margin-bottom:18px}.view-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.view-head h1{margin:0}.view-head .back{font-size:13px;padding:9px 12px}.welcome{padding-bottom:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat{padding:15px 8px;border:1px solid #dce6f1;background:#f4f8fd;border-radius:12px;text-align:center;min-width:0}.stat b{display:block;color:#0058d8;font-size:27px}.stat span{font-size:12px;color:#566b82}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.quick-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:110px;background:#fff;color:#102c4c;border:1px solid #dce5f0;box-shadow:0 3px 9px #12243b0a;font-size:23px;padding:10px}.quick-grid button strong{font-size:13px}.quick-grid button small{font-size:11px;font-weight:400;color:#5d7087}.compact-list .item{padding:11px 0}.compact-list .item p{margin:4px 0}.provider-footer{margin-top:12px}@media(max-width:620px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar{gap:7px}.app-brand{gap:6px}.app-brand img,#headerCompanyLogo{max-width:58px!important}.topbar-title strong{max-width:100px;font-size:10px}.topbar-title span{font-size:8px}.view{padding:15px}.stat b{font-size:23px}}

/* v0.13.4 — cabeçalho compacto, usuário e menu à direita */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px}.topbar .app-brand{flex:1 1 auto;min-width:0}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 1 auto;min-width:0}.header-session{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:0;gap:3px}.header-session #headerUser{color:#fff;font-size:12px;font-weight:650;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-session #online{font-size:10px;color:#9be7b2;max-width:none;white-space:nowrap;text-align:right}.header-session #online.is-offline{color:#ffd79b}.menu-toggle{order:2;flex-shrink:0}.view#home{padding-top:18px}.view#home>h2:first-child{margin-top:0}
@media(max-width:500px){.topbar{padding:9px 10px;gap:7px;min-height:54px}.header-actions{gap:7px}.header-session #headerUser{font-size:10px;max-width:100px}.header-session #online{font-size:9px}.topbar .app-brand{gap:5px}.topbar .app-brand img,#headerCompanyLogo{max-width:52px!important;max-height:36px!important}.topbar-title strong{max-width:105px;font-size:10px}.menu-toggle{padding:6px 9px;font-size:20px}}
@media(max-width:360px){.topbar-title strong{max-width:75px}.header-session #headerUser{max-width:78px}.header-actions{gap:5px}}
