/* EscalaPro V5 — visual "Azul Futuro" */
:root{
  --bg1:#050E21; --bg2:#071A3A; --bg3:#082A3C;
  --glass:rgba(10,24,52,.55); --glass-2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.14);
  --text:#EAF2FB; --text-2:#C3D3E8; --muted:#8DA3C2; --muted-2:#6F86A8;
  --blue:#2578FF; --sky:#5CC8FF; --cyan:#22D3EE; --mint:#2DE2BF; --amber:#FBBF24; --steel:#7FA8FF;
  --grad:linear-gradient(135deg,#2578FF 0%,#1FB6E8 100%);
  --radius:18px;
  --font-head:'Sora',system-ui,sans-serif;
  --font:'Inter',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{background:#050E21}
html,body{margin:0;min-height:100%}
body{
  font-family:var(--font);font-size:14px;line-height:1.45;color:var(--text);
  background:linear-gradient(135deg,var(--bg1) 0%,var(--bg2) 50%,var(--bg3) 100%);min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#root{position:relative;min-height:100vh}

/* ---------- Animações ---------- */
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes drawLine{from{stroke-dashoffset:1400}to{stroke-dashoffset:0}}
@keyframes ringIn{from{stroke-dashoffset:var(--c,340)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes grow{from{width:0}}
@keyframes float1{0%,100%{transform:translate(0,0)}50%{transform:translate(70px,40px)}}
@keyframes float2{0%,100%{transform:translate(0,0)}50%{transform:translate(-80px,-30px)}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(45,226,191,.55)}100%{box-shadow:0 0 0 9px rgba(45,226,191,0)}}
@keyframes spin{to{transform:rotate(360deg)}}
.rise{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
.d1{animation-delay:.04s}.d2{animation-delay:.1s}.d3{animation-delay:.16s}.d4{animation-delay:.22s}.d5{animation-delay:.28s}.d6{animation-delay:.34s}
.draw{stroke-dasharray:1400;animation:drawLine 2.2s ease-out both .35s}
.fade{animation:fadeIn 1.4s ease both .9s}
.ring-anim{animation:ringIn 1.6s cubic-bezier(.3,.7,.2,1) both .35s}
.pulse{animation:pulse 1.8s ease-out infinite}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Brilhos de fundo */
.bg-orbs{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.bg-orbs i{position:absolute;border-radius:50%}
.bg-orbs i:nth-child(1){top:-240px;left:12%;width:640px;height:640px;background:radial-gradient(circle,rgba(37,120,255,.32) 0%,rgba(37,120,255,0) 65%);animation:float1 18s ease-in-out infinite}
.bg-orbs i:nth-child(2){bottom:-280px;right:-140px;width:740px;height:740px;background:radial-gradient(circle,rgba(20,200,210,.24) 0%,rgba(20,200,210,0) 65%);animation:float2 22s ease-in-out infinite}

/* ---------- Básicos ---------- */
.glass{background:var(--glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid var(--line)}
.card{
  position:relative;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.card:hover{transform:translateY(-3px);border-color:rgba(92,200,255,.32);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.card-head h3{margin:0;font-family:var(--font-head);font-size:15px;font-weight:600}
.card-head>div{display:flex;flex-direction:column;gap:2px}
.muted{font-size:12px;color:var(--muted)}
.eyebrow{display:block;font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--sky);margin-bottom:6px}
.grad-text{background:linear-gradient(90deg,#5CC8FF 0%,#2DE2BF 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--mint)}
.chip{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font-size:12px;font-weight:600;color:#A6E3FF;background:rgba(92,200,255,.12);border:1px solid rgba(92,200,255,.25);padding:4px 12px;border-radius:999px}

.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border:0;border-radius:12px;background:var(--grad);color:#fff;font-weight:600;font-size:13.5px;box-shadow:0 10px 26px rgba(37,120,255,.42);transition:transform .2s ease,box-shadow .2s ease}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(37,120,255,.55)}
.btn-primary:disabled{opacity:.6;cursor:wait;transform:none}
.btn-soft{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid var(--line-2);color:var(--text);font-weight:600;font-size:13.5px;transition:background .2s ease}
.btn-soft:hover{background:rgba(255,255,255,.12)}
.btn-ghost{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:40px;border-radius:10px;background:transparent;border:1px solid var(--line-2);color:var(--text-2);font-weight:500;font-size:13px}
.btn-ghost:hover{background:rgba(255,255,255,.06);color:#fff}
.link-btn{background:none;border:0;padding:4px 0;color:var(--sky);font-weight:600;font-size:12.5px}
.link-btn:hover{color:#A6E3FF}
.dashed-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:12px;padding:12px;border-radius:14px;background:transparent;border:1px dashed var(--line-2);color:var(--sky);font-weight:600;font-size:13px}
.dashed-btn:hover{background:rgba(92,200,255,.06)}

/* ---------- Marca ---------- */
.brand-row{display:flex;align-items:center;gap:12px}
.logo-mark{flex:0 0 40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#2578FF 0%,#22D3EE 100%);box-shadow:0 8px 24px rgba(37,120,255,.45);display:flex;align-items:center;justify-content:center;color:#fff}
.brand-name{font-family:var(--font-head);font-weight:700;font-size:17px;letter-spacing:-.01em}
.brand-mini{font-size:11px;color:var(--muted)}

/* ---------- Estrutura ---------- */
.app-shell{position:relative;z-index:1;display:flex;flex-wrap:wrap;min-height:100vh}
.sidebar{flex:1 1 248px;max-width:100%;background:rgba(6,16,36,.55);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-right:1px solid rgba(255,255,255,.07);padding:24px 16px 20px;display:flex;flex-direction:column;gap:26px}
.sidebar .brand-row{padding:0 6px}
.nav{display:flex;flex-direction:column;gap:3px}
.nav-label{font-size:10.5px;font-weight:600;color:var(--muted-2);letter-spacing:.1em;text-transform:uppercase;padding:12px 12px 6px}
.nav-label:first-child{padding-top:0}
.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:11px;background:transparent;border:1px solid transparent;color:#A9BBD4;font-weight:500;text-align:left;transition:background .2s ease,color .2s ease}
.nav-item:hover{background:rgba(255,255,255,.05);color:#fff}
.nav-item.selected{background:linear-gradient(90deg,rgba(37,120,255,.28) 0%,rgba(34,211,238,.10) 100%);border-color:rgba(92,200,255,.28);color:#fff;font-weight:600}
.nav-item.selected svg{color:var(--sky)}
.nav-item span{flex:1}
.nav-item em{font-style:normal;font-size:11px;font-weight:600;padding:1px 8px;border-radius:999px}
.nav-count{color:var(--text-2);background:rgba(255,255,255,.08)}
.nav-badge{color:#FCD34D;background:rgba(251,191,36,.14)}
.nav-item.soon{opacity:.45;cursor:default}
.nav-item.soon:hover{background:transparent;color:#A9BBD4}
.nav-soon{color:var(--muted);background:rgba(255,255,255,.06)}
.side-account{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:linear-gradient(135deg,rgba(37,120,255,.18) 0%,rgba(34,211,238,.08) 100%);border:1px solid rgba(92,200,255,.2)}
.acc-row{display:flex;align-items:center;gap:10px;min-width:0}
.avatar{flex:0 0 36px;height:36px;border-radius:10px;background:var(--grad);color:#fff;font-weight:700;font-size:12.5px;display:flex;align-items:center;justify-content:center}
.acc-text{display:flex;flex-direction:column;min-width:0}
.acc-text b{font-size:13px;font-weight:600}
.acc-text small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:20px 32px 8px}
.top-title{display:flex;flex-direction:column;margin-right:auto}
.crumb{font-size:12px;color:var(--muted-2)}
.top-title h1{margin:2px 0 0;font-family:var(--font-head);font-size:22px;font-weight:600;letter-spacing:-.01em}
.top-title small{font-size:12.5px;color:var(--muted)}
.search{display:flex;align-items:center;gap:10px;flex:0 1 380px;min-width:220px;height:42px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--muted)}
.search:focus-within{border-color:rgba(92,200,255,.45);box-shadow:0 0 0 3px rgba(92,200,255,.12)}
.search input{flex:1;min-width:0;background:transparent;border:0;outline:none;color:var(--text);font-size:13px}
.search input::placeholder{color:var(--muted)}
.status-chip{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:12.5px;color:var(--text-2)}
.content{padding:16px 32px 40px;display:flex;flex-direction:column;gap:20px}

/* ---------- Layout em linhas ---------- */
.row{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch}
.row>*{flex:1 1 320px;min-width:0}
.row>.hero{flex:3 1 540px}
.row>.impl{flex:2 1 360px}
.row>.grow2{flex:2 1 540px}
.row.three>*{flex:1 1 320px}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;border-radius:20px;padding:30px 32px;background:linear-gradient(120deg,rgba(37,120,255,.30) 0%,rgba(16,60,130,.25) 45%,rgba(20,180,200,.16) 100%);border:1px solid rgba(92,200,255,.22);display:flex;flex-direction:column;justify-content:center;gap:14px}
.hero-net{position:absolute;right:0;top:50%;transform:translateY(-50%);width:40%;max-width:360px;height:auto;max-height:100%;opacity:.45;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 35%);mask-image:linear-gradient(90deg,transparent 0%,#000 35%)}
@media (max-width:820px){.hero-net{display:none}}
.hero>*:not(.hero-net){position:relative}
.hero h2{margin:0;font-family:var(--font-head);font-size:32px;font-weight:700;letter-spacing:-.025em;line-height:1.15}
.hero p{margin:0;max-width:470px;font-size:14.5px;color:var(--text-2)}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}

/* ---------- Anéis ---------- */
.ring{position:relative;flex:0 0 auto}
.ring svg{display:block}
.ring-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-center b{font-family:var(--font-head);font-size:26px;font-weight:700;line-height:1}
.ring-center small{font-size:11px;color:var(--muted)}
.impl-body{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.steps{flex:1 1 170px;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.steps li{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.steps li.done{color:var(--text)}
.step-dot{flex:0 0 20px;height:20px;border-radius:50%;border:1.5px dashed rgba(255,255,255,.25);display:flex;align-items:center;justify-content:center;color:#fff}
.steps li.done .step-dot{border:0;background:linear-gradient(135deg,#2578FF,#2DE2BF)}
.steps li.done .step-dot svg{stroke-width:3.5}
.status-ring{display:flex;justify-content:center;margin-bottom:16px}

/* ---------- Indicadores ---------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.kpi{display:flex;flex-direction:column;gap:14px}
.kpi-top{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:500;color:#A9BBD4}
.kpi-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.kpi-ic.blue{background:rgba(92,200,255,.14);color:var(--sky)}
.kpi-ic.mint{background:rgba(45,226,191,.14);color:var(--mint)}
.kpi-ic.amber{background:rgba(251,191,36,.14);color:var(--amber)}
.kpi-ic.sky{background:rgba(127,168,255,.14);color:var(--steel)}
.kpi-val{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.kpi-val b{font-family:var(--font-head);font-size:30px;font-weight:700;line-height:1;letter-spacing:-.02em}
.kpi-val small{font-size:12px;color:var(--muted)}
.kpi-bar,.bar-track{height:6px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
.kpi-bar i,.bar-track i{display:block;height:100%;width:var(--w);border-radius:9px;animation:grow 1.2s cubic-bezier(.3,.7,.2,1) both .5s}
i.blue{background:linear-gradient(90deg,#2578FF,#5CC8FF)}
i.mint{background:linear-gradient(90deg,#2DE2BF,#22D3EE)}
i.amber{background:linear-gradient(90deg,#F59E0B,#FCD34D)}
.kpi-wave{height:24px}
.kpi-wave svg{width:100%;height:100%;display:block}

/* ---------- Gráfico de área ---------- */
.legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-2)}
.lg-blue{display:inline-block;width:10px;height:3px;border-radius:9px;background:var(--sky)}
.area-chart{position:relative;height:226px}
.area-chart svg,.grid-lines,.chart-points{position:absolute;left:0;right:0;top:0;bottom:28px;width:100%;height:calc(100% - 28px)}
.grid-lines{display:flex;flex-direction:column;justify-content:space-between}
.grid-lines i{height:1px;background:rgba(255,255,255,.06)}
.chart-points span{position:absolute;width:10px;height:10px;margin:0 0 -5px -5px;border-radius:50%;background:#071A3A;border:2px solid var(--sky);animation:fadeIn .6s ease both 1.6s}
.chart-points b{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:600;color:var(--text-2)}
.chart-labels{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);text-transform:capitalize}

/* ---------- Barras de status ---------- */
.bars{display:flex;flex-direction:column;gap:12px}
.bar-head{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px}
.bar-head span{color:var(--text-2)}
.bar-head b{font-weight:600}

/* ---------- Empresas ---------- */
.company-list{display:flex;flex-direction:column;gap:8px}
.company-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06)}
.co-avatar{flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:var(--grad);color:#fff;font-family:var(--font-head);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center}
.co-text{display:flex;flex-direction:column;min-width:0;margin-right:auto}
.co-text b{font-weight:600}
.co-text small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:999px;white-space:nowrap}
.pill i{width:6px;height:6px;border-radius:50%}
.pill.on{color:#6EF0D2;background:rgba(45,226,191,.12)}.pill.on i{background:var(--mint)}
.pill.off{color:#FCD34D;background:rgba(251,191,36,.12)}.pill.off i{background:var(--amber)}
.pill.wait{color:var(--text-2);background:rgba(255,255,255,.07)}.pill.wait i{background:var(--muted)}
.empty{padding:22px;border-radius:14px;border:1px dashed var(--line-2);text-align:center;color:var(--muted);font-size:13px}

/* ---------- Linha do tempo ---------- */
.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.timeline li{position:relative;display:flex;gap:12px;padding-bottom:14px}
.timeline li:not(:last-child)::before{content:"";position:absolute;left:13.5px;top:30px;bottom:0;width:1px;background:rgba(255,255,255,.08)}
.tl-dot{flex:0 0 28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center}
.tl-dot i{width:8px;height:8px;border-radius:50%}
.tl-dot.blue{background:rgba(92,200,255,.14)}.tl-dot.blue i{background:var(--sky)}
.tl-dot.mint{background:rgba(45,226,191,.14)}.tl-dot.mint i{background:var(--mint)}
.tl-text{flex:1;display:flex;flex-direction:column;min-width:0}
.tl-text b{font-size:13px;font-weight:600}
.tl-text small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timeline time{font-size:11.5px;color:var(--muted);white-space:nowrap}

/* ---------- Acesso rápido ---------- */
.quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick-item{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.07);color:var(--text);font-size:13px;font-weight:600;text-align:left;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.quick-item:hover{transform:translateY(-2px);border-color:rgba(92,200,255,.3);background:rgba(92,200,255,.06)}
.quick-item .kpi-ic{width:34px;height:34px;flex-basis:34px;border-radius:10px}

/* ---------- Páginas internas ---------- */
.page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.page-head h2{margin:0;font-family:var(--font-head);font-size:24px;font-weight:700;letter-spacing:-.02em}
.page-head p{margin:4px 0 0;color:var(--muted)}
.table{display:flex;flex-direction:column;overflow-x:auto}
.tr{display:grid;grid-template-columns:minmax(200px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(110px,1fr) 100px;gap:12px;align-items:center;min-width:680px;padding:12px 8px;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px;color:var(--text-2)}
.tr:last-child{border-bottom:0}
.tr.th{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);padding-top:0}
.tr:not(.th):hover{background:rgba(255,255,255,.03)}
.td-main{display:flex;align-items:center;gap:12px;color:var(--text)}
.td-main .co-avatar{width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:13px}
.info-banner{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:14px;background:rgba(92,200,255,.08);border:1px solid rgba(92,200,255,.2);color:var(--text-2);font-size:13px}
.info-banner svg{flex:0 0 auto;color:var(--sky)}
.roadmap{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.road{display:flex;align-items:center;gap:14px}
.road h3{margin:0;font-family:var(--font-head);font-size:15px;font-weight:600}
.road p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
.road>div{flex:1;min-width:0}
.road-num{flex:0 0 40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:700;background:rgba(255,255,255,.06);color:var(--text-2);border:1px dashed var(--line-2)}
.road.done .road-num{background:linear-gradient(135deg,#2578FF,#2DE2BF);color:#fff;border:0}

/* ---------- Login ---------- */
.login-wrap{position:relative;z-index:1;min-height:100vh;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:40px;padding:32px 16px}
.login-card{width:100%;max-width:420px;border-radius:22px;padding:34px 32px;display:flex;flex-direction:column;gap:14px}
.login-card h1{margin:6px 0 0;font-family:var(--font-head);font-size:26px;font-weight:700;letter-spacing:-.02em}
.login-card p{margin:0;color:var(--text-2)}
.login-card form{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.login-card .btn-primary{margin-top:4px}
label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:500;color:var(--text-2)}
input:not([type=search]){height:44px;padding:0 14px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid var(--line-2);color:var(--text);outline:none;transition:border-color .2s ease,box-shadow .2s ease}
input:not([type=search]):focus{border-color:rgba(92,200,255,.55);box-shadow:0 0 0 3px rgba(92,200,255,.14)}
input::placeholder{color:var(--muted-2)}
.feedback{min-height:18px;font-size:12.5px;color:#FCA5A5}
.fine{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.login-visual{position:relative;flex:0 1 460px;min-height:340px;display:flex;align-items:center;justify-content:center}
.lv-card{width:100%;max-width:400px;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:16px}
.lv-head{display:flex;justify-content:space-between;align-items:center}
.lv-head span{width:120px;height:10px;border-radius:9px;background:rgba(255,255,255,.12)}
.lv-head b{width:54px;height:22px;border-radius:999px;background:rgba(45,226,191,.2)}
.lv-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.lv-kpis i{height:58px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid var(--line)}
.lv-card svg{width:100%;height:120px}
.lv-ring{position:absolute;right:-6px;bottom:-10px;width:120px;height:120px;border-radius:24px;padding:12px}
.lv-ring svg{width:100%;height:100%}

/* ---------- Modal ---------- */
.overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(2,8,20,.65);backdrop-filter:blur(6px);animation:fadeIn .2s ease both}
.modal-box{width:100%;max-width:480px;border-radius:20px;padding:24px;background:rgba(10,24,52,.92);animation:rise .3s ease both}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}
.modal-head h2{margin:0;font-family:var(--font-head);font-size:20px;font-weight:700}
.close{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid var(--line);font-size:20px;line-height:1;color:var(--text-2)}
.close:hover{background:rgba(255,255,255,.12)}
.form-grid{display:flex;flex-direction:column;gap:14px}
.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}

/* ---------- Carregando ---------- */
.loading{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--text-2);font-size:14px}
.spinner{width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.15);border-top-color:var(--sky);animation:spin .8s linear infinite}

/* ---------- Responsivo ---------- */
@media (max-width:820px){
  .sidebar{flex-basis:100%;border-right:0;border-bottom:1px solid rgba(255,255,255,.07);gap:16px}
  .nav{flex-direction:row;flex-wrap:wrap}
  .nav-label{display:none}
  .nav-item{width:auto}
  .nav-item.soon{display:none}
  .side-account{margin-top:0}
  .topbar,.content{padding-left:16px;padding-right:16px}
  .hero h2{font-size:26px}
  .search{flex-basis:100%}
}

/* ---------- Ações das empresas (V5.1) ---------- */
.tr{grid-template-columns:minmax(200px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(110px,1fr) 100px 128px;min-width:820px}
.tr.is-off .td-main b,.tr.is-off>span:not(.row-actions){opacity:.6}
.ta-right{text-align:right}
.row-actions{display:flex;justify-content:flex-end;gap:6px}
.act{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--text-2);transition:background .2s ease,color .2s ease,border-color .2s ease}
.act:hover{background:rgba(92,200,255,.12);color:#fff;border-color:rgba(92,200,255,.35)}
.act-amber:hover{background:rgba(251,191,36,.14);color:#FCD34D;border-color:rgba(251,191,36,.4)}
.act-mint:hover{background:rgba(45,226,191,.14);color:#6EF0D2;border-color:rgba(45,226,191,.4)}
.act-red:hover{background:rgba(248,113,113,.14);color:#FCA5A5;border-color:rgba(248,113,113,.45)}
.btn-warn,.btn-danger{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border:0;border-radius:12px;color:#fff;font-weight:600;font-size:13.5px}
.btn-warn{background:linear-gradient(135deg,#D97706,#F59E0B);color:#1A1205}
.btn-danger{background:linear-gradient(135deg,#DC2626,#EF4444)}
.btn-danger:disabled,.btn-warn:disabled{opacity:.45;cursor:not-allowed}
.modal-box{display:flex;flex-direction:column;gap:14px}
.modal-head{margin-bottom:4px}
.modal-text{margin:0;color:var(--text-2)}
.eyebrow.danger{color:#FCA5A5}
.danger-box{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:rgba(239,68,68,.10);border:1px solid rgba(239,68,68,.3);color:#FECACA;font-size:13px}
.danger-box svg{flex:0 0 auto;color:#FCA5A5;margin-top:1px}
.toast{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:12px;background:rgba(10,24,52,.95);border:1px solid rgba(45,226,191,.4);color:var(--text);font-size:13.5px;box-shadow:0 14px 34px rgba(0,0,0,.4);animation:rise .3s ease both;transition:opacity .4s ease,transform .4s ease}
.toast svg{color:var(--mint)}
.toast.out{opacity:0;transform:translateY(10px)}

/* ---------- Acessos dos gestores (V5.2) ---------- */
.tr{grid-template-columns:minmax(190px,2fr) minmax(110px,1fr) minmax(110px,1fr) minmax(110px,1fr) 96px 104px 168px;min-width:960px}
.act-key:hover{background:rgba(92,200,255,.14);color:var(--sky)}
.access-box{display:flex;flex-direction:column;gap:12px;margin:0;padding:16px;border-radius:14px;background:rgba(92,200,255,.06);border:1px solid rgba(92,200,255,.2)}
.access-box legend{display:flex;align-items:center;gap:8px;padding:0 6px;font-size:12.5px;font-weight:600;color:var(--sky)}
form.access-box legend{padding:0}
.access-box p{margin:0;font-size:12.5px;color:var(--text-2)}
.access-box small{font-size:11.5px;color:var(--muted)}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.modal-box.wide{max-width:640px;max-height:calc(100vh - 32px);overflow:auto}
.cred{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.cred>div{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line);min-width:0}
.cred small{font-size:11.5px;color:var(--muted)}
.cred b{font-weight:600;overflow-wrap:anywhere}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:15px;letter-spacing:.06em;color:#A6E3FF}
.acc-list{display:flex;flex-direction:column;gap:8px}
.acc-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06)}
.acc-item.is-off{opacity:.6}
.avatar.sm{flex:0 0 32px;width:32px;height:32px;border-radius:9px;font-size:11.5px}
.btn-mini{height:32px;padding:0 12px;border-radius:9px;background:rgba(255,255,255,.06);border:1px solid var(--line-2);color:var(--text-2);font-size:12.5px;font-weight:600;white-space:nowrap}
.btn-mini:hover{background:rgba(255,255,255,.12);color:#fff}
@media (max-width:560px){.acc-item{flex-wrap:wrap}}

/* ---------- Colaboradores e turnos (V5.3) ---------- */
select{height:44px;padding:0 36px 0 14px;border-radius:11px;background:rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238DA3C2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid var(--line-2);color:var(--text);outline:none;appearance:none;-webkit-appearance:none;font-size:13.5px}
select:focus{border-color:rgba(92,200,255,.55);box-shadow:0 0 0 3px rgba(92,200,255,.14)}
select option{background:#0A1830;color:var(--text)}
input[type=time],input[type=date]{color-scheme:dark}
.block{display:block}
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.filters .search{flex:1 1 280px;height:44px}
.filters select{flex:0 1 200px}
.tr.emp{grid-template-columns:minmax(220px,2fr) minmax(130px,1.2fr) minmax(120px,1fr) minmax(130px,1fr) 80px 90px 128px;min-width:940px}
.tr .co-text small{white-space:nowrap}
.model{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:26px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:700;letter-spacing:.02em}
.model.blue{background:rgba(92,200,255,.14);color:#A6E3FF}
.model.mint{background:rgba(45,226,191,.14);color:#6EF0D2}
.model.amber{background:rgba(251,191,36,.14);color:#FCD34D}
.model-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0;padding:0;border:0}
.model-pick legend{font-size:12.5px;font-weight:500;color:var(--text-2);margin-bottom:6px;padding:0}
.mp{position:relative;display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line-2);cursor:pointer;transition:border-color .2s ease,background .2s ease}
.mp input{position:absolute;opacity:0;pointer-events:none}
.mp b{font-family:var(--font-head);font-size:16px;color:var(--text)}
.mp small{font-size:11.5px;color:var(--muted)}
.mp:has(input:checked){border-color:rgba(92,200,255,.6);background:rgba(92,200,255,.10);box-shadow:0 0 0 3px rgba(92,200,255,.10)}
.mp.mint:has(input:checked){border-color:rgba(45,226,191,.6);background:rgba(45,226,191,.10)}
.mp.amber:has(input:checked){border-color:rgba(251,191,36,.6);background:rgba(251,191,36,.10)}
.mp:has(input:focus-visible){outline:2px solid var(--sky);outline-offset:2px}
.calc{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:11px;background:rgba(92,200,255,.08);border:1px solid rgba(92,200,255,.18);font-size:13px;color:var(--text-2)}
.calc svg{color:var(--sky)}
/* Turnos: régua 24h */
.shift-scale{display:grid;grid-template-columns:min(260px,32%) 1fr 110px 96px;gap:12px;padding:0 13px;margin-bottom:6px;font-size:11px;color:var(--muted)}
.ss-track{position:relative;height:16px}
.shift-scale em{position:absolute;top:0;transform:translateX(-50%);font-style:normal}
.shift-scale em:first-child{transform:none}
.shift-list{display:flex;flex-direction:column;gap:8px}
.shift-row{display:grid;grid-template-columns:min(260px,32%) 1fr 110px 96px;gap:12px;align-items:center;padding:12px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06)}
.sr-info{display:flex;flex-direction:column;min-width:0}
.sr-info b{font-weight:600}
.sr-info small{font-size:12px;color:var(--muted)}
.sr-track{position:relative;height:12px;border-radius:9px;background:rgba(255,255,255,.06);background-image:repeating-linear-gradient(90deg,transparent 0,transparent calc(12.5% - 1px),rgba(255,255,255,.08) calc(12.5% - 1px),rgba(255,255,255,.08) 12.5%)}
.sr-track i{position:absolute;top:0;bottom:0;border-radius:9px;background:linear-gradient(90deg,#2578FF,#2DE2BF);box-shadow:0 0 12px rgba(45,226,191,.35);animation:fadeIn .8s ease both .3s}
/* Equipe por hora */
.hour-chart{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:4px;align-items:end;height:220px;padding-top:8px}
.hc-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.hc-col i{display:block;width:100%;height:var(--h);min-height:3px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#5CC8FF,rgba(37,120,255,.55));transform-origin:bottom;animation:barUp .9s cubic-bezier(.3,.7,.2,1) both;animation-delay:calc(.4s + var(--d))}
.hc-col i.peak{background:linear-gradient(180deg,#2DE2BF,rgba(34,211,238,.55));box-shadow:0 0 14px rgba(45,226,191,.45)}
.hc-n{font-size:10.5px;font-weight:600;color:var(--text-2);min-height:14px}
.hc-l{font-size:10.5px;color:var(--muted);min-height:14px}
@keyframes barUp{from{transform:scaleY(0)}}
/* Primeiros passos */
.ob-steps{display:flex;flex-direction:column;gap:10px}
.ob{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06)}
.ob>div{flex:1;display:flex;flex-direction:column;min-width:0}
.ob small{font-size:12px;color:var(--muted)}
.ob-n{flex:0 0 30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:700;background:rgba(255,255,255,.06);border:1px dashed var(--line-2);color:var(--text-2)}
.ob.done .ob-n{background:linear-gradient(135deg,#2578FF,#2DE2BF);border:0;color:#fff}
.ob.done b{color:var(--text-2)}
@media (max-width:820px){
  .shift-row{grid-template-columns:1fr auto;}
  .shift-row .sr-track{grid-column:1/-1;order:3}
  .shift-scale{display:none}
  .hour-chart{gap:2px}
  .hc-n{display:none}
}
.filters .search{flex-direction:row;gap:10px}

/* ---------- Escalas (V5.4) ---------- */
.month-nav{display:flex;align-items:center;gap:8px}
.month-nav .btn-mini{width:36px;height:36px;padding:0;font-size:18px}
.month-pill{min-width:170px;text-align:center;font-family:var(--font-head);font-weight:600;padding:8px 14px;border-radius:10px;background:rgba(255,255,255,.05);border:1px solid var(--line)}
.loading-inline{display:flex;align-items:center;gap:10px;justify-content:center;padding:30px;color:var(--text-2)}
.gen-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:36px 22px}
.gen-empty h3{margin:0;font-family:var(--font-head);font-size:18px}
.gen-empty p{margin:0;max-width:520px;color:var(--text-2)}
.gen-ic{width:60px;height:60px;border-radius:18px;background:linear-gradient(135deg,#2578FF,#2DE2BF);display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 12px 30px rgba(37,120,255,.4)}
.gen-models{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:4px 0 6px}
.model.xs{min-width:0;height:18px;padding:0 6px;font-size:10.5px;border-radius:5px}
.btn-soft.sm,.btn-primary.sm{height:38px;padding:0 14px;font-size:13px}
.btn-soft:disabled{opacity:.45;cursor:not-allowed}
.sched-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.sb-left,.sb-right{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sg-wrap{overflow-x:auto;border-radius:14px;border:1px solid var(--line);background:rgba(4,12,28,.35)}
.sched-grid{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%}
.sched-grid th,.sched-grid td{padding:3px;text-align:center;border-bottom:1px solid rgba(255,255,255,.05)}
.sched-grid thead th{position:sticky;top:0;background:#0A1730;font-weight:600;color:var(--text-2);padding:8px 3px;min-width:30px}
.sched-grid thead th small{display:block;font-size:9.5px;color:var(--muted);font-weight:500}
.sched-grid .sun{background:rgba(251,191,36,.06)}
.sched-grid thead th.sun{color:#FCD34D;background:#14182A}
.sched-grid .sat{background:rgba(255,255,255,.02)}
.sg-name{position:sticky;left:0;z-index:2;min-width:220px;max-width:240px;text-align:left!important;padding:8px 12px!important;background:#0A1730!important;border-right:1px solid var(--line)}
.sg-name b{display:block;font-weight:600;font-size:12.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-name small{display:block;font-size:10.5px;color:var(--muted);font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-stats{min-width:120px;white-space:nowrap;padding:0 10px!important;color:var(--text-2);font-size:11px}
.sg-stats span{display:inline-block;margin:0 3px}
.sg-alert{color:#FCA5A5;vertical-align:middle}
.sec-row td{text-align:left!important;padding:10px 12px 6px!important;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sky);background:rgba(92,200,255,.04)}
.sg-missing{color:var(--muted);font-style:italic;text-align:left!important;padding-left:12px!important}
.cell{width:28px;height:28px;border-radius:7px;border:1px solid transparent;font-size:10.5px;font-weight:700;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;padding:0}
.cell:hover:not(:disabled){transform:scale(1.12);box-shadow:0 0 0 2px rgba(92,200,255,.5)}
.cell:focus-visible{outline:2px solid var(--sky);outline-offset:1px}
.cell.on{background:linear-gradient(180deg,rgba(37,120,255,.55),rgba(37,120,255,.32));color:#DCEBFF}
.cell.off{background:rgba(45,226,191,.14);border-color:rgba(45,226,191,.35);color:#6EF0D2}
.cell.na{background:transparent;border:1px dashed rgba(255,255,255,.1);cursor:default}
.sched-grid tfoot th,.sched-grid tfoot td{position:sticky;bottom:0;background:#0A1730;border-top:1px solid var(--line);padding:6px 3px}
.sched-grid tfoot td span{display:flex;align-items:center;justify-content:center;height:26px;padding-bottom:4px;font-size:11px;font-weight:600;color:var(--text);position:relative}
.sched-grid tfoot td span::before{content:"";position:absolute;left:6px;right:6px;bottom:0;height:3px;border-radius:3px;background:rgba(92,200,255,.55);transform-origin:left;transform:scaleX(calc(var(--h) / 100%))}
.sched-grid tfoot td.low span{color:#FCD34D}
.sched-grid tfoot td.low span::before{background:rgba(251,191,36,.6)}
.sched-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;font-size:12px;color:var(--text-2);align-items:center}
.sched-legend span{display:inline-flex;align-items:center;gap:6px}
.lg{display:inline-block;width:14px;height:14px;border-radius:4px}
.lg.on{background:rgba(37,120,255,.5)}.lg.off{background:rgba(45,226,191,.25);border:1px solid rgba(45,226,191,.4)}.lg.sun{background:rgba(251,191,36,.18)}

/* Impressão da escala */
@media print{
  @page{size:A4 landscape;margin:8mm}
  body{background:#fff!important;color:#111}
  .bg-orbs,.sidebar,.topbar,.sched-bar,.info-banner,.month-nav,.sched-legend svg{display:none!important}
  .app-shell,.main,.content{display:block;padding:0}
  .card,.page-head{background:#fff!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;padding:0 0 6px!important;transform:none!important}
  .page-head p,.eyebrow{display:none}
  .page-head h2{color:#111;font-size:16px}
  .sg-wrap{overflow:visible;border:1px solid #ccc;background:#fff}
  .sched-grid{font-size:8.5px;width:100%}
  .sched-grid thead th,.sg-name,.sched-grid tfoot th,.sched-grid tfoot td{background:#f2f4f8!important;color:#111!important;position:static}
  .sg-name{min-width:120px}.sg-name b,.sg-name small{color:#111}
  .sched-grid th,.sched-grid td{border-bottom:1px solid #ddd}
  .cell{width:16px;height:16px;font-size:7.5px;border-radius:3px;color:#111!important;transform:none!important}
  .cell.on{background:#dbe8ff!important}.cell.off{background:#d6f5ec!important;border-color:#8fd9c4!important}
  .sec-row td{color:#1e4fa8;background:#f7f9fc!important}
  .sched-grid tfoot td span{color:#111;height:auto}.sched-grid tfoot td span::before{display:none}
  .sched-legend{color:#333}
  .rise{animation:none!important}
}
@media print{
  .toast,.overlay{display:none!important}
  .sg-stats,.sg-stats span{color:#333!important}
  .model{background:#eef2f8!important;color:#1e3a6e!important}
}

/* ---------- Mapa de cobertura (V5.5) ---------- */
.day-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:6px}
.ds-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:1px;height:66px;padding:6px 0 0;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--text-2);overflow:hidden;transition:border-color .2s ease,background .2s ease}
.ds-day small{font-size:9.5px;color:var(--muted)}
.ds-day b{font-size:13px;font-weight:600}
.ds-day i{position:absolute;left:6px;right:6px;bottom:6px;height:calc(var(--h) * .22);min-height:2px;border-radius:3px;background:rgba(92,200,255,.35)}
.ds-day i.bad{background:linear-gradient(180deg,#FB923C,#F59E0B)}
.ds-day.sun small{color:#FCD34D}
.ds-day:hover{border-color:rgba(92,200,255,.35)}
.ds-day.sel{background:linear-gradient(180deg,rgba(37,120,255,.35),rgba(37,120,255,.12));border-color:rgba(92,200,255,.6);color:#fff}
.cov-wrap{overflow-x:auto;padding-bottom:4px}
.cov{min-width:calc(150px + var(--cols) * 15px);display:flex;flex-direction:column;gap:4px}
.cov-row,.cov-hours{display:grid;grid-template-columns:150px 1fr;gap:10px;align-items:center}
.cov-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:2px}
.cov-hours em{font-style:normal;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:visible}
.cov-label{display:flex;flex-direction:column;min-width:0}
.cov-label b{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cov-label small{font-size:10.5px;color:var(--muted)}
.cov-grid i{position:relative;display:flex;align-items:center;justify-content:center;height:32px;border-radius:4px;font-style:normal;animation:fadeIn .5s ease both}
.cov-grid i span{font-size:9.5px;font-weight:700;color:rgba(255,255,255,.85)}
.cov-grid i.hr{box-shadow:inset 1px 0 0 rgba(255,255,255,.18)}
.cov-grid i.gap{background:linear-gradient(180deg,#F97316,#EA580C)}
.cov-grid i.ok{background:#2B5BC4}
.cov-grid i.over{background:#5CA8FF}
.cov-grid i.over span{color:#06122A}
.cov-grid i.free{background:rgba(92,200,255,.28)}
.cov-grid i.none{background:rgba(255,255,255,.04)}
.cov-grid i.tot{background:rgba(45,226,191,.16);height:26px}
.cov-grid i.tot span{color:#6EF0D2}
.cov-row.total{margin-top:4px;padding-top:6px;border-top:1px solid var(--line)}
.lg.gap{background:#F97316}.lg.ok{background:#2B5BC4}.lg.over{background:#5CA8FF}.lg.free{background:rgba(92,200,255,.28)}
.gap-list{display:flex;flex-direction:column;gap:8px}
.gap-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:rgba(249,115,22,.07);border:1px solid rgba(249,115,22,.25)}
.gap-item .kpi-ic{width:34px;height:34px;flex-basis:34px}
.info-banner .btn-mini{margin-left:auto}
.modal-box.xl{max-width:780px}
.rules-head,.rule-row{display:grid;grid-template-columns:minmax(150px,1.6fr) minmax(130px,1.2fr) 108px 108px 80px 36px;gap:8px;align-items:center}
.rules-head{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-2);padding:0 2px}
.rules-list{display:flex;flex-direction:column;gap:8px}
.rule-row input,.rule-row select{height:40px;min-width:0;font-size:13px}
@media (max-width:720px){.rules-head{display:none}.rule-row{grid-template-columns:1fr 1fr;padding:10px;border-radius:12px;background:rgba(255,255,255,.03)}}
.cov.dense{min-width:calc(160px + var(--cols) * 9px)}
.cov.dense .cov-grid{gap:1px}
.cov.dense .cov-row:not(.total) .cov-grid i span{display:none}
.cov.dense .cov-grid i.tot span{font-size:8px}
.cov.dense .cov-grid i{border-radius:2px}
.cov-grid i:hover{outline:2px solid #fff;outline-offset:-1px;z-index:1}

/* ---------- Transição 5x2 (V6) ---------- */
.small{font-size:12px}
.warn-t{display:inline-flex;align-items:center;gap:6px;color:#FCD34D;font-size:12.5px;margin-top:4px}
.phase-line{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;position:relative;margin-bottom:18px}
.phase{display:flex;gap:12px;padding:16px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.07)}
.phase.cur{border-color:rgba(92,200,255,.5);background:linear-gradient(135deg,rgba(37,120,255,.18),rgba(45,226,191,.06))}
.ph-dot{flex:0 0 12px;height:12px;margin-top:4px;border-radius:50%;background:rgba(255,255,255,.2)}
.phase.cur .ph-dot{background:var(--mint);animation:pulse 1.8s ease-out infinite}
.ph-body{display:flex;flex-direction:column;gap:2px}
.ph-body small{font-size:11.5px;color:var(--muted)}
.ph-body b{font-family:var(--font-head);font-size:22px;font-weight:700}
.ph-body span{font-size:12.5px;color:var(--text-2)}
.ph-body em{align-self:flex-start;margin-top:6px}
.phase-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;align-items:end;padding-top:14px;border-top:1px solid var(--line)}
.phase-form .actions{grid-column:1/-1}
.phase-form .two{display:grid;grid-template-columns:1.6fr 1fr;gap:8px}
.switch-row{flex-direction:row!important;align-items:flex-start;gap:12px;padding:14px;border-radius:12px;background:var(--glass-2);border:1px solid rgba(255,255,255,.07);margin-bottom:12px;cursor:pointer}
.switch-row input{position:absolute;opacity:0}
.switch-row .sw{flex:0 0 42px;height:24px;border-radius:999px;background:rgba(255,255,255,.12);position:relative;transition:background .2s ease}
.switch-row .sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s ease}
.switch-row input:checked+.sw{background:linear-gradient(90deg,#2578FF,#2DE2BF)}
.switch-row input:checked+.sw::after{transform:translateX(18px)}
.switch-row input:focus-visible+.sw{outline:2px solid var(--sky);outline-offset:2px}
.switch-row b{display:block;color:var(--text);font-size:13.5px}
.switch-row small{display:block;font-weight:400;color:var(--muted);margin-top:2px}
.checklist{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:9px}
.checklist li{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--text-2)}
.checklist svg{flex:0 0 auto;margin-top:2px;color:var(--mint)}
.margin-input{flex-direction:row!important;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.margin-input span{display:inline-flex;align-items:center;gap:4px}
.margin-input input{width:70px;height:36px!important}
.sim-bars{display:flex;flex-direction:column;gap:14px;padding-top:4px}
.sb-row{display:grid;grid-template-columns:150px 1fr 40px;gap:12px;align-items:center}
.sb-l{display:flex;flex-direction:column;font-size:13px;font-weight:600}
.sb-l small{font-weight:400;font-size:11px;color:var(--muted)}
.sb-track{height:22px;border-radius:8px;background:rgba(255,255,255,.06);overflow:hidden}
.sb-track i{display:block;height:100%;width:var(--w);border-radius:8px;animation:grow 1.2s cubic-bezier(.3,.7,.2,1) both .4s}
.sb-row b{font-family:var(--font-head);font-size:18px;text-align:right}
i.steel{background:linear-gradient(90deg,#4B6A9B,#7FA8FF)}
.tr.sim{grid-template-columns:minmax(160px,1.6fr) 80px repeat(3,minmax(100px,1fr)) minmax(140px,1fr);min-width:760px}

/* ---------- V7: domingos, feriados, atenção, coringa, consultoria ---------- */
.cell.half{background:linear-gradient(180deg,rgba(92,200,255,.45),rgba(92,200,255,.22));color:#E6F6FF}
.cell.hol{background:rgba(251,191,36,.16);border-color:rgba(251,191,36,.45);color:#FCD34D;font-size:9px}
.sched-grid td.holc{background:rgba(251,191,36,.05)}
.sched-grid thead th.holh{color:#FCD34D;box-shadow:inset 0 -2px 0 #F59E0B}
.lg.half{background:rgba(92,200,255,.35)}.lg.hol{background:rgba(251,191,36,.25);border:1px solid rgba(251,191,36,.5)}
.sex{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:5px;font-size:9.5px;font-weight:700;background:rgba(255,255,255,.08);color:var(--text-2);vertical-align:middle}
.flex-b{display:inline-flex;align-items:center;height:16px;padding:0 6px;border-radius:5px;font-size:9.5px;font-weight:700;background:rgba(251,191,36,.16);color:#FCD34D;vertical-align:middle}
.cov-grid i.flexc{box-shadow:inset 0 0 0 2px #FCD34D}
.att{margin:0 0 14px;padding:12px 16px;border-radius:14px;background:rgba(249,115,22,.07);border:1px solid rgba(249,115,22,.28)}
.att.ok{display:flex;align-items:center;gap:10px;background:rgba(45,226,191,.07);border-color:rgba(45,226,191,.28);color:var(--text-2);font-size:13px}
.att.ok svg{color:var(--mint)}
.att summary{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;font-size:14px;list-style:none}
.att summary::-webkit-details-marker{display:none}
.att summary svg{color:#FB923C}
.att ul{list-style:none;margin:12px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}
.att li{display:flex;gap:10px;align-items:flex-start;font-size:13px}
.att li>span:last-child{display:flex;flex-direction:column}
.att li small{color:var(--muted);font-size:12px}
.admin-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:rgba(251,191,36,.10);border:1px solid rgba(251,191,36,.35);color:#FDE68A;font-size:13px}
.admin-bar svg{color:#FCD34D}
.admin-bar .btn-mini{margin-left:auto}
.act-open:hover{background:rgba(45,226,191,.14);color:var(--mint);border-color:rgba(45,226,191,.4)}
.mv-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:12px}
.mv{position:relative;display:flex!important;flex-direction:column;gap:6px;padding:10px 8px 14px;border-radius:12px;background:var(--glass-2);border:1px solid rgba(255,255,255,.07);overflow:hidden}
.mv>span{font-weight:600;color:var(--text);text-align:center}
.mv select{height:34px;padding:0 22px 0 8px;font-size:11.5px;background-position:right 8px center}
.mv-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.06)}
.mv-bar::after{content:"";position:absolute;left:0;bottom:0;height:100%;width:var(--h);background:linear-gradient(90deg,#2578FF,#2DE2BF);transition:width .3s ease}
.hd-actions{display:flex;gap:8px;flex-wrap:wrap}
.hd-list{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.hd-row{display:grid;grid-template-columns:96px 44px 1fr auto auto 36px;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06);font-size:13px}
.hd-row>span:nth-child(2){color:var(--muted)}
.hd-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hd-form{display:grid;grid-template-columns:170px 1fr auto auto;gap:10px;align-items:end;padding-top:12px;border-top:1px solid var(--line)}
.chk{flex-direction:row!important;align-items:center;gap:8px;height:44px;white-space:nowrap}
.chk input{width:18px;height:18px;accent-color:#2DE2BF}
@media (max-width:720px){.mv-grid{grid-template-columns:repeat(4,1fr)}.hd-row{grid-template-columns:1fr auto;}.hd-form{grid-template-columns:1fr 1fr}}
@media print{.att,.admin-bar{display:none!important}.cell.hol{background:#fff3cd!important}.cell.half{background:#e3f2ff!important}}

/* V7.3: cartão de implantação compacto (etapas em duas colunas) */
.impl .impl-body{gap:16px;align-items:center}
.impl .ring-center b{font-size:22px}
.impl .steps{flex:1 1 300px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}
.impl .steps li{font-size:12px;line-height:1.3;align-items:flex-start}
.impl .step-dot{flex:0 0 16px;height:16px;margin-top:1px}
.impl .step-dot svg{width:9px;height:9px}
.row>.hero{min-height:260px}
@media (max-width:560px){.impl .steps{grid-template-columns:1fr}}

.impl-done{flex:1 1 180px;display:flex;flex-direction:column;gap:6px}
.impl-done b{font-family:var(--font-head);font-size:17px}
.impl-done span{font-size:13px;color:var(--text-2)}
.impl-done .link-btn{align-self:flex-start;margin-top:4px}

/* V7.5: escalonar almoços */
.lunch-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;max-height:46vh;overflow:auto}
.lunch-grp{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;background:var(--glass-2);border:1px solid rgba(255,255,255,.07)}
.lunch-grp>b{font-size:12.5px;color:var(--sky);margin-bottom:2px}
.lunch-row{display:grid;grid-template-columns:1fr auto 14px 48px;gap:8px;align-items:center;font-size:13px}
.lunch-row b{font-family:var(--font-head);color:var(--mint);text-align:right}
.page-head .hero-actions{margin-top:0}
.btn-soft:disabled{opacity:.45;cursor:not-allowed}

/* ---------- V7.7: impressão / PDF com cores, cabeçalho e assinaturas ---------- */
.print-head,.print-sign,.print-ack{display:none}
@media print{
  *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  @page{size:A4 landscape;margin:8mm}
  html,body{background:#fff!important}
  .print-head{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:end;gap:12px;padding:0 0 6px;margin:0 0 6px;border-bottom:2px solid #1E4FA8;color:#0B1B3A}
  .print-head b{display:block;font-size:14px}
  .print-head span{font-size:9px;color:#4A5A75}
  .ph-title{font-size:15px;font-weight:700;text-align:center;color:#0B1B3A}
  .ph-meta{display:flex;flex-direction:column;align-items:flex-end}
  .page-head{display:none!important}
  .sched-grid{font-size:8px!important;width:100%!important;table-layout:fixed}
  .sched-grid .sg-name{width:118px!important;min-width:0!important}
  .sched-grid .sg-stats{width:78px!important;min-width:0!important;font-size:7.5px!important}
  .sched-grid th,.sched-grid td{padding:1px!important;border-bottom:1px solid #D9DEE8!important}
  .sched-grid thead th{background:#EEF2F8!important;color:#0B1B3A!important;font-size:8px}
  .sched-grid thead th.sun,.sched-grid td.sun{background:#FFF6DB!important}
  .sched-grid thead th.holh{background:#FFE7A8!important;color:#7A4E00!important}
  .cell{width:100%!important;max-width:20px;height:15px!important;font-size:7px!important;border-radius:3px!important;border:0!important}
  .cell.on{background:#1E4FA8!important;color:#fff!important}
  .cell.half{background:#7DB3FF!important;color:#06204D!important}
  .cell.off{background:#C9F1E2!important;color:#0B6B4F!important;font-weight:800}
  .cell.hol{background:#FFD978!important;color:#6A4300!important}
  .cell.na{background:#F1F3F7!important}
  .sec-row td{background:#E7EEFB!important;color:#1E4FA8!important;font-size:8px!important;padding:3px 6px!important}
  .sched-grid tfoot th,.sched-grid tfoot td{background:#EEF2F8!important;color:#0B1B3A!important}
  .sched-grid tfoot td.low span{color:#B45309!important}
  .sched-legend{font-size:8px!important;color:#333!important;margin-top:6px!important}
  .lg.on{background:#1E4FA8!important}.lg.off{background:#C9F1E2!important;border:0!important}.lg.hol{background:#FFD978!important;border:0!important}.lg.sun{background:#FFF6DB!important}.lg.half{background:#7DB3FF!important}
  .sex,.flex-b{background:#EEF2F8!important;color:#0B1B3A!important}
  .model{background:#E7EEFB!important;color:#1E4FA8!important}
  .print-sign{display:block!important;margin-top:22px}
  .ps-lines{display:flex;gap:40px}
  .ps-lines div{flex:1;display:flex;flex-direction:column;font-size:9px;color:#333}
  .ps-lines div:last-child{flex:0 0 160px}
  .ps-lines span{border-bottom:1px solid #333;height:22px;margin-bottom:3px}
  .print-ack{display:block!important;break-before:page;page-break-before:always;color:#0B1B3A}
  .print-ack h3{font-size:14px;margin:0 0 4px}
  .print-ack p{font-size:10px;margin:0 0 10px;color:#333}
  .print-ack table{width:100%;border-collapse:collapse;font-size:10px}
  .print-ack th{background:#EEF2F8!important;text-align:left;padding:6px;border:1px solid #C8CFDC}
  .print-ack td{padding:0 6px;height:30px;border:1px solid #C8CFDC}
  .print-ack th:nth-child(4){width:38%}.print-ack th:nth-child(5){width:12%}
}
@media print{
  .sched-grid .sg-name b{font-size:8px!important;white-space:nowrap}
  .sched-grid .sg-name small{font-size:6.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sched-grid .sg-name small .model{height:auto!important;padding:0 3px!important;font-size:6.5px!important}
  .print-ack,.print-sign,.print-head{box-sizing:border-box;max-width:100%}
  .print-ack table{table-layout:fixed;width:99%!important}
}

/* V7.8: PDF mais legível (fontes maiores, alto contraste, cabeçalho repetido em várias páginas) */
@media print{
  .sched-grid{font-size:10px!important}
  .sched-grid thead{display:table-header-group}
  .sched-grid tfoot{display:table-footer-group}
  .sched-grid tr{break-inside:avoid;page-break-inside:avoid}
  .sched-grid thead th{font-size:10px!important;font-weight:700;padding:3px 1px!important}
  .sched-grid thead th small{font-size:8px!important;color:#4A5A75!important}
  .sched-grid .sg-name{width:150px!important;padding:3px 6px!important}
  .sched-grid .sg-name b{font-size:10.5px!important}
  .sched-grid .sg-name small{font-size:8px!important;color:#4A5A75!important}
  .sched-grid .sg-stats{width:92px!important;font-size:9px!important;color:#0B1B3A!important}
  .sched-grid th,.sched-grid td{padding:2px 1px!important;border-bottom:1px solid #C8CFDC!important}
  .cell{max-width:none!important;width:100%!important;height:22px!important;font-size:10px!important;font-weight:800!important;border-radius:4px!important}
  .cell.on{background:#DCE8FF!important;color:#0B3A8C!important;box-shadow:inset 0 0 0 1px #9DB8E8!important}
  .cell.half{background:#BFD9FF!important;color:#0B3A8C!important}
  .cell.off{background:#15803D!important;color:#FFFFFF!important}
  .cell.hol{background:#D97706!important;color:#FFFFFF!important;font-size:9px!important}
  .cell.na{background:#F1F3F7!important;box-shadow:none!important}
  .sched-grid thead th.sun,.sched-grid td.sun{background:#FEF3C7!important}
  .sched-grid thead th.holh{background:#FDE68A!important;color:#7A4E00!important}
  .sec-row td{font-size:10px!important;padding:5px 6px!important;font-weight:700}
  .sched-grid tfoot th,.sched-grid tfoot td{font-size:10px!important;font-weight:700}
  .sched-legend{font-size:9.5px!important;gap:6px 16px!important}
  .lg{width:14px!important;height:14px!important}
  .lg.on{background:#DCE8FF!important;box-shadow:inset 0 0 0 1px #9DB8E8}.lg.off{background:#15803D!important}.lg.hol{background:#D97706!important}.lg.sun{background:#FEF3C7!important}.lg.half{background:#BFD9FF!important}
  .print-head b{font-size:16px}.ph-title{font-size:17px}.print-head span{font-size:10px}
}

/* V7.9: animações de entrada só ao trocar de tela (não ao clicar num dia da escala, filtrar etc.) */
#root.calm .rise,#root.calm .draw,#root.calm .fade,#root.calm .ring-anim,#root.calm .kpi-bar i,#root.calm .bar-track i,#root.calm .hc-col i,#root.calm .sb-track i,#root.calm .sr-track i,#root.calm .cov-grid i,#root.calm .chart-points span{animation:none!important}

/* ---------- V8: Movimento da loja ---------- */
.fmt-ex{margin:4px 0 8px;overflow-x:auto}
.fmt-ex table{border-collapse:collapse;font-size:12.5px;margin:0 auto}
.fmt-ex th,.fmt-ex td{padding:6px 14px;border:1px solid var(--line-2);text-align:left}
.fmt-ex th{background:rgba(92,200,255,.10);color:var(--sky)}
.sec-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.sec-tab{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid var(--line-2);color:var(--text-2);font-weight:600;font-size:13px}
.sec-tab:hover{color:#fff;background:rgba(255,255,255,.09)}
.sec-tab.on{background:linear-gradient(90deg,rgba(37,120,255,.35),rgba(34,211,238,.15));border-color:rgba(92,200,255,.5);color:#fff}
.sec-tab .dot{width:6px;height:6px}
.kpis.inner{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.kpis.inner .kpi{padding:14px;border-radius:14px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06)}
.kpis.inner .kpi-val b{font-size:26px}
.heat-legend{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.heat-legend i{width:22px;height:10px;border-radius:3px}
.heat-wrap{overflow-x:auto}
.heat{min-width:calc(70px + var(--cols) * 40px);display:flex;flex-direction:column;gap:4px}
.heat-row{display:grid;grid-template-columns:62px repeat(var(--cols),minmax(0,1fr));gap:4px;align-items:center}
.heat-row.hh em{font-style:normal;font-size:11px;color:var(--muted);text-align:center}
.heat-row i{height:34px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:11px;font-weight:600;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4);animation:fadeIn .5s ease both}
.heat-day{height:34px;border-radius:8px;background:transparent;border:1px solid transparent;color:var(--text-2);font-weight:600;font-size:12.5px;text-align:left;padding:0 8px}
.heat-day:hover{background:rgba(255,255,255,.05)}
.heat-row.sel .heat-day{background:rgba(92,200,255,.14);border-color:rgba(92,200,255,.4);color:#fff}
.heat-row.sel i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.peak-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin-top:16px}
.peak{display:flex;gap:12px;align-items:center;padding:12px;border-radius:12px;background:rgba(249,115,22,.07);border:1px solid rgba(249,115,22,.25)}
.peak>div{display:flex;flex-direction:column}
.peak small{font-size:12px;color:var(--muted)}
.peak-n{flex:0 0 30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-family:var(--font-head);font-weight:700;background:linear-gradient(135deg,#F97316,#F59E0B);color:#fff}
.need-chart{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:4px;align-items:end;height:220px}
.nc-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.nc-col i{width:100%;height:var(--h);min-height:2px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#2DE2BF,rgba(37,120,255,.6));transform-origin:bottom;animation:barUp .8s cubic-bezier(.3,.7,.2,1) both}
.nc-col span{font-size:11px;font-weight:700;color:var(--text);min-height:14px}
.nc-col em{font-style:normal;font-size:10.5px;color:var(--muted);min-height:14px}
.apply-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(120deg,rgba(37,120,255,.22),rgba(45,226,191,.10))!important;border-color:rgba(92,200,255,.3)!important}
.apply-card>div:first-child{flex:1 1 420px}
.apply-card h3{margin:0 0 6px;font-family:var(--font-head);font-size:16px}
.apply-card p{margin:0}
.imp-list{display:flex;flex-direction:column;gap:8px}
.imp{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--glass-2);border:1px solid rgba(255,255,255,.06)}
.imp .kpi-ic{width:34px;height:34px;flex-basis:34px}
.drop{position:relative;display:flex!important;flex-direction:column;align-items:center;gap:6px;padding:22px;border-radius:14px;border:1.5px dashed rgba(92,200,255,.45);background:rgba(92,200,255,.06);cursor:pointer;text-align:center}
.drop:hover{background:rgba(92,200,255,.10)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop b{color:var(--text);font-size:14px}
.map-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:6px}
.prev{margin-top:12px;display:flex;flex-direction:column;gap:6px;font-size:12.5px}
.prev-t{overflow:auto;max-height:180px;border-radius:10px;border:1px solid var(--line)}
.prev-t table{border-collapse:collapse;width:100%;font-size:12px}
.prev-t th,.prev-t td{padding:5px 8px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.prev-t th{background:rgba(255,255,255,.05);color:var(--sky)}
#root.calm .heat-row i,#root.calm .nc-col i{animation:none!important}
.card-head>.heat-legend{flex-direction:row!important;align-items:center}

/* V8.1 – importação ampliada, colar e digitar */
.src-tabs{display:flex;gap:8px;margin:4px 0 14px}
#dmText{width:100%;min-height:150px;font-family:ui-monospace,Consolas,monospace;font-size:12.5px;resize:vertical}
.map-note{display:block;line-height:1.5;padding:10px 12px;border-radius:12px;background:rgba(56,189,248,.08);border:1px solid rgba(56,189,248,.2);font-size:13px;align-self:end}
.sec-pick{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin:4px 0 12px;padding:12px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.sec-pick b{width:100%;font-size:13px}
.chk{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:13px}
.chk input{width:auto}
.prev-t{overflow:auto;max-height:220px}
.tgrid-wrap{overflow:auto;max-height:52vh;border-radius:12px;border:1px solid rgba(255,255,255,.08)}
.tgrid{border-collapse:collapse;font-size:12px;min-width:100%}
.tgrid th{position:sticky;top:0;background:#0B1A36;padding:6px 4px;font-weight:600;color:var(--muted,#9FB3D1);z-index:1}
.tgrid tbody th{position:sticky;left:0;text-align:left;padding:0 10px;z-index:2}
.tgrid td{padding:2px}
.tgrid input{width:52px;padding:6px 4px;text-align:center;font-size:12.5px;border-radius:7px}
.tgrid input:focus{outline:2px solid var(--sky,#38BDF8)}
.tag-m{font-size:10px;padding:1px 6px;border-radius:99px;background:rgba(56,189,248,.18);color:#A6E3FF;margin-left:4px}

/* V8.2 – dados em dia, dias atípicos, previsto × realizado */
.kpi-ic.red{background:rgba(239,68,68,.14);color:#FCA5A5}
.note-box{display:flex;gap:10px;align-items:center;padding:11px 14px;border-radius:12px;font-size:13px}
.note-box>span{flex:1}
.note-box.ok{background:rgba(45,226,191,.08);border:1px solid rgba(45,226,191,.25);color:#B7F5E6}
.note-box.warn{background:rgba(251,191,36,.09);border:1px solid rgba(251,191,36,.32);color:#FDE68A}
.danger-box>span{flex:1}
.heat-legend i.lg{width:14px;height:14px;border-radius:4px;margin-left:6px}
.lg.hi{background:rgba(249,115,22,.55);border:1px solid #F97316}.lg.lo{background:rgba(92,200,255,.35);border:1px solid #5CC8FF}
.lg.atyp{background:repeating-linear-gradient(45deg,rgba(255,255,255,.18) 0 3px,transparent 3px 6px);border:1px solid rgba(255,255,255,.35)}
.lg.f{background:#EF4444}.lg.ok{background:#14B8A6}.lg.s{background:#3B82F6}
.sug-box{margin:4px 0 14px;padding:12px 14px;border-radius:12px;background:rgba(251,191,36,.07);border:1px solid rgba(251,191,36,.25)}
.sug-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#FDE68A;font-size:13px}
.sug-head .btn-mini{margin-left:auto}
.sug-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sug{display:flex;flex-direction:column;align-items:flex-start;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);color:var(--text);font-size:12.5px;text-align:left}
.sug small{color:var(--muted);font-size:11.5px}.sug:hover{border-color:rgba(251,191,36,.5)}
.cal{display:flex;flex-direction:column;gap:6px;overflow-x:auto}
.cal-h,.cal-w{display:grid;grid-template-columns:repeat(7,minmax(74px,1fr));gap:6px}
.cal-h span{font-size:11.5px;color:var(--muted);font-weight:600;text-align:center}
.cal-d{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:58px;padding:6px 9px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:var(--text);text-align:left}
.cal-d em{font-style:normal;font-size:11px;color:var(--muted)}
.cal-d b{font-size:14px;font-family:var(--font-head)}
.cal-d small{font-size:11px;color:var(--muted)}
button.cal-d:hover{border-color:rgba(92,200,255,.5)}
.cal-d.none{opacity:.35}
.cal-d.hi{background:rgba(249,115,22,.14);border-color:rgba(249,115,22,.55)}.cal-d.hi small{color:#FDBA74}
.cal-d.lo{background:rgba(92,200,255,.1);border-color:rgba(92,200,255,.45)}.cal-d.lo small{color:#A6E3FF}
.cal-d.atyp{background:repeating-linear-gradient(45deg,rgba(255,255,255,.06) 0 6px,transparent 6px 12px);border-style:dashed;border-color:rgba(255,255,255,.35)}
.cal-d.atyp b{opacity:.55;text-decoration:line-through}.cal-d.atyp small{color:#FDE68A}
.heat.rv{min-width:calc(80px + var(--cols) * 38px)}
.heat-row .rd{display:flex;align-items:center;cursor:default;white-space:nowrap}
.heat-row .rd.at{color:#FDE68A}
.rv-c{height:28px!important}
.rv-c.f{background:rgba(239,68,68,.8)}.rv-c.ok{background:rgba(20,184,166,.55)}.rv-c.s{background:rgba(59,130,246,.7)}.rv-c.idle{background:rgba(255,255,255,.05)}
.ader-bar{display:flex;height:6px;border-radius:99px;overflow:hidden;margin-top:10px;background:rgba(255,255,255,.06)}
.ader-bar i{width:var(--w);display:block}.ader-bar .f{background:#EF4444}.ader-bar .ok{background:#14B8A6}.ader-bar .s{background:#3B82F6}
.var.up{color:#FDBA74}.var.down{color:#7DD3FC}
.peak-list.col{grid-template-columns:1fr;margin-top:6px}
.peak-n.f{background:linear-gradient(135deg,#EF4444,#F97316)}.peak-n.s{background:linear-gradient(135deg,#3B82F6,#5CC8FF)}
.rv-table{width:100%;border-collapse:collapse;font-size:13px}
.rv-table th{text-align:left;font-size:11.5px;color:var(--muted);font-weight:600;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.rv-table td{padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.05)}
.tag{display:inline-block;padding:2px 8px;border-radius:99px;font-size:11.5px;font-weight:600}
.tag.f{background:rgba(239,68,68,.18);color:#FCA5A5}.tag.s{background:rgba(59,130,246,.2);color:#93C5FD}.tag.m{background:rgba(251,191,36,.15);color:#FDE68A}
@media print{.rv-c.f{background:#EF4444!important}.rv-c.ok{background:#14B8A6!important}.rv-c.s{background:#3B82F6!important}}
.table-wrap{overflow-x:auto}
