/* Gestão de Tarefas e Calendário */

/* ---------------------------------------------------------- termômetro
   Nota grande à esquerda, o porquê à direita. A nota sozinha viraria
   enfeite; a composição é o que diz onde mexer. */
.termo-corpo { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }

.termo-nota {
  flex-shrink: 0; width: 132px; height: 132px; border-radius: 50%;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  border: 5px solid; padding-top: 34px;
}
.termo-nota .n { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; }
.termo-nota .de { font-size: 14px; opacity: .6; font-weight: 600; }
.termo-verde { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.termo-amarelo { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }
.termo-vermelho { border-color: var(--red); color: var(--red); background: var(--red-bg); }

.termo-lado { flex: 1; min-width: 300px; }
.termo-recado { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.termo-barras { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.termo-topo { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.termo-pts { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.termo-trilho { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.termo-preenchido { height: 100%; background: var(--brand); border-radius: 3px; }
.termo-detalhe { font-size: 11px; color: var(--text-faint); margin-top: 5px; }

/* --------------------------------------------------------- indicadores */
.ind-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.ind-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.ind-card.alerta { border-color: var(--red); }
.ind-rotulo { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.ind-valor { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.8px; }
.ind-card.alerta .ind-valor { color: var(--red); }
.ind-obs { font-size: 11.5px; color: var(--text-faint); }

/* ------------------------------------------------------------ fila
   Lida de cima para baixo: a marca colorida dá o estado, o cliente dá o
   contexto, e a ação fica sempre no mesmo lugar à direita. */
.fila-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--border-soft);
}
.fila-item:last-child { border-bottom: none; }
/* A linha inteira abre a oportunidade — o aviso disso é o cursor e o
   realce, senão a pessoa não descobre que dá para clicar. */
.fila-item.clicavel { cursor: pointer; border-radius: 8px; }
.fila-item.clicavel:hover { background: var(--surface-2); }
.fila-marca { flex-shrink: 0; width: 4px; align-self: stretch; border-radius: 2px; min-height: 42px; }
.fila-meio { flex: 1; min-width: 0; }
.fila-linha1 { display: flex; align-items: center; gap: 8px; }
.fila-cliente {
  font-size: 13.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fila-tipo {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-muted); background: var(--surface-3);
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.fila-empurrao { font-size: 11px; color: var(--orange); font-weight: 700; flex-shrink: 0; }
.fila-titulo { font-size: 12.5px; color: var(--text-muted); margin: 3px 0; }
.fila-linha3 { display: flex; gap: 6px; font-size: 11.5px; color: var(--text-faint); flex-wrap: wrap; }
.fila-acoes { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.btn-mini { padding: 6px 12px; font-size: 12px; }

.cel-alerta { color: var(--red); font-weight: 700; }
.vazio { padding: 26px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ------------------------------------------------------- calendário */
.google-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-cab {
  text-align: center; font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; padding-bottom: 6px; font-weight: 700;
}
.cal-dia {
  aspect-ratio: 1.35; border: 1px solid var(--border-soft); border-radius: 7px;
  padding: 6px; display: flex; flex-direction: column; justify-content: space-between;
}
.cal-dia.vazio { border: none; }
.cal-dia.cheio { background: var(--surface-2); }
.cal-dia.hoje { border-color: var(--brand); border-width: 2px; }
.cal-num { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cal-dia.hoje .cal-num { color: var(--brand); font-weight: 800; }
.cal-pontos { display: flex; gap: 3px; }
.cal-ponto { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cal-ponto.tarefa { background: var(--brand); }
.cal-ponto.reuniao { background: var(--green); }
.cal-ponto.atrasada { background: var(--red); }
.cal-legenda {
  display: flex; gap: 16px; margin-top: 14px;
  font-size: 11.5px; color: var(--text-faint);
}
.cal-legenda span { display: flex; align-items: center; gap: 5px; }

.agenda-dia {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: capitalize; padding: 14px 0 6px;
  border-bottom: 1px solid var(--border-soft); margin-bottom: 4px;
}
.agenda-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 4px; border-bottom: 1px solid var(--border-soft);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-hora {
  flex-shrink: 0; width: 48px; font-size: 11.5px;
  color: var(--text-faint); font-variant-numeric: tabular-nums;
}
.agenda-marca { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.agenda-marca.tarefa { background: var(--brand); }
.agenda-marca.reuniao { background: var(--green); }
.agenda-marca.atrasada { background: var(--red); }
.agenda-texto { flex: 1; min-width: 0; }
.agenda-titulo {
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agenda-cliente { font-size: 11.5px; color: var(--text-muted); }
.agenda-item.atrasada .agenda-titulo { color: var(--red); }
.agenda-tag {
  flex-shrink: 0; font-size: 10.5px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .4px;
}


/* ---- volume esperado vs realizado ---- */
.vol-corpo { display: flex; align-items: center; gap: 22px; }
.vol-hoje { text-align: center; flex-shrink: 0; }
.vol-num { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.vol-num span { font-size: 17px; color: var(--text-faint); font-weight: 600; }
.vol-rot { font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
           color: var(--text-faint); margin-top: 5px; }
.vol-lado { flex: 1; min-width: 0; }
.vol-titulo { font-size: 14px; font-weight: 600; }
.vol-barra { height: 6px; background: var(--surface-3); border-radius: 3px;
             margin: 9px 0 7px; overflow: hidden; }
.vol-barra i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.vol-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.fila-cliente.clicavel { cursor: pointer; }
.fila-cliente.clicavel:hover { color: var(--brand); text-decoration: underline; }
