:root{
  --hub-bg:#f4f8fb;
  --hub-surface:#fff;
  --hub-surface-soft:#f8fafc;
  --hub-text:#182230;
  --hub-muted:#667085;
  --hub-muted-2:#98a2b3;
  --hub-border:#e4e7ec;
  --hub-brand:#0097b2;
  --hub-brand-dark:#00768b;
  --hub-brand-hover:#005e6e;
  --hub-blue:#1570ef;
  --hub-green:#16a34a;
  --hub-orange:#f79009;
  --hub-purple:#7f56d9;
  --hub-teal:#0e9384;
  --hub-sidebar:268px;
  --hub-sidebar-mini:70px;
  --hub-topbar:72px;
  --hub-radius:18px;
  --hub-shadow:0 8px 28px rgba(16,24,40,.07);
  --hub-shadow-hover:0 16px 38px rgba(16,24,40,.12);
  --hub-transition:220ms cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--hub-text);
  background:
    radial-gradient(circle at 84% 8%,rgba(0,151,178,.075),transparent 30rem),
    linear-gradient(180deg,#fbfdff 0%,var(--hub-bg) 55%,#f2f6f9 100%);
  background-image:url("../images/background.webp");
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-color:var(--hub-bg);
  color:var(--hub-text)
}

/* ABERTURA */
.abertura{
  position:fixed;inset:0;z-index:2147483647;background:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  animation:aberturaSaida .45s ease forwards;
  animation-delay:var(--abertura-duracao,5s)
}
.abertura img{width:min(420px,72vw);height:auto;display:block}
.abertura img.abertura-parado{display:none}
.abertura .pular{
  position:absolute;right:28px;bottom:28px;padding:9px 18px;
  border:1px solid #cfcfcf;border-radius:8px;background:#fff;color:#676767;
  font:500 13px Inter,sans-serif;cursor:pointer
}
.abertura.saindo{animation:none;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s .45s}
@keyframes aberturaSaida{to{opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){
  .abertura{animation-delay:.2s;animation-duration:0s}
  .abertura.saindo{transition:none}
  .abertura img.abertura-anima{display:none}
  .abertura img.abertura-parado{display:block}
}

/* LOGIN */
body.login-active .topbar,body.login-active .hub-sidebar-toggle{display:none}
body.login-active main{min-height:100vh;justify-content:center;padding:40px 24px}
body.login-active footer{
  position:fixed;left:0;right:0;bottom:18px;margin:0;padding:0;border:0;
  display:flex;align-items:center;justify-content:center;padding:0 24px;box-sizing:border-box;
  background:transparent;text-align:center;color:#667085;font-size:12px
}
.site-footer-label{min-width:0}
.site-footer-version{
  color:#667085;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
body.login-active .site-footer-version{position:absolute;right:24px;text-align:right}
.login-wrap{
  width:100%;max-width:960px;min-height:560px;display:grid;
  grid-template-columns:1.05fr .95fr;overflow:hidden;
  border:1px solid var(--hub-border);border-radius:28px;background:#fff;
  box-shadow:0 28px 80px rgba(16,24,40,.13)
}
.login-hero{
  min-height:560px;display:flex;align-items:center;justify-content:center;
  padding:42px;position:relative;overflow:hidden;text-align:center;
  background:
    radial-gradient(circle at 24% 18%,rgba(255,255,255,.19),transparent 18rem),
    linear-gradient(145deg,#006d82 0%,#0097b2 58%,#1570ef 100%)
}
.login-hero::before{
  content:"Sistema de Implantação e Gestão Automatizada";
  position:absolute;left:46px;right:46px;bottom:48px;
  color:rgba(255,255,255,.82);font-size:15px;line-height:1.5
}
.login-hero::after{
  content:"";position:absolute;width:360px;height:360px;right:-150px;bottom:-170px;
  border-radius:50%;border:1px solid rgba(255,255,255,.2);
  box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 84px rgba(255,255,255,.025)
}
.hero-logo-wrap{display:inline-block;line-height:0}
.hero-logo{display:block;width:320px;max-width:80%;height:auto;/*filter:brightness(0) invert(1)*/}
.hero-parado{display:none}
@media(prefers-reduced-motion:reduce){.hero-anima{display:none}.hero-parado{display:block}}
.login-card{
  display:flex;flex-direction:column;justify-content:center;padding:58px 54px;background:#fff
}
.login-card::before{
  content:"Bem-vindo";display:block;margin-bottom:8px;
  color:var(--hub-text);font-size:28px;font-weight:800;letter-spacing:-.04em
}
.login-card::after{
  content:"Entre com seus dados para acessar o ACTO AI.";order:-1;display:block;
  margin-bottom:28px;color:var(--hub-muted);font-size:14px;line-height:1.5
}
.login-card label{
  display:block;margin-bottom:8px;color:#344054;font-size:12px;font-weight:600
}
.login-card input{
  width:100%;min-height:48px;margin:0 0 18px;padding:0 14px;
  border:1px solid #d0d5dd;border-radius:12px;background:#fff;color:var(--hub-text);
  font:400 14px Inter,sans-serif;outline:none;transition:.15s
}
.login-card input:focus{border-color:var(--hub-brand);box-shadow:0 0 0 4px rgba(0,151,178,.12)}
.password-wrap{position:relative}
.password-wrap input{padding-right:46px}
.password-toggle{
  position:absolute;right:12px;top:30px;width:34px;height:34px;display:grid;place-items:center;
  border:0;background:transparent;color:var(--hub-muted);cursor:pointer;font-size:14px
}
.password-toggle:hover{color:var(--hub-brand-dark)}

.btn-primary{
  width:100%;min-height:48px;margin-top:6px;display:flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:12px;background:linear-gradient(135deg,var(--hub-brand-dark),var(--hub-brand));
  color:#fff;font:700 14px Inter,sans-serif;cursor:pointer;box-shadow:0 9px 22px rgba(0,118,139,.22)
}
.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,var(--hub-brand-hover),var(--hub-brand-dark))}
.btn-primary:disabled{opacity:.55;cursor:not-allowed}
.spinner{
  width:14px;height:14px;display:none;border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}
.err-box{
  display:none;margin-top:14px;padding:10px 12px;border:1px solid #f5c6c6;
  border-radius:10px;background:#fff0f0;color:#c0392b;font-size:13px;line-height:1.45;white-space:pre-wrap
}
.err-box.on{display:block}

/* TOPBAR */
.topbar{
  position:fixed;z-index:1000;inset:0 0 auto var(--hub-sidebar);
  height:var(--hub-topbar);display:flex;align-items:center;gap:10px;padding:0 28px;
  background:rgba(255,255,255,.92);border-bottom:1px solid rgba(228,231,236,.9);
  backdrop-filter:blur(16px);transition:left var(--hub-transition)
}
body.sidebar-collapsed .topbar{left:var(--hub-sidebar-mini)}
.topbar-brand{display:none}
.topbar-spacer{flex:1}
.user-pill{
  min-width:0;min-height:40px;display:flex;align-items:center;gap:9px;
  padding:5px 13px 5px 9px;border-radius:999px;background:#f8fafc;color:var(--hub-text);
  font-size:13px;font-weight:600
}
.user-pill .dot{
  width:32px;height:32px;display:grid;place-items:center;flex:0 0 32px;border-radius:50%;
  background:linear-gradient(135deg,var(--hub-brand),var(--hub-blue));box-shadow:0 5px 14px rgba(0,151,178,.18)
}
.user-pill .dot::after{content:"\f007";font-family:"Font Awesome 6 Free";font-weight:900;font-size:12px;color:#fff}
#userLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-admin,.btn-senha,.btn-logout{
  min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;
  border-radius:10px;font:600 12px Inter,sans-serif;cursor:pointer;text-decoration:none
}
.btn-admin{border:1px solid var(--hub-brand-dark);background:var(--hub-brand-dark);color:#fff}
.btn-admin:hover{background:var(--hub-brand-hover)}
.btn-senha,.btn-logout{border:1px solid var(--hub-border);background:#fff;color:#475467}
.btn-senha:hover{background:#f2f4f7;color:var(--hub-brand-dark)}
.btn-logout:hover{background:#fff0f0;color:#c0392b;border-color:#f5c6c6}

/* DASHBOARD / SIDEBAR */
main{flex:1;display:flex;flex-direction:column}
.dashboard-wrap{width:100%;display:none;flex-direction:column}
.dashboard-wrap.on{display:flex}
body:not(.login-active) main{
  align-items:stretch;min-height:100vh;
  padding:calc(var(--hub-topbar) + 36px) 38px 46px calc(var(--hub-sidebar) + 38px);
  transition:padding-left var(--hub-transition)
}
body.sidebar-collapsed:not(.login-active) main{padding-left:calc(var(--hub-sidebar-mini) + 38px)}
body:not(.login-active) footer{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-left:var(--hub-sidebar);padding:18px 28px;border-top:1px solid var(--hub-border);
  background:rgba(255,255,255,.72);color:#667085;text-align:left;font-size:12px;
  transition:margin-left var(--hub-transition)
}
body:not(.login-active) .site-footer-version{margin-left:auto;text-align:right}
body.sidebar-collapsed:not(.login-active) footer{margin-left:var(--hub-sidebar-mini)}

.dash-tabs{
  position:fixed;z-index:1100;top:0;bottom:0;left:0;width:var(--hub-sidebar);
  display:flex;flex-direction:column;gap:7px;padding:94px 14px 78px;overflow-y:auto;
  border-right:1px solid var(--hub-border);background:rgba(255,255,255,.98);
  box-shadow:8px 0 28px rgba(16,24,40,.035);backdrop-filter:blur(14px);
  transition:width var(--hub-transition),transform var(--hub-transition)
}
.dash-tabs::before{
  content:"";position:absolute;top:0;left:0;right:0;height:var(--hub-topbar);
  display:flex;align-items:center;padding:0 22px;border-bottom:1px solid var(--hub-border);
  color:var(--hub-text);font-size:17px;font-weight:800;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;background-color:#f9f9f9;background-image:url(../images/logo_acto.svg);background-size:auto 40px;background-repeat:no-repeat;background-position:center;
}
body.sidebar-collapsed .dash-tabs{width:var(--hub-sidebar-mini)}
body.sidebar-collapsed .dash-tabs::before{
  content:"";justify-content:center;padding:0;margin:10px auto;height:42px;
  border:0;/*border-radius:11px;background:linear-gradient(135deg,var(--hub-brand),var(--hub-blue));
  color:#fff;box-shadow:0 7px 18px rgba(0,151,178,.2);*/
  background-color:transparent;background-image:url(../images/logo_acto_simbolo.svg);background-size:50%;background-repeat:no-repeat;background-position:center;
}
.dash-tab{
  width:100%;min-height:43px;display:flex;align-items:center;justify-content:flex-start;gap:13px;
  padding:11px 14px;border:1px solid transparent;border-radius:13px;background:transparent;
  color:#475467;text-align:left;font:600 13px Inter,sans-serif;cursor:pointer;transition:.15s;overflow:hidden
}
.dash-tab i{width:22px;flex:0 0 22px;text-align:center;color:#667085;font-size:15px}
.dash-tab-title{font-size:13px;font-weight:650;line-height:1.3}
.dash-tab:hover{background:#f2f4f7}
.dash-tab.active{
  background:linear-gradient(135deg,var(--hub-brand),var(--hub-blue));color:#fff;
  box-shadow:0 8px 22px rgba(0,151,178,.18)
}
.dash-tab.active i{color:#fff}
body.sidebar-collapsed .dash-tab{justify-content:center;padding-inline:0}
body.sidebar-collapsed .dash-tab-title{display:none}
.hub-sidebar-toggle{
  position:fixed;z-index:1200;left:222px;bottom:20px;width:38px;height:38px;display:grid;place-items:center;
  border:1px solid var(--hub-border);border-radius:11px;background:#fff;color:#667085;cursor:pointer;
  box-shadow:0 5px 16px rgba(16,24,40,.08);transition:left var(--hub-transition),transform var(--hub-transition)
}
body.sidebar-collapsed .hub-sidebar-toggle{left:15px;transform:rotate(180deg)}

/* CONTAINER RESPONSIVO */
.hub-container{
  width:100%;
  margin-left:auto;
  margin-right:auto;
  padding-left:24px;
  padding-right:24px;
}
@media(min-width:576px){.hub-container{max-width:540px}}
@media(min-width:768px){.hub-container{max-width:720px}}
@media(min-width:992px){.hub-container{max-width:960px}}
@media(min-width:1200px){.hub-container{max-width:1140px}}
@media(min-width:1400px){.hub-container{max-width:1320px}}

/* CONTEÚDO */
.dash-header{
  position:relative;min-height:160px;padding:20px 6px 30px;text-align:left;overflow:hidden
}
.dash-header::before{
  content:"BEM-VINDO AO ACTO HUB";display:block;margin-bottom:12px;color:var(--hub-brand-dark);
  font-size:11px;font-weight:800;letter-spacing:.14em
}
.dash-header::after{
  content:"";position:absolute;z-index:-1;width:380px;height:170px;right:1%;top:-18px;opacity:.55;
  background-image:radial-gradient(circle,rgba(0,151,178,.18) 1.2px,transparent 1.2px);
  background-size:15px 15px;mask-image:linear-gradient(90deg,transparent,#000 30%,transparent)
}
.dash-header h1{
  margin:0;font-size:clamp(30px,3.2vw,48px);line-height:1.05;letter-spacing:-.045em;color:var(--hub-text)
}
.dash-header .welcome-name{color:var(--hub-brand);font-weight:800}
.dash-header p{max-width:620px;margin:14px 0 0;color:var(--hub-muted);font-size:15px;line-height:1.6}
.dash-sections{display:flex;flex-direction:column}
.dash-panel-body{
  max-height:0;opacity:0;overflow:hidden;transition:max-height .35s ease,opacity .3s ease
}
.dash-panel-body.active{max-height:1600px;opacity:1}
.dash-panel-body.active::before{
  content:"Módulos disponíveis";display:block;margin-bottom:14px;color:var(--hub-muted);
  font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase
}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px
  /*o código abaixo alinha os cards ao centro*/
  /*display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,260px));
  justify-content:center;
  gap:24px;
  width:100%;*/
}
.app-card{
  --card-accent:var(--hub-blue);
  position:relative;min-height:205px;display:flex;flex-direction:column;align-items:flex-start;
  padding:22px;border:1px solid var(--hub-border);border-radius:var(--hub-radius);
  background:rgba(255,255,255,.96);box-shadow:var(--hub-shadow);color:var(--hub-text);
  text-decoration:none;text-align:left;overflow:hidden;
  transition:transform var(--hub-transition),box-shadow var(--hub-transition),border-color var(--hub-transition)
}
.app-card::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--card-accent);left: 50%;width: 50%;transform: translateX(-50%);}
.app-card:hover{transform:translateY(-5px);border-color:#d0d5dd;box-shadow:var(--hub-shadow-hover)}
.app-card:nth-child(5n+2){--card-accent:var(--hub-green)}
.app-card:nth-child(5n+3){--card-accent:var(--hub-orange)}
.app-card:nth-child(5n+4){--card-accent:var(--hub-purple)}
.app-card:nth-child(5n+5){--card-accent:var(--hub-teal)}
.card-icon{
  display:grid;place-items:center;margin-bottom:30px;margin-top: 30px;border-radius:50%;
  background:#eff8ff;color:var(--card-accent);font-size:35px;padding:20px;
}
.card-title{margin-bottom:8px;color:var(--hub-text);font-size:15px;font-weight:750;line-height:1.35}
.card-desc{display:block;margin-bottom:30px;color:var(--hub-muted);font-size:12.5px;line-height:1.55}
.card-arrow{
  display:flex;align-items:center;gap:7px;margin-top:auto;color:var(--card-accent);
  font-size:12px;font-weight:800
}
.card-arrow::after{content:"\f061";font-family:"Font Awesome 6 Free";font-weight:900;font-size:11px}

/* SENHA */
.senha-overlay{
  display:none;position:fixed;inset:0;z-index:3000;align-items:center;justify-content:center;padding:16px;
  background:rgba(15,23,42,.38);backdrop-filter:blur(5px)
}
.senha-overlay.on{display:flex}
.senha-modal{
  width:100%;max-width:420px;padding:26px;border:1px solid var(--hub-border);border-radius:18px;
  background:#fff;box-shadow:0 22px 70px rgba(16,24,40,.18)
}
.senha-modal h2{margin:0 0 4px;font-size:18px}
.senha-modal p.sub{margin:0 0 18px;color:var(--hub-muted);font-size:13px}
.senha-modal label{display:block;margin-bottom:6px;color:#475467;font-size:12px;font-weight:600}
.senha-modal input{
  width:100%;min-height:44px;margin-bottom:12px;padding:0 11px;border:1px solid #d0d5dd;
  border-radius:10px;font:400 14px Inter,sans-serif;outline:none
}
.senha-modal input:focus{border-color:var(--hub-brand);box-shadow:0 0 0 3px rgba(0,151,178,.12)}
.senha-msg{display:none;margin-bottom:12px;padding:8px 10px;border-radius:9px;font-size:12.5px}
.senha-msg.on{display:block}.senha-msg.erro{background:#fff0f0;border:1px solid #f5c6c6;color:#c0392b}
.senha-msg.ok{background:#f0f7f0;border:1px solid #b7ddb7;color:#2d7a2d}
.senha-acoes{display:flex;justify-content:flex-end;gap:8px}
.senha-acoes button{
  min-height:38px;padding:0 14px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;
  color:#475467;font:600 13px Inter,sans-serif;cursor:pointer
}
.senha-acoes .primaria{border-color:var(--hub-brand-dark);background:var(--hub-brand-dark);color:#fff}
.senha-acoes button:disabled{opacity:.6;cursor:default}


/* =========================================================
   HIGHLIGHTS
========================================================= */

.hub-highlights{
  position:relative;
  display:grid;
  grid-template-columns:290px 1fr;
  align-items:center;
  width:100%;
  margin:50px 0 38px;
  padding:20px 52px;
  overflow:hidden;

  background:rgba(255,255,255,.68);
  border:1px solid rgba(20,105,230,.10);
  border-radius:18px;

  box-shadow:
    0 18px 45px rgba(34,73,120,.06),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.hub-highlights::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:5px;
  background:#1469e6;
  border-radius:18px 0 0 18px;
}


/* VISUAL */

.highlights-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:190px;
}

.highlights-monitor{
  position:relative;
  display:grid;
  place-items:center;
  width: 150px;
  height: 100px;

  border:10px solid rgba(20,105,230,.12);
  border-bottom-width:18px;
  border-radius:12px;

  background:rgba(20,105,230,.035);
  color:rgba(20,105,230,.20);

  font-size:50px;
  margin-top: -15px;
  margin-left: -30px;
}

.highlights-monitor::before{
  content:"";
  position:absolute;
  bottom: -40px;
  width:55px;
  height:25px;
  background:rgba(20,105,230,.14);
}

.highlights-monitor::after{
  content:"";
  position:absolute;
  bottom:-48px;
  width:115px;
  height:8px;
  border-radius:8px;
  background:rgba(20,105,230,.16);
}

.highlights-shield{
  position:absolute;
  right:-35px;
  bottom:-4px;

  display:grid;
  place-items:center;

  width: 70px;
  height: 70px;
  border-radius:50%;

  background:#fff;
  color:#1469e6;

  font-size:40px;

  box-shadow:0 10px 30px rgba(20,105,230,.18);
}


/* CONTEÚDO */

.highlights-content{
  padding-left:20px;
}

.highlights-eyebrow{
  display:block;
  margin-bottom:10px;

  color:#1469e6;
  font-size:13px;
  font-weight:800;
  letter-spacing:.09em;
}

.highlights-content h2{
  margin:0 0 12px;
  color:#101828;
  font-size:30px;
  line-height:1.2;
  font-weight:750;
}

.highlights-text{
  max-width:850px;
  margin:0;
  color:#667085;
  font-size:12.5px;
}


/* BENEFÍCIOS */

.highlights-benefits{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
  margin-top:20px;
}

.highlight-benefit{
  display:flex;
  align-items:center;
  gap:11px;

  padding:0 34px;

  color:#344054;
  font-size:14px;
  font-weight:600;

  border-right:1px solid #e5eaf0;
}

.highlight-benefit:first-child{
  padding-left:0;
}

.highlight-benefit:last-child{
  border-right:0;
}

.highlight-benefit i{
  color:#1469e6;
  font-size:21px;
}


/* RESPONSIVO */

@media(max-width:1100px){

  .hub-highlights{
    grid-template-columns:230px 1fr;
    padding:32px 36px;
  }

  .highlights-monitor{
    transform:scale(.82);
  }
}

@media(max-width:768px){

  .hub-highlights{
    grid-template-columns:1fr;
    padding:30px 26px;
  }

  .highlights-visual{
    display:none;
  }

  .highlights-content{
    padding-left:0;
  }

  .highlights-content h2{
    font-size:25px;
  }

  .highlights-benefits{
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
  }

  .highlight-benefit{
    padding:0;
    border-right:0;
  }
}
/*****highlights****/

@media(max-width:980px){
  .topbar,body.sidebar-collapsed .topbar{left:0;padding-left:68px}
  body:not(.login-active) main,body.sidebar-collapsed:not(.login-active) main{padding-left:22px}
  body:not(.login-active) footer,body.sidebar-collapsed:not(.login-active) footer{margin-left:0}
  .dash-tabs,body.sidebar-collapsed .dash-tabs{transform:translateX(-100%);width:min(286px,86vw)}
  body.mobile-sidebar-open .dash-tabs{transform:translateX(0)}
  .hub-sidebar-toggle,body.sidebar-collapsed .hub-sidebar-toggle{top:17px;bottom:auto;left:16px;transform:none}
}
@media(max-width:760px){
  body.login-active main{padding:18px}
  body.login-active footer{bottom:8px;flex-direction:column;gap:3px;padding:0 12px;font-size:10px}
  body.login-active .site-footer-version{position:static;align-self:flex-end;font-size:9px}
  .login-wrap{grid-template-columns:1fr;min-height:0;border-radius:22px}
  .login-hero{min-height:220px;padding:28px}
  .login-hero::before{left:28px;bottom:26px;font-size:13px}
  .hero-logo{width:230px}
  .login-card{padding:36px 28px}
  .topbar{padding-right:10px}
  .btn-admin,.btn-senha{display:none!important}
  .user-pill{max-width:150px}
  .dash-header{min-height:145px}
  .cards-grid{grid-template-columns:1fr}
  .app-card{min-height:190px}
}