
:root{
  --bg:#f4f6f7;
  --panel:#ffffff;
  --ink:#33444f;
  --muted:#72808a;
  --line:#dde4e8;
  --sidebar:#3e515b;
  --sidebar-dark:#33454e;
  --gold:#f6b927;
  --gold-2:#e8a600;
  --ok:#1f9d6a;
  --warn:#db8b15;
  --danger:#c94b4b;
  --blue:#3a6ea5;
  --shadow:0 10px 30px rgba(42,59,68,.08);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit}
#app{min-height:100vh}
.topbar{
  position:sticky;top:0;z-index:50;height:84px;background:#fff;border-bottom:1px solid var(--line);
  display:flex;align-items:center;justify-content:space-between;padding:0 56px;
}
.brand{display:flex;align-items:center;gap:18px;min-width:250px}
.brand img{height:56px;width:auto;object-fit:contain}
.brand-text{font-size:14px;color:#667681}
.top-actions{display:flex;align-items:center;gap:12px}
.badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#f7f9fa;padding:8px 12px;border-radius:999px;font-size:13px;font-weight:700}
.btn{border:0;border-radius:12px;padding:12px 18px;font-weight:800;display:inline-flex;align-items:center;gap:8px;justify-content:center}
.btn-primary{background:var(--gold);color:#1f2d34}
.btn-primary:hover{background:var(--gold-2)}
.btn-secondary{background:#eef2f4;color:var(--ink)}
.btn-outline{background:#fff;border:1px solid #cfd9de;color:var(--ink)}
.btn-danger{background:#fff0f0;color:#a52e2e;border:1px solid #ffd1d1}
.btn-sm{padding:9px 12px;border-radius:10px;font-size:13px}
.home-hero{
  min-height:460px;
  background:
    radial-gradient(circle at 82% 28%,rgba(246,185,39,.20),transparent 17%),
    linear-gradient(112deg,#253842 0%,#3c4e58 50%,#707d6b 100%);
  color:#fff;padding:72px max(7vw,60px) 84px;
}
.eyebrow{color:var(--gold);text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:900}
.home-hero h1{font-size:56px;line-height:1.05;margin:22px 0 22px;max-width:800px}
.home-hero p{font-size:20px;line-height:1.6;max-width:720px;color:#f3f5f6}
.hero-actions{display:flex;gap:14px;margin-top:32px;flex-wrap:wrap}
.feature-wrap{max-width:1220px;margin:-56px auto 0;padding:0 28px;position:relative}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.feature-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:28px;min-height:190px}
.feature-card .icon{font-size:28px;color:var(--gold-2);margin-bottom:18px}
.feature-card h3{margin:0 0 12px;font-size:21px}
.feature-card p{margin:0;color:var(--muted);line-height:1.55}
.public-bottom{
  max-width:1220px;margin:26px auto 60px;padding:0 28px;
  display:grid;grid-template-columns:1.2fr .8fr;gap:22px
}
.public-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:var(--shadow)}
.public-card h3{margin:0 0 8px}.public-card p{color:var(--muted)}
.login-shell{min-height:calc(100vh - 84px);display:grid;grid-template-columns:560px 1fr;background:#fff}
.login-pane{padding:68px 70px;background:#fff}
.login-pane h1{font-size:40px;margin:16px 0}
.login-pane p{color:var(--muted);line-height:1.55}
.login-art{
  background:
    radial-gradient(circle at 72% 24%,rgba(246,185,39,.20),transparent 16%),
    linear-gradient(145deg,#31464f,#596a70);
  color:#fff;display:flex;align-items:center;padding:70px;
}
.login-art h2{font-size:48px;line-height:1.3;max-width:700px}
.form-group{margin:18px 0}
.label{display:block;margin-bottom:8px;font-weight:800;font-size:14px}
.input,.select,.textarea{
  width:100%;border:1px solid #d3dde2;border-radius:12px;background:#fff;padding:13px 14px;outline:none;color:var(--ink)
}
.input:focus,.select:focus,.textarea:focus{border-color:#a8b7bf;box-shadow:0 0 0 3px rgba(92,116,128,.08)}
.textarea{min-height:110px;resize:vertical}
.admin-shell{display:grid;grid-template-columns:282px 1fr;min-height:calc(100vh - 84px)}
.sidebar{
  position:sticky;top:84px;height:calc(100vh - 84px);
  background:var(--sidebar);color:#fff;display:flex;flex-direction:column;overflow:hidden
}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:30px 22px 14px;flex:0 0 auto}
.sidebar-head strong{font-size:13px;letter-spacing:.14em}
.sidebar-scroll{overflow-y:auto;padding:12px 18px 20px;flex:1;scrollbar-width:thin}
.sidebar-scroll::-webkit-scrollbar{width:6px}.sidebar-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:10px}
.nav-link{
  display:flex;align-items:center;gap:14px;color:#fff;text-decoration:none;padding:15px 14px;border-radius:11px;margin:4px 0;
  font-size:17px
}
.nav-link:hover{background:rgba(255,255,255,.08)}
.nav-link.active{background:var(--gold);color:#22323a;font-weight:900}
.sidebar-foot{padding:14px 24px 22px;border-top:1px solid rgba(255,255,255,.13);flex:0 0 auto;background:var(--sidebar-dark)}
.sidebar-foot small{display:block;color:#e1e7ea;margin-top:8px}
.content{padding:42px;min-width:0}
.page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}
.page-title h1{font-size:38px;margin:6px 0 0}
.page-title p{color:var(--muted);margin:8px 0 0}
.page-actions{display:flex;gap:10px;flex-wrap:wrap}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.kpi .value{font-size:38px;font-weight:900;margin:12px 0}.kpi .meta{font-size:13px;color:#91a0a8}
.grid-2{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow)}
.card h2,.card h3{margin-top:0}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
table{width:100%;border-collapse:collapse;min-width:760px}
th,td{padding:14px 16px;text-align:left;border-bottom:1px solid #edf1f3;font-size:14px}
th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#70808a;background:#fafbfc;position:sticky;top:0}
.status{display:inline-flex;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}
.status.ok{background:#e8f7f1;color:#137b55}.status.warn{background:#fff4df;color:#a46108}.status.danger{background:#ffeded;color:#a93636}.status.info{background:#eaf2fb;color:#2c6797}
.toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:14px 0 18px;flex-wrap:wrap}
.toolbar-left,.toolbar-right{display:flex;gap:10px;flex-wrap:wrap}
.search{min-width:280px}
.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow-x:auto}
.tab{border:0;background:transparent;padding:12px 14px;font-weight:800;color:#667984;border-bottom:3px solid transparent;white-space:nowrap}
.tab.active{color:var(--ink);border-bottom-color:var(--gold)}
.empty{padding:48px;text-align:center;color:var(--muted)}
.empty .big{font-size:38px;color:var(--gold);margin-bottom:12px}
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.setting-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.setting-card h3{margin:0 0 10px}.setting-card p{color:var(--muted);min-height:48px}
.action-row{display:flex;gap:8px;flex-wrap:wrap}
.modal-backdrop{
  position:fixed;inset:0;background:rgba(25,36,42,.58);display:grid;place-items:center;z-index:100;padding:24px
}
.modal{width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.25)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line)}
.modal-body{padding:24px}.modal-foot{padding:18px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
.icon-btn{border:0;background:#eef2f4;width:38px;height:38px;border-radius:10px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-grid .full{grid-column:1/-1}
.dropzone{border:2px dashed #cbd6dc;border-radius:14px;padding:28px;text-align:center;background:#fbfcfd}
.toast{position:fixed;right:24px;bottom:24px;background:#22343d;color:#fff;padding:14px 18px;border-radius:12px;z-index:200;box-shadow:var(--shadow);max-width:380px}
.collapsed .admin-shell{grid-template-columns:82px 1fr}
.collapsed .sidebar-head strong,.collapsed .nav-link span,.collapsed .sidebar-foot{display:none}
.collapsed .sidebar-head{justify-content:center;padding-left:8px;padding-right:8px}
.collapsed .nav-link{justify-content:center;padding:16px 10px}
@media(max-width:1100px){
  .kpi-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}.public-bottom{grid-template-columns:1fr}.login-shell{grid-template-columns:1fr}.login-art{display:none}
}
@media(max-width:760px){
  .topbar{padding:0 16px;height:72px}.brand img{height:46px}.brand-text{display:none}
  .home-hero{padding:48px 24px 72px;min-height:auto}.home-hero h1{font-size:42px}
  .feature-grid{grid-template-columns:1fr}.admin-shell{display:block}.sidebar{position:fixed;left:0;top:72px;bottom:0;width:280px;height:auto;z-index:60;transform:translateX(-100%);transition:.2s}
  body.mobile-menu .sidebar{transform:translateX(0)}.content{padding:24px 16px}.page-title{align-items:flex-start;flex-direction:column}.page-title h1{font-size:31px}
  .kpi-grid,.settings-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.login-pane{padding:42px 24px}
  .public-bottom{padding:0 16px}.feature-wrap{padding:0 16px}.top-actions .brand-text{display:none}
}


/* v1.4.1 - corrige overlay invisível que bloqueava toda a interface */
[hidden]{display:none !important;}
.modal-backdrop[hidden],
.toast[hidden]{display:none !important;}


/* v1.4.2 - restaura home compacta da linha v1.3.3 */
.home-hero{
  min-height:355px;
  padding:42px max(7vw,58px) 64px;
}
.home-hero h1{
  font-size:49px;
  line-height:1.02;
  margin:12px 0 14px;
  max-width:700px;
}
.home-hero p{
  font-size:16.5px;
  line-height:1.55;
  max-width:630px;
  margin:0;
}
.hero-actions{margin-top:22px}

.feature-wrap{
  max-width:1180px;
  margin:-40px auto 0;
  padding:0 26px;
}
.feature-grid{gap:18px}
.feature-card{
  border-radius:14px;
  padding:20px 24px;
  min-height:152px;
}
.feature-card .icon{
  font-size:23px;
  margin-bottom:10px;
}
.feature-card h3{
  margin:0 0 7px;
  font-size:18px;
}
.feature-card p{
  font-size:14px;
  line-height:1.45;
}
.public-bottom{
  max-width:1180px;
  margin:18px auto 34px;
  padding:0 26px;
  gap:18px;
}
.public-card{
  border-radius:14px;
  padding:18px 22px;
}
.public-card h3{font-size:17px;margin:0 0 5px}
.public-card p{font-size:13.5px;line-height:1.45;margin:6px 0 12px}

@media(max-width:1100px){
  .home-hero{min-height:370px;padding:42px 28px 66px}
  .home-hero h1{font-size:43px}
}
@media(max-width:760px){
  .home-hero{min-height:auto;padding:34px 22px 48px}
  .home-hero h1{font-size:37px}
  .home-hero p{font-size:15.5px}
  .feature-wrap{margin:14px auto 0;padding:0 16px}
  .feature-card{min-height:auto;padding:18px 20px}
  .public-bottom{margin:16px auto 28px;padding:0 16px}
}


/* v1.5.0 - jornada do fornecedor */
.auth-card{max-width:760px;margin:0 auto}
.steps{
  display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:18px 0 24px
}
.step{
  position:relative;background:#e8edef;color:#697b85;border-radius:10px;padding:11px 8px;
  text-align:center;font-size:12px;font-weight:800
}
.step.done{background:#e7f5ef;color:#197653}
.step.current{background:var(--gold);color:#24333a}
.progressbar{height:9px;background:#e4eaed;border-radius:99px;overflow:hidden;margin:8px 0 7px}
.progressbar > span{display:block;height:100%;background:var(--gold);border-radius:99px}
.supplier-shell{max-width:1120px;margin:0 auto}
.supplier-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin-bottom:18px;box-shadow:var(--shadow)
}
.supplier-welcome h2{margin:0 0 5px}.supplier-welcome p{margin:0;color:var(--muted)}
.resume-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.checklist{display:grid;gap:10px}
.checkitem{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #edf1f3;padding:12px 0}
.checkitem:last-child{border-bottom:0}
.mini-note{font-size:13px;color:var(--muted);line-height:1.5}
.save-strip{
  position:sticky;bottom:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);
  border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:12px 14px;
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;z-index:20
}
@media(max-width:900px){
  .steps{grid-template-columns:repeat(3,1fr)}
  .resume-grid{grid-template-columns:1fr}
}


/* v1.5.1 - refinamento visual da área restrita */
:root{
  --sidebar:#344852;
  --sidebar-dark:#2b3e47;
  --sidebar-hover:#405762;
  --admin-bg:#f6f8f9;
}

.admin-shell{
  grid-template-columns:248px 1fr;
  background:var(--admin-bg);
}
.sidebar{
  background:linear-gradient(180deg,#3a4f59 0%,#324650 100%);
  box-shadow:10px 0 28px rgba(45,64,74,.06);
}
.sidebar-head{
  padding:22px 18px 10px;
}
.sidebar-head strong{
  font-size:11px;
  letter-spacing:.18em;
  color:#d9e1e5;
}
.sidebar .icon-btn{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.10);
  width:34px;height:34px;border-radius:10px;
}
.sidebar .icon-btn:hover{background:rgba(255,255,255,.14)}
.sidebar-scroll{padding:8px 12px 18px}
.nav-link{
  min-height:42px;
  padding:11px 12px;
  margin:3px 0;
  border-radius:10px;
  font-size:14px;
  gap:11px;
  color:#edf3f5;
  transition:background .16s ease,transform .16s ease,color .16s ease;
}
.nav-link b{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:rgba(255,255,255,.06);
  font-size:12px;
}
.nav-link:hover{
  background:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.nav-link.active{
  background:linear-gradient(90deg,#f7bc2d 0%,#f3ae14 100%);
  color:#263640;
  box-shadow:0 8px 18px rgba(246,185,39,.18);
}
.nav-link.active b{
  background:rgba(255,255,255,.34);
}
.sidebar-foot{
  padding:14px 16px 18px;
  background:rgba(0,0,0,.08);
}
.sidebar-foot small{
  font-size:12px;
  margin-top:7px;
}
.sidebar-foot .status{
  font-size:11px;
  padding:5px 9px;
}
.content{
  padding:30px 34px 40px;
}
.page-title{
  margin-bottom:20px;
  align-items:center;
}
.page-title h1{
  font-size:30px;
  line-height:1.15;
  margin:4px 0 0;
  letter-spacing:-.02em;
}
.page-title p{
  font-size:14px;
  margin-top:6px;
}
.eyebrow{
  font-size:10px;
  letter-spacing:.16em;
}
.page-actions .btn{
  padding:9px 12px;
  font-size:13px;
}
.kpi-grid{
  gap:12px;
}
.kpi{
  padding:18px 20px;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(41,57,66,.05);
}
.kpi strong{
  font-size:13px;
  color:#52636d;
}
.kpi .value{
  font-size:30px;
  margin:8px 0 6px;
}
.kpi .meta{
  font-size:11px;
}
.grid-2{
  gap:14px;
  margin-top:14px;
  grid-template-columns:1.45fr .85fr;
}
.card{
  border-radius:15px;
  padding:20px;
  box-shadow:0 6px 20px rgba(41,57,66,.05);
}
.card h2{
  font-size:22px;
  margin-bottom:8px;
}
.card h3{
  font-size:18px;
}
.table-wrap{
  border-radius:12px;
}
th,td{
  padding:11px 13px;
  font-size:12.5px;
}
th{
  font-size:10.5px;
}
.toolbar{
  margin:8px 0 14px;
}
.toolbar h2{
  font-size:20px;
}
.btn{
  border-radius:10px;
}
.btn-sm{
  padding:7px 10px;
  font-size:12px;
}
.status{
  font-size:10.5px;
  padding:5px 8px;
}
.metric-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #edf1f3;
  font-size:13px;
}
.metric-line:last-child{border-bottom:0}
.metric-line strong{
  font-size:20px;
}
.collapsed .admin-shell{
  grid-template-columns:72px 1fr;
}
.collapsed .sidebar-scroll{
  padding-left:8px;padding-right:8px;
}
.collapsed .nav-link{
  justify-content:center;
  padding:10px 6px;
}
.collapsed .nav-link b{
  width:30px;height:30px;
}
.collapsed .sidebar-head{
  padding:18px 8px 10px;
}
.admin-shell .topbar{
  box-shadow:none;
}

/* faixa de boas-vindas mais discreta para o dashboard */
.admin-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:-4px 0 18px;
  padding:11px 14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
}
.admin-welcome strong{font-size:13px}
.admin-welcome span{font-size:12px;color:var(--muted)}

@media(max-width:1200px){
  .admin-shell{grid-template-columns:226px 1fr}
  .content{padding:26px}
}
@media(max-width:900px){
  .grid-2{grid-template-columns:1fr}
}


/* ===========================================================
   Portal de Fornecedores Centaurus v2.0.0
   Refinamento da jornada do fornecedor + painel administrativo
   =========================================================== */
.supplier-shell .page-title{max-width:980px;margin-left:auto;margin-right:auto}
.supplier-shell > .card,
.supplier-shell > .steps,
.supplier-shell > .supplier-welcome,
.supplier-shell > .resume-grid{max-width:980px;margin-left:auto;margin-right:auto}
.supplier-shell .card{box-shadow:0 8px 26px rgba(35,52,61,.06)}
.steps{counter-reset:step}
.step{border:1px solid #e1e7ea;background:#f0f3f4}
.step.done{border-color:#cce7dc}
.step.current{border-color:#e5a910;box-shadow:0 5px 14px rgba(246,185,39,.18)}
.supplier-welcome{border-left:4px solid var(--gold)}
.auth-card{box-shadow:0 12px 34px rgba(35,52,61,.08)}
.auth-card .form-grid{gap:12px 16px}
.auth-card .form-group{margin:10px 0}
.mini-note{display:block;margin-top:5px}

/* Admin v2 - menor, mais limpo */
.admin-shell{grid-template-columns:232px 1fr}
.nav-link{font-size:13.5px;min-height:40px}
.content{padding:27px 30px 36px}
.page-title h1{font-size:28px}
.kpi .value{font-size:28px}
.card h2{font-size:20px}
.sidebar-head{padding-top:18px}
.sidebar-scroll{padding-top:6px}
.collapsed .admin-shell{grid-template-columns:68px 1fr}

/* v2.1.0 - gestão de acessos de fornecedores */
.kpi-grid-5{grid-template-columns:repeat(5,1fr)}
@media(max-width:1350px){.kpi-grid-5{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.kpi-grid-5{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.kpi-grid-5{grid-template-columns:1fr}}

/* v2.2.0 - ficha individual de fornecedor e avaliação documental */
.supplier-summary-bar{
  display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:10px;background:#fff;border:1px solid var(--line);
  border-radius:14px;padding:14px 16px;margin-bottom:16px;box-shadow:0 6px 20px rgba(41,57,66,.05)
}
.supplier-summary-bar>div{padding:5px 8px;border-right:1px solid #edf1f3}
.supplier-summary-bar>div:last-child{border-right:0}
.supplier-summary-bar strong{display:block;font-size:22px;margin-top:4px}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.detail-item{border:1px solid #e7ecef;border-radius:11px;padding:12px 14px;background:#fbfcfd}
.detail-item span{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.detail-item strong{font-size:13px}
.document-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.document-card{border:1px solid var(--line);border-radius:13px;padding:16px;background:#fff}
.document-card.required{border-left:4px solid var(--gold)}
.document-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.document-card h3{font-size:16px;margin:3px 0 0}
.document-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:12px 0;font-size:12px;color:#60717b}
.na-box{background:#edf5fb;border-radius:9px;padding:10px;font-size:12px;margin:10px 0}
.reject-box{background:#fff0f0;border-radius:9px;padding:10px;font-size:12px;margin:10px 0;color:#913939}
@media(max-width:1100px){
  .supplier-summary-bar{grid-template-columns:repeat(3,1fr)}
  .document-cards{grid-template-columns:1fr}
}
@media(max-width:760px){
  .supplier-summary-bar,.detail-grid{grid-template-columns:1fr}
  .supplier-summary-bar>div{border-right:0;border-bottom:1px solid #edf1f3}
  .document-meta{grid-template-columns:1fr}
}

/* v2.3.0 - travas sequenciais e documentos cadastrais */
.checkitem.locked{opacity:.58}
.checkitem button:disabled,.btn:disabled{cursor:not-allowed;opacity:.45;filter:grayscale(.2)}
.gate-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 16px}
.gate-summary>div,.policy-gate-box>div{border:1px solid #e7ecef;border-radius:10px;padding:10px 12px;background:#fbfcfd}
.gate-summary span,.policy-gate-box .mini-note{font-size:11px;color:var(--muted)}
.gate-summary strong,.policy-gate-box strong{display:block;margin-top:4px;font-size:16px}
.policy-gate-box{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.document-progress{margin-bottom:14px}
.document-progress>div:first-child{display:flex;align-items:center;justify-content:space-between}
.document-progress strong{font-size:20px}
.supplier-doc-upload-list{display:grid;gap:12px}
.supplier-upload-card{border:1px solid var(--line);border-radius:13px;padding:16px;background:#fff}
.supplier-upload-card.required{border-left:4px solid var(--gold)}
.supplier-upload-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.supplier-upload-head h3{margin:4px 0 0;font-size:16px}
.upload-current{margin:12px 0;padding:10px 12px;border-radius:9px;background:#f3f7f8;font-size:12px}
.file-btn{position:relative}
@media(max-width:760px){
  .gate-summary{grid-template-columns:1fr}
  .policy-gate-box,.supplier-upload-head{align-items:flex-start;flex-direction:column}
}

/* v2.4.0 - recuperação de senha sem e-mail */
.password-help-note{
  margin-top:14px;
  padding:10px 12px;
  border-radius:10px;
  background:#f6f8f9;
  color:#6d7a82;
  font-size:12px;
  line-height:1.5;
}
.force-password-card{
  max-width:620px;
  margin:0 auto;
}

/* v2.5.0 - pendências documentais e homologação */
.supplier-alert-card{
  max-width:980px;margin:0 auto 18px;background:#fff7f7;border:1px solid #ffd9d9;border-left:5px solid var(--danger);
  border-radius:14px;padding:18px 20px;box-shadow:0 6px 20px rgba(80,40,40,.05)
}
.supplier-alert-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.supplier-alert-head h3{margin:3px 0 5px;font-size:19px}
.supplier-alert-head p{margin:0;color:#7a6767;font-size:13px}
.supplier-alert-list{display:grid;gap:9px;margin-top:14px}
.supplier-alert-item{
  display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #f0dede;
  padding:11px 12px;border-radius:10px
}
.supplier-upload-card.rejected{border-color:#efb3b3;background:#fffafa}
.supplier-upload-card.focused{box-shadow:0 0 0 4px rgba(201,75,75,.12),0 10px 28px rgba(201,75,75,.10)}
@media(max-width:760px){
  .supplier-alert-head,.supplier-alert-item{flex-direction:column;align-items:flex-start}
}

/* v2.5.3 - checklist documental do fornecedor */
.document-progress-pill{background:#fff;border:1px solid #dce3e7;border-radius:999px;padding:9px 14px;font-weight:800;font-size:13px}
.document-summary{margin-bottom:18px}
.document-summary>div:first-child{display:flex;justify-content:space-between;gap:14px;margin-bottom:10px}
.supplier-document-groups{display:grid;gap:18px;margin-bottom:18px}
.supplier-doc-section{background:#fff;border:1px solid #dfe5e8;border-radius:16px;padding:18px;box-shadow:0 7px 24px rgba(30,48,58,.04)}
.supplier-doc-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf0f2}
.supplier-doc-section-head h2{margin:2px 0 0;font-size:20px}
.supplier-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.supplier-registration-doc{border:1px solid #e0e6e9;border-radius:13px;padding:15px;background:#fbfcfc;display:flex;flex-direction:column;gap:12px}
.supplier-registration-doc.required{border-left:4px solid var(--accent)}
.supplier-registration-doc.rejected{border-color:#efb7b7;background:#fff9f9}
.supplier-registration-doc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.supplier-registration-doc-head h3{margin:6px 0 4px;font-size:16px}
.supplier-registration-doc-head p{margin:0;color:#6d7980;font-size:12px;line-height:1.45}
.doc-flags{display:flex;gap:6px;flex-wrap:wrap}
.supplier-doc-fileline{display:flex;justify-content:space-between;gap:14px;background:#fff;border:1px solid #edf0f2;border-radius:9px;padding:10px 11px}
.supplier-doc-fileline>div{min-width:0}
.supplier-doc-fileline span,.supplier-doc-fileline strong{display:block}
.supplier-doc-fileline strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.supplier-doc-actions{display:flex;gap:7px;flex-wrap:wrap}
.doc-upload-help{margin-top:auto}
.file-btn{cursor:pointer}
@media(max-width:850px){.supplier-upload-grid{grid-template-columns:1fr}.supplier-registration-doc-head,.supplier-doc-fileline{flex-direction:column}}

/* v2.5.5 - pré-visualização do checklist antes de concluir etapas anteriores */
.preview-document-note{
  margin-bottom:18px;
  border-left:4px solid var(--accent);
  background:#fffaf0;
}
.preview-document-note strong{display:block;font-size:15px;margin-bottom:4px}
.preview-document-note p{margin:0 0 10px;color:#6f7478;font-size:13px;line-height:1.5}
.btn:disabled{opacity:.52;cursor:not-allowed;box-shadow:none}

/* v2.6.0 - políticas corporativas */
.policy-manager-body{min-width:min(1000px,82vw)}
.policy-manager-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.policy-manager-toolbar p{margin:0;color:#687780}
.policy-supplier-list{display:grid;gap:13px;margin-bottom:18px}
.supplier-policy-card{border-left:4px solid #d9e0e4}
.supplier-policy-card.accepted{border-left-color:#51a67c;background:#fbfffd}
.supplier-policy-main{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.supplier-policy-main h3{font-size:18px;margin:8px 0 6px}
.supplier-policy-main p{color:#687780;font-size:13px;max-width:720px}
.supplier-policy-actions{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:220px}
.policy-check{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;cursor:pointer}
.policy-check input{width:17px;height:17px}
.actions-cell{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:800px){.supplier-policy-main,.policy-manager-toolbar{flex-direction:column}.supplier-policy-actions{align-items:flex-start;min-width:0}}


/* =========================================================
   v2.6.3 - correção de layout do gerenciador de políticas
   Sem barra de rolagem horizontal
   ========================================================= */

/* Modal específico de Políticas: ocupa a largura disponível sem estourar a tela */
.modal:has(.policy-manager-body){
  width:min(1080px,94vw);
  max-width:94vw;
  overflow-x:hidden;
}

/* O conteúdo não força mais uma largura maior que o modal */
.policy-manager-body{
  min-width:0 !important;
  width:100%;
  box-sizing:border-box;
  overflow-x:hidden;
}

/* Cabeçalho interno mais compacto */
.policy-manager-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.policy-manager-toolbar p{
  flex:1 1 520px;
  min-width:0;
  margin:0;
}

/* A tabela se adapta à largura real do modal */
.policy-manager-body .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

.policy-manager-body table{
  width:100%;
  min-width:0 !important;
  table-layout:fixed;
}

.policy-manager-body th,
.policy-manager-body td{
  padding:12px 12px;
  vertical-align:middle;
  overflow-wrap:anywhere;
}

.policy-manager-body th:nth-child(1),
.policy-manager-body td:nth-child(1){
  width:42%;
}

.policy-manager-body th:nth-child(2),
.policy-manager-body td:nth-child(2){
  width:10%;
}

.policy-manager-body th:nth-child(3),
.policy-manager-body td:nth-child(3){
  width:13%;
}

.policy-manager-body th:nth-child(4),
.policy-manager-body td:nth-child(4){
  width:12%;
}

.policy-manager-body th:nth-child(5),
.policy-manager-body td:nth-child(5){
  width:23%;
}

.policy-manager-body .actions-cell{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.policy-manager-body .actions-cell .btn{
  padding:8px 10px;
  font-size:12px;
}

/* Rodapé sempre visível e sem criar largura extra */
.modal:has(.policy-manager-body) .modal-foot{
  position:sticky;
  bottom:0;
  background:#fff;
  z-index:3;
}

/* Em notebook/tela menor, transforma cada política em bloco legível */
@media(max-width:900px){
  .modal:has(.policy-manager-body){
    width:96vw;
    max-width:96vw;
  }

  .policy-manager-body .table-wrap{
    border:0;
    background:transparent;
  }

  .policy-manager-body table,
  .policy-manager-body thead,
  .policy-manager-body tbody,
  .policy-manager-body tr,
  .policy-manager-body td{
    display:block;
    width:100% !important;
  }

  .policy-manager-body thead{
    display:none;
  }

  .policy-manager-body tr{
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
    margin-bottom:10px;
    padding:12px;
  }

  .policy-manager-body td{
    border:0;
    padding:5px 0;
  }

  .policy-manager-body td:nth-child(2)::before{content:"Versão: ";font-weight:800;}
  .policy-manager-body td:nth-child(3)::before{content:"Obrigatória: ";font-weight:800;}
  .policy-manager-body td:nth-child(4)::before{content:"Status: ";font-weight:800;}

  .policy-manager-body .actions-cell{
    margin-top:7px;
    padding-top:9px;
    border-top:1px solid #edf1f3;
  }
}

@media(max-width:600px){
  .modal-backdrop{
    padding:10px;
  }

  .modal:has(.policy-manager-body){
    width:100%;
    max-width:100%;
    max-height:96vh;
  }

  .policy-manager-toolbar .btn{
    width:100%;
  }
}


/* =========================================================
   v2.6.4 - ajuste definitivo dos botões de ação
   ========================================================= */

/* Modal mais equilibrado */
.modal:has(.policy-manager-body){
  width:min(1180px,92vw) !important;
  max-width:92vw !important;
  overflow-x:hidden !important;
}

/* tabela sem esmagar a coluna de ações */
.policy-manager-body .table-wrap{
  overflow-x:hidden !important;
}

.policy-manager-body table{
  width:100% !important;
  table-layout:auto !important;
}

.policy-manager-body th,
.policy-manager-body td{
  overflow-wrap:normal !important;
  word-break:normal !important;
  white-space:normal !important;
}

/* largura das colunas */
.policy-manager-body th:nth-child(1),
.policy-manager-body td:nth-child(1){
  width:auto !important;
  min-width:300px !important;
}

.policy-manager-body th:nth-child(2),
.policy-manager-body td:nth-child(2){
  width:90px !important;
  min-width:90px !important;
}

.policy-manager-body th:nth-child(3),
.policy-manager-body td:nth-child(3){
  width:110px !important;
  min-width:110px !important;
}

.policy-manager-body th:nth-child(4),
.policy-manager-body td:nth-child(4){
  width:100px !important;
  min-width:100px !important;
}

.policy-manager-body th:nth-child(5),
.policy-manager-body td:nth-child(5){
  width:250px !important;
  min-width:250px !important;
}

/* botões lado a lado, sem quebrar letra por letra */
.policy-manager-body .actions-cell{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  flex-wrap:nowrap !important;
  min-width:250px !important;
}

.policy-manager-body .actions-cell .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
  min-width:72px !important;
  width:auto !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
  overflow-wrap:normal !important;
  writing-mode:horizontal-tb !important;
  padding:8px 12px !important;
  font-size:12px !important;
  line-height:1.2 !important;
}

/* não transformar em cartões no tamanho comum de notebook */
@media(max-width:1100px){
  .modal:has(.policy-manager-body){
    width:96vw !important;
    max-width:96vw !important;
  }

  .policy-manager-body th:nth-child(1),
  .policy-manager-body td:nth-child(1){
    min-width:250px !important;
  }

  .policy-manager-body th:nth-child(5),
  .policy-manager-body td:nth-child(5),
  .policy-manager-body .actions-cell{
    width:220px !important;
    min-width:220px !important;
  }

  .policy-manager-body .actions-cell{
    flex-wrap:wrap !important;
  }
}

/* somente em telas realmente pequenas vira cartões */
@media(max-width:720px){
  .policy-manager-body table,
  .policy-manager-body thead,
  .policy-manager-body tbody,
  .policy-manager-body tr,
  .policy-manager-body td{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
  }

  .policy-manager-body thead{
    display:none !important;
  }

  .policy-manager-body tr{
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px;
    margin-bottom:10px;
    background:#fff;
  }

  .policy-manager-body td{
    border:0 !important;
    padding:5px 0 !important;
  }

  .policy-manager-body .actions-cell{
    min-width:0 !important;
    width:100% !important;
    flex-wrap:wrap !important;
    margin-top:8px;
    padding-top:10px !important;
    border-top:1px solid #edf1f3 !important;
  }
}

/* =========================================================
   v2.7.0 - telas reais de Configurações
   ========================================================= */
.modal:has(.config-manager-body){
  width:min(980px,92vw);
  max-width:92vw;
}
.config-manager-body{min-width:0;overflow-x:hidden}
.config-intro{margin:0 0 14px;color:#687780;font-size:14px}
.config-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;padding:11px 12px;background:#f7f9fa;border:1px solid #e5eaed;border-radius:10px;font-size:13px}
.config-table-list{display:grid;gap:8px}
.config-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid #e3e8eb;border-radius:11px;background:#fff}
.config-row strong{font-size:14px}
.config-row-actions{display:flex;gap:7px;flex-wrap:nowrap;flex:0 0 auto}
.config-row-actions .btn{white-space:nowrap}
.matrix-list{display:grid;gap:7px}
.matrix-row{display:grid;grid-template-columns:minmax(260px,1fr) 140px 140px;align-items:center;gap:15px;padding:12px 14px;border:1px solid #e3e8eb;border-radius:11px;background:#fff}
.matrix-row label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:800}
.matrix-row input[type=checkbox]{width:18px;height:18px}
@media(max-width:760px){
  .config-row{align-items:flex-start;flex-direction:column}
  .config-row-actions{width:100%;flex-wrap:wrap}
  .matrix-row{grid-template-columns:1fr}
  .matrix-row label{justify-content:flex-start}
}

/* v2.7.1 - separação Empresa x Contato e persistência */
.form-section-title{
  margin:8px 0 0;
  padding:12px 14px 8px;
  border-top:1px solid #e4e9ec;
}
.form-section-title span{
  display:block;
  font-size:15px;
  font-weight:800;
  color:#33444f;
}
.form-section-title small{
  display:block;
  margin-top:3px;
  color:#77858e;
  font-size:12px;
}

/* v2.7.3 - fluxo sequencial obrigatório */
.step-locked{opacity:.58}
.step-locked .btn{cursor:not-allowed}
.validation-summary{
  padding:14px 16px;
  border-radius:11px;
  margin-bottom:14px;
  border:1px solid #e0e6e9;
}
.danger-summary{
  border-color:#f0c6c6;
  background:#fff7f7;
}
.danger-summary h3{margin:0 0 5px;color:#9d2929}
.danger-summary p{margin:0;color:#744}

/* v2.7.7 - ações consistentes em todas as etapas */
.save-strip .action-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
@media(max-width:700px){
  .save-strip .action-row{
    width:100%;
  }
  .save-strip .action-row .btn{
    flex:1 1 150px;
  }
}

/* v2.8.1 - Leitura controlada das políticas */
.supplier-policy-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  min-width:190px;
}
.policy-accepted-lock{
  font-size:12px;
  font-weight:800;
  color:#13724a;
  background:#e8f6ef;
  border-radius:999px;
  padding:7px 10px;
}
.policy-reader-modal{
  width:min(1120px,96vw);
  max-height:94vh;
  overflow:hidden;
}
.policy-reader-head h2{
  margin:3px 0 2px;
}
.policy-reader-scroll{
  height:min(68vh,720px);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#eef2f4;
  padding:18px;
  scroll-behavior:smooth;
}
.policy-reader-instruction{
  display:flex;
  flex-direction:column;
  gap:4px;
  background:#fff8e7;
  border:1px solid #f2d58b;
  border-radius:12px;
  padding:13px 15px;
  margin-bottom:14px;
  position:sticky;
  top:0;
  z-index:3;
}
.policy-reader-instruction span{
  color:#6d7478;
  font-size:13px;
}
.policy-pdf-frame{
  background:#fff;
  border:1px solid #dbe3e7;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(34,52,61,.08);
}
.policy-pdf-frame iframe{
  display:block;
  width:100%;
  height:72vh;
  min-height:640px;
  border:0;
  background:#fff;
}
.policy-reader-end{
  margin-top:18px;
  min-height:180px;
  background:#fff;
  border:2px dashed #b8c7ce;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:5px;
  padding:26px;
}
.policy-reader-end-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e6f5ed;
  color:#13724a;
  font-weight:900;
  font-size:20px;
}
.policy-reader-end span{
  color:#73818a;
  font-size:13px;
}
.policy-reader-foot{
  align-items:center;
  justify-content:space-between;
}
.policy-read-progress{
  font-size:12px;
  color:#65747d;
  font-weight:700;
}
.policy-accept-ready{
  box-shadow:0 0 0 3px rgba(246,185,39,.2);
}
@media(max-width:760px){
  .supplier-policy-main{
    grid-template-columns:1fr;
  }
  .supplier-policy-actions{
    align-items:stretch;
    min-width:0;
  }
  .policy-reader-modal{
    width:98vw;
  }
  .policy-pdf-frame iframe{
    min-height:520px;
  }
  .policy-reader-foot{
    align-items:stretch;
    flex-direction:column;
  }
  .policy-reader-foot .action-row{
    width:100%;
  }
}

/* v2.8.3 - relatórios funcionais */
.report-modal{
  width:min(1280px,96vw);
  max-height:94vh;
}
.report-modal-body{
  overflow:auto;
  max-height:72vh;
}
.report-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
  margin-bottom:16px;
}
.report-kpi{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  background:#f8fafb;
}
.report-kpi span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:5px;
}
.report-kpi strong{
  font-size:20px;
}
.report-table-wrap{
  max-height:54vh;
  overflow:auto;
}
.report-table-wrap thead th{
  position:sticky;
  top:0;
  background:#f3f6f7;
  z-index:2;
}
.report-empty-cell{
  text-align:center;
  padding:32px !important;
  color:var(--muted);
}
.report-modal-foot{
  justify-content:space-between;
}

.summary-subline{
  display:block;
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
  font-weight:600;
}

/* v2.8.7 — refinamento visual da home */
.public-hero .btn,.feature-card,.public-card{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.public-hero .btn:hover{transform:translateY(-2px)}
.feature-card:hover,.public-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(31,52,61,.10)}
.home-restricted-btn{gap:10px;justify-content:center;box-shadow:0 8px 18px rgba(245,176,0,.20)}
.home-restricted-btn:hover{transform:translateY(-2px);box-shadow:0 11px 22px rgba(245,176,0,.27)}
.home-btn-arrow{font-size:18px;transition:transform .18s ease}
.home-restricted-btn:hover .home-btn-arrow{transform:translateX(3px)}

/* v2.8.8 — demonstração guiada da home */
.demo-backdrop{position:fixed;inset:0;background:rgba(20,34,41,.68);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px}
.demo-window{width:min(980px,96vw);background:#fff;border-radius:22px;box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:hidden}
.demo-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #e3e9ec}.demo-head h3{margin:0;color:#263d48}.demo-close{border:0;background:#edf2f4;border-radius:12px;width:42px;height:42px;font-size:25px;cursor:pointer}
.demo-stage{position:relative;background:#f3f6f7;padding:28px;min-height:500px}.demo-browser{background:#fff;border:1px solid #dbe4e8;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(30,50,60,.10)}
.demo-bar{height:44px;background:#f8fafb;border-bottom:1px solid #e4eaed;display:flex;align-items:center;gap:7px;padding:0 15px}.demo-dot{width:10px;height:10px;border-radius:50%;background:#c9d2d6}.demo-url{margin-left:10px;background:#edf2f4;border-radius:8px;height:25px;flex:1;max-width:520px}
.demo-content{padding:25px}.demo-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-bottom:24px}.demo-step{padding:10px 5px;border-radius:8px;background:#edf2f4;text-align:center;font-size:12px;font-weight:700;color:#65747b}.demo-step.active{background:#fbb91f;color:#1d3440}.demo-step.done{background:#e1f2eb;color:#16734f}
.demo-card{border:1px solid #dde6e9;border-radius:14px;padding:22px}.demo-card h2{margin:0 0 6px}.demo-card p{margin:0 0 18px;color:#708087}.demo-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.demo-field label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.demo-input{height:43px;border:1px solid #cfdbdf;border-radius:9px;padding:11px;font-size:14px;color:#2c424c}.demo-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.demo-btn{padding:11px 18px;border-radius:9px;background:#edf2f4;font-weight:800}.demo-btn.primary{background:#fbb91f}
.demo-caption{margin-top:18px;text-align:center;font-weight:700;color:#53666f;min-height:24px}.demo-progress{height:4px;background:#dfe7ea}.demo-progress span{display:block;height:100%;background:#fbb91f;width:0;transition:width .45s ease}
.demo-cursor{position:absolute;width:22px;height:28px;z-index:4;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25));transition:all .65s ease;pointer-events:none}.demo-cursor:before{content:'➤';display:block;font-size:27px;transform:rotate(-28deg);color:#203943}
.demo-launch{margin-left:10px;color:#fff!important;background:rgba(255,255,255,.08)!important;border-color:#a7b4ba!important}
.demo-launch:hover{background:rgba(255,255,255,.15)!important}
@media(max-width:700px){.demo-stage{padding:12px;min-height:520px}.demo-content{padding:15px}.demo-fields{grid-template-columns:1fr}.demo-steps{grid-template-columns:repeat(3,1fr)}.demo-window{width:100%}}
/* v2.8.9 — demo mais detalhada e animada, mantendo ~20s */
.demo-window{width:min(1080px,96vw)}.demo-stage{min-height:545px}.demo-content{padding:20px 24px}.demo-card{min-height:370px;position:relative;overflow:hidden}.demo-enter{animation:demoIn .32s ease both}.demo-stage-label{font-size:10px;letter-spacing:1.4px;font-weight:900;color:#f0a900;margin-bottom:5px}.demo-screen-body{min-height:220px}.demo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px 14px}.demo-mini-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.demo-mini-grid div{background:#f7f9fa;border:1px solid #e1e8eb;border-radius:8px;padding:8px}.demo-mini-grid b,.demo-mini-grid span{display:block;font-size:10px}.demo-mini-grid span{margin-top:3px;color:#53666f}.demo-section-title{font-weight:800;font-size:12px;border-top:1px solid #e7ecee;margin:13px 0 8px;padding-top:10px}.demo-info{margin-top:16px;padding:11px;border-radius:9px;background:#f7f9fa;color:#6a7b82;font-size:12px}.demo-policy,.demo-doc,.demo-review{display:flex;align-items:center;gap:12px;border:1px solid #e0e7ea;border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fff}.demo-policy>div,.demo-doc>div,.demo-review>div{flex:1}.demo-policy b,.demo-policy small,.demo-doc b,.demo-doc small,.demo-review b,.demo-review small{display:block}.demo-policy small,.demo-doc small,.demo-review small{font-size:10px;color:#718087;margin-top:2px}.demo-tag{display:inline-block;font-size:9px;font-weight:800;background:#fff0d4;color:#a86c00;border-radius:12px;padding:3px 6px;margin-right:7px}.demo-read,.demo-ok{font-size:11px;font-weight:800;color:#16734f}.demo-file{font-size:10px;background:#f3f6f7;border-radius:7px;padding:6px 8px;color:#53666f}.demo-review>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e1f2eb;color:#16734f;font-weight:900}.demo-review em{font-style:normal;font-size:10px;font-weight:800;color:#16734f}.demo-success{text-align:center;padding:22px}.demo-success-icon{width:50px;height:50px;border-radius:50%;background:#e1f2eb;color:#16734f;display:grid;place-items:center;margin:0 auto 8px;font-size:26px;font-weight:900;animation:demoPop .45s ease}.demo-success h4{font-size:20px;margin:4px}.demo-success p{margin:5px 0 14px}.demo-meter{height:8px;border-radius:8px;background:#e5ebed;max-width:420px;margin:0 auto 7px;overflow:hidden}.demo-meter span{display:block;height:100%;width:100%;background:#fbb91f;animation:demoFill 1.2s ease}.demo-input.type{position:relative;overflow:hidden;animation:demoField .5s ease both}.demo-target{animation:demoButton 1.2s ease infinite}.demo-cursor.clicking:after{content:'';position:absolute;left:3px;top:4px;width:18px;height:18px;border:2px solid #fbb91f;border-radius:50%;animation:demoClick .5s ease}.demo-url{padding:5px 10px;font-size:10px;color:#8a989e;overflow:hidden;white-space:nowrap}.demo-caption{margin-top:12px}
@keyframes demoIn{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes demoPop{0%{transform:scale(.6)}70%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes demoFill{from{width:0}to{width:100%}}@keyframes demoField{from{background:#fff8e8}to{background:#fff}}@keyframes demoButton{50%{box-shadow:0 0 0 5px rgba(251,185,31,.18)}}@keyframes demoClick{from{opacity:1;transform:scale(.3)}to{opacity:0;transform:scale(2)}}

/* v2.9.0 — demo enriquecida sem aumentar a duração */
.demo-head-side{display:flex;align-items:center;gap:12px}.demo-live{font-size:10px;font-weight:800;color:#60727a;background:#f4f7f8;border:1px solid #e0e7ea;border-radius:999px;padding:7px 10px}.demo-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2ca66f;margin-right:5px;animation:demoPulse 1.2s infinite}.demo-secure{margin-left:auto;font-size:10px;color:#718087;font-weight:700}.demo-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.demo-step-percent{font-size:11px;font-weight:900;color:#8b6a13;background:#fff5d9;border:1px solid #f7dfa0;border-radius:999px;padding:6px 9px}.demo-btn.secondary{background:#fff;border:1px solid #d9e2e6;color:#65747b}.demo-autofill{font-size:9px;color:#16734f;background:#e8f5ef;border-radius:999px;padding:4px 7px}.demo-section-title{display:flex;justify-content:space-between;align-items:center}.demo-contact-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:9px 11px;background:#f7f9fa;border-radius:10px}.demo-contact-head>div:nth-child(2){flex:1}.demo-contact-head b,.demo-contact-head small{display:block}.demo-contact-head small{font-size:10px;color:#74838a}.demo-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#263f4a;color:#fff;font-size:11px;font-weight:900}.demo-badge-soft{font-size:9px;font-weight:800;color:#16734f;background:#e6f4ed;border-radius:999px;padding:5px 8px}.demo-save-note{position:relative;padding-left:24px}.demo-save-note::before{content:'';position:absolute;left:11px;top:50%;width:6px;height:6px;background:#2ca66f;border-radius:50%;transform:translateY(-50%)}.demo-policy-reader{display:grid;grid-template-columns:.9fr 1.4fr;gap:10px}.demo-policy-side{position:relative;background:#f7f9fa;border:1px solid #dfe7ea;border-radius:10px;padding:12px;min-height:180px;overflow:hidden}.demo-policy-side b,.demo-policy-side small{display:block}.demo-policy-side small{font-size:9px;color:#718087;margin-top:2px}.demo-pdf-lines{margin-top:13px;background:#fff;border:1px solid #e0e7ea;padding:10px;border-radius:6px}.demo-pdf-lines i{display:block;height:4px;background:#dfe5e8;border-radius:3px;margin:6px 0}.demo-pdf-lines i:nth-child(2n){width:82%}.demo-pdf-lines i:nth-child(3n){width:66%}.demo-scroll-track{position:absolute;right:5px;top:42px;bottom:10px;width:4px;background:#e1e7e9;border-radius:5px}.demo-scroll-track span{display:block;width:100%;height:28px;background:#9eacb2;border-radius:5px;transition:transform 1.1s ease}.demo-scroll-track span.to-bottom{transform:translateY(105px)}.demo-policy-list .demo-policy{padding:8px 10px}.demo-policy.active{border-color:#f3cf70;background:#fffaf0}.demo-read.accepted{background:#e6f4ed;border-radius:999px;padding:5px 7px}.demo-doc-summary,.demo-review-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.demo-doc-summary span,.demo-review-summary>div{background:#f7f9fa;border:1px solid #e1e8eb;border-radius:8px;padding:8px;text-align:center;font-size:9px;color:#718087}.demo-doc-summary b,.demo-review-summary span{display:block;font-size:14px;color:#263f4a}.demo-doc-icon{float:left;margin-right:8px;width:27px;height:31px;border-radius:5px;background:#f0f3f4;color:#6a7a81;display:grid;place-items:center;font-size:7px;font-weight:900}.demo-upload{width:90px}.demo-upload i{display:block;height:5px;width:35%;background:#fbb91f;border-radius:5px;transition:width .65s ease}.demo-upload small{font-size:8px;color:#718087}.demo-upload.finish i{width:100%;background:#2ca66f}.demo-upload.finish small{font-size:0}.demo-upload.finish small:after{content:'✓ Enviado';font-size:8px;color:#16734f;font-weight:800}.demo-review-in{animation:demoReviewIn .4s ease both}.demo-protocol{margin:12px auto 0;max-width:360px;border:1px solid #e0e7ea;border-radius:9px;padding:9px;background:#f8fafb;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;text-align:left}.demo-protocol span{font-size:8px;color:#75848b;font-weight:800}.demo-protocol strong{font-size:11px;text-align:right}.demo-protocol small{grid-column:1/-1;font-size:8px;color:#75848b}.demo-next{max-width:360px;margin:7px auto 0;padding:7px 9px;border-radius:8px;background:#fff7e3;text-align:left}.demo-next b,.demo-next span{display:block;font-size:9px}.demo-next span{color:#6d777b;margin-top:2px}.demo-type-seq{animation:demoTypeReveal .55s ease both}.demo-mini-grid{grid-template-columns:repeat(4,1fr)}
@keyframes demoPulse{50%{opacity:.35;transform:scale(.8)}}@keyframes demoReviewIn{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}@keyframes demoTypeReveal{from{color:transparent;background:linear-gradient(90deg,#fff8e8,#fff);transform:translateY(2px)}to{color:#2c424c;background:#fff;transform:none}}
@media(max-width:700px){.demo-live,.demo-secure{display:none}.demo-policy-reader{grid-template-columns:1fr}.demo-policy-side{display:none}.demo-doc-summary,.demo-review-summary{grid-template-columns:repeat(3,1fr)}.demo-btn.secondary{display:none}}

/* v2.9.1 — demonstração compacta para manter cabeçalho e botão fechar sempre visíveis */
.demo-backdrop{padding:16px 24px;align-items:center}
.demo-window{width:min(1040px,92vw);max-height:94vh;display:flex;flex-direction:column;overflow:hidden}
.demo-head{padding:12px 18px;flex:0 0 auto}
.demo-head .eyebrow{font-size:9px}
.demo-head h3{font-size:18px;line-height:1.15}
.demo-close{width:38px;height:38px;flex:0 0 38px}
.demo-progress{flex:0 0 4px}
.demo-stage{padding:18px 22px;min-height:0;overflow:auto;flex:1}
.demo-bar{height:38px}
.demo-content{padding:15px 20px}
.demo-steps{margin-bottom:14px}
.demo-step{padding:8px 4px;font-size:11px}
.demo-card{padding:16px 20px;min-height:320px}
.demo-card h2{font-size:22px}
.demo-card p{margin-bottom:12px}
.demo-screen-body{min-height:190px}
.demo-actions{margin-top:14px}
.demo-caption{margin-top:9px;font-size:13px}
@media(max-height:820px) and (min-width:701px){
  .demo-window{max-height:92vh}
  .demo-stage{padding:12px 18px}
  .demo-content{padding:12px 16px}
  .demo-card{padding:13px 17px;min-height:285px}
  .demo-screen-body{min-height:170px}
  .demo-steps{margin-bottom:10px}
  .demo-actions{margin-top:10px}
  .demo-caption{margin-top:6px}
}


/* v2.9.2 — demo menor e botão de fechar permanentemente visível */
.demo-backdrop{
  align-items:flex-start!important;
  justify-content:center;
  padding:10px 20px!important;
  overflow:hidden;
}
.demo-window{
  position:relative;
  width:min(920px,86vw)!important;
  height:min(720px,82vh)!important;
  max-height:82vh!important;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
  border-radius:18px;
}
.demo-head{
  min-height:54px;
  padding:9px 58px 9px 16px!important;
  flex:0 0 auto;
}
.demo-head h3{font-size:17px!important;line-height:1.1}
.demo-head .eyebrow{font-size:8px!important;margin-bottom:3px}
.demo-head-side .demo-close{display:none!important}
.demo-close-floating{
  position:absolute;
  top:8px;
  right:10px;
  z-index:10050;
  width:38px;
  height:38px;
  border:0;
  border-radius:11px;
  background:#edf2f4;
  color:#1f3641;
  font-size:25px;
  line-height:38px;
  text-align:center;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(31,52,61,.08);
}
.demo-close-floating:hover{background:#e2e9ec}
.demo-progress{flex:0 0 4px}
.demo-stage{
  min-height:0!important;
  flex:1 1 auto;
  overflow:hidden!important;
  padding:12px 16px 8px!important;
}
.demo-browser{border-radius:13px}
.demo-bar{height:31px!important;padding:0 11px!important}
.demo-dot{width:8px!important;height:8px!important}
.demo-url{height:20px!important;font-size:8px!important;padding:3px 8px!important}
.demo-secure{font-size:8px!important}
.demo-content{padding:10px 13px!important}
.demo-steps{gap:5px!important;margin-bottom:8px!important}
.demo-step{padding:6px 3px!important;font-size:9px!important;border-radius:7px!important}
.demo-card{
  padding:10px 13px!important;
  min-height:0!important;
  border-radius:11px!important;
}
.demo-card-top{gap:8px!important}
.demo-card h2{font-size:18px!important;line-height:1.08;margin-bottom:3px!important}
.demo-card p{font-size:11px!important;margin:0 0 7px!important}
.demo-stage-label{font-size:8px!important;margin-bottom:3px!important}
.demo-step-percent{font-size:9px!important;padding:4px 7px!important}
.demo-screen-body{min-height:0!important}
.demo-form-grid{gap:7px 10px!important}
.demo-field label{font-size:9px!important;margin-bottom:3px!important}
.demo-input{height:31px!important;padding:7px 8px!important;font-size:10px!important;border-radius:7px!important}
.demo-section-title{font-size:9px!important;margin:7px 0 5px!important;padding-top:6px!important}
.demo-mini-grid{gap:5px!important}
.demo-mini-grid div{padding:5px 6px!important;border-radius:6px!important}
.demo-mini-grid b,.demo-mini-grid span{font-size:8px!important}
.demo-info{margin-top:7px!important;padding:7px!important;font-size:9px!important}
.demo-contact-head{margin-bottom:7px!important;padding:6px 8px!important}
.demo-avatar{width:28px!important;height:28px!important;font-size:9px!important}
.demo-contact-head b{font-size:10px!important}.demo-contact-head small{font-size:8px!important}
.demo-policy-side{min-height:132px!important;padding:8px!important}
.demo-policy-side b{font-size:10px!important}.demo-policy-side small{font-size:8px!important}
.demo-pdf-lines{margin-top:7px!important;padding:6px!important}
.demo-pdf-lines i{height:3px!important;margin:4px 0!important}
.demo-scroll-track{top:33px!important;bottom:7px!important}
.demo-scroll-track span{height:21px!important}
.demo-scroll-track span.to-bottom{transform:translateY(72px)!important}
.demo-policy,.demo-doc,.demo-review{padding:6px 8px!important;margin-bottom:5px!important;gap:8px!important}
.demo-policy small,.demo-doc small,.demo-review small{font-size:8px!important}
.demo-policy b,.demo-doc b,.demo-review b{font-size:10px!important}
.demo-tag{font-size:7px!important;padding:2px 5px!important}
.demo-read,.demo-ok{font-size:9px!important}
.demo-doc-summary,.demo-review-summary{gap:5px!important;margin-bottom:6px!important}
.demo-doc-summary span,.demo-review-summary>div{padding:5px!important;font-size:7px!important}
.demo-doc-summary b,.demo-review-summary span{font-size:11px!important}
.demo-doc-icon{width:23px!important;height:25px!important}
.demo-upload{width:72px!important}
.demo-review>span{width:21px!important;height:21px!important;font-size:10px!important}
.demo-review em{font-size:8px!important}
.demo-success{padding:9px!important}
.demo-success-icon{width:38px!important;height:38px!important;font-size:20px!important;margin-bottom:4px!important}
.demo-success h4{font-size:15px!important;margin:2px!important}
.demo-success p{font-size:10px!important;margin:3px 0 7px!important}
.demo-meter{height:6px!important;max-width:330px!important;margin-bottom:4px!important}
.demo-protocol{margin-top:7px!important;max-width:300px!important;padding:6px!important}
.demo-next{max-width:300px!important;margin-top:4px!important;padding:5px 7px!important}
.demo-actions{margin-top:7px!important;gap:7px!important}
.demo-btn{padding:7px 11px!important;font-size:10px!important;border-radius:7px!important}
.demo-caption{margin-top:5px!important;min-height:16px!important;font-size:10px!important}
.demo-cursor{transform:scale(.82);transform-origin:top left}

@media(max-height:800px){
  .demo-window{height:78vh!important;max-height:78vh!important;width:min(880px,84vw)!important}
  .demo-live{display:none!important}
  .demo-head{min-height:48px;padding-top:7px!important;padding-bottom:7px!important}
  .demo-stage{padding:8px 12px 5px!important}
  .demo-content{padding:7px 10px!important}
  .demo-step{padding:5px 2px!important;font-size:8px!important}
  .demo-card{padding:8px 10px!important}
  .demo-card h2{font-size:16px!important}
  .demo-card p{font-size:9px!important;margin-bottom:5px!important}
  .demo-actions{margin-top:5px!important}
  .demo-caption{font-size:9px!important;margin-top:3px!important}
}
@media(max-width:900px){
  .demo-window{width:94vw!important}
}


/* v2.9.3 — redução real da demonstração e X sempre visível */
.demo-backdrop{
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px 12px!important;
  overflow:hidden!important;
}
.demo-window{
  position:relative!important;
  width:min(820px,78vw)!important;
  height:auto!important;
  max-height:76vh!important;
  margin:0 auto!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
.demo-head{
  position:relative!important;
  z-index:30!important;
  min-height:48px!important;
  padding:8px 54px 8px 14px!important;
  background:#fff!important;
}
.demo-close-floating{
  position:absolute!important;
  top:7px!important;
  right:8px!important;
  z-index:99999!important;
  width:34px!important;
  height:34px!important;
  line-height:34px!important;
  font-size:22px!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
.demo-progress{height:3px!important;flex:0 0 3px!important}
.demo-stage{
  padding:10px 12px 7px!important;
  overflow:hidden!important;
  min-height:0!important;
}
.demo-browser{
  zoom:.78!important;
  width:128.205%!important;
  max-width:none!important;
  transform-origin:top left!important;
}
.demo-caption{
  margin-top:3px!important;
  font-size:9px!important;
  min-height:13px!important;
}
.demo-cursor{
  transform:scale(.72)!important;
  transform-origin:top left!important;
}
@media(max-height:900px){
  .demo-window{width:min(790px,76vw)!important;max-height:72vh!important}
  .demo-browser{zoom:.74!important;width:135.135%!important}
}
@media(max-height:780px){
  .demo-window{width:min(760px,74vw)!important;max-height:68vh!important}
  .demo-browser{zoom:.68!important;width:147.059%!important}
  .demo-head{min-height:44px!important}
}
@media(max-width:1100px){
  .demo-window{width:86vw!important}
}


/* v2.9.4 — equilíbrio entre tamanho, legibilidade e X sempre visível */
.demo-backdrop{
  align-items:center!important;
  justify-content:center!important;
  padding:14px 18px!important;
  overflow:hidden!important;
}
.demo-window{
  position:relative!important;
  width:min(980px,88vw)!important;
  height:82vh!important;
  max-height:820px!important;
  min-height:650px!important;
  margin:0 auto!important;
  overflow:hidden!important;
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
}
.demo-head{
  flex:0 0 auto!important;
  min-height:54px!important;
  padding:10px 58px 10px 18px!important;
  background:#fff!important;
  position:relative!important;
  z-index:50!important;
}
.demo-head h3{
  font-size:19px!important;
}
.demo-close-floating{
  position:absolute!important;
  top:9px!important;
  right:10px!important;
  z-index:99999!important;
  width:38px!important;
  height:38px!important;
  line-height:38px!important;
  border-radius:10px!important;
  font-size:24px!important;
  display:grid!important;
  place-items:center!important;
  visibility:visible!important;
  opacity:1!important;
}
.demo-progress{
  flex:0 0 4px!important;
  height:4px!important;
}
.demo-stage{
  flex:1 1 auto!important;
  min-height:0!important;
  padding:12px 16px 8px!important;
  overflow:hidden!important;
}
.demo-browser{
  zoom:.88!important;
  width:113.636%!important;
  max-width:none!important;
  transform-origin:top left!important;
}
.demo-content{
  padding:11px 14px!important;
}
.demo-card{
  min-height:400px!important;
  padding:13px 16px!important;
}
.demo-screen-body{
  min-height:245px!important;
}
.demo-actions{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  margin-top:11px!important;
  gap:8px!important;
}
.demo-btn{
  padding:9px 14px!important;
  font-size:11px!important;
}
.demo-caption{
  margin-top:6px!important;
  min-height:18px!important;
  font-size:11px!important;
}
.demo-cursor{
  transform:scale(.84)!important;
  transform-origin:top left!important;
}

/* Em telas mais baixas, reduz pouco — sem voltar ao tamanho minúsculo da v2.9.3. */
@media(max-height:850px){
  .demo-window{
    width:min(930px,87vw)!important;
    height:84vh!important;
    min-height:590px!important;
  }
  .demo-browser{
    zoom:.83!important;
    width:120.482%!important;
  }
  .demo-card{
    min-height:370px!important;
  }
  .demo-screen-body{
    min-height:220px!important;
  }
}
@media(max-height:720px){
  .demo-window{
    width:min(900px,88vw)!important;
    height:86vh!important;
    min-height:540px!important;
  }
  .demo-browser{
    zoom:.78!important;
    width:128.205%!important;
  }
  .demo-card{
    min-height:340px!important;
  }
  .demo-screen-body{
    min-height:195px!important;
  }
}
@media(max-width:1050px){
  .demo-window{
    width:92vw!important;
  }
}


/* v2.9.5 — demonstração: botão de avanço sempre visível */
.demo-window{
  width:min(1080px,92vw)!important;
  height:min(800px,84vh)!important;
  min-height:620px!important;
}
.demo-stage{
  padding:10px 14px 8px!important;
  overflow:hidden!important;
}
.demo-browser{
  width:100%!important;
  max-width:100%!important;
  zoom:1!important;
  transform:scale(.86)!important;
  transform-origin:top left!important;
  /* compensa somente a escala, sem criar overflow horizontal */
  width:116.279%!important;
  height:116.279%!important;
}
.demo-content,
.demo-card,
.demo-screen-body,
.demo-form-grid,
.demo-actions{
  box-sizing:border-box!important;
  min-width:0!important;
}
.demo-content{
  width:100%!important;
  overflow:hidden!important;
}
.demo-card{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding:14px 16px!important;
}
.demo-screen-body{
  width:100%!important;
  min-height:255px!important;
  overflow:hidden!important;
}
.demo-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;
}
.demo-field,
.demo-input{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
.demo-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  width:100%!important;
  gap:9px!important;
  margin-top:12px!important;
  padding:0!important;
  overflow:visible!important;
}
.demo-btn{
  flex:0 0 auto!important;
  white-space:nowrap!important;
  padding:10px 15px!important;
  font-size:12px!important;
}
.demo-btn.primary{
  min-width:150px!important;
}
.demo-button-click{
  transform:scale(.96)!important;
  box-shadow:0 0 0 4px rgba(246,185,39,.24)!important;
}
.demo-cursor{
  z-index:80!important;
  transition:left .55s ease,top .55s ease,transform .18s ease!important;
}

/* tela com altura menor: reduz moderadamente, mas mantém a ação visível */
@media(max-height:800px){
  .demo-window{
    width:min(1020px,92vw)!important;
    height:86vh!important;
    min-height:570px!important;
  }
  .demo-browser{
    transform:scale(.80)!important;
    width:125%!important;
    height:125%!important;
  }
  .demo-screen-body{
    min-height:230px!important;
  }
}
@media(max-height:700px){
  .demo-browser{
    transform:scale(.75)!important;
    width:133.333%!important;
    height:133.333%!important;
  }
  .demo-screen-body{
    min-height:205px!important;
  }
}


/* v2.9.6 — correção estrutural da demo: ação sempre visível */
.demo-backdrop{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:14px!important;
  overflow:hidden!important;
}
.demo-window{
  width:min(1120px,94vw)!important;
  height:min(790px,84vh)!important;
  min-height:610px!important;
  max-height:84vh!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.demo-head{
  flex:0 0 58px!important;
}
.demo-progress{
  flex:0 0 4px!important;
}
.demo-stage{
  position:relative!important;
  flex:1 1 auto!important;
  min-height:0!important;
  padding:10px 14px 8px!important;
  overflow:hidden!important;
}
.demo-browser{
  width:100%!important;
  height:calc(100% - 30px)!important;
  max-width:100%!important;
  max-height:calc(100% - 30px)!important;
  margin:0 auto!important;
  zoom:.90!important;
  transform:none!important;
  transform-origin:initial!important;
  overflow:hidden!important;
}
.demo-content{
  height:calc(100% - 36px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
.demo-steps{
  margin-bottom:8px!important;
}
.demo-card{
  height:calc(100% - 42px)!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:0!important;
}
.demo-card-main{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:13px 15px 6px!important;
}
.demo-screen-body{
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
.demo-actions-fixed{
  flex:0 0 58px!important;
  width:100%!important;
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px 14px!important;
  margin:0!important;
  background:#fff!important;
  border-top:1px solid #e1e7ea!important;
  box-shadow:0 -5px 14px rgba(31,52,61,.06)!important;
  position:relative!important;
  z-index:12!important;
}
.demo-actions-fixed .demo-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:9px 14px!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.demo-actions-fixed .demo-btn.primary{
  min-width:166px!important;
}
.demo-close-floating{
  z-index:99999!important;
}
.demo-cursor{
  position:absolute!important;
  z-index:999!important;
  pointer-events:none!important;
  transition:left .52s ease,top .52s ease,transform .18s ease!important;
}

/* notebook / tela mais baixa */
@media(max-height:800px){
  .demo-window{
    width:min(1080px,94vw)!important;
    height:86vh!important;
    min-height:560px!important;
  }
  .demo-browser{
    zoom:.84!important;
  }
  .demo-card-main{
    padding:10px 13px 4px!important;
  }
  .demo-actions-fixed{
    flex-basis:54px!important;
    padding:7px 12px!important;
  }
}
@media(max-height:700px){
  .demo-browser{
    zoom:.78!important;
  }
}


/* v2.9.7 — matriz de documentos: rolagem vertical */
.modal-backdrop,
.settings-modal-backdrop{
  overflow:hidden!important;
}

.modal,
.settings-modal{
  max-height:86vh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}

.modal-header,
.settings-modal-header{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:5!important;
  background:#fff!important;
}

.modal-body,
.settings-modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding-bottom:28px!important;
}

/* garante scrollbar utilizável nos modais longos */
.modal-body::-webkit-scrollbar,
.settings-modal-body::-webkit-scrollbar{
  width:10px!important;
}
.modal-body::-webkit-scrollbar-thumb,
.settings-modal-body::-webkit-scrollbar-thumb{
  background:#c6d0d5!important;
  border-radius:10px!important;
  border:2px solid #fff!important;
}

/* fallback para qualquer modal de configuração que use a estrutura genérica */
body:has(.settings-page) .modal > div:last-child{
  min-height:0;
}

/* tela de notebook */
@media(max-height:800px){
  .modal,
  .settings-modal{
    max-height:82vh!important;
  }
}


/* v2.9.8 — destaca documento que precisa de resposta antes de avançar */
.supplier-registration-doc.doc-needs-response{
  border:2px solid #e05a47!important;
  box-shadow:0 0 0 4px rgba(224,90,71,.12),0 12px 26px rgba(31,52,61,.10)!important;
  animation:docNeedsResponsePulse .7s ease 2;
}
@keyframes docNeedsResponsePulse{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-2px)}
}


/* v3.0.0 — decisão final da homologação */
.supplier-final-decision{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-left:4px solid #f6b927;
}
.final-decision-copy{max-width:780px}
.final-decision-copy h2{margin:5px 0 7px}
.final-decision-copy p{margin:0;color:var(--muted)}
.final-decision-actions{flex:0 0 auto}
.final-approved-badge{font-size:14px;padding:10px 14px}
.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none!important;
  box-shadow:none!important;
}
@media(max-width:800px){
  .supplier-final-decision{flex-direction:column;align-items:flex-start}
  .final-decision-actions,.final-decision-actions .btn{width:100%}
}

/* v3.0.5 — gestão documental centralizada */
.document-guidance{margin-bottom:16px}
.document-quick-actions{flex-wrap:nowrap}
.document-quick-actions .btn{white-space:nowrap}


/* v3.0.6 — filtros avançados de fornecedores */
.supplier-filter-shell{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  margin-bottom:14px;
  box-shadow:0 8px 22px rgba(31,52,61,.04);
  overflow:hidden;
}
.supplier-filter-main{
  display:grid;
  grid-template-columns:minmax(320px,1.7fr) minmax(180px,.65fr) auto;
  gap:14px;
  align-items:end;
  padding:16px;
}
.supplier-search-wrap,
.supplier-status-wrap,
.filter-group{
  min-width:0;
}
.filter-label{
  display:block;
  font-weight:700;
  font-size:12px;
  color:var(--ink);
  margin:0 0 6px;
}
.supplier-main-search{
  width:100%!important;
  max-width:none!important;
}
.supplier-filter-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
#supplier-advanced-btn.active{
  background:#fff5d8;
  border-color:#f6b927;
}
.supplier-advanced-panel{
  border-top:1px solid var(--line);
  background:#fbfcfc;
  padding:16px;
}
.advanced-filter-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.advanced-filter-header strong{
  display:block;
  font-size:16px;
  margin-bottom:2px;
}
.advanced-filter-header span:not(.status){
  color:var(--muted);
  font-size:13px;
}
.advanced-filter-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
}
.filter-group .select,
.filter-group .input{
  width:100%;
}
.supplier-results-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:10px 2px 12px;
  color:var(--muted);
  font-size:13px;
}
.supplier-results-bar strong{
  color:var(--ink);
  font-size:17px;
}
.active-filter-summary{
  max-width:70%;
  text-align:right;
}
.active-filter-summary.has-filters{
  color:#8a6200;
  font-weight:600;
}
@media(max-width:1180px){
  .advanced-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .supplier-filter-main{grid-template-columns:1fr 220px}
  .supplier-filter-actions{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:850px){
  .supplier-filter-main{grid-template-columns:1fr}
  .supplier-filter-actions{grid-column:auto;flex-wrap:wrap}
  .advanced-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supplier-results-bar{align-items:flex-start;flex-direction:column}
  .active-filter-summary{max-width:100%;text-align:left}
}
@media(max-width:560px){
  .advanced-filter-grid{grid-template-columns:1fr}
}


/* v3.0.7 — tipo de fornecedor */
.supplier-type-chip{
  display:inline-block;
  max-width:230px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef3f5;
  color:#314b57;
  font-size:12px;
  font-weight:700;
  line-height:1.25;
}


/* v3.0.8 — gestão segura de fornecedor e acessos */
.supplier-admin-actions{flex-wrap:wrap}
.supplier-inactive-card{max-width:820px;margin:48px auto;border-left:4px solid #9aa7ad}
.status.muted{background:#edf1f2;color:#66777f}
.danger-summary{background:#fff2f0;border:1px solid #f3c2bc;border-radius:12px;padding:14px;margin:14px 0}
.danger-summary h3{color:#a9382b;margin:0 0 5px}
.danger-summary p{margin:0;color:#6d4b47}


/* v3.0.9 — organização das ações nas tabelas de fornecedores */
.supplier-actions-cell{
  min-width:255px;
  width:255px;
  white-space:nowrap;
}
.supplier-actions-inline{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  flex-wrap:nowrap;
}
.supplier-actions-inline .btn{
  margin:0;
  white-space:nowrap;
  min-height:34px;
  padding:7px 11px;
}
@media (max-width:1100px){
  .supplier-actions-cell{
    min-width:230px;
    width:230px;
  }
  .supplier-actions-inline{
    gap:5px;
  }
  .supplier-actions-inline .btn{
    padding:6px 9px;
    font-size:12px;
  }
}
@media (max-width:760px){
  .supplier-actions-cell{
    min-width:150px;
    width:auto;
    white-space:normal;
  }
  .supplier-actions-inline{
    flex-wrap:wrap;
  }
}


/* v3.1.0 — Lixeira de fornecedores */
.trash-summary{
  background:#fff8e5;
  border:1px solid #f5d27b;
  border-radius:12px;
  padding:14px;
  margin:14px 0;
}
.trash-summary h3{margin:0 0 5px;color:#6c5200}
.trash-summary p{margin:0}
.trash-policy-card{
  background:#fff;
  border:1px solid var(--line);
  border-left:4px solid var(--accent);
  border-radius:14px;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:16px;
}
.trash-policy-card strong{display:block;margin-bottom:3px}
.trash-policy-card span:not(.status){color:var(--muted);font-size:13px}
.trash-days{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#eef3f5;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.trash-days.urgent{
  background:#fff0ed;
  color:#ae382c;
}
.trash-table td{vertical-align:middle}
@media(max-width:760px){
  .trash-policy-card{align-items:flex-start;flex-direction:column}
}


/* v3.1.2 — download do dossiê completo */
.page-actions .btn{white-space:nowrap}
@media(max-width:1180px){
  .page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
}


/* v3.1.3 — usuários internos e primeiro acesso */
.temporary-password-box{
  border:1px solid #f1c654;
  background:#fff8e3;
  border-radius:14px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.temporary-password-box strong{
  display:block;
  font-size:26px;
  letter-spacing:4px;
  margin-top:3px;
}
.temporary-password-box p{margin:0;color:var(--muted)}
.created-user-summary{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:10px 18px;
  border:1px solid var(--line);
  background:#f8fafb;
  border-radius:12px;
  padding:16px;
  margin-bottom:16px;
}
.created-user-summary span{color:var(--muted)}
.temporary-password-value{
  letter-spacing:4px;
  font-size:20px;
}
.internal-password-modal{
  max-width:620px;
}
.internal-password-foot{
  justify-content:space-between;
}
@media(max-width:720px){
  .temporary-password-box{align-items:flex-start;flex-direction:column}
  .created-user-summary{grid-template-columns:1fr}
}


/* v3.1.4 — conta com múltiplos acessos */
.dual-access-note{
  display:inline-block;
  margin-top:5px;
  color:var(--muted);
  font-weight:700;
}


/* v3.1.6 — backup completo */
.backup-top-btn{white-space:nowrap}
.backup-warning{
  margin:14px 0 18px;
  padding:12px 14px;
  border:1px solid #f1cf73;
  background:#fff8e6;
  border-radius:12px;
  color:#5f4a12;
}
.backup-progress-wrap{margin:18px 0 12px}
.backup-progress-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}
.backup-progress-track{
  height:12px;
  background:#e6ecef;
  border-radius:999px;
  overflow:hidden;
}
.backup-progress-track span{
  display:block;
  width:0;
  height:100%;
  background:#f5b51b;
  transition:width .2s ease;
}
@media(max-width:900px){
  .top-actions .backup-top-btn{padding-inline:10px}
}


/* ============================================================
   v3.1.7 — Refinamento visual global
   Cabeçalho mais compacto, logo maior e mesma linguagem visual
   em Área Restrita, fornecedor, cadastro e telas públicas.
   ============================================================ */
:root{
  --topbar-h:72px;
}
.topbar{
  height:var(--topbar-h) !important;
  padding:0 34px !important;
  box-shadow:0 1px 0 rgba(35,52,61,.03);
}
.brand{
  min-width:190px !important;
  gap:10px !important;
}
.brand img{
  height:60px !important;
  max-width:205px;
  width:auto;
  object-fit:contain;
}
.top-actions{
  gap:9px !important;
}
.top-actions .brand-text{
  font-size:13px;
  color:#60727c;
}
.top-actions .badge{
  padding:7px 10px;
  font-size:12px;
}
.backup-top-btn{
  padding:7px 10px !important;
  font-size:12px !important;
  border-color:#d7e0e4 !important;
  background:#fff !important;
  color:#586b75 !important;
}
.backup-top-btn:hover{
  background:#f5f7f8 !important;
  color:#2f414b !important;
}
.admin-shell{
  min-height:calc(100vh - var(--topbar-h)) !important;
}
.sidebar{
  top:var(--topbar-h) !important;
  height:calc(100vh - var(--topbar-h)) !important;
}
.login-shell{
  min-height:calc(100vh - var(--topbar-h)) !important;
}

/* Mantém o conteúdo amplo, mas reduz espaços vazios desnecessários */
.content{
  padding-top:24px !important;
}
.page-title{
  margin-bottom:20px !important;
}
.supplier-shell{
  padding-top:0;
}

/* Home/cadastro seguem o mesmo cabeçalho */
.home-hero{
  border-top:0;
}

/* aparência mais leve e consistente */
.card,
.kpi,
.setting-card,
.supplier-welcome,
.auth-card{
  border-color:#e0e6e9;
}
.btn{
  transition:background .15s ease,border-color .15s ease,transform .08s ease;
}
.btn:active{
  transform:translateY(1px);
}

@media(max-width:900px){
  :root{--topbar-h:66px}
  .topbar{padding:0 18px !important}
  .brand{min-width:auto !important}
  .brand img{height:52px !important;max-width:165px}
  .top-actions .brand-text{display:none}
  .backup-top-btn{font-size:0 !important;width:38px;height:36px;padding:0 !important}
  .backup-top-btn::before{content:"⇩";font-size:16px}
}
@media(max-width:620px){
  .topbar{padding:0 12px !important}
  .brand img{height:48px !important;max-width:145px}
  .top-actions{gap:6px !important}
  .top-actions .badge{display:none}
}
