:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e8edf6;background:#0b1020;line-height:1.45;font-synthesis:none;--muted:#8d9ab2;--line:#26334d;--panel:#121a2b;--panel2:#18243a;--blue:#72a8ff;--green:#48d597;--amber:#f5bd54;--red:#ff7188}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 70% -10%,#1d3762 0,#0b1020 48%);min-height:100vh}.shell{max-width:1440px;margin:auto;padding:0 28px}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1e2a40}.brand{display:flex;gap:11px;align-items:center;color:#f5f8ff;text-decoration:none;font-size:17px;font-weight:700;letter-spacing:-.02em}.brand em{font-style:normal;color:var(--muted);font-weight:500}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#77b2ff,#786dff);color:#071022;font-size:13px}.readonly{color:#9caac0;font-size:12px;border:1px solid #2a3a57;border-radius:99px;padding:7px 11px}.readonly i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:5px}.content{padding:40px 0 64px}.eyebrow{color:var(--blue);font-size:12px;text-transform:uppercase;letter-spacing:.15em;font-weight:700}.hero{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.08;letter-spacing:-.045em;margin:8px 0}.hero p{margin:0;color:var(--muted);max-width:600px}.period{color:var(--muted);font-size:12px;text-align:right}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:28px}.stat,.card,.detail-section{background:linear-gradient(145deg,rgba(22,33,54,.98),rgba(15,23,39,.98));border:1px solid var(--line);border-radius:16px}.stat{padding:17px}.stat-label{color:var(--muted);font-size:12px}.stat-value{font-size:25px;font-weight:750;margin-top:8px;letter-spacing:-.03em}.stat-value.green{color:var(--green)}.stat-value.amber{color:var(--amber)}.stat-value.red{color:var(--red)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{padding:20px;transition:.18s transform,.18s border-color}.card:hover{transform:translateY(-2px);border-color:#405b86}.card-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.client-name{color:#f2f6ff;font-size:19px;font-weight:700;text-decoration:none}.client-name:hover{color:var(--blue)}.tag{font-size:10px;letter-spacing:.08em;border:1px solid #344766;border-radius:6px;padding:4px 7px;color:#aebbd0}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700;margin-top:11px}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.active,.good{color:var(--green);background:#123a32}.attention{color:var(--amber);background:#40321b}.critical,.inactive{color:var(--red);background:#421f2d}.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:15px 18px;margin:22px 0}.metric-label{color:var(--muted);font-size:11px}.metric-value{font-weight:700;font-size:17px;margin-top:2px}.trend{font-size:11px;margin-left:5px;font-weight:600}.up-good{color:var(--green)}.down-bad{color:var(--red)}.neutral{color:var(--muted)}.alerts{border-top:1px solid #24324a;padding-top:13px;color:#f2c66e;font-size:12px}.alerts div{margin:5px 0}.empty{color:var(--muted);padding:28px 0}.back{color:var(--muted);text-decoration:none;font-size:13px}.back:hover{color:#fff}.detail-layout{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}.detail-section{padding:22px}.detail-section h2{font-size:16px;margin:0 0 16px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:12px}.table th{text-align:left;color:var(--muted);font-weight:500;padding:10px;border-bottom:1px solid var(--line)}.table td{padding:11px 10px;border-bottom:1px solid #1c2940}.status-text{font-size:11px;font-weight:700}.loading{display:grid;place-items:center;min-height:360px;color:var(--muted)}.spinner{width:25px;height:25px;border:2px solid #29405f;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:12px}@keyframes spin{to{transform:rotate(360deg)}}.error{padding:20px;border:1px solid #753247;background:#281724;border-radius:14px;color:#ff9daf}footer{border-top:1px solid #1e2a40;padding:17px 0 30px;color:#64728c;font-size:11px}@media(max-width:1000px){.stats{grid-template-columns:repeat(3,1fr)}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.shell{padding:0 16px}.topbar{height:65px}.readonly{font-size:0}.readonly i{margin:0}.hero{display:block}.period{text-align:left;margin-top:16px}.stats{grid-template-columns:repeat(2,1fr)}.grid,.detail-layout{grid-template-columns:1fr}.stat-value{font-size:21px}}
 .period-control{display:flex;align-items:end;gap:9px;color:var(--muted);font-size:12px}.period-control label{display:flex;flex-direction:column;gap:6px}.period-control select,.custom-period input,.custom-period button,.sort-table{background:#0e1728;border:1px solid #334664;color:#e8edf6;border-radius:8px;padding:8px 10px;font:inherit}.custom-period{display:none;align-items:center;gap:7px}.custom-period.visible{display:flex}.custom-period button{cursor:pointer;color:#9fc3ff}.direction{font-size:11px;font-weight:700;margin-top:12px}.direction.good{color:var(--green)}.direction.bad{color:var(--red)}.direction.neutral{color:var(--muted)}.table-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.table-title h2{margin-bottom:16px}.highlight{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #223149;font-size:12px}.highlight span{color:var(--muted)}.highlight strong{text-align:right;color:#f2f6ff;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:650px){.period-control,.custom-period{flex-wrap:wrap;align-items:center}.custom-period input{width:135px}.table-title{align-items:start;flex-direction:column}}

/* Contexto e diagnóstico compartilhados entre agência e cliente. */
.delivery-label,.health-label,.objective-label{font-size:12px;color:#b7c6dd}.delivery-label .badge,.health-label .badge{margin-top:5px}.health-reason{font-size:12px;color:#c0cde0;line-height:1.7;margin:10px 0 16px}.status-reason{font-size:11px;color:var(--muted);margin:8px 0 16px}.insufficient{color:#c0cce1;background:#293247}.section-period{color:var(--muted);font-size:11px;line-height:1.7;font-weight:400;margin:10px 0 18px}.previous-value{font-size:11px;color:var(--muted);margin:10px 0 0}.stat-value{overflow-wrap:anywhere}.detail-health{padding:18px 22px;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:12px;background:#111d31}.detail-health>span{font-size:12px}.detail-health p{color:#bdcce0;font-size:13px;line-height:1.7;margin:8px 0 0}.detail-health .badge{margin:0 0 0 8px}.indicators-section h2{font-size:18px;margin:24px 0 0}.chart-interactive{position:relative}.chart-hit{fill:transparent;cursor:crosshair;outline:none}.chart-hit:focus{fill:#72a8ff15;stroke:#72a8ff;stroke-width:1}.chart-tooltip{position:absolute;top:10px;right:12px;max-width:calc(100% - 24px);padding:14px 16px;background:#071223f5;border:1px solid #5574a0;border-radius:10px;color:#e8edf6;font-size:12px;line-height:1.9;box-shadow:0 6px 25px #0005;pointer-events:none}.time-chart text.axis-current{fill:#72a8ff}.time-chart text.axis-previous{fill:#bda1ff}.funnel-rate b{color:#b8c9e0;font-weight:500}.client-meta{flex-wrap:wrap}.intelligent p{line-height:1.7}@media(max-width:650px){.client-navigation{align-items:flex-start;flex-wrap:wrap}.client-meta .objective{border-left:0;padding-left:0;flex-basis:100%}.detail-health{padding:16px}.chart-tooltip{font-size:11px}.funnel-label{gap:12px}.funnel-label strong{font-size:16px;overflow-wrap:anywhere}.client-stats .stat-value{font-size:20px}.client-stats .trend{margin-left:0}}

/* Gestor 2.0 */
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{padding:24px}.stat-hint{font-size:12px;color:var(--muted);margin-top:8px}.filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px;background:#101a2c;border:1px solid var(--line);border-radius:16px;padding:20px;margin:24px 0}.filters label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted)}select,input,button{font:inherit;color:inherit;background:#0e1728;border:1px solid #334664;border-radius:8px;padding:10px;min-height:42px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}.filters button{background:#8eb9ff;color:#0b1830;font-weight:700}.filters p{margin:0;color:var(--red);width:100%}.filters p:empty{display:none}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:30px 0 16px}.section-heading h2{font-size:19px;margin:0}.section-heading span{font-size:12px;color:var(--muted)}.client-card{display:block;color:inherit;text-decoration:none;min-width:0}.client-name{overflow-wrap:anywhere}.card-head>div{min-width:0}.card-head .badge{flex-shrink:0}.client-card .period{text-align:left;margin:16px 0;line-height:1.8}.open-client{border-top:1px solid var(--line);padding-top:14px;margin-top:16px;color:var(--blue);font-size:12px;font-weight:600}.comparison-label{font-size:12px;color:var(--muted)}.quiet .card{background:#101827;border-color:#253047}.paused,.no_delivery,.inactive,.unknown{color:#abb7cc;background:#293247}.table-section{margin-top:20px}.metrics>div{min-width:0}.trend{display:inline-block}.filters .custom-period{gap:12px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.detail-layout+.table-section{margin-top:20px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.filters{padding:16px}.filters>label,.filters>button,.custom-period.visible{width:100%}.custom-period label{flex:1;min-width:0}.custom-period input{width:100%;min-width:0}.section-heading{align-items:start;flex-direction:column;gap:6px}.stat{padding:16px}.stat-value{font-size:22px}.brand{font-size:15px}.grid{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Individual client report */
.objective{font-size:12px;color:#afc0d9;border-left:1px solid #3b4e6d;padding-left:12px}

/* Individual client report */
.client-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}.client-navigation button{color:var(--blue);border-color:#4c6690}.client-hero{align-items:center}.client-meta{display:flex;align-items:center;gap:12px}.client-meta .badge{margin:0}.client-meta .tag{font-size:12px;letter-spacing:0}.period-banner{display:flex;flex-wrap:wrap;gap:12px 30px;color:var(--muted);font-size:12px;margin:0 0 20px}.period-banner b{color:#cbd8ed;margin-right:8px}.client-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin-bottom:24px}.client-stats .stat-value{font-size:clamp(21px,2vw,28px);overflow-wrap:anywhere}.client-stats .trend{display:block;margin:12px 0 0;font-size:12px}.chart-section{padding:24px;margin-bottom:24px;min-width:0}.chart-section .section-heading{margin:0 0 20px}.metric-selector,.structure-section label{display:flex;flex-direction:column;font-size:12px;color:var(--muted);gap:6px}.chart-legend{display:flex;gap:24px;font-size:12px;margin-bottom:12px}.legend-current{color:#8cbeff}.legend-previous{color:#c2a0ff}.time-chart{display:block;width:100%;height:auto;min-height:190px;overflow:visible}.time-chart text{font-size:12px;fill:#a3b3cc}.chart-grid{stroke:#29374f;stroke-width:1}.series-current,.series-previous{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.series-current{stroke:#8cbeff}.series-previous{stroke:#c2a0ff;stroke-dasharray:7 6}.point-current{fill:#8cbeff}.point-previous{fill:#c2a0ff}.chart-data{font-size:12px;color:var(--muted);margin-top:12px}.chart-data summary{cursor:pointer;padding:10px 0}.chart-loading{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.section-note{font-size:12px;color:#a5b2c8;line-height:1.65}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.detail-columns>div{min-width:0}.detail-columns .detail-section{height:100%}.detail-section .eyebrow{font-size:10px;margin-bottom:8px}.detail-section h2{font-size:20px;letter-spacing:-.02em}.funnel{list-style:none;padding:0;margin:24px 0}.funnel li{padding:0 0 18px}.funnel-label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;margin-bottom:8px}.funnel-label strong{white-space:nowrap;color:#eaf1ff}.funnel-track{height:8px;background:#243149;border-radius:6px;overflow:hidden}.funnel-track span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#638fff,#8cc8ff)}.funnel-rate{font-size:11px;color:var(--muted);margin:7px 0 0}.drop{color:var(--amber)}.intelligent article{padding:12px 0;border-bottom:1px solid #26334d}.intelligent h3{font-size:12px;color:#9fc5ff;margin:0 0 6px}.intelligent article p{font-size:13px;line-height:1.7;color:#d1dced;margin:0}.structure-section{min-width:0}.structure-section .section-heading{margin:0 0 20px}.structure-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:16px}.structure-tabs button{color:var(--muted);background:transparent}.structure-tabs button[aria-selected=true]{background:#23406a;color:#dcecff;border-color:#587ab0}.structure-section .table th,.structure-section .table td{white-space:nowrap;vertical-align:top;padding:14px 12px}.structure-section .table th[scope=row]{white-space:normal;min-width:220px;max-width:360px;color:#dce8fb;font-weight:600;overflow-wrap:anywhere}.table caption{text-align:left;padding:12px;color:var(--muted);font-size:11px}.ad-marks{display:flex;flex-wrap:wrap;gap:4px}.ad-marks .badge{font-size:10px}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.client-only{display:none}.client-view .internal-only{display:none!important}.client-view .client-only{display:block;margin-bottom:24px}.client-view .detail-columns{display:none}.client-view .client-navigation{justify-content:flex-end}.client-only p{font-size:14px;line-height:1.7;color:#cbd8ed}.content[aria-busy=true]{cursor:progress}@media(max-width:850px){.detail-columns{grid-template-columns:minmax(0,1fr)}.client-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.client-stats .stat{padding:16px}.time-chart{min-height:160px}}@media(max-width:550px){.client-navigation{align-items:flex-start;flex-direction:column;gap:16px}.client-hero .section-note{margin-top:18px}.client-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.client-stats .stat-value{font-size:22px}.client-stats .trend{font-size:11px}.chart-section,.detail-columns .detail-section,.structure-section{padding:16px}.time-chart{min-height:130px}.client-meta{flex-wrap:wrap}.structure-section .section-heading>label,.metric-selector{width:100%}.funnel-label{font-size:12px}.funnel-label strong{font-size:12px}.structure-tabs{gap:5px}.structure-tabs button{font-size:12px;padding:10px}.period-banner{flex-direction:column}.chart-section .section-heading{gap:16px}.client-view .client-navigation{align-items:flex-end}}

/* Keep currency decimals together at seven-card desktop widths. */
.client-stats .stat{padding:18px}.client-stats .stat-value{font-size:clamp(18px,1.4vw,22px)}@media(max-width:550px){.client-stats .stat{padding:14px}.client-stats .stat-value{font-size:20px}}

.client-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.share-panel{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#050a14cc}.share-dialog{width:min(460px,100%);padding:24px;background:#121d32;border:1px solid #405778;border-radius:16px;box-shadow:0 18px 60px #0008}.share-dialog h2{margin:0 0 18px}.share-dialog label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;margin:20px 0}.share-dialog select,.share-dialog input{width:100%;background:#0c1526;border:1px solid #334664;color:#e8edf6;border-radius:8px;padding:10px}.share-dialog>button:not(.share-close){background:#8eb9ff;color:#0b1830;font-weight:700}.share-close{float:right;background:transparent;border:0;font-size:24px;padding:0;color:#b8c8df}.share-success{display:block;color:var(--green);font-weight:700;margin-bottom:8px}.share-result-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.share-result-actions a{color:var(--blue);font-size:12px}.share-result-actions button{padding:7px 10px;min-height:34px;font-size:12px}.share-dialog .section-note{margin-top:12px}

@page{size:A4;margin:14mm 12mm}@media print{html,body{background:#fff!important;color:#182237!important;font-size:11px}.shell{max-width:none;padding:0}.topbar{height:auto;border:0;padding:0 0 10px}.brand{color:#17233a;font-size:18px}.brand-mark{print-color-adjust:exact;-webkit-print-color-adjust:exact}.readonly,footer,.client-navigation,.filters,.detail-health,.internal-only,.share-panel,.metric-selector,.structure-section .section-heading>label{display:none!important}.content{padding:0}.hero{margin:0 0 12px}.hero h1{font-size:26px;color:#101b30}.eyebrow{color:#315e9e}.client-meta{color:#394862}.client-meta .badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}.period-banner,.section-period{color:#52617a}.stat,.card,.detail-section{background:#fff!important;border:1px solid #cbd5e4!important;box-shadow:none!important;border-radius:8px;break-inside:avoid}.stat-label,.metric-label,.previous-value,.section-note{color:#52617a!important}.stat-value,.funnel-label strong,.table td,.table th,.detail-section h2,.client-only p{color:#182237!important}.client-stats{grid-template-columns:repeat(5,1fr);gap:8px}.client-stats .stat{padding:10px}.client-stats .trend{color:#23724e!important}.chart-section{break-inside:avoid}.time-chart{max-height:250px}.chart-grid{stroke:#cbd5e4}.series-current{stroke:#2f75c8}.series-previous{stroke:#8a5ac2}.structure-section{display:block!important;margin-top:16px}.structure-section .table-wrap{overflow:visible}.structure-section .table{font-size:9px}.structure-section .table th,.structure-section .table td{white-space:normal;padding:6px}.client-only{display:block!important;break-inside:avoid}.client-view .client-only{margin-bottom:12px}.client-view .structure-tabs{display:none!important}}
