/* Linguagem visual Viva Gestão: composição inspirada na referência Lucro ON.
   Componentes, ícones, fontes e gráficos implementados neste projeto. */
:root{color-scheme:dark;--bg:#111628;--side:#0e1424;--top:#121827;--surface:#141b2b;--raised:#1b2334;--line:#283145;--text:#f5f4f6;--muted:#8d97aa;--faint:#697489;--accent:#e96950;--accent-2:#f6a03d;--cream:#fff9ed;--purple:#8064d9;--green:#40b990;--blue:#5796df;--shadow:0 18px 46px #03081730}
:root[data-theme=light]{color-scheme:light;--bg:#f4f5f8;--side:#141a2a;--top:#fff;--surface:#fff;--raised:#f4f6f9;--line:#dde1e9;--text:#202639;--muted:#677186;--faint:#8a94a5;--accent:#d95a43;--accent-2:#e58f31;--cream:#fff6e7;--purple:#6c53ca;--green:#20926a;--blue:#4079c9;--shadow:0 12px 30px #151b2d14}
body.v2{background:var(--bg);color:var(--text);font-family:SourceSans,system-ui,sans-serif;font-size:14px}
h1,h2,h3{font-family:Archivo,system-ui,sans-serif;letter-spacing:-.035em}
.v2-sidebar{width:240px;background:var(--side);border-right:1px solid #ffffff11;color:#cbd0dd}
.v2-brand{height:62px;padding:13px 18px;border-bottom:1px solid #ffffff12;gap:8px}
.v2-brand-mark{width:34px;height:34px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border-radius:8px;font:800 19px Archivo}
.v2-brand strong{font:720 18px Archivo;color:white}.v2-brand small{font-size:9px;color:#798295;letter-spacing:.08em}
.v2-nav-scroll{padding:18px 8px 22px}.v2-nav-group{margin-bottom:15px}.v2-nav-group>span{color:#697389;font-size:10px;padding:0 12px 6px;letter-spacing:.12em}
.v2-nav-group a{min-height:42px;padding:8px 12px;color:#a2abba;border-radius:8px;font-weight:520;font-size:14px}
.v2-nav-group a svg{width:19px;height:19px}.v2-nav-group a:hover{background:#ffffff0c;color:white}
.v2-nav-group a[aria-current=page]{background:#e8645129;color:#f2947b}.v2-nav-group a[aria-current=page]:before{content:'';position:absolute;left:0;height:24px;width:3px;border-radius:0 4px 4px 0;background:var(--accent)}
.v2-nav-group a{position:relative}.v2-sidebar-foot{border-top:1px solid #ffffff15;padding:13px 18px}.v2-avatar{background:var(--accent);color:#fff;border-radius:9px}
.v2-topbar{height:62px;padding:0 clamp(24px,2.7vw,42px);background:var(--top);border-bottom:1px solid #ffffff10}
:root[data-theme=light] .v2-topbar{border-bottom-color:var(--line)}
.v2-topbar-start>span{color:var(--muted);font-size:13px}.v2-topbar-start b{color:var(--faint)}
.v2-search-button,.v2-theme,.v2-menu{background:var(--raised);border-color:var(--line);color:var(--muted)}
.v2-search-button{min-width:170px}.v2-theme{font-size:18px}.v2-user{font-weight:620}
main{max-width:1780px;padding:31px clamp(24px,2.7vw,42px) 85px}
.v2-page-head{align-items:center;margin-bottom:19px}.v2-page-head h1{font-size:29px;font-weight:730}.v2-page-head p{font-size:13px;color:var(--muted);margin-top:2px}
.v2-head-actions{display:flex;align-items:center;gap:10px}.v2-live-button{height:37px;display:inline-flex;align-items:center;gap:9px;border-radius:10px;padding:0 15px;background:linear-gradient(105deg,#e65a59,#f39539);color:white;font-weight:700;box-shadow:0 6px 15px #e9654f50}.v2-live-button i{width:8px;height:8px;background:#273044;border:2px solid #ffffffab;border-radius:50%}
.v2-personalize{height:37px;display:flex;align-items:center;gap:7px;padding:0 13px;border-radius:10px;border:1px solid var(--line);background:var(--raised);color:var(--text);font-weight:650}.v2-personalize svg{width:16px;height:16px}
.v2-filterbar{margin:0 0 21px;padding:0;border:0;background:none;gap:8px}.v2-filterbar label{color:var(--faint);font-size:11px}.v2-filterbar input,.v2-filterbar select,.v2-goal-form input{background:var(--surface);border:1px solid var(--line);color:var(--text);height:37px;border-radius:9px}.v2-filterbar input{min-width:150px}.v2-filter-extra summary{height:37px;background:var(--surface);border-color:var(--line);border-radius:9px;color:var(--text)}.v2-filter-extra[open]>div{background:var(--raised);border-color:var(--line)}
.v2-button{border-radius:9px;min-height:37px;font-weight:700}.v2-button.primary{background:linear-gradient(105deg,var(--accent),var(--accent-2));color:white}.v2-button.secondary{background:var(--raised);border-color:var(--line);color:var(--text)}
.v2-today{background:var(--cream);padding:13px 16px 14px;border-radius:16px;border:0;margin-bottom:24px;color:#d7732e}.v2-today-head{margin:0 0 11px}.v2-today-head>span{font-size:11px;letter-spacing:.1em;font-weight:800}.v2-today-head small{font-size:11px;color:#ab9275}
.v2-today-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;background:none;border:0;border-radius:0;overflow:visible}
.v2-today .v2-metric{background:#131a2b;border-radius:15px;color:#fff;min-height:90px;padding:15px 16px;display:flex;align-items:center;gap:11px}
.v2-today .v2-metric.emphasis,.v2-today .v2-metric.coral{background:#131a2b}.v2-today .v2-metric-icon{flex:none;width:36px;height:36px;border-radius:9px;background:#e8674e18;color:#e8674e;display:grid;place-items:center}.v2-today .v2-metric:nth-child(2) .v2-metric-icon{background:#40b99016;color:#40b990}.v2-today .v2-metric:nth-child(3) .v2-metric-icon{background:#8064d923;color:#947bf0}.v2-today .v2-metric:nth-child(4) .v2-metric-icon{background:#40b99016;color:#40b990}
.v2-metric-icon svg{width:20px;height:20px}.v2-metric-copy{min-width:0;display:block}.v2-today .v2-metric-label{font-size:11px;color:#8791a7;white-space:nowrap}.v2-today .v2-metric strong{font:700 22px Archivo;margin:2px 0;letter-spacing:-.04em;color:#fff}.v2-today .v2-metric small{font-size:10px;color:#a7b0c0;margin:2px 0 0}.v2-today .v2-metric a{display:none}
.v2-period{margin:0}.v2-section-heading{margin-bottom:10px}.v2-section-heading h2{font-size:16px}.v2-section-heading .v2-eyebrow{color:var(--muted);margin-bottom:2px}.v2-section-heading>span{color:var(--faint)}
.v2-period-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.v2-period .v2-metric{min-height:105px;padding:17px;background:var(--surface);border:1px solid #ffffff05;border-radius:13px;display:flex;align-items:center;gap:13px}
:root[data-theme=light] .v2-period .v2-metric{border-color:var(--line)}
.v2-period .v2-metric-icon{flex:none;width:45px;height:45px;border-radius:11px;background:#e8674f13;color:var(--accent);display:grid;place-items:center}.v2-period .v2-metric:nth-child(2) .v2-metric-icon,.v2-period .v2-metric:nth-child(6) .v2-metric-icon{background:#40b99018;color:var(--green)}.v2-period .v2-metric:nth-child(3) .v2-metric-icon,.v2-period .v2-metric:nth-child(5) .v2-metric-icon{background:#8064d91b;color:var(--purple)}.v2-period .v2-metric:nth-child(4) .v2-metric-icon,.v2-period .v2-metric:nth-child(7) .v2-metric-icon{background:#f4a13e17;color:var(--accent-2)}
.v2-period .v2-metric-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.v2-period .v2-metric strong{font:700 19px Archivo;color:var(--text);margin:3px 0}.v2-period .v2-metric small{font-size:10px;color:var(--faint);margin:0}.v2-period .v2-metric a{display:none}
.v2-sync{margin:16px 0 25px;color:var(--faint)}.v2-sync strong{color:var(--muted)}.v2-sync-led{background:var(--green)}.v2-sync small{color:var(--faint)}
.v2-visuals{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(300px,1fr);gap:15px}.v2-revenue,.v2-panel,.v2-history{background:var(--surface);border:1px solid #ffffff05;border-radius:14px;box-shadow:none}.v2-revenue{min-height:330px;padding:22px}.v2-visuals .v2-panel{padding:22px}.v2-panel-head{align-items:start;margin:0 0 15px}.v2-panel-head h2{font-size:17px;font-weight:650}.v2-panel-head p{font-size:12px;color:var(--faint);margin-top:3px}.v2-panel-head>span{font-size:11px;color:var(--faint)}
.v2-revenue .v2-chart{height:250px}.v2-revenue .v2-chart svg{height:213px}.v2-chart-axis{stroke:var(--line)}.v2-chart-grid{stroke:var(--line);stroke-dasharray:3 4}.v2-chart-line{stroke:var(--accent);stroke-width:3}.v2-chart.profit .v2-chart-line{stroke:var(--green)}.v2-point{fill:var(--accent);stroke:var(--surface)}.v2-revenue-foot{padding-top:10px;color:var(--faint)}.v2-chart-foot{font-size:11px}.v2-chart-foot output{color:var(--muted)}
.v2-donut-wrap{display:grid;justify-items:center;gap:15px}.v2-donut{width:145px;height:145px;border-radius:50%;display:grid;place-items:center;position:relative}.v2-donut:after{content:'';position:absolute;inset:24px;border-radius:50%;background:var(--surface)}.v2-donut>span{z-index:1;color:var(--text);font:700 26px Archivo;text-align:center}.v2-donut small{display:block;color:var(--faint);font:11px SourceSans}.v2-donut-legend{width:100%;border-top:1px solid var(--line);padding-top:10px}.v2-donut-row{display:flex;align-items:center;gap:8px;padding:4px 0;font-size:12px}.v2-donut-row i{width:8px;height:8px;border-radius:2px}.v2-donut-row span{color:var(--muted);flex:1}.v2-donut-row strong{font-weight:650}
.v2-analysis{margin-top:25px}.v2-analysis-heading{margin-bottom:12px}.v2-analysis-heading h2{font-size:18px}.v2-analysis-grid{gap:15px}.v2-left-panels{gap:15px}.v2-panel{padding:19px}.v2-panel h3{font-size:16px}.v2-panel-head>span{color:var(--faint)}.v2-bars{gap:12px}.v2-bar>span{color:var(--muted)}.v2-bar-track{background:#293044}.v2-bar-track i{background:var(--purple)}.v2-product-row{border-color:var(--line)}.v2-product-row small{color:var(--faint)}
.v2-history{margin-top:29px;padding:23px}.v2-history-intro h2{font-size:20px}.v2-history-intro p{color:var(--muted)}.v2-history-summary{border-color:var(--line);background:var(--line)}.v2-history-summary .v2-metric{display:flex;align-items:center;gap:10px;min-width:0}.v2-history-summary .v2-metric-icon{width:36px;height:36px;flex:none;display:grid;place-items:center;background:#e8674f18;color:var(--accent);border-radius:8px}.v2-history-summary .v2-metric-icon svg{width:18px;height:18px}.v2-history-summary .v2-metric strong{font-size:21px}.v2-history-summary .v2-metric-label{font-size:11px}.v2-history-summary .v2-metric a{font-size:10px}.v2-history-coverage{background:var(--surface)}.v2-history-details>summary{color:var(--accent)}.v2-coverage{color:var(--accent-2);background:#f6a03d17}
.v2-command{background:var(--surface);border-color:var(--line)}.v2-command input{background:var(--raised)}.v2-command-results a:hover{background:var(--raised)}
@media(max-width:1250px){.v2-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-visuals{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.v2-sidebar{width:240px}.v2-visuals{grid-template-columns:1fr}.v2-head-actions{gap:7px}.v2-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.v2-head-actions{width:100%;justify-content:space-between}.v2-page-head{align-items:start;flex-wrap:wrap}.v2-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:460px){main{padding:20px 14px 60px}.v2-page-head h1{font-size:26px}.v2-live-button,.v2-personalize{font-size:11px;padding:0 10px}.v2-filterbar{display:grid;grid-template-columns:1fr 1fr}.v2-filterbar label{min-width:0}.v2-filter-extra,.v2-filterbar>.v2-button{grid-column:1/-1}.v2-today{padding:11px}.v2-today-grid{gap:7px}.v2-today .v2-metric{min-height:101px;padding:10px;gap:6px;align-items:start}.v2-today .v2-metric-icon{width:26px;height:26px}.v2-today .v2-metric-icon svg{width:16px;height:16px}.v2-today .v2-metric strong{font-size:17px}.v2-today .v2-metric-label{font-size:10px;white-space:normal}.v2-period-grid{gap:7px}.v2-period .v2-metric{min-height:110px;padding:10px;gap:6px;align-items:start}.v2-period .v2-metric-icon{width:28px;height:28px}.v2-period .v2-metric-icon svg{width:16px;height:16px}.v2-period .v2-metric strong{font-size:16px}.v2-period .v2-metric-label{font-size:9px}.v2-history-summary .v2-metric{padding:10px}.v2-history-summary .v2-metric-icon{display:none}.v2-history-summary .v2-metric strong{font-size:17px}.v2-donut{width:135px;height:135px}}
.v2-page-head{margin-bottom:25px}.v2-head-actions{flex-wrap:wrap;justify-content:flex-end}.v2-page-head .v2-filterbar{display:flex;align-items:center;flex-wrap:wrap;margin:0;gap:6px}.v2-page-head .v2-filterbar label{font-size:0;min-width:0}.v2-page-head .v2-filterbar input{min-width:125px;width:125px;font-size:12px}.v2-page-head .v2-filter-extra summary{font-size:11px;max-width:155px}.v2-page-head .v2-filterbar>.v2-button{margin-left:0;font-size:11px;padding:0 10px}
@media(max-width:1250px){.v2-page-head{align-items:start;flex-wrap:wrap}.v2-head-actions{width:100%;justify-content:flex-start}.v2-page-head .v2-filterbar{flex:1}}
@media(max-width:720px){.v2-head-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.v2-live-button,.v2-personalize{justify-content:center}.v2-page-head .v2-filterbar{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr}.v2-page-head .v2-filterbar label input{width:100%}.v2-page-head .v2-filter-extra{grid-column:1/-1}.v2-page-head .v2-filter-extra summary{max-width:none}.v2-page-head .v2-filterbar>.v2-button{grid-column:1/-1;width:100%}}
body.v2-auth{background:var(--bg);color:var(--text);font-family:SourceSans,system-ui,sans-serif}.v2-auth .auth-header{height:68px;background:var(--side);border-bottom:1px solid var(--line);color:#fff;display:flex;align-items:center;gap:10px;font:720 19px Archivo,system-ui,sans-serif}.v2-auth .auth-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(120deg,var(--accent),var(--accent-2));font-size:17px}.v2-auth .auth-main{background:radial-gradient(circle at 70% 20%,#e9695017,transparent 32%),var(--bg)}.v2-auth .form-card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;color:var(--text)}.v2-auth .form-card h1{color:var(--text)}.v2-auth .form-card p{color:var(--muted)}.v2-auth .form-card input{background:var(--raised);border-color:var(--line);color:var(--text)}.v2-auth .form-card button.primary{background:linear-gradient(105deg,var(--accent),var(--accent-2));border-radius:9px;color:#fff}.v2-auth .form-card button.primary:hover{filter:brightness(1.06)}
