.statistics-shell{max-width:1440px;margin-inline:auto;padding-bottom:6rem}.statistics-heading,.statistics-section-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.statistics-heading{margin-bottom:1.5rem}.statistics-heading h1{font-size:1.65rem;font-weight:750}.statistics-heading p{color:var(--text-muted,#526773)}.statistics-filters{padding:1.25rem;margin-bottom:1.25rem}.statistics-filter-row{display:flex;gap:1rem;align-items:end;flex-wrap:wrap}.statistics-filter-row .control-item{min-width:150px;flex:1}.statistics-filter-row label{font-size:.875rem;color:var(--text-muted,#526773)}.statistics-filter-row input[type=date]{width:100%;min-width:0}.statistics-filter-shortcuts{margin-top:1rem;justify-content:space-between;align-items:center}.statistics-presets{display:flex;gap:.5rem;flex-wrap:wrap}.statistics-channels{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;border:0;padding:0}.statistics-channels legend{font-size:.75rem;font-weight:700;margin-bottom:.35rem}.statistics-channels label{display:flex;align-items:center;gap:.3rem}.statistics-tabs{display:flex;gap:.4rem;border-bottom:1px solid var(--border-color,#d8e2df);margin-bottom:1.25rem}.statistics-tabs button{padding:.8rem 1rem;border-bottom:3px solid transparent;color:var(--text-muted,#526773);font-weight:650}.statistics-tabs button[aria-selected=true]{border-bottom-color:var(--color-primary,#10847c);color:var(--text-primary,#162630)}.statistics-tabs button:focus-visible{outline:2px solid #10847c;outline-offset:2px}.statistics-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:1rem;margin-bottom:1.25rem}.statistics-kpi,.statistics-panel{background:var(--bg-elevated,#fff);border:1px solid var(--border-color,#dfe6e3);border-radius:1rem;padding:1.25rem}.statistics-kpi strong{display:block;font-size:1.7rem;margin-top:.65rem;line-height:1.3;overflow-wrap:anywhere}.statistics-kpi span{font-size:.85rem;color:var(--text-muted,#526773)}.statistics-kpi small{display:block;font-size:.75rem;margin-top:.5rem;color:var(--text-muted,#526773)}.statistics-panel{margin-bottom:1.25rem;min-width:0}.statistics-panel h2,#statisticsRevenueTools h2{font-size:1.1rem;font-weight:700;margin-bottom:.9rem}.statistics-panel p{color:var(--text-muted,#526773);font-size:.875rem}.statistics-warning{padding:1rem;border:1px solid #d0a956;background:var(--color-warning-bg,#fff8e8);border-radius:.75rem;margin-bottom:1rem;line-height:1.6}.statistics-note{font-size:.83rem;color:var(--text-muted,#526773);margin:.5rem 0 1rem}.statistics-scroll{overflow-x:auto;max-width:100%}.statistics-table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}.statistics-table th,.statistics-table td{padding:.85rem .65rem;border-bottom:1px solid var(--border-color,#e1e7e4);white-space:nowrap}.statistics-table th{font-size:.75rem;color:var(--text-muted,#526773);font-weight:650}.statistics-table th:not(:first-child),.statistics-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.statistics-table td:first-child{white-space:normal;min-width:150px}.statistics-bars{display:grid;gap:.9rem;margin:1rem 0}.statistics-bar{display:grid;grid-template-columns:minmax(95px,1fr) 3fr minmax(75px,1fr);gap:.8rem;align-items:center;font-size:.85rem}.statistics-bar meter{width:100%;height:1.1rem;accent-color:#10847c}.statistics-bar strong{text-align:right;font-variant-numeric:tabular-nums}.statistics-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem;margin:1rem 0;align-items:end}.statistics-form label{display:grid;gap:.3rem;font-size:.85rem}.statistics-form input,.statistics-form select{width:100%;min-width:0}#statisticsRevenueTools{padding:1.25rem}#statisticsRevenueTools details{padding:1rem 0;border-top:1px solid var(--border-color,#dfe6e3)}#statisticsRevenueTools summary{cursor:pointer;font-weight:650}#statisticsRevenueTools details p{font-size:.85rem;line-height:1.6;margin:.7rem 0}.statistics-dialog{border:0;border-radius:1rem;padding:0;max-height:90vh;max-width:95vw;color:var(--text-primary,#162630)}.statistics-dialog::backdrop{background:#0007}.statistics-dialog>div{max-height:90vh;overflow:auto}.statistics-shell [hidden]{display:none!important}.statistics-shell [aria-busy=true]{opacity:.6}.statistics-empty{padding:2rem;text-align:center}.statistics-error-text{color:var(--color-danger,#b91c1c)}@media(max-width:600px){.statistics-heading{align-items:start}.statistics-heading .btn{width:100%}.statistics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-kpi{padding:1rem}.statistics-kpi strong{font-size:1.4rem}.statistics-tabs button{padding:.8rem .65rem;flex:1}.statistics-bar{grid-template-columns:85px 1fr 65px;gap:.5rem}.statistics-filters,.statistics-panel{padding:1rem}.statistics-section-heading .btn{width:100%}}
/* Statistics is one full-width column rather than the legacy dashboard grid. */
.page-analytics .statistics-shell{display:block;width:100%;min-width:0;box-sizing:border-box;padding:24px}.statistics-shell>*{min-width:0}.statistics-channels{min-width:0}.statistics-shell input[type=date]{max-width:100%}@media(max-width:600px){.page-analytics .statistics-shell{padding:18px 12px 96px}.statistics-filter-row .control-item{min-width:125px}.statistics-channels{width:100%}}
.statistics-filter-row .control-item:has(>label[for=propertySelect]):not(:has(select)){display:none}.statistics-warning summary{font-weight:650;cursor:pointer}.statistics-warning p{margin:.25rem 0}.statistics-bar meter::-webkit-meter-optimum-value{background:#10847c}.statistics-bar meter::-webkit-meter-bar{background:#e3eeea;border:0}
.statistics-reference{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem;font-size:.85rem}.statistics-reference select{max-width:310px}.statistics-value-link{padding:0;background:none;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;text-align:inherit;cursor:pointer;border:0;font:inherit}.statistics-value-link:hover{color:var(--color-primary,#10847c)}.statistics-value-link:focus-visible{outline:2px solid #10847c;outline-offset:4px}.statistics-source-panel summary{cursor:pointer;font-weight:650}.statistics-detail-dialog{border:0;border-radius:1rem;background:var(--bg-elevated,#fff);color:var(--text-primary,#162630);width:min(1100px,95vw);max-height:90vh;padding:1.5rem}.statistics-detail-dialog::backdrop{background:#0008}.statistics-detail-dialog p{margin:.8rem 0;font-size:.9rem;line-height:1.6}.statistics-detail-total{font-weight:700}.statistics-detail-dialog h2{font-size:1.2rem;font-weight:700}.statistics-detail-dialog .statistics-table td{white-space:normal;min-width:85px}.statistics-detail-dialog .statistics-scroll{margin:1rem 0}.statistics-detail-dialog #statisticsDetailMore{margin-top:1rem}@media(max-width:600px){.statistics-reference select{max-width:100%;width:100%}.statistics-detail-dialog{padding:1rem}}
.statistics-cell-label{display:none}@media(max-width:600px){.statistics-detail-dialog .statistics-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.statistics-detail-dialog .statistics-table,.statistics-detail-dialog .statistics-table tbody{display:block;width:100%}.statistics-detail-dialog .statistics-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem;border:1px solid var(--border-color,#dfe6e3);border-radius:.6rem;padding:.75rem;margin-bottom:.75rem}.statistics-detail-dialog .statistics-table td{border:0;padding:0;min-width:0;text-align:left;overflow-wrap:anywhere}.statistics-cell-label{display:block;color:var(--text-muted,#526773);font-size:.75rem;font-weight:600;margin-bottom:.2rem}}

.statistics-heading-actions{display:flex;gap:.75rem;flex-wrap:wrap}@media(max-width:600px){.statistics-heading-actions{width:100%}}

.statistics-import-guide{padding:.75rem;border:1px solid var(--border-color,#dfe6e3);border-radius:.6rem;font-size:.8rem;line-height:1.6}.statistics-import-guide summary{cursor:pointer;font-weight:650}.statistics-import-guide ol{list-style:decimal;padding-left:1.25rem;margin:.65rem 0}.statistics-import-guide li+li{margin-top:.4rem}.statistics-import-guide p{margin-top:.65rem}.statistics-import-guide a{color:var(--color-primary,#10847c);text-decoration:underline}.statistics-import-guide-links{display:flex;gap:.5rem 1rem;flex-wrap:wrap}
