@font-face{font-family:PTSans;src:url(pt-roistat-regular.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:PTSans;src:url(pt-roistat-bold.woff) format("woff");font-weight:700;font-display:swap}
@font-face{font-family:ReportIcons;src:url(roistat-icons.woff2) format("woff2");font-display:block}
.report-icon{display:inline-block;font:normal 1em/1 ReportIcons}
:root{color-scheme:light;--bg:#f1f2f3;--ink:#1b2a30;--muted:#8a9599;--line:#e3e6e7;--blue:#1574bc;--chart:#f6f7f8;--source-width:300px;font:15px/1.35 PTSans,"Arial",sans-serif;color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
body.has-table-scroll{padding-bottom:15px}
main{flex:1}
h1,h2,p{margin:0}
a{color:var(--blue)}
button,input,select,summary{font:inherit;color:inherit}
button,input,select{border:1px solid #d8dddf;border-radius:3px;background:#fff;padding:5px 8px}
button,select,summary{cursor:pointer}
button:hover{background:#eef6fc}
button:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #2784dc;outline-offset:1px}
button{white-space:nowrap}
[hidden]{display:none!important}
.top{height:40px;background:#1d212c;display:flex;align-items:center;gap:13px;padding-left:5px;color:#fff}
.brand{display:flex;align-items:center;height:40px}
.brand img{display:block}
.hero{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;padding:6px 20px;border-bottom:1px solid #f4f4f4}
h1{position:relative;min-width:0;font:400 18px/24px PTSans,sans-serif;color:#495559;background:rgb(239 246 255 / .5);padding:6px 10px;border-radius:4px;overflow-wrap:anywhere}
.controls{min-height:50px;display:flex;align-items:stretch;padding-left:20px;background:#fff;border-bottom:1px solid #d4d9db;position:relative;z-index:4;color:#1b2a30;font-size:13px}
.period-arrow{width:43px;min-height:48px;border:solid #edf0f1;border-width:0 1px;border-radius:0;font-size:21px;line-height:1}
.popover{position:relative}
summary{list-style:none}
summary::-webkit-details-marker{display:none}
.demo-menu summary{width:28px;height:28px;border-radius:3px;background:#3d4450;display:grid;place-items:center}
.demo-menu .report-icon{font-size:14px}
.demo-menu summary:hover{background:#50596a}
.demo-menu .fly{min-width:190px;padding:5px;display:grid;gap:2px}
.demo-menu button{background:white;text-align:left;border:0;padding:8px 10px}
.demo-menu button:hover{background:#eaf4fb}
.demo-menu button[aria-pressed=true]{color:#0667ae;font-weight:700}
#dates summary{height:48px;display:flex;align-items:center;gap:8px;padding:0 13px;white-space:nowrap}
#dates summary:hover,#dates[open] summary{background:#f2f5f6}
#dates summary::after{content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);margin:-3px 3px 0 2px}
.calendar-icon{color:#9ca6a9;font-size:16px}
.presets,.toolbar,.check,.chart-head,.metrics-head,.section-head,.dialog-actions,.date-actions,.date-fields{display:flex;align-items:center}
.presets button,.toolbar button{border:0;background:transparent;color:var(--blue);height:46px;padding:0 12px}
.presets button:hover,.presets button[aria-pressed=true],.toolbar button:hover{background:#eaf4fb}
.check{gap:7px;margin-left:17px;white-space:nowrap}
.check input{accent-color:#1b89db;width:16px;height:16px;margin:0}
.toolbar{margin-left:auto;padding:0 2px}
.toolbar button{width:38px;padding:0;display:grid;place-items:center;color:rgb(27 42 48 / .4);font-size:15px}
.toolbar #refresh{color:#adb3b6}
.toolbar button[aria-pressed=true]{color:#70c316}
.fly{position:absolute;top:100%;left:0;z-index:8;background:white;color:var(--ink);border:1px solid #e1e5e7;border-radius:2px;box-shadow:0 9px 20px #23323d47}
.top .fly{z-index:10}
.dates{width:min(768px,calc(100vw - 75px));padding:19px 14px}
.calendar-slider{height:29px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:0 6px;border:1px solid #dce0e2;background:repeating-linear-gradient(to right,#eff0f1 0,#eff0f1 calc(8.33% - 1px),#cbd2d6 calc(8.33% - 1px),#cbd2d6 8.33%)}
.calendar-slider span{pointer-events:none;position:relative;z-index:1}
.calendar-slider input{position:absolute;inset:0;width:100%;height:100%;margin:0;accent-color:#9dc9ea;background:transparent;opacity:.65;cursor:ew-resize}
.calendars-wrap{display:grid;grid-template-columns:22px minmax(0,1fr) 22px;align-items:start;padding-top:11px}
.calendars-wrap>button{border:0;background:none;color:#0878b4;font-size:27px;line-height:1;padding:3px}
#calendars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:270px}
.month-name{text-align:center;color:#0878b4;font-weight:700;margin:7px 0 11px;text-transform:capitalize}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));row-gap:2px;grid-auto-rows:28px;align-items:stretch;text-align:center}
.month-grid .weekday{align-self:center;color:#8a9398}
.month-grid button{border:1px solid transparent;border-radius:0;padding:0;font-size:13px}
.month-grid button:nth-child(7n),.month-grid button:nth-child(7n - 1){color:#87949a}
.month-grid button.in-range{background:#cde8f7}
.month-grid button.edge{background:#bedff4;border-color:#5598dc;border-radius:3px}
.month-grid button:hover{border-color:#5598dc}
.date-actions{justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 12px 0}
.calendar-presets{display:flex;flex-wrap:wrap}
.calendar-presets button{padding:4px 7px;color:var(--blue);margin-left:-1px}
.date-fields{gap:8px}
.date-fields input{min-width:106px;padding:4px;color:#1b2a30}
.error{font-size:13px;color:#a52727;margin-top:5px}
.error:empty{display:none}
.accent{background:#2286ed;border-color:#2286ed;color:white;padding-inline:14px}
.accent:hover{background:#1675d6}
.trends{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:20px;padding-right:20px;background:var(--chart);height:400px}
.trends.metrics-closed{grid-template-columns:minmax(0,1fr) 32px;gap:6px}
.chart-main{min-width:0}
.chart-head{height:38px;justify-content:space-between;margin:0 20px;gap:6px;color:var(--blue);font-size:13px}
.chart-head a{display:inline-flex;align-items:center;gap:4px;color:#0069e5;font:400 14px/24px PTSans,sans-serif;text-decoration:none;white-space:nowrap}
.chart-head select{border:0;background:transparent;padding:0;color:var(--blue);max-width:65%}
.chart{position:relative;height:330px}
.chart-warning{position:absolute;z-index:1;top:7px;left:29px;color:#ffc93b;font-size:15px;line-height:15px;cursor:help}
canvas{width:100%;height:100%;display:block}
.legend{height:32px;display:flex;gap:5px;align-items:flex-start;padding:3px 20px 0 60px;overflow:hidden}
.legend button,.metric-tag{font-size:13px;line-height:18px;padding:0 6px;max-width:195px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px}
.legend button,.metric-tag[aria-pressed=true]{background:var(--metric);border-color:var(--metric);color:white}
.legend button:hover,.metric-tag:hover{filter:brightness(.93)}
#metrics{min-width:0;padding-top:9px;font-size:13px}
.metrics-head{height:30px;color:#849095;justify-content:space-between;white-space:nowrap}
.metrics-head button{border:0;background:transparent;font-size:19px;padding:0 7px;color:#566569}
.metrics-closed .metrics-head span{display:none}
#metric-search{display:block;width:100%;height:28px;font-size:13px}
#metric-search::placeholder{color:#9da5a9}
#metric-list{height:318px;overflow:auto;overflow-x:hidden;padding-top:7px;scrollbar-width:thin}
.metric-tag{display:block;max-width:calc(100% - 3px);margin-bottom:4px;background:#f4f6f7;color:#7e8a8f;border:1px solid #d2d7da}
#tooltip{position:absolute;z-index:2;pointer-events:none;padding:9px 11px;background:#fffe;border:1px solid #bdc7cc;border-radius:3px;color:var(--ink);font-size:13px;max-width:85%;box-shadow:0 3px 8px #0002}
#tooltip div{margin-top:3px}
.report{position:relative}
#table-note{padding:8px 20px;font-size:13px;color:#566569}
.inline-input{position:absolute;z-index:4;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);min-height:20px;background:white;border:1px solid #2784dc;padding:0 4px;font:inherit;line-height:normal;text-align:inherit}
.inline-input:focus-visible{outline:0}
.inline-input[aria-invalid=true]{border-color:#aa3434}
h1>.inline-input{padding-inline:7px}
.source-search{position:absolute;top:36px;left:15px;z-index:5;background:white;padding:5px;border:1px solid var(--line);box-shadow:0 3px 10px #0002}
.source-menu{position:fixed;z-index:9;display:grid;min-width:160px;gap:2px;padding:4px;background:white;border:1px solid var(--line);border-radius:4px;box-shadow:0 3px 10px #0002}
.source-menu button{border:0;text-align:left;font-size:13px}
#table-wrap{overflow:auto;max-height:55vh}
#table-wrap::-webkit-scrollbar{width:12px;height:0}
#table-wrap::-webkit-scrollbar-thumb{background:#96999b;border:3px solid #f0f0f0;border-radius:8px}
#bottom-scroll{position:fixed;z-index:7;bottom:0;left:0;right:0;height:15px;overflow-x:scroll;overflow-y:hidden;background:#f1f1f1}
#bottom-scroll::-webkit-scrollbar{height:15px}
#bottom-scroll::-webkit-scrollbar-track{background:#f1f1f1}
#bottom-scroll::-webkit-scrollbar-thumb{background:#898989;border:3px solid #f1f1f1;border-radius:10px}
#scroll-track{height:1px;pointer-events:none}
table{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font:400 12px/14px PTSans,sans-serif}
th,td{border-bottom:1px solid #e2e5e6;padding:4px 7px;text-align:center;white-space:nowrap;min-width:90px}
th{position:sticky;top:0;background:#fff;z-index:2;height:41px;vertical-align:middle;max-width:112px;border-right:1px solid #edf0f1}
th button{font:600 13px/14px PTSans,sans-serif;border:0;padding:0;background:none;max-width:100%;white-space:normal;max-height:28px;overflow:hidden}
th:first-child,td:first-child{position:sticky;left:0;text-align:left;width:var(--source-width);min-width:var(--source-width);max-width:var(--source-width);box-shadow:1px 0 #d4d8da;padding-left:20px}
th:first-child{z-index:3}
td:first-child{z-index:1}
td{height:32px;background:white;position:relative}
.total td{background:#f8f4e4;font-weight:600;height:34px}
.total td:first-child{color:#8e9b9e;font-weight:400}
.scope-label td{background:#eff0f1;color:#869195;text-align:left;border-bottom:0;height:24px}
.group td{height:33px}
.source,.source-head{display:flex;align-items:center;gap:5px}
.source{overflow:hidden;text-overflow:ellipsis}
.source-name{position:relative;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-name:has(.inline-input){flex:1;min-height:22px}
.source-name>.inline-input{inset:0;width:100%;height:100%}
.source-head{justify-content:space-between}
.source-head .search-toggle{display:grid;place-items:center;width:12px;height:14px;flex:0 0 12px;color:#767f83;font-size:12px;line-height:12px;padding:0;margin-right:1px}
.opener{background:none;border:0;color:#0878b4;padding:0;min-width:11px;font-size:14px;line-height:16px;font-weight:700}
.vk-icon{display:block;width:16px;height:16px;flex:0 0 16px}
.data-value{position:relative;border-bottom:1px solid #b5cba3}
.bar-cell{height:20px;line-height:20px;position:relative;display:block;min-width:90px;padding-right:4px;text-align:right;border-radius:2px;background:linear-gradient(to right,#c1e1f4 var(--share),#f8fafb var(--share))}
.bar-cell small{float:left;font-size:10px;color:#7994a1;padding-left:4px}
footer{background:#e7e8e9;color:#8d999d;padding:5px 20px;font-size:11px;margin-top:20px}
footer a{color:inherit}
footer span{padding-left:5px}
.help{position:fixed;right:52px;bottom:35px;z-index:5;width:64px;height:64px;border:0;border-radius:50%;display:grid;place-items:center;padding:0;background:#a1caf3;box-shadow:none}
.help:hover{background:#8dbff0}
.chat{position:fixed;right:52px;bottom:106px;z-index:6;width:min(340px,calc(100vw - 30px));padding:16px;background:white;border:1px solid #dce2e5;border-radius:10px;box-shadow:0 9px 24px #0002}
.chat p{margin:8px 0}
.section-head{justify-content:space-between}
h2{font-size:18px}
dialog{border:1px solid #dce2e5;border-radius:5px;padding:22px;width:min(520px,calc(100% - 28px));color:var(--ink);box-shadow:0 14px 50px #0004}
dialog::backdrop{background:#17273355}
dialog p{margin:8px 0 12px;color:#566569}
dialog input:not([type=checkbox]){width:100%}
.dialog-actions{justify-content:flex-end;gap:8px;margin-top:12px}
#column-list{overflow:auto;max-height:min(52vh,460px);margin-top:9px}
.source-actions,.source-list-row{display:flex;align-items:center;gap:8px}
.source-actions{margin-top:4px}
#source-form{margin-top:12px}
#source-list{max-height:min(40vh,320px);overflow:auto;margin-top:12px}
.source-list-row{justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line)}
.source-list-row span{min-width:0;overflow-wrap:anywhere}
.column-item{display:flex;gap:8px;align-items:center;margin:5px 0}
.column-item input[type=text]{flex:1;min-width:0}
.status{position:fixed;z-index:7;left:50%;bottom:18px;transform:translateX(-50%);border-radius:4px;background:#235071;color:white;padding:8px 14px;font-size:13px}
.report-hint{position:fixed;z-index:12;pointer-events:none;width:max-content;max-width:min(320px,calc(100vw - 16px));padding:8px 10px;border:1px solid #cbd3d7;border-radius:3px;background:#fff;color:var(--ink);font:400 13px/18px PTSans,sans-serif;box-shadow:0 3px 9px #20354126}
.report-hint strong{display:block;font-weight:700;margin-bottom:2px}
.report-hint .hint-formula{margin-top:4px;color:#225a7e}
.report-hint .hint-detail{margin-top:4px;color:#526369}
@media(max-width:830px){:root{--source-width:190px}.controls{padding-left:0;flex-wrap:wrap}.check{margin:0 8px;min-height:38px}.presets button{padding:0 6px}.trends{grid-template-columns:minmax(0,1fr) 145px;gap:8px;padding-right:8px}.chart-head{margin:0 8px}.dates{left:calc(-1 * 43px);width:calc(100vw - 8px)}.legend{padding-left:42px}.help,.chat{right:18px}}
@media(max-width:530px){:root{--source-width:150px}.chart-head a{font-size:11px}.trends{grid-template-columns:minmax(0,1fr) 110px}.metrics-head{font-size:11px}.legend button{max-width:89px}.presets{order:1;flex:1;flex-wrap:wrap}.controls .toolbar{order:2}.check{order:3}.dates{padding:10px 2px}.calendars-wrap{grid-template-columns:17px minmax(0,1fr) 17px}.month-grid{grid-auto-rows:22px}#calendars{gap:5px;min-height:210px}.month-grid button{font-size:11px}.help{width:48px;height:48px}}
@media(max-width:380px){
  .hero{padding-inline:8px;align-items:flex-start;flex-direction:column}
  .controls{display:grid;grid-template-columns:32px minmax(0,1fr) 32px}
  .period-arrow{width:32px}
  #dates summary{justify-content:center;padding:0 4px}
  .dates{left:-30px;width:calc(100vw - 6px)}
  .presets{grid-column:1/-1;justify-content:center}
  .presets button,.toolbar button{height:33px}
  .check{grid-column:1/3;grid-row:3;order:0;font-size:12px;margin-right:0;min-height:33px}
  .controls .toolbar{grid-column:3;grid-row:3;width:83px;margin-left:-51px}
  .toolbar button{width:27px}
  .trends{height:345px}
  .chart{height:275px}
  .chart-head a .chart-help-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .chart-head select{max-width:86%;font-size:11px}
  #metric-list{height:260px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
