/* Qlareza · Minha produtividade: período, barras e cartões.
   A altura de cada barra chega por --h; o número de barras, por --n. */

.ind-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }
.ind-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 260px; }
.ind-nav { display: flex; align-items: center; gap: var(--space-2); }
.ind-nav h2 { min-width: 14ch; margin: 0; font-size: var(--text-lg); text-align: center; }
.ind-nav button { min-width: 40px; min-height: 40px; padding: 0; }
.ind-nav button:disabled { opacity: .4; cursor: default; }
.ind-empty { margin: var(--space-4) 0; padding: var(--space-6) var(--space-4); border: 1px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.ind-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ind-note { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-xs); }

.ind-chart { margin: var(--space-4) 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.ind-chart ol { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: var(--space-2); align-items: end; height: 180px; margin: 0; padding: 0; list-style: none; }
.ind-chart li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: var(--space-1); height: 100%; }
.ind-chart li b { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.ind-chart li small { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.ind-bar { align-self: end; width: 100%; max-width: 40px; height: var(--h, 0%); min-height: 2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--line-strong); }
.ind-chart li.now .ind-bar { background: var(--accent-text); }
.ind-chart li.now small { color: var(--text); font-weight: var(--weight-semibold); }

.ind-chart.dense ol { gap: 2px; }
.ind-chart.dense li b { font-size: var(--text-xs); }

/* Texto só para leitor de tela: o gráfico em palavras. */
.ind-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px) {
  .ind-chart ol { gap: var(--space-1); height: 150px; }
  .ind-chart li small { font-size: var(--text-xs); }
  .ind-chart.dense ol { gap: 1px; }
  .ind-chart.dense li b { display: none; }
  .ind-pick { flex-direction: column; align-items: stretch; }
  .ind-nav { justify-content: space-between; }
}
