/* Estilos exclusivos da tela Estatísticas de Follow-up. */
#statisticsPage[hidden],#statisticsPage [hidden]{display:none!important}
#statisticsPage{position:fixed;inset:0;z-index:9500;overflow:auto;background:#172f60;padding:4px;color:#071c49;font-family:Arial,Helvetica,sans-serif;font-size:13px;box-sizing:border-box}
#statisticsPage *,#statisticsPage *::before,#statisticsPage *::after{box-sizing:border-box}
#statisticsPage button,#statisticsPage input,#statisticsPage select{font:inherit;color:inherit}
#statisticsPage button{cursor:pointer}
#statisticsPage button:focus-visible,#statisticsPage input:focus-visible,#statisticsPage select:focus-visible{outline:2px solid #005dff;outline-offset:3px}
#statisticsPage .stat-svg{display:block;width:22px;height:22px;flex-shrink:0}
#statisticsPage [data-stat-icon]{display:inline-flex;align-items:center;justify-content:center}
#statisticsPage .statistics-shell{width:100%;min-height:calc(100dvh - 8px);margin:auto;background:linear-gradient(120deg,#f0f8ff,#e8f3ff 65%,#f1f8ff);border:1px solid #81bcff;border-radius:16px;overflow:hidden;box-shadow:0 0 0 1px #d4eaff inset}
#statisticsPage .statistics-head{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:104px;padding:18px 20px 20px 32px;background:radial-gradient(ellipse at 40% 10%,#f3faffaa,transparent 70%),linear-gradient(115deg,#dceeff,#d9edff 60%,#b6dcff);border-bottom:1px solid #acd2fa;box-shadow:0 3px 8px #3087d91a;position:relative}
#statisticsPage .statistics-heading{display:flex;align-items:center;gap:18px;flex:1 1 auto;min-width:295px;border-right:1px solid #9dc5f7;padding-right:20px}
#statisticsPage .stat-brand-icon{width:42px;height:42px;flex:0 0 42px;filter:drop-shadow(0 2px 2px #3173c42b)}
#statisticsPage .stat-brand-icon svg{width:100%;height:100%}
#statisticsPage h2{font-size:25px;font-weight:800;line-height:1.14;letter-spacing:-.7px;margin:0 0 6px;color:#081e50;white-space:nowrap}
#statisticsPage .statistics-heading p{font-size:13px;margin:0;color:#355b91;white-space:nowrap}
#statisticsPage .statistics-heading b{color:#102c62;font-weight:700}
#statisticsPage .statistics-control-label{font-size:13px;font-weight:750;display:flex;align-items:center;gap:5px;margin-bottom:7px;white-space:nowrap}
#statisticsPage .statistics-control-label .stat-svg{height:16px;width:16px;color:#0063ff}
#statisticsPage .statistics-base{flex:0 0 auto;padding-right:18px;border-right:1px solid #9dc5f7}
#statisticsPage .statistics-segments{display:flex;background:#f7fbff;border:1px solid #98bdf6;border-radius:8px;padding:2px;box-shadow:0 2px 3px #246be915;white-space:nowrap}
#statisticsPage .statistics-segments button{border:0;border-radius:5px;background:transparent;padding:7px 11px;display:flex;gap:7px;align-items:center;font-size:12px;font-weight:700;min-height:32px}
#statisticsPage .statistics-segments .stat-svg{width:19px;height:19px;color:#0063ff}
#statisticsPage .statistics-status{flex:0 0 auto;padding-right:16px;border-right:1px solid #9dc5f7}
#statisticsPage .statistics-status-chips{display:flex;gap:5px;white-space:nowrap}
#statisticsPage .statistics-status-chips button,#statisticsPage .stat-outline{border:1px solid #8db6f9;border-radius:7px;background:linear-gradient(#fff,#f5faff);color:#0755df;min-height:34px;padding:7px 9px;box-shadow:0 2px 4px #2456a815;font-size:12px;font-weight:650;white-space:nowrap}
#statisticsPage .statistics-status-chips button{font-size:11px;padding:7px 7px}
#statisticsPage .statistics-segments button.active,#statisticsPage .statistics-status-chips button.active,#statisticsPage .stat-pop-sort button.active,#statisticsPage .stat-pop-actions .active{background:linear-gradient(120deg,#087dff,#0047df);color:#fff;border-color:#0060ff;box-shadow:0 2px 5px #0051ed2b}
#statisticsPage .statistics-segments button.active .stat-svg{color:#fff}
#statisticsPage #statisticsBack{flex:0 0 auto;align-self:center;margin-top:18px;padding:8px 13px;border-color:#0758ff}
#statisticsPage .stat-outline{display:inline-flex;align-items:center;justify-content:center;gap:6px}
#statisticsPage .stat-outline .stat-svg{width:17px;height:17px}
#statisticsPage button:hover{filter:brightness(.98)}
#statisticsPage .statistics-content{padding:28px 20px 28px}
#statisticsPage #statisticsCards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
#statisticsPage .stat-blue{--stat-color:#0868ff;--stat-end:#034bea}#statisticsPage .stat-orange{--stat-color:#ff9c00;--stat-end:#f38900}#statisticsPage .stat-green{--stat-color:#62c533;--stat-end:#35ac23}#statisticsPage .stat-cyan{--stat-color:#03bff0;--stat-end:#009edb}#statisticsPage .stat-purple{--stat-color:#a62df6;--stat-end:#7d1ce1}#statisticsPage .stat-navy{--stat-color:#12286f;--stat-end:#091f64}
#statisticsPage .statistics-card{display:flex;align-items:center;gap:14px;position:relative;min-width:0;height:98px;text-align:left;border:1px solid #adcefa;border-top:6px solid var(--stat-color);border-radius:12px;padding:14px 14px;background:linear-gradient(125deg,#fff,#f2f8ff);box-shadow:0 4px 7px #2665b523}
#statisticsPage .statistics-card.selected{border-left-color:#5b9dfb;border-right-color:#5b9dfb;border-bottom-color:#5b9dfb;box-shadow:0 0 0 1px #6aa6ff,0 4px 7px #2665b523;background:linear-gradient(125deg,#fff,#e9f3ff)}
#statisticsPage .statistics-icon{width:45px;height:45px;flex:0 0 45px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--stat-color),var(--stat-end));border-radius:10px;box-shadow:0 3px 5px #184fa32b,inset 0 1px 2px #ffffff45}
#statisticsPage .statistics-icon .stat-svg{width:28px;height:28px;stroke-width:1.8}
#statisticsPage .statistics-card-text{min-width:0;flex:1}
#statisticsPage .statistics-label{font-size:13px;line-height:1.22;font-weight:700;letter-spacing:-.3px;display:block;min-height:16px;margin-bottom:5px}
#statisticsPage .statistics-card strong{font-size:34px;font-weight:800;line-height:1;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
#statisticsPage .stat-card-arrow{width:17px;height:20px;color:#3269bb;position:absolute;right:11px;top:42px}
#statisticsPage .statistics-card-text{padding-right:9px}
#statisticsPage .statistics-bottom{display:grid;grid-template-columns:minmax(0,.367fr) minmax(0,.633fr);align-items:start;gap:14px;margin-top:24px}
#statisticsPage .statistics-panel{min-width:0;border:1px solid #afcff6;border-radius:14px;background:linear-gradient(125deg,#fff,#f4f9ff);box-shadow:0 3px 6px #2864a91c;overflow:hidden}
#statisticsPage .statistics-panel-head{display:flex;align-items:center;gap:12px;min-height:68px;padding:13px 16px;background:linear-gradient(115deg,#f3f8ff,#deecff);border-bottom:1px solid #e4efff}
#statisticsPage .stat-panel-icon{color:#0060ff;flex:0 0 30px}
#statisticsPage .stat-panel-icon .stat-svg{width:30px;height:30px}
#statisticsPage .statistics-panel h3{margin:0;font-size:19px;font-weight:750;letter-spacing:-.6px;line-height:1.15;color:#081e50}
#statisticsPage .statistics-panel-head p{margin:4px 0 0;color:#395d8b;font-size:12px;line-height:1.2}
#statisticsPage #statisticsChartOrder{margin-left:auto;max-width:115px;min-height:32px;padding:5px 6px;background:#fff;border:1px solid #93b8f6;border-radius:8px;color:#0854dc;font-size:11px;font-weight:650}
#statisticsPage .statistics-chart-panel .statistics-panel-head{min-height:81px;gap:10px;padding-right:12px}
#statisticsPage .statistics-chart-panel h3{font-size:18px}
#statisticsPage #statisticsChart{padding:25px 16px 28px;background:linear-gradient(125deg,#fff,#f5faff);border-radius:12px}
#statisticsPage .statistics-bar{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:16px 4px;background:transparent;border:1px solid transparent;border-radius:8px;color:#071c49;text-align:left}
#statisticsPage .statistics-bar.selected{border-color:#7bb1ff;background:#eaf3ff}
#statisticsPage .stat-bar-label{font-size:14px;white-space:nowrap}
#statisticsPage .statistics-track{height:24px;display:block;background:linear-gradient(90deg,#e3edfa,#e9f1fc);border-radius:7px;overflow:hidden}
#statisticsPage .statistics-track>span{display:block;height:100%;background:linear-gradient(100deg,var(--stat-color),var(--stat-end));border-radius:7px;min-width:0}
#statisticsPage .stat-bar-figures{display:flex;align-items:center;gap:5px;white-space:nowrap;font-variant-numeric:tabular-nums}
#statisticsPage .stat-bar-figures b{background:#e4eeff;border-radius:6px;font-size:15px;font-weight:750;padding:3px 5px}
#statisticsPage .stat-bar-figures small{font-size:11px;color:#315c98}
#statisticsPage .statistics-ranking-panel .statistics-panel-head{gap:10px;min-height:60px;padding:12px 16px}
#statisticsPage .stat-ranking-heading{flex:1;min-width:0}
#statisticsPage .statistics-ranking-panel .stat-outline{font-size:12px;padding:7px 10px}
#statisticsPage #statisticsTableContext{font-size:10px;color:#31568a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#statisticsPage .statistics-table{padding:8px 8px 14px;overflow:auto;max-height:438px;scrollbar-gutter:stable}
#statisticsPage .statistics-table table{width:100%;border-collapse:separate;border-spacing:0 2px;table-layout:fixed;font-size:12px}
#statisticsPage .stat-col-orc{width:13.5%}#statisticsPage .stat-col-client{width:27%}#statisticsPage .stat-col-value{width:14%}#statisticsPage .stat-col-count{width:11.5%}#statisticsPage .stat-col-last{width:15%}#statisticsPage .stat-col-history{width:19%}
#statisticsPage .statistics-table th{position:sticky;top:-8px;z-index:1;padding:0 2px 6px;background:#f7fbff}
#statisticsPage .stat-th{border:0;border-radius:8px;background:linear-gradient(120deg,#f0f6ff,#e1edfd);display:flex;align-items:center;gap:3px;width:100%;height:35px;padding:6px 8px;font-size:11px;font-weight:750;white-space:nowrap;text-align:left;position:relative;letter-spacing:-.25px}
#statisticsPage .stat-th .stat-sort{height:13px;width:10px;color:#1f4f9b}
#statisticsPage .stat-th .stat-funnel{height:14px;width:13px;margin-left:auto;color:#16427c}
#statisticsPage .stat-th.filtered{background:#0867f2;color:#fff}#statisticsPage .stat-th.filtered .stat-svg{color:#fff}
#statisticsPage .stat-th.sorted .stat-sort{color:#0758ff;stroke-width:2.6}
#statisticsPage .stat-filter-dot{width:5px;height:5px;background:#fff;border-radius:50%;position:absolute;right:4px;top:3px}
#statisticsPage .statistics-table td{padding:8px 10px;height:35px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#0a214a}
#statisticsPage .statistics-table tbody tr{background:#fff}#statisticsPage .statistics-table tbody tr:nth-child(even){background:#e6f1fe}
#statisticsPage .statistics-table tbody tr:hover{background:#dcecff}
#statisticsPage .statistics-table td:first-child{border-radius:6px 0 0 6px}#statisticsPage .statistics-table td:last-child{border-radius:0 6px 6px 0;padding:3px 4px}
#statisticsPage .statistics-table .stat-orc{font-weight:800;color:#0c2e72;font-size:13px}
#statisticsPage .statistics-table .stat-client{font-size:11px}
#statisticsPage .stat-value{text-align:right;font-weight:650;font-variant-numeric:tabular-nums}
#statisticsPage .stat-contact-cell{text-align:center}
#statisticsPage .statistics-count{display:inline-block;min-width:30px;background:linear-gradient(120deg,#d2e6ff,#bddbff);color:#0b3c91;padding:3px 6px;border-radius:6px;font-size:13px;font-weight:750}
#statisticsPage .stat-date{text-align:center;font-variant-numeric:tabular-nums}
#statisticsPage .stat-history-button{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:29px;border:1px solid #8bb4f8;border-radius:8px;background:linear-gradient(#fff,#f9fcff);color:#0054d9;font-size:12px;font-weight:650;padding:3px 7px;white-space:nowrap}
#statisticsPage .stat-history-button .stat-svg{width:15px;height:15px}
#statisticsPage .statistics-empty{text-align:center;white-space:normal!important;padding:30px 12px!important;font-size:13px}
#statisticsPage #statisticsFooter{display:flex;align-items:center;gap:14px;margin-top:24px;padding:14px 18px;min-height:50px;background:linear-gradient(105deg,#e2f1ff,#c9e2ff);border:1px solid #fff;border-radius:12px;box-shadow:0 6px 0 #ffffff91;font-size:12px}
#statisticsPage #statisticsFooter p{margin:0;line-height:1.4}
#statisticsPage #statisticsFooter .stat-svg{width:24px;height:24px;color:#0063ff}
#statisticsPage #statisticsFilterPopup{position:fixed;z-index:9800;width:280px;max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #80adf3;border-radius:11px;padding:13px;box-shadow:0 12px 35px #17376540;color:#102c62;font-size:13px}
#statisticsPage .stat-pop-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:15px}
#statisticsPage .stat-pop-title button{border:0;background:#edf4ff;border-radius:50%;width:26px;height:26px;font-size:21px;color:#315b96}
#statisticsPage .stat-pop-sort{display:flex;gap:6px;margin-bottom:12px}
#statisticsPage .stat-pop-sort button{display:flex;gap:5px;align-items:center;justify-content:center;flex:1;background:#eef5ff;border:1px solid #b1cef7;border-radius:6px;padding:8px 4px;font-size:11px;white-space:nowrap}
#statisticsPage .stat-pop-sort .stat-svg{width:12px;height:15px}
#statisticsPage #statisticsFilterForm label{display:block;font-size:12px;font-weight:650;margin-bottom:9px}
#statisticsPage #statisticsFilterForm input,#statisticsPage #statisticsFilterForm select{display:block;width:100%;margin-top:5px;border:1px solid #a7c4ed;border-radius:6px;padding:8px;background:#fff;font-size:13px}
#statisticsPage #statisticsFilterError{margin:4px 0;color:#b42318;font-size:12px}
#statisticsPage .stat-pop-actions{display:flex;justify-content:space-between;gap:8px;margin-top:10px}
#statisticsPage .stat-pop-actions button{border:1px solid #91b5ec;background:#fff;border-radius:6px;padding:8px 11px;font-weight:650;font-size:12px}
#statisticsPage .stat-clear-all{background:none;border:0;color:#275b9e;margin:12px 0 0;font-size:11px;text-decoration:underline}
@media(min-width:1700px){#statisticsPage .statistics-head{padding:24px 32px;min-height:108px}#statisticsPage .statistics-content{padding:28px 24px}#statisticsPage h2{font-size:27px}#statisticsPage .statistics-segments button{font-size:13px}#statisticsPage .statistics-status-chips button{font-size:12px;padding:8px 10px}#statisticsPage .statistics-card{height:100px}#statisticsPage .statistics-table td{height:38px}}
@media(max-width:1350px){#statisticsPage .statistics-head{gap:12px;padding-left:20px}#statisticsPage .statistics-heading{min-width:265px;gap:12px;padding-right:12px}#statisticsPage h2{font-size:22px}#statisticsPage .statistics-base{padding-right:12px}#statisticsPage .statistics-segments button{font-size:11px;padding:6px 7px}#statisticsPage .statistics-status{padding-right:12px}#statisticsPage #statisticsBack{padding:8px 9px;font-size:11px}#statisticsPage .statistics-panel h3{font-size:16px}#statisticsPage .statistics-ranking-panel .stat-outline{font-size:10px;padding:6px}#statisticsPage .statistics-panel-head{padding:12px;gap:8px}#statisticsPage .statistics-chart-panel .stat-panel-icon{flex-basis:24px}#statisticsPage .statistics-chart-panel .stat-panel-icon .stat-svg{width:24px}#statisticsPage .statistics-chart-panel h3{font-size:16px}#statisticsPage .stat-bar-label{font-size:12px}#statisticsPage .statistics-bar{grid-template-columns:65px minmax(0,1fr) auto;gap:7px}#statisticsPage .statistics-card{gap:10px;padding:12px}#statisticsPage .statistics-label{font-size:12px}#statisticsPage .statistics-icon{width:39px;height:43px;flex-basis:39px}#statisticsPage .stat-th{font-size:10px;padding:6px 4px}#statisticsPage .statistics-table td{padding:7px 6px;font-size:11px}}
@media(max-width:1150px){#statisticsPage .statistics-head{flex-wrap:wrap;justify-content:flex-start}#statisticsPage .statistics-heading{flex:1 1 100%;border:0;padding:0}#statisticsPage .statistics-status{margin-left:auto}#statisticsPage #statisticsBack{margin-top:18px}#statisticsPage .statistics-label{font-size:11px}#statisticsPage .statistics-card{gap:7px}#statisticsPage .statistics-icon{width:32px;height:36px;flex-basis:32px}#statisticsPage .statistics-icon .stat-svg{width:23px;height:23px}#statisticsPage .statistics-card strong{font-size:29px}#statisticsPage .statistics-chart-panel .statistics-panel-head{flex-wrap:wrap}#statisticsPage #statisticsChartOrder{margin-left:auto}#statisticsPage .statistics-ranking-panel .statistics-panel-head{flex-wrap:wrap}#statisticsPage .statistics-table table{min-width:650px}}
@media(max-width:850px){#statisticsPage #statisticsCards{display:flex;overflow-x:auto;padding:2px 2px 8px;gap:12px}#statisticsPage .statistics-card{flex:0 0 210px}#statisticsPage .statistics-bottom{grid-template-columns:1fr}#statisticsPage .statistics-card strong{font-size:32px}#statisticsPage .statistics-label{font-size:12px}#statisticsPage .statistics-content{padding:18px 14px}#statisticsPage .statistics-status{margin-left:0;border:0}#statisticsPage .statistics-base{border:0}#statisticsPage #statisticsBack{margin-top:0}#statisticsPage .statistics-head{gap:16px}#statisticsPage .statistics-bar{grid-template-columns:85px 1fr auto}#statisticsPage .statistics-chart-panel .statistics-panel-head{flex-wrap:nowrap}#statisticsPage .statistics-table{max-height:430px}}
@media(max-width:500px){#statisticsPage .statistics-status-chips{flex-wrap:wrap}#statisticsPage .statistics-head{padding:16px}#statisticsPage h2{font-size:21px;white-space:normal}#statisticsPage .statistics-heading{min-width:0;gap:12px}#statisticsPage .statistics-head .stat-brand-icon{width:35px;height:35px;flex-basis:35px}#statisticsPage #statisticsFooter{font-size:11px;padding:12px}}
/* O botão de entrada mantém as dimensões já existentes no Follow-up. */
#fuStatisticsButton{background:linear-gradient(135deg,#2464e6,#173d98);color:#fff;border:1px solid #1748b2;border-radius:7px;padding:7px 14px;font-size:12px;font-weight:700;cursor:pointer}
/* Proporções dos dois painéis na referência desktop. */
@media(min-width:851px){
 #statisticsPage .statistics-bottom{align-items:stretch}
 #statisticsPage .statistics-chart-panel{display:flex;flex-direction:column}
 #statisticsPage #statisticsChart{display:flex;flex-direction:column;justify-content:space-evenly;flex:1;padding:20px 16px}
 #statisticsPage .statistics-table{max-height:360px}
}
