/* DOVYR HEALTH · Análise
   Barras em grafite; período anterior como traço; grupos com poucos dias listrados. */
.an-range { margin: -14px 0 22px; font-size: 13px; color: var(--ink-3); }
.an-range b { color: var(--ink-2); font-weight: 550; }
.an-cov { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.an-cov > div { padding: 16px 12px 14px 16px; border-left: 1px solid var(--rule); min-width: 0; }
.an-cov > div:first-child { border-left: 0; padding-left: 0; }
.an-cov dt { font-size: 12px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-cov dd { margin: 8px 0 0; font: 600 20px/1 var(--display); letter-spacing: -.02em; }
.an-cov dd small { font: 500 12px var(--font); color: var(--ink-4); letter-spacing: 0; }
.an-cov p { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-4); }

.an-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.an-sum.three { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.an-sum > div { padding: 20px 16px 18px 22px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.an-sum.three > div { border-bottom: 0; }
.an-sum > div:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.an-sum.three > div:nth-child(4n + 1) { border-left: 1px solid var(--rule); padding-left: 22px; }
.an-sum.three > div:first-child { border-left: 0; padding-left: 0; }
.an-sum dt { font-size: 13px; color: var(--ink-3); }
.an-sum dd { margin: 10px 0 0; font: 600 28px/1 var(--display); letter-spacing: -.025em; white-space: nowrap; }
.an-sum p { margin: 9px 0 0; font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.an-d { color: var(--ink-2); font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }

.an-hl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: hl; }
.an-hl li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule-2); counter-increment: hl; }
.an-hl li::before { content: counter(hl, decimal-leading-zero); font: 600 13px var(--display); color: var(--acid-text); font-variant-numeric: tabular-nums; }
.an-hl p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.an-hl p b { color: var(--ink); font-weight: 600; }
.an-hl p small { color: var(--ink-4); font-size: 12.5px; white-space: nowrap; }
.an-hl .link { font-size: 12.5px; white-space: nowrap; }

.an-sec { margin: 64px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.an-block { margin-top: 30px; }
.an-block + .an-block { padding-top: 30px; border-top: 1px solid var(--rule-2); }
.an-t { margin: 0; font: 500 16px/1.3 var(--font); letter-spacing: -.01em; }
.an-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: -4px 0 18px; border-bottom: 1px solid var(--rule-2); }
.an-tabs button { position: relative; padding: 6px 0 10px; font-size: 13px; color: var(--ink-4); font-weight: 500; transition: color .2s; }
.an-tabs button:hover { color: var(--ink-2); }
.an-tabs button[aria-selected="true"] { color: var(--ink); }
.an-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: var(--acid); }
html[data-theme="light"] .an-tabs button[aria-selected="true"]::after { background: var(--acid-text); }
.an-cell { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 3px; }
.an-cell small { flex-basis: 100%; font-size: 11.5px; }
.an-wn { display: block; font-size: 11.5px; margin-top: 2px; }
.an-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
.ch-svg .an-b { fill: var(--ink-3); transition: fill .2s; }
.ch-svg .an-b.few { fill: var(--rule); stroke: var(--line-strong); stroke-dasharray: 3 3; }
.ch-svg .an-prev { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .7; }
.ch-svg .an-hit { fill: transparent; }
.ch-svg .an-hit:hover { fill: var(--hover); }
.ch-svg .an-gl { fill: var(--ink-2); font-size: 11.5px; }
.ch-svg .an-gn { font-size: 10.5px; }
.lg-bar.an-lg { background: var(--ink-3); }
.lg-bar.an-lg.few { background: var(--rule); box-shadow: inset 0 0 0 1px var(--line-strong); }
.an-lg-prev { width: 16px; height: 2px; border-radius: 1px; background: var(--ink); opacity: .7; }
.an-tbl td, .an-tbl th { padding-top: 9px; padding-bottom: 9px; }
.an-tbl tr.few td { color: var(--ink-4); }
.an-tbl small { font-size: 11px; }
.an-tbl.wide { max-width: 980px; }
.an-c { display: inline-block; width: 90px; height: 5px; margin-right: 10px; border-radius: 3px; background: var(--rule-2); box-shadow: inset 0 0 0 1px var(--rule); vertical-align: middle; overflow: hidden; }
.an-c i { display: block; height: 100%; background: var(--ink-3); }
.an-wk td b { font-weight: 500; font-size: 13px; }
.an-how { margin-top: 12px; }
.an-how summary { cursor: pointer; font-size: 12.5px; color: var(--ink-3); width: max-content; list-style: none; }
.an-how summary::-webkit-details-marker { display: none; }
.an-how summary::before { content: "+"; display: inline-block; width: 14px; color: var(--ink-4); }
.an-how[open] summary::before { content: "−"; }
.an-how summary:hover { color: var(--ink); }
.an-how p { margin: 8px 0 0; max-width: 780px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.an-foot { margin-top: 48px; max-width: 780px; }

@media (max-width: 1260px) {
  .an-cov { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-cov > div { border-bottom: 1px solid var(--rule); }
  .an-cov > div:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
  .an-cov > div:nth-last-child(-n + 3) { border-bottom: 0; }
  .an-row { grid-template-columns: 1fr; gap: 14px; }
  .an-block .sec-h { flex-wrap: wrap; }
}

/* ================= 0.19 · Análise em painéis =================
   Período atual em azul-aço, período anterior em areia. Grupos com poucos dias tracejados. */
.an2-cov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; border: 0; }
.an2-cov > div { display: flex; align-items: center; gap: 12px; padding: 0 !important; border: 0 !important; }
.an2-cov > div > span:last-child { min-width: 0; }
.an2-cov dd { margin-top: 4px; }
.an2-cm { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 5px solid var(--rule-2); font: 600 13px var(--display); color: var(--ink-2); }
html[data-theme="light"] .an2-cm { border-color: rgba(20, 24, 30, .08); }
.an2-hl { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.an2-hl li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--panel-line); border-radius: 14px; background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
html[data-theme="light"] .an2-hl li { background: #fbfcfc; }
.an2-hl li::before { font-size: 12px; }
.an2-hl p { font-size: 13.5px; }
.an2-hl .link { margin-top: auto; }
.an2-hv { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.an2-hv .pn-tag { margin-bottom: 2px; }
.an2-hr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 46px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); }
.an2-hr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an2-hr i { height: 8px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
html[data-theme="light"] .an2-hr i { background: rgba(20, 24, 30, .06); }
.an2-hr i b { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.an2-hr i b.soft { opacity: .45; }
.an2-hr em { font-style: normal; font: 600 13px var(--display); color: var(--ink); text-align: right; }
.an2-lg { margin: 0; flex: none; }
.an2-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 0; }
.an2-sum > div { border-bottom: 0; border-left: 1px solid var(--panel-line); padding: 6px 16px 14px 18px; }
.an2-sum > div:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.an2-sum > div:nth-child(n + 5) { border-top: 1px solid var(--panel-line); padding-top: 16px; }
.an2-sum dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 26px; }
.an2-sp { flex: none; }
.an2-pb { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; }
.an2-pb i { height: 5px; border-radius: 3px; background: var(--rule-2); overflow: hidden; }
html[data-theme="light"] .an2-pb i { background: rgba(20, 24, 30, .06); }
.an2-pb b { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.an2-sec { margin: 34px 0 14px; padding-top: 0; border-top: 0; font-size: 19px; }
.pn.an-block { margin-top: 0; }
.pn.an-block + .pn.an-block { padding-top: 20px; border-top: 1px solid var(--panel-line); margin-top: 16px; }
.pn.an-block .an-t { font: 600 15px/1.3 var(--font); }
.an-tabs { border-bottom-color: var(--panel-line); }
.an-tabs button[aria-selected="true"]::after { background: var(--acid-fill); }
html[data-theme="light"] .an-tabs button[aria-selected="true"]::after { background: var(--acid-fill); }
.ch-svg .an-b { fill: var(--tone-a); }
.ch-svg .an-b.few { fill: var(--tone-a-wash); stroke: var(--tone-a); stroke-dasharray: 3 3; }
.ch-svg .an-prev { stroke: var(--tone-b); stroke-width: 3; opacity: 1; }
.ch-svg .an2-bv { fill: var(--ink-2); font-weight: 600; }
.lg-bar.an-lg { background: var(--tone-a); }
.lg-bar.an-lg.few { background: var(--tone-a-wash); box-shadow: inset 0 0 0 1px var(--tone-a); }
.an-lg-prev { height: 3px; background: var(--tone-b); opacity: 1; }
.an-c { box-shadow: none; }
.an-c i { background: var(--tone-a); }
.pn .an-tbl th, .pn .an-tbl td { border-color: var(--panel-line); }
.an2-dzh { text-align: center; letter-spacing: .1em; width: 140px; }
.an2-dz { position: relative; display: block; width: 120px; height: 8px; margin: 0 auto; border-radius: 4px; background: var(--rule-2); }
.an2-dz::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1.5px solid var(--ink-4); }
.an2-dz i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--tone-a); }
.an2-three { border: 0 !important; margin-bottom: 14px; }
.an2-three > div { display: flex; align-items: center; gap: 14px; padding: 4px 18px 8px !important; border-left: 1px solid var(--panel-line) !important; }
.an2-three > div:first-child { border-left: 0 !important; padding-left: 0 !important; }
.an2-three > div > span { min-width: 0; }
.ch-svg .an2-wl { stroke-width: 2.2; }
.ch-svg .an2-l0 { stroke: var(--acid-fill); } .ch-svg circle.an2-l0 { fill: var(--acid-fill); stroke: none; }
.ch-svg .an2-l1 { stroke: var(--tone-a); } .ch-svg circle.an2-l1 { fill: var(--tone-a); stroke: none; }
.ch-svg .an2-l2 { stroke: var(--tone-b); } .ch-svg circle.an2-l2 { fill: var(--tone-b); stroke: none; }
.lg-ln.an2-l0 { background: var(--acid-fill); } .lg-ln.an2-l1 { background: var(--tone-a); } .lg-ln.an2-l2 { background: var(--tone-b); }
.pn [data-chart=wk] { margin-bottom: 4px; }
.pn .an-wk { margin-top: 16px; }
@media (max-width: 1260px) {
  .an2-hl { grid-template-columns: 1fr; }
  .an2-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an2-sum > div:nth-child(4n + 1) { border-left: 1px solid var(--panel-line); padding-left: 18px; }
  .an2-sum > div:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .an2-sum > div:nth-child(n + 3) { border-top: 1px solid var(--panel-line); padding-top: 16px; }
  .an2-three > div { padding-left: 12px !important; }
}
@media (max-width: 900px) { .an2-cov { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
