/* Dashboard One V5.1 — reconstrução visual fiel à referência enviada */
:root{
  --one51-bg:#07080b;--one51-panel:#0d0f13;--one51-panel2:#12151a;--one51-border:#1c2028;
  --one51-text:#f5f7fb;--one51-muted:#7d8490;--one51-orange:#ff6b2c;--one51-pink:#ff2387;
  --one51-purple:#7b4dff;--one51-blue:#168cff;--one51-green:#31d39a;
}
body.one-v51{background:#d9d9d9!important;color:var(--one51-text)!important;min-height:100vh;padding:22px!important}
body.one-v51 #one29Scene{display:none!important}
body.one-v51 .app{max-width:1500px;margin:0 auto;min-height:calc(100vh - 44px);height:auto;border:7px solid #2a2c31;border-radius:34px;overflow:hidden;display:grid!important;grid-template-columns:74px minmax(0,1fr)!important;background:var(--one51-bg)!important;box-shadow:0 12px 44px rgba(0,0,0,.35),0 0 0 2px #93969d inset}
body.one-v51 .side{width:74px!important;min-width:74px!important;height:auto!important;min-height:calc(100vh - 44px);position:relative!important;top:auto!important;background:#0a0c10!important;border:0!important;border-right:1px solid #1b1f26!important;padding:15px 10px!important;gap:17px!important;overflow:visible!important;z-index:20}
body.one-v51 .one47-brand-header{height:46px!important;min-height:46px!important;padding:0!important;display:grid!important;place-items:center!important}
body.one-v51 .one47-brand-header img{width:32px!important;height:32px!important;object-fit:contain!important;filter:drop-shadow(0 0 6px rgba(255,95,47,.22))}
body.one-v51 .one47-brand-copy,body.one-v51 .sidefoot,body.one-v51 .one28-shortcut{display:none!important}
body.one-v51 .nav{display:flex!important;flex-direction:column!important;gap:7px!important;padding-top:6px!important}
body.one-v51 .nav button{height:42px!important;min-height:42px!important;width:46px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#59606b!important;font-size:0!important;display:grid!important;place-items:center!important;position:relative!important;transition:.18s ease!important}
body.one-v51 .nav button .ico{font-size:16px!important;color:inherit!important;width:auto!important;line-height:1!important}
body.one-v51 .nav button:hover{background:#11151b!important;color:#eef1f5!important}
body.one-v51 .nav button.active{color:#ff7038!important;background:#171315!important;box-shadow:0 0 0 1px rgba(255,107,44,.2) inset!important}
body.one-v51 .nav button.active:before{content:"";position:absolute;left:-10px;width:3px;height:22px;border-radius:99px;background:linear-gradient(180deg,#ff8b3d,#ff2b70);box-shadow:0 0 10px rgba(255,65,85,.6)}
body.one-v51 main{padding:0!important;margin:0!important;max-width:none!important;min-width:0!important;background:#090b0e!important;overflow-x:hidden!important}
body.one-v51 .top{position:relative!important;height:112px!important;min-height:112px!important;margin:0!important;padding:22px 30px 26px!important;border:0!important;background:
 radial-gradient(circle at 14% 40%,rgba(139,255,161,.74),transparent 23%),
 radial-gradient(circle at 43% 0%,rgba(97,218,255,.48),transparent 29%),
 radial-gradient(circle at 69% 14%,rgba(255,108,52,.68),transparent 26%),
 radial-gradient(circle at 86% 6%,rgba(255,43,135,.62),transparent 24%),
 linear-gradient(108deg,#aaf7bc 0%,#58d9e4 26%,#33475e 46%,#de5a2d 67%,#f24573 84%,#2c1a31 100%)!important;
 color:#fff!important;align-items:flex-start!important;z-index:3;overflow:hidden}
body.one-v51 .top:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(7,8,11,.5));pointer-events:none}
body.one-v51 .top>div:first-child{z-index:2;min-width:220px!important;gap:0!important;display:block!important}
body.one-v51 .top h1{font-size:16px!important;margin:0!important;font-weight:800!important;letter-spacing:-.02em!important;text-shadow:0 1px 6px rgba(0,0,0,.25)}
body.one-v51 .top .eyebrow{display:block!important;color:rgba(255,255,255,.72)!important;font-size:9px!important;letter-spacing:.12em!important;margin-bottom:6px!important}
body.one-v51 .top .sub{display:none!important}
body.one-v51 .controls{z-index:2!important;margin-left:auto!important;display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important}
body.one-v51 .controls>*{display:none!important}
body.one-v51 #cloudState,body.one-v51 #oneAutoSaveBadge,body.one-v51 #one30Bell,body.one-v51 .controls button[title*="Busca"],body.one-v51 #persona,body.one-v51 .controls button[onclick="logoutOne()"]{display:flex!important}
body.one-v51 #cloudState,body.one-v51 #oneAutoSaveBadge,body.one-v51 #one30Bell,body.one-v51 .controls button[title*="Busca"],body.one-v51 #persona,body.one-v51 .controls button[onclick="logoutOne()"]{min-height:32px!important;height:32px!important;padding:0 10px!important;border-radius:10px!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(8,10,14,.28)!important;backdrop-filter:blur(10px)!important;color:#f4f5f7!important;font-size:10px!important;box-shadow:none!important}
body.one-v51 #persona{max-width:145px!important}
body.one-v51 .notice{display:none!important}
body.one-v51 .section{padding:0 20px 28px!important}
body.one-v51 #view-overview{margin-top:-30px!important;position:relative!important;z-index:6!important}
body.one-v51 #view-overview>.one28-hero,body.one-v51 #view-overview>.one45-command-strip,body.one-v51 #view-overview>.headrow.one41-wrap,body.one-v51 #execContractAlert,body.one-v51 #one42Executive{display:none!important}
body.one-v51 #kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;background:#0c0f13!important;border:1px solid #1d222a!important;border-radius:16px 16px 0 0!important;padding:18px 20px 16px!important;overflow:hidden!important;box-shadow:0 14px 30px rgba(0,0,0,.22)!important}
body.one-v51 #kpis:before{content:"Overall Portfolio";grid-column:1/-1;color:#f1f3f7;font-size:14px;font-weight:800;margin-bottom:18px;letter-spacing:-.02em}
body.one-v51 #kpis .card{min-height:80px!important;padding:0 18px!important;background:transparent!important;border:0!important;border-right:1px solid #1d2229!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}
body.one-v51 #kpis .card:last-child{border-right:0!important}
body.one-v51 #kpis .card:after{display:none!important}
body.one-v51 #kpis .label{font-size:9px!important;letter-spacing:.03em!important;color:#6c737f!important;text-transform:none!important}
body.one-v51 #kpis .metric{font-size:22px!important;line-height:1.15!important;margin:8px 0 4px!important;color:#fff!important;font-weight:800!important;letter-spacing:-.035em!important}
body.one-v51 #kpis .detail{font-size:9px!important;color:#31d39a!important}
body.one-v51 #view-overview>.split{display:grid!important;grid-template-columns:minmax(0,1fr) 268px!important;gap:12px!important;margin:0!important;align-items:stretch!important}
body.one-v51 #view-overview>.split>.block:first-child{min-height:430px!important;margin:0!important;padding:24px 22px!important;border-radius:0 0 16px 16px!important;background:#0c0f13!important;border:1px solid #1d222a!important;border-top:0!important;box-shadow:0 14px 30px rgba(0,0,0,.18)!important;overflow:hidden!important}
body.one-v51 #view-overview>.split>.block:first-child:before{content:"Overview Statistic"!important;font-size:14px!important;letter-spacing:-.015em!important;color:#f1f3f7!important;font-weight:800!important;margin:0 0 18px!important;display:block!important}
body.one-v51 #view-overview>.split>.block:first-child>h2,body.one-v51 #view-overview>.split>.block:first-child>p{display:none!important}
body.one-v51 #view-overview>.split>.block:nth-child(2){display:none!important}
body.one-v51 #chart{display:none!important}
body.one-v51 #one51ChartWrap{height:335px;position:relative;border-top:1px solid #171b22;margin-top:4px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 65px,rgba(255,255,255,.035) 66px);border-radius:0 0 12px 12px}
body.one-v51 #one51ChartWrap svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
body.one-v51 .one51-chart-caption{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;font-size:10px;color:#6f7681}
body.one-v51 .one51-series{display:flex;align-items:center;gap:8px;font-size:10px;color:#c9cdd4}.one51-dot{width:8px;height:8px;border-radius:3px;background:linear-gradient(135deg,#ff6b2c,#ff2387);box-shadow:0 0 12px rgba(255,35,135,.3)}
body.one-v51 #one51SideCard{grid-column:2;grid-row:1 / span 2;background:#0c0f13;border:1px solid #1d222a;border-radius:16px;padding:18px 16px;min-height:528px;box-shadow:0 14px 30px rgba(0,0,0,.22);display:flex;flex-direction:column;gap:14px}
body.one-v51 .one51-profile{display:flex;align-items:center;gap:10px}.one51-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#ff6b2c,#ff2387 55%,#6d54ff);display:grid;place-items:center;font-weight:900;font-size:11px}.one51-profile b{font-size:11px}.one51-profile span{display:block;color:#68707c;font-size:8px;margin-top:2px}
body.one-v51 .one51-balance{padding:12px 0;border-top:1px solid #1b2027;border-bottom:1px solid #1b2027}.one51-balance small{color:#686f7b;font-size:8px}.one51-balance strong{display:block;margin-top:5px;font-size:20px;letter-spacing:-.04em}
body.one-v51 .one51-ring{width:126px;height:126px;border-radius:50%;margin:8px auto;background:conic-gradient(#ff6b2c 0 23%,#ff2387 23% 45%,#7b4dff 45% 72%,#168cff 72% 100%);padding:9px;box-shadow:0 0 24px rgba(124,77,255,.12)}
body.one-v51 .one51-ring>div{width:100%;height:100%;border-radius:50%;background:#0c0f13;display:grid;place-items:center;text-align:center;border:1px solid #1e242c}.one51-ring strong{font-size:24px;display:block;letter-spacing:-.05em}.one51-ring span{font-size:8px;color:#737b87;display:block;margin-top:-7px}
body.one-v51 .one51-stats{display:grid;gap:9px}.one51-stat{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#717985}.one51-stat b{color:#dfe3e8;font-weight:700}.one51-stat.good b{color:#31d39a}
body.one-v51 .one51-actions{display:grid;gap:8px;margin-top:auto}.one51-actions button{height:34px;border-radius:9px;border:1px solid #64362b;background:#17100f;color:#ff8258;font-size:9px;font-weight:800}.one51-actions button.primary{border:0;background:linear-gradient(90deg,#ff6b2c,#ff335f);color:white;box-shadow:0 5px 16px rgba(255,74,64,.2)}
body.one-v51 #one51OverviewGrid{display:grid;grid-template-columns:minmax(0,1fr) 268px;gap:12px;align-items:start}
body.one-v51 #one51MainStack{min-width:0}
body.one-v51 #view-overview>.one30-dashboard-grid,body.one-v51 #view-overview>.columns{margin-top:14px!important;gap:12px!important}
body.one-v51 .block,body.one-v51 .card,body.one-v51 .modcard{background:#0d1014!important;border:1px solid #1d222a!important;border-radius:14px!important;box-shadow:none!important}
body.one-v51 .block h2,body.one-v51 .block h3{color:#f2f4f7!important}
body.one-v51 .block p,body.one-v51 .mini,body.one-v51 .help{color:#707884!important}
body.one-v51 input,body.one-v51 select,body.one-v51 textarea{background:#0a0c10!important;border:1px solid #252a32!important;color:#f5f7fa!important;border-radius:9px!important}
body.one-v51 .btn{border-radius:9px!important;background:#12151a!important;border-color:#262b33!important;color:#cbd0d7!important}.one-v51 .btn.primary{background:linear-gradient(90deg,#ff6b2c,#ff335f)!important;border:0!important;color:#fff!important}
body.one-v51 ::-webkit-scrollbar{width:7px;height:7px}body.one-v51 ::-webkit-scrollbar-thumb{background:#242a32;border-radius:9px}
@media(max-width:1050px){body.one-v51{padding:0!important;background:#090b0e!important}body.one-v51 .app{border:0!important;border-radius:0!important;min-height:100vh!important;box-shadow:none!important;grid-template-columns:66px 1fr!important}body.one-v51 .side{width:66px!important;min-width:66px!important}body.one-v51 #one51OverviewGrid{grid-template-columns:1fr!important}body.one-v51 #one51SideCard{grid-column:1!important;grid-row:auto!important;min-height:0!important;display:grid!important;grid-template-columns:1fr 1fr;align-items:center}body.one-v51 #view-overview>.split{grid-template-columns:1fr!important}}
@media(max-width:760px){body.one-v51 .app{grid-template-columns:1fr!important}body.one-v51 .side{position:fixed!important;width:250px!important;transform:translateX(-100%);transition:.2s ease!important;z-index:100;height:100vh!important}body.one-v51 .side.open{transform:translateX(0)!important}body.one-v51 .nav button{width:100%!important;display:flex!important;justify-content:flex-start!important;padding:0 14px!important;font-size:12px!important}body.one-v51 .top{height:96px!important;min-height:96px!important;padding:18px 16px!important}.one-v51 .controls{display:none!important}body.one-v51 .section{padding:0 10px 20px!important}body.one-v51 #kpis{grid-template-columns:repeat(2,1fr)!important;padding:14px!important}body.one-v51 #kpis .card{border-right:0!important;border-bottom:1px solid #1d2229!important;padding:12px!important}body.one-v51 #one51SideCard{display:block!important}body.one-v51 #one51ChartWrap{height:260px}}
