/* AQQ · Indicadores. Referência unslop: Damir Sokolovsky, CC BY 4.0. */
html:root .indicators-page{font-variant-numeric:tabular-nums}
html:root .indicators-page .page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}
html:root .indicators-page h1{font-size:28px;font-weight:500;margin:0 0 8px}
html:root .indicators-page h2{font-size:16px;font-weight:500;margin:0}
html:root .indicators-page .page-heading p{color:var(--muted);margin:0;font-size:14px}
html:root .indicator-filters{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(184px,1.1fr) minmax(100px,.6fr) minmax(184px,1.2fr) auto;gap:16px;padding:20px;align-items:end}
html:root .indicator-filters .field{margin:0;min-width:0}
html:root .indicator-filters select{width:100%;min-width:0;height:40px}
html:root .indicator-range{height:40px;width:100%;justify-content:space-between;white-space:nowrap}
html:root .indicator-filter-status{grid-column:1/-1;color:var(--muted);font-size:12px;margin:0}
html:root .indicator-filter-status:empty{display:none}
html:root .indicator-applied{font-size:13px;color:var(--muted);margin:20px 0 16px;display:flex;gap:8px;flex-wrap:wrap}
html:root .indicator-stats{display:grid;grid-template-columns:1.25fr .8fr .8fr 1.15fr;border:1px solid var(--line);background:#fff;border-radius:12px;margin-bottom:24px;padding:24px;gap:24px}
html:root .indicator-stat{min-width:0}
html:root .indicator-stat+.indicator-stat{border-left:1px solid var(--line);padding-left:24px}
html:root .indicator-stat>span,html:root .indicator-goal-summary span,html:root .indicator-reading span{display:block;font-size:13px;color:#525d62;margin-bottom:12px}
html:root .indicator-stat strong{display:block;font-size:clamp(22px,2.1vw,30px);font-weight:500;line-height:1.2;white-space:nowrap}
html:root .indicator-stat small,html:root .indicator-goal-summary small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:12px}
html:root .indicator-main-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(232px,1fr);gap:24px;align-items:start;margin-bottom:24px}
html:root .indicator-evolution{min-width:0}
html:root .indicator-evolution .card-heading{padding:24px 24px 16px;gap:16px;flex-wrap:wrap}
html:root .indicator-evolution .segmented-control button{font-size:12px;white-space:nowrap}
html:root .indicator-chart-content{padding:0 24px 20px}
html:root .indicator-legend{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:12px}
html:root .indicator-legend span{display:flex;align-items:center;gap:8px}
html:root .indicator-legend i{width:16px;height:3px;background:#4b5e91}
html:root .indicator-legend .secondary i{background:#83928b}
html:root .indicator-chart{position:relative;outline-offset:4px;min-width:0}
html:root .indicator-chart svg{display:block;width:100%;overflow:visible;touch-action:pan-y}
html:root .indicator-chart svg text{font-size:18px;fill:#637078;font-family:inherit}
html:root .indicator-gridline{stroke:#e9edef;stroke-width:1}
html:root .indicator-sales-line,html:root .indicator-secondary-line,html:root .indicator-goal-line{fill:none;stroke:#4b5e91;stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round}
html:root .indicator-secondary-line{stroke:#83928b;stroke-width:1.3}
html:root .indicator-goal-line{stroke:#83928b;stroke-dasharray:4 5;stroke-width:1.2}
html:root .indicator-sales-point{fill:#4b5e91}
html:root .indicator-goal-point{fill:#83928b}
html:root .indicator-hit{fill:transparent;cursor:crosshair}
html:root .indicator-guide{stroke:#a5afc5;stroke-dasharray:3 5;stroke-width:1;pointer-events:none}
html:root .indicator-active-point{fill:#4b5e91;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke;pointer-events:none}
html:root .indicator-tooltip{position:absolute;top:0;z-index:2;width:200px;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 4px 12px #0000000a;pointer-events:none;font-size:12px}
html:root .indicator-tooltip strong{display:block;font-size:12px;line-height:16px;font-weight:500}
html:root .indicator-tooltip dl{display:grid;gap:4px;margin:4px 0 0;line-height:16px}
html:root .indicator-tooltip dl>div{display:flex;justify-content:space-between;gap:12px}
html:root .indicator-tooltip dt{color:var(--muted)}
html:root .indicator-tooltip dd{margin:0;white-space:nowrap}
html:root .indicator-chart-empty{color:var(--muted);font-size:12px;margin:12px 0 0}
html:root .indicator-reading{padding:24px}
html:root .indicator-reading>div{padding-top:24px}
html:root .indicator-reading>div+div{margin-top:24px;border-top:1px solid var(--line)}
html:root .indicator-reading strong{display:block;font-size:28px;font-weight:500;margin-bottom:12px;color:#4b5e91}
html:root .indicator-reading small{display:block;font-size:12px;line-height:1.5;color:#525d62}
html:root .indicator-reading p{color:var(--muted);font-size:12px;line-height:1.5;margin:8px 0 0}
html:root .indicator-goal-summary{display:grid;grid-template-columns:1.1fr 1.1fr 1fr;gap:24px;padding:24px;margin-bottom:24px;border-left:3px solid #4b5e91}
html:root .indicator-goal-summary>div{min-width:0}
html:root .indicator-goal-summary>div+div{border-left:1px solid var(--line);padding-left:24px}
html:root .indicator-goal-summary strong{font-size:26px;font-weight:500;white-space:nowrap}
html:root .indicator-detail{margin-bottom:24px;min-width:0}
html:root .indicator-detail .table-scroll{max-height:520px;overflow:auto}
html:root .indicator-table{min-width:1140px;width:100%;font-size:13px}
html:root .indicator-table th,html:root .indicator-table td{text-align:right;padding:16px 20px;white-space:nowrap}
html:root .indicator-table th:first-child,html:root .indicator-table td:first-child{text-align:left;max-width:248px;white-space:normal;overflow-wrap:anywhere}
html:root .indicator-table th{font-size:12px;font-weight:500;color:#525d62}
html:root .indicator-table thead{position:sticky;top:0;background:#f8f9fa;z-index:1}
html:root .indicator-table small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
html:root .indicator-history-table thead{z-index:3}
html:root .indicator-history-table thead th{height:48px;padding-top:12px;padding-bottom:12px}
html:root .indicator-history-table .indicator-total>*{position:sticky;top:48px;z-index:2;background:#f3f5f8;border-bottom:1px solid var(--line);font-weight:500;color:var(--ink)}
html:root .indicator-error{padding:24px}
html:root .indicator-range-dialog{max-width:480px;width:calc(100% - 32px);padding:24px;border:1px solid var(--line);border-radius:12px;max-height:calc(100dvh - 32px);overflow:auto}
html:root .indicator-period-form fieldset{border:0;padding:0;margin:24px 0}
html:root .indicator-period-form legend{font-size:14px;font-weight:500;margin-bottom:12px}
html:root .indicator-month-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px}
html:root .indicator-period-form p{font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:1200px){html:root .indicator-filters{grid-template-columns:1fr 1fr 1fr}html:root .indicator-filters>.field:nth-of-type(4){grid-column:span 2}html:root .indicator-stats{grid-template-columns:1fr 1fr}html:root .indicator-stat:nth-child(3){border-left:0;padding-left:0}html:root .indicator-main-grid{grid-template-columns:minmax(0,2.6fr) minmax(220px,1fr)}}
@media(max-width:900px){html:root .indicator-main-grid{grid-template-columns:1fr}html:root .indicator-reading{display:grid;grid-template-columns:1fr 1fr;gap:24px}html:root .indicator-reading h2{grid-column:1/-1}html:root .indicator-reading>div{padding:0}html:root .indicator-reading>div+div{margin:0;border-top:0;border-left:1px solid var(--line);padding-left:24px}html:root .indicator-goal-summary strong{font-size:22px}}
@media(max-width:600px){html:root .indicators-page .page-heading{align-items:flex-start;flex-direction:column;gap:16px}html:root .indicators-page h1{font-size:24px}html:root .indicator-filters{grid-template-columns:1fr;padding:16px;gap:16px}html:root .indicator-filters>.field:nth-of-type(4){grid-column:auto}html:root .indicator-stats{padding:20px;gap:24px 16px}html:root .indicator-stat+.indicator-stat{padding-left:16px}html:root .indicator-stat:nth-child(3){padding-left:0}html:root .indicator-stat strong{font-size:20px;white-space:normal;overflow-wrap:anywhere}html:root .indicator-stat small{font-size:12px}html:root .indicator-reading{grid-template-columns:1fr;padding:20px}html:root .indicator-reading>div+div{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}html:root .indicator-goal-summary{grid-template-columns:1fr;padding:20px;gap:20px}html:root .indicator-goal-summary>div+div{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}html:root .indicator-evolution .card-heading{padding:20px}html:root .indicator-chart-content{padding:0 12px 20px}html:root .indicator-chart{min-height:160px}html:root .indicator-chart svg{min-height:160px}html:root .indicator-chart svg text{font-size:32px}html:root .indicator-chart-empty{padding:0 8px}html:root .indicator-legend{padding:0 8px}html:root .indicator-table th,html:root .indicator-table td{padding:16px}html:root .indicator-month-fields select,html:root .indicator-month-fields input{font-size:16px}}

html:root .indicators-page .heading-actions{display:flex;gap:8px;flex-wrap:wrap}
html:root .indicator-axis-mobile{display:none}
@media(max-width:600px){html:root .indicator-axis-wide{display:none}html:root .indicator-axis-mobile{display:block}}
/* Valores inteiros no celular, inclusive totais de vários anos. */
@media(max-width:600px){
 html:root .indicator-stats{grid-template-columns:1fr;gap:20px}
 html:root .indicator-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
 html:root .indicator-stat>span{margin:0}
 html:root .indicator-stat+.indicator-stat{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}
 html:root .indicator-stat strong{font-size:20px;white-space:nowrap;overflow-wrap:normal}
 html:root .indicator-stat small{grid-column:1/-1;margin:0}
}

@media(min-width:601px) and (max-width:1200px){html:root .indicator-main-grid{grid-template-columns:1fr}html:root .indicator-reading{display:grid;grid-template-columns:1fr 1fr;gap:24px}html:root .indicator-reading h2{grid-column:1/-1}html:root .indicator-reading>div{padding:0}html:root .indicator-reading>div+div{margin:0;border-top:0;border-left:1px solid var(--line);padding-left:24px}html:root .indicator-chart svg text{font-size:22px}}

/* A comparação mensal é independente do comparativo do intervalo completo. */
html:root .indicator-interval-comparison{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
html:root .indicator-interval-comparison span{font-size:12px;margin:0}
html:root .indicator-interval-comparison b{font-size:12px;font-weight:500}
html:root .indicator-interval-comparison small{grid-column:1/-1;color:var(--muted)}
html:root .indicator-reading strong.indicator-rise,html:root .indicator-month-change .indicator-rise{color:#33745a}
html:root .indicator-reading strong.indicator-decline,html:root .indicator-month-change .indicator-decline{color:#9b4b43}
html:root .indicator-history-table:has(.indicator-month-change){min-width:1280px}
html:root .indicator-month-change{font-variant-numeric:tabular-nums}
html:root .indicator-reading strong{overflow-wrap:anywhere}

/* Descontos históricos: mesma escala visual AQQ / unslop, sem média de médias. */
html:root .indicator-discount-summary{margin-bottom:24px;min-width:0}
html:root .indicator-discount-summary .card-heading{padding:24px 24px 20px;gap:16px;flex-wrap:wrap}
html:root .indicator-discount-values{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;padding:0 24px 24px}
html:root .indicator-discount-values>div{min-width:0}
html:root .indicator-discount-values>div+div{border-left:1px solid var(--line);padding-left:24px}
html:root .indicator-discount-values span{display:block;font-size:13px;color:#525d62;margin-bottom:12px}
html:root .indicator-discount-values strong{display:block;font-size:26px;font-weight:500;overflow-wrap:anywhere}
html:root .indicator-discount-values small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:12px}
html:root .indicator-table{min-width:1472px}
html:root .indicator-history-table:has(.indicator-month-change){min-width:1616px}
@media(max-width:600px){
 html:root .indicator-discount-summary .card-heading{padding:20px}
 html:root .indicator-discount-values{grid-template-columns:1fr;padding:0 20px 20px;gap:20px}
 html:root .indicator-discount-values>div+div{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}
 html:root .indicator-discount-values strong{font-size:24px}
}
