/* Pagina de atividades (usa a base do app.css) */
textarea { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .6rem; width: 100%; resize: vertical; }
.filters label.grow { max-width: none; flex: 2 1 220px; }
.filter-actions { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.load-error { margin: 0; padding: .7rem 1rem; border-radius: 8px; background: rgb(214 69 69 / .1); color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.lead-fixed { margin: 0; font-weight: 600; }
.lead-fixed small { font-weight: 400; }

.act-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.side { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 1000px) { .act-layout { grid-template-columns: 1fr; } }

/* lista agrupada por dia */
.act-list { display: flex; flex-direction: column; }
.act-group { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: .9rem 0 .35rem; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; }
.act-group:first-child { padding-top: 0; }
.act-group.late { color: var(--bad); }
.act-group.today { color: var(--accent); }
.act { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: .2rem .8rem; padding: .65rem .3rem;
  border-bottom: 1px solid var(--line); cursor: pointer; border-left: 3px solid transparent; }
.act:hover { background: var(--bar-bg); }
.act.late { border-left-color: var(--bad); }
.act.done .act-title { text-decoration: line-through; color: var(--muted); }
.act-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; padding-left: .3rem; }
.act-time small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.act-main { min-width: 0; }
.act-title { font-weight: 600; }
.act-desc { color: var(--muted); font-size: .84rem; margin-top: .1rem; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.act-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .8rem; color: var(--muted); margin-top: .3rem; align-items: center; }
.act-meta b { color: var(--fg); font-weight: 500; }
.act-side { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.act-side .btn { white-space: nowrap; text-decoration: none; }
.type-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .5rem; border-radius: 999px; font-size: .74rem;
  background: var(--bar-bg); color: var(--fg); }
.type-pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pill.late { color: var(--bad); } .pill.open { color: var(--accent); }
.more { margin-top: .8rem; align-self: center; }

/* barras empilhadas por colaborador */
.stack { display: flex; height: 14px; border-radius: 6px; overflow: hidden; background: var(--bar-bg); }
.stack span { display: block; height: 100%; }
.stack .o { background: var(--teal); } .stack .l { background: var(--bad); opacity: .85; } .stack .d { background: var(--ok); opacity: .45; }
.bar-row.sel { background: var(--bar-bg); font-weight: 600; }
.dot.open { background: var(--teal); }
.dot.ok { opacity: .45; }

@media (max-width: 640px) {
  .act { grid-template-columns: 52px minmax(0, 1fr); }
  .act-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .filter-actions { margin-left: 0; flex-basis: 100%; }
  .filter-actions #btn-new { flex: 1; }
  .two { grid-template-columns: 1fr 1fr; }
}
