/* Etapa 1 · Central de Trabalho · só apresentação (celular e computador).
   Carrega DEPOIS de etapa-a.css. Não altera regras nem dados. Para reverter: remover este <link> e js/central.js do index.html. */

/* nome da marca sem corte na barra lateral */
.lado .marca b { font-size: 13.5px; letter-spacing: .05em; white-space: nowrap; }
.lado .marca small { letter-spacing: .2em; }

/* ---------- tarefas por cliente ---------- */
.tc-filtros { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--card-gap, 18px); }
.tc-filtros button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 9px 16px; min-height: 40px; cursor: pointer; font: 400 14px var(--sans); }
.tc-filtros button.on { background: var(--dark); color: var(--ink-inv); border-color: var(--dark); }
.tc-filtros button em { font-style: normal; opacity: .7; margin-left: 6px; }
.tc-resumo { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--card-gap, 18px); }
.tc-resumo .tc-n { flex: 1 1 96px; background: var(--paper); border: 1px solid var(--line); padding: 10px 14px; }
.tc-resumo .tc-n strong { display: block; font: 400 26px/1.1 var(--serif); }
.tc-resumo .tc-n small { color: var(--ink-3); font-size: 12px; }
.tc-resumo .tc-n.bad strong { color: #9a2f2f; }

.tc-cli { border: 1px solid var(--line); background: var(--paper); margin: 0 0 var(--card-gap, 18px); }
.tc-cli > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line-2); }
.tc-cli h3 { margin: 0; font: 400 22px/1.15 var(--serif); }
.tc-cli h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.tc-cli h3 a:hover { border-bottom-color: var(--gold); }
.tc-cli .tc-meta { color: var(--ink-3); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.tc-cli .tc-meta b { color: var(--ink-2); font-weight: 500; }
.tc-cli .tc-cont { font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.tc-lista { list-style: none; margin: 0; padding: 0; }
.tc-t { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line-2); min-height: 56px; }
.tc-t:first-child { border-top: 0; }
.tc-t .tc-txt { flex: 1; min-width: 0; }
.tc-t .tc-tit { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer; }
.tc-t .tc-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tc-t .tc-ok { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--gold-d); background: var(--paper); color: var(--gold-d); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tc-t .tc-ok:hover { background: var(--gold); color: var(--dark); }
.tc-t.feita .tc-tit { text-decoration: line-through; color: var(--ink-3); }
.tc-t.feita .tc-ok { background: var(--dark); border-color: var(--dark); color: var(--gold); }
.tc-t.atrasada { box-shadow: inset 3px 0 0 #9a2f2f; }
.tc-vazio { padding: 22px; text-align: center; color: var(--ink-3); }
.tc-hoje-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 var(--sp-3, 12px); }
.tc-hoje-topo h2 { margin: 0; font: 400 26px/1.1 var(--serif); }
.tc-hoje-topo a { font-size: 14px; color: var(--gold-d); }

/* ---------- barra inferior (celular) ---------- */
.barra-baixo { display: none; }
@media (max-width: 900px) {
  .barra-baixo { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(43,33,27,.98); border-top: 1px solid rgba(184,149,97,.3); padding-bottom: env(safe-area-inset-bottom); }
  .barra-baixo a, .barra-baixo button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 2px; color: rgba(245,240,232,.72); text-decoration: none; font: 400 11px var(--sans); letter-spacing: .02em; background: none; border: 0; cursor: pointer; }
  .barra-baixo i { font-style: normal; font-size: 19px; line-height: 1; }
  .barra-baixo .on { color: var(--gold); }
  .conteudo { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .topo-mobile { padding-top: calc(10px + env(safe-area-inset-top)); }
  /* alvos de toque confortáveis */
  .btn { min-height: 44px; }
  .menu a { min-height: 44px; display: flex; align-items: center; }
  .pag-topo h1 { font-size: 30px; }
}
@media (max-width: 640px) {
  .tc-resumo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-cli > header { padding: 12px 14px 8px; }
  .tc-t { padding: 10px 14px; }
  .tc-cli h3 { font-size: 21px; }
  .tc-filtros button { flex: 1 1 auto; text-align: center; }
  .tc-hoje-topo h2 { font-size: 23px; }
  /* Hoje: o que é de apoio fica recolhido; indicadores mais compactos */
  .grade-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (display-mode: standalone) { .topo-mobile b { letter-spacing: .12em; } }
